@flexprice/mcp-server 2.1.19 → 2.1.20

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 (41) hide show
  1. package/bin/mcp-server.js +41 -19
  2. package/bin/mcp-server.js.map +10 -10
  3. package/bun.lock +4 -4
  4. package/esm/lib/config.d.ts +3 -3
  5. package/esm/lib/config.js +3 -3
  6. package/esm/lib/retries.js +7 -0
  7. package/esm/lib/retries.js.map +1 -1
  8. package/esm/mcp-server/mcp-server.js +1 -1
  9. package/esm/mcp-server/server.js +1 -1
  10. package/esm/models/getusagerequest.d.ts +1 -0
  11. package/esm/models/getusagerequest.d.ts.map +1 -1
  12. package/esm/models/getusagerequest.js +2 -1
  13. package/esm/models/getusagerequest.js.map +1 -1
  14. package/esm/models/pointbucket.d.ts +7 -0
  15. package/esm/models/pointbucket.d.ts.map +1 -0
  16. package/esm/models/pointbucket.js +9 -0
  17. package/esm/models/pointbucket.js.map +1 -0
  18. package/esm/models/submodifycouponparams.d.ts +1 -1
  19. package/esm/models/submodifycouponparams.d.ts.map +1 -1
  20. package/esm/models/submodifycouponparams.js +1 -1
  21. package/esm/models/submodifycouponparams.js.map +1 -1
  22. package/esm/models/submodifytaxparams.d.ts +1 -1
  23. package/esm/models/submodifytaxparams.d.ts.map +1 -1
  24. package/esm/models/submodifytaxparams.js +1 -1
  25. package/esm/models/submodifytaxparams.js.map +1 -1
  26. package/esm/models/usageanalyticpoint.d.ts +2 -2
  27. package/esm/models/usageanalyticpoint.d.ts.map +1 -1
  28. package/esm/models/usageanalyticpoint.js +2 -2
  29. package/esm/models/usageanalyticpoint.js.map +1 -1
  30. package/esm/tsconfig.tsbuildinfo +1 -1
  31. package/manifest.json +1 -1
  32. package/package.json +1 -1
  33. package/src/lib/config.ts +3 -3
  34. package/src/lib/retries.ts +8 -0
  35. package/src/mcp-server/mcp-server.ts +1 -1
  36. package/src/mcp-server/server.ts +1 -1
  37. package/src/models/getusagerequest.ts +5 -1
  38. package/src/models/pointbucket.ts +15 -0
  39. package/src/models/submodifycouponparams.ts +2 -2
  40. package/src/models/submodifytaxparams.ts +4 -4
  41. package/src/models/usageanalyticpoint.ts +4 -5
package/bin/mcp-server.js CHANGED
@@ -51270,9 +51270,9 @@ var init_config = __esm(() => {
51270
51270
  SDK_METADATA = {
51271
51271
  language: "typescript",
51272
51272
  openapiDocVersion: "1.0",
51273
- sdkVersion: "2.1.19",
51274
- genVersion: "2.904.2",
51275
- userAgent: "speakeasy-sdk/mcp-typescript 2.1.19 2.904.2 1.0 @flexprice/mcp-server"
51273
+ sdkVersion: "2.1.20",
51274
+ genVersion: "2.911.0",
51275
+ userAgent: "speakeasy-sdk/mcp-typescript 2.1.20 2.911.0 1.0 @flexprice/mcp-server"
51276
51276
  };
51277
51277
  });
51278
51278
 
@@ -51770,6 +51770,13 @@ async function retryBackoff(fn, strategy) {
51770
51770
  }
51771
51771
  }
