Skip to content

Commit a053c75

Browse files
authored
Merge pull request #128 from dubinc/speakeasy-sdk-regen-1749054628
chore: 🐝 Update SDK - Generate 0.26.3
2 parents 652bf1b + 4d4b590 commit a053c75

File tree

26 files changed

+1129
-46
lines changed

26 files changed

+1129
-46
lines changed

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 63 additions & 5 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: 0a8f1269dd811d1db24f573a0bb6361e
4+
docChecksum: 2ae539dae8fc94a9a85bd8d0e988da6a
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.554.1
7-
generationVersion: 2.616.1
8-
releaseVersion: 0.26.2
9-
configChecksum: 8457511216877030a3f48ef6f413040c
6+
speakeasyVersion: 1.555.2
7+
generationVersion: 2.620.2
8+
releaseVersion: 0.26.3
9+
configChecksum: 24c047911d694bde409f0372ae7849b1
1010
repoURL: https://github.com/dubinc/dub-python.git
1111
installationURL: https://github.com/dubinc/dub-python.git
1212
published: true
@@ -182,6 +182,8 @@ generatedFiles:
182182
- docs/models/operations/bulkupdatelinkstagids.md
183183
- docs/models/operations/bulkupdatelinkstagnames.md
184184
- docs/models/operations/bulkupdatelinkstestvariants.md
185+
- docs/models/operations/checkdomainstatusrequest.md
186+
- docs/models/operations/checkdomainstatusresponsebody.md
185187
- docs/models/operations/click.md
186188
- docs/models/operations/color.md
187189
- docs/models/operations/country.md
@@ -227,6 +229,7 @@ generatedFiles:
227229
- docs/models/operations/deletetagrequest.md
228230
- docs/models/operations/deletetagresponsebody.md
229231
- docs/models/operations/discount.md
232+
- docs/models/operations/domains.md
230233
- docs/models/operations/event.md
231234
- docs/models/operations/four.md
232235
- docs/models/operations/getcustomerdiscount.md
@@ -286,6 +289,8 @@ generatedFiles:
286289
- docs/models/operations/queryparamtagids.md
287290
- docs/models/operations/queryparamtagnames.md
288291
- docs/models/operations/queryparamtrigger.md
292+
- docs/models/operations/registerdomainrequestbody.md
293+
- docs/models/operations/registerdomainresponsebody.md
289294
- docs/models/operations/requestbody.md
290295
- docs/models/operations/responsebody.md
291296
- docs/models/operations/retrieveanalyticsqueryparamtagids.md
@@ -438,6 +443,7 @@ generatedFiles:
438443
- src/dub/models/operations/bulkcreatelinks.py
439444
- src/dub/models/operations/bulkdeletelinks.py
440445
- src/dub/models/operations/bulkupdatelinks.py
446+
- src/dub/models/operations/checkdomainstatus.py
441447
- src/dub/models/operations/createcustomer.py
442448
- src/dub/models/operations/createdomain.py
443449
- src/dub/models/operations/createfolder.py
@@ -463,6 +469,7 @@ generatedFiles:
463469
- src/dub/models/operations/listdomains.py
464470
- src/dub/models/operations/listevents.py
465471
- src/dub/models/operations/listfolders.py
472+
- src/dub/models/operations/registerdomain.py
466473
- src/dub/models/operations/retrieveanalytics.py
467474
- src/dub/models/operations/retrievelinks.py
468475
- src/dub/models/operations/retrievepartneranalytics.py
@@ -1655,5 +1662,56 @@ examples:
16551662
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"}}
16561663
"500":
16571664
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"}}
1665+
registerDomain:
1666+
speakeasy-default-register-domain:
1667+
requestBody:
1668+
application/json: {"domain": "acme.link"}
1669+
responses:
1670+
"201":
1671+
application/json: {"domain": "cooperative-partridge.name", "status": "<value>", "expiration": 9148.99}
1672+
"400":
1673+
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
1674+
"401":
1675+
application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}}
1676+
"403":
1677+
application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}}
1678+
"404":
1679+
application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}}
1680+
"409":
1681+
application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}}
1682+
"410":
1683+
application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}}
1684+
"422":
1685+
application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}}
1686+
"429":
1687+
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"}}
1688+
"500":
1689+
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"}}
1690+
checkDomainStatus:
1691+
speakeasy-default-check-domain-status:
1692+
parameters:
1693+
query:
1694+
domains: "<value>"
1695+
responses:
1696+
"200":
1697+
application/json: [{"domain": "little-mallard.info", "available": false, "price": "597.79", "premium": false}]
1698+
"400":
1699+
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
1700+
"401":
1701+
application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}}
1702+
"403":
1703+
application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}}
1704+
"404":
1705+
application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}}
1706+
"409":
1707+
application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}}
1708+
"410":
1709+
application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}}
1710+
"422":
1711+
application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}}
1712+
"429":
1713+
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"}}
1714+
"500":
1715+
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"}}
16581716
examplesVersion: 1.0.2
16591717
generatedTests: {}

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ generation:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: false
1919
python:
20-
version: 0.26.2
20+
version: 0.26.3
2121
additionalDependencies:
2222
dev: {}
2323
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.554.1
1+
speakeasyVersion: 1.555.2
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:1cd2d64502edd90829f5ed0f06d271f7d3ed735d9b2f408f8f711de61c73215c
6-
sourceBlobDigest: sha256:387d2b08867f617c561addaeee0ec31c645bb7ba82e2fa1fa12969554ba69d03
5+
sourceRevisionDigest: sha256:1fb4a2d4d760a03329e000d01bfea23d4ff759ef08fbc8bfcb897cbaaa1d59dd
6+
sourceBlobDigest: sha256:cd1eb362052eefcb43caeb0ef229cdbef4c33e25475464162caad684bbd02b4d
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748824322
9+
- speakeasy-sdk-regen-1749054628
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:1cd2d64502edd90829f5ed0f06d271f7d3ed735d9b2f408f8f711de61c73215c
16-
sourceBlobDigest: sha256:387d2b08867f617c561addaeee0ec31c645bb7ba82e2fa1fa12969554ba69d03
15+
sourceRevisionDigest: sha256:1fb4a2d4d760a03329e000d01bfea23d4ff759ef08fbc8bfcb897cbaaa1d59dd
16+
sourceBlobDigest: sha256:cd1eb362052eefcb43caeb0ef229cdbef4c33e25475464162caad684bbd02b4d
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:896c60b575f6d92fb2e8691021a7007a3e6dcd9e4f9ea0f46e0af10ca0a41ec7
18+
codeSamplesRevisionDigest: sha256:54a682d3adcdf0b0381ddf03e7f4e6ed83770dc6d124b09b41f109fd56f8f492
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ asyncio.run(main())
278278
* [list](docs/sdks/domains/README.md#list) - Retrieve a list of domains
279279
* [update](docs/sdks/domains/README.md#update) - Update a domain
280280
* [delete](docs/sdks/domains/README.md#delete) - Delete a domain
281+
* [register](docs/sdks/domains/README.md#register) - Register a domain
282+
* [check_status](docs/sdks/domains/README.md#check_status) - Check the availability of one or more domains
281283

282284

283285
### [embed_tokens](docs/sdks/embedtokens/README.md)
@@ -700,7 +702,9 @@ with Dub(
700702
token="DUB_API_KEY",
701703
) as d_client:
702704

703-
res = d_client.links.list(request={})
705+
res = d_client.links.list(request={
706+
"page_size": 50,
707+
})
704708

705709
while res is not None:
706710
# Handle items

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,4 +1186,14 @@ Based on:
11861186
### Generated
11871187
- [python v0.26.2] .
11881188
### Releases
1189-
- [PyPI v0.26.2] https://pypi.org/project/dub/0.26.2 - .
1189+
- [PyPI v0.26.2] https://pypi.org/project/dub/0.26.2 - .
1190+
1191+
## 2025-06-04 16:30:12
1192+
### Changes
1193+
Based on:
1194+
- OpenAPI Doc
1195+
- Speakeasy CLI 1.555.2 (2.620.2) https://github.com/speakeasy-api/speakeasy
1196+
### Generated
1197+
- [python v0.26.3] .
1198+
### Releases
1199+
- [PyPI v0.26.3] https://pypi.org/project/dub/0.26.3 - .

β€ŽcodeSamples.yamlβ€Ž

Lines changed: 70 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ actions:
1717
) as d_client:
1818
1919
res = d_client.analytics.retrieve(request={
20+
"timezone": "America/New_York",
2021
"city": "New York",
2122
"device": "Desktop",
2223
"browser": "Chrome",
@@ -42,7 +43,9 @@ actions:
4243
token="DUB_API_KEY",
4344
) as d_client:
4445
45-
res = d_client.commissions.list(request={})
46+
res = d_client.commissions.list(request={
47+
"page_size": 50,
48+
})
4649
4750
assert res is not None
4851
@@ -82,7 +85,9 @@ actions:
8285
token="DUB_API_KEY",
8386
) as d_client:
8487
85-
res = d_client.customers.list(request={})
88+
res = d_client.customers.list(request={
89+
"page_size": 50,
90+
})
8691
8792
assert res is not None
8893
@@ -162,7 +167,9 @@ actions:
162167
token="DUB_API_KEY",
163168
) as d_client:
164169
165-
res = d_client.domains.list(request={})
170+
res = d_client.domains.list(request={
171+
"archived": True,
172+
})
166173
167174
while res is not None:
168175
# Handle items
@@ -190,6 +197,48 @@ actions:
190197
191198
assert res is not None
192199
200+
# Handle response
201+
print(res)
202+
- target: $["paths"]["/domains/register"]["post"]
203+
update:
204+
x-codeSamples:
205+
- lang: python
206+
label: registerDomain
207+
source: |-
208+
from dub import Dub
209+
210+
211+
with Dub(
212+
token="DUB_API_KEY",
213+
) as d_client:
214+
215+
res = d_client.domains.register(request={
216+
"domain": "acme.link",
217+
})
218+
219+
assert res is not None
220+
221+
# Handle response
222+
print(res)
223+
- target: $["paths"]["/domains/status"]["get"]
224+
update:
225+
x-codeSamples:
226+
- lang: python
227+
label: checkDomainStatus
228+
source: |-
229+
from dub import Dub
230+
231+
232+
with Dub(
233+
token="DUB_API_KEY",
234+
) as d_client:
235+
236+
res = d_client.domains.check_status(request={
237+
"domains": "<value>",
238+
})
239+
240+
assert res is not None
241+
193242
# Handle response
194243
print(res)
195244
- target: $["paths"]["/domains/{slug}"]["delete"]
@@ -249,6 +298,7 @@ actions:
249298
) as d_client:
250299
251300
res = d_client.events.list(request={
301+
"timezone": "America/New_York",
252302
"city": "New York",
253303
"device": "Desktop",
254304
"browser": "Chrome",
@@ -350,7 +400,11 @@ actions:
350400
token="DUB_API_KEY",
351401
) as d_client:
352402
353-
res = d_client.links.list(request={})
403+
res = d_client.links.list(request={
404+
"show_archived": False,
405+
"with_tags": True,
406+
"page_size": 50,
407+
})
354408
355409
while res is not None:
356410
# Handle items
@@ -482,23 +536,6 @@ actions:
482536
},
483537
],
484538
},
485-
{
486-
"url": "https://google.com",
487-
"external_id": "123456",
488-
"tag_ids": [
489-
"clux0rgak00011...",
490-
],
491-
"test_variants": [
492-
{
493-
"url": "https://example.com/variant-1",
494-
"percentage": 50,
495-
},
496-
{
497-
"url": "https://example.com/variant-2",
498-
"percentage": 50,
499-
},
500-
],
501-
},
502539
])
503540
504541
assert res is not None
@@ -518,7 +555,10 @@ actions:
518555
token="DUB_API_KEY",
519556
) as d_client:
520557
521-
res = d_client.links.count(request={})
558+
res = d_client.links.count(request={
559+
"show_archived": False,
560+
"with_tags": False,
561+
})
522562
523563
assert res is not None
524564
@@ -688,6 +728,7 @@ actions:
688728
) as d_client:
689729
690730
res = d_client.partners.analytics(request={
731+
"timezone": "America/New_York",
691732
"program_id": "<id>",
692733
})
693734
@@ -805,6 +846,8 @@ actions:
805846
806847
res = d_client.qr_codes.get(request={
807848
"url": "https://needy-newsstand.biz/",
849+
"hide_logo": True,
850+
"include_margin": False,
808851
})
809852
810853
assert res is not None
@@ -824,7 +867,9 @@ actions:
824867
token="DUB_API_KEY",
825868
) as d_client:
826869
827-
res = d_client.tags.list(request={})
870+
res = d_client.tags.list(request={
871+
"page_size": 50,
872+
})
828873
829874
assert res is not None
830875
@@ -969,6 +1014,8 @@ actions:
9691014
"external_id": "<id>",
9701015
"amount": 594903,
9711016
"payment_processor": operations.PaymentProcessor.POLAR,
1017+
"event_name": "Invoice paid",
1018+
"lead_event_name": "Cloned template 1481267",
9721019
})
9731020
9741021
assert res is not None
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CheckDomainStatusRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
8+
| `domains` | [operations.Domains](../../models/operations/domains.md) | :heavy_check_mark: | The domains to search. We only support .link domains for now. |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CheckDomainStatusResponseBody
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- |
8+
| `domain` | *str* | :heavy_check_mark: | The domain name. |
9+
| `available` | *bool* | :heavy_check_mark: | Whether the domain is available. |
10+
| `price` | *Nullable[str]* | :heavy_check_mark: | The price description. |
11+
| `premium` | *Nullable[bool]* | :heavy_check_mark: | Whether the domain is a premium domain. |

0 commit comments

Comments
Β (0)