@flexprice/mcp-server 2.1.9 → 2.1.10

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 (40) hide show
  1. package/bin/mcp-server.js +20 -8
  2. package/bin/mcp-server.js.map +10 -10
  3. package/esm/lib/config.d.ts +2 -2
  4. package/esm/lib/config.js +2 -2
  5. package/esm/lib/config.js.map +1 -1
  6. package/esm/mcp-server/mcp-server.js +1 -1
  7. package/esm/mcp-server/mcp-server.js.map +1 -1
  8. package/esm/mcp-server/server.js +1 -1
  9. package/esm/mcp-server/server.js.map +1 -1
  10. package/esm/models/createsubscriptionrequest.d.ts +1 -0
  11. package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
  12. package/esm/models/createsubscriptionrequest.js +1 -0
  13. package/esm/models/createsubscriptionrequest.js.map +1 -1
  14. package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
  15. package/esm/models/invoicebillingreason.d.ts +2 -0
  16. package/esm/models/invoicebillingreason.d.ts.map +1 -1
  17. package/esm/models/invoicebillingreason.js +2 -0
  18. package/esm/models/invoicebillingreason.js.map +1 -1
  19. package/esm/models/subscriptionresponse.d.ts +1 -0
  20. package/esm/models/subscriptionresponse.d.ts.map +1 -1
  21. package/esm/models/subscriptionresponse.js +1 -0
  22. package/esm/models/subscriptionresponse.js.map +1 -1
  23. package/esm/models/subscriptionresponsev2.d.ts +1 -0
  24. package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
  25. package/esm/models/subscriptionresponsev2.js +1 -0
  26. package/esm/models/subscriptionresponsev2.js.map +1 -1
  27. package/esm/models/windowsize.d.ts +2 -2
  28. package/esm/models/windowsize.js +2 -2
  29. package/esm/models/windowsize.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 +2 -2
  34. package/src/mcp-server/mcp-server.ts +1 -1
  35. package/src/mcp-server/server.ts +1 -1
  36. package/src/models/createsubscriptionrequest.ts +4 -0
  37. package/src/models/invoicebillingreason.ts +2 -0
  38. package/src/models/subscriptionresponse.ts +4 -0
  39. package/src/models/subscriptionresponsev2.ts +4 -0
  40. package/src/models/windowsize.ts +2 -2
package/manifest.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "sensitive": true
49
49
  }
50
50
  },
