Skip to content

Commit a8183c8

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.456.0
1 parent bd49f9c commit a8183c8

File tree

36 files changed

+653
-326
lines changed

36 files changed

+653
-326
lines changed

.speakeasy/gen.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: ab657d60-207e-43a4-8cc8-692a672950ed
33
management:
4-
docChecksum: 696b11ac8aea0ac84de6ac987269993a
4+
docChecksum: cb382cc4468d569fac201d1bf8058387
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.453.10
7-
generationVersion: 2.474.15
8-
releaseVersion: 0.15.5
9-
configChecksum: 48af25ef4e3a8bb5757e524b29ed6de2
6+
speakeasyVersion: 1.456.0
7+
generationVersion: 2.481.0
8+
releaseVersion: 0.16.0
9+
configChecksum: 185c2db161b354719042548a8d43eb9f
1010
repoURL: https://github.com/dubinc/dub-python.git
1111
installationURL: https://github.com/dubinc/dub-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
1616
constsAndDefaults: 1.0.5
17-
core: 5.6.11
17+
core: 5.7.4
1818
defaultEnabledRetries: 0.2.0
1919
deprecations: 3.0.0
2020
enumUnions: 0.1.0
@@ -25,7 +25,7 @@ features:
2525
globalSecurity: 3.0.2
2626
globalSecurityCallbacks: 1.0.0
2727
globalSecurityFlattening: 1.0.0
28-
globalServerURLs: 3.0.0
28+
globalServerURLs: 3.1.0
2929
includes: 3.0.0
3030
nameOverrides: 3.0.0
3131
nullables: 1.0.0
@@ -727,7 +727,7 @@ examples:
727727
idOrSlug: "<value>"
728728
responses:
729729
"200":
730-
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "inviteCode": "<value>", "plan": "business extra", "stripeId": "<value>", "billingCycleStart": "900.65", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "<value>", "users": [], "domains": [], "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "bankAccountVerified": false}
730+
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "inviteCode": "<value>", "plan": "business extra", "stripeId": "<value>", "billingCycleStart": "900.65", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "payoutMethodId": "<id>", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "<value>", "users": [], "domains": []}
731731
"400":
732732
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
733733
"401":
@@ -753,7 +753,7 @@ examples:
753753
idOrSlug: "<value>"
754754
responses:
755755
"200":
756-
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "inviteCode": "<value>", "plan": "enterprise", "stripeId": "<value>", "billingCycleStart": "245.55", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "<value>", "users": [], "domains": [], "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "bankAccountVerified": false}
756+
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "inviteCode": "<value>", "plan": "enterprise", "stripeId": "<value>", "billingCycleStart": "245.55", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "payoutMethodId": "<id>", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "<value>", "users": [], "domains": []}
757757
"400":
758758
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
759759
"401":

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: true
1414
oAuth2PasswordEnabled: false
1515
python:
16-
version: 0.15.5
16+
version: 0.16.0
1717
additionalDependencies:
1818
dev: {}
1919
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.453.10
1+
speakeasyVersion: 1.456.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:8b4a7b7e8b6884e8d3b8d3446af3d9fe73872d3d870e74c1f61d46178cc91bfb
6-
sourceBlobDigest: sha256:2d3d65c59926a3dd8d1c0117f559749c2c2616e6a5c4f2136544726628eefb98
5+
sourceRevisionDigest: sha256:a147b23cdbd73b84333bcbbdee1bd36f1ca475c2bb0403d801fb3c1aa8975068
6+
sourceBlobDigest: sha256:617d6c85b5743056c54b9821b6e38a9cc91c9da175d24d85055635a90583c038
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733876894
9+
- speakeasy-sdk-regen-1734481633
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:8b4a7b7e8b6884e8d3b8d3446af3d9fe73872d3d870e74c1f61d46178cc91bfb
16-
sourceBlobDigest: sha256:2d3d65c59926a3dd8d1c0117f559749c2c2616e6a5c4f2136544726628eefb98
15+
sourceRevisionDigest: sha256:a147b23cdbd73b84333bcbbdee1bd36f1ca475c2bb0403d801fb3c1aa8975068
16+
sourceBlobDigest: sha256:617d6c85b5743056c54b9821b6e38a9cc91c9da175d24d85055635a90583c038
1717
codeSamplesNamespace: code-samples-python-my-first-target
18-
codeSamplesRevisionDigest: sha256:2317c14593a6c45dd6d820efb8e3d8430b10e4754c6b48664b14c8f7c7d6e883
18+
codeSamplesRevisionDigest: sha256:8b63bc52165227bbcf43ec6493cd29952a2ccae0e029561253b1e6f0eabe2648
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 49 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ from dub import Dub
7070
with Dub(
7171
token="DUB_API_KEY",
7272
) as dub:
73+
7374
res = dub.links.create(request={
7475
"url": "https://google.com",
7576
"external_id": "123456",
@@ -78,9 +79,10 @@ with Dub(
7879
],
7980
})
8081

