Skip to content

Commit e1a3723

Browse files
authored
Merge pull request #155 from dubinc/speakeasy-sdk-regen-1768437086
chore: 🐝 Update SDK - Generate 0.35.0
2 parents 823ca31 + db153a6 commit e1a3723

202 files changed

Lines changed: 7490 additions & 4898 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: 543 additions & 296 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,22 @@ generation:
1313
requestResponseComponentNamesFeb2024: true
1414
securityFeb2025: false
1515
sharedErrorComponentsApr2025: false
16+
sharedNestedComponentsJan2026: false
1617
auth:
1718
oAuth2ClientCredentialsEnabled: true
1819
oAuth2PasswordEnabled: false
1920
hoistGlobalSecurity: true
2021
schemas:
2122
allOfMergeStrategy: shallowMerge
2223
requestBodyFieldName: ""
24+
versioningStrategy: automatic
2325
persistentEdits: {}
2426
tests:
2527
generateTests: true
2628
generateNewTests: false
2729
skipResponseBodyAssertions: false
2830
python:
29-
version: 0.34.1
31+
version: 0.35.0
3032
additionalDependencies:
3133
dev: {}
3234
main: {}
@@ -75,3 +77,4 @@ python:
7577
responseFormat: flat
7678
sseFlatResponse: false
7779
templateVersion: v2
80+
useAsyncHooks: false

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.685.0
1+
speakeasyVersion: 1.703.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:ffa38913fd1ddb434ea4fdce5a9e4f7ac7e0eaecc392cfcfd91ac0b1afe8a92e
6-
sourceBlobDigest: sha256:12df286a54a2610dde44a634f34e6e8d05e77d70b5c92a97875dffe2f7200504
5+
sourceRevisionDigest: sha256:d8ae95a55b541cb49236124b0a2937ec98e71541718d25a65af8f406c5a7fa32
6+
sourceBlobDigest: sha256:08a457849422873da32f1a343ca1ef7e02a399624fed34ba45b8dffcb7bc9086
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1768350905
9+
- speakeasy-sdk-regen-1768437086
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:ffa38913fd1ddb434ea4fdce5a9e4f7ac7e0eaecc392cfcfd91ac0b1afe8a92e
16-
sourceBlobDigest: sha256:12df286a54a2610dde44a634f34e6e8d05e77d70b5c92a97875dffe2f7200504
15+
sourceRevisionDigest: sha256:d8ae95a55b541cb49236124b0a2937ec98e71541718d25a65af8f406c5a7fa32
16+
sourceBlobDigest: sha256:08a457849422873da32f1a343ca1ef7e02a399624fed34ba45b8dffcb7bc9086
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:372b8c53eb3837830888c25811fa3a070ee33ea4159b12d2b76af3d543b04953
18+
codeSamplesRevisionDigest: sha256:13b94300e1bafe53d924a56930905cc377b9cf709d71b8a529d885bfcb16e7e3
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ It's also possible to write a standalone Python script without needing to set up
8484
```python
8585
#!/usr/bin/env -S uv run --script
8686
# /// script
87-
# requires-python = ">=3.9"
87+
# requires-python = ">=3.10"
8888
# dependencies = [
8989
# "dub",
9090
# ]
@@ -325,6 +325,7 @@ asyncio.run(main())
325325
* [upsert_link](docs/sdks/partners/README.md#upsert_link) - Upsert a link for a partner
326326
* [analytics](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner
327327
* [ban](docs/sdks/partners/README.md#ban) - Ban a partner
328+
* [deactivate](docs/sdks/partners/README.md#deactivate) - Deactivate a partner
328329

329330
### [QRCodes](docs/sdks/qrcodes/README.md)
330331

@@ -342,11 +343,6 @@ asyncio.run(main())
342343
* [lead](docs/sdks/track/README.md#lead) - Track a lead
343344
* [sale](docs/sdks/track/README.md#sale) - Track a sale
344345

345-
### [Workspaces](docs/sdks/workspaces/README.md)
346-
347-
* [get](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
348-
* [update](docs/sdks/workspaces/README.md#update) - Update a workspace
349-
350346
</details>
351347
<!-- End Available Resources and Operations [operations] -->
352348

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,4 +1456,14 @@ Based on:
14561456
### Generated
14571457
- [python v0.34.1] .
14581458
### Releases
1459-
- [PyPI v0.34.1] https://pypi.org/project/dub/0.34.1 - .
1459+
- [PyPI v0.34.1] https://pypi.org/project/dub/0.34.1 - .
1460+
1461+
## 2026-02-04 22:06:12
1462+
### Changes
1463+
Based on:
1464+
- OpenAPI Doc
1465+
- Speakeasy CLI 1.703.0 (2.803.3) https://github.com/speakeasy-api/speakeasy
1466+
### Generated
1467+
- [python v0.35.0] .
1468+
### Releases
1469+
- [PyPI v0.35.0] https://pypi.org/project/dub/0.35.0 - .

codeSamples.yaml

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,23 @@ actions:
775775
776776
res = d_client.partners.ban()
777777
778+
# Handle response
779+
print(res)
780+
- target: $["paths"]["/partners/deactivate"]["post"]
781+
update:
782+
x-codeSamples:
783+
- lang: python
784+
label: deactivatePartner
785+
source: |-
786+
from dub import Dub
787+
788+
789+
with Dub(
790+
token="DUB_API_KEY",
791+
) as d_client:
792+
793+
res = d_client.partners.deactivate()
794+
778795
# Handle response
779796
print(res)
780797
- target: $["paths"]["/partners/links"]["get"]
@@ -1030,41 +1047,5 @@ actions:
10301047
"lead_event_name": "Cloned template 1481267",
10311048
})
10321049
1033-
# Handle response
1034-
print(res)
1035-
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
1036-
update:
1037-
x-codeSamples:
1038-
- lang: python
1039-
label: getWorkspace
1040-
source: |-
1041-
from dub import Dub
1042-
1043-
1044-
with Dub(
1045-
token="DUB_API_KEY",
1046-
) as d_client:
1047-
1048-
res = d_client.workspaces.get(request={
1049-
"id_or_slug": "<value>",
1050-
})
1051-
1052-
# Handle response
1053-
print(res)
1054-
- target: $["paths"]["/workspaces/{idOrSlug}"]["patch"]
1055-
update:
1056-
x-codeSamples:
1057-
- lang: python
1058-
label: updateWorkspace
1059-
source: |-
1060-
from dub import Dub
1061-
1062-
1063-
with Dub(
1064-
token="DUB_API_KEY",
1065-
) as d_client:
1066-
1067-
res = d_client.workspaces.update(id_or_slug="<value>")
1068-
10691050
# Handle response
10701051
print(res)

docs/models/components/commissioncreatedeventcustomer.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
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-
| `external_id` | *str* | :heavy_check_mark: | Unique identifier for the customer in the client's app. |
109
| `name` | *str* | :heavy_check_mark: | Name of the customer. |
1110
| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Email of the customer. |
1211
| `avatar` | *OptionalNullable[str]* | :heavy_minus_sign: | Avatar URL of the customer. |
12+
| `external_id` | *str* | :heavy_check_mark: | Unique identifier for the customer in the client's app. |
13+
| `stripe_customer_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The customer's Stripe customer ID. This is useful for attributing recurring sale events to the partner who referred the customer. |
1314
| `country` | *OptionalNullable[str]* | :heavy_minus_sign: | Country of the customer. |
1415
| `sales` | *OptionalNullable[float]* | :heavy_minus_sign: | Total number of sales for the customer. |
1516
| `sale_amount` | *OptionalNullable[float]* | :heavy_minus_sign: | Total amount of sales for the customer. |
16-
| `created_at` | *str* | :heavy_check_mark: | The date the customer was created. |
17+
| `created_at` | *str* | :heavy_check_mark: | The date the customer was created (usually the signup date or trial start date). |
18+
| `first_sale_at` | *OptionalNullable[str]* | :heavy_minus_sign: | The date the customer made their first sale. Useful for calculating the time to first sale and LTV. |
19+
| `subscription_canceled_at` | *OptionalNullable[str]* | :heavy_minus_sign: | The date the customer canceled their subscription. Useful for calculating LTV and churn rate. |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Constraints
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `max_length` | *Optional[int]* | :heavy_minus_sign: | N/A |
9+
| `pattern` | *Optional[str]* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)