Skip to content

Commit 2a7c114

Browse files
committed
## Python SDK Changes:
* `clerk.billing.apply_subscription_item_discount()`: **Added** * `clerk.billing.remove_subscription_item_discount()`: **Added** * `clerk.directories.list()`: **Added** * `clerk.directories.create()`: **Added** * `clerk.directories.get()`: **Added** * `clerk.directories.update()`: **Added** * `clerk.directories.delete()`: **Added** * `clerk.directories.rotate_api_key()`: **Added** * `clerk.directories.list_group_role_mappings()`: **Added** * `clerk.directories.create_group_role_mapping()`: **Added** * `clerk.directories.replace_group_role_mappings()`: **Added** * `clerk.directories.delete_group_role_mapping()`: **Added** * `clerk.users.list()`: * `request.starting_after` **Added** * `clerk.instance_settings.get()`: `response.workspace_id` **Added** * `clerk.enterprise_connections.list()`: `response.data[].custom_attributes[].directory_path` **Added** * `clerk.enterprise_connections.create()`: * `request.custom_attributes[].directory_path` **Added** * `response.custom_attributes[].directory_path` **Added** * `clerk.enterprise_connections.get()`: `response.custom_attributes[].directory_path` **Added** * `clerk.enterprise_connections.update()`: * `request.custom_attributes[].directory_path` **Added** * `response.custom_attributes[].directory_path` **Added** * `clerk.scim_directories.list()`: `response.data[].custom_attributes[].directory_path` **Added** * `clerk.scim_directories.create()`: `response.custom_attributes[].directory_path` **Added** * `clerk.scim_directories.get()`: `response.custom_attributes[].directory_path` **Added** * `clerk.scim_directories.update()`: `response.custom_attributes[].directory_path` **Added** * `clerk.scim_directories.rotate_api_key()`: `response.custom_attributes[].directory_path` **Added** * `clerk.scim_directories.list_group_role_mappings()`: `response.data[]` **Changed** * `clerk.scim_directories.create_group_role_mapping()`: `response` **Changed** * `clerk.scim_directories.replace_group_role_mappings()`: `response.data[]` **Changed**
1 parent 86216c3 commit 2a7c114

124 files changed

Lines changed: 5980 additions & 539 deletions

File tree

Some content is hidden

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

.speakeasy/gen.lock

Lines changed: 504 additions & 149 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
@@ -29,7 +29,7 @@ generation:
2929
generateNewTests: false
3030
skipResponseBodyAssertions: false
3131
python:
32-
version: 7.0.0
32+
version: 7.1.0
3333
additionalDependencies:
3434
dev:
3535
pytest: ^8.3.3
@@ -65,6 +65,7 @@ python:
6565
flatteningOrder: parameters-first
6666
forwardCompatibleEnumsByDefault: false
6767
forwardCompatibleUnionsByDefault: "false"
68+
httpClientLibrary: httpx
6869
imports:
6970
option: openapi
7071
paths:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.793.0
1+
speakeasyVersion: 1.794.1
22
sources:
33
clerk-openapi:
44
sourceNamespace: clerk-openapi
5-
sourceRevisionDigest: sha256:bd0ab322463c77574aedf25a6a1096c2d83c979091a90549aa26cda62d070f8e
6-
sourceBlobDigest: sha256:cd24ae3cad1eb4442115f308e7a4007f47d67aa99f55067edda80def25fcaabe
5+
sourceRevisionDigest: sha256:fd8fcc47019aa9d86e36ce5034253fbbff0bcfbb23d85cac91cb60775e77d325
6+
sourceBlobDigest: sha256:1f1c829647955790ae5f1bd9773d99fdf9a743ea1d5530fb6efd200cf92c8e40
77
tags:
88
- latest
99
- "2026-05-12"
1010
targets:
1111
clerk-sdk-python:
1212
source: clerk-openapi
1313
sourceNamespace: clerk-openapi
14-
sourceRevisionDigest: sha256:bd0ab322463c77574aedf25a6a1096c2d83c979091a90549aa26cda62d070f8e
15-
sourceBlobDigest: sha256:cd24ae3cad1eb4442115f308e7a4007f47d67aa99f55067edda80def25fcaabe
14+
sourceRevisionDigest: sha256:fd8fcc47019aa9d86e36ce5034253fbbff0bcfbb23d85cac91cb60775e77d325
15+
sourceBlobDigest: sha256:1f1c829647955790ae5f1bd9773d99fdf9a743ea1d5530fb6efd200cf92c8e40
1616
codeSamplesNamespace: clerk-openapi-python-code-samples
17-
codeSamplesRevisionDigest: sha256:9b07759bffaa23cbe523a107eace55b58532d750e74bfedf47a32c6bdf2bd801
17+
codeSamplesRevisionDigest: sha256:61587749302090b0615e45921e2a7cdf7e6f5650170760dc6e3a320775649662
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

