Skip to content

Commit 908cdfc

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.45.1 (#158)
* ## Typescript SDK Changes: * `polar.customers.list()`: `response.items[]` **Changed** (Breaking ⚠️) * `polar.organizations.create()`: * `request` **Changed** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `polar.organizations.get()`: `response` **Changed** (Breaking ⚠️) * `polar.organizations.update()`: * `request.organizationUpdate` **Changed** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `polar.subscriptions.list()`: `response.items[]` **Changed** (Breaking ⚠️) * `polar.subscriptions.create()`: `response` **Changed** (Breaking ⚠️) * `polar.subscriptions.get()`: `response` **Changed** (Breaking ⚠️) * `polar.subscriptions.revoke()`: `response` **Changed** (Breaking ⚠️) * `polar.subscriptions.update()`: `response` **Changed** (Breaking ⚠️) * `polar.benefits.list()`: * `request.typeFilter` **Changed** * `response.items[].union(feature_flag)` **Added** (Breaking ⚠️) * `polar.benefits.create()`: * `request.union(feature_flag)` **Added** * `response.union(feature_flag)` **Added** (Breaking ⚠️) * `polar.benefits.get()`: `response.union(feature_flag)` **Added** (Breaking ⚠️) * `polar.benefits.update()`: * `request.requestBody.union(feature_flag)` **Added** * `response.union(feature_flag)` **Added** (Breaking ⚠️) * `polar.benefits.grants()`: `response.items[]` **Changed** (Breaking ⚠️) * `polar.benefitGrants.list()`: `response.items[]` **Changed** (Breaking ⚠️) * `polar.customerPortal.benefitGrants.update()`: * `request.customerBenefitGrantUpdate.union(feature_flag)` **Added** * `response.union(CustomerBenefitGrantFeatureFlag)` **Added** (Breaking ⚠️) * `polar.customerPortal.benefitGrants.get()`: `response.union(CustomerBenefitGrantFeatureFlag)` **Added** (Breaking ⚠️) * `polar.customerPortal.benefitGrants.list()`: * `request.typeFilter` **Changed** * `response.items[].union(CustomerBenefitGrantFeatureFlag)` **Added** (Breaking ⚠️) * `polar.organizations.list()`: `response.items[]` **Changed** (Breaking ⚠️) * `polar.customers.getStateExternal()`: `response` **Changed** (Breaking ⚠️) * `polar.products.list()`: `response.items[].benefits[].union(feature_flag)` **Added** (Breaking ⚠️) * `polar.products.create()`: `response.benefits[].union(feature_flag)` **Added** (Breaking ⚠️) * `polar.products.get()`: `response.benefits[].union(feature_flag)` **Added** (Breaking ⚠️) * `polar.products.update()`: `response.benefits[].union(feature_flag)` **Added** (Breaking ⚠️) * `polar.products.updateBenefits()`: `response.benefits[].union(feature_flag)` **Added** (Breaking ⚠️) * `polar.customers.getState()`: `response` **Changed** (Breaking ⚠️) * `polar.customers.updateExternal()`: `response` **Changed** (Breaking ⚠️) * `polar.customers.getExternal()`: `response` **Changed** (Breaking ⚠️) * `polar.customers.update()`: `response` **Changed** (Breaking ⚠️) * `polar.customers.get()`: `response` **Changed** (Breaking ⚠️) * `polar.customers.create()`: `response` **Changed** (Breaking ⚠️) * `polar.webhooks.updateWebhookEndpoint()`: * `request.webhookEndpointUpdate.name` **Added** * `response.name` **Added** * `polar.webhooks.resetWebhookEndpointSecret()`: `response.name` **Added** * `polar.checkouts.clientUpdate()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.checkouts.clientConfirm()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.licenseKeys.list()`: `response.items[].customer.externalId` **Changed** * `polar.licenseKeys.get()`: `response.customer.externalId` **Changed** * `polar.licenseKeys.update()`: `response.customer.externalId` **Changed** * `polar.licenseKeys.getActivation()`: `response.licenseKey.customer.externalId` **Changed** * `polar.licenseKeys.validate()`: `response.customer.externalId` **Changed** * `polar.licenseKeys.activate()`: `response.licenseKey.customer.externalId` **Changed** * `polar.checkoutLinks.list()`: `response.items[].products[].benefits[].type.enum(featureFlag)` **Added** * `polar.checkoutLinks.create()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.checkoutLinks.get()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.checkoutLinks.update()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.checkouts.update()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.checkouts.get()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.checkouts.create()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.checkouts.list()`: `response.items[].products[].benefits[].type.enum(featureFlag)` **Added** * `polar.orders.update()`: `response.customer.externalId` **Changed** * `polar.orders.get()`: `response.customer.externalId` **Changed** * `polar.orders.list()`: `response.items[].customer.externalId` **Changed** * `polar.checkouts.clientGet()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.webhooks.getWebhookEndpoint()`: `response.name` **Added** * `polar.webhooks.createWebhookEndpoint()`: * `request.name` **Added** * `response.name` **Added** * `polar.webhooks.listWebhookEndpoints()`: `response.items[].name` **Added** * `polar.customerPortal.seats.listClaimedSubscriptions()`: `response.items[].product.benefits[].type.enum(featureFlag)` **Added** * `polar.customerPortal.licenseKeys.list()`: `response.items[].customer.externalId` **Changed** * `polar.customerPortal.licenseKeys.get()`: `response.customer.externalId` **Changed** * `polar.customerPortal.licenseKeys.validate()`: `response.customer.externalId` **Changed** * `polar.customerPortal.licenseKeys.activate()`: `response.licenseKey.customer.externalId` **Changed** * `polar.customerPortal.orders.list()`: `response.items[].product.benefits[].type.enum(featureFlag)` **Added** * `polar.customerPortal.orders.get()`: `response.product.benefits[].type.enum(featureFlag)` **Added** * `polar.customerPortal.orders.update()`: `response.product.benefits[].type.enum(featureFlag)` **Added** * `polar.customerPortal.organizations.get()`: `response.products[].benefits[].type.enum(featureFlag)` **Added** * `polar.customerPortal.subscriptions.list()`: `response.items[].product.benefits[].type.enum(featureFlag)` **Added** * `polar.customerPortal.subscriptions.get()`: `response.product.benefits[].type.enum(featureFlag)` **Added** * `polar.customerPortal.subscriptions.cancel()`: `response.product.benefits[].type.enum(featureFlag)` **Added** * `polar.customerPortal.subscriptions.update()`: `response.product.benefits[].type.enum(featureFlag)` **Added** * `polar.customerSessions.create()`: `response.customer.externalId` **Changed** * `polar.memberSessions.create()`: `response.customer.externalId` **Changed** * `polar.events.list()`: `response.union(ListResource_Event_).items[].union(SystemEvent)` **Changed** * `polar.events.get()`: `response.union(SystemEvent).union(benefit.cycled)` **Changed** * `polar.customerMeters.list()`: `response.items[].customer.externalId` **Changed** * `polar.customerMeters.get()`: `response.customer.externalId` **Changed** * 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 68fa6a5 commit 908cdfc

File tree

123 files changed

+2350
-791
lines changed

Some content is hidden

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

123 files changed

+2350
-791
lines changed

.speakeasy/gen.lock

Lines changed: 294 additions & 210 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
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: false
3333
skipResponseBodyAssertions: false
3434
typescript:
35-
version: 0.45.0
35+
version: 0.45.1
3636
acceptHeaderEnum: true
3737
additionalDependencies:
3838
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.728.0
1+
speakeasyVersion: 1.731.2
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:8e36cfec4d157912c3038282edef69578a3480a8d4537909b8d482ab72b0c71d
6-
sourceBlobDigest: sha256:46f5784fd3a61ca8f87b1e553c00b3a703deaf699e6a2918c0cbfb778b793e83
5+
sourceRevisionDigest: sha256:cedf01bd0a321880b2d63da59fd56d0f30bd3b49901169c4c8cbc8036d7b084d
6+
sourceBlobDigest: sha256:27a3566b537e81ccadd87d3797947822ea19b2222c14c29b8c378cfbbfa74262
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1771980282
9+
- speakeasy-sdk-regen-1772066370
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:8e36cfec4d157912c3038282edef69578a3480a8d4537909b8d482ab72b0c71d
16-
sourceBlobDigest: sha256:46f5784fd3a61ca8f87b1e553c00b3a703deaf699e6a2918c0cbfb778b793e83
15+
sourceRevisionDigest: sha256:cedf01bd0a321880b2d63da59fd56d0f30bd3b49901169c4c8cbc8036d7b084d
16+
sourceBlobDigest: sha256:27a3566b537e81ccadd87d3797947822ea19b2222c14c29b8c378cfbbfa74262
1717
codeSamplesNamespace: polar-oas-ts-code-samples
18-
codeSamplesRevisionDigest: sha256:a62e967ad8b26fdc2794445929107885a575ace0b02a1c0702e3a7a03fb7aac0
18+
codeSamplesRevisionDigest: sha256:58849c9aba62b85ba546fe0ffb329d3cbe38396d8940e2c6959998f6fd84f5f3
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
@@ -1258,4 +1258,14 @@ Based on:
12581258
### Generated
12591259
- [typescript v0.45.0] .
12601260
### Releases
1261-
- [NPM v0.45.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.45.0 - .
1261+
- [NPM v0.45.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.45.0 - .
1262+
1263+
## 2026-02-27 00:41:24
1264+
### Changes
1265+
Based on:
1266+
- OpenAPI Doc
1267+
- Speakeasy CLI 1.731.2 (2.845.1) https://github.com/speakeasy-api/speakeasy
1268+
### Generated
1269+
- [typescript v0.45.1] .
1270+
### Releases
1271+
- [NPM v0.45.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.45.1 - .

docs/models/components/benefit.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,31 @@ const value: components.BenefitDownloadables = {
6565
},
6666
properties: {
6767
archived: {
68-
"key": false,
68+
"key": true,
69+
"key1": true,
6970
},
70-
files: [
71-
"<value 1>",
72-
"<value 2>",
73-
],
71+
files: [],
7472
},
7573
};
7674
```
7775

76+
### `components.BenefitFeatureFlag`
77+
78+
```typescript
79+
const value: components.BenefitFeatureFlag = {
80+
id: "<value>",
81+
createdAt: new Date("2026-01-23T21:17:09.985Z"),
82+
modifiedAt: new Date("2026-03-18T19:56:22.426Z"),
83+
type: "feature_flag",
84+
description: "while dreary bestride revoke continually hm so terrible",
85+
selectable: true,
86+
deletable: true,
87+
organizationId: "<value>",
88+
metadata: {},
89+
properties: {},
90+
};
91+
```
92+
7893
### `components.BenefitGitHubRepository`
7994

8095
```typescript

docs/models/components/benefitcreate.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ const value: components.BenefitDownloadablesCreate = {
4545
};
4646
```
4747

48+
### `components.BenefitFeatureFlagCreate`
49+
50+
```typescript
51+
const value: components.BenefitFeatureFlagCreate = {
52+
type: "feature_flag",
53+
description: "tarragon stunt deep phew unless inasmuch tut anti if",
54+
organizationId: "1dbfc517-0bbf-4301-9ba8-555ca42b9737",
55+
properties: {},
56+
};
57+
```
58+
4859
### `components.BenefitGitHubRepositoryCreate`
4960

5061
```typescript

docs/models/components/benefitcycledevent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let value: BenefitCycledEvent = {
4242
metadata: {
4343
benefitId: "<id>",
4444
benefitGrantId: "<id>",
45-
benefitType: "github_repository",
45+
benefitType: "downloadables",
4646
},
4747
};
4848
```

docs/models/components/benefitdownloadables.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ let value: BenefitDownloadables = {
1919
},
2020
properties: {
2121
archived: {
22-
"key": false,
22+
"key": true,
23+
"key1": true,
2324
},
24-
files: [
25-
"<value 1>",
26-
"<value 2>",
27-
],
25+
files: [],
2826
},
2927
};
3028
```
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# BenefitFeatureFlag
2+
3+
A benefit of type `feature_flag`.
4+
5+
Use it to grant feature flags with key-value metadata
6+
that can be queried via the API and webhooks.
7+
8+
## Example Usage
9+
10+
```typescript
11+
import { BenefitFeatureFlag } from "@polar-sh/sdk/models/components/benefitfeatureflag.js";
12+
13+
let value: BenefitFeatureFlag = {
14+
id: "<value>",
15+
createdAt: new Date("2026-01-23T21:17:09.985Z"),
16+
modifiedAt: new Date("2026-03-18T19:56:22.426Z"),
17+
type: "feature_flag",
18+
description: "while dreary bestride revoke continually hm so terrible",
19+
selectable: true,
20+
deletable: true,
21+
organizationId: "<value>",
22+
metadata: {},
23+
properties: {},
24+
};
25+
```
26+
27+
## Fields
28+
29+
| Field | Type | Required | Description |
30+
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
31+
| `id` | *string* | :heavy_check_mark: | The ID of the benefit. |
32+
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Creation timestamp of the object. |
33+
| `modifiedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | Last modification timestamp of the object. |
34+
| `type` | *"feature_flag"* | :heavy_check_mark: | N/A |
35+
| `description` | *string* | :heavy_check_mark: | The description of the benefit. |
36+
| `selectable` | *boolean* | :heavy_check_mark: | Whether the benefit is selectable when creating a product. |
37+
| `deletable` | *boolean* | :heavy_check_mark: | Whether the benefit is deletable. |
38+
| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the benefit. |
39+
| `metadata` | Record<string, *components.MetadataOutputType*> | :heavy_check_mark: | N/A |
40+
| `properties` | [components.BenefitFeatureFlagProperties](../../models/components/benefitfeatureflagproperties.md) | :heavy_check_mark: | Properties for a benefit of type `feature_flag`. |

0 commit comments

Comments
 (0)