Skip to content

Commit 533552d

Browse files
feat(api): manual updates
1 parent 07d7563 commit 533552d

File tree

19 files changed

+638
-2129
lines changed

19 files changed

+638
-2129
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 45
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-71d495f9b7d8f8c9d80340c0db0a71352f19b22a53688dbc268c7d9137390f2e.yml
3-
openapi_spec_hash: c6293dd58700ec577dc2e10f8eb8f061
4-
config_hash: 3f7672efb046f15f1ee86bcb480da1a2
1+
configured_endpoints: 46
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-d53efdb1a90202370f6191070b177c81adc4a91fb55e98afb34c353a22f53f80.yml
3+
openapi_spec_hash: ea6ffc0d58287a5e8974898352d7e661
4+
config_hash: 9e63503c65fe4eb194dc4892d4a12985

api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ Methods:
138138
Types:
139139

140140
- <code><a href="./src/resources/customers.ts">CustomerClientSelectSchema</a></code>
141+
- <code><a href="./src/resources/customers.ts">NonRenewingSubscriptionDetails</a></code>
142+
- <code><a href="./src/resources/customers.ts">StandardSubscriptionDetails</a></code>
141143
- <code><a href="./src/resources/customers.ts">ToggleSubscriptionItemFeatureRecord</a></code>
142144
- <code><a href="./src/resources/customers.ts">UsageCreditGrantSubscriptionItemFeatureRecord</a></code>
143145
- <code><a href="./src/resources/customers.ts">CustomerCreateResponse</a></code>
@@ -190,6 +192,7 @@ Types:
190192
- <code><a href="./src/resources/subscriptions.ts">SubscriptionListResponse</a></code>
191193
- <code><a href="./src/resources/subscriptions.ts">SubscriptionAdjustResponse</a></code>
192194
- <code><a href="./src/resources/subscriptions.ts">SubscriptionCancelResponse</a></code>
195+
- <code><a href="./src/resources/subscriptions.ts">SubscriptionUncancelResponse</a></code>
193196

194197
Methods:
195198

@@ -198,6 +201,7 @@ Methods:
198201
- <code title="get /api/v1/subscriptions">client.subscriptions.<a href="./src/resources/subscriptions.ts">list</a>({ ...params }) -> SubscriptionListResponse</code>
199202
- <code title="post /api/v1/subscriptions/{id}/adjust">client.subscriptions.<a href="./src/resources/subscriptions.ts">adjust</a>(id, { ...params }) -> SubscriptionAdjustResponse</code>
200203
- <code title="post /api/v1/subscriptions/{id}/cancel">client.subscriptions.<a href="./src/resources/subscriptions.ts">cancel</a>(id, { ...params }) -> SubscriptionCancelResponse</code>
204+
- <code title="post /api/v1/subscriptions/{id}/uncancel">client.subscriptions.<a href="./src/resources/subscriptions.ts">uncancel</a>(id) -> SubscriptionUncancelResponse</code>
201205

202206
# UsageEvents
203207

