mirror of
https://github.com/LukeHagar/dub-node.git
synced 2025-12-09 20:37:49 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.308.1 (#125)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
committed by
GitHub
parent
370eb1a88c
commit
927e26d2d0
@@ -3,10 +3,10 @@ id: f28179cc-ef59-426d-9e85-60cec22fc642
|
||||
management:
|
||||
docChecksum: ba3e83845a082a6c2321d0eeaaf9c23c
|
||||
docVersion: 0.0.1
|
||||
speakeasyVersion: 1.306.0
|
||||
generationVersion: 2.340.3
|
||||
releaseVersion: 0.29.18
|
||||
configChecksum: 7b734b1bea3f5aa02fa180a183d84da8
|
||||
speakeasyVersion: 1.308.1
|
||||
generationVersion: 2.342.6
|
||||
releaseVersion: 0.29.19
|
||||
configChecksum: 16dcbf7b27038e97d6737d5eb5d0d00f
|
||||
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.13
|
||||
core: 3.9.14
|
||||
deprecations: 2.81.1
|
||||
examples: 2.81.4
|
||||
flattening: 2.81.1
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
typescript:
|
||||
version: 0.29.18
|
||||
version: 0.29.19
|
||||
additionalDependencies:
|
||||
dependencies: {}
|
||||
devDependencies:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
speakeasyVersion: 1.306.0
|
||||
speakeasyVersion: 1.308.1
|
||||
sources:
|
||||
my-first-source:
|
||||
sourceNamespace: my-first-source
|
||||
sourceRevisionDigest: sha256:8c17755b9d3c07391761c3012a50f04523eabcd578d197315dfc8e9e84747c97
|
||||
sourceBlobDigest: sha256:22ce9ef46e6c3905a84147071418d68f197fd93ff71b7c5e732eedecbec4a563
|
||||
sourceRevisionDigest: sha256:9a700e801c2472d685c26ad0596334e1fdf7630c097d072aa8794e7087e6e2bb
|
||||
sourceBlobDigest: sha256:3146fa3c80ad954fbc1a1ea231099ecc5126b8f14693850e8c2d10183642574e
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -11,8 +11,8 @@ targets:
|
||||
my-first-target:
|
||||
source: my-first-source
|
||||
sourceNamespace: my-first-source
|
||||
sourceRevisionDigest: sha256:8c17755b9d3c07391761c3012a50f04523eabcd578d197315dfc8e9e84747c97
|
||||
sourceBlobDigest: sha256:22ce9ef46e6c3905a84147071418d68f197fd93ff71b7c5e732eedecbec4a563
|
||||
sourceRevisionDigest: sha256:9a700e801c2472d685c26ad0596334e1fdf7630c097d072aa8794e7087e6e2bb
|
||||
sourceBlobDigest: sha256:3146fa3c80ad954fbc1a1ea231099ecc5126b8f14693850e8c2d10183642574e
|
||||
outLocation: /github/workspace/repo
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -446,4 +446,14 @@ Based on:
|
||||
### Generated
|
||||
- [typescript v0.29.18] .
|
||||
### Releases
|
||||
- [NPM v0.29.18] https://www.npmjs.com/package/dub/v/0.29.18 - .
|
||||
- [NPM v0.29.18] https://www.npmjs.com/package/dub/v/0.29.18 - .
|
||||
|
||||
## 2024-06-17 01:20:57
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.308.1 (2.342.6) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.29.19] .
|
||||
### Releases
|
||||
- [NPM v0.29.19] https://www.npmjs.com/package/dub/v/0.29.19 - .
|
||||
612
codeSamples.yaml
612
codeSamples.yaml
@@ -3,11 +3,11 @@ info:
|
||||
title: CodeSamples overlay for typescript target
|
||||
version: 0.0.0
|
||||
actions:
|
||||
- target: $["paths"]["/domains"]["get"]
|
||||
- target: $["paths"]["/links"]["get"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "listDomains"
|
||||
"label": "getLinks"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
@@ -17,97 +17,7 @@ actions:
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.domains.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/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/{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"]["/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.links.update("<value>", {
|
||||
url: "https://google/com",
|
||||
});
|
||||
const result = await dub.links.list({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
@@ -135,11 +45,11 @@ actions:
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/workspaces"]["get"]
|
||||
- target: $["paths"]["/tags"]["get"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "getWorkspaces"
|
||||
"label": "getTags"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
@@ -149,7 +59,7 @@ actions:
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.workspaces.list();
|
||||
const result = await dub.tags.list({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
@@ -178,6 +88,115 @@ actions:
|
||||
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:
|
||||
@@ -204,6 +223,118 @@ 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",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.links.delete("<value>");
|
||||
|
||||
// Handle the 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.workspaces.create({
|
||||
name: "<value>",
|
||||
slug: "<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",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.workspaces.get({
|
||||
idOrSlug: "<value>",
|
||||
});
|
||||
|
||||
// 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",
|
||||
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>",
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/track/customer"]["post"]
|
||||
update:
|
||||
@@ -250,6 +381,31 @@ actions:
|
||||
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:
|
||||
@@ -273,187 +429,6 @@ actions:
|
||||
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"]["/links"]["get"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "getLinks"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.links.list({});
|
||||
|
||||
// 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.links.createMany([
|
||||
{
|
||||
url: "https://google/com",
|
||||
},
|
||||
]);
|
||||
|
||||
// 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.domains.add({
|
||||
slug: "acme.com",
|
||||
});
|
||||
|
||||
// Handle the 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.workspaces.create({
|
||||
name: "<value>",
|
||||
slug: "<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"]["/domains/{slug}/transfer"]["post"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "transferDomain"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.domains.transfer("acme.com", {
|
||||
newWorkspaceId: "<value>",
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
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.domains.delete("acme.com");
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/links/count"]["get"]
|
||||
update:
|
||||
@@ -497,11 +472,11 @@ actions:
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/qr"]["get"]
|
||||
- target: $["paths"]["/links/{linkId}"]["patch"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "getQRCode"
|
||||
"label": "updateLink"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
@@ -511,8 +486,8 @@ actions:
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.qrCodes.get({
|
||||
url: "https://brief-micronutrient.org",
|
||||
const result = await dub.links.update("<value>", {
|
||||
url: "https://google/com",
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
@@ -520,11 +495,11 @@ actions:
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
|
||||
- target: $["paths"]["/links/bulk"]["post"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "getWorkspace"
|
||||
"label": "bulkCreateLinks"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
@@ -534,33 +509,58 @@ actions:
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.workspaces.get({
|
||||
idOrSlug: "<value>",
|
||||
const result = await dub.links.createMany([
|
||||
{
|
||||
url: "https://google/com",
|
||||
},
|
||||
]);
|
||||
|
||||
// Handle the result
|
||||
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.domains.list({});
|
||||
|
||||
// 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.domains.add({
|
||||
slug: "acme.com",
|
||||
});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
- target: $["paths"]["/tags"]["get"]
|
||||
update:
|
||||
"x-codeSamples":
|
||||
- "lang": "typescript"
|
||||
"label": "getTags"
|
||||
"source": |-
|
||||
import { Dub } from "dub";
|
||||
|
||||
const dub = new Dub({
|
||||
token: "DUB_API_KEY",
|
||||
workspaceId: "<value>",
|
||||
});
|
||||
|
||||
async function run() {
|
||||
const result = await dub.tags.list({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result)
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.29.18",
|
||||
"version": "0.29.19",
|
||||
"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.18",
|
||||
"version": "0.29.19",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dub",
|
||||
"version": "0.29.18",
|
||||
"version": "0.29.19",
|
||||
"devDependencies": {
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/node": "^20.12.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.29.18",
|
||||
"version": "0.29.19",
|
||||
"author": "Dub",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
||||
export const SDK_METADATA = {
|
||||
language: "typescript",
|
||||
openapiDocVersion: "0.0.1",
|
||||
sdkVersion: "0.29.18",
|
||||
genVersion: "2.340.3",
|
||||
userAgent: "speakeasy-sdk/typescript 0.29.18 2.340.3 0.0.1 dub",
|
||||
sdkVersion: "0.29.19",
|
||||
genVersion: "2.342.6",
|
||||
userAgent: "speakeasy-sdk/typescript 0.29.19 2.342.6 0.0.1 dub",
|
||||
} as const;
|
||||
|
||||
@@ -63,28 +63,28 @@ export class Analytics extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/analytics")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
key: payload$.key,
|
||||
linkId: payload$.linkId,
|
||||
device: payload$.device,
|
||||
browser: payload$.browser,
|
||||
tagId: payload$.tagId,
|
||||
city: payload$.city,
|
||||
url: payload$.url,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
event: payload$.event,
|
||||
domain: payload$.domain,
|
||||
externalId: payload$.externalId,
|
||||
timezone: payload$.timezone,
|
||||
country: payload$.country,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
qr: payload$.qr,
|
||||
device: payload$.device,
|
||||
domain: payload$.domain,
|
||||
end: payload$.end,
|
||||
event: payload$.event,
|
||||
externalId: payload$.externalId,
|
||||
groupBy: payload$.groupBy,
|
||||
interval: payload$.interval,
|
||||
start: payload$.start,
|
||||
key: payload$.key,
|
||||
linkId: payload$.linkId,
|
||||
os: payload$.os,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
qr: payload$.qr,
|
||||
referer: payload$.referer,
|
||||
end: payload$.end,
|
||||
root: payload$.root,
|
||||
start: payload$.start,
|
||||
tagId: payload$.tagId,
|
||||
timezone: payload$.timezone,
|
||||
url: payload$.url,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
|
||||
@@ -63,8 +63,8 @@ export class Domains extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/domains")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -160,8 +160,8 @@ export class Domains extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/domains")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -261,8 +261,8 @@ export class Domains extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$);
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -365,8 +365,8 @@ export class Domains extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/domains/{slug}")(pathParams$);
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -463,8 +463,8 @@ export class Domains extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/domains/{slug}/primary")(pathParams$);
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -567,8 +567,8 @@ export class Domains extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/domains/{slug}/transfer")(pathParams$);
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
|
||||
@@ -69,18 +69,18 @@ export class Links extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/links")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
tagId: payload$.tagId,
|
||||
sort: payload$.sort,
|
||||
page: payload$.page,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
domain: payload$.domain,
|
||||
page: payload$.page,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
search: payload$.search,
|
||||
showArchived: payload$.showArchived,
|
||||
sort: payload$.sort,
|
||||
tagId: payload$.tagId,
|
||||
tagIds: payload$.tagIds,
|
||||
tagNames: payload$.tagNames,
|
||||
search: payload$.search,
|
||||
userId: payload$.userId,
|
||||
showArchived: payload$.showArchived,
|
||||
withTags: payload$.withTags,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -177,8 +177,8 @@ export class Links extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/links")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -273,17 +273,17 @@ export class Links extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/links/count")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
domain: payload$.domain,
|
||||
groupBy: payload$.groupBy,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
search: payload$.search,
|
||||
showArchived: payload$.showArchived,
|
||||
tagId: payload$.tagId,
|
||||
tagIds: payload$.tagIds,
|
||||
tagNames: payload$.tagNames,
|
||||
groupBy: payload$.groupBy,
|
||||
userId: payload$.userId,
|
||||
showArchived: payload$.showArchived,
|
||||
withTags: payload$.withTags,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
domain: payload$.domain,
|
||||
tagId: payload$.tagId,
|
||||
search: payload$.search,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -379,11 +379,11 @@ export class Links extends ClientSDK {
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
domain: payload$.domain,
|
||||
externalId: payload$.externalId,
|
||||
key: payload$.key,
|
||||
linkId: payload$.linkId,
|
||||
externalId: payload$.externalId,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -486,8 +486,8 @@ export class Links extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -593,8 +593,8 @@ export class Links extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/links/{linkId}")(pathParams$);
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -691,8 +691,8 @@ export class Links extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/links/bulk")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -789,8 +789,8 @@ export class Links extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/links/upsert")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
|
||||
@@ -61,12 +61,12 @@ export class QRCodes extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/qr")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
includeMargin: payload$.includeMargin,
|
||||
url: payload$.url,
|
||||
size: payload$.size,
|
||||
level: payload$.level,
|
||||
fgColor: payload$.fgColor,
|
||||
bgColor: payload$.bgColor,
|
||||
fgColor: payload$.fgColor,
|
||||
includeMargin: payload$.includeMargin,
|
||||
level: payload$.level,
|
||||
size: payload$.size,
|
||||
url: payload$.url,
|
||||
});
|
||||
|
||||
let security$;
|
||||
|
||||
@@ -59,8 +59,8 @@ export class Tags extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/tags")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -156,8 +156,8 @@ export class Tags extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/tags")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
|
||||
@@ -65,8 +65,8 @@ export class Track extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/track/lead")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -163,8 +163,8 @@ export class Track extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/track/sale")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
@@ -262,8 +262,8 @@ export class Track extends ClientSDK {
|
||||
const path$ = this.templateURLComponent("/track/customer")();
|
||||
|
||||
const query$ = encodeFormQuery$({
|
||||
workspaceId: this.options$.workspaceId,
|
||||
projectSlug: this.options$.projectSlug,
|
||||
workspaceId: this.options$.workspaceId,
|
||||
});
|
||||
|
||||
let security$;
|
||||
|
||||
Reference in New Issue
Block a user