Skip to content

Commit eb70f9e

Browse files
authored
Merge pull request #123 from dubinc/speakeasy-sdk-regen-1747787427
chore: 🐝 Update SDK - Generate 0.24.1
2 parents 4f33e8b + aeb91f3 commit eb70f9e

36 files changed

Lines changed: 1498 additions & 581 deletions

.speakeasy/gen.lock

Lines changed: 81 additions & 9 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
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: true
1717
oAuth2PasswordEnabled: false
1818
python:
19-
version: 0.24.0
19+
version: 0.24.1
2020
additionalDependencies:
2121
dev: {}
2222
main: {}

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.546.2
1+
speakeasyVersion: 1.548.3
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:842fa4c53ec73aa22ab2821b9c80f6af3992b2d2674973a7d526305907426647
6-
sourceBlobDigest: sha256:60d12fca20a95a3ec6213b8e624d7c91b1365c29c3f8a053e252939cc2c78eb7
5+
sourceRevisionDigest: sha256:3b46a4265ce98ecbbd40833cc9c96af496a337ba16161f52edd03dcd92501e11
6+
sourceBlobDigest: sha256:b6ac8d347a7a223ad6877aeeab06453d65b5788cfc0bdaa1ce02e125c8874cc7
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1747609977
9+
- speakeasy-sdk-regen-1747787427
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:842fa4c53ec73aa22ab2821b9c80f6af3992b2d2674973a7d526305907426647
16-
sourceBlobDigest: sha256:60d12fca20a95a3ec6213b8e624d7c91b1365c29c3f8a053e252939cc2c78eb7
15+
sourceRevisionDigest: sha256:3b46a4265ce98ecbbd40833cc9c96af496a337ba16161f52edd03dcd92501e11
16+
sourceBlobDigest: sha256:b6ac8d347a7a223ad6877aeeab06453d65b5788cfc0bdaa1ce02e125c8874cc7
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:5e9bd113b5f467e131ad00fe6286087a254a9698c0ad429c16b8e07b02a466c9
18+
codeSamplesRevisionDigest: sha256:c2a0f781eaa490390adeb3698f323391784ce8bea9264b32402cac0b6fbc75fa
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ asyncio.run(main())
259259

