@flexprice/mcp-server 2.0.2 → 2.0.4

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.
Files changed (55) hide show
  1. package/bin/mcp-server.js +46 -43
  2. package/bin/mcp-server.js.map +15 -15
  3. package/bun.lock +15 -15
  4. package/esm/funcs/invoicesRecalculateInvoice.d.ts +2 -2
  5. package/esm/funcs/invoicesRecalculateInvoice.js +2 -2
  6. package/esm/lib/config.d.ts +3 -3
  7. package/esm/lib/config.js +3 -3
  8. package/esm/mcp-server/mcp-server.js +1 -1
  9. package/esm/mcp-server/server.js +1 -1
  10. package/esm/mcp-server/tools/invoicesRecalculateInvoice.js +2 -2
  11. package/esm/mcp-server/tools/invoicesRecalculateInvoice.js.map +1 -1
  12. package/esm/mcp-server/tools.js +1 -1
  13. package/esm/mcp-server/tools.js.map +1 -1
  14. package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
  15. package/esm/models/dtofeatureresponse.d.ts +3 -0
  16. package/esm/models/dtofeatureresponse.d.ts.map +1 -1
  17. package/esm/models/dtofeatureresponse.js +3 -0
  18. package/esm/models/dtofeatureresponse.js.map +1 -1
  19. package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.d.ts +3 -0
  20. package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.d.ts.map +1 -1
  21. package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.js +3 -0
  22. package/esm/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.js.map +1 -1
  23. package/esm/models/groupentitytype.d.ts +12 -0
  24. package/esm/models/groupentitytype.d.ts.map +1 -0
  25. package/esm/models/groupentitytype.js +13 -0
  26. package/esm/models/groupentitytype.js.map +1 -0
  27. package/esm/models/groupgroup.d.ts +21 -0
  28. package/esm/models/groupgroup.d.ts.map +1 -0
  29. package/esm/models/groupgroup.js +21 -0
  30. package/esm/models/groupgroup.js.map +1 -0
  31. package/esm/models/recalculateinvoiceop.d.ts +2 -2
  32. package/esm/models/recalculateinvoiceop.d.ts.map +1 -1
  33. package/esm/models/recalculateinvoiceop.js +2 -2
  34. package/esm/models/recalculateinvoiceop.js.map +1 -1
  35. package/esm/models/windowsize.d.ts +2 -2
  36. package/esm/models/windowsize.js +2 -2
  37. package/esm/models/windowsize.js.map +1 -1
  38. package/esm/tool-names.js +1 -1
  39. package/esm/tool-names.js.map +1 -1
  40. package/esm/tsconfig.tsbuildinfo +1 -1
  41. package/manifest.json +2 -2
  42. package/package.json +1 -1
  43. package/src/funcs/invoicesRecalculateInvoice.ts +2 -2
  44. package/src/lib/config.ts +3 -3
  45. package/src/mcp-server/mcp-server.ts +1 -1
  46. package/src/mcp-server/server.ts +1 -1
  47. package/src/mcp-server/tools/invoicesRecalculateInvoice.ts +2 -2
  48. package/src/mcp-server/tools.ts +1 -1
  49. package/src/models/dtofeatureresponse.ts +8 -0
  50. package/src/models/githubcomflexpriceflexpriceinternaldomainfeaturefeature.ts +5 -0
  51. package/src/models/groupentitytype.ts +17 -0
  52. package/src/models/groupgroup.ts +40 -0
  53. package/src/models/recalculateinvoiceop.ts +6 -6
  54. package/src/models/windowsize.ts +2 -2
  55. package/src/tool-names.ts +1 -1
package/bin/mcp-server.js CHANGED
@@ -50435,9 +50435,9 @@ var init_config = __esm(() => {
50435
50435
  SDK_METADATA = {
50436
50436
  language: "typescript",
50437
50437
  openapiDocVersion: "1.0",
50438
- sdkVersion: "2.0.2",
50439
- genVersion: "2.852.1",
50440
- userAgent: "speakeasy-sdk/mcp-typescript 2.0.2 2.852.1 1.0 @flexprice/mcp-server"
50438
+ sdkVersion: "2.0.4",
50439
+ genVersion: "2.858.2",
50440
+ userAgent: "speakeasy-sdk/mcp-typescript 2.0.4 2.858.2 1.0 @flexprice/mcp-server"
50441
50441
  };
50442
50442
  });
50443
50443
 
