Skip to content

Commit b711390

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.455.5
1 parent d0b0099 commit b711390

File tree

77 files changed

+1827
-799
lines changed

Some content is hidden

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

77 files changed

+1827
-799
lines changed

.speakeasy/gen.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: bfe29c99-6e67-43fe-b928-64d6a5ed6aa8
33
management:
4-
docChecksum: 264c7cf574c4fa453587755d1bf79bcb
4+
docChecksum: 3b85d94743e8bef36aebfc53ac120e1b
55
docVersion: v1
6-
speakeasyVersion: 1.452.0
7-
generationVersion: 2.472.1
8-
releaseVersion: 1.4.1
9-
configChecksum: b9e0a4731aec79a52c8180337d03b9fc
6+
speakeasyVersion: 1.455.5
7+
generationVersion: 2.479.3
8+
releaseVersion: 1.5.0
9+
configChecksum: a7a47d1edde189269bbfa1a50e5cdae5
1010
repoURL: https://github.com/clerk/clerk-sdk-python.git
1111
installationURL: https://github.com/clerk/clerk-sdk-python.git
1212
published: true
@@ -15,7 +15,7 @@ features:
1515
additionalDependencies: 1.0.0
1616
additionalProperties: 1.0.1
1717
constsAndDefaults: 1.0.5
18-
core: 5.6.9
18+
core: 5.7.2
1919
defaultEnabledRetries: 0.2.0
2020
deprecations: 3.0.0
2121
enumUnions: 0.1.0

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: true
1414
oAuth2PasswordEnabled: false
1515
python:
16-
version: 1.4.1
16+
version: 1.5.0
1717
additionalDependencies:
1818
dev:
1919
pytest: ^8.3.3

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.452.0
1+
speakeasyVersion: 1.455.5
22
sources:
33
clerk-openapi:
44
sourceNamespace: clerk-openapi
5-
sourceRevisionDigest: sha256:7da727290006ebb62433a01f6a49c2ec36146cbb44f17b66f3571a5c6fbe424b
6-
sourceBlobDigest: sha256:3da8e4d311eedde5131701594c5daf8126a73b6270919fe34090c43876777eeb
5+
sourceRevisionDigest: sha256:561a07af1c71ed18def035a6cd44c2ea804faad92bc60b1d6c473d723b5d977d
6+
sourceBlobDigest: sha256:7b41f36bbee97872160a060f96cfaec9693350316134a3f6001fd772dd625c66
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733345998
9+
- speakeasy-sdk-regen-1733790071
1010
- v1
1111
targets:
1212
clerk-sdk-python:
1313
source: clerk-openapi
1414
sourceNamespace: clerk-openapi
15-
sourceRevisionDigest: sha256:7da727290006ebb62433a01f6a49c2ec36146cbb44f17b66f3571a5c6fbe424b
16-
sourceBlobDigest: sha256:3da8e4d311eedde5131701594c5daf8126a73b6270919fe34090c43876777eeb
15+
sourceRevisionDigest: sha256:561a07af1c71ed18def035a6cd44c2ea804faad92bc60b1d6c473d723b5d977d
16+
sourceBlobDigest: sha256:7b41f36bbee97872160a060f96cfaec9693350316134a3f6001fd772dd625c66
1717
codeSamplesNamespace: clerk-openapi-python-code-samples
18-
codeSamplesRevisionDigest: sha256:5856924712a525f2b8018e4981f1117d78f90b5251f595d767739e4ff637e6ff
18+
codeSamplesRevisionDigest: sha256:13e54cc17098ee19ec2e92ef0a5e6e02286cd69b19a702028fa5d14acd1365c2
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

+42-30
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,14 @@ from clerk_backend_api import Clerk
9595

9696
with Clerk(
9797
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
98-
) as s:
99-
res = s.email_addresses.get(email_address_id="email_address_id_example")
98+
) as clerk:
10099

