Skip to content

Commit 93df85a

Browse files
authored
Merge pull request #56 from clerk/speakeasy-sdk-regen-1731339780
chore: 🐝 Update SDK - Generate 1.3.0
2 parents f25f667 + 6842ac6 commit 93df85a

File tree

11 files changed

+48
-57
lines changed

11 files changed

+48
-57
lines changed

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 2 additions & 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: 1.2.0
16+
version: 1.3.0
1717
additionalDependencies:
1818
dev:
1919
pytest: ^8.3.3
@@ -24,6 +24,7 @@ python:
2424
authors:
2525
- Clerk
2626
clientServerStatusCodesAsErrors: true
27+
defaultErrorName: SDKError
2728
description: Python Client SDK for clerk.dev
2829
enumFormat: enum
2930
fixFlags:

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
speakeasyVersion: 1.428.0
1+
speakeasyVersion: 1.437.0
22
sources:
33
clerk-openapi:
44
sourceNamespace: clerk-openapi
5-
sourceRevisionDigest: sha256:32d28c22120d0b90c85b6a67e85c77fd170f91a1c6a419c2f00c6fbb659dfaa4
6-
sourceBlobDigest: sha256:ac4af071d2df658a8f43fb4ecf597f40d81750b13930645ae5523edbb46abab1
5+
sourceRevisionDigest: sha256:b9003a9949cb3383f2cdaf2d335e2690613bf936b1807dabb3db73ea6de9681b
6+
sourceBlobDigest: sha256:a6fe6b772943fa5f6ea18ff77bc4a90528bce97944df850b2b84c862466a0c29
77
tags:
88
- latest
99
- main
1010
targets:
1111
clerk-sdk-python:
1212
source: clerk-openapi
1313
sourceNamespace: clerk-openapi
14-
sourceRevisionDigest: sha256:32d28c22120d0b90c85b6a67e85c77fd170f91a1c6a419c2f00c6fbb659dfaa4
15-
sourceBlobDigest: sha256:ac4af071d2df658a8f43fb4ecf597f40d81750b13930645ae5523edbb46abab1
14+
sourceRevisionDigest: sha256:b9003a9949cb3383f2cdaf2d335e2690613bf936b1807dabb3db73ea6de9681b
15+
sourceBlobDigest: sha256:a6fe6b772943fa5f6ea18ff77bc4a90528bce97944df850b2b84c862466a0c29
16+
codeSamplesNamespace: clerk-openapi-code-samples
17+
codeSamplesRevisionDigest: sha256:51a35774b712e61587715c33e2ae31cc98c7e6a0f93b33065a483085c7197f95
1618
workflow:
1719
workflowVersion: 1.0.0
1820
speakeasyVersion: latest
1921
sources:
2022
clerk-openapi:
2123
inputs:
22-
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2021-02-05.yml
24+
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2024-10-01.yml
2325
overlays:
2426
- location: ./fixes.yaml
2527
- location: ./examples.yaml

β€ŽREADME.mdβ€Ž

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,10 @@ By default, an API error will raise a models.SDKError exception, which has the f
433433

434434
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `verify_async` method may raise the following exceptions:
435435

436-
| Error Type | Status Code | Content Type |
437-
| ------------------ | ------------------ | ------------------ |
438-
| models.ClerkErrors | 400, 401, 404 | application/json |
439-
| models.SDKError | 4XX, 5XX | \*/\* |
436+
| Error Type | Status Code | Content Type |
437+
| ------------------ | ------------- | ---------------- |
438+
| models.ClerkErrors | 400, 401, 404 | application/json |
439+
| models.SDKError | 4XX, 5XX | \*/\* |
440440

441441
### Example
442442

@@ -469,30 +469,6 @@ except models.SDKError as e:
469469
<!-- Start Server Selection [server] -->
470470
## Server Selection
471471

472-
### Select Server by Index
473-
474-
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
475-
476-
| # | Server | Variables |
477-
| - | ------ | --------- |
478-
| 0 | `https://api.clerk.com/v1` | None |
479-
480-
#### Example
481-
482-
```python
483-
from clerk_backend_api import Clerk
484-
485-
s = Clerk(
486-
server_idx=0,
487-
)
488-
489-
s.miscellaneous.get_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable_key="pub_1a2b3c4d")
490-
491-
# Use the SDK ...
492-
493-
```
494-
495-
496472
### Override Server URL Per-Client
497473

498474
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
@@ -598,9 +574,9 @@ s = Clerk(async_client=CustomClient(httpx.AsyncClient()))
598574

599575
This SDK supports the following security scheme globally:
600576

601-
| Name | Type | Scheme |
602-
| ------------- | ------------- | ------------- |
603-
| `bearer_auth` | http | HTTP Bearer |
577+
| Name | Type | Scheme |
578+
| ------------- | ---- | ----------- |
579+
| `bearer_auth` | http | HTTP Bearer |
604580

605581
To authenticate with the API the `bearer_auth` parameter must be set when initializing the SDK client instance. For example:
606582
```python

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,14 @@ Based on:
168168
### Generated
169169
- [python v1.2.0] .
170170
### Releases
171-
- [PyPI v1.2.0] https://pypi.org/project/clerk-backend-api/1.2.0 - .
171+
- [PyPI v1.2.0] https://pypi.org/project/clerk-backend-api/1.2.0 - .
172+
173+
## 2024-11-11 15:42:57
174+
### Changes
175+
Based on:
176+
- OpenAPI Doc
177+
- Speakeasy CLI 1.437.0 (2.456.0) https://github.com/speakeasy-api/speakeasy
178+
### Generated
179+
- [python v1.3.0] .
180+
### Releases
181+
- [PyPI v1.3.0] https://pypi.org/project/clerk-backend-api/1.3.0 - .

β€Ždocs/models/type.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
| `OAUTH_GOOGLE` | oauth_google |
99
| `OAUTH_MOCK` | oauth_mock |
1010
| `SAML` | saml |
11+
| `OAUTH_MICROSOFT` | oauth_microsoft |
12+
| `EMAIL_LINK` | email_link |
1113
| `OAUTH_APPLE` | oauth_apple |
1214
| `OAUTH_DISCORD` | oauth_discord |
13-
| `OAUTH_MICROSOFT` | oauth_microsoft |
1415
| `OAUTH_GITHUB` | oauth_github |

β€Žpoetry.lockβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyproject.tomlβ€Ž

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

β€Žsrc/clerk_backend_api/_version.pyβ€Ž

Lines changed: 1 addition & 1 deletion
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.2.0"
6+
__version__: str = "1.3.0"
77

88
try:
99
if __package__ is not None:

β€Žsrc/clerk_backend_api/models/identificationlink.pyβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ class Type(str, Enum):
1010
OAUTH_GOOGLE = "oauth_google"
1111
OAUTH_MOCK = "oauth_mock"
1212
SAML = "saml"
13+
OAUTH_MICROSOFT = "oauth_microsoft"
14+
EMAIL_LINK = "email_link"
1315
OAUTH_APPLE = "oauth_apple"
1416
OAUTH_DISCORD = "oauth_discord"
15-
OAUTH_MICROSOFT = "oauth_microsoft"
1617
OAUTH_GITHUB = "oauth_github"
1718

1819

0 commit comments

Comments
Β (0)