Skip to content

Commit 5e7f517

Browse files
authored
Merge pull request #168 from flowglad/release-please--branches--main--changes--next--components--node
release: 0.21.0
2 parents cc792f8 + 93fb4ea commit 5e7f517

Some content is hidden

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

54 files changed

+14200
-3317
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.20.0"
2+
".": "0.21.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-00982324965dd53510b4c1f874349206c20a750409b11e6bb3105d4a9bd47c99.yml
3-
openapi_spec_hash: 1265eacb911822059d557d67651ce9a4
4-
config_hash: b58ee2165665ca3b3a690e4399dfea45
1+
configured_endpoints: 46
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-0cf7bce0c17d6f5a651950ab9f46224548af6b420a8a18883ae357c834ab6148.yml
3+
openapi_spec_hash: 4d78e958c164eaa79116965799ff10c7
4+
config_hash: 5cd4df36fa4da9901706710955ea260e

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
# Changelog
2+
## 0.21.0 (2025-06-25)
3+
4+
Full Changelog: [v0.20.0...v0.21.0](https://github.com/flowglad/flowglad-node/compare/v0.20.0...v0.21.0)
5+
6+
### Features
7+
8+
* **api:** activate subscription checkout session ([9a2a56e](https://github.com/flowglad/flowglad-node/commit/9a2a56e061fe8db260568d0a5547c4dc81a3756a))
9+
10+
11+
### Refactors
12+
13+
* **types:** replace Record with mapped types ([560e1a4](https://github.com/flowglad/flowglad-node/commit/560e1a4b96210410b5a934a8c42f68c6f8280ed0))
14+
215
## 0.20.0 (2025-06-23)
316

417
Full Changelog: [v0.19.3...v0.20.0](https://github.com/flowglad/flowglad-node/compare/v0.19.3...v0.20.0)

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,11 @@ Types:
172172

173173
- <code><a href="./src/resources/usage-events.ts">UsageEventCreateResponse</a></code>
174174
- <code><a href="./src/resources/usage-events.ts">UsageEventRetrieveResponse</a></code>
175-
- <code><a href="./src/resources/usage-events.ts">UsageEventUpdateResponse</a></code>
176175

177176
Methods:
178177

179178
- <code title="post /api/v1/usage-events">client.usageEvents.<a href="./src/resources/usage-events.ts">create</a>({ ...params }) -> UsageEventCreateResponse</code>
180179
- <code title="get /api/v1/usage-events/{id}">client.usageEvents.<a href="./src/resources/usage-events.ts">retrieve</a>(id) -> UsageEventRetrieveResponse</code>
181-
- <code title="put /api/v1/usage-events/{id}">client.usageEvents.<a href="./src/resources/usage-events.ts">update</a>(id, { ...params }) -> UsageEventUpdateResponse</code>
182180

183181
# UsageMeters
184182

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flowglad/node",
3-
"version": "0.20.0",
3+
"version": "0.21.0",
44
"description": "The official TypeScript library for the Flowglad API",
55
"author": "Flowglad <[email protected]>",
66
"types": "dist/index.d.ts",

packages/mcp-server/README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ The following tools are available in this MCP server.
174174
### Resource `invoice_line_items`:
175175

176176
- `retrieve_invoice_line_items` (`read`): Get Invoice Line Item
177-
- `list_invoice_line_items` (`read`): List InvoiceLineItems
177+
- `list_invoice_line_items` (`read`): List Invoice Line Items
178178

179179
### Resource `catalogs`:
180180

@@ -187,9 +187,9 @@ The following tools are available in this MCP server.
187187

188188
### Resource `checkout_sessions`:
189189

190-
- `create_checkout_sessions` (`write`): Create CheckoutSession
191-
- `retrieve_checkout_sessions` (`read`): Get CheckoutSession
192-
- `list_checkout_sessions` (`read`): List CheckoutSessions
190+
- `create_checkout_sessions` (`write`): Create Checkout Session
191+
- `retrieve_checkout_sessions` (`read`): Get Checkout Session
192+
- `list_checkout_sessions` (`read`): List Checkout Sessions
193193

194194
### Resource `products`:
195195

@@ -227,8 +227,8 @@ The following tools are available in this MCP server.
227227

228228
### Resource `payment_methods`:
229229

230-
- `retrieve_payment_methods` (`read`): Get PaymentMethod
231-
- `list_payment_methods` (`read`): List PaymentMethods
230+
- `retrieve_payment_methods` (`read`): Get Payment Method
231+
- `list_payment_methods` (`read`): List Payment Methods
232232

233233
### Resource `subscriptions`:
234234

@@ -240,13 +240,12 @@ The following tools are available in this MCP server.
240240

241241
### Resource `usage_events`:
242242

243-
- `create_usage_events` (`write`): Create UsageEvent
244-
- `retrieve_usage_events` (`read`): Get UsageEvent
245-
- `update_usage_events` (`write`): Update UsageEvent
243+
- `create_usage_events` (`write`): Create Usage Event
244+
- `retrieve_usage_events` (`read`): Get Usage Event
246245

247246
### Resource `usage_meters`:
248247

249-
- `create_usage_meters` (`write`): Create UsageMeter
250-
- `retrieve_usage_meters` (`read`): Get UsageMeter
251-
- `update_usage_meters` (`write`): Update UsageMeter
252-
- `list_usage_meters` (`read`): List UsageMeters
248+
- `create_usage_meters` (`write`): Create Usage Meter
249+
- `retrieve_usage_meters` (`read`): Get Usage Meter
250+
- `update_usage_meters` (`write`): Update Usage Meter
251+
- `list_usage_meters` (`read`): List Usage Meters

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flowglad/node-mcp",
3-
"version": "0.20.0",
3+
"version": "0.21.0",
44
"description": "The official MCP Server for the Flowglad API",
55
"author": "Flowglad <[email protected]>",
66
"types": "dist/index.d.ts",

packages/mcp-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export { endpoints } from './tools';
2626
export const server = new McpServer(
2727
{
2828
name: 'flowglad_node_api',
29-
version: '0.20.0',
29+
version: '0.21.0',
3030
},
3131
{
3232
capabilities: {

packages/mcp-server/src/tools/checkout-sessions/create-checkout-sessions.ts

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const metadata: Metadata = {
1717

1818
export const tool: Tool = {
1919
name: 'create_checkout_sessions',
20-
description: 'Create CheckoutSession',
20+
description: 'Create Checkout Session',
2121
inputSchema: {
2222
type: 'object',
2323
properties: {
@@ -28,7 +28,7 @@ export const tool: Tool = {
2828
properties: {
2929
cancelUrl: {
3030
type: 'string',
31-
description: 'The URL to redirect to after the purchase is cancelled or fails',
31+
description: 'The URL to redirect to after the purchase is canceled or fails',
3232
},
3333
customerExternalId: {
3434
type: 'string',
@@ -69,7 +69,7 @@ export const tool: Tool = {
6969
properties: {
7070
cancelUrl: {
7171
type: 'string',
72-
description: 'The URL to redirect to after the purchase is cancelled or fails',
72+
description: 'The URL to redirect to after the purchase is canceled or fails',
7373
},
7474
customerExternalId: {
7575
type: 'string',
@@ -83,6 +83,11 @@ export const tool: Tool = {
8383
type: 'string',
8484
enum: ['add_payment_method'],
8585
},
86+
automaticallyUpdateSubscriptions: {
87+
type: 'boolean',
88+
description:
89+
'Whether to automatically update all current subscriptions to the new payment method. Defaults to false.',
90+
},
8691
outputMetadata: {
8792
type: 'object',
8893
description:
@@ -101,6 +106,51 @@ export const tool: Tool = {
101106
},
102107
required: ['cancelUrl', 'customerExternalId', 'successUrl', 'type'],
103108
},
109+
{
110+
type: 'object',
111+
properties: {
112+
cancelUrl: {
113+
type: 'string',
114+
description: 'The URL to redirect to after the purchase is canceled or fails',
115+
},
116+
customerExternalId: {
117+
type: 'string',
118+
description: 'The id of the Customer for this purchase session, as defined in your system',
119+
},
120+
priceId: {
121+
type: 'string',
122+
},
123+
successUrl: {
124+
type: 'string',
125+
description: 'The URL to redirect to after the purchase is successful',
126+
},
127+
targetSubscriptionId: {
128+
type: 'string',
129+
},
130+
type: {
131+
type: 'string',
132+
enum: ['activate_subscription'],
133+
},
134+
outputMetadata: {
135+
type: 'object',
136+
description:
137+
'Metadata that will get added to the purchase or subscription created when this checkout session succeeds. Ignored if the checkout session is of type `invoice`.',
138+
},
139+
outputName: {
140+
type: 'string',
141+
description:
142+
'The name of the purchase or subscription created when this checkout session succeeds. Ignored if the checkout session is of type `invoice`.',
143+
},
144+
},
145+
required: [
146+
'cancelUrl',
147+
'customerExternalId',
148+
'priceId',
149+
'successUrl',
150+
'targetSubscriptionId',
151+
'type',
152+
],
153+
},
104154
],
105155
},
106156
},

packages/mcp-server/src/tools/checkout-sessions/list-checkout-sessions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const metadata: Metadata = {
1717

1818
export const tool: Tool = {
1919
name: 'list_checkout_sessions',
20-
description: 'List CheckoutSessions',
20+
description: 'List Checkout Sessions',
2121
inputSchema: {
2222
type: 'object',
2323
properties: {

0 commit comments

Comments
 (0)