101-
if res is not None:
102-
# handle response
103-
pass
100+
res = clerk.email_addresses.get(email_address_id="email_address_id_example")
101+
102+
assert res is not None
103+
104+
# Handle response
105+
print(res)
104106
```
105107

106108
</br>
@@ -114,12 +116,14 @@ from clerk_backend_api import Clerk
114116
async def main():
115117
async with Clerk(
116118
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
117-
) as s:
118-
res = await s.email_addresses.get_async(email_address_id="email_address_id_example")
119+
) as clerk:
120+
121+
res = await clerk.email_addresses.get_async(email_address_id="email_address_id_example")
119122

120-
if res is not None:
121-
# handle response
122-
pass
123+
assert res is not None
124+
125+
# Handle response
126+
print(res)
123127

124128
asyncio.run(main())
125129
```
@@ -142,8 +146,9 @@ from clerk_backend_api import Clerk
142146

143147
with Clerk(
144148
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
145-
) as s:
146-
s.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
149+
) as clerk:
150+
151+
clerk.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
147152

148153
# Use the SDK ...
149154

@@ -420,16 +425,18 @@ from clerk_backend_api import Clerk
420425

421426
with Clerk(
422427
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
423-
) as s:
424-
res = s.users.set_profile_image(user_id="usr_test123", file={
428+
) as clerk:
429+
430+
res = clerk.users.set_profile_image(user_id="usr_test123", file={
425431
"file_name": "example.file",
426432
"content": open("example.file", "rb"),
427433
"content_type": "<value>",
428434
})
429435

430-
if res is not None:
431-
# handle response
432-
pass
436+
assert res is not None
437+
438+
# Handle response
439+
print(res)
433440

434441
```
435442
<!-- End File uploads [file-upload] -->
@@ -441,11 +448,12 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
441448

442449
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
443450
```python
444-
from clerk.utils import BackoffStrategy, RetryConfig
445451
from clerk_backend_api import Clerk
452+
from clerk_backend_api.utils import BackoffStrategy, RetryConfig
453+
454+
with Clerk() as clerk:
446455

447-
with Clerk() as s:
448-
s.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d",
456+
clerk.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d",
449457
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
450458

451459
# Use the SDK ...
@@ -454,13 +462,14 @@ with Clerk() as s:
454462

455463
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
456464
```python
457-
from clerk.utils import BackoffStrategy, RetryConfig
458465
from clerk_backend_api import Clerk
466+
from clerk_backend_api.utils import BackoffStrategy, RetryConfig
459467

460468
with Clerk(
461469
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
462-
) as s:
463-
s.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
470+
) as clerk:
471+
472+
clerk.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
464473

465474
# Use the SDK ...
466475

@@ -495,16 +504,18 @@ from clerk_backend_api import Clerk, models
495504

496505
with Clerk(
497506
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
498-
) as s:
507+
) as clerk:
499508
res = None
500509
try:
501-
res = s.clients.verify(request={
510+
511+
res = clerk.clients.verify(request={
502512
"token": "jwt_token_example",
503513
})
504514

505-
if res is not None:
506-
# handle response
507-
pass
515+
assert res is not None
516+
517+
# Handle response
518+
print(res)
508519

509520
except models.ClerkErrors as e:
510521
# handle e.data: models.ClerkErrorsData
@@ -526,8 +537,9 @@ from clerk_backend_api import Clerk
526537

527538
with Clerk(
528539
server_url="https://api.clerk.com/v1",
529-
) as s:
530-
s.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
540+
) as clerk:
541+
542+
clerk.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
531543

532544
# Use the SDK ...
533545

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,14 @@ Based on:
208208
### Generated
209209
- [python v1.4.1] .
210210
### Releases
211-
- [PyPI v1.4.1] https://pypi.org/project/clerk-backend-api/1.4.1 - .
211+
- [PyPI v1.4.1] https://pypi.org/project/clerk-backend-api/1.4.1 - .
212+
213+
## 2024-12-16 14:30:11
214+
### Changes
215+
Based on:
216+
- OpenAPI Doc
217+
- Speakeasy CLI 1.455.5 (2.479.3) https://github.com/speakeasy-api/speakeasy
218+
### Generated
219+
- [python v1.5.0] .
220+
### Releases
221+
- [PyPI v1.5.0] https://pypi.org/project/clerk-backend-api/1.5.0 - .

USAGE.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ from clerk_backend_api import Clerk
55

66
with Clerk(
77
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
8-
) as s:
9-
res = s.email_addresses.get(email_address_id="email_address_id_example")
8+
) as clerk:
109

11-
if res is not None:
12-
# handle response
13-
pass
10+
res = clerk.email_addresses.get(email_address_id="email_address_id_example")
11+
12+
assert res is not None
13+
14+
# Handle response
15+
print(res)
1416
```
1517

1618
</br>
@@ -24,12 +26,14 @@ from clerk_backend_api import Clerk
2426
async def main():
2527
async with Clerk(
2628
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
27-
) as s:
28-
res = await s.email_addresses.get_async(email_address_id="email_address_id_example")
29+
) as clerk:
30+
31+
res = await clerk.email_addresses.get_async(email_address_id="email_address_id_example")
32+
33+
assert res is not None
2934