260260
* [retrieve](docs/sdks/analytics/README.md#retrieve) - Retrieve analytics for a link, a domain, or the authenticated workspace.
261261

262+
### [commissions](docs/sdks/commissions/README.md)
263+
264+
* [list](docs/sdks/commissions/README.md#list) - Get commissions for a program.
265+
* [update](docs/sdks/commissions/README.md#update) - Update a commission.
266+
262267
### [customers](docs/sdks/customers/README.md)
263268

264269
* [list](docs/sdks/customers/README.md#list) - Retrieve a list of customers
@@ -310,7 +315,6 @@ asyncio.run(main())
310315
* [retrieve_links](docs/sdks/partners/README.md#retrieve_links) - Retrieve a partner's links.
311316
* [upsert_link](docs/sdks/partners/README.md#upsert_link) - Upsert a link for a partner
312317
* [analytics](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner
313-
* [update_sale](docs/sdks/partners/README.md#update_sale) - Update a sale for a partner.
314318

315319
### [qr_codes](docs/sdks/qrcodes/README.md)
316320

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,4 +1136,14 @@ Based on:
11361136
### Generated
11371137
- [python v0.24.0] .
11381138
### Releases
1139-
- [PyPI v0.24.0] https://pypi.org/project/dub/0.24.0 - .
1139+
- [PyPI v0.24.0] https://pypi.org/project/dub/0.24.0 - .
1140+
1141+
## 2025-05-21 02:24:55
1142+
### Changes
1143+
Based on:
1144+
- OpenAPI Doc
1145+
- Speakeasy CLI 1.548.3 (2.605.6) https://github.com/speakeasy-api/speakeasy
1146+
### Generated
1147+
- [python v0.24.1] .
1148+
### Releases
1149+
- [PyPI v0.24.1] https://pypi.org/project/dub/0.24.1 - .

codeSamples.yaml

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,46 @@ actions:
2727
2828
assert res is not None
2929
30+
# Handle response
31+
print(res)
32+
- target: $["paths"]["/commissions"]["get"]
33+
update:
34+
x-codeSamples:
35+
- lang: python
36+
label: listCommissions
37+
source: |-
38+
from dub import Dub
39+
40+
41+
with Dub(
42+
token="DUB_API_KEY",
43+
) as d_client:
44+
45+
res = d_client.commissions.list(request={})
46+
47+
assert res is not None
48+
49+
# Handle response
50+
print(res)
51+
- target: $["paths"]["/commissions/{id}"]["patch"]
52+
update:
53+
x-codeSamples:
54+
- lang: python
55+
label: updateCommission
56+
source: |-
57+
from dub import Dub
58+
59+
60+
with Dub(
61+
token="DUB_API_KEY",
62+
) as d_client:
63+
64+
res = d_client.commissions.update(request={
65+
"id": "cm_1JVR7XRCSR0EDBAF39FZ4PMYE",
66+
})
67+
68+
assert res is not None
69+
3070
# Handle response
3171
print(res)
3272
- target: $["paths"]["/customers"]["get"]
@@ -748,25 +788,6 @@ actions:
748788
749789
assert res is not None
750790
751-
# Handle response
752-
print(res)
753-
- target: $["paths"]["/partners/sales"]["patch"]
754-
update:
755-
x-codeSamples:
756-
- lang: python
757-
label: updatePartnerSale
758-
source: |-
759-
from dub import Dub
760-
761-
762-
with Dub(
763-
token="DUB_API_KEY",
764-
) as d_client:
765-
766-
res = d_client.partners.update_sale()
767-
768-
assert res is not None
769-
770791
# Handle response
771792
print(res)
772793
- target: $["paths"]["/qr"]["get"]

docs/models/operations/createpartnerresponsebody.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The created partner
2323
| `stripe_connect_id` | *Nullable[str]* | :heavy_check_mark: | The partner's Stripe Connect ID (for receiving payouts via Stripe). |
2424
| `payouts_enabled_at` | *Nullable[str]* | :heavy_check_mark: | The date when the partner enabled payouts. |
2525
| `created_at` | *str* | :heavy_check_mark: | The date when the partner was created on Dub. |
26-
| `status` | [operations.Status](../../models/operations/status.md) | :heavy_check_mark: | The status of the partner's enrollment in the program. |
26+
| `status` | [operations.CreatePartnerStatus](../../models/operations/createpartnerstatus.md) | :heavy_check_mark: | The status of the partner's enrollment in the program. |
2727
| `program_id` | *str* | :heavy_check_mark: | The program's unique ID on Dub. |
2828
| `tenant_id` | *Nullable[str]* | :heavy_check_mark: | The partner's unique ID within your database. Can be useful for associating the partner with a user in your database and retrieving/update their data in the future. |
2929
| `links` | List[[operations.CreatePartnerLink](../../models/operations/createpartnerlink.md)] | :heavy_check_mark: | The partner's referral links in this program. |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# CreatePartnerStatus
2+
3+
The status of the partner's enrollment in the program.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ---------- | ---------- |
10+
| `PENDING` | pending |
11+
| `APPROVED` | approved |
12+
| `REJECTED` | rejected |
13+
| `INVITED` | invited |
14+
| `DECLINED` | declined |
15+
| `BANNED` | banned |
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# ListCommissionsQueryParamInterval
2+
3+
The interval to retrieve commissions for.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| -------------- | -------------- |
10+
| `TWENTY_FOURH` | 24h |
11+
| `SEVEND` | 7d |
12+
| `THIRTYD` | 30d |
13+
| `NINETYD` | 90d |
14+
| `ONEY` | 1y |
15+
| `MTD` | mtd |
16+
| `QTD` | qtd |
17+
| `YTD` | ytd |
18+
| `ALL` | all |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ListCommissionsQueryParamSortBy
2+
3+
The field to sort the list of commissions by.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ------------ | ------------ |
10+
| `CREATED_AT` | createdAt |
11+
| `AMOUNT` | amount |

0 commit comments

Comments
 (0)