Skip to content

Commit 87a67bf

Browse files
authored
Merge pull request #140 from dubinc/speakeasy-sdk-regen-1752712369
chore: 🐝 Update SDK - Generate 0.27.2
2 parents 218515a + 13a1284 commit 87a67bf

Some content is hidden

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

59 files changed

+2656
-294
lines changed

.speakeasy/gen.lock

Lines changed: 67 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: ab657d60-207e-43a4-8cc8-692a672950ed
33
management:
4-
docChecksum: aa92a2d401a7d3e37140aef2558f04b3
4+
docChecksum: 494d7ee95fc8861b5282eb69a2752b95
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.580.2
7-
generationVersion: 2.656.5
8-
releaseVersion: 0.27.1
9-
configChecksum: ab7c9f9992df74d0fe2b94d441526f06
6+
speakeasyVersion: 1.587.1
7+
generationVersion: 2.662.0
8+
releaseVersion: 0.27.2
9+
configChecksum: 637dd0bc1bd11dddf449f17ba2c3e180
1010
repoURL: https://github.com/dubinc/dub-python.git
1111
installationURL: https://github.com/dubinc/dub-python.git
1212
published: true
@@ -54,13 +54,20 @@ generatedFiles:
5454
- docs/models/components/analyticstoplinks.md
5555
- docs/models/components/analyticstopurls.md
5656
- docs/models/components/analyticstriggers.md
57+
- docs/models/components/bannedreason.md
5758
- docs/models/components/city.md
5859
- docs/models/components/click.md
5960
- docs/models/components/clickevent.md
6061
- docs/models/components/clickeventgeo.md
6162
- docs/models/components/clickeventtestvariants.md
6263
- docs/models/components/code.md
6364
- docs/models/components/color.md
65+
- docs/models/components/commissioncreatedevent.md
66+
- docs/models/components/commissioncreatedeventcustomer.md
67+
- docs/models/components/commissioncreatedeventdata.md
68+
- docs/models/components/commissioncreatedeventevent.md
69+
- docs/models/components/commissioncreatedeventstatus.md
70+
- docs/models/components/commissioncreatedeventtype.md
6471
- docs/models/components/continent.md
6572
- docs/models/components/continentcode.md
6673
- docs/models/components/countrycode.md
@@ -101,6 +108,7 @@ generatedFiles:
101108
- docs/models/components/linkwebhookeventlink.md
102109
- docs/models/components/linkwebhookeventtestvariants.md
103110
- docs/models/components/one.md
111+
- docs/models/components/partner.md
104112
- docs/models/components/partneranalyticscount.md
105113
- docs/models/components/partneranalyticstimeseries.md
106114
- docs/models/components/partneranalyticstoplinks.md
@@ -169,6 +177,7 @@ generatedFiles:
169177
- docs/models/errors/unprocessableentitycode.md
170178
- docs/models/errors/unprocessableentityerror.md
171179
- docs/models/operations/accesslevel.md
180+
- docs/models/operations/bannedreason.md
172181
- docs/models/operations/bulkcreatelinkstagids.md
173182
- docs/models/operations/bulkcreatelinkstagnames.md
174183
- docs/models/operations/bulkcreatelinkstestvariants.md
@@ -258,6 +267,8 @@ generatedFiles:
258267
- docs/models/operations/level.md
259268
- docs/models/operations/link.md
260269
- docs/models/operations/linkprops.md
270+
- docs/models/operations/listcommissionscustomer.md
271+
- docs/models/operations/listcommissionspartner.md
261272
- docs/models/operations/listcommissionsqueryparaminterval.md
262273
- docs/models/operations/listcommissionsqueryparamsortby.md
263274
- docs/models/operations/listcommissionsqueryparamsortorder.md
@@ -271,6 +282,14 @@ generatedFiles:
271282
- docs/models/operations/listeventsrequest.md
272283
- docs/models/operations/listeventsresponsebody.md
273284
- docs/models/operations/listfoldersrequest.md
285+
- docs/models/operations/listpartnersbannedreason.md
286+
- docs/models/operations/listpartnerslink.md
287+
- docs/models/operations/listpartnersqueryparamsortby.md
288+
- docs/models/operations/listpartnersqueryparamsortorder.md
289+
- docs/models/operations/listpartnersqueryparamstatus.md
290+
- docs/models/operations/listpartnersrequest.md
291+
- docs/models/operations/listpartnersresponsebody.md
292+
- docs/models/operations/listpartnersstatus.md
274293
- docs/models/operations/mode.md
275294
- docs/models/operations/one.md
276295
- docs/models/operations/order.md
@@ -279,6 +298,7 @@ generatedFiles:
279298
- docs/models/operations/queryparamevent.md
280299
- docs/models/operations/queryparamgroupby.md
281300
- docs/models/operations/queryparaminterval.md
301+
- docs/models/operations/queryparamsaletype.md
282302
- docs/models/operations/queryparamsortby.md
283303
- docs/models/operations/queryparamsortorder.md
284304
- docs/models/operations/queryparamstatus.md
@@ -298,6 +318,7 @@ generatedFiles:
298318
- docs/models/operations/retrievepartneranalyticsrequest.md
299319
- docs/models/operations/retrievepartneranalyticsresponsebody.md
300320
- docs/models/operations/sale.md
321+
- docs/models/operations/saletype.md
301322
- docs/models/operations/sort.md
302323
- docs/models/operations/sortby.md
303324
- docs/models/operations/sortorder.md
@@ -314,6 +335,8 @@ generatedFiles:
314335
- docs/models/operations/trigger.md
315336
- docs/models/operations/two.md
316337
- docs/models/operations/type.md
338+
- docs/models/operations/updatecommissioncustomer.md
339+
- docs/models/operations/updatecommissionpartner.md
317340
- docs/models/operations/updatecommissionrequest.md
318341
- docs/models/operations/updatecommissionrequestbody.md
319342
- docs/models/operations/updatecommissionresponsebody.md
@@ -403,6 +426,7 @@ generatedFiles:
403426
- src/dub/models/components/analyticstopurls.py
404427
- src/dub/models/components/analyticstriggers.py
405428
- src/dub/models/components/clickevent.py
429+
- src/dub/models/components/commissioncreatedevent.py
406430
- src/dub/models/components/continentcode.py
407431
- src/dub/models/components/countrycode.py
408432
- src/dub/models/components/domainschema.py
@@ -468,6 +492,7 @@ generatedFiles:
468492
- src/dub/models/operations/listdomains.py
469493
- src/dub/models/operations/listevents.py
470494
- src/dub/models/operations/listfolders.py
495+
- src/dub/models/operations/listpartners.py
471496
- src/dub/models/operations/registerdomain.py
472497
- src/dub/models/operations/retrieveanalytics.py
473498
- src/dub/models/operations/retrievelinks.py
@@ -1350,7 +1375,7 @@ examples:
13501375
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}]}}
13511376
responses:
13521377
"201":
1353-
application/json: {"id": "<id>", "name": "<value>", "email": "[email protected]", "image": "https://loremflickr.com/2599/3934?lock=3607054824535492", "country": "Equatorial Guinea", "website": "<value>", "youtube": "<value>", "twitter": "<value>", "linkedin": "<value>", "instagram": "<value>", "tiktok": "<value>", "paypalEmail": "<value>", "stripeConnectId": "<id>", "payoutsEnabledAt": "<value>", "createdAt": "1736363459872", "status": "banned", "programId": "<id>", "tenantId": "<id>", "links": [], "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0, "totalCommissions": 0, "netRevenue": 0, "earnings": 0}
1378+
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>", "partnerId": "<id>", "tenantId": "<id>", "programId": "<id>", "createdAt": "1736363459872", "status": "banned", "links": [], "totalCommissions": 0, "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0, "netRevenue": 0}
13541379
"400":
13551380
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
13561381
"401":
@@ -1617,7 +1642,7 @@ examples:
16171642
pageSize: 50
16181643
responses:
16191644
"200":
1620-
application/json: [{"id": "cm_1JVR7XRCSR0EDBAF39FZ4PMYE", "amount": 3320.11, "earnings": 7217.59, "currency": "Ethiopian Birr", "status": "refunded", "createdAt": "1725904231169", "updatedAt": "1735639009138"}, {"id": "cm_1JVR7XRCSR0EDBAF39FZ4PMYE", "amount": 3320.11, "earnings": 7217.59, "currency": "Ethiopian Birr", "status": "refunded", "createdAt": "1725904231169", "updatedAt": "1735639009138"}]
1645+
application/json: [{"id": "cm_1JVR7XRCSR0EDBAF39FZ4PMYE", "amount": 3320.11, "earnings": 7217.59, "currency": "Ethiopian Birr", "status": "refunded", "invoiceId": "<id>", "description": "entire apud whereas maintainer or impressionable beyond mindless", "quantity": 9385.84, "createdAt": "1725904231169", "updatedAt": "1735639009138", "partner": {"id": "<id>", "name": "<value>", "email": "[email protected]", "image": "https://picsum.photos/seed/Iy5IMeaTL/492/441", "payoutsEnabledAt": "<value>", "country": "Greenland"}}, {"id": "cm_1JVR7XRCSR0EDBAF39FZ4PMYE", "amount": 3320.11, "earnings": 7217.59, "currency": "Ethiopian Birr", "status": "refunded", "invoiceId": "<id>", "description": null, "quantity": 4998.11, "createdAt": "1725904231169", "updatedAt": "1735639009138", "partner": {"id": "<id>", "name": "<value>", "email": "[email protected]", "image": "https://picsum.photos/seed/Iy5IMeaTL/492/441", "payoutsEnabledAt": "<value>", "country": "Greenland"}}]
16211646
"400":
16221647
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
16231648
"401":
@@ -1643,7 +1668,7 @@ examples:
16431668
id: "cm_1JVR7XRCSR0EDBAF39FZ4PMYE"
16441669
responses:
16451670
"200":
1646-
application/json: {"id": "cm_1JVR7XRCSR0EDBAF39FZ4PMYE", "amount": 7439.54, "earnings": 3399.15, "currency": "Gourde", "status": "processed", "createdAt": "1712704982111", "updatedAt": "1735651406534"}
1671+
application/json: {"id": "cm_1JVR7XRCSR0EDBAF39FZ4PMYE", "amount": 7439.54, "earnings": 3399.15, "currency": "Gourde", "status": "processed", "invoiceId": "<id>", "description": "ferret heavily depot per briefly", "quantity": 4142.74, "createdAt": "1712704982111", "updatedAt": "1735651406534", "partner": {"id": "<id>", "name": "<value>", "email": "[email protected]", "image": "https://picsum.photos/seed/341QLpYt/2312/3915", "payoutsEnabledAt": null, "country": "Algeria"}}
16471672
"400":
16481673
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
16491674
"401":
@@ -1713,5 +1738,39 @@ examples:
17131738
application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}
17141739
"500":
17151740
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"}}
1741+
listPartners:
1742+
speakeasy-default-list-partners:
1743+
parameters:
1744+
query:
1745+
status: "approved"
1746+
country: "US"
1747+
sortBy: "saleAmount"
1748+
sortOrder: "desc"
1749+
tenantId: "1K0NM7HCN944PEMZ3CQPH43H8"
1750+
includeExpandedFields: false
1751+
search: "john"
1752+
page: 1
1753+
pageSize: 50
1754+
responses:
1755+
"200":
1756+
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>", "partnerId": "<id>", "tenantId": "<id>", "programId": "<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, "sales": 0, "saleAmount": 0, "netRevenue": 0}]
1757+
"400":
1758+
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
1759+
"401":
1760+
application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}}
1761+
"403":
1762+
application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}}
1763+
"404":
1764+
application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}}
1765+
"409":
1766+
application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}}
1767+
"410":
1768+
application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}}
1769+
"422":
1770+
application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}}
1771+
"429":
1772+
application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}
1773+
"500":
1774+
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"}}
17161775
examplesVersion: 1.0.2
17171776
generatedTests: {}

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
python:
24-
version: 0.27.1
24+
version: 0.27.2
2525
additionalDependencies:
2626
dev: {}
2727
main: {}

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.580.2
1+
speakeasyVersion: 1.587.1
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:e7f4e17907e0eaaa383aef6bcb71af6a69e09bf2a20fdd41fe35a1932cd1bf43
6-
sourceBlobDigest: sha256:80d4d3dbbe11c2c0bf1df3c12bd9a9b8199992151de041d30bc6a81aca7b32f6
5+
sourceRevisionDigest: sha256:27d054cd906139cf82066ec3feb211fd93ab580c415df734c32fa94aa2ff74bd
6+
sourceBlobDigest: sha256:95e59ab6119ff46333f1182e455173407322c41e1f7b39044d06e708ee30a0c2
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1752180429
9+
- speakeasy-sdk-regen-1752712369
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:e7f4e17907e0eaaa383aef6bcb71af6a69e09bf2a20fdd41fe35a1932cd1bf43
16-
sourceBlobDigest: sha256:80d4d3dbbe11c2c0bf1df3c12bd9a9b8199992151de041d30bc6a81aca7b32f6
15+
sourceRevisionDigest: sha256:27d054cd906139cf82066ec3feb211fd93ab580c415df734c32fa94aa2ff74bd
16+
sourceBlobDigest: sha256:95e59ab6119ff46333f1182e455173407322c41e1f7b39044d06e708ee30a0c2
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:f9c0791e77723b05d8b12a6f6ce1936a43fdfa2b22a917cf61be3cf3684b8bf7
18+
codeSamplesRevisionDigest: sha256:d0292250a106fedda4da9271ce1a31fceb922bb9472ba90cc71dc22dbc8b3ca4
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ asyncio.run(main())
313313
### [partners](docs/sdks/partners/README.md)
314314

