Skip to content

Commit 6e5136c

Browse files
authored
Merge pull request #149 from dubinc/speakeasy-sdk-regen-1757809830
chore: 🐝 Update SDK - Generate 0.30.0
2 parents b2a9cf9 + ee9b1b4 commit 6e5136c

Some content is hidden

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

44 files changed

+545
-318
lines changed

.speakeasy/gen.lock

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: ab657d60-207e-43a4-8cc8-692a672950ed
33
management:
4-
docChecksum: ca039d761420ae6bf30481214b90948f
4+
docChecksum: 2e1136299e8788ffa141b33afd2f3cbc
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.615.2
7-
generationVersion: 2.698.4
8-
releaseVersion: 0.29.3
9-
configChecksum: 1440e3b82bc39d9bb87f39ae0aae7307
6+
speakeasyVersion: 1.631.5
7+
generationVersion: 2.716.16
8+
releaseVersion: 0.30.0
9+
configChecksum: 35d3063a791844fd06b9f9c3800d9428
1010
repoURL: https://github.com/dubinc/dub-python.git
1111
installationURL: https://github.com/dubinc/dub-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
1616
constsAndDefaults: 1.0.5
17-
core: 5.20.4
17+
core: 5.22.0
1818
defaultEnabledRetries: 0.2.0
1919
deprecations: 3.0.2
2020
enumUnions: 0.1.0
@@ -30,11 +30,11 @@ features:
3030
includes: 3.0.0
3131
nameOverrides: 3.0.1
3232
nullables: 1.0.1
33-
pagination: 3.0.5
33+
pagination: 3.0.6
3434
responseFormat: 1.0.1
3535
retries: 3.0.2
3636
sdkHooks: 1.1.0
37-
unions: 3.0.4
37+
unions: 3.0.5
3838
generatedFiles:
3939
- .gitattributes
4040
- .vscode/settings.json
@@ -66,6 +66,7 @@ generatedFiles:
6666
- docs/models/components/commissioncreatedeventcustomer.md
6767
- docs/models/components/commissioncreatedeventdata.md
6868
- docs/models/components/commissioncreatedeventevent.md
69+
- docs/models/components/commissioncreatedeventpartner.md
6970
- docs/models/components/commissioncreatedeventstatus.md
7071
- docs/models/components/commissioncreatedeventtype.md
7172
- docs/models/components/continent.md
@@ -121,6 +122,7 @@ generatedFiles:
121122
- docs/models/components/salecreatedeventdata.md
122123
- docs/models/components/salecreatedeventevent.md
123124
- docs/models/components/salecreatedeventlink.md
125+
- docs/models/components/salecreatedeventpartner.md
124126
- docs/models/components/salecreatedeventsale.md
125127
- docs/models/components/salecreatedeventtestvariants.md
126128
- docs/models/components/saleevent.md
@@ -1365,7 +1367,7 @@ examples:
13651367
application/json: {"email": "[email protected]", "linkProps": {"externalId": "123456", "tagIds": ["clux0rgak00011..."], "testVariants": [{"url": "https://example.com/variant-1", "percentage": 50}, {"url": "https://example.com/variant-2", "percentage": 50}]}}
13661368
responses:
13671369
"201":
1368-
application/json: {"id": "<id>", "name": "<value>", "email": "[email protected]", "image": "https://loremflickr.com/2599/3934?lock=3607054824535492", "country": "Equatorial Guinea", "paypalEmail": "<value>", "stripeConnectId": "<id>", "payoutsEnabledAt": "<value>", "programId": "<id>", "partnerId": "<id>", "tenantId": "<id>", "createdAt": "1736363459872", "status": "banned", "links": [], "totalCommissions": 0, "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0, "netRevenue": 0}
1370+
application/json: {"id": "<id>", "name": "<value>", "companyName": "Schowalter, Hauck and Bradtke", "email": "[email protected]", "image": "https://loremflickr.com/2599/3934?lock=3607054824535492", "country": "Equatorial Guinea", "paypalEmail": "<value>", "stripeConnectId": "<id>", "payoutsEnabledAt": "<value>", "programId": "<id>", "partnerId": "<id>", "tenantId": "<id>", "createdAt": "1736363459872", "status": "banned", "links": [], "totalCommissions": 0, "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0, "netRevenue": 0}
13691371
"400":
13701372
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
13711373
"401":
@@ -1416,7 +1418,7 @@ examples:
14161418
programId: "<id>"
14171419
responses:
14181420
"200":
1419-
application/json: [{"id": "<id>", "domain": "another-granny.net", "key": "<key>", "shortLink": "https://scientific-duffel.com", "url": "https://old-fashioned-bug.name", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}, {"id": "<id>", "domain": "another-granny.net", "key": "<key>", "shortLink": "https://scientific-duffel.com", "url": "https://old-fashioned-bug.name", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}]
1421+
application/json: [{"id": "<id>", "domain": "another-granny.net", "key": "<key>", "shortLink": "https://scientific-duffel.com", "url": "https://old-fashioned-bug.name", "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0}, {"id": "<id>", "domain": "another-granny.net", "key": "<key>", "shortLink": "https://scientific-duffel.com", "url": "https://old-fashioned-bug.name", "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0}]
14201422
"400":
14211423
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
14221424
"401":
@@ -1742,9 +1744,10 @@ examples:
17421744
search: "john"
17431745
page: 1
17441746
pageSize: 50
1747+
17451748
responses:
17461749
"200":
1747-
application/json: [{"id": "<id>", "name": "<value>", "email": "[email protected]", "image": "https://picsum.photos/seed/X7WjNI/969/1620", "country": "Paraguay", "paypalEmail": "<value>", "stripeConnectId": "<id>", "payoutsEnabledAt": "<value>", "programId": "<id>", "partnerId": "<id>", "tenantId": "<id>", "createdAt": "1715609832325", "status": "rejected", "links": [{"id": "<id>", "domain": "perky-tributary.biz", "key": "<key>", "shortLink": "https://neighboring-draft.biz/", "url": "https://unsightly-nectarine.biz/", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}], "totalCommissions": 0, "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0, "netRevenue": 0}]
1750+
application/json: [{"id": "<id>", "name": "<value>", "companyName": "Pacocha, McClure and Kuvalis", "email": "[email protected]", "image": "https://picsum.photos/seed/X7WjNI/969/1620", "country": "Paraguay", "paypalEmail": "<value>", "stripeConnectId": "<id>", "payoutsEnabledAt": "<value>", "programId": "<id>", "partnerId": "<id>", "tenantId": "<id>", "createdAt": "1715609832325", "status": "rejected", "links": [{"id": "<id>", "domain": "perky-tributary.biz", "key": "<key>", "shortLink": "https://neighboring-draft.biz/", "url": "https://unsightly-nectarine.biz/", "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0}], "totalCommissions": 0, "clicks": 0, "leads": 0, "conversions": 0, "sales": 0, "saleAmount": 0, "netRevenue": 0}]
17481751
"400":
17491752
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
17501753
"401":
@@ -1765,3 +1768,4 @@ examples:
17651768
application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}}
17661769
examplesVersion: 1.0.2
17671770
generatedTests: {}
1771+
releaseNotes: "## Python SDK Changes Detected:\n* `dub.partners.list()`: \n * `request` **Changed**\n * `response.[]` **Changed** **Breaking** :warning:\n* `dub.partners.create()`: `response` **Changed** **Breaking** :warning:\n* `dub.analytics.retrieve()`: \n * `request.ref` **Added**\n* `dub.events.list()`: \n * `request.ref` **Added**\n* `dub.customers.create()`: \n * `request.stripe_customer_id` **Added**\n* `dub.customers.update()`: \n * `request.request_body.stripe_customer_id` **Added**\n* `dub.partners.retrieve_links()`: `response.[].conversions` **Added**\n* `dub.commissions.list()`: \n * `request.tenant_id` **Added**\n"

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ generation:
2222
generateNewTests: false
2323
skipResponseBodyAssertions: false
2424
python:
25-
version: 0.29.3
25+
version: 0.30.0
2626
additionalDependencies:
2727
dev: {}
2828
main: {}
2929
allowedRedefinedBuiltins:
3030
- id
3131
- object
32+
asyncMode: both
3233
author: Speakeasy
3334
authors:
3435
- Speakeasy
@@ -52,6 +53,7 @@ python:
5253
shared: models/components
5354
webhooks: models/webhooks
5455
inputModelSuffix: input
56+
legacyPyright: true
5557
maxMethodParams: 0
5658
methodArguments: require-security-and-request
5759
moduleName: ""

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.615.2
1+
speakeasyVersion: 1.631.5
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:940f5a4a120f7e0cec4cc0b336f168906f23ee34f87d87a8d9187f59249fdb08
6-
sourceBlobDigest: sha256:d8bf80778c8335912d797a21ad3aaafea0d264681dec1d88fdcdd79ead03fc7e
5+
sourceRevisionDigest: sha256:b3f5fa1d06f20e0c61e7b83ac455334cf199ef8185e400fed0af0dfdbac0777a
6+
sourceBlobDigest: sha256:7d20168dd60b531db2564e39a7c5e9b8036d5c79e15d65a47f962821953eb758
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1757694295
9+
- speakeasy-sdk-regen-1757809830
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:940f5a4a120f7e0cec4cc0b336f168906f23ee34f87d87a8d9187f59249fdb08
16-
sourceBlobDigest: sha256:d8bf80778c8335912d797a21ad3aaafea0d264681dec1d88fdcdd79ead03fc7e
15+
sourceRevisionDigest: sha256:b3f5fa1d06f20e0c61e7b83ac455334cf199ef8185e400fed0af0dfdbac0777a
16+
sourceBlobDigest: sha256:7d20168dd60b531db2564e39a7c5e9b8036d5c79e15d65a47f962821953eb758
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:3b8676191e317d1a7c207bc70eccd4b02baccc45ea52fc673147b27228f1c3a6
18+
codeSamplesRevisionDigest: sha256:29a8720b7f1e382dbb8352399af5863381ca600ecf9e8c4660c6b8c955df277c
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ with Dub(
144144
</br>
145145

146146
The same SDK client can also be used to make asynchronous requests by importing asyncio.
147+
147148
```python
148149
# Asynchronous Example
149150
import asyncio
@@ -219,6 +220,7 @@ with Dub(
219220
</br>
220221

221222
The same SDK client can also be used to make asynchronous requests by importing asyncio.
223+
222224
```python
223225
# Asynchronous Example
224226
import asyncio

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,4 +1396,14 @@ Based on:
13961396
### Generated
13971397
- [python v0.29.3] .
13981398
### Releases
1399-
- [PyPI v0.29.3] https://pypi.org/project/dub/0.29.3 - .
1399+
- [PyPI v0.29.3] https://pypi.org/project/dub/0.29.3 - .
1400+
1401+
## 2025-09-30 18:07:31
1402+
### Changes
1403+
Based on:
1404+
- OpenAPI Doc
1405+
- Speakeasy CLI 1.631.5 (2.716.16) https://github.com/speakeasy-api/speakeasy
1406+
### Generated
1407+
- [python v0.30.0] .
1408+
### Releases
1409+
- [PyPI v0.30.0] https://pypi.org/project/dub/0.30.0 - .

USAGE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ with Dub(
3535
</br>
3636

3737
The same SDK client can also be used to make asynchronous requests by importing asyncio.
38+
3839
```python
3940
# Asynchronous Example
4041
import asyncio
@@ -108,6 +109,7 @@ with Dub(
108109
</br>
109110

110111
The same SDK client can also be used to make asynchronous requests by importing asyncio.
112+
111113
```python
112114
# Asynchronous Example
113115
import asyncio

codeSamples.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,10 @@ actions:
694694
res = d_client.partners.list(request={
695695
"status": operations.ListPartnersQueryParamStatus.APPROVED,
696696
"country": "US",
697+
"email": "[email protected]",
697698
"tenant_id": "1K0NM7HCN944PEMZ3CQPH43H8",
698-
"include_expanded_fields": False,
699699
"search": "john",
700+
"include_expanded_fields": False,
700701
"page_size": 50,
701702
})
702703

docs/models/components/commissioncreatedeventdata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
| `user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The user who created the manual commission. | |
1818
| `created_at` | *str* | :heavy_check_mark: | N/A | |
1919
| `updated_at` | *str* | :heavy_check_mark: | N/A | |
20-
| `partner` | [components.Partner](../../models/components/partner.md) | :heavy_check_mark: | N/A | |
20+
| `partner` | [components.CommissionCreatedEventPartner](../../models/components/commissioncreatedeventpartner.md) | :heavy_check_mark: | N/A | |
2121
| `customer` | [OptionalNullable[components.CommissionCreatedEventCustomer]](../../models/components/commissioncreatedeventcustomer.md) | :heavy_minus_sign: | N/A | |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CommissionCreatedEventPartner
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
8+
| `id` | *str* | :heavy_check_mark: | The partner's unique ID on Dub. |
9+
| `name` | *str* | :heavy_check_mark: | The partner's full legal name. |
10+
| `email` | *Nullable[str]* | :heavy_check_mark: | The partner's email address. Should be a unique value across Dub. |
11+
| `image` | *Nullable[str]* | :heavy_check_mark: | The partner's avatar image. |
12+
| `payouts_enabled_at` | *Nullable[str]* | :heavy_check_mark: | The date when the partner enabled payouts. |
13+
| `country` | *Nullable[str]* | :heavy_check_mark: | The partner's country (required for tax purposes). |
14+
| `total_clicks` | *float* | :heavy_check_mark: | N/A |
15+
| `total_leads` | *float* | :heavy_check_mark: | N/A |
16+
| `total_conversions` | *float* | :heavy_check_mark: | N/A |
17+
| `total_sales` | *float* | :heavy_check_mark: | N/A |
18+
| `total_sale_amount` | *float* | :heavy_check_mark: | N/A |
19+
| `total_commissions` | *float* | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)