Skip to content

Commit 81b06c6

Browse files
speakeasybotfrankie567
authored andcommitted
## Typescript SDK Changes Detected:
* `polar.EndpointcheckoutCreatedPost()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar.EndpointcheckoutUpdatedPost()`: * `request.data` **Changed** **Breaking** ⚠️ * `polar.EndpointsubscriptionCreatedPost()`: * `request.data.product.prices.[]` **Changed** **Breaking** ⚠️ * `polar.EndpointsubscriptionUpdatedPost()`: * `request.data.product.prices.[]` **Changed** **Breaking** ⚠️ * `polar.EndpointsubscriptionActivePost()`: * `request.data.product.prices.[]` **Changed** **Breaking** ⚠️ * `polar.EndpointsubscriptionCanceledPost()`: * `request.data.product.prices.[]` **Changed** **Breaking** ⚠️ * `polar.EndpointsubscriptionUncanceledPost()`: * `request.data.product.prices.[]` **Changed** **Breaking** ⚠️ * `polar.EndpointsubscriptionRevokedPost()`: * `request.data.product.prices.[]` **Changed** **Breaking** ⚠️ * `polar.EndpointproductCreatedPost()`: * `request.data.prices.[]` **Changed** **Breaking** ⚠️ * `polar.EndpointproductUpdatedPost()`: * `request.data.prices.[]` **Changed** **Breaking** ⚠️ * `polar.metrics.get()`: `response` **Changed** **Breaking** ⚠️ * `polar.checkouts.list()`: `response.items.[]` **Changed** * `polar.checkouts.clientConfirm()`: `response` **Changed** * `polar.subscriptions.revoke()`: `response.product.prices.[]` **Changed** * `polar.subscriptions.update()`: `response.product.prices.[]` **Changed** * `polar.products.list()`: `response.items.[].prices.[]` **Changed** * `polar.products.create()`: `response.prices.[]` **Changed** * `polar.products.get()`: `response.prices.[]` **Changed** * `polar.products.update()`: `response.prices.[]` **Changed** * `polar.products.updateBenefits()`: `response.prices.[]` **Changed** * `polar.subscriptions.create()`: `response.product.prices.[]` **Changed** * `polar.checkouts.create()`: * `request.prices` **Added** * `response` **Changed** * `polar.checkouts.get()`: `response` **Changed** * `polar.checkouts.update()`: `response` **Changed** * `polar.checkouts.clientGet()`: `response` **Changed** * `polar.checkouts.clientUpdate()`: `response` **Changed** * `polar.subscriptions.get()`: `response.product.prices.[]` **Changed** * `polar.subscriptions.list()`: `response.items.[].product.prices.[]` **Changed** * `polar.checkoutLinks.list()`: `response.items.[].products.[].prices.[]` **Changed** * `polar.checkoutLinks.create()`: `response.products.[].prices.[]` **Changed** * `polar.checkoutLinks.get()`: `response.products.[].prices.[]` **Changed** * `polar.checkoutLinks.update()`: `response.products.[].prices.[]` **Changed** * `polar.customerPortal.seats.listClaimedSubscriptions()`: `response.[].product.prices.[]` **Changed** * `polar.customerPortal.orders.list()`: `response.items.[].product.prices.[]` **Changed** * `polar.customerPortal.orders.get()`: `response.product.prices.[]` **Changed** * `polar.customerPortal.orders.update()`: `response.product.prices.[]` **Changed** * `polar.customerPortal.organizations.get()`: `response.products.[].prices.[]` **Changed** * `polar.customerPortal.subscriptions.list()`: `response.items.[].product.prices.[]` **Changed** * `polar.customerPortal.subscriptions.get()`: `response.product.prices.[]` **Changed** * `polar.customerPortal.subscriptions.cancel()`: `response.product.prices.[]` **Changed** * `polar.customerPortal.subscriptions.update()`: `response.product.prices.[]` **Changed**
1 parent 1d810c1 commit 81b06c6

File tree

249 files changed

+2652
-1493
lines changed

Some content is hidden

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

249 files changed

+2652
-1493
lines changed

.speakeasy/gen.lock

