Skip to content

Commit 9bddce1

Browse files
authored
Merge pull request #289 from dubinc/speakeasy-sdk-regen-1761957210
chore: 🐝 Update SDK - Generate 0.69.0
2 parents b1fa596 + f397b22 commit 9bddce1

File tree

169 files changed

+1701
-11935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+1701
-11935
lines changed

.speakeasy/gen.lock

Lines changed: 58 additions & 30 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ generation:
1919
hoistGlobalSecurity: true
2020
schemas:
2121
allOfMergeStrategy: shallowMerge
22+
requestBodyFieldName: ""
2223
tests:
2324
generateTests: true
2425
generateNewTests: false
2526
skipResponseBodyAssertions: false
2627
typescript:
27-
version: 0.68.0
28+
version: 0.69.0
2829
acceptHeaderEnum: true
2930
additionalDependencies:
3031
dependencies: {}
@@ -33,6 +34,8 @@ typescript:
3334
vitest: 1.4.0
3435
peerDependencies: {}
3536
additionalPackageJSON: {}
37+
additionalScripts: {}
38+
alwaysIncludeInboundAndOutbound: false
3639
author: Dub
3740
baseErrorName: DubError
3841
clientServerStatusCodesAsErrors: true
@@ -42,8 +45,11 @@ typescript:
4245
enableMCPServer: false
4346
enableReactQuery: false
4447
enumFormat: union
48+
exportZodModelNamespace: false
4549
flattenGlobalSecurity: true
4650
flatteningOrder: body-first
51+
formStringArrayEncodeMode: encoded-string
52+
forwardCompatibleEnumsByDefault: false
4753
generateExamples: true
4854
imports:
4955
option: openapi
@@ -53,8 +59,10 @@ typescript:
5359
operations: models/operations
5460
shared: models/components
5561
webhooks: models/webhooks
62+
inferUnionDiscriminators: true
5663
inputModelSuffix: input
5764
jsonpath: legacy
65+
laxMode: strict
5866
maxMethodParams: 0
5967
methodArguments: infer-optional-args
6068
modelPropertyCasing: camel
@@ -64,6 +72,7 @@ typescript:
6472
responseFormat: flat
6573
sseFlatResponse: false
6674
templateVersion: v2
75+
unionStrategy: left-to-right
6776
usageSDKInitImports: []
6877
useIndexModules: true
6978
zodVersion: v3

.speakeasy/out.openapi.yaml

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.642.2
1+
speakeasyVersion: 1.662.0
22
sources:
33
my-first-source:
44
sourceNamespace: my-first-source
5-
sourceRevisionDigest: sha256:64f33c1a3223ca2305cae62db412e4f7d7edcae3462cf33a2fa09f10df0c023a
6-
sourceBlobDigest: sha256:3e318e8f1e7929a35d2a64d5975c6421296ac7fae2622681b5f1b7d39ca1a1f9
5+
sourceRevisionDigest: sha256:6fa844b416ec42983a544f61885002eb2e8c80ab6efc076d18386418ffa7b76b
6+
sourceBlobDigest: sha256:321d4fa9caba7c7d964a1558e2954b4aef21ffaf06b390e47f3f874206b762b6
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1759796930
9+
- speakeasy-sdk-regen-1761957210
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: my-first-source
1414
sourceNamespace: my-first-source
15-
sourceRevisionDigest: sha256:64f33c1a3223ca2305cae62db412e4f7d7edcae3462cf33a2fa09f10df0c023a
16-
sourceBlobDigest: sha256:3e318e8f1e7929a35d2a64d5975c6421296ac7fae2622681b5f1b7d39ca1a1f9
15+
sourceRevisionDigest: sha256:6fa844b416ec42983a544f61885002eb2e8c80ab6efc076d18386418ffa7b76b
16+
sourceBlobDigest: sha256:321d4fa9caba7c7d964a1558e2954b4aef21ffaf06b390e47f3f874206b762b6
1717
codeSamplesNamespace: code-samples-typescript-my-first-target
18-
codeSamplesRevisionDigest: sha256:13a38e6c1ab8bdf2c2d32c47717892cad947272326c4a5a35ff9a30df1aa3db9
18+
codeSamplesRevisionDigest: sha256:24a859c90bb65108c3899bed344e8242ef768a753e79f1c07db9d1e8f25b49ca
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ run();
130130
### [customers](docs/sdks/customers/README.md)
131131

