Skip to content

Commit 4440349

Browse files
authored
Merge pull request #179 from clerk/speakeasy-sdk-regen-1756254113
chore: 🐝 Update SDK - Generate 3.3.0
2 parents e632131 + 83d0fb9 commit 4440349

Some content is hidden

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

49 files changed

+1995
-95
lines changed

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

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

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
python:
24-
version: 3.2.1
24+
version: 3.3.0
2525
additionalDependencies:
2626
dev:
2727
pytest: ^8.3.3
2828
main:
2929
cryptography: ^45.0.0
3030
pyjwt: ^2.9.0
31+
allowedRedefinedBuiltins:
32+
- id
33+
- object
3134
author: Clerk
3235
authors:
3336
- Clerk

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.606.0
1+
speakeasyVersion: 1.606.9
22
sources:
33
clerk-openapi:
44
sourceNamespace: clerk-openapi
5-
sourceRevisionDigest: sha256:9967946318f596b18f5ca9ec87ca7451e553e758302ebd54410cca2624a541e6
6-
sourceBlobDigest: sha256:b61c1d450eba9814305ea3b98661edb3d57a49706633dd56c3874c58c38c2532
5+
sourceRevisionDigest: sha256:eba3e68eccfac3528ae0d8248b08c9298ba488d1bc599311757d8f0284286b3e
6+
sourceBlobDigest: sha256:5a32ff7e415d63bb23f117ea963f1e26397d9ae474b8522a1c59a2218c40748f
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1755562956
9+
- speakeasy-sdk-regen-1756254113
1010
- "2025-04-10"
1111
targets:
1212
clerk-sdk-python:
1313
source: clerk-openapi
1414
sourceNamespace: clerk-openapi
15-
sourceRevisionDigest: sha256:9967946318f596b18f5ca9ec87ca7451e553e758302ebd54410cca2624a541e6
16-
sourceBlobDigest: sha256:b61c1d450eba9814305ea3b98661edb3d57a49706633dd56c3874c58c38c2532
15+
sourceRevisionDigest: sha256:eba3e68eccfac3528ae0d8248b08c9298ba488d1bc599311757d8f0284286b3e
16+
sourceBlobDigest: sha256:5a32ff7e415d63bb23f117ea963f1e26397d9ae474b8522a1c59a2218c40748f
1717
codeSamplesNamespace: clerk-openapi-python-code-samples
18-
codeSamplesRevisionDigest: sha256:388e8979cd1e09156e2e19ca9554f47faca1fad1a5c1f6995f5cd4467e1d5808
18+
codeSamplesRevisionDigest: sha256:ac7048d5ef5210de712396f9754a7ed874ae6f54343646ff5c9d775059cd76a0
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def verify_machine_token(request: httpx.Request):
291291