30-
if res is not None:
31-
# handle response
32-
pass
35+
# Handle response
36+
print(res)
3337

3438
asyncio.run(main())
3539
```

docs/sdks/actortokens/README.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ from clerk_backend_api import Clerk
2020

2121
with Clerk(
2222
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
23-
) as s:
24-
res = s.actor_tokens.create(user_id="user_1a2b3c", actor={}, expires_in_seconds=3600, session_max_duration_in_seconds=1800)
23+
) as clerk:
2524

26-
if res is not None:
27-
# handle response
28-
pass
25+
res = clerk.actor_tokens.create(user_id="user_1a2b3c", actor={}, expires_in_seconds=3600, session_max_duration_in_seconds=1800)
26+
27+
assert res is not None
28+
29+
# Handle response
30+
print(res)
2931

3032
```
3133

@@ -61,12 +63,14 @@ from clerk_backend_api import Clerk
6163

6264
with Clerk(
6365
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
64-
) as s:
65-
res = s.actor_tokens.revoke(actor_token_id="act_tok_abcdefghijk")
66+
) as clerk:
67+
68+
res = clerk.actor_tokens.revoke(actor_token_id="act_tok_abcdefghijk")
69+
70+
assert res is not None
6671

67-
if res is not None:
68-
# handle response
69-
pass
72+
# Handle response
73+
print(res)
7074

7175
```
7276

docs/sdks/allowlistblocklist/README.md

+28-20
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ from clerk_backend_api import Clerk
2121

2222
with Clerk(
2323
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
24-
) as s:
25-
res = s.allowlist_blocklist.list_allowlist_identifiers()
24+
) as clerk:
2625

27-
if res is not None:
28-
# handle response
29-
pass
26+
res = clerk.allowlist_blocklist.list_allowlist_identifiers()
27+
28+
assert res is not None
29+
30+
# Handle response
31+
print(res)
3032

3133
```
3234

@@ -58,12 +60,14 @@ from clerk_backend_api import Clerk
5860

5961
with Clerk(
6062
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
61-
) as s:
62-
res = s.allowlist_blocklist.create_allowlist_identifier(identifier="[email protected]", notify=True)
63+
) as clerk:
64+
65+
res = clerk.allowlist_blocklist.create_allowlist_identifier(identifier="[email protected]", notify=True)
66+
67+
assert res is not None
6368

64-
if res is not None:
65-
# handle response
66-
pass
69+
# Handle response
70+
print(res)
6771

6872
```
6973

@@ -97,12 +101,14 @@ from clerk_backend_api import Clerk
97101

98102
with Clerk(
99103
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
100-
) as s:
101-
res = s.allowlist_blocklist.create_blocklist_identifier(identifier="[email protected]")
104+
) as clerk:
102105

103-
if res is not None:
104-
# handle response
105-
pass
106+
res = clerk.allowlist_blocklist.create_blocklist_identifier(identifier="[email protected]")
107+
108+
assert res is not None
109+
110+
# Handle response
111+
print(res)
106112

107113
```
108114

@@ -135,12 +141,14 @@ from clerk_backend_api import Clerk
135141

136142
with Clerk(
137143
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
138-
) as s:
139-
res = s.allowlist_blocklist.delete_blocklist_identifier(identifier_id="identifier123")
144+
) as clerk:
145+
146+
res = clerk.allowlist_blocklist.delete_blocklist_identifier(identifier_id="identifier123")
147+
148+
assert res is not None
140149

141-
if res is not None:
142-
# handle response
143-
pass
150+
# Handle response
151+
print(res)
144152

145153
```
146154

0 commit comments

Comments
 (0)