Skip to content

Commit 43ba613

Browse files
authored
Merge pull request #80 from clerk/speakeasy-sdk-regen-1735917707
chore: 🐝 Update SDK - Generate 1.6.0
2 parents 56f4d7a + c29b0ce commit 43ba613

Some content is hidden

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

44 files changed

+292
-290
lines changed

.speakeasy/gen.lock

+10-9
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: bfe29c99-6e67-43fe-b928-64d6a5ed6aa8
33
management:
44
docChecksum: 3b85d94743e8bef36aebfc53ac120e1b
55
docVersion: v1
6-
speakeasyVersion: 1.455.5
7-
generationVersion: 2.479.3
8-
releaseVersion: 1.5.0
9-
configChecksum: a7a47d1edde189269bbfa1a50e5cdae5
6+
speakeasyVersion: 1.460.6
7+
generationVersion: 2.484.4
8+
releaseVersion: 1.6.0
9+
configChecksum: 11a372d385b3244fe1fc0e9c62b4d760
1010
repoURL: https://github.com/clerk/clerk-sdk-python.git
1111
installationURL: https://github.com/clerk/clerk-sdk-python.git
1212
published: true
@@ -15,9 +15,9 @@ features:
1515
additionalDependencies: 1.0.0
1616
additionalProperties: 1.0.1
1717
constsAndDefaults: 1.0.5
18-
core: 5.7.2
18+
core: 5.7.4
1919
defaultEnabledRetries: 0.2.0
20-
deprecations: 3.0.0
20+
deprecations: 3.0.1
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
2323
examples: 3.0.0
@@ -26,11 +26,11 @@ features:
2626
globalSecurity: 3.0.2
2727
globalSecurityCallbacks: 1.0.0
2828
globalSecurityFlattening: 1.0.0
29-
globalServerURLs: 3.0.0
29+
globalServerURLs: 3.1.0
3030
groups: 3.0.0
3131
methodArguments: 1.0.2
3232
multipartFileContentType: 1.0.0
33-
nameOverrides: 3.0.0
33+
nameOverrides: 3.0.1
3434
nullables: 1.0.0
3535
openEnums: 1.0.0
3636
responseFormat: 1.0.1
@@ -1380,7 +1380,8 @@ examples:
13801380
responses:
13811381
"400":
13821382
application/json: {"errors": [{"message": "Error message", "long_message": "Longer error message with more details", "code": "error_code", "meta": {}, "clerk_trace_id": "trace_id"}], "meta": {}}
1383-
"200": {}
1383+
"200":
1384+
application/json: {}
13841385
RevertTemplate:
13851386
speakeasy-default-revert-template:
13861387
parameters:

.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.5.0
16+
version: 1.6.0
1717
additionalDependencies:
1818
dev:
1919
pytest: ^8.3.3

.speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.455.5
1+
speakeasyVersion: 1.460.6
22
sources:
33
clerk-openapi:
44
sourceNamespace: clerk-openapi
5-
sourceRevisionDigest: sha256:561a07af1c71ed18def035a6cd44c2ea804faad92bc60b1d6c473d723b5d977d
5+
sourceRevisionDigest: sha256:de9b855af22f0de48a4450efc13be4118c382aea703cf9564aa6256d2157da4c
66
sourceBlobDigest: sha256:7b41f36bbee97872160a060f96cfaec9693350316134a3f6001fd772dd625c66
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733790071
9+
- speakeasy-sdk-regen-1735917707
1010
- v1
1111
targets:
1212
clerk-sdk-python:
1313
source: clerk-openapi
1414
sourceNamespace: clerk-openapi
15-
sourceRevisionDigest: sha256:561a07af1c71ed18def035a6cd44c2ea804faad92bc60b1d6c473d723b5d977d
15+
sourceRevisionDigest: sha256:de9b855af22f0de48a4450efc13be4118c382aea703cf9564aa6256d2157da4c
1616
sourceBlobDigest: sha256:7b41f36bbee97872160a060f96cfaec9693350316134a3f6001fd772dd625c66
1717
codeSamplesNamespace: clerk-openapi-python-code-samples
18-
codeSamplesRevisionDigest: sha256:13e54cc17098ee19ec2e92ef0a5e6e02286cd69b19a702028fa5d14acd1365c2
18+
codeSamplesRevisionDigest: sha256:47440a8818de1516a26b0572a0e9390b83099629ad1cb522cba6fb90cfbaa8af
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,14 @@ Based on:
218218
### Generated
219219
- [python v1.5.0] .
220220
### Releases
221-
- [PyPI v1.5.0] https://pypi.org/project/clerk-backend-api/1.5.0 - .
221+
- [PyPI v1.5.0] https://pypi.org/project/clerk-backend-api/1.5.0 - .
222+
223+
## 2025-01-03 15:21:43
224+
### Changes
225+
Based on:
226+
- OpenAPI Doc
227+
- Speakeasy CLI 1.460.6 (2.484.4) https://github.com/speakeasy-api/speakeasy
228+
### Generated
229+
- [python v1.6.0] .
230+
### Releases
231+
- [PyPI v1.6.0] https://pypi.org/project/clerk-backend-api/1.6.0 - .

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "clerk-backend-api"
3-
version = "1.5.0"
3+
version = "1.6.0"
44
description = "Python Client SDK for clerk.dev"
55
authors = ["Clerk",]
66
readme = "README-PYPI.md"

