@flexprice/mcp-server 2.1.11 → 2.1.17
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 +67 -10
- package/bin/mcp-server.js.map +21 -19
- package/bun.lock +19 -19
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/changedsubscription.d.ts +2 -0
- package/esm/models/changedsubscription.d.ts.map +1 -1
- package/esm/models/changedsubscription.js +2 -0
- package/esm/models/changedsubscription.js.map +1 -1
- package/esm/models/createinvoicelineitemrequest.d.ts +3 -0
- package/esm/models/createinvoicelineitemrequest.d.ts.map +1 -1
- package/esm/models/createinvoicelineitemrequest.js +3 -0
- package/esm/models/createinvoicelineitemrequest.js.map +1 -1
- package/esm/models/entityintegrationmappingresponse.d.ts +3 -0
- package/esm/models/entityintegrationmappingresponse.d.ts.map +1 -1
- package/esm/models/entityintegrationmappingresponse.js +1 -0
- package/esm/models/entityintegrationmappingresponse.js.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.d.ts +2 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.js +2 -0
- package/esm/models/executesubscriptionmodifyrequest.js.map +1 -1
- package/esm/models/invoicebillingreason.d.ts +2 -0
- package/esm/models/invoicebillingreason.d.ts.map +1 -1
- package/esm/models/invoicebillingreason.js +2 -0
- package/esm/models/invoicebillingreason.js.map +1 -1
- package/esm/models/invoicefilter.d.ts +3 -0
- package/esm/models/invoicefilter.d.ts.map +1 -1
- package/esm/models/invoicefilter.js +3 -0
- package/esm/models/invoicefilter.js.map +1 -1
- package/esm/models/invoicelineitemresponse.d.ts +2 -0
- package/esm/models/invoicelineitemresponse.d.ts.map +1 -1
- package/esm/models/invoicelineitemresponse.js +2 -0
- package/esm/models/invoicelineitemresponse.js.map +1 -1
- package/esm/models/priceprice.d.ts +1 -0
- package/esm/models/priceprice.d.ts.map +1 -1
- package/esm/models/priceprice.js +1 -0
- package/esm/models/priceprice.js.map +1 -1
- package/esm/models/priceresponse.d.ts +1 -0
- package/esm/models/priceresponse.d.ts.map +1 -1
- package/esm/models/priceresponse.js +1 -0
- package/esm/models/priceresponse.js.map +1 -1
- package/esm/models/submodifytrialendrequest.d.ts +8 -0
- package/esm/models/submodifytrialendrequest.d.ts.map +1 -0
- package/esm/models/submodifytrialendrequest.js +10 -0
- package/esm/models/submodifytrialendrequest.js.map +1 -0
- package/esm/models/subscriptionmodifytype.d.ts +2 -0
- package/esm/models/subscriptionmodifytype.d.ts.map +1 -1
- package/esm/models/subscriptionmodifytype.js +2 -0
- package/esm/models/subscriptionmodifytype.js.map +1 -1
- package/esm/models/subscriptionresponse.d.ts +1 -0
- package/esm/models/subscriptionresponse.d.ts.map +1 -1
- package/esm/models/subscriptionresponse.js +1 -0
- package/esm/models/subscriptionresponse.js.map +1 -1
- package/esm/models/subscriptionresponsev2.d.ts +2 -0
- package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
- package/esm/models/subscriptionresponsev2.js +2 -0
- package/esm/models/subscriptionresponsev2.js.map +1 -1
- package/esm/models/trialendaction.d.ts +12 -0
- package/esm/models/trialendaction.d.ts.map +1 -0
- package/esm/models/trialendaction.js +13 -0
- package/esm/models/trialendaction.js.map +1 -0
- package/esm/models/userresponse.d.ts +3 -0
- package/esm/models/userresponse.d.ts.map +1 -1
- package/esm/models/userresponse.js +1 -0
- package/esm/models/userresponse.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/changedsubscription.ts +4 -0
- package/src/models/createinvoicelineitemrequest.ts +12 -0
- package/src/models/entityintegrationmappingresponse.ts +2 -0
- package/src/models/executesubscriptionmodifyrequest.ts +6 -0
- package/src/models/invoicebillingreason.ts +2 -0
- package/src/models/invoicefilter.ts +10 -0
- package/src/models/invoicelineitemresponse.ts +8 -0
- package/src/models/priceprice.ts +4 -0
- package/src/models/priceresponse.ts +4 -0
- package/src/models/submodifytrialendrequest.ts +20 -0
- package/src/models/subscriptionmodifytype.ts +2 -0
- package/src/models/subscriptionresponse.ts +4 -0
- package/src/models/subscriptionresponsev2.ts +8 -0
- package/src/models/trialendaction.ts +17 -0
- package/src/models/userresponse.ts +2 -0
package/bin/mcp-server.js
CHANGED
|
@@ -51134,9 +51134,9 @@ var init_config = __esm(() => {
|
|
|
51134
51134
|
SDK_METADATA = {
|
|
51135
51135
|
language: "typescript",
|
|
51136
51136
|
openapiDocVersion: "1.0",
|
|
51137
|
-
sdkVersion: "2.1.
|
|
51138
|
-
genVersion: "2.
|
|
51139
|
-
userAgent: "speakeasy-sdk/mcp-typescript 2.1.
|
|
51137
|
+
sdkVersion: "2.1.17",
|
|
51138
|
+
genVersion: "2.893.0",
|
|
51139
|
+
userAgent: "speakeasy-sdk/mcp-typescript 2.1.17 2.893.0 1.0 @flexprice/mcp-server"
|
|
51140
51140
|
};
|
|
51141
51141
|
});
|
|
51142
51142
|
|
|
@@ -52876,6 +52876,7 @@ var init_entityintegrationmappingresponse = __esm(() => {
|
|
|
52876
52876
|
entity_type: IntegrationEntityType$zodSchema.optional(),
|
|
52877
52877
|
environment_id: string2().optional(),
|
|
52878
52878
|
id: string2().optional(),
|
|
52879
|
+
metadata: record(string2(), any()).optional(),
|
|
52879
52880
|
provider_entity_id: string2().optional(),
|
|
52880
52881
|
provider_type: string2().optional(),
|
|
52881
52882
|
status: Status$zodSchema.optional(),
|
|
@@ -54703,6 +54704,10 @@ For USD: $12.50`),
|
|
|
54703
54704
|
price_unit_id: string2().optional().describe("PriceUnitID is the id of the price unit (for CUSTOM type)"),
|
|
54704
54705
|
price_unit_tiers: array(PricePriceTier$zodSchema).optional().describe("PriceUnitTiers are the tiers for the price unit when BillingModel is TIERED"),
|
|
54705
54706
|
price_unit_type: PriceUnitType$zodSchema.optional(),
|
|
54707
|
+
sequence: int().optional().describe(`Sequence is the monotonic stamp bumped on every state change that
|
|
54708
|
+
subscription line items need to react to. Read by the plan-price sync;
|
|
54709
|
+
set by the database (DEFAULT nextval) on create and by the price
|
|
54710
|
+
repository on termination / compatibility-affecting edits.`),
|
|
54706
54711
|
start_date: exports_iso.datetime({ offset: true }).optional().describe("StartDate is the start date of the price"),
|
|
54707
54712
|
status: Status$zodSchema.optional(),
|
|
54708
54713
|
tenant_id: string2().optional(),
|
|
@@ -56107,6 +56112,7 @@ var init_createinvoicelineitemrequest = __esm(() => {
|
|
|
56107
56112
|
init_zod();
|
|
56108
56113
|
init_commitmentinfo();
|
|
56109
56114
|
CreateInvoiceLineItemRequest$zodSchema = object({
|
|
56115
|
+
adjusted_entitlement_quantity: string2().optional().describe("adjusted_entitlement_quantity is the entitlement-covered units deducted from raw usage."),
|
|
56110
56116
|
amount: string2().describe("amount is the monetary amount for this line item"),
|
|
56111
56117
|
commitment_info: CommitmentInfo$zodSchema.optional(),
|
|
56112
56118
|
display_name: string2().optional().describe("display_name is the optional human-readable name for this line item"),
|
|
@@ -56127,7 +56133,10 @@ plan_id is the optional unique identifier of the plan associated with this line
|
|
|
56127
56133
|
price_type: string2().optional().describe("price_type indicates the type of pricing (fixed, usage, tiered, etc.)"),
|
|
56128
56134
|
price_unit: string2().optional().describe("price_unit is the optional 3-digit ISO code of the price unit associated with this line item"),
|
|
56129
56135
|
price_unit_amount: string2().optional().describe("price_unit_amount is the optional amount converted to the price unit currency"),
|
|
56130
|
-
quantity: string2().describe("quantity is the quantity of units for this line item")
|
|
56136
|
+
quantity: string2().describe("quantity is the quantity of units for this line item"),
|
|
56137
|
+
subscription_id: string2().optional().describe(`subscription_id overrides the invoice's subscription_id for this specific line item.
|
|
56138
|
+
Used for grouped invoicing where child line items belong to child subscriptions.`),
|
|
56139
|
+
subscription_line_item_id: string2().optional().describe("sub_line_item_id links this line item to the subscription_line_item that generated it.")
|
|
56131
56140
|
});
|
|
56132
56141
|
});
|
|
56133
56142
|
|
|
@@ -56143,7 +56152,8 @@ var init_invoicebillingreason = __esm(() => {
|
|
|
56143
56152
|
"SUBSCRIPTION_TRIAL_START",
|
|
56144
56153
|
"PRORATION",
|
|
56145
56154
|
"MANUAL",
|
|
56146
|
-
"AUTO_INVOICE_THRESHOLD"
|
|
56155
|
+
"AUTO_INVOICE_THRESHOLD",
|
|
56156
|
+
"WALLET_AUTO_TOPUP"
|
|
56147
56157
|
]);
|
|
56148
56158
|
});
|
|
56149
56159
|
|
|
@@ -56788,6 +56798,8 @@ var init_invoicelineitemresponse = __esm(() => {
|
|
|
56788
56798
|
init_status();
|
|
56789
56799
|
init_usagebreakdownitem();
|
|
56790
56800
|
InvoiceLineItemResponse$zodSchema = object({
|
|
56801
|
+
adjusted_entitlement_quantity: string2().optional().describe(`adjusted_entitlement_quantity is the entitlement-covered portion deducted from raw usage.
|
|
56802
|
+
Nil when no entitlement was applied. Raw usage = Quantity + AdjustedEntitlementQuantity.`),
|
|
56791
56803
|
amount: string2().optional(),
|
|
56792
56804
|
commitment_info: CommitmentInfo$zodSchema.optional(),
|
|
56793
56805
|
created_at: exports_iso.datetime({ offset: true }).optional(),
|
|
@@ -56817,6 +56829,7 @@ var init_invoicelineitemresponse = __esm(() => {
|
|
|
56817
56829
|
quantity: string2().optional(),
|
|
56818
56830
|
status: Status$zodSchema.optional(),
|
|
56819
56831
|
subscription_id: string2().optional(),
|
|
56832
|
+
subscription_line_item_id: string2().optional().describe("sub_line_item_id links this invoice line item to the subscription_line_item that generated it."),
|
|
56820
56833
|
tenant_id: string2().optional(),
|
|
56821
56834
|
updated_at: exports_iso.datetime({ offset: true }).optional(),
|
|
56822
56835
|
updated_by: string2().optional(),
|
|
@@ -57115,6 +57128,10 @@ For USD: $12.50`),
|
|
|
57115
57128
|
price_unit_tiers: array(PricePriceTier$zodSchema).optional().describe("PriceUnitTiers are the tiers for the price unit when BillingModel is TIERED"),
|
|
57116
57129
|
price_unit_type: PriceUnitType$zodSchema.optional(),
|
|
57117
57130
|
pricing_unit: PriceUnitResponse$zodSchema.optional(),
|
|
57131
|
+
sequence: int().optional().describe(`Sequence is the monotonic stamp bumped on every state change that
|
|
57132
|
+
subscription line items need to react to. Read by the plan-price sync;
|
|
57133
|
+
set by the database (DEFAULT nextval) on create and by the price
|
|
57134
|
+
repository on termination / compatibility-affecting edits.`),
|
|
57118
57135
|
start_date: exports_iso.datetime({ offset: true }).optional().describe("StartDate is the start date of the price"),
|
|
57119
57136
|
status: Status$zodSchema.optional(),
|
|
57120
57137
|
tenant_id: string2().optional(),
|
|
@@ -57407,6 +57424,9 @@ This can differ from the subscription customer (e.g., parent company invoicing f
|
|
|
57407
57424
|
status: Status$zodSchema.optional(),
|
|
57408
57425
|
subscription_status: SubscriptionStatus$zodSchema.optional(),
|
|
57409
57426
|
subscription_type: SubscriptionType$zodSchema.optional(),
|
|
57427
|
+
synced_price_sequence: int().optional().describe(`SyncedPriceSequence is the plan-price sequence up to which this
|
|
57428
|
+
subscription's line items have been reconciled. Bumped by the
|
|
57429
|
+
plan-price sync after a successful pass.`),
|
|
57410
57430
|
tenant_id: string2().optional(),
|
|
57411
57431
|
trial_end: exports_iso.datetime({ offset: true }).optional().describe("TrialEnd is the end date of the trial period"),
|
|
57412
57432
|
trial_start: exports_iso.datetime({ offset: true }).optional().describe("TrialStart is the start date of the trial period"),
|
|
@@ -57926,6 +57946,7 @@ var InvoiceFilterOrder$zodSchema, InvoiceFilter$zodSchema;
|
|
|
57926
57946
|
var init_invoicefilter = __esm(() => {
|
|
57927
57947
|
init_zod();
|
|
57928
57948
|
init_filtercondition();
|
|
57949
|
+
init_invoicebillingreason();
|
|
57929
57950
|
init_invoicestatus();
|
|
57930
57951
|
init_invoicetype();
|
|
57931
57952
|
init_paymentstatus();
|
|
@@ -57940,6 +57961,9 @@ var init_invoicefilter = __esm(() => {
|
|
|
57940
57961
|
Useful for finding invoices above a certain threshold or identifying high-value invoices`),
|
|
57941
57962
|
amount_remaining_gt: number2().optional().describe(`amount_remaining_gt filters invoices with an outstanding balance greater than the specified value
|
|
57942
57963
|
Useful for finding invoices that still have significant unpaid amounts`),
|
|
57964
|
+
billing_reason: InvoiceBillingReason$zodSchema.optional(),
|
|
57965
|
+
currency: string2().optional().describe(`currency filters invoices by their currency (ISO 4217 code, e.g. "usd", "eur").
|
|
57966
|
+
Matches on the invoices.currency column exactly.`),
|
|
57943
57967
|
customer_id: string2().optional().describe(`customer_id filters invoices for a specific customer using FlexPrice's internal customer ID
|
|
57944
57968
|
This is the ID returned by FlexPrice when creating or retrieving customers`),
|
|
57945
57969
|
end_time: exports_iso.datetime({ offset: true }).optional(),
|
|
@@ -62499,6 +62523,27 @@ var init_submodifyquantitychangerequest = __esm(() => {
|
|
|
62499
62523
|
});
|
|
62500
62524
|
});
|
|
62501
62525
|
|
|
62526
|
+
// src/models/trialendaction.ts
|
|
62527
|
+
var TrialEndAction$zodSchema;
|
|
62528
|
+
var init_trialendaction = __esm(() => {
|
|
62529
|
+
init_zod();
|
|
62530
|
+
TrialEndAction$zodSchema = _enum([
|
|
62531
|
+
"immediate",
|
|
62532
|
+
"scheduled_date"
|
|
62533
|
+
]);
|
|
62534
|
+
});
|
|
62535
|
+
|
|
62536
|
+
// src/models/submodifytrialendrequest.ts
|
|
62537
|
+
var SubModifyTrialEndRequest$zodSchema;
|
|
62538
|
+
var init_submodifytrialendrequest = __esm(() => {
|
|
62539
|
+
init_zod();
|
|
62540
|
+
init_trialendaction();
|
|
62541
|
+
SubModifyTrialEndRequest$zodSchema = object({
|
|
62542
|
+
action: TrialEndAction$zodSchema,
|
|
62543
|
+
new_trial_end: exports_iso.datetime({ offset: true }).optional().describe('NewTrialEnd is the new trial end date. Required when action is "scheduled_date".')
|
|
62544
|
+
});
|
|
62545
|
+
});
|
|
62546
|
+
|
|
62502
62547
|
// src/models/subscriptionmodifytype.ts
|
|
62503
62548
|
var SubscriptionModifyType$zodSchema;
|
|
62504
62549
|
var init_subscriptionmodifytype = __esm(() => {
|
|
@@ -62506,7 +62551,8 @@ var init_subscriptionmodifytype = __esm(() => {
|
|
|
62506
62551
|
SubscriptionModifyType$zodSchema = _enum([
|
|
62507
62552
|
"inheritance",
|
|
62508
62553
|
"quantity_change",
|
|
62509
|
-
"grouped_invoicing"
|
|
62554
|
+
"grouped_invoicing",
|
|
62555
|
+
"trial_end"
|
|
62510
62556
|
]);
|
|
62511
62557
|
});
|
|
62512
62558
|
|
|
@@ -62517,11 +62563,13 @@ var init_executesubscriptionmodifyrequest = __esm(() => {
|
|
|
62517
62563
|
init_submodifygroupedinvoicingparams();
|
|
62518
62564
|
init_submodifyinheritancerequest();
|
|
62519
62565
|
init_submodifyquantitychangerequest();
|
|
62566
|
+
init_submodifytrialendrequest();
|
|
62520
62567
|
init_subscriptionmodifytype();
|
|
62521
62568
|
ExecuteSubscriptionModifyRequest$zodSchema = object({
|
|
62522
62569
|
grouped_invoicing_params: SubModifyGroupedInvoicingParams$zodSchema.optional(),
|
|
62523
62570
|
inheritance_params: SubModifyInheritanceRequest$zodSchema.optional(),
|
|
62524
62571
|
quantity_change_params: SubModifyQuantityChangeRequest$zodSchema.optional(),
|
|
62572
|
+
trial_end_params: SubModifyTrialEndRequest$zodSchema.optional(),
|
|
62525
62573
|
type: SubscriptionModifyType$zodSchema
|
|
62526
62574
|
});
|
|
62527
62575
|
});
|
|
@@ -62648,6 +62696,7 @@ var init_userresponse = __esm(() => {
|
|
|
62648
62696
|
UserResponse$zodSchema = object({
|
|
62649
62697
|
email: string2().optional().describe("Empty for service accounts"),
|
|
62650
62698
|
id: string2().optional(),
|
|
62699
|
+
metadata: record(string2(), string2()).optional(),
|
|
62651
62700
|
roles: array(string2()).optional(),
|
|
62652
62701
|
tenant: TenantResponse$zodSchema.optional(),
|
|
62653
62702
|
type: UserType$zodSchema.optional()
|
|
@@ -62897,8 +62946,10 @@ var init_changedsubscription = __esm(() => {
|
|
|
62897
62946
|
init_subscriptionstatus();
|
|
62898
62947
|
ChangedSubscription$zodSchema = object({
|
|
62899
62948
|
action: ChangedSubscriptionAction$zodSchema.optional().describe("created | updated"),
|
|
62949
|
+
current_period_end: exports_iso.datetime({ offset: true }).optional(),
|
|
62900
62950
|
id: string2().optional(),
|
|
62901
|
-
status: SubscriptionStatus$zodSchema.optional()
|
|
62951
|
+
status: SubscriptionStatus$zodSchema.optional(),
|
|
62952
|
+
trial_end: exports_iso.datetime({ offset: true }).optional()
|
|
62902
62953
|
});
|
|
62903
62954
|
});
|
|
62904
62955
|
|
|
@@ -63962,11 +64013,17 @@ Each line item can optionally include expanded price data`),
|
|
|
63962
64013
|
phases: array(SubscriptionPhaseResponse$zodSchema).optional().describe('Phases are included when "phases" is in expand parameter'),
|
|
63963
64014
|
plan: PlanResponse$zodSchema.optional(),
|
|
63964
64015
|
plan_id: string2().optional().describe("PlanID is the identifier for the plan in our system"),
|
|
64016
|
+
plan_prices_out_of_sync: boolean2().optional().describe(`PlanPricesOutOfSync is true when the subscription's synced_price_sequence
|
|
64017
|
+
is behind the plan's current max prices.sequence — i.e. plan-price
|
|
64018
|
+
changes have not yet been reconciled into this subscription's line items.`),
|
|
63965
64019
|
proration_behavior: ProrationBehavior$zodSchema.optional(),
|
|
63966
64020
|
start_date: exports_iso.datetime({ offset: true }).optional().describe("StartDate is the start date of the subscription"),
|
|
63967
64021
|
status: Status$zodSchema.optional(),
|
|
63968
64022
|
subscription_status: SubscriptionStatus$zodSchema.optional(),
|
|
63969
64023
|
subscription_type: SubscriptionType$zodSchema.optional(),
|
|
64024
|
+
synced_price_sequence: int().optional().describe(`SyncedPriceSequence is the plan-price sequence up to which this
|
|
64025
|
+
subscription's line items have been reconciled. Bumped by the
|
|
64026
|
+
plan-price sync after a successful pass.`),
|
|
63970
64027
|
tenant_id: string2().optional(),
|
|
63971
64028
|
trial_end: exports_iso.datetime({ offset: true }).optional().describe("TrialEnd is the end date of the trial period"),
|
|
63972
64029
|
trial_start: exports_iso.datetime({ offset: true }).optional().describe("TrialStart is the start date of the trial period"),
|
|
@@ -65439,7 +65496,7 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
65439
65496
|
function createMCPServer(deps) {
|
|
65440
65497
|
const server = new McpServer({
|
|
65441
65498
|
name: "Flexprice",
|
|
65442
|
-
version: "2.1.
|
|
65499
|
+
version: "2.1.17"
|
|
65443
65500
|
});
|
|
65444
65501
|
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
65445
65502
|
security: deps.security,
|
|
@@ -69589,7 +69646,7 @@ var routes = buildRouteMap({
|
|
|
69589
69646
|
var app = buildApplication(routes, {
|
|
69590
69647
|
name: "mcp",
|
|
69591
69648
|
versionInfo: {
|
|
69592
|
-
currentVersion: "2.1.
|
|
69649
|
+
currentVersion: "2.1.17"
|
|
69593
69650
|
}
|
|
69594
69651
|
});
|
|
69595
69652
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -69597,5 +69654,5 @@ export {
|
|
|
69597
69654
|
app
|
|
69598
69655
|
};
|
|
69599
69656
|
|
|
69600
|
-
//# debugId=
|
|
69657
|
+
//# debugId=0D94551BD458F09264756E2164756E21
|
|
69601
69658
|
//# sourceMappingURL=mcp-server.js.map
|