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.296.1 (#113)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
This commit is contained in:
committed by
GitHub
parent
ca7464e631
commit
6554188a2c
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: f28179cc-ef59-426d-9e85-60cec22fc642
|
||||
management:
|
||||
docChecksum: e93bbcff56bcb0510ebfb526412ef8a9
|
||||
docChecksum: c82cc79ffda0379ff35a3ee5f8667c0d
|
||||
docVersion: 0.0.1
|
||||
speakeasyVersion: 1.296.1
|
||||
generationVersion: 2.338.1
|
||||
releaseVersion: 0.29.8
|
||||
configChecksum: 7fa1e2abca84e8cf14af404198b0660e
|
||||
releaseVersion: 0.29.9
|
||||
configChecksum: 1b24c67caa5adefda06b3a743d0bca5f
|
||||
repoURL: https://github.com/dubinc/dub-node.git
|
||||
installationURL: https://github.com/dubinc/dub-node
|
||||
published: true
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
typescript:
|
||||
version: 0.29.8
|
||||
version: 0.29.9
|
||||
additionalDependencies:
|
||||
dependencies: {}
|
||||
devDependencies:
|
||||
|
||||
@@ -2,8 +2,8 @@ speakeasyVersion: 1.296.1
|
||||
sources:
|
||||
my-first-source:
|
||||
sourceNamespace: my-first-source
|
||||
sourceRevisionDigest: sha256:f51842df07fa7233d06f299b6ae228e2b36266bc4a8bec4b682341692be45ca6
|
||||
sourceBlobDigest: sha256:d06423b2da7a3583289bda62818c9eceabe4c1bb3af853bce65bfd1d33f806e1
|
||||
sourceRevisionDigest: sha256:0b285257c73443e338c219ce3a200d02ee30f8ac169aefeea1454a91ba338a43
|
||||
sourceBlobDigest: sha256:ac82ee79a3edd0ead797b2910ce6da07a17b216767cf70eb8db01d8936d545d3
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -11,8 +11,8 @@ targets:
|
||||
my-first-target:
|
||||
source: my-first-source
|
||||
sourceNamespace: my-first-source
|
||||
sourceRevisionDigest: sha256:f51842df07fa7233d06f299b6ae228e2b36266bc4a8bec4b682341692be45ca6
|
||||
sourceBlobDigest: sha256:d06423b2da7a3583289bda62818c9eceabe4c1bb3af853bce65bfd1d33f806e1
|
||||
sourceRevisionDigest: sha256:0b285257c73443e338c219ce3a200d02ee30f8ac169aefeea1454a91ba338a43
|
||||
sourceBlobDigest: sha256:ac82ee79a3edd0ead797b2910ce6da07a17b216767cf70eb8db01d8936d545d3
|
||||
outLocation: /github/workspace/repo
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
|
||||
10
RELEASES.md
10
RELEASES.md
@@ -347,3 +347,13 @@ Based on:
|
||||
- [typescript v0.29.8] .
|
||||
### Releases
|
||||
- [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 - .
|
||||
1056
codeSamples.yaml
1056
codeSamples.yaml
File diff suppressed because it is too large
Load Diff
@@ -38,6 +38,8 @@
|
||||
| `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. |
|
||||
| `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. |
|
||||
| `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. |
|
||||
@@ -13,4 +13,4 @@ A lead was tracked.
|
||||
| `customerName` | *string* | :heavy_check_mark: | N/A |
|
||||
| `customerEmail` | *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 |
|
||||
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.29.8",
|
||||
"version": "0.29.9",
|
||||
"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.8",
|
||||
"version": "0.29.9",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dub",
|
||||
"version": "0.29.8",
|
||||
"version": "0.29.9",
|
||||
"devDependencies": {
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@types/node": "^20.12.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dub",
|
||||
"version": "0.29.8",
|
||||
"version": "0.29.9",
|
||||
"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.8",
|
||||
sdkVersion: "0.29.9",
|
||||
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;
|
||||
|
||||
@@ -396,6 +396,14 @@ export type LinkSchema = {
|
||||
* The date and time when the short link was last clicked.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
@@ -1721,6 +1729,8 @@ export namespace LinkSchema$ {
|
||||
workspaceId: z.string(),
|
||||
clicks: z.number().default(0),
|
||||
lastClicked: z.nullable(z.string()),
|
||||
leads: z.number().default(0),
|
||||
sales: z.number().default(0),
|
||||
createdAt: z.string(),
|
||||
updatedAt: z.string(),
|
||||
projectId: z.string(),
|
||||
@@ -1760,6 +1770,8 @@ export namespace LinkSchema$ {
|
||||
workspaceId: v.workspaceId,
|
||||
clicks: v.clicks,
|
||||
lastClicked: v.lastClicked,
|
||||
leads: v.leads,
|
||||
sales: v.sales,
|
||||
createdAt: v.createdAt,
|
||||
updatedAt: v.updatedAt,
|
||||
projectId: v.projectId,
|
||||
@@ -1800,6 +1812,8 @@ export namespace LinkSchema$ {
|
||||
workspaceId: string;
|
||||
clicks: number;
|
||||
lastClicked: string | null;
|
||||
leads: number;
|
||||
sales: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
projectId: string;
|
||||
@@ -1840,6 +1854,8 @@ export namespace LinkSchema$ {
|
||||
workspaceId: z.string(),
|
||||
clicks: z.number().default(0),
|
||||
lastClicked: z.nullable(z.string()),
|
||||
leads: z.number().default(0),
|
||||
sales: z.number().default(0),
|
||||
createdAt: z.string(),
|
||||
updatedAt: z.string(),
|
||||
projectId: z.string(),
|
||||
@@ -1879,6 +1895,8 @@ export namespace LinkSchema$ {
|
||||
workspaceId: v.workspaceId,
|
||||
clicks: v.clicks,
|
||||
lastClicked: v.lastClicked,
|
||||
leads: v.leads,
|
||||
sales: v.sales,
|
||||
createdAt: v.createdAt,
|
||||
updatedAt: v.updatedAt,
|
||||
projectId: v.projectId,
|
||||
|
||||
@@ -12,15 +12,15 @@ export type TrackCustomerRequestBody = {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
customerEmail?: string | null | undefined;
|
||||
customerEmail?: string | undefined;
|
||||
/**
|
||||
* 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
|
||||
.object({
|
||||
customerId: z.string(),
|
||||
customerName: z.nullable(z.string()).default(null),
|
||||
customerEmail: z.nullable(z.string()).default(null),
|
||||
customerAvatar: z.nullable(z.string()).default(null),
|
||||
customerName: z.string().optional(),
|
||||
customerEmail: z.string().optional(),
|
||||
customerAvatar: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
customerId: v.customerId,
|
||||
customerName: v.customerName,
|
||||
customerEmail: v.customerEmail,
|
||||
customerAvatar: v.customerAvatar,
|
||||
...(v.customerName === undefined ? null : { customerName: v.customerName }),
|
||||
...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
|
||||
...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
customerId: string;
|
||||
customerName: string | null;
|
||||
customerEmail: string | null;
|
||||
customerAvatar: string | null;
|
||||
customerName?: string | undefined;
|
||||
customerEmail?: string | undefined;
|
||||
customerAvatar?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackCustomerRequestBody> = z
|
||||
.object({
|
||||
customerId: z.string(),
|
||||
customerName: z.nullable(z.string()).default(null),
|
||||
customerEmail: z.nullable(z.string()).default(null),
|
||||
customerAvatar: z.nullable(z.string()).default(null),
|
||||
customerName: z.string().optional(),
|
||||
customerEmail: z.string().optional(),
|
||||
customerAvatar: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
customerId: v.customerId,
|
||||
customerName: v.customerName,
|
||||
customerEmail: v.customerEmail,
|
||||
customerAvatar: v.customerAvatar,
|
||||
...(v.customerName === undefined ? null : { customerName: v.customerName }),
|
||||
...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
|
||||
...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -20,19 +20,19 @@ export type TrackLeadRequestBody = {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
customerEmail?: string | null | undefined;
|
||||
customerEmail?: string | undefined;
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
metadata?: { [k: string]: any } | null | undefined;
|
||||
metadata?: { [k: string]: any } | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -45,7 +45,7 @@ export type TrackLeadResponseBody = {
|
||||
customerName: string | null;
|
||||
customerEmail: string | null;
|
||||
customerAvatar: string | null;
|
||||
metadata: { [k: string]: any } | null;
|
||||
metadata?: { [k: string]: any } | undefined;
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
@@ -55,19 +55,19 @@ export namespace TrackLeadRequestBody$ {
|
||||
clickId: z.string(),
|
||||
eventName: z.string(),
|
||||
customerId: z.string(),
|
||||
customerName: z.nullable(z.string()).default(null),
|
||||
customerEmail: z.nullable(z.string()).default(null),
|
||||
customerAvatar: z.nullable(z.string()).default(null),
|
||||
metadata: z.nullable(z.record(z.any())).optional(),
|
||||
customerName: z.string().optional(),
|
||||
customerEmail: z.string().optional(),
|
||||
customerAvatar: z.string().optional(),
|
||||
metadata: z.record(z.any()).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
clickId: v.clickId,
|
||||
eventName: v.eventName,
|
||||
customerId: v.customerId,
|
||||
customerName: v.customerName,
|
||||
customerEmail: v.customerEmail,
|
||||
customerAvatar: v.customerAvatar,
|
||||
...(v.customerName === undefined ? null : { customerName: v.customerName }),
|
||||
...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
|
||||
...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
|
||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
||||
};
|
||||
});
|
||||
@@ -76,10 +76,10 @@ export namespace TrackLeadRequestBody$ {
|
||||
clickId: string;
|
||||
eventName: string;
|
||||
customerId: string;
|
||||
customerName: string | null;
|
||||
customerEmail: string | null;
|
||||
customerAvatar: string | null;
|
||||
metadata?: { [k: string]: any } | null | undefined;
|
||||
customerName?: string | undefined;
|
||||
customerEmail?: string | undefined;
|
||||
customerAvatar?: string | undefined;
|
||||
metadata?: { [k: string]: any } | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, TrackLeadRequestBody> = z
|
||||
@@ -87,19 +87,19 @@ export namespace TrackLeadRequestBody$ {
|
||||
clickId: z.string(),
|
||||
eventName: z.string(),
|
||||
customerId: z.string(),
|
||||
customerName: z.nullable(z.string()).default(null),
|
||||
customerEmail: z.nullable(z.string()).default(null),
|
||||
customerAvatar: z.nullable(z.string()).default(null),
|
||||
metadata: z.nullable(z.record(z.any())).optional(),
|
||||
customerName: z.string().optional(),
|
||||
customerEmail: z.string().optional(),
|
||||
customerAvatar: z.string().optional(),
|
||||
metadata: z.record(z.any()).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
clickId: v.clickId,
|
||||
eventName: v.eventName,
|
||||
customerId: v.customerId,
|
||||
customerName: v.customerName,
|
||||
customerEmail: v.customerEmail,
|
||||
customerAvatar: v.customerAvatar,
|
||||
...(v.customerName === undefined ? null : { customerName: v.customerName }),
|
||||
...(v.customerEmail === undefined ? null : { customerEmail: v.customerEmail }),
|
||||
...(v.customerAvatar === undefined ? null : { customerAvatar: v.customerAvatar }),
|
||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
||||
};
|
||||
});
|
||||
@@ -115,7 +115,7 @@ export namespace TrackLeadResponseBody$ {
|
||||
customerName: z.nullable(z.string()),
|
||||
customerEmail: z.nullable(z.string()),
|
||||
customerAvatar: z.nullable(z.string()),
|
||||
metadata: z.nullable(z.record(z.any())),
|
||||
metadata: z.record(z.any()).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
@@ -125,7 +125,7 @@ export namespace TrackLeadResponseBody$ {
|
||||
customerName: v.customerName,
|
||||
customerEmail: v.customerEmail,
|
||||
customerAvatar: v.customerAvatar,
|
||||
metadata: v.metadata,
|
||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
||||
};
|
||||
});
|
||||
|
||||
@@ -136,7 +136,7 @@ export namespace TrackLeadResponseBody$ {
|
||||
customerName: string | null;
|
||||
customerEmail: 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
|
||||
@@ -147,7 +147,7 @@ export namespace TrackLeadResponseBody$ {
|
||||
customerName: z.nullable(z.string()),
|
||||
customerEmail: z.nullable(z.string()),
|
||||
customerAvatar: z.nullable(z.string()),
|
||||
metadata: z.nullable(z.record(z.any())),
|
||||
metadata: z.record(z.any()).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
@@ -157,7 +157,7 @@ export namespace TrackLeadResponseBody$ {
|
||||
customerName: v.customerName,
|
||||
customerEmail: v.customerEmail,
|
||||
customerAvatar: v.customerAvatar,
|
||||
metadata: v.metadata,
|
||||
...(v.metadata === undefined ? null : { metadata: v.metadata }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user