README-PYPI.md

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

README.md

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

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,4 +648,14 @@ Based on:
648648
### Generated
649649
- [python v7.0.0] .
650650
### Releases
651-
- [PyPI v7.0.0] https://pypi.org/project/clerk-backend-api/7.0.0 - .
651+
- [PyPI v7.0.0] https://pypi.org/project/clerk-backend-api/7.0.0 - .
652+
653+
## 2026-08-18 00:14:33
654+
### Changes
655+
Based on:
656+
- OpenAPI Doc
657+
- Speakeasy CLI 1.794.1 (2.931.0) https://github.com/speakeasy-api/speakeasy
658+
### Generated
659+
- [python v7.1.0] .
660+
### Releases
661+
- [PyPI v7.1.0] https://pypi.org/project/clerk-backend-api/7.1.0 - .

docs/models/amountoff.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# AmountOff
2+
3+
Fixed amount off when the effect is fixed_amount.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
10+
| `amount` | *int* | :heavy_check_mark: | The amount in cents. |
11+
| `amount_formatted` | *str* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). |
12+
| `currency` | *str* | :heavy_check_mark: | The currency code (e.g., "USD"). |
13+
| `currency_symbol` | *str* | :heavy_check_mark: | The currency symbol (e.g., "$"). |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ApplyBillingSubscriptionItemDiscountRequest
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 apply the discount to |
9+
| `apply_commerce_discount_request` | [models.ApplyCommerceDiscountRequest](../models/applycommercediscountrequest.md) | :heavy_check_mark: | Parameters for applying the discount |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ApplyCommerceDiscountRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- |
8+
| `discount_id` | *str* | :heavy_check_mark: | The ID of the discount to apply to the subscription item. |
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# CommerceDiscountRedemptionResponse
2+
3+
A commerce discount redemption.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
10+
| `object` | [models.CommerceDiscountRedemptionResponseObject](../models/commercediscountredemptionresponseobject.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 discount redemption. |
12+
| `subscription_item_id` | *str* | :heavy_check_mark: | Unique identifier for the subscription item the discount was applied to. |
13+
| `discount_id` | *str* | :heavy_check_mark: | Unique identifier for the discount that was applied. |
14+
| `name` | *Optional[str]* | :heavy_minus_sign: | The display name of the discount. |
15+
| `source` | [models.Source](../models/source.md) | :heavy_check_mark: | How the discount was applied to the subscription item. |
16+
| `promo_code` | *Optional[str]* | :heavy_minus_sign: | The promo code used to redeem the discount, when applicable. |
17+
| `effect` | [Optional[models.Effect]](../models/effect.md) | :heavy_minus_sign: | The snapshotted discount effect. |
18+
| `percent_off` | *OptionalNullable[float]* | :heavy_minus_sign: | Percent off when the effect is percentage. |
19+
| `amount_off` | [OptionalNullable[models.AmountOff]](../models/amountoff.md) | :heavy_minus_sign: | Fixed amount off when the effect is fixed_amount. |
20+
| `amount` | [OptionalNullable[models.CommerceDiscountRedemptionResponseAmount]](../models/commercediscountredemptionresponseamount.md) | :heavy_minus_sign: | How much this discount takes off the subscription item's next renewal charge.<br/>Present for either effect when next-payment data is available. |
21+
| `cycles_remaining` | *Nullable[int]* | :heavy_check_mark: | Remaining billing cycles the discount applies to. Null means the discount lasts forever. |
22+
| `cycles_applied` | *int* | :heavy_check_mark: | Number of billing cycles the discount has already been applied to. |
23+
| `status` | [Optional[models.CommerceDiscountRedemptionResponseStatus]](../models/commercediscountredemptionresponsestatus.md) | :heavy_minus_sign: | Current status of the discount redemption. |
24+
| `redeemed_at` | *int* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the discount was redeemed. |
25+
| `redeemed_by` | *Nullable[str]* | :heavy_check_mark: | Identifier of the actor that redeemed the discount, when available. |

0 commit comments

Comments
 (0)