Lines changed: 51 additions & 47 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
@@ -28,7 +28,7 @@ generation:
2828
generateNewTests: false
2929
skipResponseBodyAssertions: false
3030
typescript:
31-
version: 0.41.4
31+
version: 0.41.5
3232
acceptHeaderEnum: true
3333
additionalDependencies:
3434
dependencies:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.656.2
1+
speakeasyVersion: 1.658.2
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:72f7c0fcfe62411481b167d85bdf0e20ac67aef87b2ab9564ced1f261102071a
6-
sourceBlobDigest: sha256:9a5423f12b5d6d4b4113edc0e482f1cd10d03ea441f43e6426efa4bfbcba539a
5+
sourceRevisionDigest: sha256:7530e9cf9c456811e6a7cd034e44b2300ad1b3763f533530b138fe4e6f6efcf4
6+
sourceBlobDigest: sha256:bab93f727803b963615d542e4a0761425ff40a63532b498195b040fd5c431e58
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1762993864
9+
- speakeasy-sdk-regen-1763470072
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:72f7c0fcfe62411481b167d85bdf0e20ac67aef87b2ab9564ced1f261102071a
16-
sourceBlobDigest: sha256:9a5423f12b5d6d4b4113edc0e482f1cd10d03ea441f43e6426efa4bfbcba539a
15+
sourceRevisionDigest: sha256:7530e9cf9c456811e6a7cd034e44b2300ad1b3763f533530b138fe4e6f6efcf4
16+
sourceBlobDigest: sha256:bab93f727803b963615d542e4a0761425ff40a63532b498195b040fd5c431e58
1717
codeSamplesNamespace: polar-oas-ts-code-samples
18-
codeSamplesRevisionDigest: sha256:05c5e6234efc31d051534122e37d94886968ac4d005ec585463fa283bbbee978
18+
codeSamplesRevisionDigest: sha256:99b5d5241a693d0d44739f2a352cf7d549030057e5c986919a62ab1bb9165178
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,4 +1168,14 @@ Based on:
11681168
### Generated
11691169
- [typescript v0.41.4] .
11701170
### Releases
1171-
- [NPM v0.41.4] https://www.npmjs.com/package/@polar-sh/sdk/v/0.41.4 - .
1171+
- [NPM v0.41.4] https://www.npmjs.com/package/@polar-sh/sdk/v/0.41.4 - .
1172+
1173+
## 2025-11-18 12:47:30
1174+
### Changes
1175+
Based on:
1176+
- OpenAPI Doc
1177+
- Speakeasy CLI 1.658.2 (2.755.9) https://github.com/speakeasy-api/speakeasy
1178+
### Generated
1179+
- [typescript v0.41.5] .
1180+
### Releases
1181+
- [NPM v0.41.5] https://www.npmjs.com/package/@polar-sh/sdk/v/0.41.5 - .

codeSamples.yaml

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

docs/models/components/checkout.md

Lines changed: 10 additions & 7 deletions
Large diffs are not rendered by default.

