Skip to content

Commit 7c9742b

Browse files
authored
Merge pull request #299 from dubinc/speakeasy-sdk-regen-1772772658
chore: 🐝 Update SDK - Generate 0.71.6
2 parents 261fdea + c02bc27 commit 7c9742b

114 files changed

Lines changed: 2725 additions & 1270 deletions

File tree

Some content is hidden

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

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
!/**/*.map
1313

1414
/eslint.config.mjs
15+
/.oxlintrc.json
1516
/cjs
1617
/.tshy
1718
/.tshy-*

.speakeasy/gen.lock

Lines changed: 286 additions & 191 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ generation:
2929
generateNewTests: false
3030
skipResponseBodyAssertions: false
3131
typescript:
32-
version: 0.71.5
32+
version: 0.71.6
3333
acceptHeaderEnum: true
3434
additionalDependencies:
3535
dependencies: {}
@@ -50,6 +50,7 @@ typescript:
5050
enableReactQuery: false
5151
enumFormat: union
5252
exportZodModelNamespace: false
53+
fixEnumNameSanitization: false
5354
flatAdditionalProperties: false
5455
flattenGlobalSecurity: true
5556
flatteningOrder: body-first
@@ -85,4 +86,6 @@ typescript:
8586
unionStrategy: left-to-right
8687
usageSDKInitImports: []
8788
useIndexModules: true
89+
useOxlint: false
90+
useTsgo: false
8891
zodVersion: v3

.speakeasy/out.openapi.yaml

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

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.736.3
1+
speakeasyVersion: 1.761.1
22
sources:
33
my-first-source:
44
sourceNamespace: my-first-source
5-
sourceRevisionDigest: sha256:7a2cf48e79dfbb557081745763dfb78fb01ab81632f1c8c50b539b89c4772070
6-
sourceBlobDigest: sha256:5721873471c2f5a95bee86d6861af033b5e1cb555483150ca362a63658f6a733
5+
sourceRevisionDigest: sha256:8d953a2b6d92ed64e996cc01f234c67e98f9a03ce52b02419395893da4b52406
6+
sourceBlobDigest: sha256:8d2d954b6780a55b34c956f245b5f5bf552c2721ffc252e2180acb6f3e287b57
77
tags:
88
- latest
99
- 0.0.1
1010
targets:
1111
my-first-target:
1212
source: my-first-source
1313
sourceNamespace: my-first-source
14-
sourceRevisionDigest: sha256:7a2cf48e79dfbb557081745763dfb78fb01ab81632f1c8c50b539b89c4772070
15-
sourceBlobDigest: sha256:5721873471c2f5a95bee86d6861af033b5e1cb555483150ca362a63658f6a733
14+
sourceRevisionDigest: sha256:8d953a2b6d92ed64e996cc01f234c67e98f9a03ce52b02419395893da4b52406
15+
sourceBlobDigest: sha256:8d2d954b6780a55b34c956f245b5f5bf552c2721ffc252e2180acb6f3e287b57
1616
codeSamplesNamespace: code-samples-typescript-my-first-target
17-
codeSamplesRevisionDigest: sha256:4c0213c0b5ded54dcf5cbd818ee2352d8284e7e3e4e16afde98ae614323bc446
17+
codeSamplesRevisionDigest: sha256:8d1655c2c6a57a67b2da7200e1e8688d701f0ecd12a25dcd47936c1def00aa30
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ run();
132132

