ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.296.1 (#113)

Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
github-actions[bot]
2024-05-29 10:28:19 +05:30
committed by GitHub
parent ca7464e631
commit 6554188a2c
14 changed files with 620 additions and 590 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: f28179cc-ef59-426d-9e85-60cec22fc642 id: f28179cc-ef59-426d-9e85-60cec22fc642
management: management:
docChecksum: e93bbcff56bcb0510ebfb526412ef8a9 docChecksum: c82cc79ffda0379ff35a3ee5f8667c0d
docVersion: 0.0.1 docVersion: 0.0.1
speakeasyVersion: 1.296.1 speakeasyVersion: 1.296.1
generationVersion: 2.338.1 generationVersion: 2.338.1
releaseVersion: 0.29.8 releaseVersion: 0.29.9
configChecksum: 7fa1e2abca84e8cf14af404198b0660e configChecksum: 1b24c67caa5adefda06b3a743d0bca5f
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

View File

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

View File

@@ -2,8 +2,8 @@ speakeasyVersion: 1.296.1
sources: sources:
my-first-source: my-first-source:
sourceNamespace: my-first-source sourceNamespace: my-first-source
sourceRevisionDigest: sha256:f51842df07fa7233d06f299b6ae228e2b36266bc4a8bec4b682341692be45ca6 sourceRevisionDigest: sha256:0b285257c73443e338c219ce3a200d02ee30f8ac169aefeea1454a91ba338a43
sourceBlobDigest: sha256:d06423b2da7a3583289bda62818c9eceabe4c1bb3af853bce65bfd1d33f806e1 sourceBlobDigest: sha256:ac82ee79a3edd0ead797b2910ce6da07a17b216767cf70eb8db01d8936d545d3
tags: tags:
- latest - latest
- main - main
@@ -11,8 +11,8 @@ targets:
my-first-target: my-first-target:
source: my-first-source source: my-first-source
sourceNamespace: my-first-source sourceNamespace: my-first-source
sourceRevisionDigest: sha256:f51842df07fa7233d06f299b6ae228e2b36266bc4a8bec4b682341692be45ca6 sourceRevisionDigest: sha256:0b285257c73443e338c219ce3a200d02ee30f8ac169aefeea1454a91ba338a43
sourceBlobDigest: sha256:d06423b2da7a3583289bda62818c9eceabe4c1bb3af853bce65bfd1d33f806e1 sourceBlobDigest: sha256:ac82ee79a3edd0ead797b2910ce6da07a17b216767cf70eb8db01d8936d545d3
outLocation: /github/workspace/repo outLocation: /github/workspace/repo
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0

View File

@@ -346,4 +346,14 @@ Based on:
### Generated ### Generated
- [typescript v0.29.8] . - [typescript v0.29.8] .
### Releases ### Releases
- [NPM v0.29.8] https://www.npmjs.com/package/dub/v/0.29.8 - . - [NPM v0.29.8] https://www.npmjs.com/package/dub/v/0.29.8 - .
## 2024-05-29 01:19:44
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.29.9] .
### Releases
- [NPM v0.29.9] https://www.npmjs.com/package/dub/v/0.29.9 - .

File diff suppressed because it is too large Load Diff

View File

@@ -38,6 +38,8 @@
| `workspaceId` | *string* | :heavy_check_mark: | The workspace ID of the short link. | | `workspaceId` | *string* | :heavy_check_mark: | The workspace ID of the short link. |
| `clicks` | *number* | :heavy_minus_sign: | The number of clicks on the short link. | | `clicks` | *number* | :heavy_minus_sign: | The number of clicks on the short link. |
| `lastClicked` | *string* | :heavy_check_mark: | The date and time when the short link was last clicked. | | `lastClicked` | *string* | :heavy_check_mark: | The date and time when the short link was last clicked. |
| `leads` | *number* | :heavy_minus_sign: | [BETA]: The number of leads the short links has generated. |
| `sales` | *number* | :heavy_minus_sign: | [BETA]: The number of sales the short links has generated. |
| `createdAt` | *string* | :heavy_check_mark: | The date and time when the short link was created. | | `createdAt` | *string* | :heavy_check_mark: | The date and time when the short link was created. |
| `updatedAt` | *string* | :heavy_check_mark: | The date and time when the short link was last updated. | | `updatedAt` | *string* | :heavy_check_mark: | The date and time when the short link was last updated. |
| ~~`projectId`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>The project ID of the short link. This field is deprecated use `workspaceId` instead. | | ~~`projectId`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>The project ID of the short link. This field is deprecated use `workspaceId` instead. |

View File

@@ -13,4 +13,4 @@ A lead was tracked.
| `customerName` | *string* | :heavy_check_mark: | N/A | | `customerName` | *string* | :heavy_check_mark: | N/A |
| `customerEmail` | *string* | :heavy_check_mark: | N/A | | `customerEmail` | *string* | :heavy_check_mark: | N/A |
| `customerAvatar` | *string* | :heavy_check_mark: | N/A | | `customerAvatar` | *string* | :heavy_check_mark: | N/A |
| `metadata` | Record<string, *any*> | :heavy_check_mark: | N/A | | `metadata` | Record<string, *any*> | :heavy_minus_sign: | N/A |

View File

