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/resource.mjs
DELETED
package/resource.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAIrD,MAAM,OAAO,WAAW;IAGtB,YAAY,MAAW;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}
|
package/resources/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { LinkCreateResponse, LinkUpdateResponse, LinkListResponse, LinkDeleteLinkResponse, LinkCreateParams, LinkUpdateParams, LinkListParams, LinkDeleteLinkParams, Links, } from "./links/links.js";
|
|
2
|
-
export { ProjectRetrieveResponse, ProjectListResponse, ProjectRetrieveParams, Projects, } from "./projects/projects.js";
|
|
3
|
-
export { QrRetrieveParams, Qr } from "./qr.js";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC"}
|
package/resources/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Qr = exports.Projects = exports.Links = void 0;
|
|
5
|
-
var links_1 = require("./links/links.js");
|
|
6
|
-
Object.defineProperty(exports, "Links", { enumerable: true, get: function () { return links_1.Links; } });
|
|
7
|
-
var projects_1 = require("./projects/projects.js");
|
|
8
|
-
Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
|
|
9
|
-
var qr_1 = require("./qr.js");
|
|
10
|
-
Object.defineProperty(exports, "Qr", { enumerable: true, get: function () { return qr_1.Qr; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,0CAUuB;AADrB,8FAAA,KAAK,OAAA;AAEP,mDAK6B;AAD3B,oGAAA,QAAQ,OAAA;AAEV,8BAA4C;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/index.mjs
DELETED
package/resources/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EASL,KAAK,GACN;OACM,EAIL,QAAQ,GACT;OACM,EAAoB,EAAE,EAAE"}
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import * as Core from 'dub/core';
|
|
2
|
-
import { APIResource } from 'dub/resource';
|
|
3
|
-
import * as BulkAPI from 'dub/resources/links/bulk';
|
|
4
|
-
export declare class Bulk extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Bulk create up to 100 links for the authenticated project.
|
|
7
|
-
*/
|
|
8
|
-
create(params: BulkCreateParams, options?: Core.RequestOptions): Core.APIPromise<BulkCreateResponse>;
|
|
9
|
-
}
|
|
10
|
-
export type BulkCreateResponse = Array<BulkCreateResponse.BulkCreateResponseItem>;
|
|
11
|
-
export declare namespace BulkCreateResponse {
|
|
12
|
-
interface BulkCreateResponseItem {
|
|
13
|
-
/**
|
|
14
|
-
* The unique ID of the short link.
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
/**
|
|
18
|
-
* The Android destination URL for the short link for Android device targeting.
|
|
19
|
-
*/
|
|
20
|
-
android: string | null;
|
|
21
|
-
/**
|
|
22
|
-
* Whether the short link is archived.
|
|
23
|
-
*/
|
|
24
|
-
archived: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* The number of clicks on the short link.
|
|
27
|
-
*/
|
|
28
|
-
clicks: number;
|
|
29
|
-
/**
|
|
30
|
-
* The comments for the short link.
|
|
31
|
-
*/
|
|
32
|
-
comments: string | null;
|
|
33
|
-
/**
|
|
34
|
-
* The date and time when the short link was created.
|
|
35
|
-
*/
|
|
36
|
-
createdAt: string;
|
|
37
|
-
/**
|
|
38
|
-
* The description of the short link generated via `api.dub.co/metatags`. Will be
|
|
39
|
-
* used for Custom Social Media Cards if `proxy` is true.
|
|
40
|
-
*/
|
|
41
|
-
description: string | null;
|
|
42
|
-
/**
|
|
43
|
-
* The domain of the short link. If not provided, the primary domain for the
|
|
44
|
-
* project will be used (or `dub.sh` if the project has no domains).
|
|
45
|
-
*/
|
|
46
|
-
domain: string;
|
|
47
|
-
/**
|
|
48
|
-
* The date and time when the short link will expire in ISO-8601 format. Must be in
|
|
49
|
-
* the future.
|
|
50
|
-
*/
|
|
51
|
-
expiresAt: string | null;
|
|
52
|
-
/**
|
|
53
|
-
* Geo targeting information for the short link in JSON format
|
|
54
|
-
* `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
|
|
55
|
-
*/
|
|
56
|
-
geo: Record<string, string> | null;
|
|
57
|
-
/**
|
|
58
|
-
* The image of the short link generated via `api.dub.co/metatags`. Will be used
|
|
59
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
60
|
-
*/
|
|
61
|
-
image: string | null;
|
|
62
|
-
/**
|
|
63
|
-
* The iOS destination URL for the short link for iOS device targeting.
|
|
64
|
-
*/
|
|
65
|
-
ios: string | null;
|
|
66
|
-
/**
|
|
67
|
-
* The short link slug. If not provided, a random 7-character slug will be
|
|
68
|
-
* generated.
|
|
69
|
-
*/
|
|
70
|
-
key: string;
|
|
71
|
-
/**
|
|
72
|
-
* The date and time when the short link was last clicked.
|
|
73
|
-
*/
|
|
74
|
-
lastClicked: string | null;
|
|
75
|
-
/**
|
|
76
|
-
* The password required to access the destination URL of the short link.
|
|
77
|
-
*/
|
|
78
|
-
password: string | null;
|
|
79
|
-
/**
|
|
80
|
-
* The project ID of the short link.
|
|
81
|
-
*/
|
|
82
|
-
projectId: string;
|
|
83
|
-
/**
|
|
84
|
-
* Whether the short link uses Custom Social Media Cards feature.
|
|
85
|
-
*/
|
|
86
|
-
proxy: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Whether the short link's stats are publicly accessible.
|
|
89
|
-
*/
|
|
90
|
-
publicStats: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* The full URL of the QR code for the short link (e.g.
|
|
93
|
-
* `https://api.dub.co/qr?url=https://dub.sh/try`).
|
|
94
|
-
*/
|
|
95
|
-
qrCode: string;
|
|
96
|
-
/**
|
|
97
|
-
* Whether the short link uses link cloaking.
|
|
98
|
-
*/
|
|
99
|
-
rewrite: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* The full URL of the short link, including the https protocol (e.g.
|
|
102
|
-
* `https://dub.sh/try`).
|
|
103
|
-
*/
|
|
104
|
-
shortLink: string;
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated: [DEPRECATED (use `tags` instead)]: The unique ID of the tag
|
|
107
|
-
* assigned to the short link.
|
|
108
|
-
*/
|
|
109
|
-
tagId: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* The tags assigned to the short link.
|
|
112
|
-
*/
|
|
113
|
-
tags: Array<BulkCreateResponseItem.Tag> | null;
|
|
114
|
-
/**
|
|
115
|
-
* The title of the short link generated via `api.dub.co/metatags`. Will be used
|
|
116
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
117
|
-
*/
|
|
118
|
-
title: string | null;
|
|
119
|
-
/**
|
|
120
|
-
* The date and time when the short link was last updated.
|
|
121
|
-
*/
|
|
122
|
-
updatedAt: string;
|
|
123
|
-
/**
|
|
124
|
-
* The destination URL of the short link.
|
|
125
|
-
*/
|
|
126
|
-
url: string;
|
|
127
|
-
/**
|
|
128
|
-
* The user ID of the creator of the short link.
|
|
129
|
-
*/
|
|
130
|
-
userId: string;
|
|
131
|
-
/**
|
|
132
|
-
* The UTM campaign of the short link.
|
|
133
|
-
*/
|
|
134
|
-
utm_campaign: string | null;
|
|
135
|
-
/**
|
|
136
|
-
* The UTM content of the short link.
|
|
137
|
-
*/
|
|
138
|
-
utm_content: string | null;
|
|
139
|
-
/**
|
|
140
|
-
* The UTM medium of the short link.
|
|
141
|
-
*/
|
|
142
|
-
utm_medium: string | null;
|
|
143
|
-
/**
|
|
144
|
-
* The UTM source of the short link.
|
|
145
|
-
*/
|
|
146
|
-
utm_source: string | null;
|
|
147
|
-
/**
|
|
148
|
-
* The UTM term of the short link.
|
|
149
|
-
*/
|
|
150
|
-
utm_term: string | null;
|
|
151
|
-
}
|
|
152
|
-
namespace BulkCreateResponseItem {
|
|
153
|
-
interface Tag {
|
|
154
|
-
/**
|
|
155
|
-
* The unique ID of the tag.
|
|
156
|
-
*/
|
|
157
|
-
id: string;
|
|
158
|
-
/**
|
|
159
|
-
* The color of the tag.
|
|
160
|
-
*/
|
|
161
|
-
color: 'red' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'brown';
|
|
162
|
-
/**
|
|
163
|
-
* The name of the tag.
|
|
164
|
-
*/
|
|
165
|
-
name: string;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
export interface BulkCreateParams {
|
|
170
|
-
/**
|
|
171
|
-
* Query param: The slug for the project that the link belongs to. E.g. for
|
|
172
|
-
* `app.dub.co/acme`, the projectSlug is `acme`.
|
|
173
|
-
*/
|
|
174
|
-
projectSlug?: string;
|
|
175
|
-
/**
|
|
176
|
-
* Body param:
|
|
177
|
-
*/
|
|
178
|
-
body: Array<BulkCreateParams.Body>;
|
|
179
|
-
}
|
|
180
|
-
export declare namespace BulkCreateParams {
|
|
181
|
-
interface Body {
|
|
182
|
-
/**
|
|
183
|
-
* The destination URL of the short link.
|
|
184
|
-
*/
|
|
185
|
-
url: string;
|
|
186
|
-
/**
|
|
187
|
-
* The Android destination URL for the short link for Android device targeting.
|
|
188
|
-
*/
|
|
189
|
-
android?: string | null;
|
|
190
|
-
/**
|
|
191
|
-
* Whether the short link is archived.
|
|
192
|
-
*/
|
|
193
|
-
archived?: boolean;
|
|
194
|
-
/**
|
|
195
|
-
* The comments for the short link.
|
|
196
|
-
*/
|
|
197
|
-
comments?: string | null;
|
|
198
|
-
/**
|
|
199
|
-
* The description of the short link generated via `api.dub.co/metatags`. Will be
|
|
200
|
-
* used for Custom Social Media Cards if `proxy` is true.
|
|
201
|
-
*/
|
|
202
|
-
description?: string | null;
|
|
203
|
-
/**
|
|
204
|
-
* The domain of the short link. If not provided, the primary domain for the
|
|
205
|
-
* project will be used (or `dub.sh` if the project has no domains).
|
|
206
|
-
*/
|
|
207
|
-
domain?: string;
|
|
208
|
-
/**
|
|
209
|
-
* The date and time when the short link will expire in ISO-8601 format. Must be in
|
|
210
|
-
* the future.
|
|
211
|
-
*/
|
|
212
|
-
expiresAt?: string | null;
|
|
213
|
-
/**
|
|
214
|
-
* Geo targeting information for the short link in JSON format
|
|
215
|
-
* `{[COUNTRY]: https://example.com }`.
|
|
216
|
-
*/
|
|
217
|
-
geo?: Record<string, string> | null;
|
|
218
|
-
/**
|
|
219
|
-
* The image of the short link generated via `api.dub.co/metatags`. Will be used
|
|
220
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
221
|
-
*/
|
|
222
|
-
image?: string | null;
|
|
223
|
-
/**
|
|
224
|
-
* The iOS destination URL for the short link for iOS device targeting.
|
|
225
|
-
*/
|
|
226
|
-
ios?: string | null;
|
|
227
|
-
/**
|
|
228
|
-
* The short link slug. If not provided, a random 7-character slug will be
|
|
229
|
-
* generated.
|
|
230
|
-
*/
|
|
231
|
-
key?: string;
|
|
232
|
-
/**
|
|
233
|
-
* The password required to access the destination URL of the short link.
|
|
234
|
-
*/
|
|
235
|
-
password?: string | null;
|
|
236
|
-
/**
|
|
237
|
-
* The prefix of the short link slug for randomly-generated keys (e.g. if prefix is
|
|
238
|
-
* `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key`
|
|
239
|
-
* is provided.
|
|
240
|
-
*/
|
|
241
|
-
prefix?: string;
|
|
242
|
-
/**
|
|
243
|
-
* Whether the short link uses Custom Social Media Cards feature.
|
|
244
|
-
*/
|
|
245
|
-
proxy?: boolean;
|
|
246
|
-
/**
|
|
247
|
-
* Whether the short link's stats are publicly accessible.
|
|
248
|
-
*/
|
|
249
|
-
publicStats?: boolean;
|
|
250
|
-
/**
|
|
251
|
-
* Whether the short link uses link cloaking.
|
|
252
|
-
*/
|
|
253
|
-
rewrite?: boolean;
|
|
254
|
-
/**
|
|
255
|
-
* @deprecated: [DEPRECATED (use tagIds instead)]: The unique ID of the tag
|
|
256
|
-
* assigned to the short link.
|
|
257
|
-
*/
|
|
258
|
-
tagId?: string | null;
|
|
259
|
-
/**
|
|
260
|
-
* The unique IDs of the tags assigned to the short link.
|
|
261
|
-
*/
|
|
262
|
-
tagIds?: string | Array<string>;
|
|
263
|
-
/**
|
|
264
|
-
* The title of the short link generated via `api.dub.co/metatags`. Will be used
|
|
265
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
266
|
-
*/
|
|
267
|
-
title?: string | null;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
export declare namespace Bulk {
|
|
271
|
-
export import BulkCreateResponse = BulkAPI.BulkCreateResponse;
|
|
272
|
-
export import BulkCreateParams = BulkAPI.BulkCreateParams;
|
|
273
|
-
}
|
|
274
|
-
//# sourceMappingURL=bulk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.ts","sourceRoot":"","sources":["../../src/resources/links/bulk.ts"],"names":[],"mappings":"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"}
|
package/resources/links/bulk.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Bulk = void 0;
|
|
5
|
-
const resource_1 = require("dub/resource");
|
|
6
|
-
class Bulk extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Bulk create up to 100 links for the authenticated project.
|
|
9
|
-
*/
|
|
10
|
-
create(params, options) {
|
|
11
|
-
const { projectSlug = this._client.projectSlug, body } = params;
|
|
12
|
-
return this._client.post('/links/bulk', { query: { projectSlug }, body: body, ...options });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Bulk = Bulk;
|
|
16
|
-
(function (Bulk) {
|
|
17
|
-
})(Bulk = exports.Bulk || (exports.Bulk = {}));
|
|
18
|
-
//# sourceMappingURL=bulk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.js","sourceRoot":"","sources":["../../src/resources/links/bulk.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2CAA2C;AAG3C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA6B;QAC5D,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AARD,oBAQC;AA+TD,WAAiB,IAAI;AAGrB,CAAC,EAHgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGpB"}
|
package/resources/links/bulk.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
import { APIResource } from 'dub/resource';
|
|
3
|
-
export class Bulk extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Bulk create up to 100 links for the authenticated project.
|
|
6
|
-
*/
|
|
7
|
-
create(params, options) {
|
|
8
|
-
const { projectSlug = this._client.projectSlug, body } = params;
|
|
9
|
-
return this._client.post('/links/bulk', { query: { projectSlug }, body: body, ...options });
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
(function (Bulk) {
|
|
13
|
-
})(Bulk || (Bulk = {}));
|
|
14
|
-
//# sourceMappingURL=bulk.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.mjs","sourceRoot":"","sources":["../../src/resources/links/bulk.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,cAAc;AAG1C,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA6B;QAC5D,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AA+TD,WAAiB,IAAI;AAGrB,CAAC,EAHgB,IAAI,KAAJ,IAAI,QAGpB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { BulkCreateResponse, BulkCreateParams, Bulk } from "./bulk.js";
|
|
2
|
-
export { InfoRetrieveResponse, InfoRetrieveParams, Info } from "./info.js";
|
|
3
|
-
export { LinkCreateResponse, LinkUpdateResponse, LinkListResponse, LinkDeleteLinkResponse, LinkCreateParams, LinkUpdateParams, LinkListParams, LinkDeleteLinkParams, Links, } from "./links.js";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/links/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACxE,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,KAAK,GACN,MAAM,SAAS,CAAC"}
|
package/resources/links/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Links = exports.Info = exports.Bulk = void 0;
|
|
5
|
-
var bulk_1 = require("./bulk.js");
|
|
6
|
-
Object.defineProperty(exports, "Bulk", { enumerable: true, get: function () { return bulk_1.Bulk; } });
|
|
7
|
-
var info_1 = require("./info.js");
|
|
8
|
-
Object.defineProperty(exports, "Info", { enumerable: true, get: function () { return info_1.Info; } });
|
|
9
|
-
var links_1 = require("./links.js");
|
|
10
|
-
Object.defineProperty(exports, "Links", { enumerable: true, get: function () { return links_1.Links; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/links/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,kCAAoE;AAArB,4FAAA,IAAI,OAAA;AACnD,kCAAwE;AAArB,4FAAA,IAAI,OAAA;AACvD,oCAUiB;AADf,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/links/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAwC,IAAI,EAAE;OAC9C,EAA4C,IAAI,EAAE;OAClD,EASL,KAAK,GACN"}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import * as Core from 'dub/core';
|
|
2
|
-
import { APIResource } from 'dub/resource';
|
|
3
|
-
import * as InfoAPI from 'dub/resources/links/info';
|
|
4
|
-
export declare class Info extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieve the info for a link from their domain and key.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(params: InfoRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<InfoRetrieveResponse>;
|
|
9
|
-
}
|
|
10
|
-
export interface InfoRetrieveResponse {
|
|
11
|
-
/**
|
|
12
|
-
* The unique ID of the short link.
|
|
13
|
-
*/
|
|
14
|
-
id: string;
|
|
15
|
-
/**
|
|
16
|
-
* The Android destination URL for the short link for Android device targeting.
|
|
17
|
-
*/
|
|
18
|
-
android: string | null;
|
|
19
|
-
/**
|
|
20
|
-
* Whether the short link is archived.
|
|
21
|
-
*/
|
|
22
|
-
archived: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The number of clicks on the short link.
|
|
25
|
-
*/
|
|
26
|
-
clicks: number;
|
|
27
|
-
/**
|
|
28
|
-
* The comments for the short link.
|
|
29
|
-
*/
|
|
30
|
-
comments: string | null;
|
|
31
|
-
/**
|
|
32
|
-
* The date and time when the short link was created.
|
|
33
|
-
*/
|
|
34
|
-
createdAt: string;
|
|
35
|
-
/**
|
|
36
|
-
* The description of the short link generated via `api.dub.co/metatags`. Will be
|
|
37
|
-
* used for Custom Social Media Cards if `proxy` is true.
|
|
38
|
-
*/
|
|
39
|
-
description: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* The domain of the short link. If not provided, the primary domain for the
|
|
42
|
-
* project will be used (or `dub.sh` if the project has no domains).
|
|
43
|
-
*/
|
|
44
|
-
domain: string;
|
|
45
|
-
/**
|
|
46
|
-
* The date and time when the short link will expire in ISO-8601 format. Must be in
|
|
47
|
-
* the future.
|
|
48
|
-
*/
|
|
49
|
-
expiresAt: string | null;
|
|
50
|
-
/**
|
|
51
|
-
* Geo targeting information for the short link in JSON format
|
|
52
|
-
* `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
|
|
53
|
-
*/
|
|
54
|
-
geo: Record<string, string> | null;
|
|
55
|
-
/**
|
|
56
|
-
* The image of the short link generated via `api.dub.co/metatags`. Will be used
|
|
57
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
58
|
-
*/
|
|
59
|
-
image: string | null;
|
|
60
|
-
/**
|
|
61
|
-
* The iOS destination URL for the short link for iOS device targeting.
|
|
62
|
-
*/
|
|
63
|
-
ios: string | null;
|
|
64
|
-
/**
|
|
65
|
-
* The short link slug. If not provided, a random 7-character slug will be
|
|
66
|
-
* generated.
|
|
67
|
-
*/
|
|
68
|
-
key: string;
|
|
69
|
-
/**
|
|
70
|
-
* The date and time when the short link was last clicked.
|
|
71
|
-
*/
|
|
72
|
-
lastClicked: string | null;
|
|
73
|
-
/**
|
|
74
|
-
* The password required to access the destination URL of the short link.
|
|
75
|
-
*/
|
|
76
|
-
password: string | null;
|
|
77
|
-
/**
|
|
78
|
-
* The project ID of the short link.
|
|
79
|
-
*/
|
|
80
|
-
projectId: string;
|
|
81
|
-
/**
|
|
82
|
-
* Whether the short link uses Custom Social Media Cards feature.
|
|
83
|
-
*/
|
|
84
|
-
proxy: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Whether the short link's stats are publicly accessible.
|
|
87
|
-
*/
|
|
88
|
-
publicStats: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* The full URL of the QR code for the short link (e.g.
|
|
91
|
-
* `https://api.dub.co/qr?url=https://dub.sh/try`).
|
|
92
|
-
*/
|
|
93
|
-
qrCode: string;
|
|
94
|
-
/**
|
|
95
|
-
* Whether the short link uses link cloaking.
|
|
96
|
-
*/
|
|
97
|
-
rewrite: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* The full URL of the short link, including the https protocol (e.g.
|
|
100
|
-
* `https://dub.sh/try`).
|
|
101
|
-
*/
|
|
102
|
-
shortLink: string;
|
|
103
|
-
/**
|
|
104
|
-
* @deprecated: [DEPRECATED (use `tags` instead)]: The unique ID of the tag
|
|
105
|
-
* assigned to the short link.
|
|
106
|
-
*/
|
|
107
|
-
tagId: string | null;
|
|
108
|
-
/**
|
|
109
|
-
* The tags assigned to the short link.
|
|
110
|
-
*/
|
|
111
|
-
tags: Array<InfoRetrieveResponse.Tag> | null;
|
|
112
|
-
/**
|
|
113
|
-
* The title of the short link generated via `api.dub.co/metatags`. Will be used
|
|
114
|
-
* for Custom Social Media Cards if `proxy` is true.
|
|
115
|
-
*/
|
|
116
|
-
title: string | null;
|
|
117
|
-
/**
|
|
118
|
-
* The date and time when the short link was last updated.
|
|
119
|
-
*/
|
|
120
|
-
updatedAt: string;
|
|
121
|
-
/**
|
|
122
|
-
* The destination URL of the short link.
|
|
123
|
-
*/
|
|
124
|
-
url: string;
|
|
125
|
-
/**
|
|
126
|
-
* The user ID of the creator of the short link.
|
|
127
|
-
*/
|
|
128
|
-
userId: string;
|
|
129
|
-
/**
|
|
130
|
-
* The UTM campaign of the short link.
|
|
131
|
-
*/
|
|
132
|
-
utm_campaign: string | null;
|
|
133
|
-
/**
|
|
134
|
-
* The UTM content of the short link.
|
|
135
|
-
*/
|
|
136
|
-
utm_content: string | null;
|
|
137
|
-
/**
|
|
138
|
-
* The UTM medium of the short link.
|
|
139
|
-
*/
|
|
140
|
-
utm_medium: string | null;
|
|
141
|
-
/**
|
|
142
|
-
* The UTM source of the short link.
|
|
143
|
-
*/
|
|
144
|
-
utm_source: string | null;
|
|
145
|
-
/**
|
|
146
|
-
* The UTM term of the short link.
|
|
147
|
-
*/
|
|
148
|
-
utm_term: string | null;
|
|
149
|
-
}
|
|
150
|
-
export declare namespace InfoRetrieveResponse {
|
|
151
|
-
interface Tag {
|
|
152
|
-
/**
|
|
153
|
-
* The unique ID of the tag.
|
|
154
|
-
*/
|
|
155
|
-
id: string;
|
|
156
|
-
/**
|
|
157
|
-
* The color of the tag.
|
|
158
|
-
*/
|
|
159
|
-
color: 'red' | 'yellow' | 'green' | 'blue' | 'purple' | 'pink' | 'brown';
|
|
160
|
-
/**
|
|
161
|
-
* The name of the tag.
|
|
162
|
-
*/
|
|
163
|
-
name: string;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
export interface InfoRetrieveParams {
|
|
167
|
-
/**
|
|
168
|
-
* The domain of the link to retrieve. E.g. for `d.to/github`, the domain is
|
|
169
|
-
* `d.to`.
|
|
170
|
-
*/
|
|
171
|
-
domain: string;
|
|
172
|
-
/**
|
|
173
|
-
* The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`.
|
|
174
|
-
*/
|
|
175
|
-
key: string;
|
|
176
|
-
/**
|
|
177
|
-
* The slug for the project that the link belongs to. E.g. for `app.dub.co/acme`,
|
|
178
|
-
* the projectSlug is `acme`.
|
|
179
|
-
*/
|
|
180
|
-
projectSlug?: string;
|
|
181
|
-
}
|
|
182
|
-
export declare namespace Info {
|
|
183
|
-
export import InfoRetrieveResponse = InfoAPI.InfoRetrieveResponse;
|
|
184
|
-
export import InfoRetrieveParams = InfoAPI.InfoRetrieveParams;
|
|
185
|
-
}
|
|
186
|
-
//# sourceMappingURL=info.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../src/resources/links/info.ts"],"names":[],"mappings":"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"}
|
package/resources/links/info.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Info = void 0;
|
|
5
|
-
const resource_1 = require("dub/resource");
|
|
6
|
-
class Info extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieve the info for a link from their domain and key.
|
|
9
|
-
*/
|
|
10
|
-
retrieve(params, options) {
|
|
11
|
-
const { projectSlug = this._client.projectSlug, ...query } = params;
|
|
12
|
-
return this._client.get('/links/info', { query: { projectSlug, ...query }, ...options });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Info = Info;
|
|
16
|
-
(function (Info) {
|
|
17
|
-
})(Info = exports.Info || (exports.Info = {}));
|
|
18
|
-
//# sourceMappingURL=info.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/resources/links/info.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2CAA2C;AAG3C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,MAA0B,EAAE,OAA6B;QAChE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AARD,oBAQC;AAoND,WAAiB,IAAI;AAGrB,CAAC,EAHgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGpB"}
|
package/resources/links/info.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
import { APIResource } from 'dub/resource';
|
|
3
|
-
export class Info extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieve the info for a link from their domain and key.
|
|
6
|
-
*/
|
|
7
|
-
retrieve(params, options) {
|
|
8
|
-
const { projectSlug = this._client.projectSlug, ...query } = params;
|
|
9
|
-
return this._client.get('/links/info', { query: { projectSlug, ...query }, ...options });
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
(function (Info) {
|
|
13
|
-
})(Info || (Info = {}));
|
|
14
|
-
//# sourceMappingURL=info.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.mjs","sourceRoot":"","sources":["../../src/resources/links/info.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,cAAc;AAG1C,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,MAA0B,EAAE,OAA6B;QAChE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAoND,WAAiB,IAAI;AAGrB,CAAC,EAHgB,IAAI,KAAJ,IAAI,QAGpB"}
|