Skip to content

Commit c14183d

Browse files
authored
Merge pull request #162 from dubinc/speakeasy-sdk-regen-1772066332
chore: 🐝 Update SDK - Generate 0.35.6
2 parents f0e8497 + ca03062 commit c14183d

272 files changed

Lines changed: 3801 additions & 1107 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.

.speakeasy/gen.lock

Lines changed: 619 additions & 517 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ generation:
2929
generateNewTests: false
3030
skipResponseBodyAssertions: false
3131
python:
32-
version: 0.35.5
32+
version: 0.35.6
3333
additionalDependencies:
3434
dev: {}
3535
main: {}

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
speakeasyVersion: 1.728.0
1+
speakeasyVersion: 1.761.1
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:f8da375124ffea8156bb04da0496d60d8a14e75146e2534fa31005772fecf75e
6-
sourceBlobDigest: sha256:4182b72c2891ce5345ccdc87a9bb4ea8710bc8fea6b3683baa70fdfcc9565256
5+
sourceRevisionDigest: sha256:1649e30f363aaeb0f009d167562d0b0838aea4350996a9ccfde19bd657d04f5b
6+
sourceBlobDigest: sha256:043b795b3472a9f7ded92abdc636e8cefd89233873c717a6a13010a984fc1b5f
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1771461763
109
- 0.0.1
1110
targets:
1211
my-first-target:
1312
source: dub
1413
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:f8da375124ffea8156bb04da0496d60d8a14e75146e2534fa31005772fecf75e
16-
sourceBlobDigest: sha256:4182b72c2891ce5345ccdc87a9bb4ea8710bc8fea6b3683baa70fdfcc9565256
14+
sourceRevisionDigest: sha256:1649e30f363aaeb0f009d167562d0b0838aea4350996a9ccfde19bd657d04f5b
15+
sourceBlobDigest: sha256:043b795b3472a9f7ded92abdc636e8cefd89233873c717a6a13010a984fc1b5f
1716
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:d753ec485bdf84e7b3b9ab9775cff8ba82dcea9c13dbb630b773011e8a60ff26
17+
codeSamplesRevisionDigest: sha256:6d229767afc3289d2bab0d8578d7dc5619b70f36367bd1900d4456fe5b759620
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ asyncio.run(main())
271271