51772
51772
  function retryIntervalFromResponse(res) {
51773
+ const retryAfterMsVal = res.headers.get("retry-after-ms");
51774
+ if (retryAfterMsVal) {
51775
+ const parsedMs = Number(retryAfterMsVal);
51776
+ if (Number.isFinite(parsedMs) && parsedMs >= 0) {
51777
+ return parsedMs;
51778
+ }
51779
+ }
51773
51780
  const retryVal = res.headers.get("retry-after") || "";
51774
51781
  if (!retryVal) {
51775
51782
  return 0;
@@ -55665,9 +55672,16 @@ Example values:
55665
55672
  event_name: string2(),
55666
55673
  external_customer_id: string2().optional(),
55667
55674
  filters: record(string2(), array(string2())).optional(),
55675
+ group_by: array(string2()).optional().describe(`GroupBy lists the analytics group_by dimensions.
55676
+ - "source" — group by event source column
55677
+ - "properties.X" — group by JSON property X`),
55668
55678
  group_by_property: string2().optional().describe(`GroupByProperty is the property name in event.properties to group by before aggregating.
55669
55679
  When set, aggregation is applied per unique value of this property within each bucket,
55670
- then the per-group results are summed to produce the bucket total.`),
55680
+ then the per-group results are summed to produce the bucket total.
55681
+
55682
+ Deprecated: prefer GroupBy []string{"properties.<X>"} for parity with
55683
+ other analytics endpoints. ToUsageParams translates this field into
55684
+ GroupBy when GroupBy is otherwise empty.`),
55671
55685
  multiplier: string2().optional(),
55672
55686
  property_name: string2().optional().describe("will be empty/ignored in case of COUNT"),
55673
55687
  start_time: exports_iso.datetime({ offset: true }).optional(),
@@ -62749,7 +62763,7 @@ var init_submodifycouponparams = __esm(() => {
62749
62763
  init_submodifycouponaction();
62750
62764
  SubModifyCouponParams$zodSchema = object({
62751
62765
  action: SubModifyCouponAction$zodSchema,
62752
- association_id: string2().optional().describe('Required when action="remove". ID of the CouponAssociation to soft-delete.'),
62766
+ coupon_association_id: string2().optional().describe('Required when action="remove". ID of the CouponAssociation to soft-delete.'),
62753
62767
  coupon_code: string2().optional().describe('Required for action="add". Coupon code of the coupon to attach.'),
62754
62768
  end_date: exports_iso.datetime({ offset: true }).optional().describe("Optional. When the coupon association ends."),
62755
62769
  start_date: exports_iso.datetime({ offset: true }).optional().describe("Optional. When the coupon association starts; defaults to now."),
@@ -62841,8 +62855,8 @@ var init_submodifytaxparams = __esm(() => {
62841
62855
  init_submodifytaxaction();
62842
62856
  SubModifyTaxParams$zodSchema = object({
62843
62857
  action: SubModifyTaxAction$zodSchema,
62844
- association_id: string2().optional().describe('Required when action="remove". ID of the TaxAssociation to soft-delete.'),
62845
62858
  effective_date: exports_iso.datetime({ offset: true }).optional().describe("Optional. When to apply the change; defaults to now if omitted."),
62859
+ tax_association_id: string2().optional().describe('Required when action="remove". ID of the TaxAssociation to soft-delete.'),
62846
62860
  tax_rate_id: string2().optional().describe('Required when action="add". ID of the active tax rate to attach.')
62847
62861
  });
62848
62862
  });
@@ -65829,7 +65843,7 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
65829
65843
  function createMCPServer(deps) {
65830
65844
  const server = new McpServer({
65831
65845
  name: "Flexprice",
65832
- version: "2.1.19"
65846
+ version: "2.1.20"
65833
65847
  });
65834
65848
  const getClient = deps.getSDK || (() => new FlexpriceCore({
65835
65849
  security: deps.security,
@@ -68986,20 +69000,28 @@ function buildRouteScanner(root, config, startingPrefix) {
68986
69000
  let target;
68987
69001
  let rootLevel = true;
68988
69002
  let helpRequested = false;
69003
+ let treatInputsAsArguments = false;
68989
69004
  return {
68990
69005
  next: (input) => {
68991
- if (input === "--help" || input === "-h") {
68992
- helpRequested = true;
68993
- if (!target) {
68994
- target = current;
68995
- }
69006
+ if (!treatInputsAsArguments && config.allowArgumentEscapeSequence && input === "--") {
69007
+ treatInputsAsArguments = true;
69008
+ unprocessedInputs.push(input);
68996
69009
  return;
68997
- } else if (input === "--helpAll" || input === "--help-all" || input === "-H") {
68998
- helpRequested = "all";
68999
- if (!target) {
69000
- target = current;
69010
+ }
69011
+ if (!treatInputsAsArguments) {
69012
+ if (input === "--help" || input === "-h") {
69013
+ helpRequested = true;
69014
+ if (!target) {
69015
+ target = current;
69016
+ }
69017
+ return;
69018
+ } else if (input === "--helpAll" || input === "--help-all" || input === "-H") {
69019
+ helpRequested = "all";
69020
+ if (!target) {
69021
+ target = current;
69022
+ }
69023
+ return;
69001
69024
  }
69002
- return;
69003
69025
  }
69004
69026
  if (target) {
69005
69027
  unprocessedInputs.push(input);
@@ -69979,7 +70001,7 @@ var routes = buildRouteMap({
69979
70001
  var app = buildApplication(routes, {
69980
70002
  name: "mcp",
69981
70003
  versionInfo: {
69982
- currentVersion: "2.1.19"
70004
+ currentVersion: "2.1.20"
69983
70005
  }
69984
70006
  });
69985
70007
  run(app, process4.argv.slice(2), buildContext(process4));
@@ -69987,5 +70009,5 @@ export {
69987
70009
  app
69988
70010
  };
69989
70011
 
69990
- //# debugId=9238BBBC4F8F163B64756E2164756E21
70012
+ //# debugId=AA274945AD54942F64756E2164756E21
69991
70013
  //# sourceMappingURL=mcp-server.js.map