133133
* [list](docs/sdks/commissions/README.md#list) - List all commissions
134134
* [update](docs/sdks/commissions/README.md#update) - Update a commission
135+
* [updateMany](docs/sdks/commissions/README.md#updatemany) - Bulk update commissions
135136

136137
### [Customers](docs/sdks/customers/README.md)
137138

@@ -524,6 +525,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
524525
- [`bountiesRejectSubmission`](docs/sdks/bounties/README.md#rejectsubmission) - Reject a bounty submission
525526
- [`commissionsList`](docs/sdks/commissions/README.md#list) - List all commissions
526527
- [`commissionsUpdate`](docs/sdks/commissions/README.md#update) - Update a commission
528+
- [`commissionsUpdateMany`](docs/sdks/commissions/README.md#updatemany) - Bulk update commissions
527529
- [`customersDelete`](docs/sdks/customers/README.md#delete) - Delete a customer
528530
- [`customersGet`](docs/sdks/customers/README.md#get) - Retrieve a customer
529531
- [`customersList`](docs/sdks/customers/README.md#list) - Retrieve a list of customers

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,4 +2016,14 @@ Based on:
20162016
### Generated
20172017
- [typescript v0.71.5] .
20182018
### Releases
2019-
- [NPM v0.71.5] https://www.npmjs.com/package/dub/v/0.71.5 - .
2019+
- [NPM v0.71.5] https://www.npmjs.com/package/dub/v/0.71.5 - .
2020+
2021+
## 2026-04-07 00:47:23
2022+
### Changes
2023+
Based on:
2024+
- OpenAPI Doc
2025+
- Speakeasy CLI 1.761.1 (2.879.6) https://github.com/speakeasy-api/speakeasy
2026+
### Generated
2027+
- [typescript v0.71.6] .
2028+
### Releases
2029+
- [NPM v0.71.6] https://www.npmjs.com/package/dub/v/0.71.6 - .

codeSamples.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ actions:
3737
async function run() {
3838
const result = await dub.bounties.listSubmissions({
3939
bountyId: "<id>",
40+
page: 1,
4041
pageSize: 50,
4142
});
4243
@@ -103,6 +104,27 @@ actions:
103104
async function run() {
104105
const result = await dub.commissions.list();
105106
107+
for await (const page of result) {
108+
console.log(page);
109+
}
110+
}
111+
112+
run();
113+
- target: $["paths"]["/commissions/bulk"]["patch"]
114+
update:
115+
x-codeSamples:
116+
- lang: typescript
117+
label: bulkUpdateCommissions
118+
source: |-
119+
import { Dub } from "dub";
120+
121+
const dub = new Dub({
122+
token: "DUB_API_KEY",
123+
});
124+
125+
async function run() {
126+
const result = await dub.commissions.updateMany();
127+
106128
console.log(result);
107129
}
108130
@@ -143,7 +165,9 @@ actions:
143165
async function run() {
144166
const result = await dub.customers.list();
145167
146-
console.log(result);
168+
for await (const page of result) {
169+
console.log(page);
170+
}
147171
}
148172
149173
run();
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Application
2+
3+
Linked program application, including review outcome when applicable.
4+
5+
## Example Usage
6+
7+
```typescript
8+
import { Application } from "dub/models/components";
9+
10+
let value: Application = {
11+
rejectionReason: "notTheRightFit",
12+
rejectionNote: "<value>",
13+
reviewedAt: "<value>",
14+
};
15+
```
16+
17+
## Fields
18+
19+
| Field | Type | Required | Description |
20+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
21+
| `rejectionReason` | [components.RejectionReason](../../models/components/rejectionreason.md) | :heavy_check_mark: | Preset reason when the application was rejected. |
22+
| `rejectionNote` | *string* | :heavy_check_mark: | Free-form note when the application was rejected. |
23+
| `reviewedAt` | *string* | :heavy_check_mark: | When the application was approved or rejected. |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# DefaultPayoutMethod
2+
3+
The partner's default payout method. Connect: Bank account payouts via Stripe Connect; Stablecoin: USDC payouts directly to a crypto wallet; PayPal: Payouts via PayPal
4+
5+
## Example Usage
6+
7+
```typescript
8+
import { DefaultPayoutMethod } from "dub/models/components";
9+
10+
let value: DefaultPayoutMethod = "connect";
11+
```
12+
13+
## Values
14+
15+
```typescript
16+
"connect" | "stablecoin" | "paypal"
17+
```

0 commit comments

Comments
 (0)