Skip to content

Commit 6e67ca2

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.44.0 (#155)
* ## Typescript SDK Changes: * `polar.discounts.create()`: `request` **Changed** (Breaking ⚠️) * `polar.organizations.create()`: * `request.customerEmailSettings.subscriptionCycledAfterTrial` **Added** (Breaking ⚠️) * `response.customerEmailSettings.subscriptionCycledAfterTrial` **Added** * `polar.customerPortal.members.listMembers()`: * `request` **Added** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `error.status[422]` **Added** * `polar.organizations.update()`: * `request.organizationUpdate.customerEmailSettings.subscriptionCycledAfterTrial` **Added** (Breaking ⚠️) * `response.customerEmailSettings.subscriptionCycledAfterTrial` **Added** * `polar.customerPortal.seats.listClaimedSubscriptions()`: * `request` **Added** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `error.status[422]` **Added** * `polar.discounts.update()`: * `request.discountUpdate.currency` **Changed** (Breaking ⚠️) * `polar.checkoutLinks.list()`: `response.items[].returnUrl` **Added** * `polar.checkoutLinks.create()`: * `request` **Changed** * `response.returnUrl` **Added** * `polar.checkoutLinks.get()`: `response.returnUrl` **Added** * `polar.checkoutLinks.update()`: * `request.checkoutLinkUpdate.returnUrl` **Added** * `response.returnUrl` **Added** * `polar.organizations.list()`: `response.items[].customerEmailSettings.subscriptionCycledAfterTrial` **Added** * `polar.orders.export()`: `response.status[200].content[text/csv` **Added** * `polar.customers.export()`: `response.status[200].content[text/csv` **Added** * `polar.subscriptions.export()`: `response.status[200].content[text/csv` **Added** * `polar.organizations.get()`: `response.customerEmailSettings.subscriptionCycledAfterTrial` **Added** * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 7ef65c5 commit 6e67ca2

163 files changed

Lines changed: 2096 additions & 1334 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: 366 additions & 310 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ generation:
1717
securityFeb2025: false
1818
sharedErrorComponentsApr2025: false
1919
sharedNestedComponentsJan2026: false
20+
nameOverrideFeb2026: false
2021
auth:
2122
oAuth2ClientCredentialsEnabled: true
2223
oAuth2PasswordEnabled: false
@@ -31,7 +32,7 @@ generation:
3132
generateNewTests: false
3233
skipResponseBodyAssertions: false
3334
typescript:
34-
version: 0.43.1
35+
version: 0.44.0
3536
acceptHeaderEnum: true
3637
additionalDependencies:
3738
dependencies:
@@ -41,6 +42,7 @@ typescript:
4142
'@types/node': '*'
4243
jest: '*'
4344
ts-jest: '*'
45+
peerDependencies: {}
4446
additionalPackageJSON: {}
4547
additionalScripts: {}
4648
alwaysIncludeInboundAndOutbound: false

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.715.0
1+
speakeasyVersion: 1.725.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:35c5041acb7925f58d658a443f280f38eede03eb2abf43dfdda9324c52e8fed5
6-
sourceBlobDigest: sha256:538b3934b49bbe11e78b37fae8c0deecb50e0f26c1650fc8e8b49a89b8599e48
5+
sourceRevisionDigest: sha256:e02154d5833c1c5bbdd5c8aa28a78b5d57b482c6844a8f85ab2484f8df267e71
6+
sourceBlobDigest: sha256:3f166b078b645a3dfb5dfd0367a082bbb36bc2535513dfdb726517b10f5e38cc
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1770770829
9+
- speakeasy-sdk-regen-1771461822
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:35c5041acb7925f58d658a443f280f38eede03eb2abf43dfdda9324c52e8fed5
16-
sourceBlobDigest: sha256:538b3934b49bbe11e78b37fae8c0deecb50e0f26c1650fc8e8b49a89b8599e48
15+
sourceRevisionDigest: sha256:e02154d5833c1c5bbdd5c8aa28a78b5d57b482c6844a8f85ab2484f8df267e71
16+
sourceBlobDigest: sha256:3f166b078b645a3dfb5dfd0367a082bbb36bc2535513dfdb726517b10f5e38cc
1717
codeSamplesNamespace: polar-oas-ts-code-samples
18-
codeSamplesRevisionDigest: sha256:a16c0b8524c0076c54e0f7aa2222c92d1a2aa7f2f030d799fe2cf3fbbd6681e3
18+
codeSamplesRevisionDigest: sha256:1345d6bff6f1e33f4e39a4ea834c46dd1dc7459c165b9f690624ca32f6729b59
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r
373373
### [Orders](docs/sdks/orders/README.md)
374374

375375
* [list](docs/sdks/orders/README.md#list) - List Orders
376-
* [export](docs/sdks/orders/README.md#export) - Export Subscriptions
376+
* [export](docs/sdks/orders/README.md#export) - Export Orders
377377
* [get](docs/sdks/orders/README.md#get) - Get Order
378378
* [update](docs/sdks/orders/README.md#update) - Update Order
379379
* [invoice](docs/sdks/orders/README.md#invoice) - Get Order Invoice
@@ -582,7 +582,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
582582
- [`oauth2Revoke`](docs/sdks/oauth2/README.md#revoke) - Revoke Token
583583
- [`oauth2Token`](docs/sdks/oauth2/README.md#token) - Request Token
584584
- [`oauth2Userinfo`](docs/sdks/oauth2/README.md#userinfo) - Get User Info
585-
- [`ordersExport`](docs/sdks/orders/README.md#export) - Export Subscriptions
585+
- [`ordersExport`](docs/sdks/orders/README.md#export) - Export Orders
586586
- [`ordersGenerateInvoice`](docs/sdks/orders/README.md#generateinvoice) - Generate Order Invoice
587587
- [`ordersGet`](docs/sdks/orders/README.md#get) - Get Order
588588
- [`ordersInvoice`](docs/sdks/orders/README.md#invoice) - Get Order Invoice

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,4 +1238,14 @@ Based on:
12381238
### Generated
12391239
- [typescript v0.43.1] .
12401240
### Releases
1241-
- [NPM v0.43.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.43.1 - .
1241+
- [NPM v0.43.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.43.1 - .
1242+
1243+
## 2026-02-24 10:57:48
1244+
### Changes
1245+
Based on:
1246+
- OpenAPI Doc
1247+
- Speakeasy CLI 1.725.0 (2.836.5) https://github.com/speakeasy-api/speakeasy
1248+
### Generated
1249+
- [typescript v0.44.0] .
1250+
### Releases
1251+
- [NPM v0.44.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.44.0 - .

codeSamples.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ actions:
266266
"x-codeSamples":
267267
- "lang": "typescript"
268268
"label": "Typescript (SDK)"
269-
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerPortal.members.listMembers();\n\n console.log(result);\n}\n\nrun();"
269+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerPortal.members.listMembers({});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
270270
- target: $["paths"]["/v1/customer-portal/members"]["post"]
271271
update:
272272
"x-codeSamples":
@@ -362,7 +362,7 @@ actions:
362362
"x-codeSamples":
363363
- "lang": "typescript"
364364
"label": "Typescript (SDK)"
365-
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.listClaimedSubscriptions({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n });\n\n console.log(result);\n}\n\nrun();"
365+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.listClaimedSubscriptions({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
366366
- target: $["paths"]["/v1/customer-portal/seats/{seat_id}"]["delete"]
367367
update:
368368
"x-codeSamples":

docs/models/components/benefitgrantgithubrepositorypropertiespermission.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ let value: BenefitGrantGitHubRepositoryPropertiesPermission = "push";
1010

1111
## Values
1212

13+
This is an open enum. Unrecognized values will be captured as the `Unrecognized<string>` branded type.
14+
1315
```typescript
14-
"pull" | "triage" | "push" | "maintain" | "admin"
16+
"pull" | "triage" | "push" | "maintain" | "admin" | Unrecognized<string>
1517
```

docs/models/components/benefittype.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ let value: BenefitType = "meter_credit";
1010

1111
## Values
1212

13+
This is an open enum. Unrecognized values will be captured as the `Unrecognized<string>` branded type.
14+
1315
```typescript
14-
"custom" | "discord" | "github_repository" | "downloadables" | "license_keys" | "meter_credit"
16+
"custom" | "discord" | "github_repository" | "downloadables" | "license_keys" | "meter_credit" | Unrecognized<string>
1517
```

docs/models/components/billingaddressfieldmode.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ let value: BillingAddressFieldMode = "required";
1010

1111
## Values
1212

13+
This is an open enum. Unrecognized values will be captured as the `Unrecognized<string>` branded type.
14+
1315
```typescript
14-
"required" | "optional" | "disabled"
16+
"required" | "optional" | "disabled" | Unrecognized<string>
1517
```

docs/models/components/checkout.md

Lines changed: 20 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ let value: Checkout = {
109109
benefits: [
110110
{
111111
id: "<value>",
112-
createdAt: new Date("2024-03-14T00:55:02.549Z"),
113-
modifiedAt: new Date("2024-09-16T13:02:40.897Z"),
114-
type: "custom",
115-
description: "considering speedily for into across extricate",
116-
selectable: false,
112+
createdAt: new Date("2026-11-14T12:17:37.257Z"),
113+
modifiedAt: new Date("2024-04-18T03:47:10.312Z"),
114+
type: "discord",
115+
description: "publicity majority towards opposite than",
116+
selectable: true,
117117
deletable: false,
118118
organizationId: "<value>",
119119
},
@@ -143,93 +143,39 @@ let value: Checkout = {
143143
],
144144
product: {
145145
id: "<value>",
146-
createdAt: new Date("2024-04-18T03:47:10.312Z"),
147-
modifiedAt: new Date("2024-12-24T09:38:39.320Z"),
148-
trialInterval: "week",
149-
trialIntervalCount: 834999,
146+
createdAt: new Date("2025-07-24T21:53:52.155Z"),
147+
modifiedAt: new Date("2025-01-13T05:38:51.042Z"),
148+
trialInterval: "month",
149+
trialIntervalCount: 689302,
150150
name: "<value>",
151-
description: "drat thread steeple elegantly despite mealy",
152-
visibility: "public",
151+
description: "because mediocre vice alive content react replacement",
152+
visibility: "private",
153153
recurringInterval: "week",
154-
recurringIntervalCount: 416867,
154+
recurringIntervalCount: 410201,
155155
isRecurring: true,
156-
isArchived: true,
156+
isArchived: false,
157157
organizationId: "<value>",
158158
prices: [],
159159
benefits: [],
160-
medias: [
161-
{
162-
id: "<value>",
163-
organizationId: "<value>",
164-
name: "<value>",
165-
path: "/Applications",
166-
mimeType: "<value>",
167-
size: 764885,
168-
storageVersion: "<value>",
169-
checksumEtag: "<value>",
170-
checksumSha256Base64: "<value>",
171-
checksumSha256Hex: "<value>",
172-
lastModifiedAt: new Date("2024-04-23T23:01:02.489Z"),
173-
version: "<value>",
174-
service: "product_media",
175-
isUploaded: true,
176-
createdAt: new Date("2025-12-09T18:31:15.290Z"),
177-
sizeReadable: "<value>",
178-
publicUrl: "https://winding-godfather.name/",
179-
},
180-
],
160+
medias: [],
181161
},
182162
productPrice: {
183-
createdAt: new Date("2025-07-09T19:59:35.997Z"),
184-
modifiedAt: new Date("2025-09-23T23:09:18.172Z"),
163+
createdAt: new Date("2024-10-08T20:08:25.638Z"),
164+
modifiedAt: new Date("2026-08-23T20:33:07.843Z"),
185165
id: "<value>",
186166
source: "ad_hoc",
187167
amountType: "free",
188168
priceCurrency: "<value>",
189169
isArchived: true,
190170
productId: "<value>",
191171
type: "recurring",
192-
recurringInterval: "year",
172+
recurringInterval: "week",
193173
legacy: true,
194174
},
195-
prices: {
196-
"key": [
197-
{
198-
createdAt: new Date("2026-05-19T09:10:42.834Z"),
199-
modifiedAt: null,
200-
id: "<value>",
201-
source: "catalog",
202-
amountType: "fixed",
203-
priceCurrency: "<value>",
204-
isArchived: false,
205-
productId: "<value>",
206-
type: "recurring",
207-
recurringInterval: "day",
208-
priceAmount: 899663,
209-
legacy: true,
210-
},
211-
],
212-
"key1": [
213-
{
214-
createdAt: new Date("2026-03-05T12:36:24.392Z"),
215-
modifiedAt: new Date("2024-03-22T02:22:33.960Z"),
216-
id: "<value>",
217-
source: "ad_hoc",
218-
amountType: "custom",
219-
priceCurrency: "<value>",
220-
isArchived: true,
221-
productId: "<value>",
222-
type: "recurring",
223-
recurringInterval: "week",
224-
minimumAmount: 278333,
225-
maximumAmount: null,
226-
presetAmount: 373910,
227-
legacy: true,
228-
},
229-
],
230-
},
175+
prices: {},
231176
discount: {
232177
duration: "forever",
178+
durationInMonths: 848883,
233179
type: "percentage",
234180
basisPoints: 1000,
235181
id: "<value>",
@@ -238,9 +184,7 @@ let value: Checkout = {
238184
},
239185
subscriptionId: "<value>",
240186
attachedCustomFields: [],
241-
customerMetadata: {
242-
"key": "<value>",
243-
},
187+
customerMetadata: {},
244188
};
245189
```
246190

0 commit comments

Comments
 (0)