Skip to content

Commit

Permalink
Merge pull request #80 from clerk/speakeasy-sdk-regen-1735917707
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 1.6.0
  • Loading branch information
speakeasybot authored Jan 3, 2025
2 parents 56f4d7a + c29b0ce commit 43ba613
Show file tree
Hide file tree
Showing 44 changed files with 292 additions and 290 deletions.
19 changes: 10 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: bfe29c99-6e67-43fe-b928-64d6a5ed6aa8
management:
docChecksum: 3b85d94743e8bef36aebfc53ac120e1b
docVersion: v1
speakeasyVersion: 1.455.5
generationVersion: 2.479.3
releaseVersion: 1.5.0
configChecksum: a7a47d1edde189269bbfa1a50e5cdae5
speakeasyVersion: 1.460.6
generationVersion: 2.484.4
releaseVersion: 1.6.0
configChecksum: 11a372d385b3244fe1fc0e9c62b4d760
repoURL: https://github.com/clerk/clerk-sdk-python.git
installationURL: https://github.com/clerk/clerk-sdk-python.git
published: true
Expand All @@ -15,9 +15,9 @@ features:
additionalDependencies: 1.0.0
additionalProperties: 1.0.1
constsAndDefaults: 1.0.5
core: 5.7.2
core: 5.7.4
defaultEnabledRetries: 0.2.0
deprecations: 3.0.0
deprecations: 3.0.1
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
examples: 3.0.0
Expand All @@ -26,11 +26,11 @@ features:
globalSecurity: 3.0.2
globalSecurityCallbacks: 1.0.0
globalSecurityFlattening: 1.0.0
globalServerURLs: 3.0.0
globalServerURLs: 3.1.0
groups: 3.0.0
methodArguments: 1.0.2
multipartFileContentType: 1.0.0
nameOverrides: 3.0.0
nameOverrides: 3.0.1
nullables: 1.0.0
openEnums: 1.0.0
responseFormat: 1.0.1
Expand Down Expand Up @@ -1380,7 +1380,8 @@ examples:
responses:
"400":
application/json: {"errors": [{"message": "Error message", "long_message": "Longer error message with more details", "code": "error_code", "meta": {}, "clerk_trace_id": "trace_id"}], "meta": {}}
"200": {}
"200":
application/json: {}
RevertTemplate:
speakeasy-default-revert-template:
parameters:
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.5.0
version: 1.6.0
additionalDependencies:
dev:
pytest: ^8.3.3
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.455.5
speakeasyVersion: 1.460.6
sources:
clerk-openapi:
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:561a07af1c71ed18def035a6cd44c2ea804faad92bc60b1d6c473d723b5d977d
sourceRevisionDigest: sha256:de9b855af22f0de48a4450efc13be4118c382aea703cf9564aa6256d2157da4c
sourceBlobDigest: sha256:7b41f36bbee97872160a060f96cfaec9693350316134a3f6001fd772dd625c66
tags:
- latest
- speakeasy-sdk-regen-1733790071
- speakeasy-sdk-regen-1735917707
- v1
targets:
clerk-sdk-python:
source: clerk-openapi
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:561a07af1c71ed18def035a6cd44c2ea804faad92bc60b1d6c473d723b5d977d
sourceRevisionDigest: sha256:de9b855af22f0de48a4450efc13be4118c382aea703cf9564aa6256d2157da4c
sourceBlobDigest: sha256:7b41f36bbee97872160a060f96cfaec9693350316134a3f6001fd772dd625c66
codeSamplesNamespace: clerk-openapi-python-code-samples
codeSamplesRevisionDigest: sha256:13e54cc17098ee19ec2e92ef0a5e6e02286cd69b19a702028fa5d14acd1365c2
codeSamplesRevisionDigest: sha256:47440a8818de1516a26b0572a0e9390b83099629ad1cb522cba6fb90cfbaa8af
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,14 @@ Based on:
### Generated
- [python v1.5.0] .
### Releases
- [PyPI v1.5.0] https://pypi.org/project/clerk-backend-api/1.5.0 - .
- [PyPI v1.5.0] https://pypi.org/project/clerk-backend-api/1.5.0 - .