272272
* [list](docs/sdks/commissions/README.md#list) - List all commissions
273273
* [update](docs/sdks/commissions/README.md#update) - Update a commission
274+
* [update_many](docs/sdks/commissions/README.md#update_many) - Bulk update commissions
274275

275276
### [Customers](docs/sdks/customers/README.md)
276277

@@ -377,6 +378,9 @@ with Dub(
377378
try:
378379

379380
res = d_client.links.list(request={
381+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
382+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
383+
"page": 1,
380384
"page_size": 50,
381385
})
382386

@@ -444,6 +448,9 @@ with Dub(
444448
) as d_client:
445449

446450
res = d_client.links.list(request={
451+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
452+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
453+
"page": 1,
447454
"page_size": 50,
448455
})
449456

@@ -557,6 +564,9 @@ with Dub(
557564
) as d_client:
558565

559566
res = d_client.links.list(request={
567+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
568+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
569+
"page": 1,
560570
"page_size": 50,
561571
})
562572

@@ -584,6 +594,9 @@ with Dub(
584594
) as d_client:
585595

586596
res = d_client.links.list(request={
597+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
598+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
599+
"page": 1,
587600
"page_size": 50,
588601
},
589602
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
@@ -607,6 +620,9 @@ with Dub(
607620
) as d_client:
608621

609622
res = d_client.links.list(request={
623+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
624+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
625+
"page": 1,
610626
"page_size": 50,
611627
})
612628

@@ -635,6 +651,9 @@ with Dub(
635651
) as d_client:
636652

637653
res = d_client.links.list(request={
654+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
655+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
656+
"page": 1,
638657
"page_size": 50,
639658
})
640659

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,4 +1516,14 @@ Based on:
15161516
### Generated
15171517
- [python v0.35.5] .
15181518
### Releases
1519-
- [PyPI v0.35.5] https://pypi.org/project/dub/0.35.5 - .
1519+
- [PyPI v0.35.5] https://pypi.org/project/dub/0.35.5 - .
1520+
1521+
## 2026-04-07 00:46:37
1522+
### Changes
1523+
Based on:
1524+
- OpenAPI Doc
1525+
- Speakeasy CLI 1.761.1 (2.879.6) https://github.com/speakeasy-api/speakeasy
1526+
### Generated
1527+
- [python v0.35.6] .
1528+
### Releases
1529+
- [PyPI v0.35.6] https://pypi.org/project/dub/0.35.6 - .

codeSamples.yaml

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ actions:
4747
4848
res = d_client.bounties.list_submissions(request={
4949
"bounty_id": "<id>",
50+
"page": 1,
5051
"page_size": 50,
5152
})
5253
@@ -106,9 +107,31 @@ actions:
106107
) as d_client:
107108
108109
res = d_client.commissions.list(request={
110+
"ending_before": "cm_1KAP4CGN2Z5TPYYQ1W4JEYD56",
111+
"starting_after": "cm_1KAP4CGN2Z5TPYYQ1W4JEYD56",
112+
"page": 1,
109113
"page_size": 50,
110114
})
111115
116+
while res is not None:
117+
# Handle items
118+
119+
res = res.next()
120+
- target: $["paths"]["/commissions/bulk"]["patch"]
121+
update:
122+
x-codeSamples:
123+
- lang: python
124+
label: bulkUpdateCommissions
125+
source: |-
126+
from dub import Dub
127+
128+
129+
with Dub(
130+
token="DUB_API_KEY",
131+
) as d_client:
132+
133+
res = d_client.commissions.update_many()
134+
112135
# Handle response
113136
print(res)
114137
- target: $["paths"]["/commissions/{id}"]["patch"]
@@ -144,11 +167,16 @@ actions:
144167
) as d_client:
145168
146169
res = d_client.customers.list(request={
170+
"ending_before": "cus_1KAP4CDPBSVMMBMH9XX3YZZ0Z",
171+
"starting_after": "cus_1KAP4CDPBSVMMBMH9XX3YZZ0Z",
172+
"page": 1,
147173
"page_size": 50,
148174
})
149175
150-
# Handle response
151-
print(res)
176+
while res is not None:
177+
# Handle items
178+
179+
res = res.next()
152180
- target: $["paths"]["/customers/{id}"]["delete"]
153181
update:
154182
x-codeSamples:
@@ -217,7 +245,9 @@ actions:
217245
token="DUB_API_KEY",
218246
) as d_client:
219247
220-
res = d_client.domains.list(request={})
248+
res = d_client.domains.list(request={
249+
"page": 1,
250+
})
221251
222252
while res is not None:
223253
# Handle items
@@ -362,7 +392,9 @@ actions:
362392
token="DUB_API_KEY",
363393
) as d_client:
364394
365-
res = d_client.folders.list(request={})
395+
res = d_client.folders.list(request={
396+
"page": 1,
397+
})
366398
367399
# Handle response
368400
print(res)
@@ -431,6 +463,9 @@ actions:
431463
) as d_client:
432464
433465
res = d_client.links.list(request={
466+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
467+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
468+
"page": 1,
434469
"page_size": 50,
435470
})
436471
@@ -714,11 +749,13 @@ actions:
714749
) as d_client:
715750
716751
res = d_client.partners.list(request={
752+
"group_id": "grp_123",
717753
"status": operations.ListPartnersQueryParamStatus.APPROVED,
718754
"country": "US",
719755
"email": "panic@thedis.co",
720756
"tenant_id": "1K0NM7HCN944PEMZ3CQPH43H8",
721757
"search": "john",
758+
"page": 1,
722759
"page_size": 50,
723760
})
724761
@@ -913,6 +950,7 @@ actions:
913950
) as d_client:
914951
915952
res = d_client.payouts.list(request={
953+
"page": 1,
916954
"page_size": 50,
917955
})
918956
@@ -951,6 +989,7 @@ actions:
951989
) as d_client:
952990
953991
res = d_client.tags.list(request={
992+
"page": 1,
954993
"page_size": 50,
955994
})
956995

docs/models/components/accesslevel.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
The access level of the folder within the workspace.
44

5+
## Example Usage
6+
7+
```python
8+
from dub.models.components import AccessLevel
9+
10+
value = AccessLevel.WRITE
11+
```
12+
513

614
## Values
715

docs/models/components/analyticsregionscity.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# AnalyticsRegionsCity
22

3+
## Example Usage
4+
5+
```python
6+
from dub.models.components import AnalyticsRegionsCity
7+
8+
value = AnalyticsRegionsCity.WILDCARD_
9+
```
10+
311

412
## Values
513

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Application
2+
3+
Linked program application, including review outcome when applicable.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
10+
| `rejection_reason` | [Nullable[components.RejectionReason]](../../models/components/rejectionreason.md) | :heavy_check_mark: | Preset reason when the application was rejected. |
11+
| `rejection_note` | *Nullable[str]* | :heavy_check_mark: | Free-form note when the application was rejected. |
12+
| `reviewed_at` | *Nullable[str]* | :heavy_check_mark: | When the application was approved or rejected. |

docs/models/components/bannedreason.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
If the partner was banned from the program, this is the reason for the ban.
44

5+
## Example Usage
6+
7+
```python
8+
from dub.models.components import BannedReason
9+
10+
value = BannedReason.TOS_VIOLATION
11+
```
12+
513

614
## Values
715

0 commit comments

Comments
 (0)