292292
* [list_plans](docs/sdks/commerce/README.md#list_plans) - List all commerce plans
293293
* [list_subscription_items](docs/sdks/commerce/README.md#list_subscription_items) - List all subscription items
294+
* [cancel_subscription_item](docs/sdks/commerce/README.md#cancel_subscription_item) - Cancel a subscription item
294295

295296
### [domains](docs/sdks/domainssdk/README.md)
296297

@@ -420,6 +421,7 @@ def verify_machine_token(request: httpx.Request):
420421
* [merge_metadata](docs/sdks/organizationssdk/README.md#merge_metadata) - Merge and update metadata for an organization
421422
* [upload_logo](docs/sdks/organizationssdk/README.md#upload_logo) - Upload a logo for the organization
422423
* [delete_logo](docs/sdks/organizationssdk/README.md#delete_logo) - Delete the organization's logo.
424+
* [get_billing_subscription](docs/sdks/organizationssdk/README.md#get_billing_subscription) - Retrieve an organization's billing subscription
423425

424426
### [phone_numbers](docs/sdks/phonenumbers/README.md)
425427

@@ -492,6 +494,7 @@ def verify_machine_token(request: httpx.Request):
492494
* [set_profile_image](docs/sdks/users/README.md#set_profile_image) - Set user profile image
493495
* [delete_profile_image](docs/sdks/users/README.md#delete_profile_image) - Delete user profile image
494496
* [update_metadata](docs/sdks/users/README.md#update_metadata) - Merge and update a user's metadata
497+
* [get_billing_subscription](docs/sdks/users/README.md#get_billing_subscription) - Retrieve a user's billing subscription
495498
* [get_o_auth_access_token](docs/sdks/users/README.md#get_o_auth_access_token) - Retrieve the OAuth access token of a user
496499
* [get_organization_memberships](docs/sdks/users/README.md#get_organization_memberships) - Retrieve all memberships for a user
497500
* [get_organization_invitations](docs/sdks/users/README.md#get_organization_invitations) - Retrieve all invitations for a user
@@ -509,6 +512,8 @@ def verify_machine_token(request: httpx.Request):
509512

510513
* [list](docs/sdks/waitlistentriessdk/README.md#list) - List all waitlist entries
511514
* [create](docs/sdks/waitlistentriessdk/README.md#create) - Create a waitlist entry
515+
* [invite](docs/sdks/waitlistentriessdk/README.md#invite) - Invite a waitlist entry
516+
* [reject](docs/sdks/waitlistentriessdk/README.md#reject) - Reject a waitlist entry
512517

513518
### [webhooks](docs/sdks/webhooks/README.md)
514519

@@ -651,17 +656,17 @@ with Clerk(
651656

652657

653658
**Inherit from [`ClerkBaseError`](./src/clerk_backend_api/models/clerkbaseerror.py)**:
654-
* [`CreateM2MTokenM2mResponseBody`](./src/clerk_backend_api/models/createm2mtokenm2mresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 151 methods.*
655-
* [`GetM2MTokensM2mResponseBody`](./src/clerk_backend_api/models/getm2mtokensm2mresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 151 methods.*
656-
* [`RevokeM2MTokenM2mResponseBody`](./src/clerk_backend_api/models/revokem2mtokenm2mresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 151 methods.*
657-
* [`VerifyM2MTokenM2mResponseBody`](./src/clerk_backend_api/models/verifym2mtokenm2mresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 151 methods.*
658-
* [`VerifyOAuthAccessTokenOauthAccessTokensResponseBody`](./src/clerk_backend_api/models/verifyoauthaccesstokenoauthaccesstokensresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 151 methods.*
659-
* [`GetM2MTokensM2mResponseResponseBody`](./src/clerk_backend_api/models/getm2mtokensm2mresponseresponsebody.py): 403 Forbidden. Status code `403`. Applicable to 1 of 151 methods.*
660-
* [`GetM2MTokensM2mResponse404ResponseBody`](./src/clerk_backend_api/models/getm2mtokensm2mresponse404responsebody.py): 404 Not Found. Status code `404`. Applicable to 1 of 151 methods.*
661-
* [`RevokeM2MTokenM2mResponseResponseBody`](./src/clerk_backend_api/models/revokem2mtokenm2mresponseresponsebody.py): 404 Not Found. Status code `404`. Applicable to 1 of 151 methods.*
662-
* [`VerifyM2MTokenM2mResponseResponseBody`](./src/clerk_backend_api/models/verifym2mtokenm2mresponseresponsebody.py): 404 Not Found. Status code `404`. Applicable to 1 of 151 methods.*
663-
* [`VerifyOAuthAccessTokenOauthAccessTokensResponseResponseBody`](./src/clerk_backend_api/models/verifyoauthaccesstokenoauthaccesstokensresponseresponsebody.py): 404 Not Found. Status code `404`. Applicable to 1 of 151 methods.*
664-
* [`CreateM2MTokenM2mResponseResponseBody`](./src/clerk_backend_api/models/createm2mtokenm2mresponseresponsebody.py): 409 Conflict. Status code `409`. Applicable to 1 of 151 methods.*
659+
* [`CreateM2MTokenM2mResponseBody`](./src/clerk_backend_api/models/createm2mtokenm2mresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 156 methods.*
660+
* [`GetM2MTokensM2mResponseBody`](./src/clerk_backend_api/models/getm2mtokensm2mresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 156 methods.*
661+
* [`RevokeM2MTokenM2mResponseBody`](./src/clerk_backend_api/models/revokem2mtokenm2mresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 156 methods.*
662+
* [`VerifyM2MTokenM2mResponseBody`](./src/clerk_backend_api/models/verifym2mtokenm2mresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 156 methods.*
663+
* [`VerifyOAuthAccessTokenOauthAccessTokensResponseBody`](./src/clerk_backend_api/models/verifyoauthaccesstokenoauthaccesstokensresponsebody.py): 400 Bad Request. Status code `400`. Applicable to 1 of 156 methods.*
664+
* [`GetM2MTokensM2mResponseResponseBody`](./src/clerk_backend_api/models/getm2mtokensm2mresponseresponsebody.py): 403 Forbidden. Status code `403`. Applicable to 1 of 156 methods.*
665+
* [`GetM2MTokensM2mResponse404ResponseBody`](./src/clerk_backend_api/models/getm2mtokensm2mresponse404responsebody.py): 404 Not Found. Status code `404`. Applicable to 1 of 156 methods.*
666+
* [`RevokeM2MTokenM2mResponseResponseBody`](./src/clerk_backend_api/models/revokem2mtokenm2mresponseresponsebody.py): 404 Not Found. Status code `404`. Applicable to 1 of 156 methods.*
667+
* [`VerifyM2MTokenM2mResponseResponseBody`](./src/clerk_backend_api/models/verifym2mtokenm2mresponseresponsebody.py): 404 Not Found. Status code `404`. Applicable to 1 of 156 methods.*
668+
* [`VerifyOAuthAccessTokenOauthAccessTokensResponseResponseBody`](./src/clerk_backend_api/models/verifyoauthaccesstokenoauthaccesstokensresponseresponsebody.py): 404 Not Found. Status code `404`. Applicable to 1 of 156 methods.*
669+
* [`CreateM2MTokenM2mResponseResponseBody`](./src/clerk_backend_api/models/createm2mtokenm2mresponseresponsebody.py): 409 Conflict. Status code `409`. Applicable to 1 of 156 methods.*
665670
* [`ResponseValidationError`](./src/clerk_backend_api/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
666671

667672
</details>

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,4 +448,14 @@ Based on:
448448
### Generated
449449
- [python v3.2.1] .
450450
### Releases
451-
- [PyPI v3.2.1] https://pypi.org/project/clerk-backend-api/3.2.1 - .
451+
- [PyPI v3.2.1] https://pypi.org/project/clerk-backend-api/3.2.1 - .
452+
453+
## 2025-08-29 16:44:24
454+
### Changes
455+
Based on:
456+
- OpenAPI Doc
457+
- Speakeasy CLI 1.606.9 (2.687.13) https://github.com/speakeasy-api/speakeasy
458+
### Generated
459+
- [python v3.3.0] .
460+
### Releases
461+
- [PyPI v3.3.0] https://pypi.org/project/clerk-backend-api/3.3.0 - .
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CancelCommerceSubscriptionItemRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
8+
| `subscription_item_id` | *str* | :heavy_check_mark: | The ID of the subscription item to cancel |
9+
| `end_now` | *Optional[bool]* | :heavy_minus_sign: | Whether to cancel the subscription immediately (true) or at the end of the current billing period (false, default) |
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# CommerceSubscription
2+
3+
A commerce subscription.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
10+
| `object` | [models.CommerceSubscriptionObject](../models/commercesubscriptionobject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. |
11+
| `id` | *str* | :heavy_check_mark: | Unique identifier for the commerce subscription. |
12+
| `instance_id` | *str* | :heavy_check_mark: | The ID of the instance this subscription belongs to. |
13+
| `status` | [models.CommerceSubscriptionStatus](../models/commercesubscriptionstatus.md) | :heavy_check_mark: | The current status of the subscription. |
14+
| `payer_id` | *str* | :heavy_check_mark: | The ID of the payer for this subscription. |
15+
| `created_at` | *int* | :heavy_check_mark: | Unix timestamp (milliseconds) of creation. |
16+
| `updated_at` | *int* | :heavy_check_mark: | Unix timestamp (milliseconds) of last update. |
17+
| `active_at` | *OptionalNullable[int]* | :heavy_minus_sign: | Unix timestamp (milliseconds) when the subscription became active. |
18+
| `past_due_at` | *OptionalNullable[int]* | :heavy_minus_sign: | Unix timestamp (milliseconds) when the subscription became past due. |
19+
| `subscription_items` | List[[models.CommerceSubscriptionItem](../models/commercesubscriptionitem.md)] | :heavy_check_mark: | Array of subscription items in this subscription. |
20+
| `next_payment` | [Optional[models.CommerceSubscriptionNextPayment]](../models/commercesubscriptionnextpayment.md) | :heavy_minus_sign: | N/A |
21+
| `eligible_for_free_trial` | *OptionalNullable[bool]* | :heavy_minus_sign: | Whether the payer is eligible for a free trial. |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CommerceSubscriptionNextPayment
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
8+
| `time` | *int* | :heavy_check_mark: | Unix timestamp (milliseconds) of the next payment. |
9+
| `date_` | *int* | :heavy_check_mark: | Unix timestamp (milliseconds) of the next payment date. |
10+
| `amount` | [models.CommerceMoneyResponse](../models/commercemoneyresponse.md) | :heavy_check_mark: | N/A |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CommerceSubscriptionObject
2+
3+
String representing the object's type. Objects of the same type share the same value.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ----------------------- | ----------------------- |
10+
| `COMMERCE_SUBSCRIPTION` | commerce_subscription |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# CommerceSubscriptionStatus
2+
3+
The current status of the subscription.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ------------ | ------------ |
10+
| `ACTIVE` | active |
11+
| `PAST_DUE` | past_due |
12+
| `CANCELED` | canceled |
13+
| `ENDED` | ended |
14+
| `ABANDONED` | abandoned |
15+
| `INCOMPLETE` | incomplete |

0 commit comments

Comments
Β (0)