Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.453.8
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 10, 2024
1 parent f200fb4 commit 351838c
Show file tree
Hide file tree
Showing 44 changed files with 417 additions and 393 deletions.
12 changes: 6 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: bfe29c99-6e67-43fe-b928-64d6a5ed6aa8
management:
docChecksum: 264c7cf574c4fa453587755d1bf79bcb
docChecksum: 3b85d94743e8bef36aebfc53ac120e1b
docVersion: v1
speakeasyVersion: 1.452.0
generationVersion: 2.472.1
releaseVersion: 1.4.1
configChecksum: b9e0a4731aec79a52c8180337d03b9fc
speakeasyVersion: 1.453.8
generationVersion: 2.474.15
releaseVersion: 1.4.2
configChecksum: 11bf6c807a8ec891dc998697b5ca7a20
repoURL: https://github.com/clerk/clerk-sdk-python.git
installationURL: https://github.com/clerk/clerk-sdk-python.git
published: true
Expand All @@ -15,7 +15,7 @@ features:
additionalDependencies: 1.0.0
additionalProperties: 1.0.1
constsAndDefaults: 1.0.5
core: 5.6.9
core: 5.6.11
defaultEnabledRetries: 0.2.0
deprecations: 3.0.0
enumUnions: 0.1.0
Expand Down
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: 1.4.1
version: 1.4.2
additionalDependencies:
dev:
pytest: ^8.3.3
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.452.0
speakeasyVersion: 1.453.8
sources:
clerk-openapi:
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:7da727290006ebb62433a01f6a49c2ec36146cbb44f17b66f3571a5c6fbe424b
sourceBlobDigest: sha256:3da8e4d311eedde5131701594c5daf8126a73b6270919fe34090c43876777eeb
sourceRevisionDigest: sha256:efbc43b755c07c6197edfbde56fe2db62ef17cc334e7501b42948c242d63fc1f
sourceBlobDigest: sha256:7b41f36bbee97872160a060f96cfaec9693350316134a3f6001fd772dd625c66
tags:
- latest
- speakeasy-sdk-regen-1733345998
- speakeasy-sdk-regen-1733790071
- v1
targets:
clerk-sdk-python:
source: clerk-openapi
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:7da727290006ebb62433a01f6a49c2ec36146cbb44f17b66f3571a5c6fbe424b
sourceBlobDigest: sha256:3da8e4d311eedde5131701594c5daf8126a73b6270919fe34090c43876777eeb
sourceRevisionDigest: sha256:efbc43b755c07c6197edfbde56fe2db62ef17cc334e7501b42948c242d63fc1f
sourceBlobDigest: sha256:7b41f36bbee97872160a060f96cfaec9693350316134a3f6001fd772dd625c66
codeSamplesNamespace: clerk-openapi-python-code-samples
codeSamplesRevisionDigest: sha256:5856924712a525f2b8018e4981f1117d78f90b5251f595d767739e4ff637e6ff
codeSamplesRevisionDigest: sha256:7c55e627f31d8f437f6820d779cba322154c5a8c0865c6d7cbdddf8100ff33cd
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.email_addresses.get(email_address_id="email_address_id_example")
) as clerk:
res = clerk.email_addresses.get(email_address_id="email_address_id_example")

if res is not None:
# handle response
Expand All @@ -113,8 +113,8 @@ from clerk_backend_api import Clerk
async def main():
async with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = await s.email_addresses.get_async(email_address_id="email_address_id_example")
) as clerk:
res = await clerk.email_addresses.get_async(email_address_id="email_address_id_example")

if res is not None:
# handle response
Expand Down Expand Up @@ -371,8 +371,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.users.set_profile_image(user_id="usr_test123", file={
) as clerk:
res = clerk.users.set_profile_image(user_id="usr_test123", file={
"file_name": "example.file",
"content": open("example.file", "rb"),
"content_type": "<value>",
Expand All @@ -392,11 +392,11 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an

To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
```python
from clerk.utils import BackoffStrategy, RetryConfig
from clerk_backend_api import Clerk
from clerk_backend_api.utils import BackoffStrategy, RetryConfig

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

# Use the SDK ...
Expand All @@ -405,13 +405,13 @@ with Clerk() as s:

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:
```python
from clerk.utils import BackoffStrategy, RetryConfig
from clerk_backend_api import Clerk
from clerk_backend_api.utils import BackoffStrategy, RetryConfig

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

# Use the SDK ...

Expand Down Expand Up @@ -446,10 +446,10 @@ from clerk_backend_api import Clerk, models

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
) as clerk:
res = None
try:
res = s.clients.verify(request={
res = clerk.clients.verify(request={
"token": "jwt_token_example",
})

Expand Down Expand Up @@ -477,8 +477,8 @@ from clerk_backend_api import Clerk

with Clerk(
server_url="https://api.clerk.com/v1",
) as s:
s.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
) as clerk:
clerk.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")

# Use the SDK ...

Expand Down Expand Up @@ -583,8 +583,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
s.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
) as clerk:
clerk.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")

# Use the SDK ...

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,14 @@ Based on:
### Generated
- [python v1.4.1] .
### Releases
- [PyPI v1.4.1] https://pypi.org/project/clerk-backend-api/1.4.1 - .
- [PyPI v1.4.1] https://pypi.org/project/clerk-backend-api/1.4.1 - .

## 2024-12-10 00:21:08
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.453.8 (2.474.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.4.2] .
### Releases
- [PyPI v1.4.2] https://pypi.org/project/clerk-backend-api/1.4.2 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.email_addresses.get(email_address_id="email_address_id_example")
) as clerk:
res = clerk.email_addresses.get(email_address_id="email_address_id_example")

if res is not None:
# handle response
Expand All @@ -24,8 +24,8 @@ from clerk_backend_api import Clerk
async def main():
async with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = await s.email_addresses.get_async(email_address_id="email_address_id_example")
) as clerk:
res = await clerk.email_addresses.get_async(email_address_id="email_address_id_example")

