Skip to content

Commit ad94669

Browse files
authored
Merge pull request #114 from dubinc/speakeasy-sdk-regen-1743294659
chore: 🐝 Update SDK - Generate 0.19.15
2 parents feb3478 + c08cce7 commit ad94669

14 files changed

Lines changed: 535 additions & 16 deletions

File tree

.speakeasy/gen.lock

Lines changed: 33 additions & 4 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: 9db2f1f9a0f7dcfb020e939d2e1d1329
4+
docChecksum: 12254a1ce8d2ea89fb717ed2af2fd5d1
55
docVersion: 0.0.1
66
speakeasyVersion: 1.526.0
77
generationVersion: 2.563.0
8-
releaseVersion: 0.19.14
9-
configChecksum: 1892bdd3b66167e6f5ba55bf5c938483
8+
releaseVersion: 0.19.15
9+
configChecksum: 927039763ac2ae7b03b2093623392134
1010
repoURL: https://github.com/dubinc/dub-python.git
1111
installationURL: https://github.com/dubinc/dub-python.git
1212
published: true
@@ -268,6 +268,8 @@ generatedFiles:
268268
- docs/models/operations/retrieveanalyticsqueryparamtagids.md
269269
- docs/models/operations/retrieveanalyticsrequest.md
270270
- docs/models/operations/retrieveanalyticsresponsebody.md
271+
- docs/models/operations/retrievelinksrequest.md
272+
- docs/models/operations/retrievelinksresponsebody.md
271273
- docs/models/operations/retrievepartneranalyticsqueryparamgroupby.md
272274
- docs/models/operations/retrievepartneranalyticsqueryparaminterval.md
273275
- docs/models/operations/retrievepartneranalyticsrequest.md
@@ -434,6 +436,7 @@ generatedFiles:
434436
- src/dub/models/operations/listevents.py
435437
- src/dub/models/operations/listfolders.py
436438
- src/dub/models/operations/retrieveanalytics.py
439+
- src/dub/models/operations/retrievelinks.py
437440
- src/dub/models/operations/retrievepartneranalytics.py
438441
- src/dub/models/operations/tracklead.py
439442
- src/dub/models/operations/tracksale.py
@@ -790,7 +793,7 @@ examples:
790793
sortBy: "timestamp"
791794
responses:
792795
"200":
793-
application/json: [{"event": "sale", "eventId": "<id>", "eventName": "<value>", "link": {"id": "<id>", "domain": "remorseful-concentration.biz", "key": "<key>", "url": "https://primary-paintwork.com/", "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "expiresAt": "1765860498112", "expiredUrl": "https://black-poetry.name/", "password": "COyVtOrvIw1vLIJ", "title": "<value>", "description": "despite er boom however when uh-huh", "image": "https://picsum.photos/seed/T1tZJLp1EG/3827/3109", "video": "https://loremflickr.com/2420/1632?lock=7470650813503352", "ios": "<value>", "android": "<id>", "geo": {}, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "green"}], "folderId": "<id>", "webhookIds": [], "comments": "tenement commonly softly boo massive sorrowful", "shortLink": "https://dense-custom.info/", "qrCode": "https://alive-lid.biz", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 0, "lastClicked": "<value>", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1731273309663", "updatedAt": "1743146937662", "projectId": "<id>"}, "click": {"id": "<id>", "timestamp": "<value>", "url": "https://utilized-quit.net/", "country": "Togo", "city": "Cormiermouth", "region": "<value>", "continent": "North America", "device": "Mobile", "browser": "Chrome", "os": "Chrome OS", "referer": "gummy-cope.net", "refererUrl": "https://prickly-bourgeoisie.info/", "ip": "69bd:53cd:cebc:ac4b:d1e8:50e8:ee59:b0b3"}, "customer": {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "1742028854121"}, "sale": {"amount": 625809, "invoiceId": null, "paymentProcessor": "stripe"}, "saleAmount": 1401.42, "invoice_id": "<id>", "payment_processor": "<value>", "click_id": "<id>", "link_id": "<id>", "domain": "unruly-allegation.name", "key": "<key>", "url": "https://fortunate-swim.info/", "continent": "Australia", "country": "Cook Islands", "city": "South Harryburgh", "device": "Mobile", "browser": "Safari", "os": "WebOS", "qr": 1523.03, "ip": "caf5:04dc:da9e:67cc:af3b:8caf:afbe:e39c"}, {"event": "sale", "eventId": "<id>", "eventName": "<value>", "link": {"id": "<id>", "domain": "right-window.biz", "key": "<key>", "url": "https://physical-experience.org/", "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "expiresAt": "1754551851703", "expiredUrl": "https://indelible-birdbath.net", "password": "4yMlkCXkK5ppW3u", "title": "<value>", "description": "terribly gosh facilitate in", "image": "https://loremflickr.com/2596/954?lock=8527955982122580", "video": "https://loremflickr.com/3336/742?lock=2177640289466521", "ios": "<value>", "android": "<id>", "geo": {}, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "red"}, {"id": "<id>", "name": "<value>", "color": "pink"}, {"id": "<id>", "name": "<value>", "color": "pink"}], "folderId": "<id>", "webhookIds": ["<value>", "<value>", "<value>"], "comments": "up so pro pish clear-cut an mid aw disconnection which wetly typeface usable underneath putrefy ah aha", "shortLink": "https://knowledgeable-season.info", "qrCode": "https://nimble-individual.biz/", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 0, "lastClicked": "<value>", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1741767575405", "updatedAt": "1743152658869", "projectId": "<id>"}, "click": {"id": "<id>", "timestamp": "<value>", "url": "https://perfumed-marketplace.com/", "country": "Burundi", "city": "Stockton", "region": "<value>", "continent": "Asia", "device": "Desktop", "browser": "Chrome", "os": "Symbian", "referer": "well-off-hygienic.org", "refererUrl": "https://ripe-ceramic.org", "ip": "eebc:cce9:cecf:ebeb:dfd9:15f2:a0cc:a3b1"}, "customer": {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "1726128520227"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "custom"}, "saleAmount": 2634.98, "invoice_id": "<id>", "payment_processor": "<value>", "click_id": "<id>", "link_id": "<id>", "domain": "next-cricket.biz", "key": "<key>", "url": "https://repentant-rust.name/", "continent": "Australia", "country": "Saint Helena", "city": "Luettgenfort", "device": "Mobile", "browser": "Safari", "os": "Chrome OS", "qr": 4390.32, "ip": "54.229.114.129"}]
796+
application/json: [{"event": "sale", "eventId": "<id>", "eventName": "<value>", "link": {"id": "<id>", "domain": "remorseful-concentration.biz", "key": "<key>", "url": "https://primary-paintwork.com/", "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "expiresAt": "1765947082849", "expiredUrl": "https://black-poetry.name/", "password": "COyVtOrvIw1vLIJ", "title": "<value>", "description": "despite er boom however when uh-huh", "image": "https://picsum.photos/seed/T1tZJLp1EG/3827/3109", "video": "https://loremflickr.com/2420/1632?lock=7470650813503352", "ios": "<value>", "android": "<id>", "geo": {}, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "green"}], "folderId": "<id>", "webhookIds": [], "comments": "tenement commonly softly boo massive sorrowful", "shortLink": "https://dense-custom.info/", "qrCode": "https://alive-lid.biz", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 0, "lastClicked": "<value>", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1731359894399", "updatedAt": "1743233522398", "projectId": "<id>"}, "click": {"id": "<id>", "timestamp": "<value>", "url": "https://utilized-quit.net/", "country": "Togo", "city": "Cormiermouth", "region": "<value>", "continent": "North America", "device": "Mobile", "browser": "Chrome", "os": "Chrome OS", "referer": "gummy-cope.net", "refererUrl": "https://prickly-bourgeoisie.info/", "ip": "69bd:53cd:cebc:ac4b:d1e8:50e8:ee59:b0b3"}, "customer": {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "1742115438857"}, "sale": {"amount": 625809, "invoiceId": null, "paymentProcessor": "stripe"}, "saleAmount": 1401.42, "invoice_id": "<id>", "payment_processor": "<value>", "click_id": "<id>", "link_id": "<id>", "domain": "unruly-allegation.name", "key": "<key>", "url": "https://fortunate-swim.info/", "continent": "Australia", "country": "Cook Islands", "city": "South Harryburgh", "device": "Mobile", "browser": "Safari", "os": "WebOS", "qr": 1523.03, "ip": "caf5:04dc:da9e:67cc:af3b:8caf:afbe:e39c"}, {"event": "sale", "eventId": "<id>", "eventName": "<value>", "link": {"id": "<id>", "domain": "right-window.biz", "key": "<key>", "url": "https://physical-experience.org/", "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "expiresAt": "1754638436439", "expiredUrl": "https://indelible-birdbath.net", "password": "4yMlkCXkK5ppW3u", "title": "<value>", "description": "terribly gosh facilitate in", "image": "https://loremflickr.com/2596/954?lock=8527955982122580", "video": "https://loremflickr.com/3336/742?lock=2177640289466521", "ios": "<value>", "android": "<id>", "geo": {}, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "red"}, {"id": "<id>", "name": "<value>", "color": "pink"}, {"id": "<id>", "name": "<value>", "color": "pink"}], "folderId": "<id>", "webhookIds": ["<value>", "<value>", "<value>"], "comments": "up so pro pish clear-cut an mid aw disconnection which wetly typeface usable underneath putrefy ah aha", "shortLink": "https://knowledgeable-season.info", "qrCode": "https://nimble-individual.biz/", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 0, "lastClicked": "<value>", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1741854160141", "updatedAt": "1743239243605", "projectId": "<id>"}, "click": {"id": "<id>", "timestamp": "<value>", "url": "https://perfumed-marketplace.com/", "country": "Burundi", "city": "Stockton", "region": "<value>", "continent": "Asia", "device": "Desktop", "browser": "Chrome", "os": "Symbian", "referer": "well-off-hygienic.org", "refererUrl": "https://ripe-ceramic.org", "ip": "eebc:cce9:cecf:ebeb:dfd9:15f2:a0cc:a3b1"}, "customer": {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "1726215104964"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "custom"}, "saleAmount": 2634.98, "invoice_id": "<id>", "payment_processor": "<value>", "click_id": "<id>", "link_id": "<id>", "domain": "next-cricket.biz", "key": "<key>", "url": "https://repentant-rust.name/", "continent": "Australia", "country": "Saint Helena", "city": "Luettgenfort", "device": "Mobile", "browser": "Safari", "os": "Chrome OS", "qr": 4390.32, "ip": "54.229.114.129"}]
794797
"400":
795798
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
796799
"401":
@@ -1565,5 +1568,31 @@ examples:
15651568
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"}}
15661569
"500":
15671570
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"}}
1571+
retrieveLinks:
1572+
speakeasy-default-retrieve-links:
1573+
parameters:
1574+
query:
1575+
programId: "<id>"
1576+
responses:
1577+
"200":
1578+
application/json: [{"id": "<id>", "domain": "deafening-jury.net", "key": "<key>", "shortLink": "https://negligible-presume.net/", "url": "https://smart-fax.org", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}, {"id": "<id>", "domain": "cavernous-sediment.com", "key": "<key>", "shortLink": "https://outgoing-ad.com", "url": "https://everlasting-provision.biz/", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0}]
1579+
"400":
1580+
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
1581+
"401":
1582+
application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}}
1583+
"403":
1584+
application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}}
1585+
"404":
1586+
application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}}
1587+
"409":
1588+
application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}}
1589+
"410":
1590+
application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}}
1591+
"422":
1592+
application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}}
1593+
"429":
1594+
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"}}
1595+
"500":
1596+
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"}}
15681597
examplesVersion: 1.0.0
15691598
generatedTests: {}

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
oAuth2ClientCredentialsEnabled: true
1616
oAuth2PasswordEnabled: false
1717
python:
18-
version: 0.19.14
18+
version: 0.19.15
1919
additionalDependencies:
2020
dev: {}
2121
main: {}

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.526.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:d7e9c231a11a3fefb12ded715ee9230c276faa2f79b604defc8ae2eb591ee2fc
6-
sourceBlobDigest: sha256:f096bcdf8ed7f9245a7d289caaf7855d76d1c20a7c4f06e9bdee1f26fb56bc13
5+
sourceRevisionDigest: sha256:df7c9f2086d77b0fbd499afdb651d90b3e5ba097a9dd1f8b5e33205eaebadc35
6+
sourceBlobDigest: sha256:376f89bed1b833c730597daaf4e76547fd5982e76aeab4c55c237cf50888aed0
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1743208072
9+
- speakeasy-sdk-regen-1743294659
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:d7e9c231a11a3fefb12ded715ee9230c276faa2f79b604defc8ae2eb591ee2fc
16-
sourceBlobDigest: sha256:f096bcdf8ed7f9245a7d289caaf7855d76d1c20a7c4f06e9bdee1f26fb56bc13
15+
sourceRevisionDigest: sha256:df7c9f2086d77b0fbd499afdb651d90b3e5ba097a9dd1f8b5e33205eaebadc35
16+
sourceBlobDigest: sha256:376f89bed1b833c730597daaf4e76547fd5982e76aeab4c55c237cf50888aed0
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:f010c76fd1aff6bdb483a225366e9504b314330a5c704743570b384d4a44a2a3
18+
codeSamplesRevisionDigest: sha256:5e4960a85d252c0a8dee2230c20db9ee49481a184b3b10532c54d3b261c0a8ee
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
@@ -271,6 +271,7 @@ asyncio.run(main())
271271

