Skip to content

Commit 35627bf

Browse files
authored
Merge pull request #135 from polarsource/speakeasy-sdk-regen-1775811956
chore: 🐝 Update SDK - Generate 0.31.3
2 parents 5e0f51e + e1848b1 commit 35627bf

Some content is hidden

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

57 files changed

+2086
-143
lines changed

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ generation:
3131
persistentEdits: {}
3232
versioningStrategy: automatic
3333
python:
34-
version: 0.31.2
34+
version: 0.31.3
3535
additionalDependencies:
3636
dev:
3737
pydantic-ai-slim: ^0.1.0

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.648.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:49c4260fb21d892c0806141b1628dac500a11a25cb0bf21fde01886d9531420c
6-
sourceBlobDigest: sha256:23dd219dcf0c7f7eb7510d57890c81e72e432537130322bc6ee1ed28a313254a
5+
sourceRevisionDigest: sha256:c88bf8b61c5f3402aaaeeaddd5a6af29008ebf87c4ba877dbea9d2d92789aeb8
6+
sourceBlobDigest: sha256:41cfb03d9b8af58f7956111f7303b50c1e98878164fe4b90a63775af9a19ad7f
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1775204853
9+
- speakeasy-sdk-regen-1775811956
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:49c4260fb21d892c0806141b1628dac500a11a25cb0bf21fde01886d9531420c
16-
sourceBlobDigest: sha256:23dd219dcf0c7f7eb7510d57890c81e72e432537130322bc6ee1ed28a313254a
15+
sourceRevisionDigest: sha256:c88bf8b61c5f3402aaaeeaddd5a6af29008ebf87c4ba877dbea9d2d92789aeb8
16+
sourceBlobDigest: sha256:41cfb03d9b8af58f7956111f7303b50c1e98878164fe4b90a63775af9a19ad7f
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:60244d82a73262f253416c3b349faa7c292bdaec75278f03786e71a9daf907d3
18+
codeSamplesRevisionDigest: sha256:892853abaf8b28ad0852c8514c70882b9321b0a7420773896fff01991d1e4eaa
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ def webhook():
385385
* [get_member](docs/sdks/members/README.md#get_member) - Get Member
386386
* [update_member](docs/sdks/members/README.md#update_member) - Update Member
387387
* [delete_member](docs/sdks/members/README.md#delete_member) - Delete Member
388+
* [get_member_by_external_id](docs/sdks/members/README.md#get_member_by_external_id) - Get Member by External ID
389+
* [update_member_by_external_id](docs/sdks/members/README.md#update_member_by_external_id) - Update Member by External ID
390+
* [delete_member_by_external_id](docs/sdks/members/README.md#delete_member_by_external_id) - Delete Member by External ID
388391

389392
### [meters](docs/sdks/meters/README.md)
390393

@@ -397,6 +400,7 @@ def webhook():
397400
### [metrics](docs/sdks/metricssdk/README.md)
398401

399402
* [get](docs/sdks/metricssdk/README.md#get) - Get Metrics
403+
* [export](docs/sdks/metricssdk/README.md#export) - Export Metrics
400404
* [limits](docs/sdks/metricssdk/README.md#limits) - Get Metrics Limits
401405
* [list_dashboards](docs/sdks/metricssdk/README.md#list_dashboards) - List Metric Dashboards
402406
* [create_dashboard](docs/sdks/metricssdk/README.md#create_dashboard) - Create Metric Dashboard
@@ -581,7 +585,7 @@ with Polar(
581585
* [`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses.
582586
* [`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. *
583587

584-
<details><summary>Less common errors (24)</summary>
588+
<details><summary>Less common errors (25)</summary>
585589

586590
<br />
587591

@@ -592,25 +596,26 @@ with Polar(
592596

593597

594598
**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
595-
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 82 of 174 methods.*
596-
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 174 methods.*
597-
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 174 methods.*
598-
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 174 methods.*
599-
* [`AlreadyActiveSubscriptionError`](./src/polar_sdk/models/alreadyactivesubscriptionerror.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 174 methods.*
600-
* [`NotOpenCheckout`](./src/polar_sdk/models/notopencheckout.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 174 methods.*
601-
* [`PaymentNotReady`](./src/polar_sdk/models/paymentnotready.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 174 methods.*
602-
* [`TrialAlreadyRedeemed`](./src/polar_sdk/models/trialalreadyredeemed.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 174 methods.*
603-
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 174 methods.*
604-
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Payment required to apply the subscription update. Status code `402`. Applicable to 2 of 174 methods.*
605-
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 174 methods.*
606-
* [`MissingInvoiceBillingDetails`](./src/polar_sdk/models/missinginvoicebillingdetails.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 174 methods.*
607-
* [`NotPaidOrder`](./src/polar_sdk/models/notpaidorder.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 174 methods.*
608-
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 174 methods.*
609-
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 174 methods.*
610-
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 174 methods.*
611-
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 174 methods.*
612-
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 174 methods.*
613-
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 174 methods.*
599+
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 85 of 178 methods.*
600+
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 178 methods.*
601+
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 178 methods.*
602+
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 178 methods.*
603+
* [`AlreadyActiveSubscriptionError`](./src/polar_sdk/models/alreadyactivesubscriptionerror.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 178 methods.*
604+
* [`NotOpenCheckout`](./src/polar_sdk/models/notopencheckout.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 178 methods.*
605+
* [`PaymentNotReady`](./src/polar_sdk/models/paymentnotready.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 178 methods.*
606+
* [`TrialAlreadyRedeemed`](./src/polar_sdk/models/trialalreadyredeemed.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 178 methods.*
607+
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 178 methods.*
608+
* [`PaymentFailed`](./src/polar_sdk/models/paymentfailed.py): Payment required to apply the subscription update. Status code `402`. Applicable to 2 of 178 methods.*
609+
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 178 methods.*
610+
* [`MissingInvoiceBillingDetails`](./src/polar_sdk/models/missinginvoicebillingdetails.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 178 methods.*
611+
* [`NotPaidOrder`](./src/polar_sdk/models/notpaidorder.py): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 178 methods.*
612+
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 178 methods.*
613+
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 178 methods.*
614+
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 178 methods.*
615+
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 178 methods.*
616+
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 178 methods.*
617+
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 178 methods.*
618+
* [`ManualRetryLimitExceeded`](./src/polar_sdk/models/manualretrylimitexceeded.py): Manual retry limit exceeded. Status code `429`. Applicable to 1 of 178 methods.*
614619
* [`ResponseValidationError`](./src/polar_sdk/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.
615620

616621
</details>

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,4 +1093,14 @@ Based on:
10931093
### Generated
10941094
- [python v0.31.2] .
10951095
### Releases
1096-
- [PyPI v0.31.2] https://pypi.org/project/polar-sdk/0.31.2 - .
1096+
- [PyPI v0.31.2] https://pypi.org/project/polar-sdk/0.31.2 - .
1097+
1098+
## 2026-04-10 09:05:31
1099+
### Changes
1100+
Based on:
1101+
- OpenAPI Doc
1102+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
1103+
### Generated
1104+
- [python v0.31.3] .
1105+
### Releases
1106+
- [PyPI v0.31.3] https://pypi.org/project/polar-sdk/0.31.3 - .

β€ŽcodeSamples.yamlβ€Ž

Lines changed: 29 additions & 5 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CustomerPortalBenefitGrantsListQueryParamSubscriptionIDFilter
2+
3+
Filter by subscription ID.
4+
5+
6+
## Supported Types
7+
8+
### `str`
9+
10+
```python
11+
value: str = /* values here */
12+
```
13+
14+
### `List[str]`
15+
16+
```python
17+
value: List[str] = /* values here */
18+
```
19+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
| `benefit_id` | [OptionalNullable[models.CustomerPortalBenefitGrantsListQueryParamBenefitIDFilter]](../models/customerportalbenefitgrantslistqueryparambenefitidfilter.md) | :heavy_minus_sign: | Filter by benefit ID. |
1111
| `checkout_id` | [OptionalNullable[models.QueryParamCheckoutIDFilter]](../models/queryparamcheckoutidfilter.md) | :heavy_minus_sign: | Filter by checkout ID. |
1212
| `order_id` | [OptionalNullable[models.CustomerPortalBenefitGrantsListQueryParamOrderIDFilter]](../models/customerportalbenefitgrantslistqueryparamorderidfilter.md) | :heavy_minus_sign: | Filter by order ID. |
13-
| `subscription_id` | [OptionalNullable[models.QueryParamSubscriptionIDFilter]](../models/queryparamsubscriptionidfilter.md) | :heavy_minus_sign: | Filter by subscription ID. |
13+
| `subscription_id` | [OptionalNullable[models.CustomerPortalBenefitGrantsListQueryParamSubscriptionIDFilter]](../models/customerportalbenefitgrantslistqueryparamsubscriptionidfilter.md) | :heavy_minus_sign: | Filter by subscription ID. |
1414
| `member_id` | [OptionalNullable[models.QueryParamMemberIDFilter]](../models/queryparammemberidfilter.md) | :heavy_minus_sign: | Filter by member ID. |
1515
| `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. |
1616
| `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ManualRetryLimitExceeded
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- |
8+
| `error` | *Literal["ManualRetryLimitExceeded"]* | :heavy_check_mark: | N/A | ManualRetryLimitExceeded |
9+
| `detail` | *str* | :heavy_check_mark: | N/A | |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# MembersDeleteMemberByExternalIDRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8+
| `external_id` | *str* | :heavy_check_mark: | The member external ID. |

0 commit comments

Comments
Β (0)