Skip to content

Commit 5e1ea98

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.37.0 (#128)
* ## Typescript SDK Changes Detected: * `polar.EndpointorderCreatedPost()`: * `request.data.platformFeeAmount` **Added** **Breaking** ⚠️ * `polar.EndpointorderUpdatedPost()`: * `request.data.platformFeeAmount` **Added** **Breaking** ⚠️ * `polar.EndpointorderPaidPost()`: * `request.data.platformFeeAmount` **Added** **Breaking** ⚠️ * `polar.EndpointorderRefundedPost()`: * `request.data.platformFeeAmount` **Added** **Breaking** ⚠️ * `polar.EndpointorganizationUpdatedPost()`: * `request.data.customerEmailSettings` **Added** **Breaking** ⚠️ * `polar.organizations.list()`: `response.items.[].customerEmailSettings` **Added** * `polar.organizations.create()`: * `request.customerEmailSettings` **Added** * `response.customer_email_settings` **Added** * `polar.organizations.get()`: `response.customer_email_settings` **Added** * `polar.organizations.update()`: * `request.organizationUpdate.customerEmailSettings` **Added** * `response.customer_email_settings` **Added** * `polar.oauth2.clients.create()`: * `request.defaultSubType` **Added** * `polar.oauth2.clients.update()`: * `request.oAuth2ClientConfigurationUpdate.defaultSubType` **Added** * `polar.orders.list()`: `response.items.[].platformFeeAmount` **Added** * `polar.orders.get()`: `response.platform_fee_amount` **Added** * `polar.orders.update()`: `response.platform_fee_amount` **Added** * `polar.checkouts.clientGet()`: `response.organization.customerEmailSettings` **Added** * `polar.checkouts.clientUpdate()`: `response.organization.customerEmailSettings` **Added** * `polar.checkouts.clientConfirm()`: `response.organization.customerEmailSettings` **Added** * `polar.customerPortal.benefitGrants.list()`: `response.items.[].[customerBenefitGrantDiscord].benefit.organization.customerEmailSettings` **Added** * `polar.customerPortal.benefitGrants.get()`: `response.[customerbenefitgrantdownloadables].benefit.organization.customerEmailSettings` **Added** * `polar.customerPortal.benefitGrants.update()`: `response.[customerbenefitgrantdownloadables].benefit.organization.customerEmailSettings` **Added** * `polar.customerPortal.seats.listClaimedSubscriptions()`: `response.[].product.organization.customerEmailSettings` **Added** * `polar.customerPortal.orders.list()`: `response.items.[].product.organization.customerEmailSettings` **Added** * `polar.customerPortal.orders.get()`: `response.product.organization.customerEmailSettings` **Added** * `polar.customerPortal.orders.update()`: `response.product.organization.customerEmailSettings` **Added** * `polar.customerPortal.organizations.get()`: `response.organization.customerEmailSettings` **Added** * `polar.customerPortal.subscriptions.list()`: `response.items.[].product.organization.customerEmailSettings` **Added** * `polar.customerPortal.subscriptions.get()`: `response.product.organization.customerEmailSettings` **Added** * `polar.customerPortal.subscriptions.cancel()`: `response.product.organization.customerEmailSettings` **Added** * `polar.customerPortal.subscriptions.update()`: `response.product.organization.customerEmailSettings` **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 5280674 commit 5e1ea98

File tree

116 files changed

+971
-4720
lines changed

Some content is hidden

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

116 files changed

+971
-4720
lines changed

.speakeasy/gen.lock

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

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: false
2626
skipResponseBodyAssertions: false
2727
typescript:
28-
version: 0.36.2
28+
version: 0.37.0
2929
acceptHeaderEnum: true
3030
additionalDependencies:
3131
dependencies:
@@ -43,6 +43,7 @@ typescript:
4343
constFieldsAlwaysOptional: false
4444
defaultErrorName: SDKError
4545
enableCustomCodeRegions: false
46+
enableMCPServer: false
4647
enableReactQuery: false
4748
enumFormat: union
4849
envVarPrefix: POLAR

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.636.3
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:a2d47725aa55a8a44bd25f16906f28a8a24e41cd257a068284c1bda91dab06b6
6-
sourceBlobDigest: sha256:5f14ed6fd946b22d43124e554b9bc35847c0385ea345d3d248e6f6831c8d091f
5+
sourceRevisionDigest: sha256:80bcbf3170c44a0e0b0a1e871c9edc55341c8ae66420286b6e08fb5933b3e271
6+
sourceBlobDigest: sha256:6854a5c4dfb2366b8fc166c4b8a98aaed20ead76b80c28d4549cadf8c59079cf
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1760574598
9+
- speakeasy-sdk-regen-1760623031
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:a2d47725aa55a8a44bd25f16906f28a8a24e41cd257a068284c1bda91dab06b6
16-
sourceBlobDigest: sha256:5f14ed6fd946b22d43124e554b9bc35847c0385ea345d3d248e6f6831c8d091f
15+
sourceRevisionDigest: sha256:80bcbf3170c44a0e0b0a1e871c9edc55341c8ae66420286b6e08fb5933b3e271
16+
sourceBlobDigest: sha256:6854a5c4dfb2366b8fc166c4b8a98aaed20ead76b80c28d4549cadf8c59079cf
1717
codeSamplesNamespace: polar-oas-ts-code-samples
18-
codeSamplesRevisionDigest: sha256:cdb06003691198d97e81eb307269467ea8a5b95287818a72f2d16baadcba11c9
18+
codeSamplesRevisionDigest: sha256:ab68c740de6bda70a5094b0bd37f08dccdc193b5a4aed0d67fa53496b9d62e26
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -73,90 +73,6 @@ yarn add @polar-sh/sdk
7373

7474
> [!NOTE]
7575
> This package is published with CommonJS and ES Modules (ESM) support.
76-
77-
78-
### Model Context Protocol (MCP) Server
79-
80-
This SDK is also an installable MCP server where the various SDK methods are
81-
exposed as tools that can be invoked by AI applications.
82-
83-
> Node.js v20 or greater is required to run the MCP server from npm.
84-
85-
<details>
86-
<summary>Claude installation steps</summary>
87-
88-
Add the following server definition to your `claude_desktop_config.json` file:
89-
90-
```json
91-
{
92-
"mcpServers": {
93-
"Polar": {
94-
"command": "npx",
95-
"args": [
96-
"-y", "--package", "@polar-sh/sdk",
97-
"--",
98-
"mcp", "start",
99-
"--access-token", "..."
100-
]
101-
}
102-
}
103-
}
104-
```
105-
106-
</details>
107-
108-
<details>
109-
<summary>Cursor installation steps</summary>
110-
111-
Create a `.cursor/mcp.json` file in your project root with the following content:
112-
113-
```json
114-
{
115-
"mcpServers": {
116-
"Polar": {
117-
"command": "npx",
118-
"args": [
119-
"-y", "--package", "@polar-sh/sdk",
120-
"--",
121-
"mcp", "start",
122-
"--access-token", "..."
123-
]
124-
}
125-
}
126-
}
127-
```
128-
129-
</details>
130-
131-
You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases:
132-
133-
```bash
134-
curl -L -o mcp-server \
135-
https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \
136-
chmod +x mcp-server
137-
```
138-
139-
If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`.
140-
141-
142-
```json
143-
{
144-
"mcpServers": {
145-
"Todos": {
146-
"command": "./DOWNLOAD/PATH/mcp-server",
147-
"args": [
148-
"start"
149-
]
150-
}
151-
}
152-
}
153-
```
154-
155-
For a full list of server arguments, run:
156-
157-
```sh
158-
npx -y --package @polar-sh/sdk -- mcp start --help
159-
```
16076
<!-- End SDK Installation [installation] -->
16177
16278
<!-- Start Requirements [requirements] -->

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,4 +1028,14 @@ Based on:
10281028
### Generated
10291029
- [typescript v0.36.2] .
10301030
### Releases
1031-
- [NPM v0.36.2] https://www.npmjs.com/package/@polar-sh/sdk/v/0.36.2 - .
1031+
- [NPM v0.36.2] https://www.npmjs.com/package/@polar-sh/sdk/v/0.36.2 - .
1032+
1033+
## 2025-10-16 13:56:51
1034+
### Changes
1035+
Based on:
1036+
- OpenAPI Doc
1037+
- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy
1038+
### Generated
1039+
- [typescript v0.37.0] .
1040+
### Releases
1041+
- [NPM v0.37.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.37.0 - .

codeSamples.yaml

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

docs/models/components/benefitcustomsubscriber.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ let value: BenefitCustomSubscriber = {
3838
newOrder: false,
3939
newSubscription: true,
4040
},
41+
customerEmailSettings: {
42+
orderConfirmation: true,
43+
subscriptionCancellation: true,
44+
subscriptionConfirmation: true,
45+
subscriptionCycled: false,
46+
subscriptionPastDue: true,
47+
subscriptionRevoked: false,
48+
subscriptionUncanceled: false,
49+
subscriptionUpdated: false,
50+
},
4151
},
4252
properties: {
4353
note: "<value>",

docs/models/components/benefitdiscordsubscriber.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ let value: BenefitDiscordSubscriber = {
3939
newOrder: false,
4040
newSubscription: true,
4141
},
42+
customerEmailSettings: {
43+
orderConfirmation: true,
44+
subscriptionCancellation: true,
45+
subscriptionConfirmation: true,
46+
subscriptionCycled: false,
47+
subscriptionPastDue: true,
48+
subscriptionRevoked: false,
49+
subscriptionUncanceled: false,
50+
subscriptionUpdated: false,
51+
},
4252
},
4353
properties: {
4454
guildId: "<id>",

docs/models/components/benefitdownloadablessubscriber.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ let value: BenefitDownloadablesSubscriber = {
3737
newOrder: false,
3838
newSubscription: true,
3939
},
40+
customerEmailSettings: {
41+
orderConfirmation: true,
42+
subscriptionCancellation: true,
43+
subscriptionConfirmation: true,
44+
subscriptionCycled: false,
45+
subscriptionPastDue: true,
46+
subscriptionRevoked: false,
47+
subscriptionUncanceled: false,
48+
subscriptionUpdated: false,
49+
},
4050
},
4151
properties: {
4252
activeFiles: [

docs/models/components/benefitgithubrepositorysubscriber.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ let value: BenefitGitHubRepositorySubscriber = {
3737
newOrder: false,
3838
newSubscription: true,
3939
},
40+
customerEmailSettings: {
41+
orderConfirmation: true,
42+
subscriptionCancellation: true,
43+
subscriptionConfirmation: true,
44+
subscriptionCycled: false,
45+
subscriptionPastDue: true,
46+
subscriptionRevoked: false,
47+
subscriptionUncanceled: false,
48+
subscriptionUpdated: false,
49+
},
4050
},
4151
properties: {
4252
repositoryOwner: "polarsource",

0 commit comments

Comments
 (0)