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.283.1 (#99)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
committed by
GitHub
parent
26880ad4aa
commit
5be90bbf99
@@ -3,31 +3,26 @@ id: f28179cc-ef59-426d-9e85-60cec22fc642
|
|||||||
management:
|
management:
|
||||||
docChecksum: c38ab49043c57320aee33ca443a1c66b
|
docChecksum: c38ab49043c57320aee33ca443a1c66b
|
||||||
docVersion: 0.0.1
|
docVersion: 0.0.1
|
||||||
speakeasyVersion: 1.282.0
|
speakeasyVersion: 1.283.1
|
||||||
generationVersion: 2.326.0
|
generationVersion: 2.324.0
|
||||||
releaseVersion: 0.27.0
|
releaseVersion: 0.28.0
|
||||||
configChecksum: 3511857bf47eb65f185cfb3f2c6b5763
|
configChecksum: 20cfec24e8ffc74509679a1f0942fe7e
|
||||||
repoURL: https://github.com/dubinc/dub-node.git
|
repoURL: https://github.com/dubinc/dub-node.git
|
||||||
installationURL: https://github.com/dubinc/dub-node
|
installationURL: https://github.com/dubinc/dub-node
|
||||||
published: true
|
published: true
|
||||||
features:
|
features:
|
||||||
typescript:
|
typescript:
|
||||||
additionalDependencies: 0.1.0
|
|
||||||
constsAndDefaults: 0.1.5
|
constsAndDefaults: 0.1.5
|
||||||
core: 3.9.3
|
core: 3.9.3
|
||||||
deprecations: 2.81.1
|
deprecations: 2.81.1
|
||||||
examples: 2.81.3
|
examples: 2.81.3
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
globalSecurity: 2.82.9
|
globalSecurity: 2.82.9
|
||||||
globalSecurityCallbacks: 0.1.0
|
|
||||||
globalSecurityFlattening: 0.1.0
|
|
||||||
globalServerURLs: 2.82.4
|
globalServerURLs: 2.82.4
|
||||||
globals: 2.82.1
|
globals: 2.82.1
|
||||||
hiddenGlobals: 0.1.0
|
hiddenGlobals: 0.1.0
|
||||||
nameOverrides: 2.81.2
|
nameOverrides: 2.81.2
|
||||||
nullables: 0.1.0
|
|
||||||
responseFormat: 0.2.3
|
responseFormat: 0.2.3
|
||||||
sdkHooks: 0.1.0
|
|
||||||
unions: 2.85.4
|
unions: 2.85.4
|
||||||
generatedFiles:
|
generatedFiles:
|
||||||
- src/sdk/links.ts
|
- src/sdk/links.ts
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.27.0
|
version: 0.28.0
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
|||||||
@@ -1,18 +1,19 @@
|
|||||||
speakeasyVersion: 1.282.0
|
speakeasyVersion: 1.283.1
|
||||||
sources:
|
sources:
|
||||||
my-first-source:
|
my-first-source:
|
||||||
sourceNamespace: my-first-source
|
sourceNamespace: my-first-source
|
||||||
sourceRevisionDigest: sha256:93e125426c46395b4a2233b93538de3ab5f87b576187f1b61252288deb289a1f
|
sourceRevisionDigest: sha256:b43a4dbf6e1046455dbbc1d82d42ad674fc9ac4329ad56ea56b8fa871eb663fc
|
||||||
sourceBlobDigest: sha256:6f94ba6f5cc47943b6eb8754892c4ce750e1ea1b9370923312f1f040ffddf040
|
sourceBlobDigest: sha256:e16837f81e17ab3177f10c0449b07608dcd0cc3f17b40a9a971ecc382c36b4b2
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
|
- main
|
||||||
targets:
|
targets:
|
||||||
my-first-target:
|
my-first-target:
|
||||||
source: my-first-source
|
source: my-first-source
|
||||||
sourceNamespace: my-first-source
|
sourceNamespace: my-first-source
|
||||||
sourceRevisionDigest: sha256:93e125426c46395b4a2233b93538de3ab5f87b576187f1b61252288deb289a1f
|
sourceRevisionDigest: sha256:b43a4dbf6e1046455dbbc1d82d42ad674fc9ac4329ad56ea56b8fa871eb663fc
|
||||||
sourceBlobDigest: sha256:6f94ba6f5cc47943b6eb8754892c4ce750e1ea1b9370923312f1f040ffddf040
|
sourceBlobDigest: sha256:e16837f81e17ab3177f10c0449b07608dcd0cc3f17b40a9a971ecc382c36b4b2
|
||||||
outLocation: /home/disintegrator/github.com/disintegrator/dub-node
|
outLocation: /github/workspace/repo
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
12
RELEASES.md
12
RELEASES.md
@@ -226,4 +226,14 @@ Based on:
|
|||||||
### Generated
|
### Generated
|
||||||
- [typescript v0.26.1] .
|
- [typescript v0.26.1] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.26.1] https://www.npmjs.com/package/dub/v/0.26.1 - .
|
- [NPM v0.26.1] https://www.npmjs.com/package/dub/v/0.26.1 - .
|
||||||
|
|
||||||
|
## 2024-05-08 06:58:55
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.283.1 (2.324.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.28.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.28.0] https://www.npmjs.com/package/dub/v/0.28.0 - .
|
||||||
498
codeSamples.yaml
498
codeSamples.yaml
@@ -3,11 +3,11 @@ info:
|
|||||||
title: CodeSamples overlay for typescript target
|
title: CodeSamples overlay for typescript target
|
||||||
version: 0.0.0
|
version: 0.0.0
|
||||||
actions:
|
actions:
|
||||||
- target: $["paths"]["/links"]["get"]
|
- target: $["paths"]["/analytics/top_urls"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getLinks"
|
"label": "getTopURLs"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -17,18 +17,18 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.list({});
|
const result = await dub.topUrls({});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/links/bulk"]["post"]
|
- target: $["paths"]["/tags"]["post"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "bulkCreateLinks"
|
"label": "createTag"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -38,33 +38,8 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.createMany([
|
const result = await dub.create({
|
||||||
{
|
tag: "<value>",
|
||||||
url: "https://google/com",
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
|
||||||
// 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",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.get({
|
|
||||||
idOrSlug: "<value>",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
@@ -72,11 +47,11 @@ actions:
|
|||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/domains/{slug}"]["patch"]
|
- target: $["paths"]["/links/count"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "updateDomain"
|
"label": "getLinksCount"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -86,18 +61,18 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.update("acme.com", {});
|
const result = await dub.count({});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/qr"]["get"]
|
- target: $["paths"]["/analytics/timeseries"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getQRCode"
|
"label": "getTimeseriesAnalytics"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -107,7 +82,28 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.get({});
|
const result = await dub.timeseries({});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/analytics/browser"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getBrowserAnalytics"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.browsers({});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -134,48 +130,6 @@ actions:
|
|||||||
console.log(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",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.delete("acme.com");
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/analytics/top_urls"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getTopURLs"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.topUrls({});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/metatags"]["get"]
|
- target: $["paths"]["/metatags"]["get"]
|
||||||
update:
|
update:
|
||||||
@@ -200,11 +154,17 @@ actions:
|
|||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/analytics/browser"]["get"]
|
- target: $["paths"]["/links/{linkId}"]["patch"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getBrowserAnalytics"
|
"label": "updateLink"
|
||||||
|
"source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n workspaceId: \"<value>\",\n});\n\nasync function run() {\n const linkId = \"<value>\";\n const requestBody = {\n url: \"https://google/com\",\n };\n \n const result = await dub.update(linkId, requestBody);\n\n // Handle the result\n console.log(result)\n}\n\nrun();"
|
||||||
|
- target: $["paths"]["/analytics/clicks"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getClicksAnalytics"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -214,18 +174,18 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.browsers({});
|
const result = await dub.clicks({});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/analytics/os"]["get"]
|
- target: $["paths"]["/workspaces"]["post"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getOSAnalytics"
|
"label": "createWorkspace"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -235,28 +195,10 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.os({});
|
const result = await dub.create({
|
||||||
|
name: "<value>",
|
||||||
// Handle the result
|
slug: "<value>",
|
||||||
console.log(result)
|
});
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/domains"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "listDomains"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.list({});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -268,135 +210,7 @@ actions:
|
|||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "transferDomain"
|
"label": "transferDomain"
|
||||||
"source": |-
|
"source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n workspaceId: \"<value>\",\n});\n\nasync function run() {\n const slug = \"acme.com\";\n const requestBody = {\n newWorkspaceId: \"<value>\",\n };\n \n const result = await dub.transfer(slug, requestBody);\n\n // Handle the result\n console.log(result)\n}\n\nrun();"
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.transfer("acme.com", {
|
|
||||||
newWorkspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/links/info"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getLinkInfo"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.get({});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/links/{linkId}"]["patch"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "updateLink"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.update("<value>", {
|
|
||||||
url: "https://google/com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/analytics/referer"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getRefererAnalytics"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.referers({});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/domains"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "addDomain"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.add({
|
|
||||||
slug: "acme.com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// 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.create({
|
|
||||||
url: "https://google/com",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/analytics/country"]["get"]
|
- target: $["paths"]["/analytics/country"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
@@ -460,11 +274,17 @@ actions:
|
|||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/analytics/clicks"]["get"]
|
- target: $["paths"]["/domains/{slug}/primary"]["post"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getClicksAnalytics"
|
"label": "setPrimaryDomain"
|
||||||
|
"source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n workspaceId: \"<value>\",\n});\n\nasync function run() {\n const slug = \"acme.com\";\n \n const result = await dub.setPrimary(slug);\n\n // Handle the result\n console.log(result)\n}\n\nrun();"
|
||||||
|
- target: $["paths"]["/analytics/os"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getOSAnalytics"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -474,18 +294,18 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.clicks({});
|
const result = await dub.os({});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/analytics/timeseries"]["get"]
|
- target: $["paths"]["/domains"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "getTimeseriesAnalytics"
|
"label": "listDomains"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -495,7 +315,82 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.timeseries({});
|
const result = await dub.list({});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/domains/{slug}"]["delete"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "deleteDomain"
|
||||||
|
"source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n workspaceId: \"<value>\",\n});\n\nasync function run() {\n const slug = \"acme.com\";\n \n const result = await dub.delete(slug);\n\n // Handle the result\n console.log(result)\n}\n\nrun();"
|
||||||
|
- 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.create({
|
||||||
|
url: "https://google/com",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/links/bulk"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "bulkCreateLinks"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.createMany([
|
||||||
|
{
|
||||||
|
url: "https://google/com",
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/analytics/referer"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getRefererAnalytics"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.referers({});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -523,11 +418,11 @@ actions:
|
|||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/tags"]["post"]
|
- target: $["paths"]["/links"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "createTag"
|
"label": "getLinks"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -537,20 +432,18 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.create({
|
const result = await dub.list({});
|
||||||
tag: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/domains/{slug}/primary"]["post"]
|
- target: $["paths"]["/links/info"]["get"]
|
||||||
update:
|
update:
|
||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "setPrimaryDomain"
|
"label": "getLinkInfo"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -560,28 +453,7 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.setPrimary("acme.com");
|
const result = await dub.get({});
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/links/count"]["get"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "getLinksCount"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.count({});
|
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -593,6 +465,18 @@ actions:
|
|||||||
"x-codeSamples":
|
"x-codeSamples":
|
||||||
- "lang": "typescript"
|
- "lang": "typescript"
|
||||||
"label": "deleteLink"
|
"label": "deleteLink"
|
||||||
|
"source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n workspaceId: \"<value>\",\n});\n\nasync function run() {\n const linkId = \"<value>\";\n \n const result = await dub.delete(linkId);\n\n // Handle the result\n console.log(result)\n}\n\nrun();"
|
||||||
|
- target: $["paths"]["/domains/{slug}"]["patch"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "updateDomain"
|
||||||
|
"source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n workspaceId: \"<value>\",\n});\n\nasync function run() {\n const slug = \"acme.com\";\n const requestBody = {};\n \n const result = await dub.update(slug, requestBody);\n\n // Handle the result\n console.log(result)\n}\n\nrun();"
|
||||||
|
- target: $["paths"]["/qr"]["get"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "getQRCode"
|
||||||
"source": |-
|
"source": |-
|
||||||
import { Dub } from "dub";
|
import { Dub } from "dub";
|
||||||
|
|
||||||
@@ -602,7 +486,53 @@ actions:
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.delete("<value>");
|
const result = await dub.get({});
|
||||||
|
|
||||||
|
// 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",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.get({
|
||||||
|
idOrSlug: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result)
|
||||||
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/domains"]["post"]
|
||||||
|
update:
|
||||||
|
"x-codeSamples":
|
||||||
|
- "lang": "typescript"
|
||||||
|
"label": "addDomain"
|
||||||
|
"source": |-
|
||||||
|
import { Dub } from "dub";
|
||||||
|
|
||||||
|
const dub = new Dub({
|
||||||
|
token: "DUB_API_KEY",
|
||||||
|
workspaceId: "<value>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await dub.add({
|
||||||
|
slug: "acme.com",
|
||||||
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -629,28 +559,4 @@ actions:
|
|||||||
console.log(result)
|
console.log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
|
||||||
- target: $["paths"]["/workspaces"]["post"]
|
|
||||||
update:
|
|
||||||
"x-codeSamples":
|
|
||||||
- "lang": "typescript"
|
|
||||||
"label": "createWorkspace"
|
|
||||||
"source": |-
|
|
||||||
import { Dub } from "dub";
|
|
||||||
|
|
||||||
const dub = new Dub({
|
|
||||||
token: "DUB_API_KEY",
|
|
||||||
workspaceId: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await dub.create({
|
|
||||||
name: "<value>",
|
|
||||||
slug: "<value>",
|
|
||||||
});
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result)
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
run();
|
||||||
|
|||||||
@@ -129,7 +129,9 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.delete("acme.com");
|
const slug = "acme.com";
|
||||||
|
|
||||||
|
const result = await dub.domains.delete(slug);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -180,7 +182,10 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.update("acme.com", {});
|
const slug = "acme.com";
|
||||||
|
const requestBody = {};
|
||||||
|
|
||||||
|
const result = await dub.domains.update(slug, requestBody);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -232,7 +237,9 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.setPrimary("acme.com");
|
const slug = "acme.com";
|
||||||
|
|
||||||
|
const result = await dub.domains.setPrimary(slug);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -283,9 +290,12 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.domains.transfer("acme.com", {
|
const slug = "acme.com";
|
||||||
|
const requestBody = {
|
||||||
newWorkspaceId: "<value>",
|
newWorkspaceId: "<value>",
|
||||||
});
|
};
|
||||||
|
|
||||||
|
const result = await dub.domains.transfer(slug, requestBody);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
|
|||||||
@@ -232,7 +232,9 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.delete("<value>");
|
const linkId = "<value>";
|
||||||
|
|
||||||
|
const result = await dub.links.delete(linkId);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
@@ -283,9 +285,12 @@ const dub = new Dub({
|
|||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await dub.links.update("<value>", {
|
const linkId = "<value>";
|
||||||
|
const requestBody = {
|
||||||
url: "https://google/com",
|
url: "https://google/com",
|
||||||
});
|
};
|
||||||
|
|
||||||
|
const result = await dub.links.update(linkId, requestBody);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result)
|
console.log(result)
|
||||||
|
|||||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.27.0",
|
"version": "0.28.0",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./models/errors": "./src/models/errors/index.ts",
|
"./models/errors": "./src/models/errors/index.ts",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.27.0",
|
"version": "0.28.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.27.0",
|
"version": "0.28.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jsonpath": "^0.2.4",
|
"@types/jsonpath": "^0.2.4",
|
||||||
"@types/node": "^20.12.7",
|
"@types/node": "^20.12.7",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dub",
|
"name": "dub",
|
||||||
"version": "0.27.0",
|
"version": "0.28.0",
|
||||||
"author": "Dub",
|
"author": "Dub",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|||||||
export const SDK_METADATA = {
|
export const SDK_METADATA = {
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
openapiDocVersion: "0.0.1",
|
openapiDocVersion: "0.0.1",
|
||||||
sdkVersion: "0.27.0",
|
sdkVersion: "0.28.0",
|
||||||
genVersion: "2.326.0",
|
genVersion: "2.324.0",
|
||||||
userAgent: "speakeasy-sdk/typescript 0.27.0 2.326.0 0.0.1 dub",
|
userAgent: "speakeasy-sdk/typescript 0.28.0 2.324.0 0.0.1 dub",
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -46,16 +46,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the number of clicks for a link, a domain, or the authenticated workspace.
|
* Retrieve the number of clicks for a link, a domain, or the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async clicks(
|
async clicks(
|
||||||
request?: operations.GetClicksAnalyticsRequest | undefined,
|
input: operations.GetClicksAnalyticsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<number> {
|
): Promise<number> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetClicksAnalyticsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetClicksAnalyticsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -137,7 +136,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -150,12 +149,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -303,16 +302,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the number of clicks for a link, a domain, or the authenticated workspace over a period of time.
|
* Retrieve the number of clicks for a link, a domain, or the authenticated workspace over a period of time.
|
||||||
*/
|
*/
|
||||||
async timeseries(
|
async timeseries(
|
||||||
request?: operations.GetTimeseriesAnalyticsRequest | undefined,
|
input: operations.GetTimeseriesAnalyticsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.ResponseBody>> {
|
): Promise<Array<operations.ResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetTimeseriesAnalyticsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetTimeseriesAnalyticsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -394,7 +392,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -407,12 +405,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -560,16 +558,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.
|
* Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async countries(
|
async countries(
|
||||||
request?: operations.GetCountryAnalyticsRequest | undefined,
|
input: operations.GetCountryAnalyticsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.GetCountryAnalyticsResponseBody>> {
|
): Promise<Array<operations.GetCountryAnalyticsResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetCountryAnalyticsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetCountryAnalyticsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -651,7 +648,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -664,12 +661,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -819,16 +816,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.
|
* Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async cities(
|
async cities(
|
||||||
request?: operations.GetCityAnalyticsRequest | undefined,
|
input: operations.GetCityAnalyticsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.GetCityAnalyticsResponseBody>> {
|
): Promise<Array<operations.GetCityAnalyticsResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetCityAnalyticsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetCityAnalyticsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -910,7 +906,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -923,12 +919,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1078,16 +1074,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the top devices by number of clicks for a link, a domain, or the authenticated workspace.
|
* Retrieve the top devices by number of clicks for a link, a domain, or the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async devices(
|
async devices(
|
||||||
request?: operations.GetDeviceAnalyticsRequest | undefined,
|
input: operations.GetDeviceAnalyticsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.GetDeviceAnalyticsResponseBody>> {
|
): Promise<Array<operations.GetDeviceAnalyticsResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetDeviceAnalyticsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetDeviceAnalyticsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -1169,7 +1164,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1182,12 +1177,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1337,16 +1332,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the top browsers by number of clicks for a link, a domain, or the authenticated workspace.
|
* Retrieve the top browsers by number of clicks for a link, a domain, or the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async browsers(
|
async browsers(
|
||||||
request?: operations.GetBrowserAnalyticsRequest | undefined,
|
input: operations.GetBrowserAnalyticsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.GetBrowserAnalyticsResponseBody>> {
|
): Promise<Array<operations.GetBrowserAnalyticsResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetBrowserAnalyticsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetBrowserAnalyticsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -1428,7 +1422,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1441,12 +1435,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1596,16 +1590,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the top OS by number of clicks for a link, a domain, or the authenticated workspace.
|
* Retrieve the top OS by number of clicks for a link, a domain, or the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async os(
|
async os(
|
||||||
request?: operations.GetOSAnalyticsRequest | undefined,
|
input: operations.GetOSAnalyticsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.GetOSAnalyticsResponseBody>> {
|
): Promise<Array<operations.GetOSAnalyticsResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetOSAnalyticsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetOSAnalyticsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -1687,7 +1680,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1700,12 +1693,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1855,16 +1848,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the top referers by number of clicks for a link, a domain, or the authenticated workspace.
|
* Retrieve the top referers by number of clicks for a link, a domain, or the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async referers(
|
async referers(
|
||||||
request?: operations.GetRefererAnalyticsRequest | undefined,
|
input: operations.GetRefererAnalyticsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.GetRefererAnalyticsResponseBody>> {
|
): Promise<Array<operations.GetRefererAnalyticsResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetRefererAnalyticsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetRefererAnalyticsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -1946,7 +1938,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1959,12 +1951,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2114,16 +2106,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the top links by number of clicks for a domain or the authenticated workspace.
|
* Retrieve the top links by number of clicks for a domain or the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async topLinks(
|
async topLinks(
|
||||||
request?: operations.GetTopLinksRequest | undefined,
|
input: operations.GetTopLinksRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.GetTopLinksResponseBody>> {
|
): Promise<Array<operations.GetTopLinksResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetTopLinksRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetTopLinksRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -2205,7 +2196,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -2218,12 +2209,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2371,16 +2362,15 @@ export class Analytics extends ClientSDK {
|
|||||||
* Retrieve the top URLs by number of clicks for a given short link.
|
* Retrieve the top URLs by number of clicks for a given short link.
|
||||||
*/
|
*/
|
||||||
async topUrls(
|
async topUrls(
|
||||||
request?: operations.GetTopURLsRequest | undefined,
|
input: operations.GetTopURLsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<operations.GetTopURLsResponseBody>> {
|
): Promise<Array<operations.GetTopURLsResponseBody>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetTopURLsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetTopURLsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -2462,7 +2452,7 @@ export class Analytics extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -2475,12 +2465,12 @@ export class Analytics extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -47,11 +47,9 @@ export class Domains extends ClientSDK {
|
|||||||
* Retrieve a list of domains associated with the authenticated workspace.
|
* Retrieve a list of domains associated with the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async list(
|
async list(
|
||||||
request?: operations.ListDomainsRequest | undefined,
|
_input: operations.ListDomainsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<components.DomainSchema>> {
|
): Promise<Array<components.DomainSchema>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
void input$; // request input is unused
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
@@ -102,7 +100,7 @@ export class Domains extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -114,12 +112,12 @@ export class Domains extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -267,17 +265,16 @@ export class Domains extends ClientSDK {
|
|||||||
* Add a domain to the authenticated workspace.
|
* Add a domain to the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async add(
|
async add(
|
||||||
request?: operations.AddDomainRequestBody | undefined,
|
input: operations.AddDomainRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<components.DomainSchema> {
|
): Promise<components.DomainSchema> {
|
||||||
const input$ = request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Content-Type", "application/json");
|
headers$.set("Content-Type", "application/json");
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.AddDomainRequestBody$.outboundSchema.optional().parse(value$),
|
(value$) => operations.AddDomainRequestBody$.outboundSchema.optional().parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -330,7 +327,7 @@ export class Domains extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -343,12 +340,12 @@ export class Domains extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -565,7 +562,7 @@ export class Domains extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -578,12 +575,12 @@ export class Domains extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -803,7 +800,7 @@ export class Domains extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -816,12 +813,12 @@ export class Domains extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1035,7 +1032,7 @@ export class Domains extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1048,12 +1045,12 @@ export class Domains extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1273,7 +1270,7 @@ export class Domains extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1286,12 +1283,12 @@ export class Domains extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -47,16 +47,15 @@ export class Links extends ClientSDK {
|
|||||||
* Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.
|
* Retrieve a list of links for the authenticated workspace. The list will be paginated and the provided query parameters allow filtering the returned links.
|
||||||
*/
|
*/
|
||||||
async list(
|
async list(
|
||||||
request?: operations.GetLinksRequest | undefined,
|
input: operations.GetLinksRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<components.LinkSchema>> {
|
): Promise<Array<components.LinkSchema>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetLinksRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetLinksRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -127,7 +126,7 @@ export class Links extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -140,12 +139,12 @@ export class Links extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -293,17 +292,16 @@ export class Links extends ClientSDK {
|
|||||||
* Create a new link for the authenticated workspace.
|
* Create a new link for the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async create(
|
async create(
|
||||||
request?: operations.CreateLinkRequestBody | undefined,
|
input: operations.CreateLinkRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<components.LinkSchema> {
|
): Promise<components.LinkSchema> {
|
||||||
const input$ = request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Content-Type", "application/json");
|
headers$.set("Content-Type", "application/json");
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.CreateLinkRequestBody$.outboundSchema.optional().parse(value$),
|
(value$) => operations.CreateLinkRequestBody$.outboundSchema.optional().parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -356,7 +354,7 @@ export class Links extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -369,12 +367,12 @@ export class Links extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -521,17 +519,13 @@ export class Links extends ClientSDK {
|
|||||||
* @remarks
|
* @remarks
|
||||||
* Retrieve the number of links for the authenticated workspace. The provided query parameters allow filtering the returned links.
|
* Retrieve the number of links for the authenticated workspace. The provided query parameters allow filtering the returned links.
|
||||||
*/
|
*/
|
||||||
async count(
|
async count(input: operations.GetLinksCountRequest, options?: RequestOptions): Promise<number> {
|
||||||
request?: operations.GetLinksCountRequest | undefined,
|
|
||||||
options?: RequestOptions
|
|
||||||
): Promise<number> {
|
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetLinksCountRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetLinksCountRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -604,7 +598,7 @@ export class Links extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -617,12 +611,12 @@ export class Links extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -770,16 +764,15 @@ export class Links extends ClientSDK {
|
|||||||
* Retrieve the info for a link.
|
* Retrieve the info for a link.
|
||||||
*/
|
*/
|
||||||
async get(
|
async get(
|
||||||
request?: operations.GetLinkInfoRequest | undefined,
|
input: operations.GetLinkInfoRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<components.LinkSchema> {
|
): Promise<components.LinkSchema> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetLinkInfoRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetLinkInfoRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -838,7 +831,7 @@ export class Links extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -851,12 +844,12 @@ export class Links extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1073,7 +1066,7 @@ export class Links extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1086,12 +1079,12 @@ export class Links extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1311,7 +1304,7 @@ export class Links extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1324,12 +1317,12 @@ export class Links extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1477,17 +1470,16 @@ export class Links extends ClientSDK {
|
|||||||
* Bulk create up to 100 links for the authenticated workspace.
|
* Bulk create up to 100 links for the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async createMany(
|
async createMany(
|
||||||
request?: Array<operations.RequestBody> | undefined,
|
input: Array<operations.RequestBody> | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<components.LinkSchema>> {
|
): Promise<Array<components.LinkSchema>> {
|
||||||
const input$ = request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Content-Type", "application/json");
|
headers$.set("Content-Type", "application/json");
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => z.array(operations.RequestBody$.outboundSchema).optional().parse(value$),
|
(value$) => z.array(operations.RequestBody$.outboundSchema).optional().parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -1540,7 +1532,7 @@ export class Links extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -1553,12 +1545,12 @@ export class Links extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -45,16 +45,15 @@ export class Metatags extends ClientSDK {
|
|||||||
* Retrieve the metatags for a URL.
|
* Retrieve the metatags for a URL.
|
||||||
*/
|
*/
|
||||||
async get(
|
async get(
|
||||||
request: operations.GetMetatagsRequest,
|
input: operations.GetMetatagsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<operations.GetMetatagsResponseBody> {
|
): Promise<operations.GetMetatagsResponseBody> {
|
||||||
const input$ = request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetMetatagsRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetMetatagsRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -84,7 +83,7 @@ export class Metatags extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const doOptions = { context, errorCodes: ["4XX", "5XX"] };
|
const doOptions = { context, errorCodes: ["4XX", "5XX"] };
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -97,7 +96,7 @@ export class Metatags extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
if (this.matchResponse(response, 200, "application/json")) {
|
if (this.matchResponse(response, 200, "application/json")) {
|
||||||
const responseBody = await response.json();
|
const responseBody = await response.json();
|
||||||
|
|||||||
@@ -45,17 +45,13 @@ export class QRCodes extends ClientSDK {
|
|||||||
* @remarks
|
* @remarks
|
||||||
* Retrieve a QR code for a link.
|
* Retrieve a QR code for a link.
|
||||||
*/
|
*/
|
||||||
async get(
|
async get(input: operations.GetQRCodeRequest, options?: RequestOptions): Promise<string> {
|
||||||
request?: operations.GetQRCodeRequest | undefined,
|
|
||||||
options?: RequestOptions
|
|
||||||
): Promise<string> {
|
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "image/png");
|
headers$.set("Accept", "image/png");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetQRCodeRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetQRCodeRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -114,7 +110,7 @@ export class QRCodes extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -127,12 +123,12 @@ export class QRCodes extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -47,11 +47,9 @@ export class Tags extends ClientSDK {
|
|||||||
* Retrieve a list of tags for the authenticated workspace.
|
* Retrieve a list of tags for the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async list(
|
async list(
|
||||||
request?: operations.GetTagsRequest | undefined,
|
_input: operations.GetTagsRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<Array<components.TagSchema>> {
|
): Promise<Array<components.TagSchema>> {
|
||||||
const input$ = typeof request === "undefined" ? {} : request;
|
|
||||||
void input$; // request input is unused
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
@@ -102,7 +100,7 @@ export class Tags extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -114,12 +112,12 @@ export class Tags extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -267,17 +265,16 @@ export class Tags extends ClientSDK {
|
|||||||
* Create a new tag for the authenticated workspace.
|
* Create a new tag for the authenticated workspace.
|
||||||
*/
|
*/
|
||||||
async create(
|
async create(
|
||||||
request?: operations.CreateTagRequestBody | undefined,
|
input: operations.CreateTagRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<components.TagSchema> {
|
): Promise<components.TagSchema> {
|
||||||
const input$ = request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Content-Type", "application/json");
|
headers$.set("Content-Type", "application/json");
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.CreateTagRequestBody$.outboundSchema.optional().parse(value$),
|
(value$) => operations.CreateTagRequestBody$.outboundSchema.optional().parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -330,7 +327,7 @@ export class Tags extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -343,12 +340,12 @@ export class Tags extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export class Workspaces extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -98,12 +98,12 @@ export class Workspaces extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -251,17 +251,16 @@ export class Workspaces extends ClientSDK {
|
|||||||
* Create a new workspace for the authenticated user.
|
* Create a new workspace for the authenticated user.
|
||||||
*/
|
*/
|
||||||
async create(
|
async create(
|
||||||
request?: operations.CreateWorkspaceRequestBody | undefined,
|
input: operations.CreateWorkspaceRequestBody | undefined,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<components.WorkspaceSchema> {
|
): Promise<components.WorkspaceSchema> {
|
||||||
const input$ = request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Content-Type", "application/json");
|
headers$.set("Content-Type", "application/json");
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) =>
|
(value$) =>
|
||||||
operations.CreateWorkspaceRequestBody$.outboundSchema.optional().parse(value$),
|
operations.CreateWorkspaceRequestBody$.outboundSchema.optional().parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
@@ -304,7 +303,7 @@ export class Workspaces extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -317,12 +316,12 @@ export class Workspaces extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -470,16 +469,15 @@ export class Workspaces extends ClientSDK {
|
|||||||
* Retrieve a workspace for the authenticated user.
|
* Retrieve a workspace for the authenticated user.
|
||||||
*/
|
*/
|
||||||
async get(
|
async get(
|
||||||
request: operations.GetWorkspaceRequest,
|
input: operations.GetWorkspaceRequest,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<components.WorkspaceSchema> {
|
): Promise<components.WorkspaceSchema> {
|
||||||
const input$ = request;
|
|
||||||
const headers$ = new Headers();
|
const headers$ = new Headers();
|
||||||
headers$.set("user-agent", SDK_METADATA.userAgent);
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
||||||
headers$.set("Accept", "application/json");
|
headers$.set("Accept", "application/json");
|
||||||
|
|
||||||
const payload$ = schemas$.parse(
|
const payload$ = schemas$.parse(
|
||||||
input$,
|
input,
|
||||||
(value$) => operations.GetWorkspaceRequest$.outboundSchema.parse(value$),
|
(value$) => operations.GetWorkspaceRequest$.outboundSchema.parse(value$),
|
||||||
"Input validation failed"
|
"Input validation failed"
|
||||||
);
|
);
|
||||||
@@ -526,7 +524,7 @@ export class Workspaces extends ClientSDK {
|
|||||||
"5XX",
|
"5XX",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const request$ = this.createRequest$(
|
const request = this.createRequest$(
|
||||||
context,
|
context,
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
@@ -539,12 +537,12 @@ export class Workspaces extends ClientSDK {
|
|||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
const response = await this.do$(request$, doOptions);
|
const response = await this.do$(request, doOptions);
|
||||||
|
|
||||||
const responseFields$ = {
|
const responseFields$ = {
|
||||||
HttpMeta: {
|
HttpMeta: {
|
||||||
Response: response,
|
Response: response,
|
||||||
Request: request$,
|
Request: request,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user