Skip to content

Commit f6a3759

Browse files
authored
Merge pull request #124 from polarsource/speakeasy-sdk-regen-1768932754
chore: 🐝 Update SDK - Generate 0.28.4
2 parents 8e33505 + 7fdbc3e commit f6a3759

94 files changed

Lines changed: 2997 additions & 249 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: 222 additions & 60 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
@@ -29,7 +29,7 @@ generation:
2929
skipResponseBodyAssertions: false
3030
persistentEdits: {}
3131
python:
32-
version: 0.28.3
32+
version: 0.28.4
3333
additionalDependencies:
3434
dev:
3535
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:f8a25e173ac2e4a97ce01b384cc1c068daf1f0ffd68fc6fdb6b240ad1e77b4e8
6-
sourceBlobDigest: sha256:a3b19b5d104c68d1dd346cbe329580531f8156a379f6906daa8f489234d3edc4
5+
sourceRevisionDigest: sha256:ac1d60b4cc6260c4a5b529dd39b3e032ed58a3a2d3ea378bdd4e4fa72b131aa0
6+
sourceBlobDigest: sha256:096ba43e442c92fd4061be10bd3518deb9bcbeadf31f8fa9c4a0b573964612b4
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1768349821
9+
- speakeasy-sdk-regen-1768932754
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:f8a25e173ac2e4a97ce01b384cc1c068daf1f0ffd68fc6fdb6b240ad1e77b4e8
16-
sourceBlobDigest: sha256:a3b19b5d104c68d1dd346cbe329580531f8156a379f6906daa8f489234d3edc4
15+
sourceRevisionDigest: sha256:ac1d60b4cc6260c4a5b529dd39b3e032ed58a3a2d3ea378bdd4e4fa72b131aa0
16+
sourceBlobDigest: sha256:096ba43e442c92fd4061be10bd3518deb9bcbeadf31f8fa9c4a0b573964612b4
1717
codeSamplesNamespace: polar-oas-py-code-samples
18-
codeSamplesRevisionDigest: sha256:25dcc53116af6ca77318765d1c285402a5a6cda82f76c0a4ec5faed197cc511c
18+
codeSamplesRevisionDigest: sha256:6e5cc55e4e6ae0fee0a867f69aa42cda7100e4804535659ad9cdbf6730b9a8ac
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,13 @@ def webhook():
420420
* [generate_invoice](docs/sdks/orders/README.md#generate_invoice) - Generate Order Invoice
421421
* [invoice](docs/sdks/orders/README.md#invoice) - Get Order Invoice
422422

423+
### [organization_access_tokens](docs/sdks/organizationaccesstokens/README.md)
424+
425+
* [list](docs/sdks/organizationaccesstokens/README.md#list) - List
426+
* [create](docs/sdks/organizationaccesstokens/README.md#create) - Create
427+
* [update](docs/sdks/organizationaccesstokens/README.md#update) - Update
428+
* [delete](docs/sdks/organizationaccesstokens/README.md#delete) - Delete
429+
423430
### [organizations](docs/sdks/organizations/README.md)
424431

425432
* [list](docs/sdks/organizations/README.md#list) - List Organizations
@@ -577,24 +584,24 @@ with Polar(
577584

578585

579586
**Inherit from [`PolarError`](./src/polar_sdk/models/polarerror.py)**:
580-
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 82 of 162 methods.*
581-
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 162 methods.*
582-
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 162 methods.*
583-
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 162 methods.*
584-
* [`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 162 methods.*
585-
* [`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 162 methods.*
586-
* [`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 162 methods.*
587-
* [`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 162 methods.*
588-
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 162 methods.*
589-
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 162 methods.*
590-
* [`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 162 methods.*
591-
* [`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 162 methods.*
592-
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 162 methods.*
593-
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 162 methods.*
594-
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 162 methods.*
595-
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 162 methods.*
596-
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 162 methods.*
597-
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 162 methods.*
587+
* [`ResourceNotFound`](./src/polar_sdk/models/resourcenotfound.py): Status code `404`. Applicable to 82 of 166 methods.*
588+
* [`NotPermitted`](./src/polar_sdk/models/notpermitted.py): Status code `403`. Applicable to 10 of 166 methods.*
589+
* [`Unauthorized`](./src/polar_sdk/models/unauthorized.py): Not authorized to manage license key. Status code `401`. Applicable to 5 of 166 methods.*
590+
* [`AlreadyCanceledSubscription`](./src/polar_sdk/models/alreadycanceledsubscription.py): Status code `403`. Applicable to 4 of 166 methods.*
591+
* [`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 166 methods.*
592+
* [`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 166 methods.*
593+
* [`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 166 methods.*
594+
* [`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 166 methods.*
595+
* [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 166 methods.*
596+
* [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 166 methods.*
597+
* [`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 166 methods.*
598+
* [`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 166 methods.*
599+
* [`PaymentError`](./src/polar_sdk/models/paymenterror.py): The payment failed. Status code `400`. Applicable to 1 of 166 methods.*
600+
* [`CustomerNotReady`](./src/polar_sdk/models/customernotready.py): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 166 methods.*
601+
* [`PaymentMethodInUseByActiveSubscription`](./src/polar_sdk/models/paymentmethodinusebyactivesubscription.py): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 166 methods.*
602+
* [`RefundedAlready`](./src/polar_sdk/models/refundedalready.py): Order is already fully refunded. Status code `403`. Applicable to 1 of 166 methods.*
603+
* [`PaymentAlreadyInProgress`](./src/polar_sdk/models/paymentalreadyinprogress.py): Payment already in progress. Status code `409`. Applicable to 1 of 166 methods.*
604+
* [`OrderNotEligibleForRetry`](./src/polar_sdk/models/ordernoteligibleforretry.py): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 166 methods.*
598605
* [`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.
599606

600607
</details>

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,4 +1013,14 @@ Based on:
10131013
### Generated
10141014
- [python v0.28.3] .
10151015
### Releases
1016-
- [PyPI v0.28.3] https://pypi.org/project/polar-sdk/0.28.3 - .
1016+
- [PyPI v0.28.3] https://pypi.org/project/polar-sdk/0.28.3 - .
1017+
1018+
## 2026-01-26 15:34:12
1019+
### Changes
1020+
Based on:
1021+
- OpenAPI Doc
1022+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
1023+
### Generated
1024+
- [python v0.28.4] .
1025+
### Releases
1026+
- [PyPI v0.28.4] https://pypi.org/project/polar-sdk/0.28.4 - .

codeSamples.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ actions:
452452
"x-codeSamples":
453453
- "lang": "python"
454454
"label": "Python (SDK)"
455-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n polar.customers.delete_external(external_id=\"<id>\")\n\n # Use the SDK ..."
455+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n polar.customers.delete_external(external_id=\"<id>\", anonymize=False)\n\n # Use the SDK ..."
456456
- target: $["paths"]["/v1/customers/external/{external_id}"]["get"]
457457
update:
458458
"x-codeSamples":
@@ -476,7 +476,7 @@ actions:
476476
"x-codeSamples":
477477
- "lang": "python"
478478
"label": "Python (SDK)"
479-
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n polar.customers.delete(id=\"<value>\")\n\n # Use the SDK ..."
479+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n polar.customers.delete(id=\"<value>\", anonymize=False)\n\n # Use the SDK ..."
480480
- target: $["paths"]["/v1/customers/{id}"]["get"]
481481
update:
482482
"x-codeSamples":
@@ -813,6 +813,30 @@ actions:
813813
- "lang": "python"
814814
"label": "Python (SDK)"
815815
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.orders.generate_invoice(id=\"<value>\")\n\n # Handle response\n print(res)"
816+
- target: $["paths"]["/v1/organization-access-tokens/"]["get"]
817+
update:
818+
"x-codeSamples":
819+
- "lang": "python"
820+
"label": "Python (SDK)"
821+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.organization_access_tokens.list(organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\", page=1, limit=10)\n\n while res is not None:\n # Handle items\n\n res = res.next()"
822+
- target: $["paths"]["/v1/organization-access-tokens/"]["post"]
823+
update:
824+
"x-codeSamples":
825+
- "lang": "python"
826+
"label": "Python (SDK)"
827+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.organization_access_tokens.create(request={\n \"comment\": \"The Football Is Good For Training And Recreational Purposes\",\n \"scopes\": [],\n })\n\n # Handle response\n print(res)"
828+
- target: $["paths"]["/v1/organization-access-tokens/{id}"]["delete"]
829+
update:
830+
"x-codeSamples":
831+
- "lang": "python"
832+
"label": "Python (SDK)"
833+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n polar.organization_access_tokens.delete(id=\"<value>\")\n\n # Use the SDK ..."
834+
- target: $["paths"]["/v1/organization-access-tokens/{id}"]["patch"]
835+
update:
836+
"x-codeSamples":
837+
- "lang": "python"
838+
"label": "Python (SDK)"
839+
"source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n) as polar:\n\n res = polar.organization_access_tokens.update(id=\"<value>\", organization_access_token_update={})\n\n # Handle response\n print(res)"
816840
- target: $["paths"]["/v1/organizations/"]["get"]
817841
update:
818842
"x-codeSamples":

docs/models/availablescope.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# AvailableScope
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| ---------------------------------- | ---------------------------------- |
8+
| `OPENID` | openid |
9+
| `PROFILE` | profile |
10+
| `EMAIL` | email |
11+
| `USER_READ` | user:read |
12+
| `USER_WRITE` | user:write |
13+
| `ORGANIZATIONS_READ` | organizations:read |
14+
| `ORGANIZATIONS_WRITE` | organizations:write |
15+
| `CUSTOM_FIELDS_READ` | custom_fields:read |
16+
| `CUSTOM_FIELDS_WRITE` | custom_fields:write |
17+
| `DISCOUNTS_READ` | discounts:read |
18+
| `DISCOUNTS_WRITE` | discounts:write |
19+
| `CHECKOUT_LINKS_READ` | checkout_links:read |
20+
| `CHECKOUT_LINKS_WRITE` | checkout_links:write |
21+
| `CHECKOUTS_READ` | checkouts:read |
22+
| `CHECKOUTS_WRITE` | checkouts:write |
23+
| `TRANSACTIONS_READ` | transactions:read |
24+
| `TRANSACTIONS_WRITE` | transactions:write |
25+
| `PAYOUTS_READ` | payouts:read |
26+
| `PAYOUTS_WRITE` | payouts:write |
27+
| `PRODUCTS_READ` | products:read |
28+
| `PRODUCTS_WRITE` | products:write |
29+
| `BENEFITS_READ` | benefits:read |
30+
| `BENEFITS_WRITE` | benefits:write |
31+
| `EVENTS_READ` | events:read |
32+
| `EVENTS_WRITE` | events:write |
33+
| `METERS_READ` | meters:read |
34+
| `METERS_WRITE` | meters:write |
35+
| `FILES_READ` | files:read |
36+
| `FILES_WRITE` | files:write |
37+
| `SUBSCRIPTIONS_READ` | subscriptions:read |
38+
| `SUBSCRIPTIONS_WRITE` | subscriptions:write |
39+
| `CUSTOMERS_READ` | customers:read |
40+
| `CUSTOMERS_WRITE` | customers:write |
41+
| `MEMBERS_READ` | members:read |
42+
| `MEMBERS_WRITE` | members:write |
43+
| `WALLETS_READ` | wallets:read |
44+
| `WALLETS_WRITE` | wallets:write |
45+
| `DISPUTES_READ` | disputes:read |
46+
| `CUSTOMER_METERS_READ` | customer_meters:read |
47+
| `CUSTOMER_SESSIONS_WRITE` | customer_sessions:write |
48+
| `MEMBER_SESSIONS_WRITE` | member_sessions:write |
49+
| `CUSTOMER_SEATS_READ` | customer_seats:read |
50+
| `CUSTOMER_SEATS_WRITE` | customer_seats:write |
51+
| `ORDERS_READ` | orders:read |
52+
| `ORDERS_WRITE` | orders:write |
53+
| `REFUNDS_READ` | refunds:read |
54+
| `REFUNDS_WRITE` | refunds:write |
55+
| `PAYMENTS_READ` | payments:read |
56+
| `METRICS_READ` | metrics:read |
57+
| `WEBHOOKS_READ` | webhooks:read |
58+
| `WEBHOOKS_WRITE` | webhooks:write |
59+
| `EXTERNAL_ORGANIZATIONS_READ` | external_organizations:read |
60+
| `LICENSE_KEYS_READ` | license_keys:read |
61+
| `LICENSE_KEYS_WRITE` | license_keys:write |
62+
| `REPOSITORIES_READ` | repositories:read |
63+
| `REPOSITORIES_WRITE` | repositories:write |
64+
| `ISSUES_READ` | issues:read |
65+
| `ISSUES_WRITE` | issues:write |
66+
| `CUSTOMER_PORTAL_READ` | customer_portal:read |
67+
| `CUSTOMER_PORTAL_WRITE` | customer_portal:write |
68+
| `NOTIFICATIONS_READ` | notifications:read |
69+
| `NOTIFICATIONS_WRITE` | notifications:write |
70+
| `NOTIFICATION_RECIPIENTS_READ` | notification_recipients:read |
71+
| `NOTIFICATION_RECIPIENTS_WRITE` | notification_recipients:write |
72+
| `ORGANIZATION_ACCESS_TOKENS_READ` | organization_access_tokens:read |
73+
| `ORGANIZATION_ACCESS_TOKENS_WRITE` | organization_access_tokens:write |

0 commit comments

Comments
 (0)