mirror of
https://github.com/LukeHagar/dub-node.git
synced 2025-12-06 04:19:37 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.262.0
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: f28179cc-ef59-426d-9e85-60cec22fc642
|
||||
management:
|
||||
docChecksum: 9b3afff112a002c5cdcb95800b733810
|
||||
docChecksum: ac1c5d14dce8082823d12ee6e19cced7
|
||||
docVersion: 0.0.1
|
||||
speakeasyVersion: 1.260.6
|
||||
generationVersion: 2.311.1
|
||||
releaseVersion: 0.24.0
|
||||
configChecksum: 7295cbecb89a751fe5c558989aade82b
|
||||
speakeasyVersion: 1.262.0
|
||||
generationVersion: 2.312.0
|
||||
releaseVersion: 0.24.1
|
||||
configChecksum: dc858107ccc11c8da5b123cd4e4ec590
|
||||
repoURL: https://github.com/dubinc/dub-node.git
|
||||
installationURL: https://github.com/dubinc/dub-node
|
||||
published: true
|
||||
@@ -56,6 +56,19 @@ generatedFiles:
|
||||
- src/types/operations.ts
|
||||
- src/types/rfcdate.ts
|
||||
- tsconfig.json
|
||||
- src/models/components/linkschema.ts
|
||||
- src/models/components/tagschema.ts
|
||||
- src/models/components/workspaceschema.ts
|
||||
- src/models/components/security.ts
|
||||
- src/models/errors/badrequest.ts
|
||||
- src/models/errors/unauthorized.ts
|
||||
- src/models/errors/forbidden.ts
|
||||
- src/models/errors/notfound.ts
|
||||
- src/models/errors/conflict.ts
|
||||
- src/models/errors/inviteexpired.ts
|
||||
- src/models/errors/unprocessableentity.ts
|
||||
- src/models/errors/ratelimitexceeded.ts
|
||||
- src/models/errors/internalservererror.ts
|
||||
- src/models/operations/getlinks.ts
|
||||
- src/models/operations/createlink.ts
|
||||
- src/models/operations/getlinkscount.ts
|
||||
@@ -74,7 +87,6 @@ generatedFiles:
|
||||
- src/models/operations/getrefereranalytics.ts
|
||||
- src/models/operations/gettoplinks.ts
|
||||
- src/models/operations/gettopurls.ts
|
||||
- src/models/operations/getworkspaces.ts
|
||||
- src/models/operations/createworkspace.ts
|
||||
- src/models/operations/getworkspace.ts
|
||||
- src/models/operations/gettags.ts
|
||||
@@ -86,180 +98,138 @@ generatedFiles:
|
||||
- src/models/operations/setprimarydomain.ts
|
||||
- src/models/operations/transferdomain.ts
|
||||
- src/models/operations/getmetatags.ts
|
||||
- src/models/components/linkschema.ts
|
||||
- src/models/components/tagschema.ts
|
||||
- src/models/components/badrequest.ts
|
||||
- src/models/components/unauthorized.ts
|
||||
- src/models/components/forbidden.ts
|
||||
- src/models/components/notfound.ts
|
||||
- src/models/components/conflict.ts
|
||||
- src/models/components/inviteexpired.ts
|
||||
- src/models/components/unprocessableentity.ts
|
||||
- src/models/components/ratelimitexceeded.ts
|
||||
- src/models/components/internalservererror.ts
|
||||
- src/models/components/workspaceschema.ts
|
||||
- src/models/components/security.ts
|
||||
- src/models/errors/index.ts
|
||||
- src/models/operations/index.ts
|
||||
- src/models/components/index.ts
|
||||
- docs/models/operations/queryparamtagids.md
|
||||
- docs/models/operations/sort.md
|
||||
- docs/models/operations/getlinksrequest.md
|
||||
- docs/models/operations/getlinksresponse.md
|
||||
- docs/models/operations/tagids.md
|
||||
- docs/models/operations/geo.md
|
||||
- docs/models/operations/createlinkrequestbody.md
|
||||
- docs/models/operations/createlinkresponse.md
|
||||
- docs/models/operations/getlinkscountqueryparamtagids.md
|
||||
- docs/models/operations/two.md
|
||||
- docs/models/operations/one.md
|
||||
- docs/models/operations/groupby.md
|
||||
- docs/models/operations/getlinkscountrequest.md
|
||||
- docs/models/operations/getlinkscountresponse.md
|
||||
- docs/models/operations/getlinkinforequest.md
|
||||
- docs/models/operations/getlinkinforesponse.md
|
||||
- docs/models/operations/editlinktagids.md
|
||||
- docs/models/operations/editlinkgeo.md
|
||||
- docs/models/operations/editlinkrequestbody.md
|
||||
- docs/models/operations/editlinkrequest.md
|
||||
- docs/models/operations/editlinkresponse.md
|
||||
- docs/models/operations/deletelinkrequest.md
|
||||
- docs/models/operations/deletelinkresponsebody.md
|
||||
- docs/models/operations/deletelinkresponse.md
|
||||
- docs/models/operations/bulkcreatelinkstagids.md
|
||||
- docs/models/operations/bulkcreatelinksgeo.md
|
||||
- docs/models/operations/requestbody.md
|
||||
- docs/models/operations/bulkcreatelinksresponse.md
|
||||
- docs/models/operations/level.md
|
||||
- docs/models/operations/getqrcoderequest.md
|
||||
- docs/models/operations/getqrcoderesponse.md
|
||||
- docs/models/operations/interval.md
|
||||
- docs/models/operations/country.md
|
||||
- docs/models/operations/getclicksanalyticsrequest.md
|
||||
- docs/models/operations/getclicksanalyticsresponse.md
|
||||
- docs/models/operations/queryparaminterval.md
|
||||
- docs/models/operations/queryparamcountry.md
|
||||
- docs/models/operations/gettimeseriesanalyticsrequest.md
|
||||
- docs/models/operations/responsebody.md
|
||||
- docs/models/operations/gettimeseriesanalyticsresponse.md
|
||||
- docs/models/operations/getcountryanalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getcountryanalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getcountryanalyticsrequest.md
|
||||
- docs/models/operations/getcountryanalyticscountry.md
|
||||
- docs/models/operations/getcountryanalyticsresponsebody.md
|
||||
- docs/models/operations/getcountryanalyticsresponse.md
|
||||
- docs/models/operations/getcityanalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getcityanalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getcityanalyticsrequest.md
|
||||
- docs/models/operations/getcityanalyticscountry.md
|
||||
- docs/models/operations/getcityanalyticsresponsebody.md
|
||||
- docs/models/operations/getcityanalyticsresponse.md
|
||||
- docs/models/operations/getdeviceanalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getdeviceanalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getdeviceanalyticsrequest.md
|
||||
- docs/models/operations/getdeviceanalyticsresponsebody.md
|
||||
- docs/models/operations/getdeviceanalyticsresponse.md
|
||||
- docs/models/operations/getbrowseranalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getbrowseranalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getbrowseranalyticsrequest.md
|
||||
- docs/models/operations/getbrowseranalyticsresponsebody.md
|
||||
- docs/models/operations/getbrowseranalyticsresponse.md
|
||||
- docs/models/operations/getosanalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getosanalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getosanalyticsrequest.md
|
||||
- docs/models/operations/getosanalyticsresponsebody.md
|
||||
- docs/models/operations/getosanalyticsresponse.md
|
||||
- docs/models/operations/getrefereranalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getrefereranalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getrefereranalyticsrequest.md
|
||||
- docs/models/operations/getrefereranalyticsresponsebody.md
|
||||
- docs/models/operations/getrefereranalyticsresponse.md
|
||||
- docs/models/operations/gettoplinksqueryparaminterval.md
|
||||
- docs/models/operations/gettoplinksqueryparamcountry.md
|
||||
- docs/models/operations/gettoplinksrequest.md
|
||||
- docs/models/operations/gettoplinksresponsebody.md
|
||||
- docs/models/operations/gettoplinksresponse.md
|
||||
- docs/models/operations/gettopurlsqueryparaminterval.md
|
||||
- docs/models/operations/gettopurlsqueryparamcountry.md
|
||||
- docs/models/operations/gettopurlsrequest.md
|
||||
- docs/models/operations/gettopurlsresponsebody.md
|
||||
- docs/models/operations/gettopurlsresponse.md
|
||||
- docs/models/operations/getworkspacesresponse.md
|
||||
- docs/models/operations/createworkspacerequestbody.md
|
||||
- docs/models/operations/createworkspaceresponse.md
|
||||
- docs/models/operations/getworkspacerequest.md
|
||||
- docs/models/operations/getworkspaceresponse.md
|
||||
- docs/models/operations/gettagsrequest.md
|
||||
- docs/models/operations/gettagsresponse.md
|
||||
- docs/models/operations/color.md
|
||||
- docs/models/operations/createtagrequestbody.md
|
||||
- docs/models/operations/createtagresponse.md
|
||||
- docs/models/operations/listdomainsrequest.md
|
||||
- docs/models/operations/listdomainstype.md
|
||||
- docs/models/operations/listdomainsresponsebody.md
|
||||
- docs/models/operations/listdomainsresponse.md
|
||||
- docs/models/operations/type.md
|
||||
- docs/models/operations/adddomainrequestbody.md
|
||||
- docs/models/operations/adddomaintype.md
|
||||
- docs/models/operations/adddomainresponsebody.md
|
||||
- docs/models/operations/adddomainresponse.md
|
||||
- docs/models/operations/deletedomainrequest.md
|
||||
- docs/models/operations/deletedomainresponsebody.md
|
||||
- docs/models/operations/deletedomainresponse.md
|
||||
- docs/models/operations/editdomaintype.md
|
||||
- docs/models/operations/editdomainrequestbody.md
|
||||
- docs/models/operations/editdomainrequest.md
|
||||
- docs/models/operations/editdomaindomainstype.md
|
||||
- docs/models/operations/editdomainresponsebody.md
|
||||
- docs/models/operations/editdomainresponse.md
|
||||
- docs/models/operations/setprimarydomainrequest.md
|
||||
- docs/models/operations/setprimarydomaintype.md
|
||||
- docs/models/operations/setprimarydomainresponsebody.md
|
||||
- docs/models/operations/setprimarydomainresponse.md
|
||||
- docs/models/operations/transferdomainrequestbody.md
|
||||
- docs/models/operations/transferdomainrequest.md
|
||||
- docs/models/operations/transferdomaintype.md
|
||||
- docs/models/operations/transferdomainresponsebody.md
|
||||
- docs/models/operations/transferdomainresponse.md
|
||||
- docs/models/operations/getmetatagsrequest.md
|
||||
- docs/models/operations/getmetatagsresponsebody.md
|
||||
- src/models/operations/index.ts
|
||||
- docs/models/components/geo.md
|
||||
- docs/models/components/linkschema.md
|
||||
- docs/models/components/color.md
|
||||
- docs/models/components/tagschema.md
|
||||
- docs/models/components/code.md
|
||||
- docs/models/components/errort.md
|
||||
- docs/models/components/badrequest.md
|
||||
- docs/models/components/unauthorizedcode.md
|
||||
- docs/models/components/unauthorizederror.md
|
||||
- docs/models/components/unauthorized.md
|
||||
- docs/models/components/forbiddencode.md
|
||||
- docs/models/components/forbiddenerror.md
|
||||
- docs/models/components/forbidden.md
|
||||
- docs/models/components/notfoundcode.md
|
||||
- docs/models/components/notfounderror.md
|
||||
- docs/models/components/notfound.md
|
||||
- docs/models/components/conflictcode.md
|
||||
- docs/models/components/conflicterror.md
|
||||
- docs/models/components/conflict.md
|
||||
- docs/models/components/inviteexpiredcode.md
|
||||
- docs/models/components/inviteexpirederror.md
|
||||
- docs/models/components/inviteexpired.md
|
||||
- docs/models/components/unprocessableentitycode.md
|
||||
- docs/models/components/unprocessableentityerror.md
|
||||
- docs/models/components/unprocessableentity.md
|
||||
- docs/models/components/ratelimitexceededcode.md
|
||||
- docs/models/components/ratelimitexceedederror.md
|
||||
- docs/models/components/ratelimitexceeded.md
|
||||
- docs/models/components/internalservererrorcode.md
|
||||
- docs/models/components/internalservererrorerror.md
|
||||
- docs/models/components/internalservererror.md
|
||||
- docs/models/components/plan.md
|
||||
- docs/models/components/role.md
|
||||
- docs/models/components/users.md
|
||||
- docs/models/components/domains.md
|
||||
- docs/models/components/workspaceschema.md
|
||||
- docs/models/components/security.md
|
||||
- docs/models/errors/code.md
|
||||
- docs/models/errors/errort.md
|
||||
- docs/models/errors/badrequest.md
|
||||
- docs/models/errors/unauthorizedcode.md
|
||||
- docs/models/errors/unauthorizederror.md
|
||||
- docs/models/errors/unauthorized.md
|
||||
- docs/models/errors/forbiddencode.md
|
||||
- docs/models/errors/forbiddenerror.md
|
||||
- docs/models/errors/forbidden.md
|
||||
- docs/models/errors/notfoundcode.md
|
||||
- docs/models/errors/notfounderror.md
|
||||
- docs/models/errors/notfound.md
|
||||
- docs/models/errors/conflictcode.md
|
||||
- docs/models/errors/conflicterror.md
|
||||
- docs/models/errors/conflict.md
|
||||
- docs/models/errors/inviteexpiredcode.md
|
||||
- docs/models/errors/inviteexpirederror.md
|
||||
- docs/models/errors/inviteexpired.md
|
||||
- docs/models/errors/unprocessableentitycode.md
|
||||
- docs/models/errors/unprocessableentityerror.md
|
||||
- docs/models/errors/unprocessableentity.md
|
||||
- docs/models/errors/ratelimitexceededcode.md
|
||||
- docs/models/errors/ratelimitexceedederror.md
|
||||
- docs/models/errors/ratelimitexceeded.md
|
||||
- docs/models/errors/internalservererrorcode.md
|
||||
- docs/models/errors/internalservererrorerror.md
|
||||
- docs/models/errors/internalservererror.md
|
||||
- docs/models/operations/queryparamtagids.md
|
||||
- docs/models/operations/sort.md
|
||||
- docs/models/operations/getlinksrequest.md
|
||||
- docs/models/operations/tagids.md
|
||||
- docs/models/operations/geo.md
|
||||
- docs/models/operations/createlinkrequestbody.md
|
||||
- docs/models/operations/getlinkscountqueryparamtagids.md
|
||||
- docs/models/operations/two.md
|
||||
- docs/models/operations/one.md
|
||||
- docs/models/operations/groupby.md
|
||||
- docs/models/operations/getlinkscountrequest.md
|
||||
- docs/models/operations/getlinkinforequest.md
|
||||
- docs/models/operations/editlinktagids.md
|
||||
- docs/models/operations/editlinkgeo.md
|
||||
- docs/models/operations/editlinkrequestbody.md
|
||||
- docs/models/operations/editlinkrequest.md
|
||||
- docs/models/operations/deletelinkrequest.md
|
||||
- docs/models/operations/deletelinkresponsebody.md
|
||||
- docs/models/operations/bulkcreatelinkstagids.md
|
||||
- docs/models/operations/bulkcreatelinksgeo.md
|
||||
- docs/models/operations/requestbody.md
|
||||
- docs/models/operations/level.md
|
||||
- docs/models/operations/getqrcoderequest.md
|
||||
- docs/models/operations/interval.md
|
||||
- docs/models/operations/country.md
|
||||
- docs/models/operations/getclicksanalyticsrequest.md
|
||||
- docs/models/operations/queryparaminterval.md
|
||||
- docs/models/operations/queryparamcountry.md
|
||||
- docs/models/operations/gettimeseriesanalyticsrequest.md
|
||||
- docs/models/operations/responsebody.md
|
||||
- docs/models/operations/getcountryanalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getcountryanalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getcountryanalyticsrequest.md
|
||||
- docs/models/operations/getcountryanalyticscountry.md
|
||||
- docs/models/operations/getcountryanalyticsresponsebody.md
|
||||
- docs/models/operations/getcityanalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getcityanalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getcityanalyticsrequest.md
|
||||
- docs/models/operations/getcityanalyticscountry.md
|
||||
- docs/models/operations/getcityanalyticsresponsebody.md
|
||||
- docs/models/operations/getdeviceanalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getdeviceanalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getdeviceanalyticsrequest.md
|
||||
- docs/models/operations/getdeviceanalyticsresponsebody.md
|
||||
- docs/models/operations/getbrowseranalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getbrowseranalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getbrowseranalyticsrequest.md
|
||||
- docs/models/operations/getbrowseranalyticsresponsebody.md
|
||||
- docs/models/operations/getosanalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getosanalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getosanalyticsrequest.md
|
||||
- docs/models/operations/getosanalyticsresponsebody.md
|
||||
- docs/models/operations/getrefereranalyticsqueryparaminterval.md
|
||||
- docs/models/operations/getrefereranalyticsqueryparamcountry.md
|
||||
- docs/models/operations/getrefereranalyticsrequest.md
|
||||
- docs/models/operations/getrefereranalyticsresponsebody.md
|
||||
- docs/models/operations/gettoplinksqueryparaminterval.md
|
||||
- docs/models/operations/gettoplinksqueryparamcountry.md
|
||||
- docs/models/operations/gettoplinksrequest.md
|
||||
- docs/models/operations/gettoplinksresponsebody.md
|
||||
- docs/models/operations/gettopurlsqueryparaminterval.md
|
||||
- docs/models/operations/gettopurlsqueryparamcountry.md
|
||||
- docs/models/operations/gettopurlsrequest.md
|
||||
- docs/models/operations/gettopurlsresponsebody.md
|
||||
- docs/models/operations/createworkspacerequestbody.md
|
||||
- docs/models/operations/getworkspacerequest.md
|
||||
- docs/models/operations/gettagsrequest.md
|
||||
- docs/models/operations/color.md
|
||||
- docs/models/operations/createtagrequestbody.md
|
||||
- docs/models/operations/listdomainsrequest.md
|
||||
- docs/models/operations/listdomainstype.md
|
||||
- docs/models/operations/listdomainsresponsebody.md
|
||||
- docs/models/operations/type.md
|
||||
- docs/models/operations/adddomainrequestbody.md
|
||||
- docs/models/operations/adddomaintype.md
|
||||
- docs/models/operations/adddomainresponsebody.md
|
||||
- docs/models/operations/deletedomainrequest.md
|
||||
- docs/models/operations/deletedomainresponsebody.md
|
||||
- docs/models/operations/editdomaintype.md
|
||||
- docs/models/operations/editdomainrequestbody.md
|
||||
- docs/models/operations/editdomainrequest.md
|
||||
- docs/models/operations/editdomaindomainstype.md
|
||||
- docs/models/operations/editdomainresponsebody.md
|
||||
- docs/models/operations/setprimarydomainrequest.md
|
||||
- docs/models/operations/setprimarydomaintype.md
|
||||
- docs/models/operations/setprimarydomainresponsebody.md
|
||||
- docs/models/operations/transferdomainrequestbody.md
|
||||
- docs/models/operations/transferdomainrequest.md
|
||||
- docs/models/operations/transferdomaintype.md
|
||||
- docs/models/operations/transferdomainresponsebody.md
|
||||
- docs/models/operations/getmetatagsrequest.md
|
||||
- docs/models/operations/getmetatagsresponsebody.md
|
||||
- docs/sdks/dub/README.md
|
||||
- docs/sdks/links/README.md
|
||||
- docs/sdks/qrcodes/README.md
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
typescript:
|
||||
version: 0.24.0
|
||||
version: 0.24.1
|
||||
additionalDependencies:
|
||||
dependencies: {}
|
||||
devDependencies:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
speakeasyVersion: 1.260.6
|
||||
speakeasyVersion: 1.262.0
|
||||
sources:
|
||||
my-first-source: {}
|
||||
targets:
|
||||
|
||||
51
README.md
51
README.md
@@ -120,9 +120,18 @@ run();
|
||||
|
||||
All SDK methods return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type.
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
||||
|
||||
@@ -151,6 +160,42 @@ async function run() {
|
||||
console.error(err.rawValue);
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.BadRequest: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.Unauthorized: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.Forbidden: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.NotFound: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.Conflict: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.InviteExpired: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.UnprocessableEntity: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.RateLimitExceeded: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
case err instanceof errors.InternalServerError: {
|
||||
console.error(err); // handle exception
|
||||
return;
|
||||
}
|
||||
default: {
|
||||
throw err;
|
||||
}
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -116,4 +116,14 @@ Based on:
|
||||
### Generated
|
||||
- [typescript v0.24.0] .
|
||||
### Releases
|
||||
- [NPM v0.24.0] https://www.npmjs.com/package/dub/v/0.24.0 - .
|
||||
- [NPM v0.24.0] https://www.npmjs.com/package/dub/v/0.24.0 - .
|
||||
|
||||
## 2024-04-19 15:22:49
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.262.0 (2.312.0) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.24.1] .
|
||||
### Releases
|
||||
- [NPM v0.24.1] https://www.npmjs.com/package/dub/v/0.24.1 - .
|
||||
@@ -1,8 +0,0 @@
|
||||
# BadRequest
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
|
||||
| `error` | [components.ErrorT](../../models/components/errort.md) | :heavy_check_mark: | N/A |
|
||||
@@ -1,8 +0,0 @@
|
||||
# Conflict
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| `error` | [components.ConflictError](../../models/components/conflicterror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -1,8 +0,0 @@
|
||||
# InternalServerError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
||||
| `error` | [components.InternalServerErrorError](../../models/components/internalservererrorerror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -1,10 +0,0 @@
|
||||
# InternalServerErrorError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `code` | [components.InternalServerErrorCode](../../models/components/internalservererrorcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | internal_server_error |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#internal_server_error |
|
||||
@@ -1,8 +0,0 @@
|
||||
# RateLimitExceeded
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `error` | [components.RateLimitExceededError](../../models/components/ratelimitexceedederror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -1,10 +0,0 @@
|
||||
# RateLimitExceededError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
||||
| `code` | [components.RateLimitExceededCode](../../models/components/ratelimitexceededcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | rate_limit_exceeded |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#rate_limit_exceeded |
|
||||
@@ -1,8 +0,0 @@
|
||||
# Unauthorized
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
||||
| `error` | [components.UnauthorizedError](../../models/components/unauthorizederror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -1,10 +0,0 @@
|
||||
# UnauthorizedError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
||||
| `code` | [components.UnauthorizedCode](../../models/components/unauthorizedcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | unauthorized |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#unauthorized |
|
||||
@@ -1,8 +0,0 @@
|
||||
# UnprocessableEntity
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
||||
| `error` | [components.UnprocessableEntityError](../../models/components/unprocessableentityerror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -1,10 +0,0 @@
|
||||
# UnprocessableEntityError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `code` | [components.UnprocessableEntityCode](../../models/components/unprocessableentitycode.md) | :heavy_check_mark: | A short code indicating the error code returned. | unprocessable_entity |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#unprocessable_entity |
|
||||
10
docs/models/errors/badrequest.md
Normal file
10
docs/models/errors/badrequest.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# BadRequest
|
||||
|
||||
The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
|
||||
| `error` | [errors.ErrorT](../../models/errors/errort.md) | :heavy_check_mark: | N/A |
|
||||
10
docs/models/errors/conflict.md
Normal file
10
docs/models/errors/conflict.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Conflict
|
||||
|
||||
This response is sent when a request conflicts with the current state of the server.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
||||
| `error` | [errors.ConflictError](../../models/errors/conflicterror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
||||
| `code` | [components.ConflictCode](../../models/components/conflictcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | conflict |
|
||||
| `code` | [errors.ConflictCode](../../models/errors/conflictcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | conflict |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#conflict |
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
||||
| `code` | [components.Code](../../models/components/code.md) | :heavy_check_mark: | A short code indicating the error code returned. | bad_request |
|
||||
| `code` | [errors.Code](../../models/errors/code.md) | :heavy_check_mark: | A short code indicating the error code returned. | bad_request |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#bad_request |
|
||||
10
docs/models/errors/forbidden.md
Normal file
10
docs/models/errors/forbidden.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Forbidden
|
||||
|
||||
The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
|
||||
| `error` | [errors.ForbiddenError](../../models/errors/forbiddenerror.md) | :heavy_check_mark: | N/A |
|
||||
10
docs/models/errors/forbiddenerror.md
Normal file
10
docs/models/errors/forbiddenerror.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# ForbiddenError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
||||
| `code` | [errors.ForbiddenCode](../../models/errors/forbiddencode.md) | :heavy_check_mark: | A short code indicating the error code returned. | forbidden |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#forbidden |
|
||||
10
docs/models/errors/internalservererror.md
Normal file
10
docs/models/errors/internalservererror.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# InternalServerError
|
||||
|
||||
The server has encountered a situation it does not know how to handle.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
||||
| `error` | [errors.InternalServerErrorError](../../models/errors/internalservererrorerror.md) | :heavy_check_mark: | N/A |
|
||||
10
docs/models/errors/internalservererrorerror.md
Normal file
10
docs/models/errors/internalservererrorerror.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# InternalServerErrorError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `code` | [errors.InternalServerErrorCode](../../models/errors/internalservererrorcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | internal_server_error |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#internal_server_error |
|
||||
@@ -1,8 +1,10 @@
|
||||
# Forbidden
|
||||
# InviteExpired
|
||||
|
||||
This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
|
||||
| `error` | [components.ForbiddenError](../../models/components/forbiddenerror.md) | :heavy_check_mark: | N/A |
|
||||
| `error` | [errors.InviteExpiredError](../../models/errors/inviteexpirederror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -1,10 +1,10 @@
|
||||
# ForbiddenError
|
||||
# InviteExpiredError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| `code` | [components.ForbiddenCode](../../models/components/forbiddencode.md) | :heavy_check_mark: | A short code indicating the error code returned. | forbidden |
|
||||
| `code` | [errors.InviteExpiredCode](../../models/errors/inviteexpiredcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | invite_expired |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#forbidden |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#invite_expired |
|
||||
10
docs/models/errors/notfound.md
Normal file
10
docs/models/errors/notfound.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# NotFound
|
||||
|
||||
The server cannot find the requested resource.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
||||
| `error` | [errors.NotFoundError](../../models/errors/notfounderror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
||||
| `code` | [components.NotFoundCode](../../models/components/notfoundcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | not_found |
|
||||
| `code` | [errors.NotFoundCode](../../models/errors/notfoundcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | not_found |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#not_found |
|
||||
@@ -1,8 +1,10 @@
|
||||
# InviteExpired
|
||||
# RateLimitExceeded
|
||||
|
||||
The user has sent too many requests in a given amount of time ("rate limiting")
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
||||
| `error` | [components.InviteExpiredError](../../models/components/inviteexpirederror.md) | :heavy_check_mark: | N/A |
|
||||
| `error` | [errors.RateLimitExceededError](../../models/errors/ratelimitexceedederror.md) | :heavy_check_mark: | N/A |
|
||||
@@ -1,10 +1,10 @@
|
||||
# InviteExpiredError
|
||||
# RateLimitExceededError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
||||
| `code` | [components.InviteExpiredCode](../../models/components/inviteexpiredcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | invite_expired |
|
||||
| `code` | [errors.RateLimitExceededCode](../../models/errors/ratelimitexceededcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | rate_limit_exceeded |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#invite_expired |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#rate_limit_exceeded |
|
||||
@@ -1,8 +1,10 @@
|
||||
# NotFound
|
||||
# Unauthorized
|
||||
|
||||
Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
||||
| `error` | [components.NotFoundError](../../models/components/notfounderror.md) | :heavy_check_mark: | N/A |
|
||||
| `error` | [errors.UnauthorizedError](../../models/errors/unauthorizederror.md) | :heavy_check_mark: | N/A |
|
||||
10
docs/models/errors/unauthorizederror.md
Normal file
10
docs/models/errors/unauthorizederror.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# UnauthorizedError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
||||
| `code` | [errors.UnauthorizedCode](../../models/errors/unauthorizedcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | unauthorized |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#unauthorized |
|
||||
10
docs/models/errors/unprocessableentity.md
Normal file
10
docs/models/errors/unprocessableentity.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# UnprocessableEntity
|
||||
|
||||
The request was well-formed but was unable to be followed due to semantic errors.
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
||||
| `error` | [errors.UnprocessableEntityError](../../models/errors/unprocessableentityerror.md) | :heavy_check_mark: | N/A |
|
||||
10
docs/models/errors/unprocessableentityerror.md
Normal file
10
docs/models/errors/unprocessableentityerror.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# UnprocessableEntityError
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `code` | [errors.UnprocessableEntityCode](../../models/errors/unprocessableentitycode.md) | :heavy_check_mark: | A short code indicating the error code returned. | unprocessable_entity |
|
||||
| `message` | *string* | :heavy_check_mark: | A human readable explanation of what went wrong. | The requested resource was not found. |
|
||||
| `docUrl` | *string* | :heavy_minus_sign: | A link to our documentation with more details about this error code | https://dub.co/docs/api-reference/errors#unprocessable_entity |
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `slug` | *string* | :heavy_check_mark: | Name of the domain. |
|
||||
| `type` | [operations.Type](../../models/operations/type.md) | :heavy_minus_sign: | The type of redirect to use for this domain. |
|
||||
| `target` | *string* | :heavy_minus_sign: | The page your users will get redirected to when they visit your domain. |
|
||||
| `expiredUrl` | *string* | :heavy_minus_sign: | Redirect users to a specific URL when any link under this domain has expired. |
|
||||
| `archived` | *boolean* | :heavy_minus_sign: | Whether to archive this domain. `false` will unarchive a previously archived domain. |
|
||||
| `placeholder` | *string* | :heavy_minus_sign: | Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened. |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `slug` | *string* | :heavy_check_mark: | Name of the domain. | acme.com |
|
||||
| `type` | [operations.Type](../../models/operations/type.md) | :heavy_minus_sign: | The type of redirect to use for this domain. | redirect |
|
||||
| `target` | *string* | :heavy_minus_sign: | The page your users will get redirected to when they visit your domain. | https://acme.com/landing |
|
||||
| `expiredUrl` | *string* | :heavy_minus_sign: | Redirect users to a specific URL when any link under this domain has expired. | https://acme.com/expired |
|
||||
| `archived` | *boolean* | :heavy_minus_sign: | Whether to archive this domain. `false` will unarchive a previously archived domain. | false |
|
||||
| `placeholder` | *string* | :heavy_minus_sign: | Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened. | https://dub.co/help/article/what-is-dub |
|
||||
@@ -1,2 +0,0 @@
|
||||
# AddDomainResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# BulkCreateLinksResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# CreateLinkResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# CreateTagResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# CreateWorkspaceResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# DeleteDomainResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# DeleteLinkResponse
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `slug` | *string* | :heavy_minus_sign: | Name of the domain. |
|
||||
| `type` | [operations.EditDomainType](../../models/operations/editdomaintype.md) | :heavy_minus_sign: | The type of redirect to use for this domain. |
|
||||
| `target` | *string* | :heavy_minus_sign: | The page your users will get redirected to when they visit your domain. |
|
||||
| `expiredUrl` | *string* | :heavy_minus_sign: | Redirect users to a specific URL when any link under this domain has expired. |
|
||||
| `archived` | *boolean* | :heavy_minus_sign: | Whether to archive this domain. `false` will unarchive a previously archived domain. |
|
||||
| `placeholder` | *string* | :heavy_minus_sign: | Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened. |
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `slug` | *string* | :heavy_minus_sign: | Name of the domain. | acme.com |
|
||||
| `type` | [operations.EditDomainType](../../models/operations/editdomaintype.md) | :heavy_minus_sign: | The type of redirect to use for this domain. | redirect |
|
||||
| `target` | *string* | :heavy_minus_sign: | The page your users will get redirected to when they visit your domain. | https://acme.com/landing |
|
||||
| `expiredUrl` | *string* | :heavy_minus_sign: | Redirect users to a specific URL when any link under this domain has expired. | https://acme.com/expired |
|
||||
| `archived` | *boolean* | :heavy_minus_sign: | Whether to archive this domain. `false` will unarchive a previously archived domain. | false |
|
||||
| `placeholder` | *string* | :heavy_minus_sign: | Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened. | https://dub.co/help/article/what-is-dub |
|
||||
@@ -1,2 +0,0 @@
|
||||
# EditDomainResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# EditLinkResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetBrowserAnalyticsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetCityAnalyticsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetClicksAnalyticsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetCountryAnalyticsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetDeviceAnalyticsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetLinkInfoResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetLinksCountResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetLinksResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetOSAnalyticsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetQRCodeResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetRefererAnalyticsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetTagsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetTimeseriesAnalyticsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetTopLinksResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetTopURLsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetWorkspaceResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# GetWorkspacesResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# ListDomainsResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# SetPrimaryDomainResponse
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# TransferDomainResponse
|
||||
|
||||
@@ -49,12 +49,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetClicksAnalyticsResponse](../../models/operations/getclicksanalyticsresponse.md)>**
|
||||
**Promise<[number](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## timeseries
|
||||
|
||||
@@ -91,12 +100,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetTimeseriesAnalyticsResponse](../../models/operations/gettimeseriesanalyticsresponse.md)>**
|
||||
**Promise<[operations.ResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## countries
|
||||
|
||||
@@ -133,12 +151,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetCountryAnalyticsResponse](../../models/operations/getcountryanalyticsresponse.md)>**
|
||||
**Promise<[operations.GetCountryAnalyticsResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## cities
|
||||
|
||||
@@ -175,12 +202,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetCityAnalyticsResponse](../../models/operations/getcityanalyticsresponse.md)>**
|
||||
**Promise<[operations.GetCityAnalyticsResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## devices
|
||||
|
||||
@@ -217,12 +253,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetDeviceAnalyticsResponse](../../models/operations/getdeviceanalyticsresponse.md)>**
|
||||
**Promise<[operations.GetDeviceAnalyticsResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## browsers
|
||||
|
||||
@@ -259,12 +304,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetBrowserAnalyticsResponse](../../models/operations/getbrowseranalyticsresponse.md)>**
|
||||
**Promise<[operations.GetBrowserAnalyticsResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## os
|
||||
|
||||
@@ -301,12 +355,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetOSAnalyticsResponse](../../models/operations/getosanalyticsresponse.md)>**
|
||||
**Promise<[operations.GetOSAnalyticsResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## referers
|
||||
|
||||
@@ -343,12 +406,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetRefererAnalyticsResponse](../../models/operations/getrefereranalyticsresponse.md)>**
|
||||
**Promise<[operations.GetRefererAnalyticsResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## topLinks
|
||||
|
||||
@@ -385,12 +457,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetTopLinksResponse](../../models/operations/gettoplinksresponse.md)>**
|
||||
**Promise<[operations.GetTopLinksResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## topUrls
|
||||
|
||||
@@ -427,9 +508,18 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetTopURLsResponse](../../models/operations/gettopurlsresponse.md)>**
|
||||
**Promise<[operations.GetTopURLsResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
@@ -45,12 +45,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.ListDomainsResponse](../../models/operations/listdomainsresponse.md)>**
|
||||
**Promise<[operations.ListDomainsResponseBody[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## add
|
||||
|
||||
@@ -60,6 +69,7 @@ Add a domain to the authenticated workspace.
|
||||
|
||||
```typescript
|
||||
import { Dub } from "dub";
|
||||
import { Type } from "dub/models/operations";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
@@ -68,7 +78,12 @@ const dub = new Dub({
|
||||
|
||||
async function run() {
|
||||
const result = await dub.domains.add({
|
||||
slug: "<value>",
|
||||
slug: "acme.com",
|
||||
type: Type.Redirect,
|
||||
target: "https://acme.com/landing",
|
||||
expiredUrl: "https://acme.com/expired",
|
||||
archived: false,
|
||||
placeholder: "https://dub.co/help/article/what-is-dub",
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
@@ -89,12 +104,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.AddDomainResponse](../../models/operations/adddomainresponse.md)>**
|
||||
**Promise<[operations.AddDomainResponseBody](../../models/operations/adddomainresponsebody.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## delete
|
||||
|
||||
@@ -133,12 +157,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.DeleteDomainResponse](../../models/operations/deletedomainresponse.md)>**
|
||||
**Promise<[operations.DeleteDomainResponseBody](../../models/operations/deletedomainresponsebody.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## update
|
||||
|
||||
@@ -148,6 +181,7 @@ Edit a domain for the authenticated workspace.
|
||||
|
||||
```typescript
|
||||
import { Dub } from "dub";
|
||||
import { EditDomainType } from "dub/models/operations";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
@@ -155,10 +189,17 @@ const dub = new Dub({
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.domains.update({
|
||||
const slug = "acme.com";
|
||||
const requestBody = {
|
||||
slug: "acme.com",
|
||||
requestBody: {},
|
||||
});
|
||||
type: EditDomainType.Redirect,
|
||||
target: "https://acme.com/landing",
|
||||
expiredUrl: "https://acme.com/expired",
|
||||
archived: false,
|
||||
placeholder: "https://dub.co/help/article/what-is-dub",
|
||||
};
|
||||
|
||||
const result = await dub.domains.update(slug, requestBody);
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
@@ -169,21 +210,31 @@ run();
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `request` | [operations.EditDomainRequest](../../models/operations/editdomainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `slug` | *string* | :heavy_check_mark: | The domain name. | [object Object] |
|
||||
| `requestBody` | [operations.EditDomainRequestBody](../../models/operations/editdomainrequestbody.md) | :heavy_minus_sign: | N/A | |
|
||||
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | |
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.EditDomainResponse](../../models/operations/editdomainresponse.md)>**
|
||||
**Promise<[operations.EditDomainResponseBody](../../models/operations/editdomainresponsebody.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## setPrimary
|
||||
|
||||
@@ -222,12 +273,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.SetPrimaryDomainResponse](../../models/operations/setprimarydomainresponse.md)>**
|
||||
**Promise<[operations.SetPrimaryDomainResponseBody](../../models/operations/setprimarydomainresponsebody.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## transfer
|
||||
|
||||
@@ -244,12 +304,12 @@ const dub = new Dub({
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.domains.transfer({
|
||||
slug: "acme.com",
|
||||
requestBody: {
|
||||
newWorkspaceId: "<value>",
|
||||
},
|
||||
});
|
||||
const slug = "acme.com";
|
||||
const requestBody = {
|
||||
newWorkspaceId: "<value>",
|
||||
};
|
||||
|
||||
const result = await dub.domains.transfer(slug, requestBody);
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
@@ -260,18 +320,28 @@ run();
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `request` | [operations.TransferDomainRequest](../../models/operations/transferdomainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||
| Parameter | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `slug` | *string* | :heavy_check_mark: | The domain name. | [object Object] |
|
||||
| `requestBody` | [operations.TransferDomainRequestBody](../../models/operations/transferdomainrequestbody.md) | :heavy_minus_sign: | N/A | |
|
||||
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | |
|
||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |
|
||||
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.TransferDomainResponse](../../models/operations/transferdomainresponse.md)>**
|
||||
**Promise<[operations.TransferDomainResponseBody](../../models/operations/transferdomainresponsebody.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
@@ -50,12 +50,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetLinksResponse](../../models/operations/getlinksresponse.md)>**
|
||||
**Promise<[components.LinkSchema[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## create
|
||||
|
||||
@@ -98,12 +107,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.CreateLinkResponse](../../models/operations/createlinkresponse.md)>**
|
||||
**Promise<[components.LinkSchema](../../models/components/linkschema.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## count
|
||||
|
||||
@@ -144,12 +162,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetLinksCountResponse](../../models/operations/getlinkscountresponse.md)>**
|
||||
**Promise<[number](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## get
|
||||
|
||||
@@ -189,12 +216,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetLinkInfoResponse](../../models/operations/getlinkinforesponse.md)>**
|
||||
**Promise<[components.LinkSchema](../../models/components/linkschema.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## update
|
||||
|
||||
@@ -241,12 +277,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.EditLinkResponse](../../models/operations/editlinkresponse.md)>**
|
||||
**Promise<[components.LinkSchema](../../models/components/linkschema.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## delete
|
||||
|
||||
@@ -285,12 +330,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.DeleteLinkResponse](../../models/operations/deletelinkresponse.md)>**
|
||||
**Promise<[operations.DeleteLinkResponseBody](../../models/operations/deletelinkresponsebody.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## createMany
|
||||
|
||||
@@ -335,9 +389,18 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.BulkCreateLinksResponse](../../models/operations/bulkcreatelinksresponse.md)>**
|
||||
**Promise<[components.LinkSchema[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
@@ -40,9 +40,18 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetQRCodeResponse](../../models/operations/getqrcoderesponse.md)>**
|
||||
**Promise<[string](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
@@ -41,12 +41,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetTagsResponse](../../models/operations/gettagsresponse.md)>**
|
||||
**Promise<[components.TagSchema[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## create
|
||||
|
||||
@@ -85,9 +94,18 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.CreateTagResponse](../../models/operations/createtagresponse.md)>**
|
||||
**Promise<[components.TagSchema](../../models/components/tagschema.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
@@ -41,12 +41,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetWorkspacesResponse](../../models/operations/getworkspacesresponse.md)>**
|
||||
**Promise<[components.WorkspaceSchema[]](../../models/.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## create
|
||||
|
||||
@@ -86,12 +95,21 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.CreateWorkspaceResponse](../../models/operations/createworkspaceresponse.md)>**
|
||||
**Promise<[components.WorkspaceSchema](../../models/components/workspaceschema.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## get
|
||||
|
||||
@@ -130,9 +148,18 @@ run();
|
||||
|
||||
### Response
|
||||
|
||||
**Promise<[operations.GetWorkspaceResponse](../../models/operations/getworkspaceresponse.md)>**
|
||||
**Promise<[components.WorkspaceSchema](../../models/components/workspaceschema.md)>**
|
||||
### Errors
|
||||
|
||||
| Error Object | Status Code | Content Type |
|
||||
| --------------- | --------------- | --------------- |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
| Error Object | Status Code | Content Type |
|
||||
| -------------------------- | -------------------------- | -------------------------- |
|
||||
| errors.BadRequest | 400 | application/json |
|
||||
| errors.Unauthorized | 401 | application/json |
|
||||
| errors.Forbidden | 403 | application/json |
|
||||
| errors.NotFound | 404 | application/json |
|
||||
| errors.Conflict | 409 | application/json |
|
||||
| errors.InviteExpired | 410 | application/json |
|
||||
| errors.UnprocessableEntity | 422 | application/json |
|
||||
| errors.RateLimitExceeded | 429 | application/json |
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.24.0",
|
||||
"version": "0.24.1",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./models/errors": "./src/models/errors/index.ts",
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.24.0",
|
||||
"version": "0.24.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dub",
|
||||
"version": "0.24.0",
|
||||
"version": "0.24.1",
|
||||
"devDependencies": {
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/node": "^20.12.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.24.0",
|
||||
"version": "0.24.1",
|
||||
"author": "Dub",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
||||
export const SDK_METADATA = {
|
||||
language: "typescript",
|
||||
openapiDocVersion: "0.0.1",
|
||||
sdkVersion: "0.24.0",
|
||||
genVersion: "2.311.1",
|
||||
userAgent: "speakeasy-sdk/typescript 0.24.0 2.311.1 0.0.1 dub",
|
||||
sdkVersion: "0.24.1",
|
||||
genVersion: "2.312.0",
|
||||
userAgent: "speakeasy-sdk/typescript 0.24.1 2.312.0 0.0.1 dub",
|
||||
} as const;
|
||||
|
||||
@@ -2,16 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
export * from "./badrequest";
|
||||
export * from "./conflict";
|
||||
export * from "./forbidden";
|
||||
export * from "./internalservererror";
|
||||
export * from "./inviteexpired";
|
||||
export * from "./linkschema";
|
||||
export * from "./notfound";
|
||||
export * from "./ratelimitexceeded";
|
||||
export * from "./security";
|
||||
export * from "./tagschema";
|
||||
export * from "./unauthorized";
|
||||
export * from "./unprocessableentity";
|
||||
export * from "./workspaceschema";
|
||||
|
||||
@@ -30,10 +30,37 @@ export type ErrorT = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type BadRequest = {
|
||||
/**
|
||||
* The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
||||
*/
|
||||
export type BadRequestData = {
|
||||
error: ErrorT;
|
||||
};
|
||||
|
||||
/**
|
||||
* The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
||||
*/
|
||||
export class BadRequest extends Error {
|
||||
error: ErrorT;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: BadRequestData;
|
||||
|
||||
constructor(err: BadRequestData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "BadRequest";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const Code$: z.ZodNativeEnum<typeof Code> = z.nativeEnum(Code);
|
||||
|
||||
@@ -91,9 +118,9 @@ export namespace BadRequest$ {
|
||||
error: z.lazy(() => ErrorT$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new BadRequest({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -101,12 +128,17 @@ export namespace BadRequest$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, BadRequest> = z
|
||||
.object({
|
||||
error: z.lazy(() => ErrorT$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(BadRequest)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => ErrorT$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -30,10 +30,37 @@ export type ConflictError = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type Conflict = {
|
||||
/**
|
||||
* This response is sent when a request conflicts with the current state of the server.
|
||||
*/
|
||||
export type ConflictData = {
|
||||
error: ConflictError;
|
||||
};
|
||||
|
||||
/**
|
||||
* This response is sent when a request conflicts with the current state of the server.
|
||||
*/
|
||||
export class Conflict extends Error {
|
||||
error: ConflictError;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: ConflictData;
|
||||
|
||||
constructor(err: ConflictData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "Conflict";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const ConflictCode$: z.ZodNativeEnum<typeof ConflictCode> = z.nativeEnum(ConflictCode);
|
||||
|
||||
@@ -91,9 +118,9 @@ export namespace Conflict$ {
|
||||
error: z.lazy(() => ConflictError$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new Conflict({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -101,12 +128,17 @@ export namespace Conflict$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Conflict> = z
|
||||
.object({
|
||||
error: z.lazy(() => ConflictError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(Conflict)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => ConflictError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -30,10 +30,37 @@ export type ForbiddenError = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type Forbidden = {
|
||||
/**
|
||||
* The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
||||
*/
|
||||
export type ForbiddenData = {
|
||||
error: ForbiddenError;
|
||||
};
|
||||
|
||||
/**
|
||||
* The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
||||
*/
|
||||
export class Forbidden extends Error {
|
||||
error: ForbiddenError;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: ForbiddenData;
|
||||
|
||||
constructor(err: ForbiddenData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "Forbidden";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const ForbiddenCode$: z.ZodNativeEnum<typeof ForbiddenCode> = z.nativeEnum(ForbiddenCode);
|
||||
|
||||
@@ -91,9 +118,9 @@ export namespace Forbidden$ {
|
||||
error: z.lazy(() => ForbiddenError$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new Forbidden({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -101,12 +128,17 @@ export namespace Forbidden$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Forbidden> = z
|
||||
.object({
|
||||
error: z.lazy(() => ForbiddenError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(Forbidden)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => ForbiddenError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -2,5 +2,14 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
export * from "./badrequest";
|
||||
export * from "./conflict";
|
||||
export * from "./forbidden";
|
||||
export * from "./internalservererror";
|
||||
export * from "./inviteexpired";
|
||||
export * from "./notfound";
|
||||
export * from "./ratelimitexceeded";
|
||||
export * from "./sdkerror";
|
||||
export * from "./sdkvalidationerror";
|
||||
export * from "./unauthorized";
|
||||
export * from "./unprocessableentity";
|
||||
|
||||
@@ -31,10 +31,37 @@ export type InternalServerErrorError = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type InternalServerError = {
|
||||
/**
|
||||
* The server has encountered a situation it does not know how to handle.
|
||||
*/
|
||||
export type InternalServerErrorData = {
|
||||
error: InternalServerErrorError;
|
||||
};
|
||||
|
||||
/**
|
||||
* The server has encountered a situation it does not know how to handle.
|
||||
*/
|
||||
export class InternalServerError extends Error {
|
||||
error: InternalServerErrorError;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: InternalServerErrorData;
|
||||
|
||||
constructor(err: InternalServerErrorData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "InternalServerError";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const InternalServerErrorCode$: z.ZodNativeEnum<typeof InternalServerErrorCode> =
|
||||
z.nativeEnum(InternalServerErrorCode);
|
||||
@@ -93,9 +120,9 @@ export namespace InternalServerError$ {
|
||||
error: z.lazy(() => InternalServerErrorError$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new InternalServerError({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -103,12 +130,17 @@ export namespace InternalServerError$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, InternalServerError> = z
|
||||
.object({
|
||||
error: z.lazy(() => InternalServerErrorError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(InternalServerError)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => InternalServerErrorError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -30,10 +30,37 @@ export type InviteExpiredError = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type InviteExpired = {
|
||||
/**
|
||||
* This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
||||
*/
|
||||
export type InviteExpiredData = {
|
||||
error: InviteExpiredError;
|
||||
};
|
||||
|
||||
/**
|
||||
* This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
||||
*/
|
||||
export class InviteExpired extends Error {
|
||||
error: InviteExpiredError;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: InviteExpiredData;
|
||||
|
||||
constructor(err: InviteExpiredData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "InviteExpired";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const InviteExpiredCode$: z.ZodNativeEnum<typeof InviteExpiredCode> =
|
||||
z.nativeEnum(InviteExpiredCode);
|
||||
@@ -92,9 +119,9 @@ export namespace InviteExpired$ {
|
||||
error: z.lazy(() => InviteExpiredError$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new InviteExpired({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -102,12 +129,17 @@ export namespace InviteExpired$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, InviteExpired> = z
|
||||
.object({
|
||||
error: z.lazy(() => InviteExpiredError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(InviteExpired)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => InviteExpiredError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -30,10 +30,37 @@ export type NotFoundError = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type NotFound = {
|
||||
/**
|
||||
* The server cannot find the requested resource.
|
||||
*/
|
||||
export type NotFoundData = {
|
||||
error: NotFoundError;
|
||||
};
|
||||
|
||||
/**
|
||||
* The server cannot find the requested resource.
|
||||
*/
|
||||
export class NotFound extends Error {
|
||||
error: NotFoundError;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: NotFoundData;
|
||||
|
||||
constructor(err: NotFoundData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "NotFound";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const NotFoundCode$: z.ZodNativeEnum<typeof NotFoundCode> = z.nativeEnum(NotFoundCode);
|
||||
|
||||
@@ -91,9 +118,9 @@ export namespace NotFound$ {
|
||||
error: z.lazy(() => NotFoundError$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new NotFound({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -101,12 +128,17 @@ export namespace NotFound$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, NotFound> = z
|
||||
.object({
|
||||
error: z.lazy(() => NotFoundError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(NotFound)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => NotFoundError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -31,10 +31,37 @@ export type RateLimitExceededError = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type RateLimitExceeded = {
|
||||
/**
|
||||
* The user has sent too many requests in a given amount of time ("rate limiting")
|
||||
*/
|
||||
export type RateLimitExceededData = {
|
||||
error: RateLimitExceededError;
|
||||
};
|
||||
|
||||
/**
|
||||
* The user has sent too many requests in a given amount of time ("rate limiting")
|
||||
*/
|
||||
export class RateLimitExceeded extends Error {
|
||||
error: RateLimitExceededError;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: RateLimitExceededData;
|
||||
|
||||
constructor(err: RateLimitExceededData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "RateLimitExceeded";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const RateLimitExceededCode$: z.ZodNativeEnum<typeof RateLimitExceededCode> =
|
||||
z.nativeEnum(RateLimitExceededCode);
|
||||
@@ -93,9 +120,9 @@ export namespace RateLimitExceeded$ {
|
||||
error: z.lazy(() => RateLimitExceededError$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new RateLimitExceeded({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -103,12 +130,17 @@ export namespace RateLimitExceeded$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RateLimitExceeded> = z
|
||||
.object({
|
||||
error: z.lazy(() => RateLimitExceededError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(RateLimitExceeded)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => RateLimitExceededError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -30,10 +30,37 @@ export type UnauthorizedError = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type Unauthorized = {
|
||||
/**
|
||||
* Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
||||
*/
|
||||
export type UnauthorizedData = {
|
||||
error: UnauthorizedError;
|
||||
};
|
||||
|
||||
/**
|
||||
* Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
||||
*/
|
||||
export class Unauthorized extends Error {
|
||||
error: UnauthorizedError;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: UnauthorizedData;
|
||||
|
||||
constructor(err: UnauthorizedData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "Unauthorized";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const UnauthorizedCode$: z.ZodNativeEnum<typeof UnauthorizedCode> =
|
||||
z.nativeEnum(UnauthorizedCode);
|
||||
@@ -92,9 +119,9 @@ export namespace Unauthorized$ {
|
||||
error: z.lazy(() => UnauthorizedError$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new Unauthorized({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -102,12 +129,17 @@ export namespace Unauthorized$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Unauthorized> = z
|
||||
.object({
|
||||
error: z.lazy(() => UnauthorizedError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(Unauthorized)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => UnauthorizedError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -31,10 +31,37 @@ export type UnprocessableEntityError = {
|
||||
docUrl?: string | undefined;
|
||||
};
|
||||
|
||||
export type UnprocessableEntity = {
|
||||
/**
|
||||
* The request was well-formed but was unable to be followed due to semantic errors.
|
||||
*/
|
||||
export type UnprocessableEntityData = {
|
||||
error: UnprocessableEntityError;
|
||||
};
|
||||
|
||||
/**
|
||||
* The request was well-formed but was unable to be followed due to semantic errors.
|
||||
*/
|
||||
export class UnprocessableEntity extends Error {
|
||||
error: UnprocessableEntityError;
|
||||
|
||||
/** The original data that was passed to this error instance. */
|
||||
data$: UnprocessableEntityData;
|
||||
|
||||
constructor(err: UnprocessableEntityData) {
|
||||
super("");
|
||||
this.data$ = err;
|
||||
|
||||
this.error = err.error;
|
||||
|
||||
this.message =
|
||||
"message" in err && typeof err.message === "string"
|
||||
? err.message
|
||||
: "API error occurred";
|
||||
|
||||
this.name = "UnprocessableEntity";
|
||||
}
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const UnprocessableEntityCode$: z.ZodNativeEnum<typeof UnprocessableEntityCode> =
|
||||
z.nativeEnum(UnprocessableEntityCode);
|
||||
@@ -93,9 +120,9 @@ export namespace UnprocessableEntity$ {
|
||||
error: z.lazy(() => UnprocessableEntityError$.inboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
return new UnprocessableEntity({
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
@@ -103,12 +130,17 @@ export namespace UnprocessableEntity$ {
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UnprocessableEntity> = z
|
||||
.object({
|
||||
error: z.lazy(() => UnprocessableEntityError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
});
|
||||
.instanceof(UnprocessableEntity)
|
||||
.transform((v) => v.data$)
|
||||
.pipe(
|
||||
z
|
||||
.object({
|
||||
error: z.lazy(() => UnprocessableEntityError$.outboundSchema),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
error: v.error,
|
||||
};
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -2,7 +2,6 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import * as components from "../components";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -98,18 +97,6 @@ export type AddDomainResponseBody = {
|
||||
clicks?: number | undefined;
|
||||
};
|
||||
|
||||
export type AddDomainResponse =
|
||||
| components.BadRequest
|
||||
| components.Unauthorized
|
||||
| components.Forbidden
|
||||
| components.NotFound
|
||||
| components.Conflict
|
||||
| components.InviteExpired
|
||||
| components.UnprocessableEntity
|
||||
| components.RateLimitExceeded
|
||||
| components.InternalServerError
|
||||
| AddDomainResponseBody;
|
||||
|
||||
/** @internal */
|
||||
export const Type$: z.ZodNativeEnum<typeof Type> = z.nativeEnum(Type);
|
||||
|
||||
@@ -255,54 +242,3 @@ export namespace AddDomainResponseBody$ {
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace AddDomainResponse$ {
|
||||
export type Inbound =
|
||||
| components.BadRequest$.Inbound
|
||||
| components.Unauthorized$.Inbound
|
||||
| components.Forbidden$.Inbound
|
||||
| components.NotFound$.Inbound
|
||||
| components.Conflict$.Inbound
|
||||
| components.InviteExpired$.Inbound
|
||||
| components.UnprocessableEntity$.Inbound
|
||||
| components.RateLimitExceeded$.Inbound
|
||||
| components.InternalServerError$.Inbound
|
||||
| AddDomainResponseBody$.Inbound;
|
||||
|
||||
export type Outbound =
|
||||
| components.BadRequest$.Outbound
|
||||
| components.Unauthorized$.Outbound
|
||||
| components.Forbidden$.Outbound
|
||||
| components.NotFound$.Outbound
|
||||
| components.Conflict$.Outbound
|
||||
| components.InviteExpired$.Outbound
|
||||
| components.UnprocessableEntity$.Outbound
|
||||
| components.RateLimitExceeded$.Outbound
|
||||
| components.InternalServerError$.Outbound
|
||||
| AddDomainResponseBody$.Outbound;
|
||||
export const inboundSchema: z.ZodType<AddDomainResponse, z.ZodTypeDef, Inbound> = z.union([
|
||||
components.BadRequest$.inboundSchema,
|
||||
components.Unauthorized$.inboundSchema,
|
||||
components.Forbidden$.inboundSchema,
|
||||
components.NotFound$.inboundSchema,
|
||||
components.Conflict$.inboundSchema,
|
||||
components.InviteExpired$.inboundSchema,
|
||||
components.UnprocessableEntity$.inboundSchema,
|
||||
components.RateLimitExceeded$.inboundSchema,
|
||||
components.InternalServerError$.inboundSchema,
|
||||
z.lazy(() => AddDomainResponseBody$.inboundSchema),
|
||||
]);
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddDomainResponse> = z.union([
|
||||
components.BadRequest$.outboundSchema,
|
||||
components.Unauthorized$.outboundSchema,
|
||||
components.Forbidden$.outboundSchema,
|
||||
components.NotFound$.outboundSchema,
|
||||
components.Conflict$.outboundSchema,
|
||||
components.InviteExpired$.outboundSchema,
|
||||
components.UnprocessableEntity$.outboundSchema,
|
||||
components.RateLimitExceeded$.outboundSchema,
|
||||
components.InternalServerError$.outboundSchema,
|
||||
z.lazy(() => AddDomainResponseBody$.outboundSchema),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import * as components from "../components";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -351,18 +350,6 @@ export type RequestBody = {
|
||||
geo?: BulkCreateLinksGeo | null | undefined;
|
||||
};
|
||||
|
||||
export type BulkCreateLinksResponse =
|
||||
| components.BadRequest
|
||||
| components.Unauthorized
|
||||
| components.Forbidden
|
||||
| components.NotFound
|
||||
| components.Conflict
|
||||
| components.InviteExpired
|
||||
| components.UnprocessableEntity
|
||||
| components.RateLimitExceeded
|
||||
| components.InternalServerError
|
||||
| Array<components.LinkSchema>;
|
||||
|
||||
/** @internal */
|
||||
export namespace BulkCreateLinksTagIds$ {
|
||||
export type Inbound = string | Array<string>;
|
||||
@@ -2046,57 +2033,3 @@ export namespace RequestBody$ {
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace BulkCreateLinksResponse$ {
|
||||
export type Inbound =
|
||||
| components.BadRequest$.Inbound
|
||||
| components.Unauthorized$.Inbound
|
||||
| components.Forbidden$.Inbound
|
||||
| components.NotFound$.Inbound
|
||||
| components.Conflict$.Inbound
|
||||
| components.InviteExpired$.Inbound
|
||||
| components.UnprocessableEntity$.Inbound
|
||||
| components.RateLimitExceeded$.Inbound
|
||||
| components.InternalServerError$.Inbound
|
||||
| Array<components.LinkSchema$.Inbound>;
|
||||
|
||||
export type Outbound =
|
||||
| components.BadRequest$.Outbound
|
||||
| components.Unauthorized$.Outbound
|
||||
| components.Forbidden$.Outbound
|
||||
| components.NotFound$.Outbound
|
||||
| components.Conflict$.Outbound
|
||||
| components.InviteExpired$.Outbound
|
||||
| components.UnprocessableEntity$.Outbound
|
||||
| components.RateLimitExceeded$.Outbound
|
||||
| components.InternalServerError$.Outbound
|
||||
| Array<components.LinkSchema$.Outbound>;
|
||||
export const inboundSchema: z.ZodType<BulkCreateLinksResponse, z.ZodTypeDef, Inbound> = z.union(
|
||||
[
|
||||
components.BadRequest$.inboundSchema,
|
||||
components.Unauthorized$.inboundSchema,
|
||||
components.Forbidden$.inboundSchema,
|
||||
components.NotFound$.inboundSchema,
|
||||
components.Conflict$.inboundSchema,
|
||||
components.InviteExpired$.inboundSchema,
|
||||
components.UnprocessableEntity$.inboundSchema,
|
||||
components.RateLimitExceeded$.inboundSchema,
|
||||
components.InternalServerError$.inboundSchema,
|
||||
z.array(components.LinkSchema$.inboundSchema),
|
||||
]
|
||||
);
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, BulkCreateLinksResponse> =
|
||||
z.union([
|
||||
components.BadRequest$.outboundSchema,
|
||||
components.Unauthorized$.outboundSchema,
|
||||
components.Forbidden$.outboundSchema,
|
||||
components.NotFound$.outboundSchema,
|
||||
components.Conflict$.outboundSchema,
|
||||
components.InviteExpired$.outboundSchema,
|
||||
components.UnprocessableEntity$.outboundSchema,
|
||||
components.RateLimitExceeded$.outboundSchema,
|
||||
components.InternalServerError$.outboundSchema,
|
||||
z.array(components.LinkSchema$.outboundSchema),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import * as components from "../components";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -351,18 +350,6 @@ export type CreateLinkRequestBody = {
|
||||
geo?: Geo | null | undefined;
|
||||
};
|
||||
|
||||
export type CreateLinkResponse =
|
||||
| components.BadRequest
|
||||
| components.Unauthorized
|
||||
| components.Forbidden
|
||||
| components.NotFound
|
||||
| components.Conflict
|
||||
| components.InviteExpired
|
||||
| components.UnprocessableEntity
|
||||
| components.RateLimitExceeded
|
||||
| components.InternalServerError
|
||||
| components.LinkSchema;
|
||||
|
||||
/** @internal */
|
||||
export namespace TagIds$ {
|
||||
export type Inbound = string | Array<string>;
|
||||
@@ -2047,54 +2034,3 @@ export namespace CreateLinkRequestBody$ {
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace CreateLinkResponse$ {
|
||||
export type Inbound =
|
||||
| components.BadRequest$.Inbound
|
||||
| components.Unauthorized$.Inbound
|
||||
| components.Forbidden$.Inbound
|
||||
| components.NotFound$.Inbound
|
||||
| components.Conflict$.Inbound
|
||||
| components.InviteExpired$.Inbound
|
||||
| components.UnprocessableEntity$.Inbound
|
||||
| components.RateLimitExceeded$.Inbound
|
||||
| components.InternalServerError$.Inbound
|
||||
| components.LinkSchema$.Inbound;
|
||||
|
||||
export type Outbound =
|
||||
| components.BadRequest$.Outbound
|
||||
| components.Unauthorized$.Outbound
|
||||
| components.Forbidden$.Outbound
|
||||
| components.NotFound$.Outbound
|
||||
| components.Conflict$.Outbound
|
||||
| components.InviteExpired$.Outbound
|
||||
| components.UnprocessableEntity$.Outbound
|
||||
| components.RateLimitExceeded$.Outbound
|
||||
| components.InternalServerError$.Outbound
|
||||
| components.LinkSchema$.Outbound;
|
||||
export const inboundSchema: z.ZodType<CreateLinkResponse, z.ZodTypeDef, Inbound> = z.union([
|
||||
components.BadRequest$.inboundSchema,
|
||||
components.Unauthorized$.inboundSchema,
|
||||
components.Forbidden$.inboundSchema,
|
||||
components.NotFound$.inboundSchema,
|
||||
components.Conflict$.inboundSchema,
|
||||
components.InviteExpired$.inboundSchema,
|
||||
components.UnprocessableEntity$.inboundSchema,
|
||||
components.RateLimitExceeded$.inboundSchema,
|
||||
components.InternalServerError$.inboundSchema,
|
||||
components.LinkSchema$.inboundSchema,
|
||||
]);
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkResponse> = z.union([
|
||||
components.BadRequest$.outboundSchema,
|
||||
components.Unauthorized$.outboundSchema,
|
||||
components.Forbidden$.outboundSchema,
|
||||
components.NotFound$.outboundSchema,
|
||||
components.Conflict$.outboundSchema,
|
||||
components.InviteExpired$.outboundSchema,
|
||||
components.UnprocessableEntity$.outboundSchema,
|
||||
components.RateLimitExceeded$.outboundSchema,
|
||||
components.InternalServerError$.outboundSchema,
|
||||
components.LinkSchema$.outboundSchema,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import * as components from "../components";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -33,18 +32,6 @@ export type CreateTagRequestBody = {
|
||||
color?: Color | undefined;
|
||||
};
|
||||
|
||||
export type CreateTagResponse =
|
||||
| components.BadRequest
|
||||
| components.Unauthorized
|
||||
| components.Forbidden
|
||||
| components.NotFound
|
||||
| components.Conflict
|
||||
| components.InviteExpired
|
||||
| components.UnprocessableEntity
|
||||
| components.RateLimitExceeded
|
||||
| components.InternalServerError
|
||||
| components.TagSchema;
|
||||
|
||||
/** @internal */
|
||||
export const Color$: z.ZodNativeEnum<typeof Color> = z.nativeEnum(Color);
|
||||
|
||||
@@ -84,54 +71,3 @@ export namespace CreateTagRequestBody$ {
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace CreateTagResponse$ {
|
||||
export type Inbound =
|
||||
| components.BadRequest$.Inbound
|
||||
| components.Unauthorized$.Inbound
|
||||
| components.Forbidden$.Inbound
|
||||
| components.NotFound$.Inbound
|
||||
| components.Conflict$.Inbound
|
||||
| components.InviteExpired$.Inbound
|
||||
| components.UnprocessableEntity$.Inbound
|
||||
| components.RateLimitExceeded$.Inbound
|
||||
| components.InternalServerError$.Inbound
|
||||
| components.TagSchema$.Inbound;
|
||||
|
||||
export type Outbound =
|
||||
| components.BadRequest$.Outbound
|
||||
| components.Unauthorized$.Outbound
|
||||
| components.Forbidden$.Outbound
|
||||
| components.NotFound$.Outbound
|
||||
| components.Conflict$.Outbound
|
||||
| components.InviteExpired$.Outbound
|
||||
| components.UnprocessableEntity$.Outbound
|
||||
| components.RateLimitExceeded$.Outbound
|
||||
| components.InternalServerError$.Outbound
|
||||
| components.TagSchema$.Outbound;
|
||||
export const inboundSchema: z.ZodType<CreateTagResponse, z.ZodTypeDef, Inbound> = z.union([
|
||||
components.BadRequest$.inboundSchema,
|
||||
components.Unauthorized$.inboundSchema,
|
||||
components.Forbidden$.inboundSchema,
|
||||
components.NotFound$.inboundSchema,
|
||||
components.Conflict$.inboundSchema,
|
||||
components.InviteExpired$.inboundSchema,
|
||||
components.UnprocessableEntity$.inboundSchema,
|
||||
components.RateLimitExceeded$.inboundSchema,
|
||||
components.InternalServerError$.inboundSchema,
|
||||
components.TagSchema$.inboundSchema,
|
||||
]);
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagResponse> = z.union([
|
||||
components.BadRequest$.outboundSchema,
|
||||
components.Unauthorized$.outboundSchema,
|
||||
components.Forbidden$.outboundSchema,
|
||||
components.NotFound$.outboundSchema,
|
||||
components.Conflict$.outboundSchema,
|
||||
components.InviteExpired$.outboundSchema,
|
||||
components.UnprocessableEntity$.outboundSchema,
|
||||
components.RateLimitExceeded$.outboundSchema,
|
||||
components.InternalServerError$.outboundSchema,
|
||||
components.TagSchema$.outboundSchema,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import * as components from "../components";
|
||||
import * as z from "zod";
|
||||
|
||||
export type CreateWorkspaceRequestBody = {
|
||||
@@ -11,18 +10,6 @@ export type CreateWorkspaceRequestBody = {
|
||||
domain?: string | undefined;
|
||||
};
|
||||
|
||||
export type CreateWorkspaceResponse =
|
||||
| components.BadRequest
|
||||
| components.Unauthorized
|
||||
| components.Forbidden
|
||||
| components.NotFound
|
||||
| components.Conflict
|
||||
| components.InviteExpired
|
||||
| components.UnprocessableEntity
|
||||
| components.RateLimitExceeded
|
||||
| components.InternalServerError
|
||||
| components.WorkspaceSchema;
|
||||
|
||||
/** @internal */
|
||||
export namespace CreateWorkspaceRequestBody$ {
|
||||
export type Inbound = {
|
||||
@@ -65,57 +52,3 @@ export namespace CreateWorkspaceRequestBody$ {
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace CreateWorkspaceResponse$ {
|
||||
export type Inbound =
|
||||
| components.BadRequest$.Inbound
|
||||
| components.Unauthorized$.Inbound
|
||||
| components.Forbidden$.Inbound
|
||||
| components.NotFound$.Inbound
|
||||
| components.Conflict$.Inbound
|
||||
| components.InviteExpired$.Inbound
|
||||
| components.UnprocessableEntity$.Inbound
|
||||
| components.RateLimitExceeded$.Inbound
|
||||
| components.InternalServerError$.Inbound
|
||||
| components.WorkspaceSchema$.Inbound;
|
||||
|
||||
export type Outbound =
|
||||
| components.BadRequest$.Outbound
|
||||
| components.Unauthorized$.Outbound
|
||||
| components.Forbidden$.Outbound
|
||||
| components.NotFound$.Outbound
|
||||
| components.Conflict$.Outbound
|
||||
| components.InviteExpired$.Outbound
|
||||
| components.UnprocessableEntity$.Outbound
|
||||
| components.RateLimitExceeded$.Outbound
|
||||
| components.InternalServerError$.Outbound
|
||||
| components.WorkspaceSchema$.Outbound;
|
||||
export const inboundSchema: z.ZodType<CreateWorkspaceResponse, z.ZodTypeDef, Inbound> = z.union(
|
||||
[
|
||||
components.BadRequest$.inboundSchema,
|
||||
components.Unauthorized$.inboundSchema,
|
||||
components.Forbidden$.inboundSchema,
|
||||
components.NotFound$.inboundSchema,
|
||||
components.Conflict$.inboundSchema,
|
||||
components.InviteExpired$.inboundSchema,
|
||||
components.UnprocessableEntity$.inboundSchema,
|
||||
components.RateLimitExceeded$.inboundSchema,
|
||||
components.InternalServerError$.inboundSchema,
|
||||
components.WorkspaceSchema$.inboundSchema,
|
||||
]
|
||||
);
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateWorkspaceResponse> =
|
||||
z.union([
|
||||
components.BadRequest$.outboundSchema,
|
||||
components.Unauthorized$.outboundSchema,
|
||||
components.Forbidden$.outboundSchema,
|
||||
components.NotFound$.outboundSchema,
|
||||
components.Conflict$.outboundSchema,
|
||||
components.InviteExpired$.outboundSchema,
|
||||
components.UnprocessableEntity$.outboundSchema,
|
||||
components.RateLimitExceeded$.outboundSchema,
|
||||
components.InternalServerError$.outboundSchema,
|
||||
components.WorkspaceSchema$.outboundSchema,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import * as components from "../components";
|
||||
import * as z from "zod";
|
||||
|
||||
export type DeleteDomainRequest = {
|
||||
@@ -22,18 +21,6 @@ export type DeleteDomainResponseBody = {
|
||||
slug: string;
|
||||
};
|
||||
|
||||
export type DeleteDomainResponse =
|
||||
| DeleteDomainResponseBody
|
||||
| components.BadRequest
|
||||
| components.Unauthorized
|
||||
| components.Forbidden
|
||||
| components.NotFound
|
||||
| components.Conflict
|
||||
| components.InviteExpired
|
||||
| components.UnprocessableEntity
|
||||
| components.RateLimitExceeded
|
||||
| components.InternalServerError;
|
||||
|
||||
/** @internal */
|
||||
export namespace DeleteDomainRequest$ {
|
||||
export type Inbound = {
|
||||
@@ -95,54 +82,3 @@ export namespace DeleteDomainResponseBody$ {
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace DeleteDomainResponse$ {
|
||||
export type Inbound =
|
||||
| DeleteDomainResponseBody$.Inbound
|
||||
| components.BadRequest$.Inbound
|
||||
| components.Unauthorized$.Inbound
|
||||
| components.Forbidden$.Inbound
|
||||
| components.NotFound$.Inbound
|
||||
| components.Conflict$.Inbound
|
||||
| components.InviteExpired$.Inbound
|
||||
| components.UnprocessableEntity$.Inbound
|
||||
| components.RateLimitExceeded$.Inbound
|
||||
| components.InternalServerError$.Inbound;
|
||||
|
||||
export type Outbound =
|
||||
| DeleteDomainResponseBody$.Outbound
|
||||
| components.BadRequest$.Outbound
|
||||
| components.Unauthorized$.Outbound
|
||||
| components.Forbidden$.Outbound
|
||||
| components.NotFound$.Outbound
|
||||
| components.Conflict$.Outbound
|
||||
| components.InviteExpired$.Outbound
|
||||
| components.UnprocessableEntity$.Outbound
|
||||
| components.RateLimitExceeded$.Outbound
|
||||
| components.InternalServerError$.Outbound;
|
||||
export const inboundSchema: z.ZodType<DeleteDomainResponse, z.ZodTypeDef, Inbound> = z.union([
|
||||
z.lazy(() => DeleteDomainResponseBody$.inboundSchema),
|
||||
components.BadRequest$.inboundSchema,
|
||||
components.Unauthorized$.inboundSchema,
|
||||
components.Forbidden$.inboundSchema,
|
||||
components.NotFound$.inboundSchema,
|
||||
components.Conflict$.inboundSchema,
|
||||
components.InviteExpired$.inboundSchema,
|
||||
components.UnprocessableEntity$.inboundSchema,
|
||||
components.RateLimitExceeded$.inboundSchema,
|
||||
components.InternalServerError$.inboundSchema,
|
||||
]);
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainResponse> = z.union([
|
||||
z.lazy(() => DeleteDomainResponseBody$.outboundSchema),
|
||||
components.BadRequest$.outboundSchema,
|
||||
components.Unauthorized$.outboundSchema,
|
||||
components.Forbidden$.outboundSchema,
|
||||
components.NotFound$.outboundSchema,
|
||||
components.Conflict$.outboundSchema,
|
||||
components.InviteExpired$.outboundSchema,
|
||||
components.UnprocessableEntity$.outboundSchema,
|
||||
components.RateLimitExceeded$.outboundSchema,
|
||||
components.InternalServerError$.outboundSchema,
|
||||
]);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user