@flexprice/mcp-server 2.0.14 → 2.0.16
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 +122 -113
- package/bin/mcp-server.js.map +11 -11
- package/bun.lock +3 -3
- package/esm/funcs/invoicesGetInvoicePdf.d.ts +1 -1
- package/esm/funcs/invoicesGetInvoicePdf.js +2 -1
- package/esm/funcs/invoicesGetInvoicePdf.js.map +1 -1
- 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/mcp-server/tools/invoicesGetInvoicePdf.js +1 -1
- package/esm/mcp-server/tools/invoicesGetInvoicePdf.js.map +1 -1
- package/esm/models/getinvoicepdfop.d.ts +1 -0
- package/esm/models/getinvoicepdfop.d.ts.map +1 -1
- package/esm/models/getinvoicepdfop.js +1 -0
- package/esm/models/getinvoicepdfop.js.map +1 -1
- package/esm/models/subscriptionfilter.d.ts +1 -0
- package/esm/models/subscriptionfilter.d.ts.map +1 -1
- package/esm/models/subscriptionfilter.js +1 -0
- package/esm/models/subscriptionfilter.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/invoicesGetInvoicePdf.ts +2 -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/mcp-server/tools/invoicesGetInvoicePdf.ts +1 -1
- package/src/models/getinvoicepdfop.ts +8 -1
- package/src/models/subscriptionfilter.ts +4 -0
- package/src/tool-names.ts +1 -1
package/manifest.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"sensitive": true
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"version": "2.0.
|
|
51
|
+
"version": "2.0.16",
|
|
52
52
|
"tools": [
|
|
53
53
|
{
|
|
54
54
|
"name": "update-customer",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"name": "get-invoice-pdf",
|
|
131
|
-
"description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary."
|
|
131
|
+
"description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary. Use force_generate=true to regenerate and re-upload the PDF even if one already exists in S3."
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"name": "recalculate-invoice",
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Get invoice PDF
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary.
|
|
32
|
+
* Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary. Use force_generate=true to regenerate and re-upload the PDF even if one already exists in S3.
|
|
33
33
|
*/
|
|
34
34
|
export function invoicesGetInvoicePdf(
|
|
35
35
|
client$: FlexpriceCore,
|
|
@@ -94,6 +94,7 @@ async function $do(
|
|
|
94
94
|
pathParams$,
|
|
95
95
|
);
|
|
96
96
|
const query$ = encodeFormQuery({
|
|
97
|
+
"force_generate": payload$.force_generate,
|
|
97
98
|
"url": payload$.url,
|
|
98
99
|
});
|
|
99
100
|
|
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.0.
|
|
73
|
-
genVersion: "2.879.
|
|
72
|
+
sdkVersion: "2.0.16",
|
|
73
|
+
genVersion: "2.879.6",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/mcp-typescript 2.0.
|
|
75
|
+
"speakeasy-sdk/mcp-typescript 2.0.16 2.879.6 1.0 @flexprice/mcp-server",
|
|
76
76
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const tool$invoicesGetInvoicePdf: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "get-invoice-pdf",
|
|
15
15
|
description: `Get invoice PDF
|
|
16
16
|
|
|
17
|
-
Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary.`,
|
|
17
|
+
Use when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary. Use force_generate=true to regenerate and re-upload the PDF even if one already exists in S3.`,
|
|
18
18
|
scopes: ["read"],
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
@@ -5,10 +5,17 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import * as b64$ from "../lib/base64.js";
|
|
7
7
|
|
|
8
|
-
export type GetInvoicePdfRequest = {
|
|
8
|
+
export type GetInvoicePdfRequest = {
|
|
9
|
+
id: string;
|
|
10
|
+
url?: boolean | undefined;
|
|
11
|
+
force_generate?: boolean | undefined;
|
|
12
|
+
};
|
|
9
13
|
|
|
10
14
|
export const GetInvoicePdfRequest$zodSchema: z.ZodType<GetInvoicePdfRequest> = z
|
|
11
15
|
.object({
|
|
16
|
+
force_generate: z.boolean().describe(
|
|
17
|
+
"Force regeneration of the PDF even if one already exists in S3 (default: false). Note: force_generate has no effect if invoice_pdf_url is already set on the invoice.",
|
|
18
|
+
).optional(),
|
|
12
19
|
id: z.string().describe("Invoice ID"),
|
|
13
20
|
url: z.boolean().describe("Return presigned URL from s3 instead of PDF")
|
|
14
21
|
.optional(),
|
|
@@ -35,6 +35,7 @@ export type SubscriptionFilter = {
|
|
|
35
35
|
billing_cadence?: Array<BillingCadence> | undefined;
|
|
36
36
|
billing_period?: Array<BillingPeriod> | undefined;
|
|
37
37
|
customer_id?: string | undefined;
|
|
38
|
+
effective_date_for_update?: string | undefined;
|
|
38
39
|
end_time?: string | undefined;
|
|
39
40
|
expand?: string | undefined;
|
|
40
41
|
external_customer_id?: string | undefined;
|
|
@@ -67,6 +68,9 @@ export const SubscriptionFilter$zodSchema: z.ZodType<SubscriptionFilter> = z
|
|
|
67
68
|
customer_id: z.string().optional().describe(
|
|
68
69
|
"CustomerID filters by customer ID",
|
|
69
70
|
),
|
|
71
|
+
effective_date_for_update: z.string().optional().describe(
|
|
72
|
+
"EffectiveDateForUpdate selects subscriptions that need a billing-period pass on or before this time:\ncurrent_period_end <= date OR (cancel_at IS NOT NULL AND cancel_at <= date).\nWhen nil, period/cancel cutoff logic is not applied by this field (see TimeRangeFilter for legacy period-end filtering).",
|
|
73
|
+
),
|
|
70
74
|
end_time: z.string().optional(),
|
|
71
75
|
expand: z.string().optional(),
|
|
72
76
|
external_customer_id: z.string().optional().describe(
|
package/src/tool-names.ts
CHANGED
|
@@ -78,7 +78,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"name": "get-invoice-pdf",
|
|
81
|
-
"description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary."
|
|
81
|
+
"description": "Get invoice PDF\n\nUse when delivering an invoice PDF to the customer (e.g. email attachment or download). Use url=true for a presigned URL instead of binary. Use force_generate=true to regenerate and re-upload the PDF even if one already exists in S3."
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"name": "recalculate-invoice",
|