ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.297.0

This commit is contained in:
speakeasybot
2024-05-29 18:03:04 +00:00
parent 92918ef172
commit 5121a6f6b6
10 changed files with 414 additions and 404 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f28179cc-ef59-426d-9e85-60cec22fc642
management:
docChecksum: 6f3206753e886703c723485794073b77
docChecksum: 58f984453d09b11200ae524bf6ab56d2
docVersion: 0.0.1
speakeasyVersion: 1.297.0
generationVersion: 2.338.1
releaseVersion: 0.29.10
configChecksum: 70681a5b78b1bf018371485189a5d1f1
releaseVersion: 0.29.11
configChecksum: 63f62dfc9cf87aaff7b44c8bd8a16e71
repoURL: https://github.com/dubinc/dub-node.git
installationURL: https://github.com/dubinc/dub-node
published: true

View File

@@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.29.10
version: 0.29.11
additionalDependencies:
dependencies: {}
devDependencies:

View File

@@ -2,8 +2,8 @@ speakeasyVersion: 1.297.0
sources:
my-first-source:
sourceNamespace: my-first-source
sourceRevisionDigest: sha256:6147693469ccc7ec8e6d64adeef85e435280d3c9dcff8e048755d979df72afca
sourceBlobDigest: sha256:f7684488e2e9c9dfaa6b9844f66627f1ad6f42807cedbc35f51e63a917d7e20c
sourceRevisionDigest: sha256:6be8fe159ac1e8e77258327d231a6bc7f9a53e662b8a9e54ec4621ab1f1337ce
sourceBlobDigest: sha256:0d772820f3a423a6865e7b9913ec348e856bd665559e1167fde1f8d351e74955
tags:
- latest
- main
@@ -11,8 +11,8 @@ targets:
my-first-target:
source: my-first-source
sourceNamespace: my-first-source
sourceRevisionDigest: sha256:6147693469ccc7ec8e6d64adeef85e435280d3c9dcff8e048755d979df72afca
sourceBlobDigest: sha256:f7684488e2e9c9dfaa6b9844f66627f1ad6f42807cedbc35f51e63a917d7e20c
sourceRevisionDigest: sha256:6be8fe159ac1e8e77258327d231a6bc7f9a53e662b8a9e54ec4621ab1f1337ce
sourceBlobDigest: sha256:0d772820f3a423a6865e7b9913ec348e856bd665559e1167fde1f8d351e74955
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0

View File

@@ -366,4 +366,14 @@ Based on:
### Generated
- [typescript v0.29.10] .
### Releases
- [NPM v0.29.10] https://www.npmjs.com/package/dub/v/0.29.10 - .
- [NPM v0.29.10] https://www.npmjs.com/package/dub/v/0.29.10 - .
## 2024-05-29 18:01:24
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.297.0 (2.338.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.29.11] .
### Releases
- [NPM v0.29.11] https://www.npmjs.com/package/dub/v/0.29.11 - .

View File

@@ -3,11 +3,11 @@ info:
title: CodeSamples overlay for typescript target
version: 0.0.0
actions:
- target: $["paths"]["/links/{linkId}"]["delete"]
- target: $["paths"]["/analytics"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "deleteLink"
"label": "retrieveAnalytics"
"source": |-
import { Dub } from "dub";
@@ -17,7 +17,140 @@ actions:
});
async function run() {
const result = await dub.links.delete("<value>");
const result = await dub.analytics.retrieve({});
// 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"]["/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"]["/tags"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getTags"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.tags.list({});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/tags"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "createTag"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.tags.create({
tag: "<value>",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}/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"]["/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.links.get({});
// Handle the result
console.log(result)
@@ -47,11 +180,11 @@ actions:
}
run();
- target: $["paths"]["/analytics"]["get"]
- target: $["paths"]["/domains/{slug}"]["delete"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "retrieveAnalytics"
"label": "deleteDomain"
"source": |-
import { Dub } from "dub";
@@ -61,49 +194,7 @@ actions:
});
async function run() {
const result = await dub.analytics.retrieve({});
// 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();
- 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", {});
const result = await dub.domains.delete("acme.com");
// Handle the result
console.log(result)
@@ -133,11 +224,11 @@ actions:
}
run();
- target: $["paths"]["/workspaces"]["get"]
- target: $["paths"]["/links/upsert"]["put"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "getWorkspaces"
"label": "upsertLink"
"source": |-
import { Dub } from "dub";
@@ -147,18 +238,20 @@ actions:
});
async function run() {
const result = await dub.workspaces.list();
const result = await dub.links.upsert({
url: "https://google/com",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}"]["delete"]
- target: $["paths"]["/domains"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "deleteDomain"
"label": "addDomain"
"source": |-
import { Dub } from "dub";
@@ -168,7 +261,233 @@ actions:
});
async function run() {
const result = await dub.domains.delete("acme.com");
const result = await dub.domains.add({
slug: "acme.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.links.createMany([
{
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.workspaces.get({
idOrSlug: "<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"]["/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: "Signup",
customerId: "<value>",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/track/customer"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "trackCustomer"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.track.customer({
customerId: "<value>",
});
// 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/{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",
});
// 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/{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)
@@ -244,323 +563,4 @@ actions:
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"]["/tags"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "createTag"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.tags.create({
tag: "<value>",
});
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/domains/{slug}/primary"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "setPrimaryDomain"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.domains.setPrimary("acme.com");
// Handle the result
console.log(result)
}
run();
- target: $["paths"]["/track/customer"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "trackCustomer"
"source": |-
import { Dub } from "dub";
const dub = new Dub({
token: "DUB_API_KEY",
workspaceId: "<value>",
});
async function run() {
const result = await dub.track.customer({
customerId: "<value>",
});
// 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"]["/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/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.links.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.links.update("<value>", {
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.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"]["/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: "Signup",
customerId: "<value>",
});
// Handle the result
console.log(result)
}
run();

