mirror of
https://github.com/LukeHagar/dub-node.git
synced 2025-12-06 04:19:37 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.310.0 (#128)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
committed by
GitHub
parent
927e26d2d0
commit
d678cd3421
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: f28179cc-ef59-426d-9e85-60cec22fc642
|
id: f28179cc-ef59-426d-9e85-60cec22fc642
|
||||||
management:
|
management:
|
||||||
docChecksum: ba3e83845a082a6c2321d0eeaaf9c23c
|
docChecksum: 4e9799bd93fdf4959c9efd6004900847
|
||||||
docVersion: 0.0.1
|
docVersion: 0.0.1
|
||||||
speakeasyVersion: 1.308.1
|
speakeasyVersion: 1.310.0
|
||||||
generationVersion: 2.342.6
|
generationVersion: 2.347.4
|
||||||
releaseVersion: 0.29.19
|
releaseVersion: 0.30.0
|
||||||
configChecksum: 16dcbf7b27038e97d6737d5eb5d0d00f
|
configChecksum: 3a10eead6c2e202b51efca6e91e3a3c5
|
||||||
repoURL: https://github.com/dubinc/dub-node.git
|
repoURL: https://github.com/dubinc/dub-node.git
|
||||||
installationURL: https://github.com/dubinc/dub-node
|
installationURL: https://github.com/dubinc/dub-node
|
||||||
published: true
|
published: true
|
||||||
@@ -14,7 +14,7 @@ features:
|
|||||||
typescript:
|
typescript:
|
||||||
additionalDependencies: 0.1.0
|
additionalDependencies: 0.1.0
|
||||||
constsAndDefaults: 0.1.5
|
constsAndDefaults: 0.1.5
|
||||||
core: 3.9.14
|
core: 3.10.0
|
||||||
deprecations: 2.81.1
|
deprecations: 2.81.1
|
||||||
examples: 2.81.4
|
examples: 2.81.4
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
@@ -39,7 +39,7 @@ generatedFiles:
|
|||||||
- src/sdk/track.ts
|
- src/sdk/track.ts
|
||||||
- src/sdk/metatags.ts
|
- src/sdk/metatags.ts
|
||||||
- src/sdk/sdk.ts
|
- src/sdk/sdk.ts
|
||||||
- .eslintrc.js
|
- .eslintrc.cjs
|
||||||
- .npmignore
|
- .npmignore
|
||||||
- RUNTIMES.md
|
- RUNTIMES.md
|
||||||
- jsr.json
|
- jsr.json
|
||||||
@@ -125,7 +125,7 @@ generatedFiles:
|
|||||||
- src/models/operations/gettags.ts
|
- src/models/operations/gettags.ts
|
||||||
- src/models/operations/createtag.ts
|
- src/models/operations/createtag.ts
|
||||||
- src/models/operations/listdomains.ts
|
- src/models/operations/listdomains.ts
|
||||||
- src/models/operations/adddomain.ts
|
- src/models/operations/createdomain.ts
|
||||||
- src/models/operations/deletedomain.ts
|
- src/models/operations/deletedomain.ts
|
||||||
- src/models/operations/updatedomain.ts
|
- src/models/operations/updatedomain.ts
|
||||||
- src/models/operations/setprimarydomain.ts
|
- src/models/operations/setprimarydomain.ts
|
||||||
@@ -265,9 +265,9 @@ generatedFiles:
|
|||||||
- docs/models/operations/createtagrequestbody.md
|
- docs/models/operations/createtagrequestbody.md
|
||||||
- docs/models/operations/listdomainsglobals.md
|
- docs/models/operations/listdomainsglobals.md
|
||||||
- docs/models/operations/listdomainsrequest.md
|
- docs/models/operations/listdomainsrequest.md
|
||||||
- docs/models/operations/adddomainglobals.md
|
- docs/models/operations/createdomainglobals.md
|
||||||
- docs/models/operations/type.md
|
- docs/models/operations/type.md
|
||||||
- docs/models/operations/adddomainrequestbody.md
|
- docs/models/operations/createdomainrequestbody.md
|
||||||
- docs/models/operations/deletedomainglobals.md
|
- docs/models/operations/deletedomainglobals.md
|
||||||
- docs/models/operations/deletedomainrequest.md
|
- docs/models/operations/deletedomainrequest.md
|
||||||
- docs/models/operations/deletedomainresponsebody.md
|
- docs/models/operations/deletedomainresponsebody.md
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.29.19
|
version: 0.30.0
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies:
|
devDependencies:
|
||||||
@@ -39,3 +39,4 @@ typescript:
|
|||||||
packageName: dub
|
packageName: dub
|
||||||
responseFormat: flat
|
responseFormat: flat
|
||||||
templateVersion: v2
|
templateVersion: v2
|
||||||
|
useIndexModules: true
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
speakeasyVersion: 1.308.1
|
speakeasyVersion: 1.310.0
|
||||||
sources:
|
sources:
|
||||||
my-first-source:
|
my-first-source:
|
||||||
sourceNamespace: my-first-source
|
sourceNamespace: my-first-source
|
||||||
sourceRevisionDigest: sha256:9a700e801c2472d685c26ad0596334e1fdf7630c097d072aa8794e7087e6e2bb
|
sourceRevisionDigest: sha256:d8364283c60870cb9f54133d096e7823722e4160e52eeb3db8cc2f7d90d96e65
|
||||||
sourceBlobDigest: sha256:3146fa3c80ad954fbc1a1ea231099ecc5126b8f14693850e8c2d10183642574e
|
sourceBlobDigest: sha256:52de37a2a76e00df27b42df8fdfa2db162c0932baec6a3eeb8659f4306f5f9b5
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- main
|
||||||
@@ -11,8 +11,8 @@ targets:
|
|||||||
my-first-target:
|
my-first-target:
|
||||||
source: my-first-source
|
source: my-first-source
|
||||||
sourceNamespace: my-first-source
|
sourceNamespace: my-first-source
|
||||||
sourceRevisionDigest: sha256:9a700e801c2472d685c26ad0596334e1fdf7630c097d072aa8794e7087e6e2bb
|
sourceRevisionDigest: sha256:d8364283c60870cb9f54133d096e7823722e4160e52eeb3db8cc2f7d90d96e65
|
||||||
sourceBlobDigest: sha256:3146fa3c80ad954fbc1a1ea231099ecc5126b8f14693850e8c2d10183642574e
|
sourceBlobDigest: sha256:52de37a2a76e00df27b42df8fdfa2db162c0932baec6a3eeb8659f4306f5f9b5
|
||||||
outLocation: /github/workspace/repo
|
outLocation: /github/workspace/repo
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
|
|||||||
29
README.md
29
README.md
@@ -20,10 +20,25 @@ Learn more about the Dub.co TypeScript SDK in the [official documentation](https
|
|||||||
npm add dub
|
npm add dub
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### PNPM
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pnpm add dub
|
||||||
|
```
|
||||||
|
|
||||||
|
### Bun
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bun add dub
|
||||||
|
```
|
||||||
|
|
||||||
### Yarn
|
### Yarn
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn add dub
|
yarn add dub zod
|
||||||
|
|
||||||
|
# Note that Yarn does not install peer dependencies automatically. You will need
|
||||||
|
# to install zod as shown above.
|
||||||
```
|
```
|
||||||
<!-- End SDK Installation [installation] -->
|
<!-- End SDK Installation [installation] -->
|
||||||
|
|
||||||
@@ -43,7 +58,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -66,7 +80,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -119,7 +132,7 @@ run();
|
|||||||
### [domains](docs/sdks/domains/README.md)
|
### [domains](docs/sdks/domains/README.md)
|
||||||
|
|
||||||
* [list](docs/sdks/domains/README.md#list) - Retrieve a list of domains
|
* [list](docs/sdks/domains/README.md#list) - Retrieve a list of domains
|
||||||
* [add](docs/sdks/domains/README.md#add) - Add a domain
|
* [create](docs/sdks/domains/README.md#create) - Create a domain
|
||||||
* [delete](docs/sdks/domains/README.md#delete) - Delete a domain
|
* [delete](docs/sdks/domains/README.md#delete) - Delete a domain
|
||||||
* [update](docs/sdks/domains/README.md#update) - Update a domain
|
* [update](docs/sdks/domains/README.md#update) - Update a domain
|
||||||
* [setPrimary](docs/sdks/domains/README.md#setprimary) - Set a domain as primary
|
* [setPrimary](docs/sdks/domains/README.md#setprimary) - Set a domain as primary
|
||||||
@@ -159,11 +172,10 @@ Validation errors can also occur when either method arguments or data returned f
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
import * as errors from "dub/models/errors";
|
import { SDKValidationError } from "dub/models/errors";
|
||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -172,7 +184,7 @@ async function run() {
|
|||||||
result = await dub.links.list({});
|
result = await dub.links.list({});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case err instanceof errors.SDKValidationError: {
|
case err instanceof SDKValidationError: {
|
||||||
// Validation errors can be pretty-printed
|
// Validation errors can be pretty-printed
|
||||||
console.error(err.pretty());
|
console.error(err.pretty());
|
||||||
// Raw value may also be inspected
|
// Raw value may also be inspected
|
||||||
@@ -247,7 +259,6 @@ import { Dub } from "dub";
|
|||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
serverIdx: 0,
|
serverIdx: 0,
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -272,7 +283,6 @@ import { Dub } from "dub";
|
|||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
serverURL: "https://api.dub.co",
|
serverURL: "https://api.dub.co",
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -353,7 +363,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -456,4 +456,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [typescript v0.29.19] .
|
- [typescript v0.29.19] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.29.19] https://www.npmjs.com/package/dub/v/0.29.19 - .
|
- [NPM v0.29.19] https://www.npmjs.com/package/dub/v/0.29.19 - .
|
||||||
|
|
||||||
|
## 2024-06-20 01:17:19
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.310.0 (2.347.4) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.30.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.30.0] https://www.npmjs.com/package/dub/v/0.30.0 - .
|
||||||
2
USAGE.md
2
USAGE.md
@@ -4,7 +4,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -25,7 +24,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
611
codeSamples.yaml
611
codeSamples.yaml
@@ -3,6 +3,50 @@ info:
|
|||||||
title: CodeSamples overlay for typescript target
|
title: CodeSamples overlay for typescript target
|
||||||
version: 0.0.0
|
version: 0.0.0
|
||||||
actions:
|
actions:
|
||||||
|
- target: $["paths"]["/links"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "createLink"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.links.create({
|
||||||
|
url: "https://google/com",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/links/upsert"]["put"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "upsertLink"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.links.upsert({
|
||||||
|
url: "https://google/com",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
- target: $["paths"]["/links"]["get"]
|
- target: $["paths"]["/links"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
@@ -13,7 +57,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -34,7 +77,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -44,206 +86,6 @@ actions:
|
|||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/tags"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getTags"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.tags.list({});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/tags"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "createTag"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.tags.create({
|
|
||||||
tag: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/domains/{slug}/primary"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "setPrimaryDomain"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.domains.setPrimary("acme.com");
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/links/upsert"]["put"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "upsertLink"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.links.upsert({
|
|
||||||
url: "https://google/com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/qr"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getQRCode"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.qrCodes.get({
|
|
||||||
url: "https://brief-micronutrient.org",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/workspaces"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getWorkspaces"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.workspaces.list();
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/domains/{slug}"]["patch"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "updateDomain"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.domains.update("acme.com", {});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/track/sale"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "trackSale"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
import { PaymentProcessor } from "dub/models/operations";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.track.sale({
|
|
||||||
customerId: "<value>",
|
|
||||||
amount: 996500,
|
|
||||||
paymentProcessor: PaymentProcessor.Shopify,
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/links/{linkId}"]["delete"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "deleteLink"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.links.delete("<value>");
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/workspaces"]["post"]
|
- target: $["paths"]["/workspaces"]["post"]
|
||||||
update:
|
update:
|
||||||
@@ -255,7 +97,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -269,67 +110,40 @@ actions:
|
|||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
|
- target: $["paths"]["/tags"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getWorkspace"
|
"label": "getTags"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.workspaces.get({
|
const result = await dub.tags.list({});
|
||||||
idOrSlug: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/domains/{slug}"]["delete"]
|
- target: $["paths"]["/domains/{slug}"]["patch"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "deleteDomain"
|
"label": "updateDomain"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.delete("acme.com");
|
const result = await dub.domains.update("acme.com", {});
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/domains/{slug}/transfer"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "transferDomain"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.domains.transfer("acme.com", {
|
|
||||||
newWorkspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -346,7 +160,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -358,77 +171,6 @@ actions:
|
|||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/metatags"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getMetatags"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.metatags.get({
|
|
||||||
url: "https://dub.co",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/track/lead"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "trackLead"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.track.lead({
|
|
||||||
clickId: "<value>",
|
|
||||||
eventName: "Sign up",
|
|
||||||
customerId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/links"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "createLink"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.links.create({
|
|
||||||
url: "https://google/com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/links/count"]["get"]
|
- target: $["paths"]["/links/count"]["get"]
|
||||||
update:
|
update:
|
||||||
@@ -440,7 +182,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -461,7 +202,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -471,6 +211,137 @@ actions:
|
|||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/links/{linkId}"]["delete"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "deleteLink"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.links.delete("<value>");
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getWorkspace"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.workspaces.get({
|
||||||
|
idOrSlug: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/domains"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "createDomain"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.domains.create({
|
||||||
|
slug: "acme.com",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/domains/{slug}"]["delete"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "deleteDomain"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.domains.delete("acme.com");
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/domains/{slug}/transfer"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "transferDomain"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.domains.transfer("acme.com", {
|
||||||
|
newWorkspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/track/sale"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "trackSale"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
import { PaymentProcessor } from "dub/models/operations";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.track.sale({
|
||||||
|
customerId: "<value>",
|
||||||
|
amount: 996500,
|
||||||
|
paymentProcessor: PaymentProcessor.Shopify,
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/links/{linkId}"]["patch"]
|
- target: $["paths"]["/links/{linkId}"]["patch"]
|
||||||
update:
|
update:
|
||||||
@@ -482,7 +353,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -505,7 +375,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -519,6 +388,112 @@ actions:
|
|||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/workspaces"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getWorkspaces"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.workspaces.list();
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/domains/{slug}/primary"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "setPrimaryDomain"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.domains.setPrimary("acme.com");
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/metatags"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getMetatags"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.metatags.get({
|
||||||
|
url: "https://dub.co",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/qr"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getQRCode"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.qrCodes.get({
|
||||||
|
url: "https://brief-micronutrient.org",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/tags"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "createTag"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.tags.create({
|
||||||
|
tag: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/domains"]["get"]
|
- target: $["paths"]["/domains"]["get"]
|
||||||
update:
|
update:
|
||||||
@@ -530,7 +505,6 @@ actions:
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -541,22 +515,23 @@ actions:
|
|||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/domains"]["post"]
|
- target: $["paths"]["/track/lead"]["post"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "addDomain"
|
"label": "trackLead"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.add({
|
const result = await dub.track.lead({
|
||||||
slug: "acme.com",
|
clickId: "<value>",
|
||||||
|
eventName: "Sign up",
|
||||||
|
customerId: "<value>",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique IDs of the tags assigned to the short link.
|
The unique IDs of the tags assigned to the short link.
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique name of the tags assigned to the short link (case insensitive).
|
The unique name of the tags assigned to the short link (case insensitive).
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# AddDomainGlobals
|
# CreateDomainGlobals
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# AddDomainRequestBody
|
# CreateDomainRequestBody
|
||||||
|
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The tag IDs to filter the links by.
|
The tag IDs to filter the links by.
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique name of the tags assigned to the short link (case insensitive).
|
The unique name of the tags assigned to the short link (case insensitive).
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The field to group the links by.
|
The field to group the links by.
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `operations.One`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: operations.One = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `operations.Two`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: operations.Two = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The tag IDs to filter the links by.
|
The tag IDs to filter the links by.
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique name of the tags assigned to the short link (case insensitive).
|
The unique name of the tags assigned to the short link (case insensitive).
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -2,3 +2,186 @@
|
|||||||
|
|
||||||
Analytics data
|
Analytics data
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `components.ClicksCount`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksCount = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksTimeseries[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksTimeseries[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksCountries[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksCountries[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksCities[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksCities[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksDevices[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksDevices[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksBrowsers[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksBrowsers[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksOS[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksOS[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksReferers[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksReferers[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksTopLinks[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksTopLinks[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.ClicksTopUrls[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.ClicksTopUrls[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsCount`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsCount = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsTimeseries[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsTimeseries[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsCountries[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsCountries[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsCities[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsCities[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsDevices[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsDevices[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsBrowsers[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsBrowsers[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsOS[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsOS[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsReferers[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsReferers[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsTopLinks[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsTopLinks[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.LeadsTopUrls[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.LeadsTopUrls[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesCount`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesCount = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesTimeseries[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesTimeseries[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesCountries[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesCountries[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesCities[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesCities[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesDevices[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesDevices[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesBrowsers[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesBrowsers[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesOS[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesOS[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesReferers[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesReferers[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesTopLinks[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesTopLinks[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `components.SalesTopUrls[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: components.SalesTopUrls[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique IDs of the tags assigned to the short link.
|
The unique IDs of the tags assigned to the short link.
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique name of the tags assigned to the short link (case insensitive).
|
The unique name of the tags assigned to the short link (case insensitive).
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique IDs of the tags assigned to the short link.
|
The unique IDs of the tags assigned to the short link.
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique name of the tags assigned to the short link (case insensitive).
|
The unique name of the tags assigned to the short link (case insensitive).
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `workspaceId` | *string* | :heavy_check_mark: | N/A |
|
| `workspaceId` | *string* | :heavy_minus_sign: | N/A |
|
||||||
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
| ~~`projectSlug`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. |
|
||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique IDs of the tags assigned to the short link.
|
The unique IDs of the tags assigned to the short link.
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,18 @@
|
|||||||
|
|
||||||
The unique name of the tags assigned to the short link (case insensitive).
|
The unique name of the tags assigned to the short link (case insensitive).
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Types
|
||||||
|
|
||||||
|
### `string`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
### `string[]`
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
const value: string[] = /* values here */
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
### Available Operations
|
### Available Operations
|
||||||
|
|
||||||
* [list](#list) - Retrieve a list of domains
|
* [list](#list) - Retrieve a list of domains
|
||||||
* [add](#add) - Add a domain
|
* [create](#create) - Create a domain
|
||||||
* [delete](#delete) - Delete a domain
|
* [delete](#delete) - Delete a domain
|
||||||
* [update](#update) - Update a domain
|
* [update](#update) - Update a domain
|
||||||
* [setPrimary](#setprimary) - Set a domain as primary
|
* [setPrimary](#setprimary) - Set a domain as primary
|
||||||
@@ -21,7 +21,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -61,9 +60,9 @@ run();
|
|||||||
| errors.InternalServerError | 500 | application/json |
|
| errors.InternalServerError | 500 | application/json |
|
||||||
| errors.SDKError | 4xx-5xx | */* |
|
| errors.SDKError | 4xx-5xx | */* |
|
||||||
|
|
||||||
## add
|
## create
|
||||||
|
|
||||||
Add a domain to the authenticated workspace.
|
Create a domain for the authenticated workspace.
|
||||||
|
|
||||||
### Example Usage
|
### Example Usage
|
||||||
|
|
||||||
@@ -72,11 +71,10 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.add({
|
const result = await dub.domains.create({
|
||||||
slug: "acme.com",
|
slug: "acme.com",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -91,7 +89,7 @@ run();
|
|||||||
|
|
||||||
| Parameter | Type | Required | Description |
|
| Parameter | Type | Required | Description |
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `request` | [operations.AddDomainRequestBody](../../models/operations/adddomainrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
| `request` | [operations.CreateDomainRequestBody](../../models/operations/createdomainrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
||||||
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
||||||
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
||||||
|
|
||||||
@@ -125,7 +123,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -176,7 +173,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -228,7 +224,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -279,7 +274,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -74,7 +73,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -127,7 +125,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -178,7 +175,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -229,7 +225,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -280,7 +275,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -334,7 +328,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -389,7 +382,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -68,7 +67,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -74,7 +73,6 @@ import { PaymentProcessor } from "dub/models/operations";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -129,7 +127,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -68,7 +67,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -122,7 +120,6 @@ import { Dub } from "dub";
|
|||||||
|
|
||||||
const dub = new Dub({
|
const dub = new Dub({
|
||||||
token: "DUB_API_KEY",
|
token: "DUB_API_KEY",
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.29.19",
|
"version": "0.30.0",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./models/errors": "./src/models/errors/index.ts",
|
"./models/errors": "./src/models/errors/index.ts",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.29.19",
|
"version": "0.30.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.29.19",
|
"version": "0.30.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jsonpath": "^0.2.4",
|
"@types/jsonpath": "^0.2.4",
|
||||||
"@types/node": "^20.12.7",
|
"@types/node": "^20.12.7",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.29.19",
|
"version": "0.30.0",
|
||||||
"author": "Dub",
|
"author": "Dub",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { RequestInput } from "../lib/http";
|
import { RequestInput } from "../lib/http.js";
|
||||||
import {
|
import {
|
||||||
AfterErrorContext,
|
AfterErrorContext,
|
||||||
AfterErrorHook,
|
AfterErrorHook,
|
||||||
@@ -15,9 +15,9 @@ import {
|
|||||||
Hooks,
|
Hooks,
|
||||||
SDKInitHook,
|
SDKInitHook,
|
||||||
SDKInitOptions,
|
SDKInitOptions,
|
||||||
} from "./types";
|
} from "./types.js";
|
||||||
|
|
||||||
import { initHooks } from "./registration";
|
import { initHooks } from "./registration.js";
|
||||||
|
|
||||||
export class SDKHooks implements Hooks {
|
export class SDKHooks implements Hooks {
|
||||||
sdkInitHooks: SDKInitHook[] = [];
|
sdkInitHooks: SDKInitHook[] = [];
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from "./types";
|
export * from "./types.js";
|
||||||
export * from "./hooks";
|
export * from "./hooks.js";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { HTTPClient, RequestInput } from "../lib/http";
|
import { HTTPClient, RequestInput } from "../lib/http.js";
|
||||||
|
|
||||||
export type HookContext = {
|
export type HookContext = {
|
||||||
operationID: string;
|
operationID: string;
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { HTTPClient } from "./http";
|
import { HTTPClient } from "./http.js";
|
||||||
import { RetryConfig } from "./retries";
|
import { RetryConfig } from "./retries.js";
|
||||||
import { Params, pathToFunc } from "./url";
|
import { Params, pathToFunc } from "./url.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains the list of servers available to the SDK
|
* Contains the list of servers available to the SDK
|
||||||
@@ -22,7 +22,7 @@ export type SDKOptions = {
|
|||||||
/**
|
/**
|
||||||
* Allows setting the workspaceId parameter for all supported operations
|
* Allows setting the workspaceId parameter for all supported operations
|
||||||
*/
|
*/
|
||||||
workspaceId?: string;
|
workspaceId?: string | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows setting the projectSlug parameter for all supported operations
|
* Allows setting the projectSlug parameter for all supported operations
|
||||||
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|||||||
export const SDK_METADATA = {
|
export const SDK_METADATA = {
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
openapiDocVersion: "0.0.1",
|
openapiDocVersion: "0.0.1",
|
||||||
sdkVersion: "0.29.19",
|
sdkVersion: "0.30.0",
|
||||||
genVersion: "2.342.6",
|
genVersion: "2.347.4",
|
||||||
userAgent: "speakeasy-sdk/typescript 0.29.19 2.342.6 0.0.1 dub",
|
userAgent: "speakeasy-sdk/typescript 0.30.0 2.347.4 0.0.1 dub",
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { bytesToBase64 } from "./base64";
|
import { bytesToBase64 } from "./base64.js";
|
||||||
import { isPlainObject } from "./is-plain-object";
|
import { isPlainObject } from "./is-plain-object.js";
|
||||||
|
|
||||||
export class EncodingError extends Error {
|
export class EncodingError extends Error {
|
||||||
constructor(message: string) {
|
constructor(message: string) {
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { never as znever } from "zod";
|
import { never as znever } from "zod";
|
||||||
import { parse } from "./schemas";
|
import { parse } from "./schemas.js";
|
||||||
import { isPlainObject } from "./is-plain-object";
|
import { isPlainObject } from "./is-plain-object.js";
|
||||||
import * as errors from "../models/errors";
|
import { SDKError } from "../models/errors/sdkerror.js";
|
||||||
|
|
||||||
export type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
export type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
||||||
|
|
||||||
@@ -406,7 +406,7 @@ export class ResponseMatcher<Result> {
|
|||||||
}
|
}
|
||||||
if (pred == null) {
|
if (pred == null) {
|
||||||
const responseBody = await response.text();
|
const responseBody = await response.text();
|
||||||
throw new errors.SDKError(
|
throw new SDKError(
|
||||||
"Unexpected API response status or content-type",
|
"Unexpected API response status or content-type",
|
||||||
response,
|
response,
|
||||||
responseBody
|
responseBody
|
||||||
@@ -446,11 +446,7 @@ export class ResponseMatcher<Result> {
|
|||||||
const resultKey = pred.key || options?.resultKey;
|
const resultKey = pred.key || options?.resultKey;
|
||||||
let data: unknown;
|
let data: unknown;
|
||||||
if (pred.fail) {
|
if (pred.fail) {
|
||||||
throw new errors.SDKError(
|
throw new SDKError("API error occurred", response, typeof raw === "string" ? raw : "");
|
||||||
"API error occurred",
|
|
||||||
response,
|
|
||||||
typeof raw === "string" ? raw : ""
|
|
||||||
);
|
|
||||||
} else if (pred.err) {
|
} else if (pred.err) {
|
||||||
data = {
|
data = {
|
||||||
...options?.extraFields,
|
...options?.extraFields,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { output, ZodEffects, ZodError, ZodObject, ZodRawShape, ZodTypeAny } from "zod";
|
import { output, ZodEffects, ZodError, ZodObject, ZodRawShape, ZodTypeAny } from "zod";
|
||||||
import { SDKValidationError } from "../models/errors/sdkvalidationerror";
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility function that executes some code which may throw a ZodError. It
|
* Utility function that executes some code which may throw a ZodError. It
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ResponseMatcher, HTTPClient, matchStatusCode } from "./http";
|
import { ResponseMatcher, HTTPClient, matchStatusCode } from "./http.js";
|
||||||
import { SecurityState, resolveSecurity, resolveGlobalSecurity } from "./security";
|
import { SecurityState, resolveSecurity, resolveGlobalSecurity } from "./security.js";
|
||||||
import { pathToFunc } from "./url";
|
import { pathToFunc } from "./url.js";
|
||||||
import { encodeForm } from "./encodings";
|
import { encodeForm } from "./encodings.js";
|
||||||
import { stringToBase64 } from "./base64";
|
import { stringToBase64 } from "./base64.js";
|
||||||
import { SDKHooks, HookContext } from "../hooks";
|
import { SDKHooks } from "../hooks/hooks.js";
|
||||||
|
import { HookContext } from "../hooks/types.js";
|
||||||
|
|
||||||
export type RequestOptions = {
|
export type RequestOptions = {
|
||||||
fetchOptions?: Omit<RequestInit, "method" | "body">;
|
fetchOptions?: Omit<RequestInit, "method" | "body">;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as components from "../models/components";
|
import * as components from "../models/components/index.js";
|
||||||
|
|
||||||
export enum SecurityErrorCode {
|
export enum SecurityErrorCode {
|
||||||
Incomplete = "incomplete",
|
Incomplete = "incomplete",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -282,8 +282,9 @@ export type ClicksCities = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClicksCitiesCountry$ {
|
export namespace ClicksCitiesCountry$ {
|
||||||
export const inboundSchema = z.nativeEnum(ClicksCitiesCountry);
|
export const inboundSchema: z.ZodNativeEnum<typeof ClicksCitiesCountry> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(ClicksCitiesCountry);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof ClicksCitiesCountry> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -278,8 +278,8 @@ export type ClicksCountries = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Country$ {
|
export namespace Country$ {
|
||||||
export const inboundSchema = z.nativeEnum(Country);
|
export const inboundSchema: z.ZodNativeEnum<typeof Country> = z.nativeEnum(Country);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Country> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -267,6 +267,6 @@ export type CountryCode = ClosedEnum<typeof CountryCode>;
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CountryCode$ {
|
export namespace CountryCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(CountryCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof CountryCode> = z.nativeEnum(CountryCode);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof CountryCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -66,8 +66,8 @@ export type DomainSchema = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Type$ {
|
export namespace Type$ {
|
||||||
export const inboundSchema = z.nativeEnum(Type);
|
export const inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(Type);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Type> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,40 +2,40 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from "./clicksbrowsers";
|
export * from "./clicksbrowsers.js";
|
||||||
export * from "./clickscities";
|
export * from "./clickscities.js";
|
||||||
export * from "./clickscount";
|
export * from "./clickscount.js";
|
||||||
export * from "./clickscountries";
|
export * from "./clickscountries.js";
|
||||||
export * from "./clicksdevices";
|
export * from "./clicksdevices.js";
|
||||||
export * from "./clicksos";
|
export * from "./clicksos.js";
|
||||||
export * from "./clicksreferers";
|
export * from "./clicksreferers.js";
|
||||||
export * from "./clickstimeseries";
|
export * from "./clickstimeseries.js";
|
||||||
export * from "./clickstoplinks";
|
export * from "./clickstoplinks.js";
|
||||||
export * from "./clickstopurls";
|
export * from "./clickstopurls.js";
|
||||||
export * from "./countrycode";
|
export * from "./countrycode.js";
|
||||||
export * from "./domainschema";
|
export * from "./domainschema.js";
|
||||||
export * from "./leadsbrowsers";
|
export * from "./leadsbrowsers.js";
|
||||||
export * from "./leadscities";
|
export * from "./leadscities.js";
|
||||||
export * from "./leadscount";
|
export * from "./leadscount.js";
|
||||||
export * from "./leadscountries";
|
export * from "./leadscountries.js";
|
||||||
export * from "./leadsdevices";
|
export * from "./leadsdevices.js";
|
||||||
export * from "./leadsos";
|
export * from "./leadsos.js";
|
||||||
export * from "./leadsreferers";
|
export * from "./leadsreferers.js";
|
||||||
export * from "./leadstimeseries";
|
export * from "./leadstimeseries.js";
|
||||||
export * from "./leadstoplinks";
|
export * from "./leadstoplinks.js";
|
||||||
export * from "./leadstopurls";
|
export * from "./leadstopurls.js";
|
||||||
export * from "./linkgeotargeting";
|
export * from "./linkgeotargeting.js";
|
||||||
export * from "./linkschema";
|
export * from "./linkschema.js";
|
||||||
export * from "./salesbrowsers";
|
export * from "./salesbrowsers.js";
|
||||||
export * from "./salescities";
|
export * from "./salescities.js";
|
||||||
export * from "./salescount";
|
export * from "./salescount.js";
|
||||||
export * from "./salescountries";
|
export * from "./salescountries.js";
|
||||||
export * from "./salesdevices";
|
export * from "./salesdevices.js";
|
||||||
export * from "./salesos";
|
export * from "./salesos.js";
|
||||||
export * from "./salesreferers";
|
export * from "./salesreferers.js";
|
||||||
export * from "./salestimeseries";
|
export * from "./salestimeseries.js";
|
||||||
export * from "./salestoplinks";
|
export * from "./salestoplinks.js";
|
||||||
export * from "./salestopurls";
|
export * from "./salestopurls.js";
|
||||||
export * from "./security";
|
export * from "./security.js";
|
||||||
export * from "./tagschema";
|
export * from "./tagschema.js";
|
||||||
export * from "./workspaceschema";
|
export * from "./workspaceschema.js";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -282,8 +282,9 @@ export type LeadsCities = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsCitiesCountry$ {
|
export namespace LeadsCitiesCountry$ {
|
||||||
export const inboundSchema = z.nativeEnum(LeadsCitiesCountry);
|
export const inboundSchema: z.ZodNativeEnum<typeof LeadsCitiesCountry> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(LeadsCitiesCountry);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof LeadsCitiesCountry> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -278,8 +278,9 @@ export type LeadsCountries = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LeadsCountriesCountry$ {
|
export namespace LeadsCountriesCountry$ {
|
||||||
export const inboundSchema = z.nativeEnum(LeadsCountriesCountry);
|
export const inboundSchema: z.ZodNativeEnum<typeof LeadsCountriesCountry> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(LeadsCountriesCountry);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof LeadsCountriesCountry> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { TagSchema, TagSchema$ } from "./tagschema";
|
import { TagSchema, TagSchema$ } from "./tagschema.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -286,8 +286,9 @@ export type SalesCities = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesCitiesCountry$ {
|
export namespace SalesCitiesCountry$ {
|
||||||
export const inboundSchema = z.nativeEnum(SalesCitiesCountry);
|
export const inboundSchema: z.ZodNativeEnum<typeof SalesCitiesCountry> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(SalesCitiesCountry);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof SalesCitiesCountry> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -282,8 +282,9 @@ export type SalesCountries = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SalesCountriesCountry$ {
|
export namespace SalesCountriesCountry$ {
|
||||||
export const inboundSchema = z.nativeEnum(SalesCountriesCountry);
|
export const inboundSchema: z.ZodNativeEnum<typeof SalesCountriesCountry> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(SalesCountriesCountry);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof SalesCountriesCountry> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -39,8 +39,8 @@ export type TagSchema = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Color$ {
|
export namespace Color$ {
|
||||||
export const inboundSchema = z.nativeEnum(Color);
|
export const inboundSchema: z.ZodNativeEnum<typeof Color> = z.nativeEnum(Color);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Color> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -137,14 +137,14 @@ export type WorkspaceSchema = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Plan$ {
|
export namespace Plan$ {
|
||||||
export const inboundSchema = z.nativeEnum(Plan);
|
export const inboundSchema: z.ZodNativeEnum<typeof Plan> = z.nativeEnum(Plan);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Plan> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Role$ {
|
export namespace Role$ {
|
||||||
export const inboundSchema = z.nativeEnum(Role);
|
export const inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(Role);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Role> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,8 @@ export class BadRequest extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Code$ {
|
export namespace Code$ {
|
||||||
export const inboundSchema = z.nativeEnum(Code);
|
export const inboundSchema: z.ZodNativeEnum<typeof Code> = z.nativeEnum(Code);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Code> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,8 @@ export class Conflict extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ConflictCode$ {
|
export namespace ConflictCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(ConflictCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof ConflictCode> = z.nativeEnum(ConflictCode);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof ConflictCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,8 @@ export class Forbidden extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ForbiddenCode$ {
|
export namespace ForbiddenCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(ForbiddenCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof ForbiddenCode> = z.nativeEnum(ForbiddenCode);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof ForbiddenCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from "./badrequest";
|
export * from "./badrequest.js";
|
||||||
export * from "./conflict";
|
export * from "./conflict.js";
|
||||||
export * from "./forbidden";
|
export * from "./forbidden.js";
|
||||||
export * from "./internalservererror";
|
export * from "./internalservererror.js";
|
||||||
export * from "./inviteexpired";
|
export * from "./inviteexpired.js";
|
||||||
export * from "./notfound";
|
export * from "./notfound.js";
|
||||||
export * from "./ratelimitexceeded";
|
export * from "./ratelimitexceeded.js";
|
||||||
export * from "./sdkerror";
|
export * from "./sdkerror.js";
|
||||||
export * from "./sdkvalidationerror";
|
export * from "./sdkvalidationerror.js";
|
||||||
export * from "./unauthorized";
|
export * from "./unauthorized.js";
|
||||||
export * from "./unprocessableentity";
|
export * from "./unprocessableentity.js";
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,9 @@ export class InternalServerError extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace InternalServerErrorCode$ {
|
export namespace InternalServerErrorCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(InternalServerErrorCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof InternalServerErrorCode> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(InternalServerErrorCode);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof InternalServerErrorCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,9 @@ export class InviteExpired extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace InviteExpiredCode$ {
|
export namespace InviteExpiredCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(InviteExpiredCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof InviteExpiredCode> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(InviteExpiredCode);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof InviteExpiredCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,8 @@ export class NotFound extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace NotFoundCode$ {
|
export namespace NotFoundCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(NotFoundCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof NotFoundCode> = z.nativeEnum(NotFoundCode);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof NotFoundCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,9 @@ export class RateLimitExceeded extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace RateLimitExceededCode$ {
|
export namespace RateLimitExceededCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(RateLimitExceededCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof RateLimitExceededCode> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(RateLimitExceededCode);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof RateLimitExceededCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,9 @@ export class Unauthorized extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UnauthorizedCode$ {
|
export namespace UnauthorizedCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(UnauthorizedCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof UnauthorizedCode> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(UnauthorizedCode);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof UnauthorizedCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { remap as remap$ } from "../../lib/primitives";
|
import { remap as remap$ } from "../../lib/primitives.js";
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,8 +65,9 @@ export class UnprocessableEntity extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UnprocessableEntityCode$ {
|
export namespace UnprocessableEntityCode$ {
|
||||||
export const inboundSchema = z.nativeEnum(UnprocessableEntityCode);
|
export const inboundSchema: z.ZodNativeEnum<typeof UnprocessableEntityCode> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(UnprocessableEntityCode);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof UnprocessableEntityCode> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as components from "../components";
|
import * as components from "../components/index.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type BulkCreateLinksGlobals = {
|
export type BulkCreateLinksGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -124,19 +124,19 @@ export type RequestBody = {
|
|||||||
export namespace BulkCreateLinksGlobals$ {
|
export namespace BulkCreateLinksGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<BulkCreateLinksGlobals, z.ZodTypeDef, unknown> = z.object(
|
export const inboundSchema: z.ZodType<BulkCreateLinksGlobals, z.ZodTypeDef, unknown> = z.object(
|
||||||
{
|
{
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, BulkCreateLinksGlobals> =
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, BulkCreateLinksGlobals> =
|
||||||
z.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type AddDomainGlobals = {
|
export type CreateDomainGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -25,7 +25,7 @@ export const Type = {
|
|||||||
*/
|
*/
|
||||||
export type Type = ClosedEnum<typeof Type>;
|
export type Type = ClosedEnum<typeof Type>;
|
||||||
|
|
||||||
export type AddDomainRequestBody = {
|
export type CreateDomainRequestBody = {
|
||||||
/**
|
/**
|
||||||
* Name of the domain.
|
* Name of the domain.
|
||||||
*/
|
*/
|
||||||
@@ -57,40 +57,41 @@ export type AddDomainRequestBody = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace AddDomainGlobals$ {
|
export namespace CreateDomainGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<AddDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<CreateDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddDomainGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateDomainGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Type$ {
|
export namespace Type$ {
|
||||||
export const inboundSchema = z.nativeEnum(Type);
|
export const inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(Type);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Type> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace AddDomainRequestBody$ {
|
export namespace CreateDomainRequestBody$ {
|
||||||
export const inboundSchema: z.ZodType<AddDomainRequestBody, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<CreateDomainRequestBody, z.ZodTypeDef, unknown> =
|
||||||
slug: z.string(),
|
z.object({
|
||||||
type: Type$.inboundSchema.default("redirect"),
|
slug: z.string(),
|
||||||
target: z.nullable(z.string()).optional(),
|
type: Type$.inboundSchema.default("redirect"),
|
||||||
expiredUrl: z.nullable(z.string()).optional(),
|
target: z.nullable(z.string()).optional(),
|
||||||
archived: z.boolean().default(false),
|
expiredUrl: z.nullable(z.string()).optional(),
|
||||||
noindex: z.boolean().optional(),
|
archived: z.boolean().default(false),
|
||||||
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
noindex: z.boolean().optional(),
|
||||||
});
|
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
||||||
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
slug: string;
|
slug: string;
|
||||||
@@ -102,8 +103,8 @@ export namespace AddDomainRequestBody$ {
|
|||||||
placeholder: string | null;
|
placeholder: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddDomainRequestBody> = z.object(
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateDomainRequestBody> =
|
||||||
{
|
z.object({
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
type: Type$.outboundSchema.default("redirect"),
|
type: Type$.outboundSchema.default("redirect"),
|
||||||
target: z.nullable(z.string()).optional(),
|
target: z.nullable(z.string()).optional(),
|
||||||
@@ -111,6 +112,5 @@ export namespace AddDomainRequestBody$ {
|
|||||||
archived: z.boolean().default(false),
|
archived: z.boolean().default(false),
|
||||||
noindex: z.boolean().optional(),
|
noindex: z.boolean().optional(),
|
||||||
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
placeholder: z.nullable(z.string().default("https://dub.co/help/article/what-is-dub")),
|
||||||
}
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
@@ -2,11 +2,11 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as components from "../components";
|
import * as components from "../components/index.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type CreateLinkGlobals = {
|
export type CreateLinkGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -123,17 +123,17 @@ export type CreateLinkRequestBody = {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreateLinkGlobals$ {
|
export namespace CreateLinkGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<CreateLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<CreateLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type CreateTagGlobals = {
|
export type CreateTagGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -44,25 +44,25 @@ export type CreateTagRequestBody = {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreateTagGlobals$ {
|
export namespace CreateTagGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<CreateTagGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<CreateTagGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Color$ {
|
export namespace Color$ {
|
||||||
export const inboundSchema = z.nativeEnum(Color);
|
export const inboundSchema: z.ZodNativeEnum<typeof Color> = z.nativeEnum(Color);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Color> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type DeleteDomainGlobals = {
|
export type DeleteDomainGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -32,17 +32,17 @@ export type DeleteDomainResponseBody = {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteDomainGlobals$ {
|
export namespace DeleteDomainGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<DeleteDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type DeleteLinkGlobals = {
|
export type DeleteLinkGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -32,17 +32,17 @@ export type DeleteLinkResponseBody = {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteLinkGlobals$ {
|
export namespace DeleteLinkGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<DeleteLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetLinkInfoGlobals = {
|
export type GetLinkInfoGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -31,17 +31,17 @@ export type GetLinkInfoRequest = {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinkInfoGlobals$ {
|
export namespace GetLinkInfoGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinkInfoGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<GetLinkInfoGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinkInfoGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinkInfoGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetLinksGlobals = {
|
export type GetLinksGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -82,17 +82,17 @@ export type GetLinksRequest = {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinksGlobals$ {
|
export namespace GetLinksGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinksGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<GetLinksGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -127,8 +127,8 @@ export namespace QueryParamTagNames$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Sort$ {
|
export namespace Sort$ {
|
||||||
export const inboundSchema = z.nativeEnum(Sort);
|
export const inboundSchema: z.ZodNativeEnum<typeof Sort> = z.nativeEnum(Sort);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Sort> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetLinksCountGlobals = {
|
export type GetLinksCountGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -80,18 +80,18 @@ export type GetLinksCountRequest = {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLinksCountGlobals$ {
|
export namespace GetLinksCountGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<GetLinksCountGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<GetLinksCountGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksCountGlobals> = z.object(
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksCountGlobals> = z.object(
|
||||||
{
|
{
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -122,14 +122,14 @@ export namespace GetLinksCountQueryParamTagNames$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Two$ {
|
export namespace Two$ {
|
||||||
export const inboundSchema = z.nativeEnum(Two);
|
export const inboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(Two);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Two> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace One$ {
|
export namespace One$ {
|
||||||
export const inboundSchema = z.nativeEnum(One);
|
export const inboundSchema: z.ZodNativeEnum<typeof One> = z.nativeEnum(One);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof One> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -48,8 +48,8 @@ export type GetQRCodeRequest = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Level$ {
|
export namespace Level$ {
|
||||||
export const inboundSchema = z.nativeEnum(Level);
|
export const inboundSchema: z.ZodNativeEnum<typeof Level> = z.nativeEnum(Level);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Level> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetTagsGlobals = {
|
export type GetTagsGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -17,17 +17,17 @@ export type GetTagsRequest = {};
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetTagsGlobals$ {
|
export namespace GetTagsGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<GetTagsGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<GetTagsGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTagsGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTagsGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,27 +2,27 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from "./adddomain";
|
export * from "./bulkcreatelinks.js";
|
||||||
export * from "./bulkcreatelinks";
|
export * from "./createdomain.js";
|
||||||
export * from "./createlink";
|
export * from "./createlink.js";
|
||||||
export * from "./createtag";
|
export * from "./createtag.js";
|
||||||
export * from "./createworkspace";
|
export * from "./createworkspace.js";
|
||||||
export * from "./deletedomain";
|
export * from "./deletedomain.js";
|
||||||
export * from "./deletelink";
|
export * from "./deletelink.js";
|
||||||
export * from "./getlinkinfo";
|
export * from "./getlinkinfo.js";
|
||||||
export * from "./getlinks";
|
export * from "./getlinks.js";
|
||||||
export * from "./getlinkscount";
|
export * from "./getlinkscount.js";
|
||||||
export * from "./getmetatags";
|
export * from "./getmetatags.js";
|
||||||
export * from "./getqrcode";
|
export * from "./getqrcode.js";
|
||||||
export * from "./gettags";
|
export * from "./gettags.js";
|
||||||
export * from "./getworkspace";
|
export * from "./getworkspace.js";
|
||||||
export * from "./listdomains";
|
export * from "./listdomains.js";
|
||||||
export * from "./retrieveanalytics";
|
export * from "./retrieveanalytics.js";
|
||||||
export * from "./setprimarydomain";
|
export * from "./setprimarydomain.js";
|
||||||
export * from "./trackcustomer";
|
export * from "./trackcustomer.js";
|
||||||
export * from "./tracklead";
|
export * from "./tracklead.js";
|
||||||
export * from "./tracksale";
|
export * from "./tracksale.js";
|
||||||
export * from "./transferdomain";
|
export * from "./transferdomain.js";
|
||||||
export * from "./updatedomain";
|
export * from "./updatedomain.js";
|
||||||
export * from "./updatelink";
|
export * from "./updatelink.js";
|
||||||
export * from "./upsertlink";
|
export * from "./upsertlink.js";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type ListDomainsGlobals = {
|
export type ListDomainsGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -17,17 +17,17 @@ export type ListDomainsRequest = {};
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ListDomainsGlobals$ {
|
export namespace ListDomainsGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<ListDomainsGlobals, z.ZodTypeDef, unknown> = z.object({
|
export const inboundSchema: z.ZodType<ListDomainsGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListDomainsGlobals> = z.object({
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListDomainsGlobals> = z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ClosedEnum } from "../../types";
|
import { ClosedEnum } from "../../types/enums.js";
|
||||||
import * as components from "../components";
|
import * as components from "../components/index.js";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type RetrieveAnalyticsGlobals = {
|
export type RetrieveAnalyticsGlobals = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
||||||
*/
|
*/
|
||||||
@@ -189,38 +189,39 @@ export type RetrieveAnalyticsResponseBody =
|
|||||||
export namespace RetrieveAnalyticsGlobals$ {
|
export namespace RetrieveAnalyticsGlobals$ {
|
||||||
export const inboundSchema: z.ZodType<RetrieveAnalyticsGlobals, z.ZodTypeDef, unknown> =
|
export const inboundSchema: z.ZodType<RetrieveAnalyticsGlobals, z.ZodTypeDef, unknown> =
|
||||||
z.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
workspaceId: string;
|
workspaceId?: string | undefined;
|
||||||
projectSlug?: string | undefined;
|
projectSlug?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RetrieveAnalyticsGlobals> =
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RetrieveAnalyticsGlobals> =
|
||||||
z.object({
|
z.object({
|
||||||
workspaceId: z.string(),
|
workspaceId: z.string().optional(),
|
||||||
projectSlug: z.string().optional(),
|
projectSlug: z.string().optional(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Event$ {
|
export namespace Event$ {
|
||||||
export const inboundSchema = z.nativeEnum(Event);
|
export const inboundSchema: z.ZodNativeEnum<typeof Event> = z.nativeEnum(Event);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Event> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace QueryParamGroupBy$ {
|
export namespace QueryParamGroupBy$ {
|
||||||
export const inboundSchema = z.nativeEnum(QueryParamGroupBy);
|
export const inboundSchema: z.ZodNativeEnum<typeof QueryParamGroupBy> =
|
||||||
export const outboundSchema = inboundSchema;
|
z.nativeEnum(QueryParamGroupBy);
|
||||||
|
export const outboundSchema: z.ZodNativeEnum<typeof QueryParamGroupBy> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Interval$ {
|
export namespace Interval$ {
|
||||||
export const inboundSchema = z.nativeEnum(Interval);
|
export const inboundSchema: z.ZodNativeEnum<typeof Interval> = z.nativeEnum(Interval);
|
||||||
export const outboundSchema = inboundSchema;
|
export const outboundSchema: z.ZodNativeEnum<typeof Interval> = inboundSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user