81-
if res is not None:
82-
# handle response
83-
pass
82+
assert res is not None
83+
84+
# Handle response
85+
print(res)
8486
```
8587

8688
</br>
@@ -95,6 +97,7 @@ async def main():
9597
async with Dub(
9698
token="DUB_API_KEY",
9799
) as dub:
100+
98101
res = await dub.links.create_async(request={
99102
"url": "https://google.com",
100103
"external_id": "123456",
@@ -103,9 +106,10 @@ async def main():
103106
],
104107
})
105108

106-
if res is not None:
107-
# handle response
108-
pass
109+
assert res is not None
110+
111+
# Handle response
112+
print(res)
109113

110114
asyncio.run(main())
111115
```
@@ -119,6 +123,7 @@ from dub import Dub
119123
with Dub(
120124
token="DUB_API_KEY",
121125
) as dub:
126+
122127
res = dub.links.upsert(request={
123128
"url": "https://google.com",
124129
"external_id": "123456",
@@ -127,9 +132,10 @@ with Dub(
127132
],
128133
})
129134

130-
if res is not None:
131-
# handle response
132-
pass
135+
assert res is not None
136+
137+
# Handle response
138+
print(res)
133139
```
134140

135141
</br>
@@ -144,6 +150,7 @@ async def main():
144150
async with Dub(
145151
token="DUB_API_KEY",
146152
) as dub:
153+
147154
res = await dub.links.upsert_async(request={
148155
"url": "https://google.com",
149156
"external_id": "123456",
@@ -152,9 +159,10 @@ async def main():
152159
],
153160
})
154161

155-
if res is not None:
156-
# handle response
157-
pass
162+
assert res is not None
163+
164+
# Handle response
165+
print(res)
158166

159167
asyncio.run(main())
160168
```
@@ -276,6 +284,7 @@ with Dub(
276284
) as dub:
277285
res = None
278286
try:
287+
279288
res = dub.links.create(request={
280289
"url": "https://google.com",
281290
"external_id": "123456",
@@ -284,9 +293,10 @@ with Dub(
284293
],
285294
})
286295

287-
if res is not None:
288-
# handle response
289-
pass
296+
assert res is not None
297+
298+
# Handle response
299+
print(res)
290300

291301
except errors.BadRequest as e:
292302
# handle e.data: errors.BadRequestData
@@ -334,6 +344,7 @@ with Dub(
334344
server_url="https://api.dub.co",
335345
token="DUB_API_KEY",
336346
) as dub:
347+
337348
res = dub.links.create(request={
338349
"url": "https://google.com",
339350
"external_id": "123456",
@@ -342,9 +353,10 @@ with Dub(
342353
],
343354
})
344355

345-
if res is not None:
346-
# handle response
347-
pass
356+
assert res is not None
357+
358+
# Handle response
359+
print(res)
348360

349361
```
350362
<!-- End Server Selection [server] -->
@@ -448,6 +460,7 @@ from dub import Dub
448460
with Dub(
449461
token="DUB_API_KEY",
450462
) as dub:
463+
451464
res = dub.links.create(request={
452465
"url": "https://google.com",
453466
"external_id": "123456",
@@ -456,9 +469,10 @@ with Dub(
456469
],
457470
})
458471

459-
if res is not None:
460-
# handle response
461-
pass
472+
assert res is not None
473+
474+
# Handle response
475+
print(res)
462476

463477
```
464478
<!-- End Authentication [security] -->
@@ -476,6 +490,7 @@ from dub.utils import BackoffStrategy, RetryConfig
476490
with Dub(
477491
token="DUB_API_KEY",
478492
) as dub:
493+
479494
res = dub.links.create(request={
480495
"url": "https://google.com",
481496
"external_id": "123456",
@@ -485,9 +500,10 @@ with Dub(
485500
},
486501
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
487502

488-
if res is not None:
489-
# handle response
490-
pass
503+
assert res is not None
504+
505+
# Handle response
506+
print(res)
491507

492508
```
493509

@@ -500,6 +516,7 @@ with Dub(
500516
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
501517
token="DUB_API_KEY",
502518
) as dub:
519+
503520
res = dub.links.create(request={
504521
"url": "https://google.com",
505522
"external_id": "123456",
@@ -508,9 +525,10 @@ with Dub(
508525
],
509526
})
510527

511-
if res is not None:
512-
# handle response
513-
pass
528+
assert res is not None
529+
530+
# Handle response
531+
print(res)
514532

515533
```
516534
<!-- End Retries [retries] -->
@@ -529,18 +547,16 @@ from dub import Dub
529547
with Dub(
530548
token="DUB_API_KEY",
531549
) as dub:
550+
532551
res = dub.links.list(request={
533552
"page": 1,
534553
"page_size": 50,
535554
})
536555

537-
if res is not None:
538-
while True:
539-
# handle items
556+
while res is not None:
557+
# Handle items
540558

541-
res = res.next()
542-
if res is None:
543-
break
559+
res = res.next()
544560

545561
```
546562
<!-- End Pagination [pagination] -->

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,4 +666,14 @@ Based on:
666666
### Generated
667667
- [python v0.15.5] .
668668
### Releases
669-
- [PyPI v0.15.5] https://pypi.org/project/dub/0.15.5 - .
669+
- [PyPI v0.15.5] https://pypi.org/project/dub/0.15.5 - .
670+
671+
## 2024-12-18 00:27:10
672+
### Changes
673+
Based on:
674+
- OpenAPI Doc
675+
- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy
676+
### Generated
677+
- [python v0.16.0] .
678+
### Releases
679+
- [PyPI v0.16.0] https://pypi.org/project/dub/0.16.0 - .

0 commit comments

Comments
 (0)