ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.260.6 (#81)

Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
github-actions[bot]
2024-04-19 11:28:50 +05:30
committed by GitHub
parent a829b4340d
commit 6a0be4086f
156 changed files with 3654 additions and 3564 deletions

View File

@@ -1,5 +1,4 @@
/* **/*
/docs/**/*.md
!/**/*.ts !/**/*.ts
!/**/*.js !/**/*.js
!/**/*.map !/**/*.map

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: f28179cc-ef59-426d-9e85-60cec22fc642 id: f28179cc-ef59-426d-9e85-60cec22fc642
management: management:
docChecksum: 59b2c58aae7e82783142168d3327e8c8 docChecksum: 9b3afff112a002c5cdcb95800b733810
docVersion: 0.0.1 docVersion: 0.0.1
speakeasyVersion: 1.257.1 speakeasyVersion: 1.260.6
generationVersion: 2.308.2 generationVersion: 2.311.1
releaseVersion: 0.23.1 releaseVersion: 0.24.0
configChecksum: bfc60f1488f62d05649364aba10d384b configChecksum: 7295cbecb89a751fe5c558989aade82b
repoURL: https://github.com/dubinc/dub-node.git repoURL: https://github.com/dubinc/dub-node.git
installationURL: https://github.com/dubinc/dub-node installationURL: https://github.com/dubinc/dub-node
published: true published: true
@@ -14,7 +14,7 @@ features:
typescript: typescript:
acceptHeaders: 2.81.1 acceptHeaders: 2.81.1
constsAndDefaults: 0.1.5 constsAndDefaults: 0.1.5
core: 3.7.2 core: 3.8.0
deprecations: 2.81.1 deprecations: 2.81.1
examples: 2.81.3 examples: 2.81.3
flattening: 2.81.1 flattening: 2.81.1
@@ -37,6 +37,7 @@ generatedFiles:
- .eslintrc.js - .eslintrc.js
- .npmignore - .npmignore
- RUNTIMES.md - RUNTIMES.md
- jsr.json
- package.json - package.json
- src/lib/base64.ts - src/lib/base64.ts
- src/lib/config.ts - src/lib/config.ts
@@ -55,19 +56,6 @@ generatedFiles:
- src/types/operations.ts - src/types/operations.ts
- src/types/rfcdate.ts - src/types/rfcdate.ts
- tsconfig.json - 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/getlinks.ts
- src/models/operations/createlink.ts - src/models/operations/createlink.ts
- src/models/operations/getlinkscount.ts - src/models/operations/getlinkscount.ts
@@ -86,6 +74,7 @@ generatedFiles:
- src/models/operations/getrefereranalytics.ts - src/models/operations/getrefereranalytics.ts
- src/models/operations/gettoplinks.ts - src/models/operations/gettoplinks.ts
- src/models/operations/gettopurls.ts - src/models/operations/gettopurls.ts
- src/models/operations/getworkspaces.ts
- src/models/operations/createworkspace.ts - src/models/operations/createworkspace.ts
- src/models/operations/getworkspace.ts - src/models/operations/getworkspace.ts
- src/models/operations/gettags.ts - src/models/operations/gettags.ts
@@ -97,138 +86,180 @@ generatedFiles:
- src/models/operations/setprimarydomain.ts - src/models/operations/setprimarydomain.ts
- src/models/operations/transferdomain.ts - src/models/operations/transferdomain.ts
- src/models/operations/getmetatags.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/errors/index.ts
- src/models/components/index.ts
- src/models/operations/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
- docs/models/components/geo.md - docs/models/components/geo.md
- docs/models/components/linkschema.md - docs/models/components/linkschema.md
- docs/models/components/color.md - docs/models/components/color.md
- docs/models/components/tagschema.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/plan.md
- docs/models/components/role.md - docs/models/components/role.md
- docs/models/components/users.md - docs/models/components/users.md
- docs/models/components/domains.md - docs/models/components/domains.md
- docs/models/components/workspaceschema.md - docs/models/components/workspaceschema.md
- docs/models/components/security.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/dub/README.md
- docs/sdks/links/README.md - docs/sdks/links/README.md
- docs/sdks/qrcodes/README.md - docs/sdks/qrcodes/README.md

View File

@@ -12,7 +12,7 @@ generation:
auth: auth:
oAuth2ClientCredentialsEnabled: false oAuth2ClientCredentialsEnabled: false
typescript: typescript:
version: 0.23.1 version: 0.24.0
additionalDependencies: additionalDependencies:
dependencies: {} dependencies: {}
devDependencies: devDependencies:

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.257.1 speakeasyVersion: 1.260.6
sources: sources:
my-first-source: {} my-first-source: {}
targets: targets:

View File

@@ -119,16 +119,7 @@ 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. 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 | | 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 | */* | | 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. 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.
@@ -158,42 +149,6 @@ async function run() {
console.error(err.rawValue); console.error(err.rawValue);
return; 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: { default: {
throw err; throw err;
} }

View File

@@ -107,3 +107,13 @@ Based on:
- [typescript v0.23.1] . - [typescript v0.23.1] .
### Releases ### Releases
- [NPM v0.23.1] https://www.npmjs.com/package/dub/v/0.23.1 - . - [NPM v0.23.1] https://www.npmjs.com/package/dub/v/0.23.1 - .
## 2024-04-19 01:12:16
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.260.6 (2.311.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.24.0] .
### Releases
- [NPM v0.24.0] https://www.npmjs.com/package/dub/v/0.24.0 - .

View File

@@ -0,0 +1,8 @@
# BadRequest
## Fields
| Field | Type | Required | Description |
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
| `error` | [components.ErrorT](../../models/components/errort.md) | :heavy_check_mark: | N/A |

View File

@@ -1,10 +1,8 @@
# Unauthorized # Conflict
Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `error` | [errors.UnauthorizedError](../../models/errors/unauthorizederror.md) | :heavy_check_mark: | N/A | | `error` | [components.ConflictError](../../models/components/conflicterror.md) | :heavy_check_mark: | N/A |

View File

@@ -5,6 +5,6 @@
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `code` | [errors.ConflictCode](../../models/errors/conflictcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | conflict | | `code` | [components.ConflictCode](../../models/components/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. | | `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 | | `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 |

View File

@@ -5,6 +5,6 @@
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `code` | [errors.Code](../../models/errors/code.md) | :heavy_check_mark: | A short code indicating the error code returned. | bad_request | | `code` | [components.Code](../../models/components/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. | | `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 | | `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 |

View File

@@ -1,10 +1,8 @@
# InviteExpired # Forbidden
This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `error` | [errors.InviteExpiredError](../../models/errors/inviteexpirederror.md) | :heavy_check_mark: | N/A | | `error` | [components.ForbiddenError](../../models/components/forbiddenerror.md) | :heavy_check_mark: | N/A |

View File

@@ -1,10 +1,10 @@
# InviteExpiredError # ForbiddenError
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `code` | [errors.InviteExpiredCode](../../models/errors/inviteexpiredcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | invite_expired | | `code` | [components.ForbiddenCode](../../models/components/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. | | `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#forbidden |

View File

@@ -0,0 +1,8 @@
# InternalServerError
## Fields
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `error` | [components.InternalServerErrorError](../../models/components/internalservererrorerror.md) | :heavy_check_mark: | N/A |

View File

@@ -0,0 +1,10 @@
# 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 |

View File

@@ -1,10 +1,8 @@
# RateLimitExceeded # InviteExpired
The user has sent too many requests in a given amount of time ("rate limiting")
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `error` | [errors.RateLimitExceededError](../../models/errors/ratelimitexceedederror.md) | :heavy_check_mark: | N/A | | `error` | [components.InviteExpiredError](../../models/components/inviteexpirederror.md) | :heavy_check_mark: | N/A |

View File

@@ -1,10 +1,10 @@
# RateLimitExceededError # InviteExpiredError
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `code` | [errors.RateLimitExceededCode](../../models/errors/ratelimitexceededcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | rate_limit_exceeded | | `code` | [components.InviteExpiredCode](../../models/components/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. | | `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 | | `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 |

View File

@@ -0,0 +1,8 @@
# NotFound
## Fields
| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `error` | [components.NotFoundError](../../models/components/notfounderror.md) | :heavy_check_mark: | N/A |

View File

@@ -5,6 +5,6 @@
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `code` | [errors.NotFoundCode](../../models/errors/notfoundcode.md) | :heavy_check_mark: | A short code indicating the error code returned. | not_found | | `code` | [components.NotFoundCode](../../models/components/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. | | `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 | | `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 |

View File

@@ -0,0 +1,8 @@
# RateLimitExceeded
## Fields
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `error` | [components.RateLimitExceededError](../../models/components/ratelimitexceedederror.md) | :heavy_check_mark: | N/A |

View File

@@ -0,0 +1,10 @@
# 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 |

View File

@@ -0,0 +1,8 @@
# Unauthorized
## Fields
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `error` | [components.UnauthorizedError](../../models/components/unauthorizederror.md) | :heavy_check_mark: | N/A |

View File

@@ -0,0 +1,10 @@
# 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 |

View File

@@ -0,0 +1,8 @@
# UnprocessableEntity
## Fields
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `error` | [components.UnprocessableEntityError](../../models/components/unprocessableentityerror.md) | :heavy_check_mark: | N/A |

View File

@@ -0,0 +1,10 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -1,10 +0,0 @@
# 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 |

View File

@@ -0,0 +1,2 @@
# AddDomainResponse

View File

@@ -0,0 +1,2 @@
# BulkCreateLinksResponse

View File

@@ -0,0 +1,2 @@
# CreateLinkResponse

View File

@@ -0,0 +1,2 @@
# CreateTagResponse

View File

@@ -0,0 +1,2 @@
# CreateWorkspaceResponse

View File

@@ -0,0 +1,2 @@
# DeleteDomainResponse

View File

@@ -0,0 +1,2 @@
# DeleteLinkResponse

View File

@@ -0,0 +1,2 @@
# EditDomainResponse

View File

@@ -0,0 +1,2 @@
# EditLinkResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.GetBrowserAnalyticsQueryParamInterval](../../models/operations/getbrowseranalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.GetBrowserAnalyticsQueryParamInterval](../../models/operations/getbrowseranalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetBrowserAnalyticsResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.GetCityAnalyticsQueryParamInterval](../../models/operations/getcityanalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.GetCityAnalyticsQueryParamInterval](../../models/operations/getcityanalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetCityAnalyticsResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.Interval](../../models/operations/interval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.Interval](../../models/operations/interval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetClicksAnalyticsResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.GetCountryAnalyticsQueryParamInterval](../../models/operations/getcountryanalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.GetCountryAnalyticsQueryParamInterval](../../models/operations/getcountryanalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetCountryAnalyticsResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.GetDeviceAnalyticsQueryParamInterval](../../models/operations/getdeviceanalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.GetDeviceAnalyticsQueryParamInterval](../../models/operations/getdeviceanalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetDeviceAnalyticsResponse

View File

@@ -0,0 +1,2 @@
# GetLinkInfoResponse

View File

@@ -0,0 +1,2 @@
# GetLinksCountResponse

View File

@@ -0,0 +1,2 @@
# GetLinksResponse

View File

@@ -3,6 +3,6 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
| `url` | *string* | :heavy_check_mark: | N/A | | `url` | *string* | :heavy_check_mark: | The URL to retrieve metatags for. | https://dub.co |

View File

@@ -7,6 +7,6 @@ The retrieved metatags
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `title` | *string* | :heavy_check_mark: | The meta title tag for the URL | Dub.co - Link Management for Modern Marketing Teams | | `title` | *string* | :heavy_check_mark: | The meta title tag for the URL. | Dub.co - Link Management for Modern Marketing Teams |
| `description` | *string* | :heavy_check_mark: | The meta description tag for the URL | Dub.co is the open-source link management infrastructure ... | | `description` | *string* | :heavy_check_mark: | The meta description tag for the URL. | Dub.co is the open-source link management infrastructure ... |
| `image` | *string* | :heavy_check_mark: | The OpenGraph image for the URL | https://assets.dub.co/thumbnail.jpg | | `image` | *string* | :heavy_check_mark: | The OpenGraph image for the URL. | https://assets.dub.co/thumbnail.jpg |

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.GetOSAnalyticsQueryParamInterval](../../models/operations/getosanalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.GetOSAnalyticsQueryParamInterval](../../models/operations/getosanalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetOSAnalyticsResponse

View File

@@ -0,0 +1,2 @@
# GetQRCodeResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.GetRefererAnalyticsQueryParamInterval](../../models/operations/getrefereranalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.GetRefererAnalyticsQueryParamInterval](../../models/operations/getrefereranalyticsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetRefererAnalyticsResponse

View File

@@ -0,0 +1,2 @@
# GetTagsResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.QueryParamInterval](../../models/operations/queryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.QueryParamInterval](../../models/operations/queryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetTimeseriesAnalyticsResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.GetTopLinksQueryParamInterval](../../models/operations/gettoplinksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.GetTopLinksQueryParamInterval](../../models/operations/gettoplinksqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetTopLinksResponse

View File

@@ -4,7 +4,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `domain` | *string* | :heavy_minus_sign: | The domain of the short link. | | `domain` | *string* | :heavy_minus_sign: | The domain of the short link. |
| `key` | *string* | :heavy_minus_sign: | The short link slug. | | `key` | *string* | :heavy_minus_sign: | The short link slug. |
| `interval` | [operations.GetTopURLsQueryParamInterval](../../models/operations/gettopurlsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. | | `interval` | [operations.GetTopURLsQueryParamInterval](../../models/operations/gettopurlsqueryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. |
@@ -15,5 +15,6 @@
| `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. | | `os` | *string* | :heavy_minus_sign: | The OS to retrieve analytics for. |
| `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. | | `referer` | *string* | :heavy_minus_sign: | The referer to retrieve analytics for. |
| `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. | | `url` | *string* | :heavy_minus_sign: | The URL to retrieve analytics for. |
| `excludeRoot` | *boolean* | :heavy_minus_sign: | Whether to exclude the root link from the response. |
| `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | `tagId` | *string* | :heavy_minus_sign: | The tag ID to retrieve analytics for. |
| `qr` | *boolean* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. |
| `root` | *boolean* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. |

View File

@@ -0,0 +1,2 @@
# GetTopURLsResponse

View File

@@ -0,0 +1,2 @@
# GetWorkspaceResponse

View File

@@ -0,0 +1,2 @@
# GetWorkspacesResponse

View File

@@ -0,0 +1,2 @@
# ListDomainsResponse

View File

@@ -0,0 +1,2 @@
# SetPrimaryDomainResponse

View File

@@ -0,0 +1,2 @@
# TransferDomainResponse

View File

@@ -49,20 +49,11 @@ run();
### Response ### Response
**Promise<[number](../../models/.md)>** **Promise<[operations.GetClicksAnalyticsResponse](../../models/operations/getclicksanalyticsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## timeseries ## timeseries
@@ -100,20 +91,11 @@ run();
### Response ### Response
**Promise<[operations.ResponseBody[]](../../models/.md)>** **Promise<[operations.GetTimeseriesAnalyticsResponse](../../models/operations/gettimeseriesanalyticsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## countries ## countries
@@ -151,20 +133,11 @@ run();
### Response ### Response
**Promise<[operations.GetCountryAnalyticsResponseBody[]](../../models/.md)>** **Promise<[operations.GetCountryAnalyticsResponse](../../models/operations/getcountryanalyticsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## cities ## cities
@@ -202,20 +175,11 @@ run();
### Response ### Response
**Promise<[operations.GetCityAnalyticsResponseBody[]](../../models/.md)>** **Promise<[operations.GetCityAnalyticsResponse](../../models/operations/getcityanalyticsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## devices ## devices
@@ -253,20 +217,11 @@ run();
### Response ### Response
**Promise<[operations.GetDeviceAnalyticsResponseBody[]](../../models/.md)>** **Promise<[operations.GetDeviceAnalyticsResponse](../../models/operations/getdeviceanalyticsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## browsers ## browsers
@@ -304,20 +259,11 @@ run();
### Response ### Response
**Promise<[operations.GetBrowserAnalyticsResponseBody[]](../../models/.md)>** **Promise<[operations.GetBrowserAnalyticsResponse](../../models/operations/getbrowseranalyticsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## os ## os
@@ -355,20 +301,11 @@ run();
### Response ### Response
**Promise<[operations.GetOSAnalyticsResponseBody[]](../../models/.md)>** **Promise<[operations.GetOSAnalyticsResponse](../../models/operations/getosanalyticsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## referers ## referers
@@ -406,20 +343,11 @@ run();
### Response ### Response
**Promise<[operations.GetRefererAnalyticsResponseBody[]](../../models/.md)>** **Promise<[operations.GetRefererAnalyticsResponse](../../models/operations/getrefereranalyticsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## topLinks ## topLinks
@@ -457,20 +385,11 @@ run();
### Response ### Response
**Promise<[operations.GetTopLinksResponseBody[]](../../models/.md)>** **Promise<[operations.GetTopLinksResponse](../../models/operations/gettoplinksresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## topUrls ## topUrls
@@ -508,18 +427,9 @@ run();
### Response ### Response
**Promise<[operations.GetTopURLsResponseBody[]](../../models/.md)>** **Promise<[operations.GetTopURLsResponse](../../models/operations/gettopurlsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |

View File

@@ -45,20 +45,11 @@ run();
### Response ### Response
**Promise<[operations.ListDomainsResponseBody[]](../../models/.md)>** **Promise<[operations.ListDomainsResponse](../../models/operations/listdomainsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## add ## add
@@ -98,20 +89,11 @@ run();
### Response ### Response
**Promise<[operations.AddDomainResponseBody](../../models/operations/adddomainresponsebody.md)>** **Promise<[operations.AddDomainResponse](../../models/operations/adddomainresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## delete ## delete
@@ -151,20 +133,11 @@ run();
### Response ### Response
**Promise<[operations.DeleteDomainResponseBody](../../models/operations/deletedomainresponsebody.md)>** **Promise<[operations.DeleteDomainResponse](../../models/operations/deletedomainresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## update ## update
@@ -205,20 +178,11 @@ run();
### Response ### Response
**Promise<[operations.EditDomainResponseBody](../../models/operations/editdomainresponsebody.md)>** **Promise<[operations.EditDomainResponse](../../models/operations/editdomainresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## setPrimary ## setPrimary
@@ -258,20 +222,11 @@ run();
### Response ### Response
**Promise<[operations.SetPrimaryDomainResponseBody](../../models/operations/setprimarydomainresponsebody.md)>** **Promise<[operations.SetPrimaryDomainResponse](../../models/operations/setprimarydomainresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## transfer ## transfer
@@ -314,18 +269,9 @@ run();
### Response ### Response
**Promise<[operations.TransferDomainResponseBody](../../models/operations/transferdomainresponsebody.md)>** **Promise<[operations.TransferDomainResponse](../../models/operations/transferdomainresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |

View File

@@ -50,20 +50,11 @@ run();
### Response ### Response
**Promise<[components.LinkSchema[]](../../models/.md)>** **Promise<[operations.GetLinksResponse](../../models/operations/getlinksresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## create ## create
@@ -107,20 +98,11 @@ run();
### Response ### Response
**Promise<[components.LinkSchema](../../models/components/linkschema.md)>** **Promise<[operations.CreateLinkResponse](../../models/operations/createlinkresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## count ## count
@@ -162,20 +144,11 @@ run();
### Response ### Response
**Promise<[number](../../models/.md)>** **Promise<[operations.GetLinksCountResponse](../../models/operations/getlinkscountresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## get ## get
@@ -216,20 +189,11 @@ run();
### Response ### Response
**Promise<[components.LinkSchema](../../models/components/linkschema.md)>** **Promise<[operations.GetLinkInfoResponse](../../models/operations/getlinkinforesponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## update ## update
@@ -277,20 +241,11 @@ run();
### Response ### Response
**Promise<[components.LinkSchema](../../models/components/linkschema.md)>** **Promise<[operations.EditLinkResponse](../../models/operations/editlinkresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## delete ## delete
@@ -330,20 +285,11 @@ run();
### Response ### Response
**Promise<[operations.DeleteLinkResponseBody](../../models/operations/deletelinkresponsebody.md)>** **Promise<[operations.DeleteLinkResponse](../../models/operations/deletelinkresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## createMany ## createMany
@@ -389,18 +335,9 @@ run();
### Response ### Response
**Promise<[components.LinkSchema[]](../../models/.md)>** **Promise<[operations.BulkCreateLinksResponse](../../models/operations/bulkcreatelinksresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |

View File

@@ -7,7 +7,7 @@
## get ## get
Retrieve the metatags for a URL Retrieve the metatags for a URL.
### Example Usage ### Example Usage
@@ -21,7 +21,7 @@ const dub = new Dub({
async function run() { async function run() {
const result = await dub.metatags.get({ const result = await dub.metatags.get({
url: "https://brief-micronutrient.org", url: "https://dub.co",
}); });
// Handle the result // Handle the result

View File

@@ -40,18 +40,9 @@ run();
### Response ### Response
**Promise<[string](../../models/.md)>** **Promise<[operations.GetQRCodeResponse](../../models/operations/getqrcoderesponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |

View File

@@ -41,20 +41,11 @@ run();
### Response ### Response
**Promise<[components.TagSchema[]](../../models/.md)>** **Promise<[operations.GetTagsResponse](../../models/operations/gettagsresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## create ## create
@@ -94,18 +85,9 @@ run();
### Response ### Response
**Promise<[components.TagSchema](../../models/components/tagschema.md)>** **Promise<[operations.CreateTagResponse](../../models/operations/createtagresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |

View File

@@ -41,20 +41,11 @@ run();
### Response ### Response
**Promise<[components.WorkspaceSchema[]](../../models/.md)>** **Promise<[operations.GetWorkspacesResponse](../../models/operations/getworkspacesresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## create ## create
@@ -95,20 +86,11 @@ run();
### Response ### Response
**Promise<[components.WorkspaceSchema](../../models/components/workspaceschema.md)>** **Promise<[operations.CreateWorkspaceResponse](../../models/operations/createworkspaceresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |
## get ## get
@@ -148,18 +130,9 @@ run();
### Response ### Response
**Promise<[components.WorkspaceSchema](../../models/components/workspaceschema.md)>** **Promise<[operations.GetWorkspaceResponse](../../models/operations/getworkspaceresponse.md)>**
### Errors ### Errors
| Error Object | Status Code | Content Type | | 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 | */* | | errors.SDKError | 4xx-5xx | */* |

26
jsr.json Normal file
View File

@@ -0,0 +1,26 @@
{
"name": "dub",
"version": "0.24.0",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
"./models/components": "./src/models/components/index.ts",
"./models/operations": "./src/models/operations/index.ts",
"./lib/config": "./src/lib/config.ts",
"./lib/http": "./src/lib/http.ts",
"./lib/retries": "./src/lib/retries.ts",
"./lib/sdks": "./src/lib/sdks.ts",
"./types": "./src/types/index.ts"
},
"publish": {
"include": [
"LICENSE",
"README.md",
"RUNTIMES.md",
"USAGE.md",
"src/**/*.ts"
]
}
}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "dub", "name": "dub",
"version": "0.23.1", "version": "0.24.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "dub", "name": "dub",
"version": "0.23.1", "version": "0.24.0",
"devDependencies": { "devDependencies": {
"@types/jsonpath": "^0.2.4", "@types/jsonpath": "^0.2.4",
"@types/node": "^20.12.7", "@types/node": "^20.12.7",

View File

@@ -1,6 +1,6 @@
{ {
"name": "dub", "name": "dub",
"version": "0.23.1", "version": "0.24.0",
"author": "Dub", "author": "Dub",
"main": "./index.js", "main": "./index.js",
"sideEffects": false, "sideEffects": false,

View File

@@ -4,7 +4,7 @@
import { HTTPClient } from "./http"; import { HTTPClient } from "./http";
import { RetryConfig } from "./retries"; import { RetryConfig } from "./retries";
import { pathToFunc } from "./url"; import { Params, pathToFunc } from "./url";
/** /**
* Contains the list of servers available to the SDK * Contains the list of servers available to the SDK
@@ -47,7 +47,7 @@ export type SDKOptions = {
export function serverURLFromOptions(options: SDKOptions): URL | null { export function serverURLFromOptions(options: SDKOptions): URL | null {
let serverURL = options.serverURL; let serverURL = options.serverURL;
const params: Record<string, string> = {}; const params: Params = {};
if (!serverURL) { if (!serverURL) {
const serverIdx = options.serverIdx ?? 0; const serverIdx = options.serverIdx ?? 0;
@@ -61,10 +61,10 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
return new URL(u); return new URL(u);
} }
export const SDK_METADATA = Object.freeze({ export const SDK_METADATA = {
language: "typescript", language: "typescript",
openapiDocVersion: "0.0.1", openapiDocVersion: "0.0.1",
sdkVersion: "0.23.1", sdkVersion: "0.24.0",
genVersion: "2.308.2", genVersion: "2.311.1",
userAgent: "speakeasy-sdk/typescript 0.23.1 2.308.2 0.0.1 dub", userAgent: "speakeasy-sdk/typescript 0.24.0 2.311.1 0.0.1 dub",
}); } as const;

View File

@@ -15,7 +15,7 @@ export function encodeMatrix(
key: string, key: string,
value: unknown, value: unknown,
options?: { explode?: boolean; charEncoding?: "percent" | "none" }, options?: { explode?: boolean; charEncoding?: "percent" | "none" },
) { ): string {
let out = ""; let out = "";
const pairs: [string, unknown][] = options?.explode const pairs: [string, unknown][] = options?.explode
? explode(key, value) ? explode(key, value)
@@ -65,7 +65,7 @@ export function encodeLabel(
key: string, key: string,
value: unknown, value: unknown,
options?: { explode?: boolean; charEncoding?: "percent" | "none" }, options?: { explode?: boolean; charEncoding?: "percent" | "none" },
) { ): string {
let out = ""; let out = "";
const pairs: [string, unknown][] = options?.explode const pairs: [string, unknown][] = options?.explode
? explode(key, value) ? explode(key, value)
@@ -100,7 +100,13 @@ export function encodeLabel(
return out; return out;
} }
function formEncoder(sep: string) { type FormEncoder = (
key: string,
value: unknown,
options?: { explode?: boolean; charEncoding?: "percent" | "none" },
) => string;
function formEncoder(sep: string): FormEncoder {
return ( return (
key: string, key: string,
value: unknown, value: unknown,
@@ -157,7 +163,7 @@ export function encodeBodyForm(
key: string, key: string,
value: unknown, value: unknown,
options?: { explode?: boolean; charEncoding?: "percent" | "none" }, options?: { explode?: boolean; charEncoding?: "percent" | "none" },
) { ): string {
let out = ""; let out = "";
const pairs: [string, unknown][] = options?.explode const pairs: [string, unknown][] = options?.explode
? explode(key, value) ? explode(key, value)
@@ -200,7 +206,7 @@ export function encodeDeepObject(
key: string, key: string,
value: unknown, value: unknown,
options?: { charEncoding?: "percent" | "none" }, options?: { charEncoding?: "percent" | "none" },
) { ): string {
if (value == null) { if (value == null) {
return ""; return "";
} }
@@ -247,7 +253,7 @@ export function encodeJSON(
key: string, key: string,
value: unknown, value: unknown,
options?: { explode?: boolean; charEncoding?: "percent" | "none" }, options?: { explode?: boolean; charEncoding?: "percent" | "none" },
) { ): string {
if (typeof value === "undefined") { if (typeof value === "undefined") {
return ""; return "";
} }
@@ -265,7 +271,7 @@ export const encodeSimple = (
key: string, key: string,
value: unknown, value: unknown,
options?: { explode?: boolean; charEncoding?: "percent" | "none" }, options?: { explode?: boolean; charEncoding?: "percent" | "none" },
) => { ): string => {
let out = ""; let out = "";
const pairs: [string, unknown][] = options?.explode const pairs: [string, unknown][] = options?.explode
? explode(key, value) ? explode(key, value)
@@ -337,7 +343,7 @@ function serializeValue(value: unknown): string {
return `${value}`; return `${value}`;
} }
function jsonReplacer(_: string, value: unknown) { function jsonReplacer(_: string, value: unknown): unknown {
if (value instanceof Uint8Array) { if (value instanceof Uint8Array) {
return bytesToBase64(value); return bytesToBase64(value);
} else { } else {

View File

@@ -7,7 +7,7 @@ export type Fetcher = (
init?: RequestInit, init?: RequestInit,
) => Promise<Response>; ) => Promise<Response>;
type Awaitable<T> = T | Promise<T>; export type Awaitable<T> = T | Promise<T>;
const DEFAULT_FETCHER: Fetcher = (input, init) => fetch(input, init); const DEFAULT_FETCHER: Fetcher = (input, init) => fetch(input, init);
@@ -15,9 +15,9 @@ export interface HTTPClientOptions {
fetcher?: Fetcher; fetcher?: Fetcher;
} }
type BeforeRequestHook = (req: Request) => Awaitable<Request | void>; export type BeforeRequestHook = (req: Request) => Awaitable<Request | void>;
type RequestErrorHook = (err: unknown, req: Request) => Awaitable<void>; export type RequestErrorHook = (err: unknown, req: Request) => Awaitable<void>;
type ResponseHook = (res: Response, req: Request) => Awaitable<void>; export type ResponseHook = (res: Response, req: Request) => Awaitable<void>;
export class HTTPClient { export class HTTPClient {
private fetcher: Fetcher; private fetcher: Fetcher;
@@ -100,7 +100,7 @@ export class HTTPClient {
| [hook: "beforeRequest", fn: BeforeRequestHook] | [hook: "beforeRequest", fn: BeforeRequestHook]
| [hook: "requestError", fn: RequestErrorHook] | [hook: "requestError", fn: RequestErrorHook]
| [hook: "response", fn: ResponseHook] | [hook: "response", fn: ResponseHook]
) { ): this {
let target: unknown[]; let target: unknown[];
if (args[0] === "beforeRequest") { if (args[0] === "beforeRequest") {
target = this.requestHooks; target = this.requestHooks;
@@ -120,7 +120,7 @@ export class HTTPClient {
return this; return this;
} }
clone() { clone(): HTTPClient {
const child = new HTTPClient(this.options); const child = new HTTPClient(this.options);
child.requestHooks = this.requestHooks.slice(); child.requestHooks = this.requestHooks.slice();
child.requestErrorHooks = this.requestErrorHooks.slice(); child.requestErrorHooks = this.requestErrorHooks.slice();
@@ -160,7 +160,7 @@ const codeRangeRE = new RegExp("^[0-9]xx$", "i");
export function matchStatusCode( export function matchStatusCode(
response: Response, response: Response,
codes: number | string | (number | string)[], codes: number | string | (number | string)[],
) { ): boolean {
const actual = `${response.status}`; const actual = `${response.status}`;
const expectedCodes = Array.isArray(codes) ? codes : [codes]; const expectedCodes = Array.isArray(codes) ? codes : [codes];
if (!expectedCodes.length) { if (!expectedCodes.length) {

View File

@@ -40,7 +40,7 @@ export class ClientSDK {
this.client = client; this.client = client;
} }
protected createRequest$(conf: RequestConfig, options?: RequestOptions) { protected createRequest$(conf: RequestConfig, options?: RequestOptions): Request {
const { method, path, query, headers: opHeaders, security } = conf; const { method, path, query, headers: opHeaders, security } = conf;
const base = conf.baseURL ?? this.baseURL; const base = conf.baseURL ?? this.baseURL;
@@ -109,7 +109,7 @@ export class ClientSDK {
context: HookContext; context: HookContext;
errorCodes: number | string | (number | string)[]; errorCodes: number | string | (number | string)[];
} }
) { ): Promise<Response> {
const { context, errorCodes } = options; const { context, errorCodes } = options;
let response = await this.client.request(await this.hooks$.beforeRequest(context, req)); let response = await this.client.request(await this.hooks$.beforeRequest(context, req));

View File

@@ -169,7 +169,9 @@ function applyBearer(
state.headers[spec.fieldName] = value; state.headers[spec.fieldName] = value;
} }
export function resolveGlobalSecurity(security: Partial<components.Security> | null | undefined) { export function resolveGlobalSecurity(
security: Partial<components.Security> | null | undefined
): SecurityState | null {
return resolveSecurity([ return resolveSecurity([
{ {
fieldName: "Authorization", fieldName: "Authorization",

View File

@@ -4,10 +4,12 @@
const hasOwn = Object.prototype.hasOwnProperty; const hasOwn = Object.prototype.hasOwnProperty;
export type Params = Partial<Record<string, string | number>>;
export function pathToFunc( export function pathToFunc(
pathPattern: string, pathPattern: string,
options?: { charEncoding?: "percent" | "none" }, options?: { charEncoding?: "percent" | "none" },
): (params?: Record<string, string | number>) => string { ): (params?: Params) => string {
const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; const paramRE = /\{([a-zA-Z0-9_]+?)\}/g;
return function buildURLPath(params: Record<string, unknown> = {}): string { return function buildURLPath(params: Record<string, unknown> = {}): string {

Some files were not shown because too many files have changed in this diff Show More