315315
* [create](docs/sdks/partners/README.md#create) - Create a partner
316+
* [list](docs/sdks/partners/README.md#list) - List all partners
316317
* [create_link](docs/sdks/partners/README.md#create_link) - Create a link for a partner
317318
* [retrieve_links](docs/sdks/partners/README.md#retrieve_links) - Retrieve a partner's links.
318319
* [upsert_link](docs/sdks/partners/README.md#upsert_link) - Upsert a link for a partner

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,4 +1306,14 @@ Based on:
13061306
### Generated
13071307
- [python v0.27.1] .
13081308
### Releases
1309-
- [PyPI v0.27.1] https://pypi.org/project/dub/0.27.1 - .
1309+
- [PyPI v0.27.1] https://pypi.org/project/dub/0.27.1 - .
1310+
1311+
## 2025-07-24 00:42:49
1312+
### Changes
1313+
Based on:
1314+
- OpenAPI Doc
1315+
- Speakeasy CLI 1.587.1 (2.662.0) https://github.com/speakeasy-api/speakeasy
1316+
### Generated
1317+
- [python v0.27.2] .
1318+
### Releases
1319+
- [PyPI v0.27.2] https://pypi.org/project/dub/0.27.2 - .

codeSamples.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,33 @@ actions:
673673
674674
assert res is not None
675675
676+
# Handle response
677+
print(res)
678+
- target: $["paths"]["/partners"]["get"]
679+
update:
680+
x-codeSamples:
681+
- lang: python
682+
label: listPartners
683+
source: |-
684+
from dub import Dub
685+
from dub.models import operations
686+
687+
688+
with Dub(
689+
token="DUB_API_KEY",
690+
) as d_client:
691+
692+
res = d_client.partners.list(request={
693+
"status": operations.ListPartnersQueryParamStatus.APPROVED,
694+
"country": "US",
695+
"tenant_id": "1K0NM7HCN944PEMZ3CQPH43H8",
696+
"include_expanded_fields": False,
697+
"search": "john",
698+
"page_size": 50,
699+
})
700+
701+
assert res is not None
702+
676703
# Handle response
677704
print(res)
678705
- target: $["paths"]["/partners"]["post"]
@@ -1005,7 +1032,7 @@ actions:
10051032
"customer_external_id": "<id>",
10061033
"amount": 594903,
10071034
"event_name": "Invoice paid",
1008-
"payment_processor": operations.PaymentProcessor.POLAR,
1035+
"payment_processor": operations.PaymentProcessor.PADDLE,
10091036
"lead_event_name": "Cloned template 1481267",
10101037
})
10111038
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# BannedReason
2+
3+
If the partner was banned from the program, this is the reason for the ban.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ----------------------- | ----------------------- |
10+
| `TOS_VIOLATION` | tos_violation |
11+
| `INAPPROPRIATE_CONTENT` | inappropriate_content |
12+
| `FAKE_TRAFFIC` | fake_traffic |
13+
| `FRAUD` | fraud |
14+
| `SPAM` | spam |
15+
| `BRAND_ABUSE` | brand_abuse |

0 commit comments

Comments
 (0)