if res is not None:
# handle response
Expand Down
8 changes: 4 additions & 4 deletions docs/sdks/actortokens/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ from clerk_backend_api import Clerk

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

if res is not None:
# handle response
Expand Down Expand Up @@ -61,8 +61,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.actor_tokens.revoke(actor_token_id="act_tok_abcdefghijk")
) as clerk:
res = clerk.actor_tokens.revoke(actor_token_id="act_tok_abcdefghijk")

if res is not None:
# handle response
Expand Down
16 changes: 8 additions & 8 deletions docs/sdks/allowlistblocklist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.allowlist_blocklist.list_allowlist_identifiers()
) as clerk:
res = clerk.allowlist_blocklist.list_allowlist_identifiers()

if res is not None:
# handle response
Expand Down Expand Up @@ -58,8 +58,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.allowlist_blocklist.create_allowlist_identifier(identifier="[email protected]", notify=True)
) as clerk:
res = clerk.allowlist_blocklist.create_allowlist_identifier(identifier="[email protected]", notify=True)

if res is not None:
# handle response
Expand Down Expand Up @@ -97,8 +97,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.allowlist_blocklist.create_blocklist_identifier(identifier="[email protected]")
) as clerk:
res = clerk.allowlist_blocklist.create_blocklist_identifier(identifier="[email protected]")

if res is not None:
# handle response
Expand Down Expand Up @@ -135,8 +135,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.allowlist_blocklist.delete_blocklist_identifier(identifier_id="identifier123")
) as clerk:
res = clerk.allowlist_blocklist.delete_blocklist_identifier(identifier_id="identifier123")

if res is not None:
# handle response
Expand Down
4 changes: 2 additions & 2 deletions docs/sdks/allowlistidentifiers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.allowlist_identifiers.delete(identifier_id="example_identifier_id")
) as clerk:
res = clerk.allowlist_identifiers.delete(identifier_id="example_identifier_id")

if res is not None:
# handle response
Expand Down
12 changes: 6 additions & 6 deletions docs/sdks/betafeatures/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.beta_features.update_instance_settings(request={
) as clerk:
res = clerk.beta_features.update_instance_settings(request={
"restricted_to_allowlist": False,
"from_email_address": "noreply",
"progressive_sign_up": True,
Expand Down Expand Up @@ -71,8 +71,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
s.beta_features.update_domain(request={
) as clerk:
clerk.beta_features.update_domain(request={
"home_url": "https://www.example.com",
})

Expand Down Expand Up @@ -109,8 +109,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
s.beta_features.change_production_instance_domain(request={
) as clerk:
clerk.beta_features.change_production_instance_domain(request={
"home_url": "https://www.newdomain.com",
"is_secondary": False,
})
Expand Down
4 changes: 2 additions & 2 deletions docs/sdks/blocklistidentifierssdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.blocklist_identifiers.list()
) as clerk:
res = clerk.blocklist_identifiers.list()

if res is not None:
# handle response
Expand Down
12 changes: 6 additions & 6 deletions docs/sdks/clerkredirecturls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.redirect_urls.create(request={
) as clerk:
res = clerk.redirect_urls.create(request={
"url": "https://my-app.com/oauth-callback",
})

Expand Down Expand Up @@ -60,8 +60,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.redirect_urls.get(id="redir_01FG4K9G5NWSQ4ZPT4TQE4Z7G3")
) as clerk:
res = clerk.redirect_urls.get(id="redir_01FG4K9G5NWSQ4ZPT4TQE4Z7G3")

if res is not None:
# handle response
Expand Down Expand Up @@ -98,8 +98,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.redirect_urls.delete(id="redir_01FG4K9G5NWSQ4ZPT4TQE4Z7G3")
) as clerk:
res = clerk.redirect_urls.delete(id="redir_01FG4K9G5NWSQ4ZPT4TQE4Z7G3")

if res is not None:
# handle response
Expand Down
12 changes: 6 additions & 6 deletions docs/sdks/clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.clients.list(limit=20, offset=10)
) as clerk:
res = clerk.clients.list(limit=20, offset=10)

if res is not None:
# handle response
Expand Down Expand Up @@ -66,8 +66,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.clients.verify(request={
) as clerk:
res = clerk.clients.verify(request={
"token": "jwt_token_example",
})

Expand Down Expand Up @@ -106,8 +106,8 @@ from clerk_backend_api import Clerk

with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
res = s.clients.get(client_id="cli_123456789")
) as clerk:
res = clerk.clients.get(client_id="cli_123456789")

if res is not None:
# handle response
Expand Down
Loading

0 comments on commit 351838c

Please sign in to comment.