Skip to content

Commit

Permalink
Merge pull request #90 from dubinc/speakeasy-sdk-regen-1738628735
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.17.9
  • Loading branch information
devkiran authored Feb 4, 2025
2 parents aea8de3 + f34cc5e commit 4974672
Show file tree
Hide file tree
Showing 18 changed files with 921 additions and 21 deletions.
42 changes: 36 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: ab657d60-207e-43a4-8cc8-692a672950ed
management:
docChecksum: 35e4c58336f3289dc7d36cd16ac407d9
docChecksum: 3221eb44e26e0b7b6262f2e3cf1c786a
docVersion: 0.0.1
speakeasyVersion: 1.481.1
generationVersion: 2.500.5
releaseVersion: 0.17.8
configChecksum: 67c5f4804733e08778eedc7f2892453f
speakeasyVersion: 1.483.0
generationVersion: 2.502.0
releaseVersion: 0.17.9
configChecksum: 318ba5ec150e0bcc07c1b4b5ca2fc6d4
repoURL: https://github.com/dubinc/dub-python.git
installationURL: https://github.com/dubinc/dub-python.git
published: true
Expand Down Expand Up @@ -192,6 +192,10 @@ generatedFiles:
- docs/models/operations/createlinkrequestbody.md
- docs/models/operations/createpartnerdiscount.md
- docs/models/operations/createpartnerinterval.md
- docs/models/operations/createpartnerlinklinkprops.md
- docs/models/operations/createpartnerlinkrequestbody.md
- docs/models/operations/createpartnerlinktagids.md
- docs/models/operations/createpartnerlinktagnames.md
- docs/models/operations/createpartnerrequestbody.md
- docs/models/operations/createpartnerresponsebody.md
- docs/models/operations/createpartnertagids.md
Expand Down Expand Up @@ -385,6 +389,7 @@ generatedFiles:
- src/dub/models/operations/createembedtoken.py
- src/dub/models/operations/createlink.py
- src/dub/models/operations/createpartner.py
- src/dub/models/operations/createpartnerlink.py
- src/dub/models/operations/createtag.py
- src/dub/models/operations/deletecustomer.py
- src/dub/models/operations/deletedomain.py
Expand Down Expand Up @@ -754,7 +759,7 @@ examples:
sortBy: "timestamp"
responses:
"200":
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": "1761194819564", "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"}], "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": "1726607631112", "updatedAt": "1738481259111", "projectId": "<id>"}, "click": {"id": "<id>", "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": "1737363175578"}, "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": "1749886173170", "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"}], "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": "1737101896886", "updatedAt": "1738486980350", "projectId": "<id>"}, "click": {"id": "<id>", "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": "1721462841708"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "paddle"}, "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"}]
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": "1761281161208", "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"}], "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": "1726693972751", "updatedAt": "1738567600750", "projectId": "<id>"}, "click": {"id": "<id>", "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": "1737449517209"}, "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": "1749972514791", "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"}], "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": "1737188238485", "updatedAt": "1738573321949", "projectId": "<id>"}, "click": {"id": "<id>", "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": "1721549183307"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "paddle"}, "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"}]
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
Expand Down Expand Up @@ -1301,5 +1306,30 @@ examples:
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"}}
"500":
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"}}
createPartnerLink:
speakeasy-default-create-partner-link:
requestBody:
application/json: {"programId": "<id>", "url": "https://necessary-brief.name", "linkProps": {"externalId": "123456", "tagIds": ["clux0rgak00011..."]}}
responses:
"201":
application/json: {"id": "<id>", "domain": "inferior-louse.org", "key": "<key>", "url": "https://lighthearted-subexpression.net", "trackConversion": false, "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "archived": false, "expiresAt": "1746975924499", "expiredUrl": "https://mammoth-resolve.com", "password": "oCRFmmigZdFo7_S", "proxy": false, "title": "<value>", "description": "triumphantly zowie polite from yippee whether lazily hyena", "image": "https://loremflickr.com/3108/2731?lock=4230767515156707", "video": "https://loremflickr.com/3903/2681?lock=8712371193890444", "rewrite": false, "doIndex": false, "ios": "<value>", "android": "<id>", "geo": {}, "publicStats": false, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "blue"}, {"id": "<id>", "name": "<value>", "color": "pink"}, {"id": "<id>", "name": "<value>", "color": "brown"}], "webhookIds": ["<value>"], "comments": "after boldly yieldingly from irritably nectarine nor vision loyally ew ick muddy rewrite till amount nor", "shortLink": "https://hard-to-find-railway.name", "qrCode": "https://vivacious-impostor.name/", "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": "1730894017035", "updatedAt": "1738583578575", "projectId": "<id>"}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}}
"403":
application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}}
"404":
application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}}
"409":
application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}}
"410":
application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}}
"422":
application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}}
"429":
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"}}
"500":
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"}}
examplesVersion: 1.0.0
generatedTests: {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.17.8
version: 0.17.9
additionalDependencies:
dev: {}
main: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.481.1
speakeasyVersion: 1.483.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:f45a09958121f0599f23910009268645adc04b050891c145b8ffc772d32210d7
sourceBlobDigest: sha256:c2b6e2ed11dd5fe51a0412df7d8a815d3d3d281d73ab77d4e53425c6f2ca3f24
sourceRevisionDigest: sha256:749625446520134b52b698c2638bd0ff721cdb14f2cfbc6e25e8155d778a5565
sourceBlobDigest: sha256:341eb83836294446e9cf37fc5ed0667827a975000a58d5e4718aa24a80f44cd8
tags:
- latest
- speakeasy-sdk-regen-1738369678
- speakeasy-sdk-regen-1738628735
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:f45a09958121f0599f23910009268645adc04b050891c145b8ffc772d32210d7
sourceBlobDigest: sha256:c2b6e2ed11dd5fe51a0412df7d8a815d3d3d281d73ab77d4e53425c6f2ca3f24
sourceRevisionDigest: sha256:749625446520134b52b698c2638bd0ff721cdb14f2cfbc6e25e8155d778a5565
sourceBlobDigest: sha256:341eb83836294446e9cf37fc5ed0667827a975000a58d5e4718aa24a80f44cd8
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:83a6c9d90a663c786aa97079234fe46062871201297068f6ac03c27a8ff64b5b
codeSamplesRevisionDigest: sha256:ef04933274def66d60477666fabfe7fa7291e3d4b989c27b4e4192751b745d0b
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 @@ -259,6 +259,7 @@ asyncio.run(main())
### [partners](docs/sdks/partners/README.md)

* [create](docs/sdks/partners/README.md#create) - Create a new partner
* [create_link](docs/sdks/partners/README.md#create_link) - Create a link for a partner

### [qr_codes](docs/sdks/qrcodes/README.md)

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

## 2025-02-04 00:25:21
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.483.0 (2.502.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.17.9] .
### Releases
- [PyPI v0.17.9] https://pypi.org/project/dub/0.17.9 - .
27 changes: 27 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,33 @@ actions:
assert res is not None
# Handle response
print(res)
- target: $["paths"]["/partners/links"]["post"]
update:
x-codeSamples:
- lang: python
label: createPartnerLink
source: |-
from dub import Dub
with Dub(
token="DUB_API_KEY",
) as d_client:
res = d_client.partners.create_link(request={
"program_id": "<id>",
"url": "https://necessary-brief.name",
"link_props": {
"external_id": "123456",
"tag_ids": [
"clux0rgak00011...",
],
},
})
assert res is not None
# Handle response
print(res)
- target: $["paths"]["/qr"]["get"]
Expand Down
Loading

0 comments on commit 4974672

Please sign in to comment.