Skip to content

Commit 100de4a

Browse files
authored
Merge pull request #164 from dubinc/speakeasy-sdk-regen-1777078111
chore: 🐝 Update SDK - Generate 0.36.0
2 parents 4bc96d6 + c7cf0d1 commit 100de4a

102 files changed

Lines changed: 2337 additions & 841 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: 353 additions & 200 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 6 additions & 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.7
32+
version: 0.36.0
3333
additionalDependencies:
3434
dev: {}
3535
main: {}
@@ -41,6 +41,7 @@ python:
4141
authors:
4242
- Speakeasy
4343
baseErrorName: DubError
44+
bodyVariantOverloads: false
4445
clientServerStatusCodesAsErrors: true
4546
constFieldCasing: upper
4647
defaultErrorName: SDKError
@@ -70,15 +71,19 @@ python:
7071
license: ""
7172
maxMethodParams: 0
7273
methodArguments: require-security-and-request
74+
methodTimeoutArgument: timeout-ms
75+
methodTimeoutUnits: milliseconds
7376
moduleName: ""
7477
multipartArrayFormat: legacy
78+
optionalDependencies: {}
7579
outputModelSuffix: output
7680
packageManager: poetry
7781
packageName: dub
7882
preApplyUnionDiscriminators: false
7983
projectUrls: {}
8084
pytestFilterWarnings: []
8185
pytestTimeout: 0
86+
rawResponseHelpers: false
8287
responseFormat: flat
8388
sseFlatResponse: false
8489
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.761.9
1+
speakeasyVersion: 1.771.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:d86df3c9bd604448c34853ed39872f00710adf94a49e28edb6969c2e69b3bcaf
6-
sourceBlobDigest: sha256:e9f74dc104cf7ecd005a5bb81c2895fb57fc66b4781fea1c72750b7a3e1793b3
5+
sourceRevisionDigest: sha256:557be3aa4eb9a9733783892f8c47283a777a2d49426bc87f1c32c31044223a25
6+
sourceBlobDigest: sha256:0eb6ac0b51c3eb36d0776e8608e9fd8c0ff44908d0e05c2d96af3b82bd7d2de1
77
tags:
88
- latest
99
- 0.0.1
1010
targets:
1111
my-first-target:
1212
source: dub
1313
sourceNamespace: dub
14-
sourceRevisionDigest: sha256:d86df3c9bd604448c34853ed39872f00710adf94a49e28edb6969c2e69b3bcaf
15-
sourceBlobDigest: sha256:e9f74dc104cf7ecd005a5bb81c2895fb57fc66b4781fea1c72750b7a3e1793b3
14+
sourceRevisionDigest: sha256:557be3aa4eb9a9733783892f8c47283a777a2d49426bc87f1c32c31044223a25
15+
sourceBlobDigest: sha256:0eb6ac0b51c3eb36d0776e8608e9fd8c0ff44908d0e05c2d96af3b82bd7d2de1
1616
codeSamplesNamespace: code-samples-python-my-first-target
17-
codeSamplesRevisionDigest: sha256:0632b8446052d67e5b3081429d995751095c4553926d6ff4cc3ac86de32565d9
17+
codeSamplesRevisionDigest: sha256:190ae94588823363d5d2a9230c9082573e5328e83cfead46121b0c799f4f3bc5
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ asyncio.run(main())
270270
### [Commissions](docs/sdks/commissions/README.md)
271271