docs/models/components/checkoutcreate.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ let value: CheckoutCreate = {
4848
| `successUrl` | *string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. | |
4949
| `returnUrl` | *string* | :heavy_minus_sign: | When set, a back button will be shown in the checkout to return to this URL. | |
5050
| `embedOrigin` | *string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. | |
51-
| `products` | *string*[] | :heavy_check_mark: | List of product IDs available to select at that checkout. The first one will be selected by default. | |
51+
| `products` | *string*[] | :heavy_check_mark: | List of product IDs available to select at that checkout. The first one will be selected by default. | |
52+
| `prices` | Record<string, *components.CheckoutCreatePrices*[]> | :heavy_minus_sign: | Optional mapping of product IDs to a list of ad-hoc prices to create for that product. If not set, catalog prices of the product will be used. | |
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# CheckoutCreatePrices
2+
3+
4+
## Supported Types
5+
6+
### `components.ProductPriceCustomCreate`
7+
8+
```typescript
9+
const value: components.ProductPriceCustomCreate = {
10+
amountType: "custom",
11+
};
12+
```
13+
14+
### `components.ProductPriceFixedCreate`
15+
16+
```typescript
17+
const value: components.ProductPriceFixedCreate = {
18+
amountType: "fixed",
19+
priceAmount: 578074,
20+
};
21+
```
22+
23+
### `components.ProductPriceFreeCreate`
24+
25+
```typescript
26+
const value: components.ProductPriceFreeCreate = {
27+
amountType: "free",
28+
};
29+
```
30+
31+
### `components.ProductPriceMeteredUnitCreate`
32+
33+
```typescript
34+
const value: components.ProductPriceMeteredUnitCreate = {
35+
amountType: "metered_unit",
36+
meterId: "<value>",
37+
unitAmount: "<value>",
38+
};
39+
```
40+
41+
### `components.ProductPriceSeatBasedCreate`
42+
43+
```typescript
44+
const value: components.ProductPriceSeatBasedCreate = {
45+
amountType: "seat_based",
46+
seatTiers: {
47+
tiers: [
48+
{
49+
minSeats: 415895,
50+
pricePerSeat: 164973,
51+
},
52+
],
53+
},
54+
};
55+
```
56+

docs/models/components/checkoutlink.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ let value: CheckoutLink = {
4747
createdAt: new Date("2024-06-23T04:46:35.152Z"),
4848
modifiedAt: new Date("2024-05-30T10:02:42.927Z"),
4949
id: "<value>",
50+
source: "ad_hoc",
5051
amountType: "free",
5152
isArchived: false,
5253
productId: "<value>",
5354
type: "recurring",
54-
recurringInterval: "year",
55+
recurringInterval: "day",
5556
legacy: true,
5657
},
5758
],
@@ -60,24 +61,24 @@ let value: CheckoutLink = {
6061
},
6162
],
6263
discount: {
63-
duration: "once",
64+
duration: "repeating",
6465
type: "fixed",
6566
basisPoints: 1000,
66-
createdAt: new Date("2025-06-05T00:55:28.474Z"),
67-
modifiedAt: new Date("2025-07-23T08:18:21.060Z"),
67+
createdAt: new Date("2024-12-20T05:49:14.049Z"),
68+
modifiedAt: new Date("2024-05-06T01:19:34.835Z"),
6869
id: "<value>",
6970
metadata: {
70-
"key": true,
71+
"key": false,
7172
},
7273
name: "<value>",
7374
code: "<value>",
74-
startsAt: new Date("2025-02-27T17:57:06.028Z"),
75-
endsAt: new Date("2024-06-22T16:03:05.887Z"),
76-
maxRedemptions: 286287,
77-
redemptionsCount: 676716,
75+
startsAt: new Date("2024-10-09T16:49:56.134Z"),
76+
endsAt: new Date("2024-03-09T11:07:39.349Z"),
77+
maxRedemptions: 231585,
78+
redemptionsCount: 850103,
7879
organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
7980
},
80-
url: "https://flawed-peony.org",
81+
url: "https://winding-pantyhose.biz",
8182
};
8283
```
8384

docs/models/components/checkoutlinkproduct.md

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,56 +26,25 @@ let value: CheckoutLinkProduct = {
2626
createdAt: new Date("2024-02-13T16:10:48.243Z"),
2727
modifiedAt: new Date("2025-01-21T17:16:14.204Z"),
2828
id: "<value>",
29+
source: "ad_hoc",
2930
amountType: "seat_based",
30-
isArchived: false,
31+
isArchived: true,
3132
productId: "<value>",
3233
type: "one_time",
33-
recurringInterval: null,
34+
recurringInterval: "year",
3435
priceCurrency: "<value>",
3536
seatTiers: {
3637
tiers: [
3738
{
38-
minSeats: 922152,
39-
pricePerSeat: 415895,
39+
minSeats: 415895,
40+
pricePerSeat: 164973,
4041
},
4142
],
4243
},
4344
},
4445
],
45-
benefits: [
46-
{
47-
id: "<value>",
48-
createdAt: new Date("2025-09-12T21:51:12.650Z"),
49-
modifiedAt: null,
50-
type: "meter_credit",
51-
description:
52-
"median dependency outside unique cautiously solidly meh times",
53-
selectable: false,
54-
deletable: false,
55-
organizationId: "<value>",
56-
},
57-
],
58-
medias: [
59-
{
60-
id: "<value>",
61-
organizationId: "<value>",
62-
name: "<value>",
63-
path: "/System",
64-
mimeType: "<value>",
65-
size: 253860,
66-
storageVersion: "<value>",
67-
checksumEtag: null,
68-
checksumSha256Base64: "<value>",
69-
checksumSha256Hex: "<value>",
70-
lastModifiedAt: new Date("2025-05-07T09:27:30.846Z"),
71-
version: "<value>",
72-
service: "product_media",
73-
isUploaded: false,
74-
createdAt: new Date("2024-10-16T05:58:33.681Z"),
75-
sizeReadable: "<value>",
76-
publicUrl: "https://slow-bonfire.net/",
77-
},
78-
],
46+
benefits: [],
47+
medias: [],
7948
};
8049
```
8150

0 commit comments

Comments
 (0)