View File

@@ -2,7 +2,7 @@
{
"name": "dub",
"version": "0.29.10",
"version": "0.29.11",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "dub",
"version": "0.29.10",
"version": "0.29.11",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "dub",
"version": "0.29.10",
"version": "0.29.11",
"devDependencies": {
"@types/jsonpath": "^0.2.4",
"@types/node": "^20.12.7",

View File

@@ -1,6 +1,6 @@
{
"name": "dub",
"version": "0.29.10",
"version": "0.29.11",
"author": "Dub",
"main": "./index.js",
"sideEffects": false,

View File

@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.0.1",
sdkVersion: "0.29.10",
sdkVersion: "0.29.11",
genVersion: "2.338.1",
userAgent: "speakeasy-sdk/typescript 0.29.10 2.338.1 0.0.1 dub",
userAgent: "speakeasy-sdk/typescript 0.29.11 2.338.1 0.0.1 dub",
} as const;

View File

@@ -20,19 +20,19 @@ export type TrackLeadRequestBody = {
/**
* Name of the customer in the client's app.
*/
customerName?: string | undefined;
customerName?: string | null | undefined;
/**
* Email of the customer in the client's app.
*/
customerEmail?: string | undefined;
customerEmail?: string | null | undefined;
/**
* Avatar of the customer in the client's app.
*/
customerAvatar?: string | undefined;
customerAvatar?: string | null | undefined;
/**
* Additional metadata to be stored with the lead event
*/
metadata?: { [k: string]: any } | undefined;
metadata?: { [k: string]: any } | null | undefined;
};
/**
@@ -55,10 +55,10 @@ export namespace TrackLeadRequestBody$ {
clickId: z.string(),
eventName: z.string(),
customerId: z.string(),
customerName: z.string().optional(),
customerEmail: z.string().optional(),
customerAvatar: z.string().optional(),
metadata: z.record(z.any()).optional(),
customerName: z.nullable(z.string()).optional(),
customerEmail: z.nullable(z.string()).optional(),
customerAvatar: z.nullable(z.string()).optional(),
metadata: z.nullable(z.record(z.any())).optional(),
})
.transform((v) => {
return {
@@ -76,10 +76,10 @@ export namespace TrackLeadRequestBody$ {
clickId: string;
eventName: string;
customerId: string;
customerName?: string | undefined;
customerEmail?: string | undefined;
customerAvatar?: string | undefined;
metadata?: { [k: string]: any } | undefined;
customerName?: string | null | undefined;
customerEmail?: string | null | undefined;
customerAvatar?: string | null | undefined;
metadata?: { [k: string]: any } | null | undefined;
};
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackLeadRequestBody> = z
@@ -87,10 +87,10 @@ export namespace TrackLeadRequestBody$ {
clickId: z.string(),
eventName: z.string(),
customerId: z.string(),
customerName: z.string().optional(),
customerEmail: z.string().optional(),
customerAvatar: z.string().optional(),
metadata: z.record(z.any()).optional(),
customerName: z.nullable(z.string()).optional(),
customerEmail: z.nullable(z.string()).optional(),
customerAvatar: z.nullable(z.string()).optional(),
metadata: z.nullable(z.record(z.any())).optional(),
})
.transform((v) => {
return {