@@ -51574,7 +51574,7 @@ function resolveHeader(headers, headerName, schema, cliFlagValue, disableStaticA
51574
51574
  function buildSDK(headers, cliFlags, disableStaticAuth, logger) {
51575
51575
  const flags = {
51576
51576
  ...cliFlags,
51577
- "api-key-auth": resolveHeader(headers, "ApiKeyAuth", string2(), cliFlags["api-key-auth"], disableStaticAuth)
51577
+ "api-key-auth": resolveHeader(headers, "api-key-auth", string2(), cliFlags["api-key-auth"], disableStaticAuth)
51578
51578
  };
51579
51579
  return new FlexpriceCore({
51580
51580
  security: { ApiKeyAuth: flags["api-key-auth"] ?? "" },
@@ -52513,6 +52513,23 @@ var init_alertsettings = __esm(() => {
52513
52513
  });
52514
52514
  });
52515
52515
 
52516
+ // src/models/dtogroupresponse.ts
52517
+ var DtoGroupResponse$zodSchema;
52518
+ var init_dtogroupresponse = __esm(() => {
52519
+ init_zod();
52520
+ DtoGroupResponse$zodSchema = object({
52521
+ created_at: string2().optional(),
52522
+ entity_ids: array(string2()).optional(),
52523
+ entity_type: string2().optional(),
52524
+ id: string2().optional(),
52525
+ lookup_key: string2().optional(),
52526
+ metadata: record(string2(), string2()).optional(),
52527
+ name: string2().optional(),
52528
+ status: string2().optional(),
52529
+ updated_at: string2().optional()
52530
+ });
52531
+ });
52532
+
52516
52533
  // src/models/aggregationtype.ts
52517
52534
  var AggregationType$zodSchema;
52518
52535
  var init_aggregationtype = __esm(() => {
@@ -52534,6 +52551,7 @@ var WindowSize$zodSchema;
52534
52551
  var init_windowsize = __esm(() => {
52535
52552
  init_zod();
52536
52553
  WindowSize$zodSchema = _enum([
52554
+ "MONTH",
52537
52555
  "MINUTE",
52538
52556
  "15MIN",
52539
52557
  "30MIN",
@@ -52542,8 +52560,7 @@ var init_windowsize = __esm(() => {
52542
52560
  "6HOUR",
52543
52561
  "12HOUR",
52544
52562
  "DAY",
52545
- "WEEK",
52546
- "MONTH"
52563
+ "WEEK"
52547
52564
  ]);
52548
52565
  });
52549
52566
 
@@ -52631,6 +52648,7 @@ var DtoFeatureResponse$zodSchema;
52631
52648
  var init_dtofeatureresponse = __esm(() => {
52632
52649
  init_zod();
52633
52650
  init_alertsettings();
52651
+ init_dtogroupresponse();
52634
52652
  init_dtometerresponse();
52635
52653
  init_featuretype();
52636
52654
  init_reportingunit();
@@ -52641,6 +52659,8 @@ var init_dtofeatureresponse = __esm(() => {
52641
52659
  created_by: string2().optional(),
52642
52660
  description: string2().optional(),
52643
52661
  environment_id: string2().optional(),
52662
+ group: DtoGroupResponse$zodSchema.optional(),
52663
+ group_id: string2().optional(),
52644
52664
  id: string2().optional(),
52645
52665
  lookup_key: string2().optional(),
52646
52666
  metadata: record(string2(), string2()).optional(),
@@ -56115,23 +56135,6 @@ var init_addontype = __esm(() => {
56115
56135
  ]);
56116
56136
  });
56117
56137
 
56118
- // src/models/dtogroupresponse.ts
56119
- var DtoGroupResponse$zodSchema;
56120
- var init_dtogroupresponse = __esm(() => {
56121
- init_zod();
56122
- DtoGroupResponse$zodSchema = object({
56123
- created_at: string2().optional(),
56124
- entity_ids: array(string2()).optional(),
56125
- entity_type: string2().optional(),
56126
- id: string2().optional(),
56127
- lookup_key: string2().optional(),
56128
- metadata: record(string2(), string2()).optional(),
56129
- name: string2().optional(),
56130
- status: string2().optional(),
56131
- updated_at: string2().optional()
56132
- });
56133
- });
56134
-
56135
56138
  // src/models/dtopriceunitresponse.ts
56136
56139
  var DtoPriceUnitResponse$zodSchema;
56137
56140
  var init_dtopriceunitresponse = __esm(() => {
@@ -57157,17 +57160,28 @@ Use when listing or searching invoices (e.g. admin view or customer history). Re
57157
57160
  };
57158
57161
  });
57159
57162
 
57163
+ // src/models/modelstemporalworkflowresult.ts
57164
+ var ModelsTemporalWorkflowResult$zodSchema;
57165
+ var init_modelstemporalworkflowresult = __esm(() => {
57166
+ init_zod();
57167
+ ModelsTemporalWorkflowResult$zodSchema = object({
57168
+ message: string2().optional(),
57169
+ run_id: string2().optional(),
57170
+ workflow_id: string2().optional()
57171
+ });
57172
+ });
57173
+
57160
57174
  // src/models/recalculateinvoiceop.ts
57161
57175
  var RecalculateInvoiceRequest$zodSchema, RecalculateInvoiceResponse$zodSchema;
57162
57176
  var init_recalculateinvoiceop = __esm(() => {
57163
57177
  init_zod();
57164
- init_dtoinvoiceresponse();
57165
57178
  init_errorserrorresponse();
57179
+ init_modelstemporalworkflowresult();
57166
57180
  RecalculateInvoiceRequest$zodSchema = object({
57167
57181
  id: string2().describe("Invoice ID")
57168
57182
  });
57169
57183
  RecalculateInvoiceResponse$zodSchema = union([
57170
- DtoInvoiceResponse$zodSchema,
57184
+ ModelsTemporalWorkflowResult$zodSchema,
57171
57185
  ErrorsErrorResponse$zodSchema
57172
57186
  ]);
57173
57187
  });
@@ -57261,9 +57275,9 @@ var init_invoicesRecalculateInvoice2 = __esm(() => {
57261
57275
  };
57262
57276
  tool$invoicesRecalculateInvoice = {
57263
57277
  name: "recalculate-invoice",
57264
- description: `Recalculate invoice (default: voided invoice)
57278
+ description: `Recalculate invoice (voided invoice)
57265
57279
 
57266
- Creates a fresh replacement invoice for a voided SUBSCRIPTION invoice covering the same billing period. The original voided invoice is linked to the new invoice via recalculated_invoice_id. Can only be called once per voided invoice.`,
57280
+ Starts an async workflow that creates a fresh replacement invoice for a voided SUBSCRIPTION invoice (same billing period). Returns workflow_id and run_id; poll workflow status or GET the new invoice via recalculated_invoice_id after completion.`,
57267
57281
  annotations: {
57268
57282
  title: "",
57269
57283
  destructiveHint: false,
@@ -58613,17 +58627,6 @@ Use when listing or searching plans (e.g. plan picker or admin catalog). Returns
58613
58627
  };
58614
58628
  });
58615
58629
 
58616
- // src/models/modelstemporalworkflowresult.ts
58617
- var ModelsTemporalWorkflowResult$zodSchema;
58618
- var init_modelstemporalworkflowresult = __esm(() => {
58619
- init_zod();
58620
- ModelsTemporalWorkflowResult$zodSchema = object({
58621
- message: string2().optional(),
58622
- run_id: string2().optional(),
58623
- workflow_id: string2().optional()
58624
- });
58625
- });
58626
-
58627
58630
  // src/models/syncplanpricesop.ts
58628
58631
  var SyncPlanPricesRequest$zodSchema, SyncPlanPricesResponse$zodSchema;
58629
58632
  var init_syncplanpricesop = __esm(() => {
@@ -59898,7 +59901,7 @@ Use when changing price configuration (e.g. amount, billing scheme, or metadata)
59898
59901
  function createMCPServer(deps) {
59899
59902
  const server = new McpServer({
59900
59903
  name: "Flexprice",
59901
- version: "2.0.2"
59904
+ version: "2.0.4"
59902
59905
  });
59903
59906
  const getClient = deps.getSDK || (() => new FlexpriceCore({
59904
59907
  security: deps.security,
@@ -60145,9 +60148,9 @@ Use when delivering an invoice PDF to the customer (e.g. email attachment or dow
60145
60148
  },
60146
60149
  {
60147
60150
  name: "recalculate-invoice",
60148
- description: `Recalculate invoice (default: voided invoice)
60151
+ description: `Recalculate invoice (voided invoice)
60149
60152
 
60150
- Creates a fresh replacement invoice for a voided SUBSCRIPTION invoice covering the same billing period. The original voided invoice is linked to the new invoice via recalculated_invoice_id. Can only be called once per voided invoice.`
60153
+ Starts an async workflow that creates a fresh replacement invoice for a voided SUBSCRIPTION invoice (same billing period). Returns workflow_id and run_id; poll workflow status or GET the new invoice via recalculated_invoice_id after completion.`
60151
60154
  },
60152
60155
  {
60153
60156
  name: "recalculate-invoice-v2",
@@ -63801,7 +63804,7 @@ var routes = buildRouteMap({
63801
63804
  var app = buildApplication(routes, {
63802
63805
  name: "mcp",
63803
63806
  versionInfo: {
63804
- currentVersion: "2.0.2"
63807
+ currentVersion: "2.0.4"
63805
63808
  }
63806
63809
  });
63807
63810
  run(app, process4.argv.slice(2), buildContext(process4));
@@ -63809,5 +63812,5 @@ export {
63809
63812
  app
63810
63813
  };
63811
63814
 
63812
- //# debugId=E81E49EB1E0AC8CC64756E2164756E21
63815
+ //# debugId=29D15984584037AB64756E2164756E21
63813
63816
  //# sourceMappingURL=mcp-server.js.map