Skip to content
Open
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
1,132 changes: 617 additions & 515 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 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.5
version: 0.35.6
additionalDependencies:
dev: {}
main: {}
Expand Down
13 changes: 6 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
speakeasyVersion: 1.728.0
speakeasyVersion: 1.761.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:f8da375124ffea8156bb04da0496d60d8a14e75146e2534fa31005772fecf75e
sourceBlobDigest: sha256:4182b72c2891ce5345ccdc87a9bb4ea8710bc8fea6b3683baa70fdfcc9565256
sourceRevisionDigest: sha256:1649e30f363aaeb0f009d167562d0b0838aea4350996a9ccfde19bd657d04f5b
sourceBlobDigest: sha256:043b795b3472a9f7ded92abdc636e8cefd89233873c717a6a13010a984fc1b5f
tags:
- latest
- speakeasy-sdk-regen-1771461763
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:f8da375124ffea8156bb04da0496d60d8a14e75146e2534fa31005772fecf75e
sourceBlobDigest: sha256:4182b72c2891ce5345ccdc87a9bb4ea8710bc8fea6b3683baa70fdfcc9565256
sourceRevisionDigest: sha256:1649e30f363aaeb0f009d167562d0b0838aea4350996a9ccfde19bd657d04f5b
sourceBlobDigest: sha256:043b795b3472a9f7ded92abdc636e8cefd89233873c717a6a13010a984fc1b5f
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:d753ec485bdf84e7b3b9ab9775cff8ba82dcea9c13dbb630b773011e8a60ff26
codeSamplesRevisionDigest: sha256:6d229767afc3289d2bab0d8578d7dc5619b70f36367bd1900d4456fe5b759620
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ asyncio.run(main())

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

### [Customers](docs/sdks/customers/README.md)

Expand Down Expand Up @@ -377,6 +378,9 @@ with Dub(
try:

res = d_client.links.list(request={
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"page": 1,
"page_size": 50,
})

Expand Down Expand Up @@ -444,6 +448,9 @@ with Dub(
) as d_client:

res = d_client.links.list(request={
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"page": 1,
"page_size": 50,
})

Expand Down Expand Up @@ -557,6 +564,9 @@ with Dub(
) as d_client:

res = d_client.links.list(request={
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"page": 1,
"page_size": 50,
})

Expand Down Expand Up @@ -584,6 +594,9 @@ with Dub(
) as d_client:

res = d_client.links.list(request={
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"page": 1,
"page_size": 50,
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
Expand All @@ -607,6 +620,9 @@ with Dub(
) as d_client:

res = d_client.links.list(request={
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"page": 1,
"page_size": 50,
})

Expand Down Expand Up @@ -635,6 +651,9 @@ with Dub(
) as d_client:

res = d_client.links.list(request={
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"page": 1,
"page_size": 50,
})

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

## 2026-04-02 00:43:10
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.761.0 (2.879.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.35.6] .
### Releases
- [PyPI v0.35.6] https://pypi.org/project/dub/0.35.6 - .
47 changes: 43 additions & 4 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ actions:

res = d_client.bounties.list_submissions(request={
"bounty_id": "<id>",
"page": 1,
"page_size": 50,
})

Expand Down Expand Up @@ -106,9 +107,31 @@ actions:
) as d_client:

res = d_client.commissions.list(request={
"ending_before": "cm_1KAP4CGN2Z5TPYYQ1W4JEYD56",
"starting_after": "cm_1KAP4CGN2Z5TPYYQ1W4JEYD56",
"page": 1,
"page_size": 50,
})

while res is not None:
# Handle items

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


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

res = d_client.commissions.update_many()

# Handle response
print(res)
- target: $["paths"]["/commissions/{id}"]["patch"]
Expand Down Expand Up @@ -144,11 +167,16 @@ actions:
) as d_client:

res = d_client.customers.list(request={
"ending_before": "cus_1KAP4CDPBSVMMBMH9XX3YZZ0Z",
"starting_after": "cus_1KAP4CDPBSVMMBMH9XX3YZZ0Z",
"page": 1,
"page_size": 50,
})

# Handle response
print(res)
while res is not None:
# Handle items

res = res.next()
- target: $["paths"]["/customers/{id}"]["delete"]
update:
x-codeSamples:
Expand Down Expand Up @@ -217,7 +245,9 @@ actions:
token="DUB_API_KEY",
) as d_client:

