Skip to content

Commit 90b7624

Browse files
feat(api): update via SDK Studio
1 parent e11e5a4 commit 90b7624

28 files changed

+1097
-167
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 45
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-a1eeb4fac4d6f2e5a1bed0a6ef5abfc4172e8d989c24343860b8a07a389ea65b.yml
3-
openapi_spec_hash: 1bd6007e37eeb62e1dc85da4f939ed1d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-71d495f9b7d8f8c9d80340c0db0a71352f19b22a53688dbc268c7d9137390f2e.yml
3+
openapi_spec_hash: c6293dd58700ec577dc2e10f8eb8f061
44
config_hash: b3cf56eeb5f18b49019b9be6e30263c0

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ Types:
139139

140140
- <code><a href="./src/resources/customers.ts">CustomerClientSelectSchema</a></code>
141141
- <code><a href="./src/resources/customers.ts">ToggleSubscriptionItemFeatureRecord</a></code>
142-
- <code><a href="./src/resources/customers.ts">UsageCreditGrantSubscriptionItemFeatureClientSelectSchema</a></code>
143142
- <code><a href="./src/resources/customers.ts">CustomerCreateResponse</a></code>
144143
- <code><a href="./src/resources/customers.ts">CustomerRetrieveResponse</a></code>
145144
- <code><a href="./src/resources/customers.ts">CustomerUpdateResponse</a></code>

packages/mcp-server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ The following tools are available in this MCP server.
308308
- `retrieve_subscriptions` (`read`): Get Subscription
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.
311-
- `cancel_subscriptions` (`write`): Cancel a Subscription
311+
- `cancel_subscriptions` (`write`): Cancel Subscription
312312

313313
### Resource `usage_events`:
314314

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

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ export const tool: Tool = {
3333
type: 'string',
3434
description: 'The id of the Customer for this purchase session, as defined in your system',
3535
},
36-
priceId: {
37-
type: 'string',
38-
description: 'The ID of the price the customer shall purchase',
39-
},
4036
successUrl: {
4137
type: 'string',
4238
description: 'The URL to redirect to after the purchase is successful',
@@ -63,13 +59,23 @@ export const tool: Tool = {
6359
description:
6460
'Whether to preserve the billing cycle anchor date in the case that the customer already has an active subscription that renews. If not provided, defaults to false.',
6561
},
62+
priceId: {
63+
type: 'string',
64+
description:
65+
'The ID of the price the customer shall purchase. If not provided, priceSlug is required.',
66+
},
67+
priceSlug: {
68+
type: 'string',
69+
description:
70+
'The slug of the price the customer shall purchase. If not provided, priceId is required.',
71+
},
6672
quantity: {
6773
type: 'number',
6874
description:
6975
'The quantity of the purchase or subscription created when this checkout session succeeds. Ignored if the checkout session is of type `invoice`.',
7076
},
7177
},
72-
required: ['cancelUrl', 'customerExternalId', 'priceId', 'successUrl', 'type'],
78+
required: ['cancelUrl', 'customerExternalId', 'successUrl', 'type'],
7379
},
7480
{
7581
type: 'object',
@@ -82,10 +88,6 @@ export const tool: Tool = {
8288
type: 'string',
8389
description: 'The URL to redirect to after the purchase is canceled or fails',
8490
},
85-
priceId: {
86-
type: 'string',
87-
description: 'The ID of the price the customer shall purchase',
88-
},
8991
successUrl: {
9092
type: 'string',
9193
description: 'The URL to redirect to after the purchase is successful',
@@ -112,13 +114,23 @@ export const tool: Tool = {
112114
description:
113115
'Whether to preserve the billing cycle anchor date in the case that the customer already has an active subscription that renews. If not provided, defaults to false.',
114116
},
117+
priceId: {
118+
type: 'string',
119+
description:
120+
'The ID of the price the customer shall purchase. If not provided, priceSlug is required.',
121+
},
122+
priceSlug: {
123+
type: 'string',
124+
description:
125+
"The slug of the price the customer shall purchase from the organization's default pricing model. If not provided, priceId is required.",
126+
},
115127
quantity: {
116128
type: 'number',
117129
description:
118130
'The quantity of the purchase or subscription created when this checkout session succeeds. Ignored if the checkout session is of type `invoice`.',
119131
},
120132
},
121-
required: ['anonymous', 'cancelUrl', 'priceId', 'successUrl', 'type'],
133+
required: ['anonymous', 'cancelUrl', 'successUrl', 'type'],
122134
},
123135
{
124136
type: 'object',
@@ -131,9 +143,6 @@ export const tool: Tool = {
131143
type: 'string',
132144
description: 'The id of the Customer for this purchase session, as defined in your system',
133145
},
134-
priceId: {
135-
type: 'string',
136-
},
137146
successUrl: {
138147
type: 'string',
139148
description: 'The URL to redirect to after the purchase is successful',
@@ -161,14 +170,7 @@ export const tool: Tool = {
161170
'Whether to preserve the billing cycle anchor date in the case that the customer already has an active subscription that renews. If not provided, defaults to false.',
162171
},
163172
},
164-
required: [
165-
'cancelUrl',
166-
'customerExternalId',
167-
'priceId',
168-
'successUrl',
169-
'targetSubscriptionId',
170-
'type',
171-
],
173+
required: ['cancelUrl', 'customerExternalId', 'successUrl', 'targetSubscriptionId', 'type'],
172174
},
173175
{
174176
type: 'object',

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

Lines changed: 4 additions & 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: '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 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```",
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```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {
@@ -28,6 +28,9 @@ export const tool: Tool = {
2828
name: {
2929
type: 'string',
3030
},
31+
integrationGuideHash: {
32+
type: 'string',
33+
},
3134
isDefault: {
3235
type: 'boolean',
3336
},

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 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```",
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```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {

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

Lines changed: 4 additions & 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: '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 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```",
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```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {
@@ -31,6 +31,9 @@ export const tool: Tool = {
3131
id: {
3232
type: 'string',
3333
},
34+
integrationGuideHash: {
35+
type: 'string',
36+
},
3437
isDefault: {
3538
type: 'boolean',
3639
},

0 commit comments

Comments
 (0)