132132
* [list](docs/sdks/customers/README.md#list) - Retrieve a list of customers
133-
* [~~create~~](docs/sdks/customers/README.md#create) - Create a customer :warning: **Deprecated**
134133
* [get](docs/sdks/customers/README.md#get) - Retrieve a customer
135134
* [update](docs/sdks/customers/README.md#update) - Update a customer
136135
* [delete](docs/sdks/customers/README.md#delete) - Delete a customer
@@ -180,6 +179,7 @@ run();
180179
* [retrieveLinks](docs/sdks/partners/README.md#retrievelinks) - Retrieve a partner's links.
181180
* [upsertLink](docs/sdks/partners/README.md#upsertlink) - Upsert a link for a partner
182181
* [analytics](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner
182+
* [ban](docs/sdks/partners/README.md#ban) - Ban a partner
183183

184184
### [qrCodes](docs/sdks/qrcodes/README.md)
185185

@@ -528,6 +528,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
528528
- [`linksUpdateMany`](docs/sdks/links/README.md#updatemany) - Bulk update links
529529
- [`linksUpsert`](docs/sdks/links/README.md#upsert) - Upsert a link
530530
- [`partnersAnalytics`](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner
531+
- [`partnersBan`](docs/sdks/partners/README.md#ban) - Ban a partner
531532
- [`partnersCreate`](docs/sdks/partners/README.md#create) - Create or update a partner
532533
- [`partnersCreateLink`](docs/sdks/partners/README.md#createlink) - Create a link for a partner
533534
- [`partnersList`](docs/sdks/partners/README.md#list) - List all partners
@@ -542,7 +543,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
542543
- [`trackSale`](docs/sdks/track/README.md#sale) - Track a sale
543544
- [`workspacesGet`](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
544545
- [`workspacesUpdate`](docs/sdks/workspaces/README.md#update) - Update a workspace
545-
- ~~[`customersCreate`](docs/sdks/customers/README.md#create)~~ - Create a customer :warning: **Deprecated**
546546

547547
</details>
548548
<!-- End Standalone functions [standalone-funcs] -->

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1926,4 +1926,14 @@ Based on:
19261926
### Generated
19271927
- [typescript v0.68.0] .
19281928
### Releases
1929-
- [NPM v0.68.0] https://www.npmjs.com/package/dub/v/0.68.0 - .
1929+
- [NPM v0.68.0] https://www.npmjs.com/package/dub/v/0.68.0 - .
1930+
1931+
## 2025-11-26 20:07:58
1932+
### Changes
1933+
Based on:
1934+
- OpenAPI Doc
1935+
- Speakeasy CLI 1.662.0 (2.763.3) https://github.com/speakeasy-api/speakeasy
1936+
### Generated
1937+
- [typescript v0.69.0] .
1938+
### Releases
1939+
- [NPM v0.69.0] https://www.npmjs.com/package/dub/v/0.69.0 - .

codeSamples.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,25 @@ actions:
608608
console.log(result);
609609
}
610610
611+
run();
612+
- target: $["paths"]["/partners/ban"]["post"]
613+
update:
614+
x-codeSamples:
615+
- lang: typescript
616+
label: banPartner
617+
source: |-
618+
import { Dub } from "dub";
619+
620+
const dub = new Dub({
621+
token: "DUB_API_KEY",
622+
});
623+
624+
async function run() {
625+
const result = await dub.partners.ban();
626+
627+
console.log(result);
628+
}
629+
611630
run();
612631
- target: $["paths"]["/partners/links"]["get"]
613632
update:

docs/models/components/analyticstopurls.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ let value: AnalyticsTopUrls = {
1212

1313
## Fields
1414

15-
| Field | Type | Required | Description |
16-
| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- |
17-
| `url` | *string* | :heavy_check_mark: | The destination URL |
18-
| `clicks` | *number* | :heavy_minus_sign: | The number of clicks from this URL |
19-
| `leads` | *number* | :heavy_minus_sign: | The number of leads from this URL |
20-
| `sales` | *number* | :heavy_minus_sign: | The number of sales from this URL |
21-
| `saleAmount` | *number* | :heavy_minus_sign: | The total amount of sales from this URL, in cents |
15+
| Field | Type | Required | Description |
16+
| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- |
17+
| `url` | *string* | :heavy_check_mark: | The full destination URL (including query parameters) |
18+
| `clicks` | *number* | :heavy_minus_sign: | The number of clicks from this URL |
19+
| `leads` | *number* | :heavy_minus_sign: | The number of leads from this URL |
20+
| `sales` | *number* | :heavy_minus_sign: | The number of sales from this URL |
21+
| `saleAmount` | *number* | :heavy_minus_sign: | The total amount of sales from this URL, in cents |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ApplicationFormData
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { ApplicationFormData } from "dub/models/components";
7+
8+
let value: ApplicationFormData = {
9+
label: "<value>",
10+
value: null,
11+
};
12+
```
13+
14+
## Fields
15+
16+
| Field | Type | Required | Description |
17+
| ------------------ | ------------------ | ------------------ | ------------------ |
18+
| `label` | *string* | :heavy_check_mark: | N/A |
19+
| `value` | *string* | :heavy_check_mark: | N/A |

docs/models/components/clickevent.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ let value: ClickEvent = {
3737
archived: false,
3838
expiresAt: "1760821640458",
3939
expiredUrl: null,
40+
disabledAt: "<value>",
4041
password: "18HRfFytxtNTFfe",
4142
proxy: false,
4243
title: "<value>",
@@ -58,7 +59,7 @@ let value: ClickEvent = {
5859
{
5960
id: "<id>",
6061
name: "<value>",
61-
color: "purple",
62+
color: "blue",
6263
},
6364
],
6465
folderId: "<id>",
@@ -74,27 +75,27 @@ let value: ClickEvent = {
7475
utmContent: "<value>",
7576
testStartedAt: "<value>",
7677
testCompletedAt: "<value>",
77-
userId: null,
78+
userId: "<id>",
7879
workspaceId: "<id>",
7980
lastClicked: "<value>",
80-
createdAt: "1733578102997",
81-
updatedAt: "1735652513888",
81+
createdAt: "1720315631314",
82+
updatedAt: "1735605740409",
8283
tagId: "<id>",
8384
projectId: "<id>",
8485
},
8586
clickId: "<id>",
8687
linkId: "<id>",
87-
domain: "serene-louse.info",
88+
domain: "oily-heroine.net",
8889
key: "<key>",
89-
url: "https://unsightly-newsletter.com",
90-
continent: "North America",
91-
country: "Azerbaijan",
92-
city: "Lizethworth",
90+
url: "https://impeccable-lid.org",
91+
continent: "Europe",
92+
country: "Cape Verde",
93+
city: "Beierstad",
9394
device: "Mobile",
9495
browser: "Safari",
95-
os: "iOS",
96-
qr: 6648.93,
97-
ip: "5fed:aa48:dc5e:d2bc:9fd0:efd5:e8ff:2c0c",
96+
os: "Chrome OS",
97+
qr: 7186.57,
98+
ip: "170.186.69.182",
9899
};
99100
```
100101

0 commit comments

Comments
 (0)