dub 0.10.0 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/sdk_generation.yaml +26 -0
- package/.github/workflows/sdk_publish.yaml +15 -0
- package/.speakeasy/gen.lock +205 -0
- package/.speakeasy/gen.yaml +37 -0
- package/.speakeasy/workflow.yaml +12 -0
- package/README.md +292 -182
- package/docs/sdks/analytics/README.md +535 -0
- package/docs/sdks/dub/README.md +9 -0
- package/docs/sdks/links/README.md +415 -0
- package/docs/sdks/qrcodes/README.md +58 -0
- package/docs/sdks/tags/README.md +113 -0
- package/docs/sdks/workspaces/README.md +168 -0
- package/hooks/hooks.d.ts +20 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +55 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/{_shims/auto/runtime-bun.js → hooks/index.js} +6 -5
- package/hooks/index.js.map +1 -0
- package/hooks/types.d.ts +59 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -125
- package/index.d.ts.map +1 -1
- package/index.js +10 -103
- package/index.js.map +1 -1
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +61 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +39 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +39 -0
- package/lib/config.js.map +1 -0
- package/lib/encodings.d.ts +39 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +311 -0
- package/lib/encodings.js.map +1 -0
- package/lib/http.d.ts +46 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +143 -0
- package/lib/http.js.map +1 -0
- package/lib/retries.d.ts +18 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +157 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +7 -0
- package/lib/schemas.d.ts.map +1 -0
- package/{shims/web.js → lib/schemas.js} +24 -6
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +39 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +98 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +57 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +115 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +4 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +26 -0
- package/lib/url.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -0
- package/{_shims/auto/runtime-node.js → models/components/index.js} +8 -5
- package/models/components/index.js.map +1 -0
- package/models/components/linkschema.d.ts +222 -0
- package/models/components/linkschema.d.ts.map +1 -0
- package/models/components/linkschema.js +189 -0
- package/models/components/linkschema.js.map +1 -0
- package/models/components/security.d.ts +16 -0
- package/models/components/security.d.ts.map +1 -0
- package/models/components/security.js +53 -0
- package/models/components/security.js.map +1 -0
- package/models/components/tagschema.d.ts +45 -0
- package/models/components/tagschema.d.ts.map +1 -0
- package/models/components/tagschema.js +76 -0
- package/models/components/tagschema.js.map +1 -0
- package/models/components/workspaceschema.d.ts +178 -0
- package/models/components/workspaceschema.d.ts.map +1 -0
- package/models/components/workspaceschema.js +190 -0
- package/models/components/workspaceschema.js.map +1 -0
- package/models/errors/badrequest.d.ts +65 -0
- package/models/errors/badrequest.d.ts.map +1 -0
- package/models/errors/badrequest.js +111 -0
- package/models/errors/badrequest.js.map +1 -0
- package/models/errors/conflict.d.ts +65 -0
- package/models/errors/conflict.d.ts.map +1 -0
- package/models/errors/conflict.js +111 -0
- package/models/errors/conflict.js.map +1 -0
- package/models/errors/forbidden.d.ts +65 -0
- package/models/errors/forbidden.d.ts.map +1 -0
- package/models/errors/forbidden.js +111 -0
- package/models/errors/forbidden.js.map +1 -0
- package/models/errors/index.d.ts +12 -0
- package/models/errors/index.d.ts.map +1 -0
- package/{_shims/auto/types-node.js → models/errors/index.js} +15 -5
- package/models/errors/index.js.map +1 -0
- package/models/errors/internalservererror.d.ts +65 -0
- package/models/errors/internalservererror.d.ts.map +1 -0
- package/models/errors/internalservererror.js +111 -0
- package/models/errors/internalservererror.js.map +1 -0
- package/models/errors/inviteexpired.d.ts +65 -0
- package/models/errors/inviteexpired.d.ts.map +1 -0
- package/models/errors/inviteexpired.js +111 -0
- package/models/errors/inviteexpired.js.map +1 -0
- package/models/errors/notfound.d.ts +65 -0
- package/models/errors/notfound.d.ts.map +1 -0
- package/models/errors/notfound.js +111 -0
- package/models/errors/notfound.js.map +1 -0
- package/models/errors/ratelimitexceeded.d.ts +65 -0
- package/models/errors/ratelimitexceeded.d.ts.map +1 -0
- package/models/errors/ratelimitexceeded.js +111 -0
- package/models/errors/ratelimitexceeded.js.map +1 -0
- package/models/errors/sdkerror.d.ts +7 -0
- package/models/errors/sdkerror.d.ts.map +1 -0
- package/models/errors/sdkerror.js +19 -0
- package/models/errors/sdkerror.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +17 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +107 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/errors/unauthorized.d.ts +65 -0
- package/models/errors/unauthorized.d.ts.map +1 -0
- package/models/errors/unauthorized.js +111 -0
- package/models/errors/unauthorized.js.map +1 -0
- package/models/errors/unprocessableentity.d.ts +65 -0
- package/models/errors/unprocessableentity.d.ts.map +1 -0
- package/models/errors/unprocessableentity.js +111 -0
- package/models/errors/unprocessableentity.js.map +1 -0
- package/models/operations/bulkcreatelinks.d.ts +146 -0
- package/models/operations/bulkcreatelinks.d.ts.map +1 -0
- package/models/operations/bulkcreatelinks.js +138 -0
- package/models/operations/bulkcreatelinks.js.map +1 -0
- package/models/operations/createlink.d.ts +146 -0
- package/models/operations/createlink.d.ts.map +1 -0
- package/models/operations/createlink.js +141 -0
- package/models/operations/createlink.js.map +1 -0
- package/models/operations/createtag.d.ts +39 -0
- package/models/operations/createtag.d.ts.map +1 -0
- package/models/operations/createtag.js +72 -0
- package/models/operations/createtag.js.map +1 -0
- package/models/operations/createworkspace.d.ts +22 -0
- package/models/operations/createworkspace.d.ts.map +1 -0
- package/models/operations/createworkspace.js +61 -0
- package/models/operations/createworkspace.js.map +1 -0
- package/models/operations/deletelink.d.ts +39 -0
- package/models/operations/deletelink.d.ts.map +1 -0
- package/models/operations/deletelink.js +75 -0
- package/models/operations/deletelink.js.map +1 -0
- package/models/operations/editlink.d.ts +166 -0
- package/models/operations/editlink.d.ts.map +1 -0
- package/models/operations/editlink.js +167 -0
- package/models/operations/editlink.js.map +1 -0
- package/models/operations/getbrowseranalytics.d.ts +378 -0
- package/models/operations/getbrowseranalytics.d.ts.map +1 -0
- package/models/operations/getbrowseranalytics.js +395 -0
- package/models/operations/getbrowseranalytics.js.map +1 -0
- package/models/operations/getcityanalytics.d.ts +641 -0
- package/models/operations/getcityanalytics.d.ts.map +1 -0
- package/models/operations/getcityanalytics.js +657 -0
- package/models/operations/getcityanalytics.js.map +1 -0
- package/models/operations/getclicksanalytics.d.ts +355 -0
- package/models/operations/getclicksanalytics.d.ts.map +1 -0
- package/models/operations/getclicksanalytics.js +369 -0
- package/models/operations/getclicksanalytics.js.map +1 -0
- package/models/operations/getcountryanalytics.d.ts +635 -0
- package/models/operations/getcountryanalytics.d.ts.map +1 -0
- package/models/operations/getcountryanalytics.js +653 -0
- package/models/operations/getcountryanalytics.js.map +1 -0
- package/models/operations/getdeviceanalytics.d.ts +378 -0
- package/models/operations/getdeviceanalytics.d.ts.map +1 -0
- package/models/operations/getdeviceanalytics.js +395 -0
- package/models/operations/getdeviceanalytics.js.map +1 -0
- package/models/operations/getlinkinfo.d.ts +25 -0
- package/models/operations/getlinkinfo.d.ts.map +1 -0
- package/models/operations/getlinkinfo.js +57 -0
- package/models/operations/getlinkinfo.js.map +1 -0
- package/models/operations/getlinks.d.ts +88 -0
- package/models/operations/getlinks.d.ts.map +1 -0
- package/models/operations/getlinks.js +108 -0
- package/models/operations/getlinks.js.map +1 -0
- package/models/operations/getlinkscount.d.ts +93 -0
- package/models/operations/getlinkscount.d.ts.map +1 -0
- package/models/operations/getlinkscount.js +105 -0
- package/models/operations/getlinkscount.js.map +1 -0
- package/models/operations/getosanalytics.d.ts +378 -0
- package/models/operations/getosanalytics.d.ts.map +1 -0
- package/models/operations/getosanalytics.js +395 -0
- package/models/operations/getosanalytics.js.map +1 -0
- package/models/operations/getqrcode.d.ts +60 -0
- package/models/operations/getqrcode.d.ts.map +1 -0
- package/models/operations/getqrcode.js +85 -0
- package/models/operations/getqrcode.js.map +1 -0
- package/models/operations/getrefereranalytics.d.ts +378 -0
- package/models/operations/getrefereranalytics.d.ts.map +1 -0
- package/models/operations/getrefereranalytics.js +395 -0
- package/models/operations/getrefereranalytics.js.map +1 -0
- package/models/operations/gettags.d.ts +10 -0
- package/models/operations/gettags.d.ts.map +1 -0
- package/{shims/node.js → models/operations/gettags.js} +12 -6
- package/models/operations/gettags.js.map +1 -0
- package/models/operations/gettimeseriesanalytics.d.ts +378 -0
- package/models/operations/gettimeseriesanalytics.d.ts.map +1 -0
- package/models/operations/gettimeseriesanalytics.js +395 -0
- package/models/operations/gettimeseriesanalytics.js.map +1 -0
- package/models/operations/gettoplinks.d.ts +378 -0
- package/models/operations/gettoplinks.d.ts.map +1 -0
- package/models/operations/gettoplinks.js +395 -0
- package/models/operations/gettoplinks.js.map +1 -0
- package/models/operations/gettopurls.d.ts +378 -0
- package/models/operations/gettopurls.d.ts.map +1 -0
- package/models/operations/gettopurls.js +395 -0
- package/models/operations/gettopurls.js.map +1 -0
- package/models/operations/getworkspace.d.ts +19 -0
- package/models/operations/getworkspace.d.ts.map +1 -0
- package/models/operations/getworkspace.js +53 -0
- package/models/operations/getworkspace.js.map +1 -0
- package/models/operations/index.d.ts +23 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +42 -0
- package/models/operations/index.js.map +1 -0
- package/package.json +25 -98
- package/sdk/analytics.d.ts +78 -0
- package/sdk/analytics.d.ts.map +1 -0
- package/sdk/analytics.js +2044 -0
- package/sdk/analytics.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/{_shims/auto/runtime.js → sdk/index.js} +5 -5
- package/sdk/index.js.map +1 -0
- package/sdk/links.d.ts +58 -0
- package/sdk/links.d.ts.map +1 -0
- package/sdk/links.js +1309 -0
- package/sdk/links.js.map +1 -0
- package/sdk/qrcodes.d.ts +21 -0
- package/sdk/qrcodes.d.ts.map +1 -0
- package/sdk/qrcodes.js +249 -0
- package/sdk/qrcodes.js.map +1 -0
- package/sdk/sdk.d.ts +22 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +59 -0
- package/sdk/sdk.js.map +1 -0
- package/sdk/tags.d.ts +23 -0
- package/sdk/tags.d.ts.map +1 -0
- package/sdk/tags.js +401 -0
- package/sdk/tags.js.map +1 -0
- package/sdk/workspaces.d.ts +30 -0
- package/sdk/workspaces.d.ts.map +1 -0
- package/sdk/workspaces.js +556 -0
- package/sdk/workspaces.js.map +1 -0
- package/src/hooks/hooks.ts +81 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +74 -0
- package/src/index.ts +8 -209
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +70 -0
- package/src/lib/encodings.ts +384 -0
- package/src/lib/http.ts +215 -0
- package/src/lib/retries.ts +226 -0
- package/src/lib/schemas.ts +22 -0
- package/src/lib/sdks.ts +139 -0
- package/src/lib/security.ts +180 -0
- package/src/lib/url.ts +31 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/linkschema.ts +383 -0
- package/src/models/components/security.ts +40 -0
- package/src/models/components/tagschema.ts +79 -0
- package/src/models/components/workspaceschema.ts +316 -0
- package/src/models/errors/badrequest.ts +140 -0
- package/src/models/errors/conflict.ts +140 -0
- package/src/models/errors/forbidden.ts +140 -0
- package/src/models/errors/index.ts +15 -0
- package/src/models/errors/internalservererror.ts +140 -0
- package/src/models/errors/inviteexpired.ts +140 -0
- package/src/models/errors/notfound.ts +140 -0
- package/src/models/errors/ratelimitexceeded.ts +140 -0
- package/src/models/errors/sdkerror.ts +22 -0
- package/src/models/errors/sdkvalidationerror.ts +95 -0
- package/src/models/errors/unauthorized.ts +140 -0
- package/src/models/errors/unprocessableentity.ts +140 -0
- package/src/models/operations/bulkcreatelinks.ts +254 -0
- package/src/models/operations/createlink.ts +255 -0
- package/src/models/operations/createtag.ts +69 -0
- package/src/models/operations/createworkspace.ts +54 -0
- package/src/models/operations/deletelink.ts +84 -0
- package/src/models/operations/editlink.ts +300 -0
- package/src/models/operations/getbrowseranalytics.ts +484 -0
- package/src/models/operations/getcityanalytics.ts +744 -0
- package/src/models/operations/getclicksanalytics.ts +427 -0
- package/src/models/operations/getcountryanalytics.ts +743 -0
- package/src/models/operations/getdeviceanalytics.ts +480 -0
- package/src/models/operations/getlinkinfo.ts +53 -0
- package/src/models/operations/getlinks.ts +155 -0
- package/src/models/operations/getlinkscount.ts +157 -0
- package/src/models/operations/getosanalytics.ts +475 -0
- package/src/models/operations/getqrcode.ts +106 -0
- package/src/models/operations/getrefereranalytics.ts +484 -0
- package/src/models/operations/gettags.ts +18 -0
- package/src/models/operations/gettimeseriesanalytics.ts +476 -0
- package/src/models/operations/gettoplinks.ts +475 -0
- package/src/models/operations/gettopurls.ts +475 -0
- package/src/models/operations/getworkspace.ts +43 -0
- package/src/models/operations/index.ts +26 -0
- package/src/sdk/analytics.ts +2493 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/links.ts +1617 -0
- package/src/sdk/qrcodes.ts +276 -0
- package/src/sdk/sdk.ts +66 -0
- package/src/sdk/tags.ts +470 -0
- package/src/sdk/workspaces.ts +670 -0
- package/src/types/blobs.ts +30 -0
- package/src/types/index.ts +8 -0
- package/src/types/operations.ts +25 -0
- package/src/types/rfcdate.ts +54 -0
- package/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/{resources/projects/projects.js → types/blobs.js} +23 -24
- package/types/blobs.js.map +1 -0
- package/types/index.d.ts +5 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +14 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +13 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +19 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/CHANGELOG.md +0 -116
- package/LICENSE +0 -201
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -81
- package/_shims/index.js +0 -13
- package/_shims/index.mjs +0 -7
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -90
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -237
- package/core.d.ts.map +0 -1
- package/core.js +0 -868
- package/core.js.map +0 -1
- package/core.mjs +0 -837
- package/core.mjs.map +0 -1
- package/error.d.ts +0 -53
- package/error.d.ts.map +0 -1
- package/error.js +0 -143
- package/error.js.map +0 -1
- package/error.mjs +0 -127
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -127
- package/index.mjs +0 -90
- package/index.mjs.map +0 -1
- package/resource.d.ts +0 -6
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -11
- package/resource.js.map +0 -1
- package/resource.mjs +0 -7
- package/resource.mjs.map +0 -1
- package/resources/index.d.ts +0 -4
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -11
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -5
- package/resources/index.mjs.map +0 -1
- package/resources/links/bulk.d.ts +0 -274
- package/resources/links/bulk.d.ts.map +0 -1
- package/resources/links/bulk.js +0 -18
- package/resources/links/bulk.js.map +0 -1
- package/resources/links/bulk.mjs +0 -14
- package/resources/links/bulk.mjs.map +0 -1
- package/resources/links/index.d.ts +0 -4
- package/resources/links/index.d.ts.map +0 -1
- package/resources/links/index.js +0 -11
- package/resources/links/index.js.map +0 -1
- package/resources/links/index.mjs +0 -5
- package/resources/links/index.mjs.map +0 -1
- package/resources/links/info.d.ts +0 -186
- package/resources/links/info.d.ts.map +0 -1
- package/resources/links/info.js +0 -18
- package/resources/links/info.js.map +0 -1
- package/resources/links/info.mjs +0 -14
- package/resources/links/info.mjs.map +0 -1
- package/resources/links/links.d.ts +0 -916
- package/resources/links/links.d.ts.map +0 -1
- package/resources/links/links.js +0 -72
- package/resources/links/links.js.map +0 -1
- package/resources/links/links.mjs +0 -45
- package/resources/links/links.mjs.map +0 -1
- package/resources/projects/index.d.ts +0 -3
- package/resources/projects/index.d.ts.map +0 -1
- package/resources/projects/index.js +0 -9
- package/resources/projects/index.js.map +0 -1
- package/resources/projects/index.mjs +0 -4
- package/resources/projects/index.mjs.map +0 -1
- package/resources/projects/projects.d.ts +0 -200
- package/resources/projects/projects.d.ts.map +0 -1
- package/resources/projects/projects.js.map +0 -1
- package/resources/projects/projects.mjs +0 -26
- package/resources/projects/projects.mjs.map +0 -1
- package/resources/projects/tags.d.ts +0 -4
- package/resources/projects/tags.d.ts.map +0 -1
- package/resources/projects/tags.js +0 -9
- package/resources/projects/tags.js.map +0 -1
- package/resources/projects/tags.mjs +0 -5
- package/resources/projects/tags.mjs.map +0 -1
- package/resources/qr.d.ts +0 -45
- package/resources/qr.d.ts.map +0 -1
- package/resources/qr.js +0 -18
- package/resources/qr.js.map +0 -1
- package/resources/qr.mjs +0 -14
- package/resources/qr.mjs.map +0 -1
- package/shims/node.d.ts +0 -29
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -81
- package/src/_shims/index.js +0 -13
- package/src/_shims/index.mjs +0 -7
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -83
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -63
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1145
- package/src/error.ts +0 -146
- package/src/lib/.keep +0 -4
- package/src/resource.ts +0 -11
- package/src/resources/index.ts +0 -20
- package/src/resources/links/bulk.ts +0 -337
- package/src/resources/links/index.ts +0 -15
- package/src/resources/links/info.ts +0 -230
- package/src/resources/links/links.ts +0 -1135
- package/src/resources/projects/index.ts +0 -4
- package/src/resources/projects/projects.ts +0 -253
- package/src/resources/projects/tags.ts +0 -5
- package/src/resources/qr.ts +0 -64
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -245
- package/src/version.ts +0 -1
- package/uploads.d.ts +0 -75
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -163
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -150
- package/uploads.mjs.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
package/src/error.ts
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
|
|
3
|
-
import { castToError, Headers } from './core';
|
|
4
|
-
|
|
5
|
-
export class DubError extends Error {}
|
|
6
|
-
|
|
7
|
-
export class APIError extends DubError {
|
|
8
|
-
readonly status: number | undefined;
|
|
9
|
-
readonly headers: Headers | undefined;
|
|
10
|
-
readonly error: Object | undefined;
|
|
11
|
-
|
|
12
|
-
constructor(
|
|
13
|
-
status: number | undefined,
|
|
14
|
-
error: Object | undefined,
|
|
15
|
-
message: string | undefined,
|
|
16
|
-
headers: Headers | undefined,
|
|
17
|
-
) {
|
|
18
|
-
super(`${APIError.makeMessage(status, error, message)}`);
|
|
19
|
-
this.status = status;
|
|
20
|
-
this.headers = headers;
|
|
21
|
-
this.error = error;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
private static makeMessage(status: number | undefined, error: any, message: string | undefined) {
|
|
25
|
-
const msg =
|
|
26
|
-
error?.message ?
|
|
27
|
-
typeof error.message === 'string' ?
|
|
28
|
-
error.message
|
|
29
|
-
: JSON.stringify(error.message)
|
|
30
|
-
: error ? JSON.stringify(error)
|
|
31
|
-
: message;
|
|
32
|
-
|
|
33
|
-
if (status && msg) {
|
|
34
|
-
return `${status} ${msg}`;
|
|
35
|
-
}
|
|
36
|
-
if (status) {
|
|
37
|
-
return `${status} status code (no body)`;
|
|
38
|
-
}
|
|
39
|
-
if (msg) {
|
|
40
|
-
return msg;
|
|
41
|
-
}
|
|
42
|
-
return '(no status code or body)';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
static generate(
|
|
46
|
-
status: number | undefined,
|
|
47
|
-
errorResponse: Object | undefined,
|
|
48
|
-
message: string | undefined,
|
|
49
|
-
headers: Headers | undefined,
|
|
50
|
-
) {
|
|
51
|
-
if (!status) {
|
|
52
|
-
return new APIConnectionError({ cause: castToError(errorResponse) });
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const error = errorResponse as Record<string, any>;
|
|
56
|
-
|
|
57
|
-
if (status === 400) {
|
|
58
|
-
return new BadRequestError(status, error, message, headers);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (status === 401) {
|
|
62
|
-
return new AuthenticationError(status, error, message, headers);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (status === 403) {
|
|
66
|
-
return new PermissionDeniedError(status, error, message, headers);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (status === 404) {
|
|
70
|
-
return new NotFoundError(status, error, message, headers);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (status === 409) {
|
|
74
|
-
return new ConflictError(status, error, message, headers);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (status === 422) {
|
|
78
|
-
return new UnprocessableEntityError(status, error, message, headers);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (status === 429) {
|
|
82
|
-
return new RateLimitError(status, error, message, headers);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (status >= 500) {
|
|
86
|
-
return new InternalServerError(status, error, message, headers);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return new APIError(status, error, message, headers);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export class APIUserAbortError extends APIError {
|
|
94
|
-
override readonly status: undefined = undefined;
|
|
95
|
-
|
|
96
|
-
constructor({ message }: { message?: string } = {}) {
|
|
97
|
-
super(undefined, undefined, message || 'Request was aborted.', undefined);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export class APIConnectionError extends APIError {
|
|
102
|
-
override readonly status: undefined = undefined;
|
|
103
|
-
|
|
104
|
-
constructor({ message, cause }: { message?: string; cause?: Error | undefined }) {
|
|
105
|
-
super(undefined, undefined, message || 'Connection error.', undefined);
|
|
106
|
-
// in some environments the 'cause' property is already declared
|
|
107
|
-
// @ts-ignore
|
|
108
|
-
if (cause) this.cause = cause;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export class APIConnectionTimeoutError extends APIConnectionError {
|
|
113
|
-
constructor({ message }: { message?: string } = {}) {
|
|
114
|
-
super({ message: message ?? 'Request timed out.' });
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export class BadRequestError extends APIError {
|
|
119
|
-
override readonly status: 400 = 400;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export class AuthenticationError extends APIError {
|
|
123
|
-
override readonly status: 401 = 401;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export class PermissionDeniedError extends APIError {
|
|
127
|
-
override readonly status: 403 = 403;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export class NotFoundError extends APIError {
|
|
131
|
-
override readonly status: 404 = 404;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export class ConflictError extends APIError {
|
|
135
|
-
override readonly status: 409 = 409;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export class UnprocessableEntityError extends APIError {
|
|
139
|
-
override readonly status: 422 = 422;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export class RateLimitError extends APIError {
|
|
143
|
-
override readonly status: 429 = 429;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export class InternalServerError extends APIError {}
|
package/src/lib/.keep
DELETED
package/src/resource.ts
DELETED
package/src/resources/index.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
LinkCreateResponse,
|
|
5
|
-
LinkUpdateResponse,
|
|
6
|
-
LinkListResponse,
|
|
7
|
-
LinkDeleteLinkResponse,
|
|
8
|
-
LinkCreateParams,
|
|
9
|
-
LinkUpdateParams,
|
|
10
|
-
LinkListParams,
|
|
11
|
-
LinkDeleteLinkParams,
|
|
12
|
-
Links,
|
|
13
|
-
} from './links/links';
|
|
14
|
-
export {
|
|
15
|
-
ProjectRetrieveResponse,
|
|
16
|
-
ProjectListResponse,
|
|
17
|
-
ProjectRetrieveParams,
|
|
18
|
-
Projects,
|
|
19
|
-
} from './projects/projects';
|
|
20
|
-
export { QrRetrieveParams, Qr } from './qr';
|
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
|
|
3
|
-
import * as Core from "../../core";
|
|
4
|
-
import { APIResource } from "../../resource";
|
|
5
|
-
import * as BulkAPI from "./bulk";
|
|
6
|
-
|
|
7
|
-
export class Bulk extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Bulk create up to 100 links for the authenticated project.
|
|
10
|
-
*/
|
|
11
|
-
create(params: BulkCreateParams, options?: Core.RequestOptions): Core.APIPromise<BulkCreateResponse> {
|
|
12
|
-
const { projectSlug = this._client.projectSlug, body } = params;
|
|
13
|
-
return this._client.post('/links/bulk', { query: { projectSlug }, body: body, ...options });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type BulkCreateResponse = Array<BulkCreateResponse.BulkCreateResponseItem>;
|
|
18
|
-
|
|
19
|
-
export namespace BulkCreateResponse {
|
|
20
|
-
export interface BulkCreateResponseItem {
|
|
21
|
-
/**
|
|
22
|
-
* The unique ID of the short link.
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The Android destination URL for the short link for Android device targeting.
|
|
28
|
-
*/
|
|
29
|
-
android: string | null;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Whether the short link is archived.
|
|
33
|
-
*/
|
|
34
|
-
archived: boolean;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The number of clicks on the short link.
|
|
38
|
-
*/
|
|
39
|
-
clicks: number;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The comments for the short link.
|
|
43
|
-
*/
|
|
44
|
-
comments: string | null;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The date and time when the short link was created.
|
|
48
|
-
*/
|
|
49
|
-
createdAt: string;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The description of the short link generated via `api.dub.co/metatags`. Will be
|
|
53
|
-
* used for Custom Social Media Cards if `proxy` is true.
|
|
54
|
-
*/
|
|
55
|
-
description: string | null;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The domain of the short link. If not provided, the primary domain for the
|
|
59
|
-
* project will be used (or `dub.sh` if the project has no domains).
|
|
60
|
-
*/
|
|
61
|
-
domain: string;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* The date and time when the short link will expire in ISO-8601 format. Must be in
|
|
65
|
-
* the future.
|
|
66
|
-
*/
|
|
67
|
-
expiresAt: string | null;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Geo targeting information for the short link in JSON format
|
|
71
|
-
* `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
|
|
72
|
-
*/
|
|
73
|
-
geo: Record<string, string> | null;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* The image of the short link generated via `api.dub.co/metatags`. Will be used
|
|
77
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
78
|
-
*/
|
|
79
|
-
image: string | null;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* The iOS destination URL for the short link for iOS device targeting.
|
|
83
|
-
*/
|
|
84
|
-
ios: string | null;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The short link slug. If not provided, a random 7-character slug will be
|
|
88
|
-
* generated.
|
|
89
|
-
*/
|
|
90
|
-
key: string;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* The date and time when the short link was last clicked.
|
|
94
|
-
*/
|
|
95
|
-
lastClicked: string | null;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The password required to access the destination URL of the short link.
|
|
99
|
-
*/
|
|
100
|
-
password: string | null;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* The project ID of the short link.
|
|
104
|
-
*/
|
|
105
|
-
projectId: string;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Whether the short link uses Custom Social Media Cards feature.
|
|
109
|
-
*/
|
|
110
|
-
proxy: boolean;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Whether the short link's stats are publicly accessible.
|
|
114
|
-
*/
|
|
115
|
-
publicStats: boolean;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* The full URL of the QR code for the short link (e.g.
|
|
119
|
-
* `https://api.dub.co/qr?url=https://dub.sh/try`).
|
|
120
|
-
*/
|
|
121
|
-
qrCode: string;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Whether the short link uses link cloaking.
|
|
125
|
-
*/
|
|
126
|
-
rewrite: boolean;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* The full URL of the short link, including the https protocol (e.g.
|
|
130
|
-
* `https://dub.sh/try`).
|
|
131
|
-
*/
|
|
132
|
-
shortLink: string;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @deprecated: [DEPRECATED (use `tags` instead)]: The unique ID of the tag
|
|
136
|
-
* assigned to the short link.
|
|
137
|
-
*/
|
|
138
|
-
tagId: string | null;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* The tags assigned to the short link.
|
|
142
|
-
*/
|
|
143
|
-
tags: Array<BulkCreateResponseItem.Tag> | null;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* The title of the short link generated via `api.dub.co/metatags`. Will be used
|
|
147
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
148
|
-
*/
|
|
149
|
-
title: string | null;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* The date and time when the short link was last updated.
|
|
153
|
-
*/
|
|
154
|
-
updatedAt: string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* The destination URL of the short link.
|
|
158
|
-
*/
|
|
159
|
-
url: string;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The user ID of the creator of the short link.
|
|
163
|
-
*/
|
|
164
|
-
userId: string;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* The UTM campaign of the short link.
|
|
168
|
-
*/
|
|
169
|
-
utm_campaign: string | null;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* The UTM content of the short link.
|
|
173
|
-
*/
|
|
174
|
-
utm_content: string | null;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* The UTM medium of the short link.
|
|
178
|
-
*/
|
|
179
|
-
utm_medium: string | null;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* The UTM source of the short link.
|
|
183
|
-
*/
|
|
184
|
-
utm_source: string | null;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* The UTM term of the short link.
|
|
188
|
-
*/
|
|
189
|
-
utm_term: string | null;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export namespace BulkCreateResponseItem {
|
|
193
|
-
export interface Tag {
|
|
194
|
-
/**
|
|
195
|
-
* The unique ID of the tag.
|
|
196
|
-
*/
|
|
197
|
-
id: string;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* The color of the tag.
|
|
201
|
-
*/
|
|
202
|
-
color: 'red' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'brown';
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* The name of the tag.
|
|
206
|
-
*/
|
|
207
|
-
name: string;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface BulkCreateParams {
|
|
213
|
-
/**
|
|
214
|
-
* Query param: The slug for the project that the link belongs to. E.g. for
|
|
215
|
-
* `app.dub.co/acme`, the projectSlug is `acme`.
|
|
216
|
-
*/
|
|
217
|
-
projectSlug?: string;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Body param:
|
|
221
|
-
*/
|
|
222
|
-
body: Array<BulkCreateParams.Body>;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export namespace BulkCreateParams {
|
|
226
|
-
export interface Body {
|
|
227
|
-
/**
|
|
228
|
-
* The destination URL of the short link.
|
|
229
|
-
*/
|
|
230
|
-
url: string;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* The Android destination URL for the short link for Android device targeting.
|
|
234
|
-
*/
|
|
235
|
-
android?: string | null;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Whether the short link is archived.
|
|
239
|
-
*/
|
|
240
|
-
archived?: boolean;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* The comments for the short link.
|
|
244
|
-
*/
|
|
245
|
-
comments?: string | null;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* The description of the short link generated via `api.dub.co/metatags`. Will be
|
|
249
|
-
* used for Custom Social Media Cards if `proxy` is true.
|
|
250
|
-
*/
|
|
251
|
-
description?: string | null;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* The domain of the short link. If not provided, the primary domain for the
|
|
255
|
-
* project will be used (or `dub.sh` if the project has no domains).
|
|
256
|
-
*/
|
|
257
|
-
domain?: string;
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* The date and time when the short link will expire in ISO-8601 format. Must be in
|
|
261
|
-
* the future.
|
|
262
|
-
*/
|
|
263
|
-
expiresAt?: string | null;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Geo targeting information for the short link in JSON format
|
|
267
|
-
* `{[COUNTRY]: https://example.com }`.
|
|
268
|
-
*/
|
|
269
|
-
geo?: Record<string, string> | null;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* The image of the short link generated via `api.dub.co/metatags`. Will be used
|
|
273
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
274
|
-
*/
|
|
275
|
-
image?: string | null;
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* The iOS destination URL for the short link for iOS device targeting.
|
|
279
|
-
*/
|
|
280
|
-
ios?: string | null;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* The short link slug. If not provided, a random 7-character slug will be
|
|
284
|
-
* generated.
|
|
285
|
-
*/
|
|
286
|
-
key?: string;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* The password required to access the destination URL of the short link.
|
|
290
|
-
*/
|
|
291
|
-
password?: string | null;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* The prefix of the short link slug for randomly-generated keys (e.g. if prefix is
|
|
295
|
-
* `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key`
|
|
296
|
-
* is provided.
|
|
297
|
-
*/
|
|
298
|
-
prefix?: string;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Whether the short link uses Custom Social Media Cards feature.
|
|
302
|
-
*/
|
|
303
|
-
proxy?: boolean;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Whether the short link's stats are publicly accessible.
|
|
307
|
-
*/
|
|
308
|
-
publicStats?: boolean;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Whether the short link uses link cloaking.
|
|
312
|
-
*/
|
|
313
|
-
rewrite?: boolean;
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* @deprecated: [DEPRECATED (use tagIds instead)]: The unique ID of the tag
|
|
317
|
-
* assigned to the short link.
|
|
318
|
-
*/
|
|
319
|
-
tagId?: string | null;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* The unique IDs of the tags assigned to the short link.
|
|
323
|
-
*/
|
|
324
|
-
tagIds?: string | Array<string>;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* The title of the short link generated via `api.dub.co/metatags`. Will be used
|
|
328
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
329
|
-
*/
|
|
330
|
-
title?: string | null;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export namespace Bulk {
|
|
335
|
-
export import BulkCreateResponse = BulkAPI.BulkCreateResponse;
|
|
336
|
-
export import BulkCreateParams = BulkAPI.BulkCreateParams;
|
|
337
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
|
|
3
|
-
export { BulkCreateResponse, BulkCreateParams, Bulk } from './bulk';
|
|
4
|
-
export { InfoRetrieveResponse, InfoRetrieveParams, Info } from './info';
|
|
5
|
-
export {
|
|
6
|
-
LinkCreateResponse,
|
|
7
|
-
LinkUpdateResponse,
|
|
8
|
-
LinkListResponse,
|
|
9
|
-
LinkDeleteLinkResponse,
|
|
10
|
-
LinkCreateParams,
|
|
11
|
-
LinkUpdateParams,
|
|
12
|
-
LinkListParams,
|
|
13
|
-
LinkDeleteLinkParams,
|
|
14
|
-
Links,
|
|
15
|
-
} from './links';
|