## 2025-01-03 15:21:43
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.460.6 (2.484.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.6.0] .
### Releases
- [PyPI v1.6.0] https://pypi.org/project/clerk-backend-api/1.6.0 - .
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "clerk-backend-api"
version = "1.5.0"
version = "1.6.0"
description = "Python Client SDK for clerk.dev"
authors = ["Clerk",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion src/clerk_backend_api/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "clerk-backend-api"
__version__: str = "1.5.0"
__version__: str = "1.6.0"

try:
if __package__ is not None:
Expand Down
8 changes: 4 additions & 4 deletions src/clerk_backend_api/actortokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def create(
session_max_duration_in_seconds=session_max_duration_in_seconds,
)

req = self.build_request(
req = self._build_request(
method="POST",
path="/actor_tokens",
base_url=base_url,
Expand Down Expand Up @@ -153,7 +153,7 @@ async def create_async(
session_max_duration_in_seconds=session_max_duration_in_seconds,
)

req = self.build_request_async(
req = self._build_request_async(
method="POST",
path="/actor_tokens",
base_url=base_url,
Expand Down Expand Up @@ -243,7 +243,7 @@ def revoke(
actor_token_id=actor_token_id,
)

req = self.build_request(
req = self._build_request(
method="POST",
path="/actor_tokens/{actor_token_id}/revoke",
base_url=base_url,
Expand Down Expand Up @@ -330,7 +330,7 @@ async def revoke_async(
actor_token_id=actor_token_id,
)

req = self.build_request_async(
req = self._build_request_async(
method="POST",
path="/actor_tokens/{actor_token_id}/revoke",
base_url=base_url,
Expand Down
16 changes: 8 additions & 8 deletions src/clerk_backend_api/allowlistblocklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def list_allowlist_identifiers(

if server_url is not None:
base_url = server_url
req = self.build_request(
req = self._build_request(
method="GET",
path="/allowlist_identifiers",
base_url=base_url,
Expand Down Expand Up @@ -114,7 +114,7 @@ async def list_allowlist_identifiers_async(

if server_url is not None:
base_url = server_url
req = self.build_request_async(
req = self._build_request_async(
method="GET",
path="/allowlist_identifiers",
base_url=base_url,
Expand Down Expand Up @@ -206,7 +206,7 @@ def create_allowlist_identifier(
notify=notify,
)

req = self.build_request(
req = self._build_request(
method="POST",
path="/allowlist_identifiers",
base_url=base_url,
Expand Down Expand Up @@ -305,7 +305,7 @@ async def create_allowlist_identifier_async(
notify=notify,
)

req = self.build_request_async(
req = self._build_request_async(
method="POST",
path="/allowlist_identifiers",
base_url=base_url,
Expand Down Expand Up @@ -401,7 +401,7 @@ def create_blocklist_identifier(
identifier=identifier,
)

req = self.build_request(
req = self._build_request(
method="POST",
path="/blocklist_identifiers",
base_url=base_url,
Expand Down Expand Up @@ -497,7 +497,7 @@ async def create_blocklist_identifier_async(
identifier=identifier,
)

req = self.build_request_async(
req = self._build_request_async(
method="POST",
path="/blocklist_identifiers",
base_url=base_url,
Expand Down Expand Up @@ -593,7 +593,7 @@ def delete_blocklist_identifier(
identifier_id=identifier_id,
)

req = self.build_request(
req = self._build_request(
method="DELETE",
path="/blocklist_identifiers/{identifier_id}",
base_url=base_url,
Expand Down Expand Up @@ -680,7 +680,7 @@ async def delete_blocklist_identifier_async(
identifier_id=identifier_id,
)

req = self.build_request_async(
req = self._build_request_async(
method="DELETE",
path="/blocklist_identifiers/{identifier_id}",
base_url=base_url,
Expand Down
4 changes: 2 additions & 2 deletions src/clerk_backend_api/allowlistidentifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def delete(
identifier_id=identifier_id,
)

req = self.build_request(
req = self._build_request(
method="DELETE",
path="/allowlist_identifiers/{identifier_id}",
base_url=base_url,
Expand Down Expand Up @@ -126,7 +126,7 @@ async def delete_async(
identifier_id=identifier_id,
)

req = self.build_request_async(
req = self._build_request_async(
method="DELETE",
path="/allowlist_identifiers/{identifier_id}",
base_url=base_url,
Expand Down
14 changes: 7 additions & 7 deletions src/clerk_backend_api/basesdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BaseSDK:
def __init__(self, sdk_config: SDKConfiguration) -> None:
self.sdk_configuration = sdk_config

def get_url(self, base_url, url_variables):
def _get_url(self, base_url, url_variables):
sdk_url, sdk_variables = self.sdk_configuration.get_server_details()

if base_url is None:
Expand All @@ -30,7 +30,7 @@ def get_url(self, base_url, url_variables):

return utils.template_url(base_url, url_variables)

def build_request_async(
def _build_request_async(
self,
method,
path,
Expand All @@ -52,7 +52,7 @@ def build_request_async(
http_headers: Optional[Mapping[str, str]] = None,
) -> httpx.Request:
client = self.sdk_configuration.async_client
return self.build_request_with_client(
return self._build_request_with_client(
client,
method,
path,
Expand All @@ -72,7 +72,7 @@ def build_request_async(
http_headers,
)

def build_request(
def _build_request(
self,
method,
path,
Expand All @@ -94,7 +94,7 @@ def build_request(
http_headers: Optional[Mapping[str, str]] = None,
) -> httpx.Request:
client = self.sdk_configuration.client
return self.build_request_with_client(
return self._build_request_with_client(
client,
method,
path,
Expand All @@ -114,7 +114,7 @@ def build_request(
http_headers,
)

def build_request_with_client(
def _build_request_with_client(
self,
client,
method,
Expand All @@ -141,7 +141,7 @@ def build_request_with_client(
url = url_override
if url is None:
url = utils.generate_url(
self.get_url(base_url, url_variables),
self._get_url(base_url, url_variables),
path,
request if request_has_path_params else None,
_globals if request_has_path_params else None,
Expand Down
12 changes: 6 additions & 6 deletions src/clerk_backend_api/betafeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def update_instance_settings(
)
request = cast(models.UpdateInstanceAuthConfigRequestBody, request)

req = self.build_request(
req = self._build_request(
method="PATCH",
path="/beta_features/instance_settings",
base_url=base_url,
Expand Down Expand Up @@ -146,7 +146,7 @@ async def update_instance_settings_async(
)
request = cast(models.UpdateInstanceAuthConfigRequestBody, request)

req = self.build_request_async(
req = self._build_request_async(
method="PATCH",
path="/beta_features/instance_settings",
base_url=base_url,
Expand Down Expand Up @@ -258,7 +258,7 @@ def update_domain(
Optional[models.UpdateProductionInstanceDomainRequestBody], request
)

req = self.build_request(
req = self._build_request(
method="PUT",
path="/beta_features/domain",
base_url=base_url,
Expand Down Expand Up @@ -368,7 +368,7 @@ async def update_domain_async(
Optional[models.UpdateProductionInstanceDomainRequestBody], request
)

req = self.build_request_async(
req = self._build_request_async(
method="PUT",
path="/beta_features/domain",
base_url=base_url,
Expand Down Expand Up @@ -471,7 +471,7 @@ def change_production_instance_domain(
)
request = cast(models.ChangeProductionInstanceDomainRequestBody, request)

req = self.build_request(
req = self._build_request(
method="POST",
path="/instance/change_domain",
base_url=base_url,
Expand Down Expand Up @@ -574,7 +574,7 @@ async def change_production_instance_domain_async(
)
request = cast(models.ChangeProductionInstanceDomainRequestBody, request)

req = self.build_request_async(
req = self._build_request_async(
method="POST",
path="/instance/change_domain",
base_url=base_url,
Expand Down
4 changes: 2 additions & 2 deletions src/clerk_backend_api/blocklistidentifiers_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def list(

if server_url is not None:
base_url = server_url
req = self.build_request(
req = self._build_request(
method="GET",
path="/blocklist_identifiers",
base_url=base_url,
Expand Down Expand Up @@ -114,7 +114,7 @@ async def list_async(

if server_url is not None:
base_url = server_url
req = self.build_request_async(
req = self._build_request_async(
method="GET",
path="/blocklist_identifiers",
base_url=base_url,
Expand Down
Loading

0 comments on commit 43ba613

Please sign in to comment.