Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
553 changes: 353 additions & 200 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 0.35.7
version: 0.36.0
additionalDependencies:
dev: {}
main: {}
Expand All @@ -41,6 +41,7 @@ python:
authors:
- Speakeasy
baseErrorName: DubError
bodyVariantOverloads: false
clientServerStatusCodesAsErrors: true
constFieldCasing: upper
defaultErrorName: SDKError
Expand Down Expand Up @@ -70,15 +71,19 @@ python:
license: ""
maxMethodParams: 0
methodArguments: require-security-and-request
methodTimeoutArgument: timeout-ms
methodTimeoutUnits: milliseconds
moduleName: ""
multipartArrayFormat: legacy
optionalDependencies: {}
outputModelSuffix: output
packageManager: poetry
packageName: dub
preApplyUnionDiscriminators: false
projectUrls: {}
pytestFilterWarnings: []
pytestTimeout: 0
rawResponseHelpers: false
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.761.9
speakeasyVersion: 1.771.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:d86df3c9bd604448c34853ed39872f00710adf94a49e28edb6969c2e69b3bcaf
sourceBlobDigest: sha256:e9f74dc104cf7ecd005a5bb81c2895fb57fc66b4781fea1c72750b7a3e1793b3
sourceRevisionDigest: sha256:557be3aa4eb9a9733783892f8c47283a777a2d49426bc87f1c32c31044223a25
sourceBlobDigest: sha256:0eb6ac0b51c3eb36d0776e8608e9fd8c0ff44908d0e05c2d96af3b82bd7d2de1
tags:
- latest
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:d86df3c9bd604448c34853ed39872f00710adf94a49e28edb6969c2e69b3bcaf
sourceBlobDigest: sha256:e9f74dc104cf7ecd005a5bb81c2895fb57fc66b4781fea1c72750b7a3e1793b3
sourceRevisionDigest: sha256:557be3aa4eb9a9733783892f8c47283a777a2d49426bc87f1c32c31044223a25
sourceBlobDigest: sha256:0eb6ac0b51c3eb36d0776e8608e9fd8c0ff44908d0e05c2d96af3b82bd7d2de1
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:0632b8446052d67e5b3081429d995751095c4553926d6ff4cc3ac86de32565d9
codeSamplesRevisionDigest: sha256:190ae94588823363d5d2a9230c9082573e5328e83cfead46121b0c799f4f3bc5
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ asyncio.run(main())
### [Commissions](docs/sdks/commissions/README.md)

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

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1536,4 +1536,14 @@ Based on:
### Generated
- [python v0.35.7] .
### Releases
- [PyPI v0.35.7] https://pypi.org/project/dub/0.35.7 - .
- [PyPI v0.35.7] https://pypi.org/project/dub/0.35.7 - .

## 2026-06-05 16:00:14
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.771.0 (2.893.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.36.0] .
### Releases
- [PyPI v0.36.0] https://pypi.org/project/dub/0.36.0 - .
23 changes: 20 additions & 3 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,23 @@ actions:
# Handle items

res = res.next()
- target: $["paths"]["/commissions"]["post"]
update:
x-codeSamples:
- lang: python
label: createCommission
source: |-
from dub import Dub


with Dub(
token="DUB_API_KEY",
) as d_client:

res = d_client.commissions.create()

# Handle response
print(res)
- target: $["paths"]["/commissions/bulk"]["patch"]
update:
x-codeSamples:
Expand Down Expand Up @@ -842,7 +859,7 @@ actions:
update:
x-codeSamples:
- lang: python
label: approvePartner
label: approvePartnerApplication
source: |-
from dub import Dub

Expand All @@ -861,7 +878,7 @@ actions:
update:
x-codeSamples:
- lang: python
label: rejectPartner
label: rejectPartnerApplication
source: |-
from dub import Dub

Expand Down Expand Up @@ -914,7 +931,7 @@ actions:
update:
x-codeSamples:
- lang: python
label: retrieveLinks
label: retrievePartnerLinks
source: |-
from dub import Dub

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/commissioncreatedeventcustomer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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`). |
| `name` | *str* | :heavy_check_mark: | Name of the customer. |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the customer. |
| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Email of the customer. |
| `avatar` | *OptionalNullable[str]* | :heavy_minus_sign: | Avatar URL of the customer. |
| `external_id` | *str* | :heavy_check_mark: | Unique identifier for the customer in the client's app. |
Expand Down
13 changes: 7 additions & 6 deletions docs/models/components/commissioncreatedeventtype.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ value = CommissionCreatedEventType.CLICK

## Values

| Name | Value |
| -------- | -------- |
| `CLICK` | click |
| `LEAD` | lead |
| `SALE` | sale |
| `CUSTOM` | custom |
| Name | Value |
| ---------- | ---------- |
| `CLICK` | click |
| `LEAD` | lead |
| `SALE` | sale |
| `REFERRAL` | referral |
| `CUSTOM` | custom |
2 changes: 1 addition & 1 deletion docs/models/components/customer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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`). |
| `name` | *str* | :heavy_check_mark: | Name of the customer. |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name of the customer. |
| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Email of the customer. |
| `avatar` | *OptionalNullable[str]* | :heavy_minus_sign: | Avatar URL of the customer. |
| `external_id` | *str* | :heavy_check_mark: | Unique identifier for the customer in the client's app. |
Expand Down
22 changes: 22 additions & 0 deletions docs/models/components/networkstatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# NetworkStatus

The partner's network status on Dub.

## Example Usage

```python
from dub.models.components import NetworkStatus

value = NetworkStatus.DRAFT
```


## Values

| Name | Value |
| ----------- | ----------- |
| `DRAFT` | draft |
| `SUBMITTED` | submitted |
| `APPROVED` | approved |
| `REJECTED` | rejected |
| `TRUSTED` | trusted |
Loading