Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
653 changes: 504 additions & 149 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 7.0.0
version: 7.1.0
additionalDependencies:
dev:
pytest: ^8.3.3
Expand Down Expand Up @@ -65,6 +65,7 @@ python:
flatteningOrder: parameters-first
forwardCompatibleEnumsByDefault: false
forwardCompatibleUnionsByDefault: "false"
httpClientLibrary: httpx
imports:
option: openapi
paths:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.793.0
speakeasyVersion: 1.795.0
sources:
clerk-openapi:
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:bd0ab322463c77574aedf25a6a1096c2d83c979091a90549aa26cda62d070f8e
sourceBlobDigest: sha256:cd24ae3cad1eb4442115f308e7a4007f47d67aa99f55067edda80def25fcaabe
sourceRevisionDigest: sha256:fd8fcc47019aa9d86e36ce5034253fbbff0bcfbb23d85cac91cb60775e77d325
sourceBlobDigest: sha256:1f1c829647955790ae5f1bd9773d99fdf9a743ea1d5530fb6efd200cf92c8e40
tags:
- latest
- "2026-05-12"
targets:
clerk-sdk-python:
source: clerk-openapi
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:bd0ab322463c77574aedf25a6a1096c2d83c979091a90549aa26cda62d070f8e
sourceBlobDigest: sha256:cd24ae3cad1eb4442115f308e7a4007f47d67aa99f55067edda80def25fcaabe
sourceRevisionDigest: sha256:fd8fcc47019aa9d86e36ce5034253fbbff0bcfbb23d85cac91cb60775e77d325
sourceBlobDigest: sha256:1f1c829647955790ae5f1bd9773d99fdf9a743ea1d5530fb6efd200cf92c8e40
codeSamplesNamespace: clerk-openapi-python-code-samples
codeSamplesRevisionDigest: sha256:9b07759bffaa23cbe523a107eace55b58532d750e74bfedf47a32c6bdf2bd801
codeSamplesRevisionDigest: sha256:61587749302090b0615e45921e2a7cdf7e6f5650170760dc6e3a320775649662
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
111 changes: 70 additions & 41 deletions README-PYPI.md

Large diffs are not rendered by default.

111 changes: 70 additions & 41 deletions README.md

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,4 +648,14 @@ Based on:
### Generated
- [python v7.0.0] .
### Releases
- [PyPI v7.0.0] https://pypi.org/project/clerk-backend-api/7.0.0 - .
- [PyPI v7.0.0] https://pypi.org/project/clerk-backend-api/7.0.0 - .

## 2026-08-19 00:14:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.795.0 (2.931.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v7.1.0] .
### Releases
- [PyPI v7.1.0] https://pypi.org/project/clerk-backend-api/7.1.0 - .
13 changes: 13 additions & 0 deletions docs/models/amountoff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AmountOff

Fixed amount off when the effect is fixed_amount.


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
| `amount` | *int* | :heavy_check_mark: | The amount in cents. |
| `amount_formatted` | *str* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). |
| `currency` | *str* | :heavy_check_mark: | The currency code (e.g., "USD"). |
| `currency_symbol` | *str* | :heavy_check_mark: | The currency symbol (e.g., "$"). |
9 changes: 9 additions & 0 deletions docs/models/applybillingsubscriptionitemdiscountrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ApplyBillingSubscriptionItemDiscountRequest


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| `subscription_item_id` | *str* | :heavy_check_mark: | The ID of the subscription item to apply the discount to |
| `apply_commerce_discount_request` | [models.ApplyCommerceDiscountRequest](../models/applycommercediscountrequest.md) | :heavy_check_mark: | Parameters for applying the discount |
8 changes: 8 additions & 0 deletions docs/models/applycommercediscountrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ApplyCommerceDiscountRequest


## Fields

| Field | Type | Required | Description |
| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- |
| `discount_id` | *str* | :heavy_check_mark: | The ID of the discount to apply to the subscription item. |
25 changes: 25 additions & 0 deletions docs/models/commercediscountredemptionresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# CommerceDiscountRedemptionResponse

A commerce discount redemption.


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `object` | [models.CommerceDiscountRedemptionResponseObject](../models/commercediscountredemptionresponseobject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. |
| `id` | *str* | :heavy_check_mark: | Unique identifier for the discount redemption. |
| `subscription_item_id` | *str* | :heavy_check_mark: | Unique identifier for the subscription item the discount was applied to. |
| `discount_id` | *str* | :heavy_check_mark: | Unique identifier for the discount that was applied. |
| `name` | *Optional[str]* | :heavy_minus_sign: | The display name of the discount. |
| `source` | [models.Source](../models/source.md) | :heavy_check_mark: | How the discount was applied to the subscription item. |
| `promo_code` | *Optional[str]* | :heavy_minus_sign: | The promo code used to redeem the discount, when applicable. |
| `effect` | [Optional[models.Effect]](../models/effect.md) | :heavy_minus_sign: | The snapshotted discount effect. |
| `percent_off` | *OptionalNullable[float]* | :heavy_minus_sign: | Percent off when the effect is percentage. |
| `amount_off` | [OptionalNullable[models.AmountOff]](../models/amountoff.md) | :heavy_minus_sign: | Fixed amount off when the effect is fixed_amount. |
| `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. |
| `cycles_remaining` | *Nullable[int]* | :heavy_check_mark: | Remaining billing cycles the discount applies to. Null means the discount lasts forever. |
| `cycles_applied` | *int* | :heavy_check_mark: | Number of billing cycles the discount has already been applied to. |
| `status` | [Optional[models.CommerceDiscountRedemptionResponseStatus]](../models/commercediscountredemptionresponsestatus.md) | :heavy_minus_sign: | Current status of the discount redemption. |
| `redeemed_at` | *int* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the discount was redeemed. |
| `redeemed_by` | *Nullable[str]* | :heavy_check_mark: | Identifier of the actor that redeemed the discount, when available. |
14 changes: 14 additions & 0 deletions docs/models/commercediscountredemptionresponseamount.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# CommerceDiscountRedemptionResponseAmount

How much this discount takes off the subscription item's next renewal charge.
Present for either effect when next-payment data is available.


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
| `amount` | *int* | :heavy_check_mark: | The amount in cents. |
| `amount_formatted` | *str* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). |
| `currency` | *str* | :heavy_check_mark: | The currency code (e.g., "USD"). |
| `currency_symbol` | *str* | :heavy_check_mark: | The currency symbol (e.g., "$"). |
18 changes: 18 additions & 0 deletions docs/models/commercediscountredemptionresponseobject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CommerceDiscountRedemptionResponseObject

String representing the object's type. Objects of the same type share the same value.

## Example Usage

```python
from clerk_backend_api.models import CommerceDiscountRedemptionResponseObject

value = CommerceDiscountRedemptionResponseObject.COMMERCE_DISCOUNT_REDEMPTION
```


## Values

| Name | Value |
| ------------------------------ | ------------------------------ |
| `COMMERCE_DISCOUNT_REDEMPTION` | commerce_discount_redemption |
20 changes: 20 additions & 0 deletions docs/models/commercediscountredemptionresponsestatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# CommerceDiscountRedemptionResponseStatus

Current status of the discount redemption.

## Example Usage

```python
from clerk_backend_api.models import CommerceDiscountRedemptionResponseStatus

value = CommerceDiscountRedemptionResponseStatus.ACTIVE
```


## Values

| Name | Value |
| ----------- | ----------- |
| `ACTIVE` | active |
| `EXHAUSTED` | exhausted |
| `REMOVED` | removed |
Loading