src/clerk_backend_api/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import importlib.metadata
44

55
__title__: str = "clerk-backend-api"
6-
__version__: str = "1.5.0"
6+
__version__: str = "1.6.0"
77

88
try:
99
if __package__ is not None:

src/clerk_backend_api/actortokens.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def create(
5151
session_max_duration_in_seconds=session_max_duration_in_seconds,
5252
)
5353

54-
req = self.build_request(
54+
req = self._build_request(
5555
method="POST",
5656
path="/actor_tokens",
5757
base_url=base_url,
@@ -153,7 +153,7 @@ async def create_async(
153153
session_max_duration_in_seconds=session_max_duration_in_seconds,
154154
)
155155

156-
req = self.build_request_async(
156+
req = self._build_request_async(
157157
method="POST",
158158
path="/actor_tokens",
159159
base_url=base_url,
@@ -243,7 +243,7 @@ def revoke(
243243
actor_token_id=actor_token_id,
244244
)
245245

246-
req = self.build_request(
246+
req = self._build_request(
247247
method="POST",
248248
path="/actor_tokens/{actor_token_id}/revoke",
249249
base_url=base_url,
@@ -330,7 +330,7 @@ async def revoke_async(
330330
actor_token_id=actor_token_id,
331331
)
332332

333-
req = self.build_request_async(
333+
req = self._build_request_async(
334334
method="POST",
335335
path="/actor_tokens/{actor_token_id}/revoke",
336336
base_url=base_url,

src/clerk_backend_api/allowlistblocklist.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def list_allowlist_identifiers(
3232

3333
if server_url is not None:
3434
base_url = server_url
35-
req = self.build_request(
35+
req = self._build_request(
3636
method="GET",
3737
path="/allowlist_identifiers",
3838
base_url=base_url,
@@ -114,7 +114,7 @@ async def list_allowlist_identifiers_async(
114114

115115
if server_url is not None:
116116
base_url = server_url
117-
req = self.build_request_async(
117+
req = self._build_request_async(
118118
method="GET",
119119
path="/allowlist_identifiers",
120120
base_url=base_url,
@@ -206,7 +206,7 @@ def create_allowlist_identifier(
206206
notify=notify,
207207
)
208208

209-
req = self.build_request(
209+
req = self._build_request(
210210
method="POST",
211211
path="/allowlist_identifiers",
212212
base_url=base_url,
@@ -305,7 +305,7 @@ async def create_allowlist_identifier_async(
305305
notify=notify,
306306
)
307307

308-
req = self.build_request_async(
308+
req = self._build_request_async(
309309
method="POST",
310310
path="/allowlist_identifiers",
311311
base_url=base_url,
@@ -401,7 +401,7 @@ def create_blocklist_identifier(
401401
identifier=identifier,
402402
)
403403

404-
req = self.build_request(
404+
req = self._build_request(
405405
method="POST",
406406
path="/blocklist_identifiers",
407407
base_url=base_url,
@@ -497,7 +497,7 @@ async def create_blocklist_identifier_async(
497497
identifier=identifier,
498498
)
499499

500-
req = self.build_request_async(
500+
req = self._build_request_async(
501501
method="POST",
502502
path="/blocklist_identifiers",
503503
base_url=base_url,
@@ -593,7 +593,7 @@ def delete_blocklist_identifier(
593593
identifier_id=identifier_id,
594594
)
595595

596-
req = self.build_request(
596+
req = self._build_request(
597597
method="DELETE",
598598
path="/blocklist_identifiers/{identifier_id}",
599599
base_url=base_url,
@@ -680,7 +680,7 @@ async def delete_blocklist_identifier_async(
680680
identifier_id=identifier_id,
681681
)
682682

683-
req = self.build_request_async(
683+
req = self._build_request_async(
684684
method="DELETE",
685685
path="/blocklist_identifiers/{identifier_id}",
686686
base_url=base_url,

src/clerk_backend_api/allowlistidentifiers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def delete(
3939
identifier_id=identifier_id,
4040
)
4141

42-
req = self.build_request(
42+
req = self._build_request(
4343
method="DELETE",
4444
path="/allowlist_identifiers/{identifier_id}",
4545
base_url=base_url,
@@ -126,7 +126,7 @@ async def delete_async(
126126
identifier_id=identifier_id,
127127
)
128128

129-
req = self.build_request_async(
129+
req = self._build_request_async(
130130
method="DELETE",
131131
path="/allowlist_identifiers/{identifier_id}",
132132
base_url=base_url,

src/clerk_backend_api/basesdk.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class BaseSDK:
1919
def __init__(self, sdk_config: SDKConfiguration) -> None:
2020
self.sdk_configuration = sdk_config
2121

22-
def get_url(self, base_url, url_variables):
22+
def _get_url(self, base_url, url_variables):
2323
sdk_url, sdk_variables = self.sdk_configuration.get_server_details()
2424

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

3131
return utils.template_url(base_url, url_variables)
3232

33-
def build_request_async(
33+
def _build_request_async(
3434
self,
3535
method,
3636
path,
@@ -52,7 +52,7 @@ def build_request_async(
5252
http_headers: Optional[Mapping[str, str]] = None,
5353
) -> httpx.Request:
5454
client = self.sdk_configuration.async_client
55-
return self.build_request_with_client(
55+
return self._build_request_with_client(
5656
client,
5757
method,
5858
path,
@@ -72,7 +72,7 @@ def build_request_async(
7272
http_headers,
7373
)
7474

75-
def build_request(
75+
def _build_request(
7676
self,
7777
method,
7878
path,
@@ -94,7 +94,7 @@ def build_request(
9494
http_headers: Optional[Mapping[str, str]] = None,
9595
) -> httpx.Request:
9696
client = self.sdk_configuration.client
97-
return self.build_request_with_client(
97+
return self._build_request_with_client(
9898
client,
9999
method,
100100
path,
@@ -114,7 +114,7 @@ def build_request(
114114
http_headers,
115115
)
116116

117-
def build_request_with_client(
117+
def _build_request_with_client(
118118
self,
119119
client,
120120
method,
@@ -141,7 +141,7 @@ def build_request_with_client(
141141
url = url_override
142142
if url is None:
143143
url = utils.generate_url(
144-
self.get_url(base_url, url_variables),
144+
self._get_url(base_url, url_variables),
145145
path,
146146
request if request_has_path_params else None,
147147
_globals if request_has_path_params else None,

src/clerk_backend_api/betafeatures.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def update_instance_settings(
4545
)
4646
request = cast(models.UpdateInstanceAuthConfigRequestBody, request)
4747

48-
req = self.build_request(
48+
req = self._build_request(
4949
method="PATCH",
5050
path="/beta_features/instance_settings",
5151
base_url=base_url,
@@ -146,7 +146,7 @@ async def update_instance_settings_async(
146146
)
147147
request = cast(models.UpdateInstanceAuthConfigRequestBody, request)
148148

149-
req = self.build_request_async(
149+
req = self._build_request_async(
150150
method="PATCH",
151151
path="/beta_features/instance_settings",
152152
base_url=base_url,
@@ -258,7 +258,7 @@ def update_domain(
258258
Optional[models.UpdateProductionInstanceDomainRequestBody], request
259259
)
260260

261-
req = self.build_request(
261+
req = self._build_request(
262262
method="PUT",
263263
path="/beta_features/domain",
264264
base_url=base_url,
@@ -368,7 +368,7 @@ async def update_domain_async(
368368
Optional[models.UpdateProductionInstanceDomainRequestBody], request
369369
)
370370

371-
req = self.build_request_async(
371+
req = self._build_request_async(
372372
method="PUT",
373373
path="/beta_features/domain",
374374
base_url=base_url,
@@ -471,7 +471,7 @@ def change_production_instance_domain(
471471
)
472472
request = cast(models.ChangeProductionInstanceDomainRequestBody, request)
473473

474-
req = self.build_request(
474+
req = self._build_request(
475475
method="POST",
476476
path="/instance/change_domain",
477477
base_url=base_url,
@@ -574,7 +574,7 @@ async def change_production_instance_domain_async(
574574
)
575575
request = cast(models.ChangeProductionInstanceDomainRequestBody, request)
576576

577-
req = self.build_request_async(
577+
req = self._build_request_async(
578578
method="POST",
579579
path="/instance/change_domain",
580580
base_url=base_url,

src/clerk_backend_api/blocklistidentifiers_sdk.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def list(
3232

3333
if server_url is not None:
3434
base_url = server_url
35-
req = self.build_request(
35+
req = self._build_request(
3636
method="GET",
3737
path="/blocklist_identifiers",
3838
base_url=base_url,
@@ -114,7 +114,7 @@ async def list_async(
114114

115115
if server_url is not None:
116116
base_url = server_url
117-
req = self.build_request_async(
117+
req = self._build_request_async(
118118
method="GET",
119119
path="/blocklist_identifiers",
120120
base_url=base_url,

0 commit comments

Comments
 (0)