Skip to content

Commit 34126ce

Browse files
committed
## Python SDK Changes:
* `dub.links.list()`: `request` **Changed** * `dub.tags.list()`: * `request.page` **Changed** * `dub.folders.list()`: * `request.page` **Changed** * `dub.domains.list()`: * `request.page` **Changed** * `dub.customers.list()`: `request` **Changed** * `dub.partners.list()`: * `request.page` **Changed** * `response.[].default_payout_method` **Added** * `dub.partners.create()`: `response.default_payout_method` **Added** * `dub.commissions.list()`: `request` **Changed** * `dub.payouts.list()`: * `request.page` **Changed** * `response.[]` **Changed** * `dub.bounties.list_submissions()`: * `request` **Changed** * `response.[]` **Changed** * `dub.bounties.approve_submission()`: `response` **Changed** * `dub.bounties.reject_submission()`: `response` **Changed**
1 parent f0e8497 commit 34126ce

File tree

242 files changed

+2549
-867
lines changed

Some content is hidden

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

242 files changed

+2549
-867
lines changed

.speakeasy/gen.lock

Lines changed: 509 additions & 479 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.753.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:f8da375124ffea8156bb04da0496d60d8a14e75146e2534fa31005772fecf75e
6-
sourceBlobDigest: sha256:4182b72c2891ce5345ccdc87a9bb4ea8710bc8fea6b3683baa70fdfcc9565256
5+
sourceRevisionDigest: sha256:625ddf5cff55208cd1122f8a3bc1ba4c58cbce90c8f0de818468a62a4bda29e1
6+
sourceBlobDigest: sha256:9b44a40e41254f492c32ae3b1e1002b1335a627bafa62c54d74a6de203b621b8
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:625ddf5cff55208cd1122f8a3bc1ba4c58cbce90c8f0de818468a62a4bda29e1
15+
sourceBlobDigest: sha256:9b44a40e41254f492c32ae3b1e1002b1335a627bafa62c54d74a6de203b621b8
1716
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:d753ec485bdf84e7b3b9ab9775cff8ba82dcea9c13dbb630b773011e8a60ff26
17+
codeSamplesRevisionDigest: sha256:4bc58f3253eb214cd69e7b6071b4a57848f28e7d232be328843a229290d0babf
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ with Dub(
377377
try:
378378

379379
res = d_client.links.list(request={
380+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
381+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
382+
"page": 1,
380383
"page_size": 50,
381384
})
382385

@@ -444,6 +447,9 @@ with Dub(
444447
) as d_client:
445448

446449
res = d_client.links.list(request={
450+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
451+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
452+
"page": 1,
447453
"page_size": 50,
448454
})
449455

@@ -557,6 +563,9 @@ with Dub(
557563
) as d_client:
558564

559565
res = d_client.links.list(request={
566+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
567+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
568+
"page": 1,
560569
"page_size": 50,
561570
})
562571

@@ -584,6 +593,9 @@ with Dub(
584593
) as d_client:
585594

586595
res = d_client.links.list(request={
596+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
597+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
598+
"page": 1,
587599
"page_size": 50,
588600
},
589601
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
@@ -607,6 +619,9 @@ with Dub(
607619
) as d_client:
608620

609621
res = d_client.links.list(request={
622+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
623+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
624+
"page": 1,
610625
"page_size": 50,
611626
})
612627

@@ -635,6 +650,9 @@ with Dub(
635650
) as d_client:
636651

637652
res = d_client.links.list(request={
653+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
654+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
655+
"page": 1,
638656
"page_size": 50,
639657
})
640658

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-03-13 00:40:14
1522+
### Changes
1523+
Based on:
1524+
- OpenAPI Doc
1525+
- Speakeasy CLI 1.753.0 (2.862.0) 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: 27 additions & 6 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,11 +107,16 @@ 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
112-
# Handle response
113-
print(res)
116+
while res is not None:
117+
# Handle items
118+
119+
res = res.next()
114120
- target: $["paths"]["/commissions/{id}"]["patch"]
115121
update:
116122
x-codeSamples:
@@ -144,11 +150,16 @@ actions:
144150
) as d_client:
145151
146152
res = d_client.customers.list(request={
153+
"ending_before": "cus_1KAP4CDPBSVMMBMH9XX3YZZ0Z",
154+
"starting_after": "cus_1KAP4CDPBSVMMBMH9XX3YZZ0Z",
155+
"page": 1,
147156
"page_size": 50,
148157
})
149158
150-
# Handle response
151-
print(res)
159+
while res is not None:
160+
# Handle items
161+
162+
res = res.next()
152163
- target: $["paths"]["/customers/{id}"]["delete"]
153164
update:
154165
x-codeSamples:
@@ -217,7 +228,9 @@ actions:
217228
token="DUB_API_KEY",
218229
) as d_client:
219230
220-
res = d_client.domains.list(request={})
231+
res = d_client.domains.list(request={
232+
"page": 1,
233+
})
221234
222235
while res is not None:
223236
# Handle items
@@ -362,7 +375,9 @@ actions:
362375
token="DUB_API_KEY",
363376
) as d_client:
364377
365-
res = d_client.folders.list(request={})
378+
res = d_client.folders.list(request={
379+
"page": 1,
380+
})
366381
367382
# Handle response
368383
print(res)
@@ -431,6 +446,9 @@ actions:
431446
) as d_client:
432447
433448
res = d_client.links.list(request={
449+
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
450+
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
451+
"page": 1,
434452
"page_size": 50,
435453
})
436454
@@ -719,6 +737,7 @@ actions:
719737
"email": "panic@thedis.co",
720738
"tenant_id": "1K0NM7HCN944PEMZ3CQPH43H8",
721739
"search": "john",
740+
"page": 1,
722741
"page_size": 50,
723742
})
724743
@@ -913,6 +932,7 @@ actions:
913932
) as d_client:
914933
915934
res = d_client.payouts.list(request={
935+
"page": 1,
916936
"page_size": 50,
917937
})
918938
@@ -951,6 +971,7 @@ actions:
951971
) as d_client:
952972
953973
res = d_client.tags.list(request={
974+
"page": 1,
954975
"page_size": 50,
955976
})
956977

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

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

docs/models/components/city.md

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

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

412
## Values
513

0 commit comments

Comments
 (0)