Skip to content

Commit 6df11cb

Browse files
authored
Merge pull request #6 from clerk/speakeasy-sdk-regen-1723006051
chore: 🐝 Update SDK - Generate 0.5.0-alpha.11
2 parents 686baf1 + e2c7b3f commit 6df11cb

File tree

243 files changed

+2841
-3146
lines changed

Some content is hidden

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

243 files changed

+2841
-3146
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.venv/
12
venv/
23
src/*.egg-info/
34
__pycache__/

.speakeasy/gen.lock

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
lockVersion: 2.0.0
22
id: bfe29c99-6e67-43fe-b928-64d6a5ed6aa8
33
management:
4-
docChecksum: d97ee97edfea8f73b38df0fd96c23f3b
4+
docChecksum: c41c5490f198f58506f13380ae55aa59
55
docVersion: v1
6-
speakeasyVersion: 1.335.2
7-
generationVersion: 2.372.3
8-
releaseVersion: 0.5.0-alpha.10
9-
configChecksum: 04c964a33a78dc3f8ceed07ac0dea497
6+
speakeasyVersion: 1.355.0
7+
generationVersion: 2.387.0
8+
releaseVersion: 0.5.0-alpha.11
9+
configChecksum: 1804e08e82b6b13125dccf9edf256490
1010
repoURL: https://github.com/clerk/clerk-sdk-python.git
1111
installationURL: https://github.com/clerk/clerk-sdk-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
16-
constsAndDefaults: 1.0.0
17-
core: 5.1.2
16+
constsAndDefaults: 1.0.2
17+
core: 5.3.4
1818
defaultEnabledRetries: 0.2.0
1919
deprecations: 3.0.0
20-
envVarSecurityUsage: 0.2.0
20+
envVarSecurityUsage: 0.3.1
2121
examples: 3.0.0
22-
flatRequests: 1.0.0
22+
flatRequests: 1.0.1
2323
flattening: 3.0.0
24-
globalSecurity: 3.0.0
24+
globalSecurity: 3.0.1
2525
globalSecurityCallbacks: 1.0.0
2626
globalSecurityFlattening: 1.0.0
2727
globalServerURLs: 3.0.0
2828
groups: 3.0.0
2929
multipartFileContentType: 1.0.0
3030
nameOverrides: 3.0.0
3131
nullables: 1.0.0
32-
pagination: 3.0.0
32+
pagination: 3.0.1
3333
responseFormat: 1.0.0
3434
retries: 3.0.0
3535
sdkHooks: 1.0.0
36-
unions: 3.0.0
36+
unions: 3.0.1
3737
uploadStreams: 1.0.0
3838
generatedFiles:
3939
- src/clerk_backend_api/sdkconfiguration.py
@@ -66,20 +66,25 @@ generatedFiles:
6666
- src/clerk_backend_api/testingtokens.py
6767
- src/clerk_backend_api/sdk.py
6868
- .vscode/settings.json
69+
- poetry.toml
6970
- py.typed
7071
- pylintrc
7172
- pyproject.toml
73+
- scripts/compile.sh
7274
- scripts/publish.sh
7375
- src/clerk_backend_api/__init__.py
7476
- src/clerk_backend_api/basesdk.py
7577
- src/clerk_backend_api/httpclient.py
78+
- src/clerk_backend_api/py.typed
7679
- src/clerk_backend_api/types/__init__.py
7780
- src/clerk_backend_api/types/basemodel.py
7881
- src/clerk_backend_api/utils/__init__.py
82+
- src/clerk_backend_api/utils/annotations.py
7983
- src/clerk_backend_api/utils/enums.py
8084
- src/clerk_backend_api/utils/eventstreaming.py
8185
- src/clerk_backend_api/utils/forms.py
8286
- src/clerk_backend_api/utils/headers.py
87+
- src/clerk_backend_api/utils/logger.py
8388
- src/clerk_backend_api/utils/metadata.py
8489
- src/clerk_backend_api/utils/queryparams.py
8590
- src/clerk_backend_api/utils/requestbodies.py
@@ -611,3 +616,4 @@ generatedFiles:
611616
- src/clerk_backend_api/_hooks/sdkhooks.py
612617
- src/clerk_backend_api/_hooks/types.py
613618
- src/clerk_backend_api/_hooks/__init__.py
619+
- CONTRIBUTING.md

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: true
1414
python:
15-
version: 0.5.0-alpha.10
15+
version: 0.5.0-alpha.11
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.335.2
1+
speakeasyVersion: 1.355.0
22
sources:
33
clerk-openapi:
44
sourceNamespace: clerk-openapi
5-
sourceRevisionDigest: sha256:b27dc2dcbc018f51bdb0c345fb124285ef73bf144da22f1d6f965c95821de0ad
6-
sourceBlobDigest: sha256:9fef9c84dbf7932b587e89710f9589daefcd4feecfa103ed6ef006e3a1e532fa
5+
sourceRevisionDigest: sha256:cb8608ec7757028df6422016affe39a59400a122606fe3a64561019546196545
6+
sourceBlobDigest: sha256:5491a54b7c32b3f8a39f3496ab1df0c4858e2ff6f0855d844d2d854bc887cec5
77
tags:
88
- latest
99
- main
1010
targets:
1111
clerk-sdk-python:
1212
source: clerk-openapi
1313
sourceNamespace: clerk-openapi
14-
sourceRevisionDigest: sha256:b27dc2dcbc018f51bdb0c345fb124285ef73bf144da22f1d6f965c95821de0ad
15-
sourceBlobDigest: sha256:9fef9c84dbf7932b587e89710f9589daefcd4feecfa103ed6ef006e3a1e532fa
14+
sourceRevisionDigest: sha256:cb8608ec7757028df6422016affe39a59400a122606fe3a64561019546196545
15+
sourceBlobDigest: sha256:5491a54b7c32b3f8a39f3496ab1df0c4858e2ff6f0855d844d2d854bc887cec5
1616
outLocation: .
1717
workflow:
1818
workflowVersion: 1.0.0

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"python.testing.pytestArgs": ["tests", "-vv"],
33
"python.testing.unittestEnabled": false,
4-
"python.testing.pytestEnabled": true
4+
"python.testing.pytestEnabled": true,
5+
"pylint.args": ["--rcfile=pylintrc"]
56
}

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ poetry add clerk-backend-api
3030
```python
3131
# Synchronous Example
3232
from clerk_backend_api import Clerk
33-
import os
3433

3534
s = Clerk(
36-
bearer_auth=os.getenv("BEARER_AUTH", ""),
35+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
3736
)
3837

3938

@@ -51,11 +50,10 @@ The same SDK client can also be used to make asychronous requests by importing a
5150
# Asynchronous Example
5251
import asyncio
5352
from clerk_backend_api import Clerk
54-
import os
5553

5654
async def main():
5755
s = Clerk(
58-
bearer_auth=os.getenv("BEARER_AUTH", ""),
56+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
5957
)
6058
res = await s.email_addresses.get_async(email_address_id="email_address_id_example")
6159
if res is not None:
@@ -271,10 +269,9 @@ return value of `Next` is `None`, then there are no more pages to be fetched.
271269
Here's an example of one such pagination call:
272270
```python
273271
from clerk_backend_api import Clerk
274-
import os
275272

276273
s = Clerk(
277-
bearer_auth=os.getenv("BEARER_AUTH", ""),
274+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
278275
)
279276

280277

@@ -304,10 +301,9 @@ Certain SDK methods accept file objects as part of a request body or multi-part
304301
305302
```python
306303
from clerk_backend_api import Clerk
307-
import os
308304

309305
s = Clerk(
310-
bearer_auth=os.getenv("BEARER_AUTH", ""),
306+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
311307
)
312308

313309

@@ -375,10 +371,9 @@ Handling errors in this SDK should largely match your expectations. All operati
375371

376372
```python
377373
from clerk_backend_api import Clerk, models
378-
import os
379374

380375
s = Clerk(
381-
bearer_auth=os.getenv("BEARER_AUTH", ""),
376+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
382377
)
383378

384379
res = None
@@ -542,13 +537,12 @@ This SDK supports the following security scheme globally:
542537
| ------------- | ------------- | ------------- |
543538
| `bearer_auth` | http | HTTP Bearer |
544539

545-
To authenticate with the API the `bearer_auth` parameter must be set when initializing the SDK client instance. For example:
540+
To authenticate with the API the `null` parameter must be set when initializing the SDK client instance. For example:
546541
```python
547542
from clerk_backend_api import Clerk
548-
import os
549543

550544
s = Clerk(
551-
bearer_auth=os.getenv("BEARER_AUTH", ""),
545+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
552546
)
553547

554548

@@ -559,6 +553,20 @@ s.misc.get_public_interstitial(frontend_api="frontend-api_1a2b3c4d", publishable
559553
```
560554
<!-- End Authentication [security] -->
561555

556+
<!-- Start Debugging [debug] -->
557+
## Debugging
558+
559+
To emit debug logs for SDK requests and responses you can pass a logger object directly into your SDK object.
560+
561+
```python
562+
from clerk_backend_api import Clerk
563+
import logging
564+
565+
logging.basicConfig(level=logging.DEBUG)
566+
s = Clerk(debug_logger=logging.getLogger("clerk_backend_api"))
567+
```
568+
<!-- End Debugging [debug] -->
569+
562570
<!-- Placeholder for Future Speakeasy SDK Sections -->
563571

564572
# Development

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,14 @@ Based on:
4848
### Generated
4949
- [python v0.5.0-alpha.10] .
5050
### Releases
51-
- [PyPI v0.5.0-alpha.10] https://pypi.org/project/clerk-backend-api/0.5.0-alpha.10 - .
51+
- [PyPI v0.5.0-alpha.10] https://pypi.org/project/clerk-backend-api/0.5.0-alpha.10 - .
52+
53+
## 2024-08-07 04:47:28
54+
### Changes
55+
Based on:
56+
- OpenAPI Doc
57+
- Speakeasy CLI 1.355.0 (2.387.0) https://github.com/speakeasy-api/speakeasy
58+
### Generated
59+
- [python v0.5.0-alpha.11] .
60+
### Releases
61+
- [PyPI v0.5.0-alpha.11] https://pypi.org/project/clerk-backend-api/0.5.0-alpha.11 - .

USAGE.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
```python
33
# Synchronous Example
44
from clerk_backend_api import Clerk
5-
import os
65

76
s = Clerk(
8-
bearer_auth=os.getenv("BEARER_AUTH", ""),
7+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
98
)
109

1110

@@ -23,11 +22,10 @@ The same SDK client can also be used to make asychronous requests by importing a
2322
# Asynchronous Example
2423
import asyncio
2524
from clerk_backend_api import Clerk
26-
import os
2725

2826
async def main():
2927
s = Clerk(
30-
bearer_auth=os.getenv("BEARER_AUTH", ""),
28+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
3129
)
3230
res = await s.email_addresses.get_async(email_address_id="email_address_id_example")
3331
if res is not None:

docs/models/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `bearer_auth` | *str* | :heavy_check_mark: | N/A |
8+
| `bearer_auth` | *Optional[str]* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)