packages/mcp-server/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ The following tools are available in this MCP server.
309309
- `list_subscriptions` (`read`): List Subscriptions
310310
- `adjust_subscriptions` (`write`): Note: Immediate adjustments are in private preview (Please let us know you use this feature: https://github.com/flowglad/flowglad/issues/616). Adjustments at the end of the current billing period are generally available.
311311
- `cancel_subscriptions` (`write`): Cancel Subscription
312+
- `uncancel_subscriptions` (`write`): Reverses a scheduled subscription cancellation. The subscription must be in `cancellation_scheduled` status. This will restore the subscription to its previous status (typically `active` or `trialing`) and reschedule any billing runs that were aborted. For paid subscriptions, a valid payment method is required.
312313

313314
### Resource `usage_events`:
314315

packages/mcp-server/src/tools/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import retrieve_subscriptions from './subscriptions/retrieve-subscriptions';
4343
import list_subscriptions from './subscriptions/list-subscriptions';
4444
import adjust_subscriptions from './subscriptions/adjust-subscriptions';
4545
import cancel_subscriptions from './subscriptions/cancel-subscriptions';
46+
import uncancel_subscriptions from './subscriptions/uncancel-subscriptions';
4647
import create_usage_events from './usage-events/create-usage-events';
4748
import retrieve_usage_events from './usage-events/retrieve-usage-events';
4849
import create_usage_meters from './usage-meters/create-usage-meters';
@@ -95,6 +96,7 @@ addEndpoint(retrieve_subscriptions);
9596
addEndpoint(list_subscriptions);
9697
addEndpoint(adjust_subscriptions);
9798
addEndpoint(cancel_subscriptions);
99+
addEndpoint(uncancel_subscriptions);
98100
addEndpoint(create_usage_events);
99101
addEndpoint(retrieve_usage_events);
100102
addEndpoint(create_usage_meters);

packages/mcp-server/src/tools/pricing-models/create-pricing-models.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'create_pricing_models',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate Pricing Model\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/pricing_model_create_response',\n $defs: {\n pricing_model_create_response: {\n type: 'object',\n properties: {\n pricingModel: {\n $ref: '#/$defs/pricing_model_client_select_schema'\n }\n },\n required: [ 'pricingModel'\n ]\n },\n pricing_model_client_select_schema: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n createdAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n },\n integrationGuideHash: {\n type: 'string'\n },\n isDefault: {\n type: 'boolean'\n },\n livemode: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n organizationId: {\n type: 'string'\n },\n updatedAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'integrationGuideHash',\n 'isDefault',\n 'livemode',\n 'name',\n 'organizationId',\n 'updatedAt'\n ]\n }\n }\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate Pricing Model\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/pricing_model_create_response',\n $defs: {\n pricing_model_create_response: {\n type: 'object',\n properties: {\n pricingModel: {\n $ref: '#/$defs/pricing_model_client_select_schema'\n }\n },\n required: [ 'pricingModel'\n ]\n },\n pricing_model_client_select_schema: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n createdAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n },\n isDefault: {\n type: 'boolean'\n },\n livemode: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n organizationId: {\n type: 'string'\n },\n updatedAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'isDefault',\n 'livemode',\n 'name',\n 'organizationId',\n 'updatedAt'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {
@@ -28,9 +28,6 @@ export const tool: Tool = {
2828
name: {
2929
type: 'string',
3030
},
31-
integrationGuideHash: {
32-
type: 'string',
33-
},
3431
isDefault: {
3532
type: 'boolean',
3633
},

packages/mcp-server/src/tools/pricing-models/list-pricing-models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'list_pricing_models',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList Pricing Models\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/pricing_model_list_response',\n $defs: {\n pricing_model_list_response: {\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/pricing_model_client_select_schema'\n }\n },\n hasMore: {\n type: 'boolean'\n },\n total: {\n type: 'number'\n },\n currentCursor: {\n type: 'string'\n },\n nextCursor: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'hasMore',\n 'total'\n ]\n },\n pricing_model_client_select_schema: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n createdAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n },\n integrationGuideHash: {\n type: 'string'\n },\n isDefault: {\n type: 'boolean'\n },\n livemode: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n organizationId: {\n type: 'string'\n },\n updatedAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'integrationGuideHash',\n 'isDefault',\n 'livemode',\n 'name',\n 'organizationId',\n 'updatedAt'\n ]\n }\n }\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList Pricing Models\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/pricing_model_list_response',\n $defs: {\n pricing_model_list_response: {\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/pricing_model_client_select_schema'\n }\n },\n hasMore: {\n type: 'boolean'\n },\n total: {\n type: 'number'\n },\n currentCursor: {\n type: 'string'\n },\n nextCursor: {\n type: 'string'\n }\n },\n required: [ 'data',\n 'hasMore',\n 'total'\n ]\n },\n pricing_model_client_select_schema: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n createdAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n },\n isDefault: {\n type: 'boolean'\n },\n livemode: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n organizationId: {\n type: 'string'\n },\n updatedAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'isDefault',\n 'livemode',\n 'name',\n 'organizationId',\n 'updatedAt'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {

packages/mcp-server/src/tools/pricing-models/update-pricing-models.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'update_pricing_models',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nUpdate Pricing Model\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/pricing_model_update_response',\n $defs: {\n pricing_model_update_response: {\n type: 'object',\n properties: {\n pricingModel: {\n $ref: '#/$defs/pricing_model_client_select_schema'\n }\n },\n required: [ 'pricingModel'\n ]\n },\n pricing_model_client_select_schema: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n createdAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n },\n integrationGuideHash: {\n type: 'string'\n },\n isDefault: {\n type: 'boolean'\n },\n livemode: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n organizationId: {\n type: 'string'\n },\n updatedAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'integrationGuideHash',\n 'isDefault',\n 'livemode',\n 'name',\n 'organizationId',\n 'updatedAt'\n ]\n }\n }\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nUpdate Pricing Model\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/pricing_model_update_response',\n $defs: {\n pricing_model_update_response: {\n type: 'object',\n properties: {\n pricingModel: {\n $ref: '#/$defs/pricing_model_client_select_schema'\n }\n },\n required: [ 'pricingModel'\n ]\n },\n pricing_model_client_select_schema: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n createdAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n },\n isDefault: {\n type: 'boolean'\n },\n livemode: {\n type: 'boolean'\n },\n name: {\n type: 'string'\n },\n organizationId: {\n type: 'string'\n },\n updatedAt: {\n type: 'integer',\n description: 'Epoch milliseconds.'\n }\n },\n required: [ 'id',\n 'createdAt',\n 'isDefault',\n 'livemode',\n 'name',\n 'organizationId',\n 'updatedAt'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {
@@ -31,9 +31,6 @@ export const tool: Tool = {
3131
id: {
3232
type: 'string',
3333
},
34-
integrationGuideHash: {
35-
type: 'string',
36-
},
3734
isDefault: {
3835
type: 'boolean',
3936
},

packages/mcp-server/src/tools/products/update-products.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ export const tool: Tool = {
232232
],
233233
},
234234
],
235+
description:
236+
'The latest price fields. Ignored if the product is a default product for its pricing model.',
235237
},
236238
jq_filter: {
237239
type: 'string',

packages/mcp-server/src/tools/subscriptions/cancel-subscriptions.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,6 @@ export const tool: Tool = {
3737
},
3838
required: ['timing'],
3939
},
40-
{
41-
type: 'object',
42-
properties: {
43-
endDate: {
44-
type: 'integer',
45-
description: 'Epoch milliseconds.',
46-
},
47-
timing: {
48-
type: 'string',
49-
enum: ['at_future_date'],
50-
},
51-
},
52-
required: ['endDate', 'timing'],
53-
},
5440
{
5541
type: 'object',
5642
properties: {

0 commit comments

Comments
 (0)