@flexprice/mcp-server 2.1.24 → 2.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +41 -9
- package/bin/mcp-server.js.map +15 -14
- package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts +6 -0
- package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts.map +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.js +6 -0
- package/esm/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.d.ts.map +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.js +7 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.js.map +1 -1
- package/esm/models/entitlementgrantallocationbehavior.d.ts +12 -0
- package/esm/models/entitlementgrantallocationbehavior.d.ts.map +1 -0
- package/esm/models/entitlementgrantallocationbehavior.js +13 -0
- package/esm/models/entitlementgrantallocationbehavior.js.map +1 -0
- package/esm/models/entitlementgrantdurationunit.d.ts +2 -0
- package/esm/models/entitlementgrantdurationunit.d.ts.map +1 -1
- package/esm/models/entitlementgrantdurationunit.js +2 -0
- package/esm/models/entitlementgrantdurationunit.js.map +1 -1
- package/esm/models/entitlementresponse.d.ts +2 -0
- package/esm/models/entitlementresponse.d.ts.map +1 -1
- package/esm/models/entitlementresponse.js +3 -0
- package/esm/models/entitlementresponse.js.map +1 -1
- package/esm/models/integrationentitytype.d.ts +2 -0
- package/esm/models/integrationentitytype.d.ts.map +1 -1
- package/esm/models/integrationentitytype.js +2 -0
- package/esm/models/integrationentitytype.js.map +1 -1
- package/esm/models/subscriptionchangev2request.d.ts +2 -0
- package/esm/models/subscriptionchangev2request.d.ts.map +1 -1
- package/esm/models/subscriptionchangev2request.js +2 -0
- package/esm/models/subscriptionchangev2request.js.map +1 -1
- package/esm/models/subscriptionchangev2response.d.ts +3 -0
- package/esm/models/subscriptionchangev2response.d.ts.map +1 -1
- package/esm/models/subscriptionchangev2response.js +3 -0
- package/esm/models/subscriptionchangev2response.js.map +1 -1
- package/esm/tool-names.js +1 -1
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
- package/src/funcs/subscriptionsExecuteSubscriptionPlanChangeV2.ts +6 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/subscriptionsExecuteSubscriptionPlanChangeV2.ts +7 -1
- package/src/models/entitlementgrantallocationbehavior.ts +19 -0
- package/src/models/entitlementgrantdurationunit.ts +2 -0
- package/src/models/entitlementresponse.ts +7 -0
- package/src/models/integrationentitytype.ts +2 -0
- package/src/models/subscriptionchangev2request.ts +3 -0
- package/src/models/subscriptionchangev2response.ts +8 -0
- package/src/tool-names.ts +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -51464,9 +51464,9 @@ var init_config = __esm(() => {
|
|
|
51464
51464
|
SDK_METADATA = {
|
|
51465
51465
|
language: "typescript",
|
|
51466
51466
|
openapiDocVersion: "1.0",
|
|
51467
|
-
sdkVersion: "2.1.
|
|
51467
|
+
sdkVersion: "2.1.25",
|
|
51468
51468
|
genVersion: "2.931.0",
|
|
51469
|
-
userAgent: "speakeasy-sdk/mcp-typescript 2.1.
|
|
51469
|
+
userAgent: "speakeasy-sdk/mcp-typescript 2.1.25 2.931.0 1.0 @flexprice/mcp-server"
|
|
51470
51470
|
};
|
|
51471
51471
|
});
|
|
51472
51472
|
|
|
@@ -52888,7 +52888,8 @@ var init_integrationentitytype = __esm(() => {
|
|
|
52888
52888
|
"item",
|
|
52889
52889
|
"item_price",
|
|
52890
52890
|
"price",
|
|
52891
|
-
"invoice_line_item"
|
|
52891
|
+
"invoice_line_item",
|
|
52892
|
+
"subscription_line_item"
|
|
52892
52893
|
]);
|
|
52893
52894
|
});
|
|
52894
52895
|
|
|
@@ -53573,7 +53574,8 @@ var init_entitlementgrantdurationunit = __esm(() => {
|
|
|
53573
53574
|
EntitlementGrantDurationUnit$zodSchema = _enum([
|
|
53574
53575
|
"hour",
|
|
53575
53576
|
"day",
|
|
53576
|
-
"week"
|
|
53577
|
+
"week",
|
|
53578
|
+
"subscription_period"
|
|
53577
53579
|
]);
|
|
53578
53580
|
});
|
|
53579
53581
|
|
|
@@ -54452,6 +54454,16 @@ var init_entitlemententitytype = __esm(() => {
|
|
|
54452
54454
|
]);
|
|
54453
54455
|
});
|
|
54454
54456
|
|
|
54457
|
+
// src/models/entitlementgrantallocationbehavior.ts
|
|
54458
|
+
var EntitlementGrantAllocationBehavior$zodSchema;
|
|
54459
|
+
var init_entitlementgrantallocationbehavior = __esm(() => {
|
|
54460
|
+
init_zod();
|
|
54461
|
+
EntitlementGrantAllocationBehavior$zodSchema = _enum([
|
|
54462
|
+
"first_usage",
|
|
54463
|
+
"unit_start"
|
|
54464
|
+
]);
|
|
54465
|
+
});
|
|
54466
|
+
|
|
54455
54467
|
// src/models/planresponse.ts
|
|
54456
54468
|
var PlanResponse$zodSchema;
|
|
54457
54469
|
var init_planresponse = __esm(() => {
|
|
@@ -54487,6 +54499,7 @@ var init_entitlementresponse = __esm(() => {
|
|
|
54487
54499
|
init_addonresponse();
|
|
54488
54500
|
init_entitlementaggregationmode();
|
|
54489
54501
|
init_entitlemententitytype();
|
|
54502
|
+
init_entitlementgrantallocationbehavior();
|
|
54490
54503
|
init_entitlementgrantdurationunit();
|
|
54491
54504
|
init_entitlementgrantmeasure();
|
|
54492
54505
|
init_entitlementusageresetperiod();
|
|
@@ -54508,6 +54521,7 @@ var init_entitlementresponse = __esm(() => {
|
|
|
54508
54521
|
feature: FeatureResponse$zodSchema.optional(),
|
|
54509
54522
|
feature_id: string2().optional(),
|
|
54510
54523
|
feature_type: FeatureType$zodSchema.optional(),
|
|
54524
|
+
grant_allocation_behavior: EntitlementGrantAllocationBehavior$zodSchema.optional(),
|
|
54511
54525
|
grant_duration_unit: EntitlementGrantDurationUnit$zodSchema.optional(),
|
|
54512
54526
|
grant_duration_value: int().optional(),
|
|
54513
54527
|
grant_measure: EntitlementGrantMeasure$zodSchema.optional(),
|
|
@@ -64497,8 +64511,10 @@ var SubscriptionChangeV2Request$zodSchema;
|
|
|
64497
64511
|
var init_subscriptionchangev2request = __esm(() => {
|
|
64498
64512
|
init_zod();
|
|
64499
64513
|
init_prorationbehavior();
|
|
64514
|
+
init_scheduletype();
|
|
64500
64515
|
init_subscriptionchangeentitypolicies();
|
|
64501
64516
|
SubscriptionChangeV2Request$zodSchema = object({
|
|
64517
|
+
change_at: ScheduleType$zodSchema.optional(),
|
|
64502
64518
|
entity_policies: SubscriptionChangeEntityPolicies$zodSchema.optional(),
|
|
64503
64519
|
idempotency_key: string2().optional(),
|
|
64504
64520
|
metadata: record(string2(), string2()).optional(),
|
|
@@ -64548,7 +64564,11 @@ var init_subscriptionchangev2response = __esm(() => {
|
|
|
64548
64564
|
effective_at: exports_iso.datetime({ offset: true }).optional(),
|
|
64549
64565
|
entity_changes: array(EntityChangeResult$zodSchema).optional(),
|
|
64550
64566
|
from_plan: PlanSummary$zodSchema.optional(),
|
|
64567
|
+
is_scheduled: boolean2().optional().describe(`IsScheduled is true when the change was deferred to the period end instead
|
|
64568
|
+
of being applied immediately.`),
|
|
64551
64569
|
metadata: record(string2(), string2()).optional(),
|
|
64570
|
+
schedule_id: string2().optional(),
|
|
64571
|
+
scheduled_at: exports_iso.datetime({ offset: true }).optional(),
|
|
64552
64572
|
subscription: SubscriptionResponse$zodSchema.optional(),
|
|
64553
64573
|
to_plan: PlanSummary$zodSchema.optional(),
|
|
64554
64574
|
warnings: array(string2()).optional()
|
|
@@ -64664,7 +64684,13 @@ var init_subscriptionsExecuteSubscriptionPlanChangeV22 = __esm(() => {
|
|
|
64664
64684
|
name: "execute-subscription-plan-change-v2",
|
|
64665
64685
|
description: `Execute a plan change (v2, swap in place)
|
|
64666
64686
|
|
|
64667
|
-
Change a subscription's plan in place. Subscription id, billing anchor and period bounds are preserved; line items are sliced and settled in one transaction
|
|
64687
|
+
Change a subscription's plan in place. Subscription id, billing anchor and period bounds are preserved; line items are sliced and settled in one transaction.
|
|
64688
|
+
|
|
64689
|
+
change_at controls timing. Omitted or 'immediate' applies the change now. 'end_of_period' records a pending schedule that executes at the subscription's current period end: the response returns is_scheduled, schedule_id and scheduled_at instead of a completed change, and nothing is swapped or billed until the boundary.
|
|
64690
|
+
|
|
64691
|
+
scheduled_at is resolved from the subscription's current period end at request time. If that period end is already in the past (a backdated start date, a resumed pause, or worker downtime can all leave a subscription behind), the change is due immediately and fires on the next billing scan rather than a period away — inspect scheduled_at to see this.
|
|
64692
|
+
|
|
64693
|
+
Only one plan change may be pending per subscription; request a second one and this returns 400. Cancel the existing schedule via POST /subscriptions/schedules/{schedule_id}/cancel first. Pending schedules are listable via GET /subscriptions/{id}/schedules.`,
|
|
64668
64694
|
scopes: ["write"],
|
|
64669
64695
|
annotations: {
|
|
64670
64696
|
title: "",
|
|
@@ -67191,7 +67217,7 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
67191
67217
|
function createMCPServer(deps) {
|
|
67192
67218
|
const server = new McpServer({
|
|
67193
67219
|
name: "Flexprice",
|
|
67194
|
-
version: "2.1.
|
|
67220
|
+
version: "2.1.25"
|
|
67195
67221
|
});
|
|
67196
67222
|
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
67197
67223
|
security: deps.security,
|
|
@@ -67752,7 +67778,13 @@ Use when showing a customer the cost of a plan change before they confirm (e.g.
|
|
|
67752
67778
|
name: "execute-subscription-plan-change-v2",
|
|
67753
67779
|
description: `Execute a plan change (v2, swap in place)
|
|
67754
67780
|
|
|
67755
|
-
Change a subscription's plan in place. Subscription id, billing anchor and period bounds are preserved; line items are sliced and settled in one transaction
|
|
67781
|
+
Change a subscription's plan in place. Subscription id, billing anchor and period bounds are preserved; line items are sliced and settled in one transaction.
|
|
67782
|
+
|
|
67783
|
+
change_at controls timing. Omitted or 'immediate' applies the change now. 'end_of_period' records a pending schedule that executes at the subscription's current period end: the response returns is_scheduled, schedule_id and scheduled_at instead of a completed change, and nothing is swapped or billed until the boundary.
|
|
67784
|
+
|
|
67785
|
+
scheduled_at is resolved from the subscription's current period end at request time. If that period end is already in the past (a backdated start date, a resumed pause, or worker downtime can all leave a subscription behind), the change is due immediately and fires on the next billing scan rather than a period away — inspect scheduled_at to see this.
|
|
67786
|
+
|
|
67787
|
+
Only one plan change may be pending per subscription; request a second one and this returns 400. Cancel the existing schedule via POST /subscriptions/schedules/{schedule_id}/cancel first. Pending schedules are listable via GET /subscriptions/{id}/schedules.`
|
|
67756
67788
|
},
|
|
67757
67789
|
{
|
|
67758
67790
|
name: "preview-subscription-plan-change-v2",
|
|
@@ -71618,7 +71650,7 @@ var routes = buildRouteMap({
|
|
|
71618
71650
|
var app = buildApplication(routes, {
|
|
71619
71651
|
name: "mcp",
|
|
71620
71652
|
versionInfo: {
|
|
71621
|
-
currentVersion: "2.1.
|
|
71653
|
+
currentVersion: "2.1.25"
|
|
71622
71654
|
}
|
|
71623
71655
|
});
|
|
71624
71656
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -71626,5 +71658,5 @@ export {
|
|
|
71626
71658
|
app
|
|
71627
71659
|
};
|
|
71628
71660
|
|
|
71629
|
-
//# debugId=
|
|
71661
|
+
//# debugId=13D05ED29CECDA7D64756E2164756E21
|
|
71630
71662
|
//# sourceMappingURL=mcp-server.js.map
|