res = d_client.domains.list(request={})
res = d_client.domains.list(request={
"page": 1,
})

while res is not None:
# Handle items
Expand Down Expand Up @@ -362,7 +392,9 @@ actions:
token="DUB_API_KEY",
) as d_client:

res = d_client.folders.list(request={})
res = d_client.folders.list(request={
"page": 1,
})

# Handle response
print(res)
Expand Down Expand Up @@ -431,6 +463,9 @@ actions:
) as d_client:

res = d_client.links.list(request={
"ending_before": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"starting_after": "link_1KAP4CDPBSVMMBMH9XX3YZZ0Z...",
"page": 1,
"page_size": 50,
})

Expand Down Expand Up @@ -714,11 +749,13 @@ actions:
) as d_client:

res = d_client.partners.list(request={
"group_id": "grp_123",
"status": operations.ListPartnersQueryParamStatus.APPROVED,
"country": "US",
"email": "panic@thedis.co",
"tenant_id": "1K0NM7HCN944PEMZ3CQPH43H8",
"search": "john",
"page": 1,
"page_size": 50,
})

Expand Down Expand Up @@ -913,6 +950,7 @@ actions:
) as d_client:

res = d_client.payouts.list(request={
"page": 1,
"page_size": 50,
})

Expand Down Expand Up @@ -951,6 +989,7 @@ actions:
) as d_client:

res = d_client.tags.list(request={
"page": 1,
"page_size": 50,
})

Expand Down
8 changes: 8 additions & 0 deletions docs/models/components/accesslevel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

The access level of the folder within the workspace.

## Example Usage

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

value = AccessLevel.WRITE
```


## Values

Expand Down
8 changes: 8 additions & 0 deletions docs/models/components/analyticsregionscity.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# AnalyticsRegionsCity

## Example Usage

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

value = AnalyticsRegionsCity.WILDCARD_
```


## Values

Expand Down
12 changes: 12 additions & 0 deletions docs/models/components/application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Application

Linked program application, including review outcome when applicable.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `rejection_reason` | [Nullable[components.RejectionReason]](../../models/components/rejectionreason.md) | :heavy_check_mark: | Preset reason when the application was rejected. |
| `rejection_note` | *Nullable[str]* | :heavy_check_mark: | Free-form note when the application was rejected. |
| `reviewed_at` | *Nullable[str]* | :heavy_check_mark: | When the application was approved or rejected. |
8 changes: 8 additions & 0 deletions docs/models/components/bannedreason.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

If the partner was banned from the program, this is the reason for the ban.

## Example Usage

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

value = BannedReason.TOS_VIOLATION
```


## Values

Expand Down
8 changes: 8 additions & 0 deletions docs/models/components/city.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# City

## Example Usage

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

value = City.WILDCARD_
```


## Values

Expand Down
8 changes: 8 additions & 0 deletions docs/models/components/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

The error code.

## Example Usage

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

value = Code.BAD_REQUEST
```


## Values

Expand Down
8 changes: 8 additions & 0 deletions docs/models/components/color.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

The color of the tag.

## Example Usage

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

value = Color.RED
```


## Values

Expand Down
8 changes: 8 additions & 0 deletions docs/models/components/commissioncreatedeventevent.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CommissionCreatedEventEvent

## Example Usage

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

value = CommissionCreatedEventEvent.COMMISSION_CREATED
```


## Values

Expand Down
8 changes: 8 additions & 0 deletions docs/models/components/commissioncreatedeventstatus.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CommissionCreatedEventStatus

## Example Usage

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

value = CommissionCreatedEventStatus.PENDING
```


## Values

Expand Down
8 changes: 8 additions & 0 deletions docs/models/components/commissioncreatedeventtype.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CommissionCreatedEventType

## Example Usage

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

value = CommissionCreatedEventType.CLICK
```


## Values

Expand Down
Loading