272272
* [list](docs/sdks/commissions/README.md#list) - List all commissions
273+
* [create](docs/sdks/commissions/README.md#create) - Create commission
273274
* [update](docs/sdks/commissions/README.md#update) - Update a commission
274275
* [update_many](docs/sdks/commissions/README.md#update_many) - Bulk update commissions
275276

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,4 +1536,14 @@ Based on:
15361536
### Generated
15371537
- [python v0.35.7] .
15381538
### Releases
1539-
- [PyPI v0.35.7] https://pypi.org/project/dub/0.35.7 - .
1539+
- [PyPI v0.35.7] https://pypi.org/project/dub/0.35.7 - .
1540+
1541+
## 2026-06-05 16:00:14
1542+
### Changes
1543+
Based on:
1544+
- OpenAPI Doc
1545+
- Speakeasy CLI 1.771.0 (2.893.0) https://github.com/speakeasy-api/speakeasy
1546+
### Generated
1547+
- [python v0.36.0] .
1548+
### Releases
1549+
- [PyPI v0.36.0] https://pypi.org/project/dub/0.36.0 - .

codeSamples.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,23 @@ actions:
117117
# Handle items
118118
119119
res = res.next()
120+
- target: $["paths"]["/commissions"]["post"]
121+
update:
122+
x-codeSamples:
123+
- lang: python
124+
label: createCommission
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.create()
134+
135+
# Handle response
136+
print(res)
120137
- target: $["paths"]["/commissions/bulk"]["patch"]
121138
update:
122139
x-codeSamples:
@@ -842,7 +859,7 @@ actions:
842859
update:
843860
x-codeSamples:
844861
- lang: python
845-
label: approvePartner
862+
label: approvePartnerApplication
846863
source: |-
847864
from dub import Dub
848865
@@ -861,7 +878,7 @@ actions:
861878
update:
862879
x-codeSamples:
863880
- lang: python
864-
label: rejectPartner
881+
label: rejectPartnerApplication
865882
source: |-
866883
from dub import Dub
867884
@@ -914,7 +931,7 @@ actions:
914931
update:
915932
x-codeSamples:
916933
- lang: python
917-
label: retrieveLinks
934+
label: retrievePartnerLinks
918935
source: |-
919936
from dub import Dub
920937

docs/models/components/commissioncreatedeventcustomer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
| `id` | *str* | :heavy_check_mark: | The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`). |
9-
| `name` | *str* | :heavy_check_mark: | Name of the customer. |
9+
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the customer. |
1010
| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Email of the customer. |
1111
| `avatar` | *OptionalNullable[str]* | :heavy_minus_sign: | Avatar URL of the customer. |
1212
| `external_id` | *str* | :heavy_check_mark: | Unique identifier for the customer in the client's app. |

docs/models/components/commissioncreatedeventtype.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ value = CommissionCreatedEventType.CLICK
1111

1212
## Values
1313

14-
| Name | Value |
15-
| -------- | -------- |
16-
| `CLICK` | click |
17-
| `LEAD` | lead |
18-
| `SALE` | sale |
19-
| `CUSTOM` | custom |
14+
| Name | Value |
15+
| ---------- | ---------- |
16+
| `CLICK` | click |
17+
| `LEAD` | lead |
18+
| `SALE` | sale |
19+
| `REFERRAL` | referral |
20+
| `CUSTOM` | custom |

docs/models/components/customer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
| `id` | *str* | :heavy_check_mark: | The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`). |
9-
| `name` | *str* | :heavy_check_mark: | Name of the customer. |
9+
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the customer. |
1010
| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Email of the customer. |
1111
| `avatar` | *OptionalNullable[str]* | :heavy_minus_sign: | Avatar URL of the customer. |
1212
| `external_id` | *str* | :heavy_check_mark: | Unique identifier for the customer in the client's app. |
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# NetworkStatus
2+
3+
The partner's network status on Dub.
4+
5+
## Example Usage
6+
7+
```python
8+
from dub.models.components import NetworkStatus
9+
10+
value = NetworkStatus.DRAFT
11+
```
12+
13+
14+
## Values
15+
16+
| Name | Value |
17+
| ----------- | ----------- |
18+
| `DRAFT` | draft |
19+
| `SUBMITTED` | submitted |
20+
| `APPROVED` | approved |
21+
| `REJECTED` | rejected |
22+
| `TRUSTED` | trusted |

0 commit comments

Comments
 (0)