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
|
||||
id: f28179cc-ef59-426d-9e85-60cec22fc642
|
||||
management:
|
||||
docChecksum: ba3e83845a082a6c2321d0eeaaf9c23c
|
||||
docChecksum: 4e9799bd93fdf4959c9efd6004900847
|
||||
docVersion: 0.0.1
|
||||
speakeasyVersion: 1.308.1
|
||||
generationVersion: 2.342.6
|
||||
releaseVersion: 0.29.19
|
||||
configChecksum: 16dcbf7b27038e97d6737d5eb5d0d00f
|
||||
speakeasyVersion: 1.310.0
|
||||
generationVersion: 2.347.4
|
||||
releaseVersion: 0.30.0
|
||||
configChecksum: 3a10eead6c2e202b51efca6e91e3a3c5
|
||||
repoURL: https://github.com/dubinc/dub-node.git
|
||||
installationURL: https://github.com/dubinc/dub-node
|
||||
published: true
|
||||
@@ -14,7 +14,7 @@ features:
|
||||
typescript:
|
||||
additionalDependencies: 0.1.0
|
||||
constsAndDefaults: 0.1.5
|
||||
core: 3.9.14
|
||||
core: 3.10.0
|
||||
deprecations: 2.81.1
|
||||
examples: 2.81.4
|
||||
flattening: 2.81.1
|
||||
@@ -39,7 +39,7 @@ generatedFiles:
|
||||
- src/sdk/track.ts
|
||||
- src/sdk/metatags.ts
|
||||
- src/sdk/sdk.ts
|
||||
- .eslintrc.js
|
||||
- .eslintrc.cjs
|
||||
- .npmignore
|
||||
- RUNTIMES.md
|
||||
- jsr.json
|
||||
@@ -125,7 +125,7 @@ generatedFiles:
|
||||
- src/models/operations/gettags.ts
|
||||
- src/models/operations/createtag.ts
|
||||
- src/models/operations/listdomains.ts
|
||||
- src/models/operations/adddomain.ts
|
||||
- src/models/operations/createdomain.ts
|
||||
- src/models/operations/deletedomain.ts
|
||||
- src/models/operations/updatedomain.ts
|
||||
- src/models/operations/setprimarydomain.ts
|
||||
@@ -265,9 +265,9 @@ generatedFiles:
|
||||
- docs/models/operations/createtagrequestbody.md
|
||||
- docs/models/operations/listdomainsglobals.md
|
||||
- docs/models/operations/listdomainsrequest.md
|
||||
- docs/models/operations/adddomainglobals.md
|
||||
- docs/models/operations/createdomainglobals.md
|
||||
- docs/models/operations/type.md
|
||||
- docs/models/operations/adddomainrequestbody.md
|
||||
- docs/models/operations/createdomainrequestbody.md
|
||||
- docs/models/operations/deletedomainglobals.md
|
||||
- docs/models/operations/deletedomainrequest.md
|
||||
- docs/models/operations/deletedomainresponsebody.md
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
typescript:
|
||||
version: 0.29.19
|
||||
version: 0.30.0
|
||||
additionalDependencies:
|
||||
dependencies: {}
|
||||
devDependencies:
|
||||
@@ -39,3 +39,4 @@ typescript:
|
||||
packageName: dub
|
||||
responseFormat: flat
|
||||
templateVersion: v2
|
||||
useIndexModules: true
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
speakeasyVersion: 1.308.1
|
||||
speakeasyVersion: 1.310.0
|
||||
sources:
|
||||
my-first-source:
|
||||
sourceNamespace: my-first-source
|
||||
sourceRevisionDigest: sha256:9a700e801c2472d685c26ad0596334e1fdf7630c097d072aa8794e7087e6e2bb
|
||||
sourceBlobDigest: sha256:3146fa3c80ad954fbc1a1ea231099ecc5126b8f14693850e8c2d10183642574e
|
||||
sourceRevisionDigest: sha256:d8364283c60870cb9f54133d096e7823722e4160e52eeb3db8cc2f7d90d96e65
|
||||
sourceBlobDigest: sha256:52de37a2a76e00df27b42df8fdfa2db162c0932baec6a3eeb8659f4306f5f9b5
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -11,8 +11,8 @@ targets:
|
||||
my-first-target:
|
||||
source: my-first-source
|
||||
sourceNamespace: my-first-source
|
||||
sourceRevisionDigest: sha256:9a700e801c2472d685c26ad0596334e1fdf7630c097d072aa8794e7087e6e2bb
|
||||
sourceBlobDigest: sha256:3146fa3c80ad954fbc1a1ea231099ecc5126b8f14693850e8c2d10183642574e
|
||||
sourceRevisionDigest: sha256:d8364283c60870cb9f54133d096e7823722e4160e52eeb3db8cc2f7d90d96e65
|
||||
sourceBlobDigest: sha256:52de37a2a76e00df27b42df8fdfa2db162c0932baec6a3eeb8659f4306f5f9b5
|
||||
outLocation: /github/workspace/repo
|
||||
workflow:
|
||||
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
|
||||
```
|
||||
|
||||
### PNPM
|
||||
|
||||
```bash
|
||||
pnpm add dub
|
||||
```
|
||||
|
||||
### Bun
|
||||
|
||||
```bash
|
||||
bun add dub
|
||||
```
|
||||
|
||||
### Yarn
|
||||
|
||||
```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] -->
|
||||
|
||||
@@ -43,7 +58,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -66,7 +80,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -119,7 +132,7 @@ run();
|
||||
### [domains](docs/sdks/domains/README.md)
|
||||
|
||||
* [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
|
||||
* [update](docs/sdks/domains/README.md#update) - Update a domain
|
||||
* [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
|
||||
import { Dub } from "dub";
|
||||
import * as errors from "dub/models/errors";
|
||||
import { SDKValidationError } from "dub/models/errors";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -172,7 +184,7 @@ async function run() {
|
||||
result = await dub.links.list({});
|
||||
} catch (err) {
|
||||
switch (true) {
|
||||
case err instanceof errors.SDKValidationError: {
|
||||
case err instanceof SDKValidationError: {
|
||||
// Validation errors can be pretty-printed
|
||||
console.error(err.pretty());
|
||||
// Raw value may also be inspected
|
||||
@@ -247,7 +259,6 @@ import { Dub } from "dub";
|
||||
const dub = new Dub({
|
||||
serverIdx: 0,
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -272,7 +283,6 @@ import { Dub } from "dub";
|
||||
const dub = new Dub({
|
||||
serverURL: "https://api.dub.co",
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -353,7 +363,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
10
RELEASES.md
10
RELEASES.md
@@ -457,3 +457,13 @@ Based on:
|
||||
- [typescript v0.29.19] .
|
||||
### Releases
|
||||
- [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({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -25,7 +24,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
611
codeSamples.yaml
611
codeSamples.yaml
@@ -3,6 +3,50 @@ info:
|
||||
title: CodeSamples overlay for typescript target
|
||||
version: 0.0.0
|
||||
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"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
@@ -13,7 +57,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -34,7 +77,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -44,206 +86,6 @@ actions:
|
||||
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();
|
||||
- target: $["paths"]["/workspaces"]["post"]
|
||||
update:
|
||||
@@ -255,7 +97,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -269,67 +110,40 @@ actions:
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
|
||||
- target: $["paths"]["/tags"]["get"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "getWorkspace"
|
||||
"label": "getTags"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.workspaces.get({
|
||||
idOrSlug: "<value>",
|
||||
});
|
||||
const result = await dub.tags.list({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/domains/{slug}"]["delete"]
|
||||
- target: $["paths"]["/domains/{slug}"]["patch"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "deleteDomain"
|
||||
"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.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",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.domains.transfer("acme.com", {
|
||||
newWorkspaceId: "<value>",
|
||||
});
|
||||
const result = await dub.domains.update("acme.com", {});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
@@ -346,7 +160,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -358,77 +171,6 @@ actions:
|
||||
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();
|
||||
- target: $["paths"]["/links/count"]["get"]
|
||||
update:
|
||||
@@ -440,7 +182,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -461,7 +202,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -471,6 +211,137 @@ actions:
|
||||
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();
|
||||
- target: $["paths"]["/links/{linkId}"]["patch"]
|
||||
update:
|
||||
@@ -482,7 +353,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -505,7 +375,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -519,6 +388,112 @@ actions:
|
||||
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();
|
||||
- target: $["paths"]["/domains"]["get"]
|
||||
update:
|
||||
@@ -530,7 +505,6 @@ actions:
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -541,22 +515,23 @@ actions:
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/domains"]["post"]
|
||||
- target: $["paths"]["/track/lead"]["post"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "addDomain"
|
||||
"label": "trackLead"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.domains.add({
|
||||
slug: "acme.com",
|
||||
const result = await dub.track.lead({
|
||||
clickId: "<value>",
|
||||
eventName: "Sign up",
|
||||
customerId: "<value>",
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -2,3 +2,18 @@
|
||||
|
||||
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).
|
||||
|
||||
|
||||
## Supported Types
|
||||
|
||||
### `string`
|
||||
|
||||
```typescript
|
||||
const value: string = /* values here */
|
||||
```
|
||||
|
||||
### `string[]`
|
||||
|
||||
```typescript
|
||||
const value: string[] = /* values here */
|
||||
```
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# AddDomainGlobals
|
||||
# CreateDomainGlobals
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| 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. |
|
||||
@@ -1,4 +1,4 @@
|
||||
# AddDomainRequestBody
|
||||
# CreateDomainRequestBody
|
||||
|
||||
|
||||
## Fields
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -2,3 +2,18 @@
|
||||
|
||||
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).
|
||||
|
||||
|
||||
## Supported Types
|
||||
|
||||
### `string`
|
||||
|
||||
```typescript
|
||||
const value: string = /* values here */
|
||||
```
|
||||
|
||||
### `string[]`
|
||||
|
||||
```typescript
|
||||
const value: string[] = /* values here */
|
||||
```
|
||||
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -2,3 +2,18 @@
|
||||
|
||||
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 |
|
||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||
| `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. |
|
||||
@@ -2,3 +2,18 @@
|
||||
|
||||
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).
|
||||
|
||||
|
||||
## Supported Types
|
||||
|
||||
### `string`
|
||||
|
||||
```typescript
|
||||
const value: string = /* values here */
|
||||
```
|
||||
|
||||
### `string[]`
|
||||
|
||||
```typescript
|
||||
const value: string[] = /* values here */
|
||||
```
|
||||
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -2,3 +2,186 @@
|
||||
|
||||
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 |
|
||||
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||
| `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. |
|
||||
@@ -2,3 +2,18 @@
|
||||
|
||||
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).
|
||||
|
||||
|
||||
## Supported Types
|
||||
|
||||
### `string`
|
||||
|
||||
```typescript
|
||||
const value: string = /* values here */
|
||||
```
|
||||
|
||||
### `string[]`
|
||||
|
||||
```typescript
|
||||
const value: string[] = /* values here */
|
||||
```
|
||||
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -2,3 +2,18 @@
|
||||
|
||||
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).
|
||||
|
||||
|
||||
## Supported Types
|
||||
|
||||
### `string`
|
||||
|
||||
```typescript
|
||||
const value: string = /* values here */
|
||||
```
|
||||
|
||||
### `string[]`
|
||||
|
||||
```typescript
|
||||
const value: string[] = /* values here */
|
||||
```
|
||||
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
| 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. |
|
||||
@@ -2,3 +2,18 @@
|
||||
|
||||
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).
|
||||
|
||||
|
||||
## 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({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
### Available Operations
|
||||
|
||||
* [list](#list) - Retrieve a list of domains
|
||||
* [add](#add) - Add a domain
|
||||
* [create](#create) - Create a domain
|
||||
* [delete](#delete) - Delete a domain
|
||||
* [update](#update) - Update a domain
|
||||
* [setPrimary](#setprimary) - Set a domain as primary
|
||||
@@ -21,7 +21,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -61,9 +60,9 @@ run();
|
||||
| errors.InternalServerError | 500 | application/json |
|
||||
| errors.SDKError | 4xx-5xx | */* |
|
||||
|
||||
## add
|
||||
## create
|
||||
|
||||
Add a domain to the authenticated workspace.
|
||||
Create a domain for the authenticated workspace.
|
||||
|
||||
### Example Usage
|
||||
|
||||
@@ -72,11 +71,10 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.domains.add({
|
||||
const result = await dub.domains.create({
|
||||
slug: "acme.com",
|
||||
});
|
||||
|
||||
@@ -91,7 +89,7 @@ run();
|
||||
|
||||
| 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.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({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -176,7 +173,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -228,7 +224,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -279,7 +274,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
@@ -23,7 +23,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -74,7 +73,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -127,7 +125,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -178,7 +175,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -229,7 +225,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -280,7 +275,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -334,7 +328,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -389,7 +382,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
@@ -16,7 +16,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
@@ -16,7 +16,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
@@ -17,7 +17,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -68,7 +67,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
@@ -18,7 +18,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -74,7 +73,6 @@ import { PaymentProcessor } from "dub/models/operations";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -129,7 +127,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
@@ -18,7 +18,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -68,7 +67,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
@@ -122,7 +120,6 @@ import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
|
||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.29.19",
|
||||
"version": "0.30.0",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./models/errors": "./src/models/errors/index.ts",
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.29.19",
|
||||
"version": "0.30.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dub",
|
||||
"version": "0.29.19",
|
||||
"version": "0.30.0",
|
||||
"devDependencies": {
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/node": "^20.12.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.29.19",
|
||||
"version": "0.30.0",
|
||||
"author": "Dub",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { RequestInput } from "../lib/http";
|
||||
import { RequestInput } from "../lib/http.js";
|
||||
import {
|
||||
AfterErrorContext,
|
||||
AfterErrorHook,
|
||||
@@ -15,9 +15,9 @@ import {
|
||||
Hooks,
|
||||
SDKInitHook,
|
||||
SDKInitOptions,
|
||||
} from "./types";
|
||||
} from "./types.js";
|
||||
|
||||
import { initHooks } from "./registration";
|
||||
import { initHooks } from "./registration.js";
|
||||
|
||||
export class SDKHooks implements Hooks {
|
||||
sdkInitHooks: SDKInitHook[] = [];
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
export * from "./types";
|
||||
export * from "./hooks";
|
||||
export * from "./types.js";
|
||||
export * from "./hooks.js";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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 = {
|
||||
operationID: string;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { HTTPClient } from "./http";
|
||||
import { RetryConfig } from "./retries";
|
||||
import { Params, pathToFunc } from "./url";
|
||||
import { HTTPClient } from "./http.js";
|
||||
import { RetryConfig } from "./retries.js";
|
||||
import { Params, pathToFunc } from "./url.js";
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
workspaceId?: string;
|
||||
workspaceId?: string | undefined;
|
||||
|
||||
/**
|
||||
* Allows setting the projectSlug parameter for all supported operations
|
||||
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
||||
export const SDK_METADATA = {
|
||||
language: "typescript",
|
||||
openapiDocVersion: "0.0.1",
|
||||
sdkVersion: "0.29.19",
|
||||
genVersion: "2.342.6",
|
||||
userAgent: "speakeasy-sdk/typescript 0.29.19 2.342.6 0.0.1 dub",
|
||||
sdkVersion: "0.30.0",
|
||||
genVersion: "2.347.4",
|
||||
userAgent: "speakeasy-sdk/typescript 0.30.0 2.347.4 0.0.1 dub",
|
||||
} as const;
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { bytesToBase64 } from "./base64";
|
||||
import { isPlainObject } from "./is-plain-object";
|
||||
import { bytesToBase64 } from "./base64.js";
|
||||
import { isPlainObject } from "./is-plain-object.js";
|
||||
|
||||
export class EncodingError extends Error {
|
||||
constructor(message: string) {
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
*/
|
||||
|
||||
import { never as znever } from "zod";
|
||||
import { parse } from "./schemas";
|
||||
import { isPlainObject } from "./is-plain-object";
|
||||
import * as errors from "../models/errors";
|
||||
import { parse } from "./schemas.js";
|
||||
import { isPlainObject } from "./is-plain-object.js";
|
||||
import { SDKError } from "../models/errors/sdkerror.js";
|
||||
|
||||
export type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
||||
|
||||
@@ -406,7 +406,7 @@ export class ResponseMatcher<Result> {
|
||||
}
|
||||
if (pred == null) {
|
||||
const responseBody = await response.text();
|
||||
throw new errors.SDKError(
|
||||
throw new SDKError(
|
||||
"Unexpected API response status or content-type",
|
||||
response,
|
||||
responseBody
|
||||
@@ -446,11 +446,7 @@ export class ResponseMatcher<Result> {
|
||||
const resultKey = pred.key || options?.resultKey;
|
||||
let data: unknown;
|
||||
if (pred.fail) {
|
||||
throw new errors.SDKError(
|
||||
"API error occurred",
|
||||
response,
|
||||
typeof raw === "string" ? raw : ""
|
||||
);
|
||||
throw new SDKError("API error occurred", response, typeof raw === "string" ? raw : "");
|
||||
} else if (pred.err) {
|
||||
data = {
|
||||
...options?.extraFields,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
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
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { ResponseMatcher, HTTPClient, matchStatusCode } from "./http";
|
||||
import { SecurityState, resolveSecurity, resolveGlobalSecurity } from "./security";
|
||||
import { pathToFunc } from "./url";
|
||||
import { encodeForm } from "./encodings";
|
||||
import { stringToBase64 } from "./base64";
|
||||
import { SDKHooks, HookContext } from "../hooks";
|
||||
import { ResponseMatcher, HTTPClient, matchStatusCode } from "./http.js";
|
||||
import { SecurityState, resolveSecurity, resolveGlobalSecurity } from "./security.js";
|
||||
import { pathToFunc } from "./url.js";
|
||||
import { encodeForm } from "./encodings.js";
|
||||
import { stringToBase64 } from "./base64.js";
|
||||
import { SDKHooks } from "../hooks/hooks.js";
|
||||
import { HookContext } from "../hooks/types.js";
|
||||
|
||||
export type RequestOptions = {
|
||||
fetchOptions?: Omit<RequestInit, "method" | "body">;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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 {
|
||||
Incomplete = "incomplete",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -282,8 +282,9 @@ export type ClicksCities = {
|
||||
|
||||
/** @internal */
|
||||
export namespace ClicksCitiesCountry$ {
|
||||
export const inboundSchema = z.nativeEnum(ClicksCitiesCountry);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof ClicksCitiesCountry> =
|
||||
z.nativeEnum(ClicksCitiesCountry);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof ClicksCitiesCountry> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -278,8 +278,8 @@ export type ClicksCountries = {
|
||||
|
||||
/** @internal */
|
||||
export namespace Country$ {
|
||||
export const inboundSchema = z.nativeEnum(Country);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Country> = z.nativeEnum(Country);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Country> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -267,6 +267,6 @@ export type CountryCode = ClosedEnum<typeof CountryCode>;
|
||||
|
||||
/** @internal */
|
||||
export namespace CountryCode$ {
|
||||
export const inboundSchema = z.nativeEnum(CountryCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof CountryCode> = z.nativeEnum(CountryCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof CountryCode> = inboundSchema;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -66,8 +66,8 @@ export type DomainSchema = {
|
||||
|
||||
/** @internal */
|
||||
export namespace Type$ {
|
||||
export const inboundSchema = z.nativeEnum(Type);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(Type);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Type> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,40 +2,40 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
export * from "./clicksbrowsers";
|
||||
export * from "./clickscities";
|
||||
export * from "./clickscount";
|
||||
export * from "./clickscountries";
|
||||
export * from "./clicksdevices";
|
||||
export * from "./clicksos";
|
||||
export * from "./clicksreferers";
|
||||
export * from "./clickstimeseries";
|
||||
export * from "./clickstoplinks";
|
||||
export * from "./clickstopurls";
|
||||
export * from "./countrycode";
|
||||
export * from "./domainschema";
|
||||
export * from "./leadsbrowsers";
|
||||
export * from "./leadscities";
|
||||
export * from "./leadscount";
|
||||
export * from "./leadscountries";
|
||||
export * from "./leadsdevices";
|
||||
export * from "./leadsos";
|
||||
export * from "./leadsreferers";
|
||||
export * from "./leadstimeseries";
|
||||
export * from "./leadstoplinks";
|
||||
export * from "./leadstopurls";
|
||||
export * from "./linkgeotargeting";
|
||||
export * from "./linkschema";
|
||||
export * from "./salesbrowsers";
|
||||
export * from "./salescities";
|
||||
export * from "./salescount";
|
||||
export * from "./salescountries";
|
||||
export * from "./salesdevices";
|
||||
export * from "./salesos";
|
||||
export * from "./salesreferers";
|
||||
export * from "./salestimeseries";
|
||||
export * from "./salestoplinks";
|
||||
export * from "./salestopurls";
|
||||
export * from "./security";
|
||||
export * from "./tagschema";
|
||||
export * from "./workspaceschema";
|
||||
export * from "./clicksbrowsers.js";
|
||||
export * from "./clickscities.js";
|
||||
export * from "./clickscount.js";
|
||||
export * from "./clickscountries.js";
|
||||
export * from "./clicksdevices.js";
|
||||
export * from "./clicksos.js";
|
||||
export * from "./clicksreferers.js";
|
||||
export * from "./clickstimeseries.js";
|
||||
export * from "./clickstoplinks.js";
|
||||
export * from "./clickstopurls.js";
|
||||
export * from "./countrycode.js";
|
||||
export * from "./domainschema.js";
|
||||
export * from "./leadsbrowsers.js";
|
||||
export * from "./leadscities.js";
|
||||
export * from "./leadscount.js";
|
||||
export * from "./leadscountries.js";
|
||||
export * from "./leadsdevices.js";
|
||||
export * from "./leadsos.js";
|
||||
export * from "./leadsreferers.js";
|
||||
export * from "./leadstimeseries.js";
|
||||
export * from "./leadstoplinks.js";
|
||||
export * from "./leadstopurls.js";
|
||||
export * from "./linkgeotargeting.js";
|
||||
export * from "./linkschema.js";
|
||||
export * from "./salesbrowsers.js";
|
||||
export * from "./salescities.js";
|
||||
export * from "./salescount.js";
|
||||
export * from "./salescountries.js";
|
||||
export * from "./salesdevices.js";
|
||||
export * from "./salesos.js";
|
||||
export * from "./salesreferers.js";
|
||||
export * from "./salestimeseries.js";
|
||||
export * from "./salestoplinks.js";
|
||||
export * from "./salestopurls.js";
|
||||
export * from "./security.js";
|
||||
export * from "./tagschema.js";
|
||||
export * from "./workspaceschema.js";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -282,8 +282,9 @@ export type LeadsCities = {
|
||||
|
||||
/** @internal */
|
||||
export namespace LeadsCitiesCountry$ {
|
||||
export const inboundSchema = z.nativeEnum(LeadsCitiesCountry);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof LeadsCitiesCountry> =
|
||||
z.nativeEnum(LeadsCitiesCountry);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof LeadsCitiesCountry> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -278,8 +278,9 @@ export type LeadsCountries = {
|
||||
|
||||
/** @internal */
|
||||
export namespace LeadsCountriesCountry$ {
|
||||
export const inboundSchema = z.nativeEnum(LeadsCountriesCountry);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof LeadsCountriesCountry> =
|
||||
z.nativeEnum(LeadsCountriesCountry);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof LeadsCountriesCountry> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { TagSchema, TagSchema$ } from "./tagschema";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { TagSchema, TagSchema$ } from "./tagschema.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -286,8 +286,9 @@ export type SalesCities = {
|
||||
|
||||
/** @internal */
|
||||
export namespace SalesCitiesCountry$ {
|
||||
export const inboundSchema = z.nativeEnum(SalesCitiesCountry);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof SalesCitiesCountry> =
|
||||
z.nativeEnum(SalesCitiesCountry);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof SalesCitiesCountry> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -282,8 +282,9 @@ export type SalesCountries = {
|
||||
|
||||
/** @internal */
|
||||
export namespace SalesCountriesCountry$ {
|
||||
export const inboundSchema = z.nativeEnum(SalesCountriesCountry);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof SalesCountriesCountry> =
|
||||
z.nativeEnum(SalesCountriesCountry);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof SalesCountriesCountry> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -39,8 +39,8 @@ export type TagSchema = {
|
||||
|
||||
/** @internal */
|
||||
export namespace Color$ {
|
||||
export const inboundSchema = z.nativeEnum(Color);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Color> = z.nativeEnum(Color);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Color> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -137,14 +137,14 @@ export type WorkspaceSchema = {
|
||||
|
||||
/** @internal */
|
||||
export namespace Plan$ {
|
||||
export const inboundSchema = z.nativeEnum(Plan);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Plan> = z.nativeEnum(Plan);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Plan> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Role$ {
|
||||
export const inboundSchema = z.nativeEnum(Role);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(Role);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Role> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,8 @@ export class BadRequest extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace Code$ {
|
||||
export const inboundSchema = z.nativeEnum(Code);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Code> = z.nativeEnum(Code);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Code> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,8 @@ export class Conflict extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace ConflictCode$ {
|
||||
export const inboundSchema = z.nativeEnum(ConflictCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof ConflictCode> = z.nativeEnum(ConflictCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof ConflictCode> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,8 @@ export class Forbidden extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace ForbiddenCode$ {
|
||||
export const inboundSchema = z.nativeEnum(ForbiddenCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof ForbiddenCode> = z.nativeEnum(ForbiddenCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof ForbiddenCode> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
export * from "./badrequest";
|
||||
export * from "./conflict";
|
||||
export * from "./forbidden";
|
||||
export * from "./internalservererror";
|
||||
export * from "./inviteexpired";
|
||||
export * from "./notfound";
|
||||
export * from "./ratelimitexceeded";
|
||||
export * from "./sdkerror";
|
||||
export * from "./sdkvalidationerror";
|
||||
export * from "./unauthorized";
|
||||
export * from "./unprocessableentity";
|
||||
export * from "./badrequest.js";
|
||||
export * from "./conflict.js";
|
||||
export * from "./forbidden.js";
|
||||
export * from "./internalservererror.js";
|
||||
export * from "./inviteexpired.js";
|
||||
export * from "./notfound.js";
|
||||
export * from "./ratelimitexceeded.js";
|
||||
export * from "./sdkerror.js";
|
||||
export * from "./sdkvalidationerror.js";
|
||||
export * from "./unauthorized.js";
|
||||
export * from "./unprocessableentity.js";
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,9 @@ export class InternalServerError extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace InternalServerErrorCode$ {
|
||||
export const inboundSchema = z.nativeEnum(InternalServerErrorCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof InternalServerErrorCode> =
|
||||
z.nativeEnum(InternalServerErrorCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof InternalServerErrorCode> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,9 @@ export class InviteExpired extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace InviteExpiredCode$ {
|
||||
export const inboundSchema = z.nativeEnum(InviteExpiredCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof InviteExpiredCode> =
|
||||
z.nativeEnum(InviteExpiredCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof InviteExpiredCode> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,8 @@ export class NotFound extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace NotFoundCode$ {
|
||||
export const inboundSchema = z.nativeEnum(NotFoundCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof NotFoundCode> = z.nativeEnum(NotFoundCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof NotFoundCode> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,9 @@ export class RateLimitExceeded extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace RateLimitExceededCode$ {
|
||||
export const inboundSchema = z.nativeEnum(RateLimitExceededCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof RateLimitExceededCode> =
|
||||
z.nativeEnum(RateLimitExceededCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof RateLimitExceededCode> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,9 @@ export class Unauthorized extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace UnauthorizedCode$ {
|
||||
export const inboundSchema = z.nativeEnum(UnauthorizedCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof UnauthorizedCode> =
|
||||
z.nativeEnum(UnauthorizedCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof UnauthorizedCode> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../lib/primitives";
|
||||
import { ClosedEnum } from "../../types";
|
||||
import { remap as remap$ } from "../../lib/primitives.js";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
@@ -65,8 +65,9 @@ export class UnprocessableEntity extends Error {
|
||||
|
||||
/** @internal */
|
||||
export namespace UnprocessableEntityCode$ {
|
||||
export const inboundSchema = z.nativeEnum(UnprocessableEntityCode);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof UnprocessableEntityCode> =
|
||||
z.nativeEnum(UnprocessableEntityCode);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof UnprocessableEntityCode> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
* 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";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -124,19 +124,19 @@ export type RequestBody = {
|
||||
export namespace BulkCreateLinksGlobals$ {
|
||||
export const inboundSchema: z.ZodType<BulkCreateLinksGlobals, z.ZodTypeDef, unknown> = z.object(
|
||||
{
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
}
|
||||
);
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, BulkCreateLinksGlobals> =
|
||||
z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
* 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";
|
||||
|
||||
export type AddDomainGlobals = {
|
||||
workspaceId: string;
|
||||
export type CreateDomainGlobals = {
|
||||
workspaceId?: string | undefined;
|
||||
/**
|
||||
* @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 AddDomainRequestBody = {
|
||||
export type CreateDomainRequestBody = {
|
||||
/**
|
||||
* Name of the domain.
|
||||
*/
|
||||
@@ -57,32 +57,33 @@ export type AddDomainRequestBody = {
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
export namespace AddDomainGlobals$ {
|
||||
export const inboundSchema: z.ZodType<AddDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
export namespace CreateDomainGlobals$ {
|
||||
export const inboundSchema: z.ZodType<CreateDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddDomainGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateDomainGlobals> = z.object({
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Type$ {
|
||||
export const inboundSchema = z.nativeEnum(Type);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(Type);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Type> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace AddDomainRequestBody$ {
|
||||
export const inboundSchema: z.ZodType<AddDomainRequestBody, z.ZodTypeDef, unknown> = z.object({
|
||||
export namespace CreateDomainRequestBody$ {
|
||||
export const inboundSchema: z.ZodType<CreateDomainRequestBody, z.ZodTypeDef, unknown> =
|
||||
z.object({
|
||||
slug: z.string(),
|
||||
type: Type$.inboundSchema.default("redirect"),
|
||||
target: z.nullable(z.string()).optional(),
|
||||
@@ -102,8 +103,8 @@ export namespace AddDomainRequestBody$ {
|
||||
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(),
|
||||
type: Type$.outboundSchema.default("redirect"),
|
||||
target: z.nullable(z.string()).optional(),
|
||||
@@ -111,6 +112,5 @@ export namespace AddDomainRequestBody$ {
|
||||
archived: z.boolean().default(false),
|
||||
noindex: z.boolean().optional(),
|
||||
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.
|
||||
*/
|
||||
|
||||
import * as components from "../components";
|
||||
import * as components from "../components/index.js";
|
||||
import * as z from "zod";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -123,17 +123,17 @@ export type CreateLinkRequestBody = {
|
||||
/** @internal */
|
||||
export namespace CreateLinkGlobals$ {
|
||||
export const inboundSchema: z.ZodType<CreateLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateLinkGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
* 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";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -44,25 +44,25 @@ export type CreateTagRequestBody = {
|
||||
/** @internal */
|
||||
export namespace CreateTagGlobals$ {
|
||||
export const inboundSchema: z.ZodType<CreateTagGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreateTagGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Color$ {
|
||||
export const inboundSchema = z.nativeEnum(Color);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Color> = z.nativeEnum(Color);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Color> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import * as z from "zod";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -32,17 +32,17 @@ export type DeleteDomainResponseBody = {
|
||||
/** @internal */
|
||||
export namespace DeleteDomainGlobals$ {
|
||||
export const inboundSchema: z.ZodType<DeleteDomainGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteDomainGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import * as z from "zod";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -32,17 +32,17 @@ export type DeleteLinkResponseBody = {
|
||||
/** @internal */
|
||||
export namespace DeleteLinkGlobals$ {
|
||||
export const inboundSchema: z.ZodType<DeleteLinkGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLinkGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import * as z from "zod";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -31,17 +31,17 @@ export type GetLinkInfoRequest = {
|
||||
/** @internal */
|
||||
export namespace GetLinkInfoGlobals$ {
|
||||
export const inboundSchema: z.ZodType<GetLinkInfoGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinkInfoGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
* 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";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -82,17 +82,17 @@ export type GetLinksRequest = {
|
||||
/** @internal */
|
||||
export namespace GetLinksGlobals$ {
|
||||
export const inboundSchema: z.ZodType<GetLinksGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
@@ -127,8 +127,8 @@ export namespace QueryParamTagNames$ {
|
||||
|
||||
/** @internal */
|
||||
export namespace Sort$ {
|
||||
export const inboundSchema = z.nativeEnum(Sort);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Sort> = z.nativeEnum(Sort);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Sort> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
* 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";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -80,18 +80,18 @@ export type GetLinksCountRequest = {
|
||||
/** @internal */
|
||||
export namespace GetLinksCountGlobals$ {
|
||||
export const inboundSchema: z.ZodType<GetLinksCountGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLinksCountGlobals> = z.object(
|
||||
{
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
}
|
||||
);
|
||||
@@ -122,14 +122,14 @@ export namespace GetLinksCountQueryParamTagNames$ {
|
||||
|
||||
/** @internal */
|
||||
export namespace Two$ {
|
||||
export const inboundSchema = z.nativeEnum(Two);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(Two);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Two> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace One$ {
|
||||
export const inboundSchema = z.nativeEnum(One);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof One> = z.nativeEnum(One);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof One> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* 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";
|
||||
|
||||
/**
|
||||
@@ -48,8 +48,8 @@ export type GetQRCodeRequest = {
|
||||
|
||||
/** @internal */
|
||||
export namespace Level$ {
|
||||
export const inboundSchema = z.nativeEnum(Level);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Level> = z.nativeEnum(Level);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Level> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import * as z from "zod";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -17,17 +17,17 @@ export type GetTagsRequest = {};
|
||||
/** @internal */
|
||||
export namespace GetTagsGlobals$ {
|
||||
export const inboundSchema: z.ZodType<GetTagsGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTagsGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,27 +2,27 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
export * from "./adddomain";
|
||||
export * from "./bulkcreatelinks";
|
||||
export * from "./createlink";
|
||||
export * from "./createtag";
|
||||
export * from "./createworkspace";
|
||||
export * from "./deletedomain";
|
||||
export * from "./deletelink";
|
||||
export * from "./getlinkinfo";
|
||||
export * from "./getlinks";
|
||||
export * from "./getlinkscount";
|
||||
export * from "./getmetatags";
|
||||
export * from "./getqrcode";
|
||||
export * from "./gettags";
|
||||
export * from "./getworkspace";
|
||||
export * from "./listdomains";
|
||||
export * from "./retrieveanalytics";
|
||||
export * from "./setprimarydomain";
|
||||
export * from "./trackcustomer";
|
||||
export * from "./tracklead";
|
||||
export * from "./tracksale";
|
||||
export * from "./transferdomain";
|
||||
export * from "./updatedomain";
|
||||
export * from "./updatelink";
|
||||
export * from "./upsertlink";
|
||||
export * from "./bulkcreatelinks.js";
|
||||
export * from "./createdomain.js";
|
||||
export * from "./createlink.js";
|
||||
export * from "./createtag.js";
|
||||
export * from "./createworkspace.js";
|
||||
export * from "./deletedomain.js";
|
||||
export * from "./deletelink.js";
|
||||
export * from "./getlinkinfo.js";
|
||||
export * from "./getlinks.js";
|
||||
export * from "./getlinkscount.js";
|
||||
export * from "./getmetatags.js";
|
||||
export * from "./getqrcode.js";
|
||||
export * from "./gettags.js";
|
||||
export * from "./getworkspace.js";
|
||||
export * from "./listdomains.js";
|
||||
export * from "./retrieveanalytics.js";
|
||||
export * from "./setprimarydomain.js";
|
||||
export * from "./trackcustomer.js";
|
||||
export * from "./tracklead.js";
|
||||
export * from "./tracksale.js";
|
||||
export * from "./transferdomain.js";
|
||||
export * from "./updatedomain.js";
|
||||
export * from "./updatelink.js";
|
||||
export * from "./upsertlink.js";
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import * as z from "zod";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -17,17 +17,17 @@ export type ListDomainsRequest = {};
|
||||
/** @internal */
|
||||
export namespace ListDomainsGlobals$ {
|
||||
export const inboundSchema: z.ZodType<ListDomainsGlobals, z.ZodTypeDef, unknown> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ListDomainsGlobals> = z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { ClosedEnum } from "../../types";
|
||||
import * as components from "../components";
|
||||
import { ClosedEnum } from "../../types/enums.js";
|
||||
import * as components from "../components/index.js";
|
||||
import * as z from "zod";
|
||||
|
||||
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.
|
||||
*/
|
||||
@@ -189,38 +189,39 @@ export type RetrieveAnalyticsResponseBody =
|
||||
export namespace RetrieveAnalyticsGlobals$ {
|
||||
export const inboundSchema: z.ZodType<RetrieveAnalyticsGlobals, z.ZodTypeDef, unknown> =
|
||||
z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
workspaceId: string;
|
||||
workspaceId?: string | undefined;
|
||||
projectSlug?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RetrieveAnalyticsGlobals> =
|
||||
z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z.string().optional(),
|
||||
projectSlug: z.string().optional(),
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Event$ {
|
||||
export const inboundSchema = z.nativeEnum(Event);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Event> = z.nativeEnum(Event);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Event> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace QueryParamGroupBy$ {
|
||||
export const inboundSchema = z.nativeEnum(QueryParamGroupBy);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof QueryParamGroupBy> =
|
||||
z.nativeEnum(QueryParamGroupBy);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof QueryParamGroupBy> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Interval$ {
|
||||
export const inboundSchema = z.nativeEnum(Interval);
|
||||
export const outboundSchema = inboundSchema;
|
||||
export const inboundSchema: z.ZodNativeEnum<typeof Interval> = z.nativeEnum(Interval);
|
||||
export const outboundSchema: z.ZodNativeEnum<typeof Interval> = inboundSchema;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user