272272
* [create](docs/sdks/partners/README.md#create) - Create a new partner
273273
* [create_link](docs/sdks/partners/README.md#create_link) - Create a link for a partner
274+
* [retrieve_links](docs/sdks/partners/README.md#retrieve_links) - Retrieve a partner's links.
274275
* [upsert_link](docs/sdks/partners/README.md#upsert_link) - Upsert a link for a partner
275276
* [analytics](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner
276277
* [update_sale](docs/sdks/partners/README.md#update_sale) - Update a sale for a partner.

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,4 +1046,14 @@ Based on:
10461046
### Generated
10471047
- [python v0.19.14] .
10481048
### Releases
1049-
- [PyPI v0.19.14] https://pypi.org/project/dub/0.19.14 - .
1049+
- [PyPI v0.19.14] https://pypi.org/project/dub/0.19.14 - .
1050+
1051+
## 2025-03-30 00:30:43
1052+
### Changes
1053+
Based on:
1054+
- OpenAPI Doc
1055+
- Speakeasy CLI 1.526.0 (2.563.0) https://github.com/speakeasy-api/speakeasy
1056+
### Generated
1057+
- [python v0.19.15] .
1058+
### Releases
1059+
- [PyPI v0.19.15] https://pypi.org/project/dub/0.19.15 - .

codeSamples.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,27 @@ actions:
604604
605605
assert res is not None
606606
607+
# Handle response
608+
print(res)
609+
- target: $["paths"]["/partners/links"]["get"]
610+
update:
611+
x-codeSamples:
612+
- lang: python
613+
label: retrieveLinks
614+
source: |-
615+
from dub import Dub
616+
617+
618+
with Dub(
619+
token="DUB_API_KEY",
620+
) as d_client:
621+
622+
res = d_client.partners.retrieve_links(request={
623+
"program_id": "<id>",
624+
})
625+
626+
assert res is not None
627+
607628
# Handle response
608629
print(res)
609630
- target: $["paths"]["/partners/links"]["post"]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# RetrieveLinksRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `program_id` | *str* | :heavy_check_mark: | N/A |
9+
| `partner_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
10+
| `tenant_id` | *Optional[str]* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)