51
- "version": "2.1.9",
51
+ "version": "2.1.10",
52
52
  "tools": [
53
53
  {
54
54
  "name": "update-customer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexprice/mcp-server",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "author": "flexprice",
5
5
  "type": "module",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "1.0",
72
- sdkVersion: "2.1.9",
72
+ sdkVersion: "2.1.10",
73
73
  genVersion: "2.882.0",
74
74
  userAgent:
75
- "speakeasy-sdk/mcp-typescript 2.1.9 2.882.0 1.0 @flexprice/mcp-server",
75
+ "speakeasy-sdk/mcp-typescript 2.1.10 2.882.0 1.0 @flexprice/mcp-server",
76
76
  } as const;
@@ -21,7 +21,7 @@ const routes = buildRouteMap({
21
21
  export const app = buildApplication(routes, {
22
22
  name: "mcp",
23
23
  versionInfo: {
24
- currentVersion: "2.1.9",
24
+ currentVersion: "2.1.10",
25
25
  },
26
26
  });
27
27
 
@@ -102,7 +102,7 @@ export function createMCPServer(deps: {
102
102
  }) {
103
103
  const server = new McpServer({
104
104
  name: "Flexprice",
105
- version: "2.1.9",
105
+ version: "2.1.10",
106
106
  });
107
107
 
108
108
  const getClient = deps.getSDK || (() =>
@@ -61,6 +61,7 @@ import {
61
61
 
62
62
  export type CreateSubscriptionRequest = {
63
63
  addons?: Array<AddAddonToSubscriptionRequest> | undefined;
64
+ auto_invoice_threshold?: string | undefined;
64
65
  billing_anchor?: string | undefined;
65
66
  billing_cycle?: BillingCycle | undefined;
66
67
  billing_period: BillingPeriod;
@@ -103,6 +104,9 @@ export const CreateSubscriptionRequest$zodSchema: z.ZodType<
103
104
  addons: z.array(AddAddonToSubscriptionRequest$zodSchema).optional().describe(
104
105
  "Addons represents addons to be added to the subscription during creation",
105
106
  ),
107
+ auto_invoice_threshold: z.string().optional().describe(
108
+ "AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers\nan intermediate invoice mid-period. Set once at creation; cannot be changed later.\nAllowed only when the subscription resolves to type standalone (no parent hierarchy rows).\nPlan line items must be usage-based only (no fixed or other non-usage plan prices).\nNil means auto invoice threshold billing is disabled for this subscription.",
109
+ ),
106
110
  billing_anchor: z.iso.datetime({ offset: true }).optional().describe(
107
111
  "BillingAnchor overrides the derived billing anchor when billing_cycle is anniversary.\nFor monthly billing, the day-of-month (and time-of-day) define cycle boundaries: if start_date\nis before that day in the month, the first billing period ends on the next occurrence of that\nday in the same month (a shorter first period); subsequent periods follow the usual interval.",
108
112
  ),
@@ -13,6 +13,7 @@ export const InvoiceBillingReason = {
13
13
  SubscriptionTrialStart: "SUBSCRIPTION_TRIAL_START",
14
14
  Proration: "PRORATION",
15
15
  Manual: "MANUAL",
16
+ AutoInvoiceThreshold: "AUTO_INVOICE_THRESHOLD",
16
17
  } as const;
17
18
  export type InvoiceBillingReason = ClosedEnum<typeof InvoiceBillingReason>;
18
19
 
@@ -24,4 +25,5 @@ export const InvoiceBillingReason$zodSchema = z.enum([
24
25
  "SUBSCRIPTION_TRIAL_START",
25
26
  "PRORATION",
26
27
  "MANUAL",
28
+ "AUTO_INVOICE_THRESHOLD",
27
29
  ]);
@@ -53,6 +53,7 @@ import {
53
53
 
54
54
  export type SubscriptionResponse = {
55
55
  active_pause_id?: string | undefined;
56
+ auto_invoice_threshold?: string | undefined;
56
57
  billing_anchor?: string | undefined;
57
58
  billing_cadence?: BillingCadence | undefined;
58
59
  billing_cycle?: BillingCycle | undefined;
@@ -111,6 +112,9 @@ export const SubscriptionResponse$zodSchema: z.ZodType<SubscriptionResponse> = z
111
112
  active_pause_id: z.string().optional().describe(
112
113
  "ActivePauseID references the current active pause configuration\nThis will be null if no pause is active or scheduled",
113
114
  ),
115
+ auto_invoice_threshold: z.string().optional().describe(
116
+ "AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers\nan intermediate invoice. Overrides the plan-level threshold when set.\nNil means: inherit from the plan's threshold (which may also be nil = disabled).",
117
+ ),
114
118
  billing_anchor: z.iso.datetime({ offset: true }).optional().describe(
115
119
  "BillingAnchor is the reference point that aligns future billing cycle dates.\nIt sets the day of week for week intervals, the day of month for month and year intervals,\nand the month of year for year intervals. The timestamp is in UTC format.",
116
120
  ),
@@ -49,6 +49,7 @@ import {
49
49
 
50
50
  export type SubscriptionResponseV2 = {
51
51
  active_pause_id?: string | undefined;
52
+ auto_invoice_threshold?: string | undefined;
52
53
  billing_anchor?: string | undefined;
53
54
  billing_cadence?: BillingCadence | undefined;
54
55
  billing_cycle?: BillingCycle | undefined;
@@ -107,6 +108,9 @@ export const SubscriptionResponseV2$zodSchema: z.ZodType<
107
108
  active_pause_id: z.string().optional().describe(
108
109
  "ActivePauseID references the current active pause configuration\nThis will be null if no pause is active or scheduled",
109
110
  ),
111
+ auto_invoice_threshold: z.string().optional().describe(
112
+ "AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers\nan intermediate invoice. Overrides the plan-level threshold when set.\nNil means: inherit from the plan's threshold (which may also be nil = disabled).",
113
+ ),
110
114
  billing_anchor: z.iso.datetime({ offset: true }).optional().describe(
111
115
  "BillingAnchor is the reference point that aligns future billing cycle dates.\nIt sets the day of week for week intervals, the day of month for month and year intervals,\nand the month of year for year intervals. The timestamp is in UTC format.",
112
116
  ),
@@ -6,7 +6,6 @@ import * as z from "zod";
6
6
  import { ClosedEnum } from "../types/enums.js";
7
7
 
8
8
  export const WindowSize = {
9
- Month: "MONTH",
10
9
  Minute: "MINUTE",
11
10
  FifteenMIN: "15MIN",
12
11
  ThirtyMIN: "30MIN",
@@ -16,11 +15,11 @@ export const WindowSize = {
16
15
  TwelveHOUR: "12HOUR",
17
16
  Day: "DAY",
18
17
  Week: "WEEK",
18
+ Month: "MONTH",
19
19
  } as const;
20
20
  export type WindowSize = ClosedEnum<typeof WindowSize>;
21
21
 
22
22
  export const WindowSize$zodSchema = z.enum([
23
- "MONTH",
24
23
  "MINUTE",
25
24
  "15MIN",
26
25
  "30MIN",
@@ -30,4 +29,5 @@ export const WindowSize$zodSchema = z.enum([
30
29
  "12HOUR",
31
30
  "DAY",
32
31
  "WEEK",
32
+ "MONTH",
33
33
  ]);