Skip to content

Commit

Permalink
change add error definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco committed Dec 19, 2024
1 parent 228e42d commit 0705bcc
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 18 deletions.
8 changes: 5 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 6bff3a53-3f0b-40b4-942f-ff70dc583ae5
management:
docChecksum: e90510d550621b4e7b02b40827acdbb0
docChecksum: f7ffcb045d33df1ff325d735227c5ef8
docVersion: "1.0"
speakeasyVersion: 1.456.1
generationVersion: 2.481.0
releaseVersion: 0.0.1-alpha.131
configChecksum: 6204c50ddf1671ac5cbfea57ead36d40
releaseVersion: 0.0.1-alpha.132
configChecksum: 11cd4baa2dad8400417dc3852deb361d
published: true
features:
typescript:
Expand Down Expand Up @@ -897,6 +897,8 @@ examples:
application/json: {"updated": [{"subscriberId": "<id>"}], "created": [{"subscriberId": "<id>"}, {"subscriberId": "<id>"}, {"subscriberId": "<id>"}]}
"422":
application/json: {"statusCode": 404, "timestamp": "2024-12-12T13:00:00Z", "path": "/api/v1/resource", "message": "Resource not found.", "ctx": {"workflowId": "some_wf_id", "stepId": "some_wf_id"}, "errorId": "abc123", "errors": {"fieldName1": {"messages": ["Field is required", "Invalid format"], "value": "xx xx xx "}, "fieldName2": {"messages": ["Field is required", "Invalid format"], "value": "xx xx xx "}, "fieldName3": {"messages": ["Field is required", "Invalid format"], "value": "xx xx xx "}, "fieldName4": {"messages": ["Field is required", "Invalid format"], "value": "xx xx xx "}}}
"201":
application/json: {"updated": [{"subscriberId": "<id>"}], "created": [{"subscriberId": "<id>"}, {"subscriberId": "<id>"}, {"subscriberId": "<id>"}]}
SubscribersController_updateSubscriberChannel:
speakeasy-default-subscribers-controller-update-subscriber-channel:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.0.1-alpha.131
version: 0.0.1-alpha.132
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.456.1
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:576de934cd68713922be5d5cce81e7a84e330bfd9a2ea2bb3ffba9489106299b
sourceBlobDigest: sha256:d611ef4ad0fd47f7b13bd8ed8aa43d7ecb32910c465e12efcc6f333892ab57e1
sourceRevisionDigest: sha256:cba3dcc6c66e3fdf2d42b5d09a0d29bf19d6969ae58a8ef35209c53a3b28bebc
sourceBlobDigest: sha256:91640a2ff06deb88f7077e9ade0d92aa8e75e3d301a6bbc0a9e1ac678ddde632
tags:
- latest
- "1.0"
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:576de934cd68713922be5d5cce81e7a84e330bfd9a2ea2bb3ffba9489106299b
sourceBlobDigest: sha256:d611ef4ad0fd47f7b13bd8ed8aa43d7ecb32910c465e12efcc6f333892ab57e1
sourceRevisionDigest: sha256:cba3dcc6c66e3fdf2d42b5d09a0d29bf19d6969ae58a8ef35209c53a3b28bebc
sourceBlobDigest: sha256:91640a2ff06deb88f7077e9ade0d92aa8e75e3d301a6bbc0a9e1ac678ddde632
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:e4e305dde473e8260e78dfec59a4973d04313daf81f17cdbda43dbc878f6b1cf
codeSamplesRevisionDigest: sha256:9c8b2b030e7c1a423026cc2d8a794d1f5fcf8a52330ac63e8876fa9064c1815f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@novu/api",
"version": "0.0.1-alpha.131",
"version": "0.0.1-alpha.132",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@novu/api",
"version": "0.0.1-alpha.131",
"version": "0.0.1-alpha.132",
"author": "Novu",
"main": "./index.js",
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions sources/json-development.json
Original file line number Diff line number Diff line change
Expand Up @@ -5518,8 +5518,8 @@
}
},
"responses": {
"200": {
"description": "OK",
"201": {
"description": "Created",
"headers": {
"Content-Type": {
"$ref": "#/components/headers/Content-Type"
Expand Down
2 changes: 1 addition & 1 deletion src/funcs/subscribersCreateBulk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export async function subscribersCreateBulk(
| ConnectionError
>(
M.json(
200,
201,
operations
.SubscribersControllerBulkCreateSubscribersResponse$inboundSchema,
{ hdrs: true, key: "Result" },
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0",
sdkVersion: "0.0.1-alpha.131",
sdkVersion: "0.0.1-alpha.132",
genVersion: "2.481.0",
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.131 2.481.0 1.0 @novu/api",
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.132 2.481.0 1.0 @novu/api",
} as const;

0 comments on commit 0705bcc

Please sign in to comment.