@@ -2,7 +2,7 @@
{ {
"name": "dub", "name": "dub",
"version": "0.29.8", "version": "0.29.9",
"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
View File

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

View File

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

View File

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

View File

@@ -396,6 +396,14 @@ export type LinkSchema = {
* The date and time when the short link was last clicked. * The date and time when the short link was last clicked.
*/ */
lastClicked: string | null; lastClicked: string | null;
/**
* [BETA]: The number of leads the short links has generated.
*/
leads?: number | undefined;
/**
* [BETA]: The number of sales the short links has generated.
*/
sales?: number | undefined;
/** /**
* The date and time when the short link was created. * The date and time when the short link was created.
*/ */
@@ -1721,6 +1729,8 @@ export namespace LinkSchema$ {
workspaceId: z.string(), workspaceId: z.string(),
clicks: z.number().default(0), clicks: z.number().default(0),
lastClicked: z.nullable(z.string()), lastClicked: z.nullable(z.string()),
leads: z.number().default(0),
sales: z.number().default(0),
createdAt: z.string(), createdAt: z.string(),
updatedAt: z.string(), updatedAt: z.string(),
projectId: z.string(), projectId: z.string(),
@@ -1760,6 +1770,8 @@ export namespace LinkSchema$ {
workspaceId: v.workspaceId, workspaceId: v.workspaceId,
clicks: v.clicks, clicks: v.clicks,
lastClicked: v.lastClicked, lastClicked: v.lastClicked,
leads: v.leads,
sales: v.sales,
createdAt: v.createdAt, createdAt: v.createdAt,
updatedAt: v.updatedAt, updatedAt: v.updatedAt,
projectId: v.projectId, projectId: v.projectId,
@@ -1800,6 +1812,8 @@ export namespace LinkSchema$ {
workspaceId: string; workspaceId: string;
clicks: number; clicks: number;
lastClicked: string | null; lastClicked: string | null;
leads: number;
sales: number;
createdAt: string; createdAt: string;
updatedAt: string; updatedAt: string;
projectId: string; projectId: string;
@@ -1840,6 +1854,8 @@ export namespace LinkSchema$ {
workspaceId: z.string(), workspaceId: z.string(),
clicks: z.number().default(0), clicks: z.number().default(0),
lastClicked: z.nullable(z.string()), lastClicked: z.nullable(z.string()),
leads: z.number().default(0),
sales: z.number().default(0),
createdAt: z.string(), createdAt: z.string(),
updatedAt: z.string(), updatedAt: z.string(),
projectId: z.string(), projectId: z.string(),
@@ -1879,6 +1895,8 @@ export namespace LinkSchema$ {
workspaceId: v.workspaceId, workspaceId: v.workspaceId,
clicks: v.clicks, clicks: v.clicks,
lastClicked: v.lastClicked, lastClicked: v.lastClicked,
leads: v.leads,
sales: v.sales,
createdAt: v.createdAt, createdAt: v.createdAt,
updatedAt: v.updatedAt, updatedAt: v.updatedAt,
projectId: v.projectId, projectId: v.projectId,

View File

@@ -12,15 +12,15 @@ export type TrackCustomerRequestBody = {
/** /**
* Name of the customer in the client's app. * Name of the customer in the client's app.
*/ */
customerName?: string | null | undefined; customerName?: string | undefined;
/** /**
* Email of the customer in the client's app. * Email of the customer in the client's app.
*/ */
customerEmail?: string | null | undefined; customerEmail?: string | undefined;
/** /**
* Avatar of the customer in the client's app. * Avatar of the customer in the client's app.
*/ */
customerAvatar?: string | null | undefined; customerAvatar?: string | undefined;
}; };
/** /**
@@ -38,39 +38,39 @@ export namespace TrackCustomerRequestBody$ {
export const inboundSchema: z.ZodType<TrackCustomerRequestBody, z.ZodTypeDef, unknown> = z export const inboundSchema: z.ZodType<TrackCustomerRequestBody, z.ZodTypeDef, unknown> = z
.object({ .object({
customerId: z.string(), customerId: z.string(),
customerName: z.nullable(z.string()).default(null), customerName: z.string().optional(),
customerEmail: z.nullable(z.string()).default(null), customerEmail: z.string().optional(),
customerAvatar: z.nullable(z.string()).default(null), customerAvatar: z.string().optional(),
}) })
.transform((v) => { .transform((v) => {
return { return {
customerId: v.customerId, customerId: v.customerId,
customerName: v.customerName, ...(v.customerName === undefined ? null : { customerName: v.customerName }),
customerEmail: v.customerEmail, ...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
customerAvatar: v.customerAvatar, ...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
}; };
}); });
export type Outbound = { export type Outbound = {
customerId: string; customerId: string;
customerName: string | null; customerName?: string | undefined;
customerEmail: string | null; customerEmail?: string | undefined;
customerAvatar: string | null; customerAvatar?: string | undefined;
}; };
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerRequestBody> = z export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerRequestBody> = z
.object({ .object({
customerId: z.string(), customerId: z.string(),
customerName: z.nullable(z.string()).default(null), customerName: z.string().optional(),
customerEmail: z.nullable(z.string()).default(null), customerEmail: z.string().optional(),
customerAvatar: z.nullable(z.string()).default(null), customerAvatar: z.string().optional(),
}) })
.transform((v) => { .transform((v) => {
return { return {
customerId: v.customerId, customerId: v.customerId,
customerName: v.customerName, ...(v.customerName === undefined ? null : { customerName: v.customerName }),
customerEmail: v.customerEmail, ...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
customerAvatar: v.customerAvatar, ...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
}; };
}); });
} }

View File

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