@flexprice/mcp-server 2.1.1 → 2.1.2
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 +800 -390
- package/bin/mcp-server.js.map +38 -24
- package/bun.lock +32 -32
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.d.ts +16 -0
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.d.ts.map +1 -0
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.js +82 -0
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.js.map +1 -0
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +4 -4
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts.map +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +4 -4
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +16 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts.map +1 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.js +88 -0
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.d.ts +1 -0
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +6 -0
- package/esm/lib/encodings.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.d.ts +7 -0
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.d.ts.map +1 -0
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.js +35 -0
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.js.map +1 -0
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +4 -4
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.d.ts +7 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.d.ts.map +1 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +35 -0
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -0
- package/esm/models/billingcadence.d.ts +0 -2
- package/esm/models/billingcadence.d.ts.map +1 -1
- package/esm/models/billingcadence.js +0 -2
- package/esm/models/billingcadence.js.map +1 -1
- package/esm/models/billingperiod.d.ts +2 -0
- package/esm/models/billingperiod.d.ts.map +1 -1
- package/esm/models/billingperiod.js +2 -0
- package/esm/models/billingperiod.js.map +1 -1
- package/esm/models/changedinvoice.d.ts +8 -0
- package/esm/models/changedinvoice.d.ts.map +1 -0
- package/esm/models/changedinvoice.js +10 -0
- package/esm/models/changedinvoice.js.map +1 -0
- package/esm/models/changedlineitem.d.ts +11 -0
- package/esm/models/changedlineitem.d.ts.map +1 -0
- package/esm/models/changedlineitem.js +13 -0
- package/esm/models/changedlineitem.js.map +1 -0
- package/esm/models/changedresources.d.ts +11 -0
- package/esm/models/changedresources.d.ts.map +1 -0
- package/esm/models/changedresources.js +13 -0
- package/esm/models/changedresources.js.map +1 -0
- package/esm/models/changedsubscription.d.ts +9 -0
- package/esm/models/changedsubscription.d.ts.map +1 -0
- package/esm/models/changedsubscription.js +12 -0
- package/esm/models/changedsubscription.js.map +1 -0
- package/esm/models/createpricerequest.d.ts +0 -2
- package/esm/models/createpricerequest.d.ts.map +1 -1
- package/esm/models/createpricerequest.js +0 -2
- package/esm/models/createpricerequest.js.map +1 -1
- package/esm/models/createsubscriptionrequest.d.ts +0 -2
- package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
- package/esm/models/createsubscriptionrequest.js +0 -2
- package/esm/models/createsubscriptionrequest.js.map +1 -1
- package/esm/models/creditgrantcadence.d.ts +1 -1
- package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
- package/esm/models/executesubscriptionmodifyop.d.ts +6 -6
- package/esm/models/executesubscriptionmodifyop.d.ts.map +1 -1
- package/esm/models/executesubscriptionmodifyop.js +5 -5
- package/esm/models/executesubscriptionmodifyop.js.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.d.ts +11 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -0
- package/esm/models/executesubscriptionmodifyrequest.js +13 -0
- package/esm/models/executesubscriptionmodifyrequest.js.map +1 -0
- package/esm/models/getmeterusagepreviewinvoiceop.d.ts +6 -0
- package/esm/models/getmeterusagepreviewinvoiceop.d.ts.map +1 -0
- package/esm/models/getmeterusagepreviewinvoiceop.js +11 -0
- package/esm/models/getmeterusagepreviewinvoiceop.js.map +1 -0
- package/esm/models/invoicefilter.d.ts +1 -0
- package/esm/models/invoicefilter.d.ts.map +1 -1
- package/esm/models/invoicefilter.js +1 -0
- package/esm/models/invoicefilter.js.map +1 -1
- package/esm/models/invoiceresponse.d.ts +1 -0
- package/esm/models/invoiceresponse.d.ts.map +1 -1
- package/esm/models/invoiceresponse.js +1 -0
- package/esm/models/invoiceresponse.js.map +1 -1
- package/esm/models/lineitemquantitychange.d.ts +8 -0
- package/esm/models/lineitemquantitychange.d.ts.map +1 -0
- package/esm/models/lineitemquantitychange.js +10 -0
- package/esm/models/lineitemquantitychange.js.map +1 -0
- package/esm/models/previewsubscriptionmodifyop.d.ts +12 -0
- package/esm/models/previewsubscriptionmodifyop.d.ts.map +1 -0
- package/esm/models/previewsubscriptionmodifyop.js +16 -0
- package/esm/models/previewsubscriptionmodifyop.js.map +1 -0
- package/esm/models/submodifyinheritancerequest.d.ts +6 -0
- package/esm/models/submodifyinheritancerequest.d.ts.map +1 -0
- package/esm/models/{executesubscriptioninheritancerequest.js → submodifyinheritancerequest.js} +2 -2
- package/esm/models/submodifyinheritancerequest.js.map +1 -0
- package/esm/models/submodifyquantitychangerequest.d.ts +7 -0
- package/esm/models/submodifyquantitychangerequest.d.ts.map +1 -0
- package/esm/models/submodifyquantitychangerequest.js +9 -0
- package/esm/models/submodifyquantitychangerequest.js.map +1 -0
- package/esm/models/subscriptionmodifyresponse.d.ts +9 -0
- package/esm/models/subscriptionmodifyresponse.d.ts.map +1 -0
- package/esm/models/subscriptionmodifyresponse.js +11 -0
- package/esm/models/subscriptionmodifyresponse.js.map +1 -0
- package/esm/models/subscriptionmodifytype.d.ts +12 -0
- package/esm/models/subscriptionmodifytype.d.ts.map +1 -0
- package/esm/models/subscriptionmodifytype.js +13 -0
- package/esm/models/subscriptionmodifytype.js.map +1 -0
- package/esm/models/subscriptionphasecreaterequest.d.ts +2 -0
- package/esm/models/subscriptionphasecreaterequest.d.ts.map +1 -1
- package/esm/models/subscriptionphasecreaterequest.js +3 -0
- package/esm/models/subscriptionphasecreaterequest.js.map +1 -1
- package/esm/models/subscriptionpricecreaterequest.d.ts +0 -2
- package/esm/models/subscriptionpricecreaterequest.d.ts.map +1 -1
- package/esm/models/subscriptionpricecreaterequest.js +0 -2
- package/esm/models/subscriptionpricecreaterequest.js.map +1 -1
- package/esm/models/windowsize.d.ts +2 -2
- package/esm/models/windowsize.js +2 -2
- package/esm/models/windowsize.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +9 -1
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +10 -2
- package/package.json +1 -1
- package/src/funcs/invoicesGetMeterUsagePreviewInvoice.ts +144 -0
- package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +7 -7
- package/src/funcs/subscriptionsPreviewSubscriptionModify.ts +153 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +9 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.ts +47 -0
- package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +4 -4
- package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +45 -0
- package/src/models/billingcadence.ts +0 -2
- package/src/models/billingperiod.ts +2 -0
- package/src/models/changedinvoice.ts +17 -0
- package/src/models/changedlineitem.ts +25 -0
- package/src/models/changedresources.ts +28 -0
- package/src/models/changedsubscription.ts +22 -0
- package/src/models/createpricerequest.ts +0 -3
- package/src/models/createsubscriptionrequest.ts +0 -3
- package/src/models/executesubscriptionmodifyop.ts +14 -14
- package/src/models/executesubscriptionmodifyrequest.ts +31 -0
- package/src/models/getmeterusagepreviewinvoiceop.ts +21 -0
- package/src/models/invoicefilter.ts +4 -0
- package/src/models/invoiceresponse.ts +4 -0
- package/src/models/lineitemquantitychange.ts +21 -0
- package/src/models/previewsubscriptionmodifyop.ts +39 -0
- package/src/models/{executesubscriptioninheritancerequest.ts → submodifyinheritancerequest.ts} +3 -3
- package/src/models/submodifyquantitychangerequest.ts +19 -0
- package/src/models/subscriptionmodifyresponse.ts +25 -0
- package/src/models/subscriptionmodifytype.ts +17 -0
- package/src/models/subscriptionphasecreaterequest.ts +9 -0
- package/src/models/subscriptionpricecreaterequest.ts +0 -3
- package/src/models/windowsize.ts +2 -2
- package/src/tool-names.ts +9 -1
- package/esm/models/executesubscriptioninheritancerequest.d.ts +0 -6
- package/esm/models/executesubscriptioninheritancerequest.d.ts.map +0 -1
- package/esm/models/executesubscriptioninheritancerequest.js.map +0 -1
package/bin/mcp-server.js
CHANGED
|
@@ -23687,9 +23687,8 @@ var require_side_channel_list = __commonJS((exports, module) => {
|
|
|
23687
23687
|
}
|
|
23688
23688
|
},
|
|
23689
23689
|
delete: function(key) {
|
|
23690
|
-
var root = $o && $o.next;
|
|
23691
23690
|
var deletedNode = listDelete($o, key);
|
|
23692
|
-
if (deletedNode &&
|
|
23691
|
+
if (deletedNode && $o && !$o.next) {
|
|
23693
23692
|
$o = undefined;
|
|
23694
23693
|
}
|
|
23695
23694
|
return !!deletedNode;
|
|
@@ -25133,8 +25132,8 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
25133
25132
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
25134
25133
|
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
25135
25134
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
25136
|
-
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
|
|
25137
|
-
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
25135
|
+
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit);
|
|
25136
|
+
if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
|
|
25138
25137
|
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
25139
25138
|
}
|
|
25140
25139
|
var skipIndex = -1;
|
|
@@ -29222,10 +29221,8 @@ var require_content_disposition = __commonJS((exports, module) => {
|
|
|
29222
29221
|
*/
|
|
29223
29222
|
module.exports = contentDisposition;
|
|
29224
29223
|
module.exports.parse = parse5;
|
|
29225
|
-
var
|
|
29224
|
+
var utf8Decoder = new TextDecoder("utf-8");
|
|
29226
29225
|
var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g;
|
|
29227
|
-
var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/;
|
|
29228
|
-
var HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g;
|
|
29229
29226
|
var NON_LATIN1_REGEXP = /[^\x20-\x7e\xa0-\xff]/g;
|
|
29230
29227
|
var QESC_REGEXP = /\\([\u0000-\u007f])/g;
|
|
29231
29228
|
var QUOTE_REGEXP = /([\\"])/g;
|
|
@@ -29261,7 +29258,7 @@ var require_content_disposition = __commonJS((exports, module) => {
|
|
|
29261
29258
|
var isQuotedString = TEXT_REGEXP.test(name);
|
|
29262
29259
|
var fallbackName = typeof fallback !== "string" ? fallback && getlatin1(name) : basename(fallback);
|
|
29263
29260
|
var hasFallback = typeof fallbackName === "string" && fallbackName !== name;
|
|
29264
|
-
if (hasFallback || !isQuotedString ||
|
|
29261
|
+
if (hasFallback || !isQuotedString || hasHexEscape(name)) {
|
|
29265
29262
|
params["filename*"] = name;
|
|
29266
29263
|
}
|
|
29267
29264
|
if (isQuotedString || hasFallback) {
|
|
@@ -29288,26 +29285,32 @@ var require_content_disposition = __commonJS((exports, module) => {
|
|
|
29288
29285
|
return string4;
|
|
29289
29286
|
}
|
|
29290
29287
|
function decodefield(str) {
|
|
29291
|
-
|
|
29288
|
+
const match = EXT_VALUE_REGEXP.exec(str);
|
|
29292
29289
|
if (!match) {
|
|
29293
29290
|
throw new TypeError("invalid extended field value");
|
|
29294
29291
|
}
|
|
29295
|
-
|
|
29296
|
-
|
|
29297
|
-
var value;
|
|
29298
|
-
var binary = encoded.replace(HEX_ESCAPE_REPLACE_REGEXP, pdecode);
|
|
29292
|
+
const charset = match[1].toLowerCase();
|
|
29293
|
+
const encoded = match[2];
|
|
29299
29294
|
switch (charset) {
|
|
29300
|
-
case "iso-8859-1":
|
|
29301
|
-
|
|
29302
|
-
|
|
29295
|
+
case "iso-8859-1": {
|
|
29296
|
+
const binary = decodeHexEscapes(encoded);
|
|
29297
|
+
return getlatin1(binary);
|
|
29298
|
+
}
|
|
29303
29299
|
case "utf-8":
|
|
29304
|
-
case "utf8":
|
|
29305
|
-
|
|
29306
|
-
|
|
29307
|
-
|
|
29308
|
-
|
|
29300
|
+
case "utf8": {
|
|
29301
|
+
try {
|
|
29302
|
+
return decodeURIComponent(encoded);
|
|
29303
|
+
} catch {
|
|
29304
|
+
const binary = decodeHexEscapes(encoded);
|
|
29305
|
+
const bytes = new Uint8Array(binary.length);
|
|
29306
|
+
for (let idx = 0;idx < binary.length; idx++) {
|
|
29307
|
+
bytes[idx] = binary.charCodeAt(idx);
|
|
29308
|
+
}
|
|
29309
|
+
return utf8Decoder.decode(bytes);
|
|
29310
|
+
}
|
|
29311
|
+
}
|
|
29309
29312
|
}
|
|
29310
|
-
|
|
29313
|
+
throw new TypeError("unsupported charset in extended field");
|
|
29311
29314
|
}
|
|
29312
29315
|
function getlatin1(val) {
|
|
29313
29316
|
return String(val).replace(NON_LATIN1_REGEXP, "?");
|
|
@@ -29357,9 +29360,6 @@ var require_content_disposition = __commonJS((exports, module) => {
|
|
|
29357
29360
|
}
|
|
29358
29361
|
return new ContentDisposition(type, params);
|
|
29359
29362
|
}
|
|
29360
|
-
function pdecode(str, hex) {
|
|
29361
|
-
return String.fromCharCode(parseInt(hex, 16));
|
|
29362
|
-
}
|
|
29363
29363
|
function pencode(char) {
|
|
29364
29364
|
return "%" + String(char).charCodeAt(0).toString(16).toUpperCase();
|
|
29365
29365
|
}
|
|
@@ -29376,6 +29376,50 @@ var require_content_disposition = __commonJS((exports, module) => {
|
|
|
29376
29376
|
this.type = type;
|
|
29377
29377
|
this.parameters = parameters;
|
|
29378
29378
|
}
|
|
29379
|
+
function basename(path) {
|
|
29380
|
+
const normalized = path.replaceAll("\\", "/");
|
|
29381
|
+
let end = normalized.length;
|
|
29382
|
+
while (end > 0 && normalized[end - 1] === "/") {
|
|
29383
|
+
end--;
|
|
29384
|
+
}
|
|
29385
|
+
if (end === 0) {
|
|
29386
|
+
return "";
|
|
29387
|
+
}
|
|
29388
|
+
let start = end - 1;
|
|
29389
|
+
while (start >= 0 && normalized[start] !== "/") {
|
|
29390
|
+
start--;
|
|
29391
|
+
}
|
|
29392
|
+
return normalized.slice(start + 1, end);
|
|
29393
|
+
}
|
|
29394
|
+
function isHexDigit(char) {
|
|
29395
|
+
const code = char.charCodeAt(0);
|
|
29396
|
+
return code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102;
|
|
29397
|
+
}
|
|
29398
|
+
function hasHexEscape(str) {
|
|
29399
|
+
const maxIndex = str.length - 3;
|
|
29400
|
+
let lastIndex = -1;
|
|
29401
|
+
while ((lastIndex = str.indexOf("%", lastIndex + 1)) !== -1 && lastIndex <= maxIndex) {
|
|
29402
|
+
if (isHexDigit(str[lastIndex + 1]) && isHexDigit(str[lastIndex + 2])) {
|
|
29403
|
+
return true;
|
|
29404
|
+
}
|
|
29405
|
+
}
|
|
29406
|
+
return false;
|
|
29407
|
+
}
|
|
29408
|
+
function decodeHexEscapes(str) {
|
|
29409
|
+
const firstEscape = str.indexOf("%");
|
|
29410
|
+
if (firstEscape === -1)
|
|
29411
|
+
return str;
|
|
29412
|
+
let result = str.slice(0, firstEscape);
|
|
29413
|
+
for (let idx = firstEscape;idx < str.length; idx++) {
|
|
29414
|
+
if (str[idx] === "%" && idx + 2 < str.length && isHexDigit(str[idx + 1]) && isHexDigit(str[idx + 2])) {
|
|
29415
|
+
result += String.fromCharCode(Number.parseInt(str[idx + 1] + str[idx + 2], 16));
|
|
29416
|
+
idx += 2;
|
|
29417
|
+
} else {
|
|
29418
|
+
result += str[idx];
|
|
29419
|
+
}
|
|
29420
|
+
}
|
|
29421
|
+
return result;
|
|
29422
|
+
}
|
|
29379
29423
|
});
|
|
29380
29424
|
|
|
29381
29425
|
// node_modules/cookie-signature/index.js
|
|
@@ -50505,9 +50549,9 @@ var init_config = __esm(() => {
|
|
|
50505
50549
|
SDK_METADATA = {
|
|
50506
50550
|
language: "typescript",
|
|
50507
50551
|
openapiDocVersion: "1.0",
|
|
50508
|
-
sdkVersion: "2.1.
|
|
50509
|
-
genVersion: "2.879.
|
|
50510
|
-
userAgent: "speakeasy-sdk/mcp-typescript 2.1.
|
|
50552
|
+
sdkVersion: "2.1.2",
|
|
50553
|
+
genVersion: "2.879.11",
|
|
50554
|
+
userAgent: "speakeasy-sdk/mcp-typescript 2.1.2 2.879.11 1.0 @flexprice/mcp-server"
|
|
50511
50555
|
};
|
|
50512
50556
|
});
|
|
50513
50557
|
|
|
@@ -52610,7 +52654,8 @@ var init_billingperiod = __esm(() => {
|
|
|
52610
52654
|
"WEEKLY",
|
|
52611
52655
|
"DAILY",
|
|
52612
52656
|
"QUARTERLY",
|
|
52613
|
-
"HALF_YEARLY"
|
|
52657
|
+
"HALF_YEARLY",
|
|
52658
|
+
"ONETIME"
|
|
52614
52659
|
]);
|
|
52615
52660
|
});
|
|
52616
52661
|
|
|
@@ -52728,7 +52773,6 @@ var WindowSize$zodSchema;
|
|
|
52728
52773
|
var init_windowsize = __esm(() => {
|
|
52729
52774
|
init_zod();
|
|
52730
52775
|
WindowSize$zodSchema = _enum([
|
|
52731
|
-
"MONTH",
|
|
52732
52776
|
"MINUTE",
|
|
52733
52777
|
"15MIN",
|
|
52734
52778
|
"30MIN",
|
|
@@ -52737,7 +52781,8 @@ var init_windowsize = __esm(() => {
|
|
|
52737
52781
|
"6HOUR",
|
|
52738
52782
|
"12HOUR",
|
|
52739
52783
|
"DAY",
|
|
52740
|
-
"WEEK"
|
|
52784
|
+
"WEEK",
|
|
52785
|
+
"MONTH"
|
|
52741
52786
|
]);
|
|
52742
52787
|
});
|
|
52743
52788
|
|
|
@@ -53916,8 +53961,7 @@ var BillingCadence$zodSchema;
|
|
|
53916
53961
|
var init_billingcadence = __esm(() => {
|
|
53917
53962
|
init_zod();
|
|
53918
53963
|
BillingCadence$zodSchema = _enum([
|
|
53919
|
-
"RECURRING"
|
|
53920
|
-
"ONETIME"
|
|
53964
|
+
"RECURRING"
|
|
53921
53965
|
]);
|
|
53922
53966
|
});
|
|
53923
53967
|
|
|
@@ -56878,6 +56922,8 @@ When set, it forms a parent→child link from this (voided) invoice to the new r
|
|
|
56878
56922
|
These are actual refunds issued to the customer.`),
|
|
56879
56923
|
status: Status$zodSchema.optional(),
|
|
56880
56924
|
subscription: lazy(() => SubscriptionResponse$zodSchema).optional(),
|
|
56925
|
+
subscription_customer_id: string2().optional().describe(`subscription_customer_id is the subscription owner's customer ID (Subscription.CustomerID).
|
|
56926
|
+
It may differ from customer_id when the subscription uses an invoicing customer. Set internally; nullable in DB.`),
|
|
56881
56927
|
subscription_id: string2().optional().describe("subscription_id is the ID of the subscription this invoice is associated with (only present for subscription-based invoices)"),
|
|
56882
56928
|
subtotal: string2().optional().describe("subtotal is the sum of all line items before any taxes, discounts, or additional fees"),
|
|
56883
56929
|
taxes: array(TaxAppliedResponse$zodSchema).optional().describe("tax_applied_records contains the tax applied records associated with this invoice"),
|
|
@@ -57286,6 +57332,115 @@ Use when showing a customer what they will be charged (e.g. preview before check
|
|
|
57286
57332
|
};
|
|
57287
57333
|
});
|
|
57288
57334
|
|
|
57335
|
+
// src/funcs/invoicesGetMeterUsagePreviewInvoice.ts
|
|
57336
|
+
function invoicesGetMeterUsagePreviewInvoice(client$, request, options) {
|
|
57337
|
+
return new APIPromise($do25(client$, request, options));
|
|
57338
|
+
}
|
|
57339
|
+
async function $do25(client$, request, options) {
|
|
57340
|
+
const parsed$ = safeParse4(request, (value$) => GetPreviewInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57341
|
+
if (!parsed$.ok) {
|
|
57342
|
+
return [parsed$, { status: "invalid" }];
|
|
57343
|
+
}
|
|
57344
|
+
const payload$ = parsed$.value;
|
|
57345
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
57346
|
+
const path$ = pathToFunc("/invoices/meter-usage-preview")();
|
|
57347
|
+
const headers$ = new Headers(compactMap({
|
|
57348
|
+
"Content-Type": "application/json",
|
|
57349
|
+
Accept: "application/json"
|
|
57350
|
+
}));
|
|
57351
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
57352
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57353
|
+
const context = {
|
|
57354
|
+
options: client$._options,
|
|
57355
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57356
|
+
operationID: "getMeterUsagePreviewInvoice",
|
|
57357
|
+
oAuth2Scopes: null,
|
|
57358
|
+
resolvedSecurity: requestSecurity,
|
|
57359
|
+
securitySource: client$._options.security,
|
|
57360
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57361
|
+
retryCodes: options?.retryCodes || [
|
|
57362
|
+
"429",
|
|
57363
|
+
"500",
|
|
57364
|
+
"502",
|
|
57365
|
+
"503",
|
|
57366
|
+
"504"
|
|
57367
|
+
]
|
|
57368
|
+
};
|
|
57369
|
+
const requestRes = client$._createRequest(context, {
|
|
57370
|
+
security: requestSecurity,
|
|
57371
|
+
method: "POST",
|
|
57372
|
+
baseURL: options?.serverURL,
|
|
57373
|
+
path: path$,
|
|
57374
|
+
headers: headers$,
|
|
57375
|
+
body: body$,
|
|
57376
|
+
userAgent: client$._options.userAgent,
|
|
57377
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57378
|
+
}, options);
|
|
57379
|
+
if (!requestRes.ok) {
|
|
57380
|
+
return [requestRes, { status: "invalid" }];
|
|
57381
|
+
}
|
|
57382
|
+
const req$ = requestRes.value;
|
|
57383
|
+
const doResult = await client$._do(req$, {
|
|
57384
|
+
context,
|
|
57385
|
+
errorCodes: [],
|
|
57386
|
+
retryConfig: context.retryConfig,
|
|
57387
|
+
retryCodes: context.retryCodes
|
|
57388
|
+
});
|
|
57389
|
+
if (!doResult.ok) {
|
|
57390
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
57391
|
+
}
|
|
57392
|
+
return [doResult, {
|
|
57393
|
+
status: "complete",
|
|
57394
|
+
request: req$,
|
|
57395
|
+
response: doResult.value
|
|
57396
|
+
}];
|
|
57397
|
+
}
|
|
57398
|
+
var init_invoicesGetMeterUsagePreviewInvoice = __esm(() => {
|
|
57399
|
+
init_encodings();
|
|
57400
|
+
init_primitives();
|
|
57401
|
+
init_schemas4();
|
|
57402
|
+
init_security();
|
|
57403
|
+
init_url();
|
|
57404
|
+
init_getpreviewinvoicerequest();
|
|
57405
|
+
init_async();
|
|
57406
|
+
});
|
|
57407
|
+
|
|
57408
|
+
// src/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.ts
|
|
57409
|
+
var args24, tool$invoicesGetMeterUsagePreviewInvoice;
|
|
57410
|
+
var init_invoicesGetMeterUsagePreviewInvoice2 = __esm(() => {
|
|
57411
|
+
init_invoicesGetMeterUsagePreviewInvoice();
|
|
57412
|
+
init_getpreviewinvoicerequest();
|
|
57413
|
+
init_tools();
|
|
57414
|
+
args24 = {
|
|
57415
|
+
request: GetPreviewInvoiceRequest$zodSchema.describe(`Preview Invoice Request`)
|
|
57416
|
+
};
|
|
57417
|
+
tool$invoicesGetMeterUsagePreviewInvoice = {
|
|
57418
|
+
name: "get-meter-usage-preview-invoice",
|
|
57419
|
+
description: `Get invoice preview using meter_usage data
|
|
57420
|
+
|
|
57421
|
+
Preview invoice using the meter_usage table for usage data instead of feature_usage.`,
|
|
57422
|
+
scopes: ["write"],
|
|
57423
|
+
annotations: {
|
|
57424
|
+
title: "",
|
|
57425
|
+
destructiveHint: false,
|
|
57426
|
+
idempotentHint: false,
|
|
57427
|
+
openWorldHint: false,
|
|
57428
|
+
readOnlyHint: false
|
|
57429
|
+
},
|
|
57430
|
+
args: args24,
|
|
57431
|
+
tool: async (client, args25, ctx) => {
|
|
57432
|
+
const [result] = await invoicesGetMeterUsagePreviewInvoice(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57433
|
+
if (!result.ok) {
|
|
57434
|
+
return {
|
|
57435
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57436
|
+
isError: true
|
|
57437
|
+
};
|
|
57438
|
+
}
|
|
57439
|
+
return formatResult(result.value);
|
|
57440
|
+
}
|
|
57441
|
+
};
|
|
57442
|
+
});
|
|
57443
|
+
|
|
57289
57444
|
// src/models/invoicefilter.ts
|
|
57290
57445
|
var InvoiceFilterOrder$zodSchema, InvoiceFilter$zodSchema;
|
|
57291
57446
|
var init_invoicefilter = __esm(() => {
|
|
@@ -57330,6 +57485,7 @@ Multiple statuses can be specified to include invoices with any of the listed pa
|
|
|
57330
57485
|
sort: array(SortCondition$zodSchema).optional(),
|
|
57331
57486
|
start_time: exports_iso.datetime({ offset: true }).optional(),
|
|
57332
57487
|
status: Status$zodSchema.optional(),
|
|
57488
|
+
subscription_customer_id: array(string2()).optional().describe("subscription_customer_id filters invoices by the subscription owner's customer ID"),
|
|
57333
57489
|
subscription_id: string2().optional().describe(`subscription_id filters invoices generated for a specific subscription
|
|
57334
57490
|
Only returns invoices that were created as part of the specified subscription's billing`)
|
|
57335
57491
|
});
|
|
@@ -57337,9 +57493,9 @@ Only returns invoices that were created as part of the specified subscription's
|
|
|
57337
57493
|
|
|
57338
57494
|
// src/funcs/invoicesQueryInvoice.ts
|
|
57339
57495
|
function invoicesQueryInvoice(client$, request, options) {
|
|
57340
|
-
return new APIPromise($
|
|
57496
|
+
return new APIPromise($do26(client$, request, options));
|
|
57341
57497
|
}
|
|
57342
|
-
async function $
|
|
57498
|
+
async function $do26(client$, request, options) {
|
|
57343
57499
|
const parsed$ = safeParse4(request, (value$) => InvoiceFilter$zodSchema.parse(value$), "Input validation failed");
|
|
57344
57500
|
if (!parsed$.ok) {
|
|
57345
57501
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57409,12 +57565,12 @@ var init_invoicesQueryInvoice = __esm(() => {
|
|
|
57409
57565
|
});
|
|
57410
57566
|
|
|
57411
57567
|
// src/mcp-server/tools/invoicesQueryInvoice.ts
|
|
57412
|
-
var
|
|
57568
|
+
var args25, tool$invoicesQueryInvoice;
|
|
57413
57569
|
var init_invoicesQueryInvoice2 = __esm(() => {
|
|
57414
57570
|
init_invoicesQueryInvoice();
|
|
57415
57571
|
init_invoicefilter();
|
|
57416
57572
|
init_tools();
|
|
57417
|
-
|
|
57573
|
+
args25 = {
|
|
57418
57574
|
request: InvoiceFilter$zodSchema.describe(`Filter`)
|
|
57419
57575
|
};
|
|
57420
57576
|
tool$invoicesQueryInvoice = {
|
|
@@ -57430,9 +57586,9 @@ Use when listing or searching invoices (e.g. admin view or customer history). Re
|
|
|
57430
57586
|
openWorldHint: false,
|
|
57431
57587
|
readOnlyHint: false
|
|
57432
57588
|
},
|
|
57433
|
-
args:
|
|
57434
|
-
tool: async (client,
|
|
57435
|
-
const [result] = await invoicesQueryInvoice(client,
|
|
57589
|
+
args: args25,
|
|
57590
|
+
tool: async (client, args26, ctx) => {
|
|
57591
|
+
const [result] = await invoicesQueryInvoice(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57436
57592
|
if (!result.ok) {
|
|
57437
57593
|
return {
|
|
57438
57594
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57472,9 +57628,9 @@ var init_recalculateinvoiceop = __esm(() => {
|
|
|
57472
57628
|
|
|
57473
57629
|
// src/funcs/invoicesRecalculateInvoice.ts
|
|
57474
57630
|
function invoicesRecalculateInvoice(client$, request, options) {
|
|
57475
|
-
return new APIPromise($
|
|
57631
|
+
return new APIPromise($do27(client$, request, options));
|
|
57476
57632
|
}
|
|
57477
|
-
async function $
|
|
57633
|
+
async function $do27(client$, request, options) {
|
|
57478
57634
|
const parsed$ = safeParse4(request, (value$) => RecalculateInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57479
57635
|
if (!parsed$.ok) {
|
|
57480
57636
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57549,12 +57705,12 @@ var init_invoicesRecalculateInvoice = __esm(() => {
|
|
|
57549
57705
|
});
|
|
57550
57706
|
|
|
57551
57707
|
// src/mcp-server/tools/invoicesRecalculateInvoice.ts
|
|
57552
|
-
var
|
|
57708
|
+
var args26, tool$invoicesRecalculateInvoice;
|
|
57553
57709
|
var init_invoicesRecalculateInvoice2 = __esm(() => {
|
|
57554
57710
|
init_invoicesRecalculateInvoice();
|
|
57555
57711
|
init_recalculateinvoiceop();
|
|
57556
57712
|
init_tools();
|
|
57557
|
-
|
|
57713
|
+
args26 = {
|
|
57558
57714
|
request: RecalculateInvoiceRequest$zodSchema
|
|
57559
57715
|
};
|
|
57560
57716
|
tool$invoicesRecalculateInvoice = {
|
|
@@ -57570,9 +57726,9 @@ Starts an async workflow that creates a fresh replacement invoice for a voided S
|
|
|
57570
57726
|
openWorldHint: false,
|
|
57571
57727
|
readOnlyHint: false
|
|
57572
57728
|
},
|
|
57573
|
-
args:
|
|
57574
|
-
tool: async (client,
|
|
57575
|
-
const [result] = await invoicesRecalculateInvoice(client,
|
|
57729
|
+
args: args26,
|
|
57730
|
+
tool: async (client, args27, ctx) => {
|
|
57731
|
+
const [result] = await invoicesRecalculateInvoice(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57576
57732
|
if (!result.ok) {
|
|
57577
57733
|
return {
|
|
57578
57734
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57602,9 +57758,9 @@ var init_recalculateinvoicev2op = __esm(() => {
|
|
|
57602
57758
|
|
|
57603
57759
|
// src/funcs/invoicesRecalculateInvoiceV2.ts
|
|
57604
57760
|
function invoicesRecalculateInvoiceV2(client$, request, options) {
|
|
57605
|
-
return new APIPromise($
|
|
57761
|
+
return new APIPromise($do28(client$, request, options));
|
|
57606
57762
|
}
|
|
57607
|
-
async function $
|
|
57763
|
+
async function $do28(client$, request, options) {
|
|
57608
57764
|
const parsed$ = safeParse4(request, (value$) => RecalculateInvoiceV2Request$zodSchema.parse(value$), "Input validation failed");
|
|
57609
57765
|
if (!parsed$.ok) {
|
|
57610
57766
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57683,12 +57839,12 @@ var init_invoicesRecalculateInvoiceV2 = __esm(() => {
|
|
|
57683
57839
|
});
|
|
57684
57840
|
|
|
57685
57841
|
// src/mcp-server/tools/invoicesRecalculateInvoiceV2.ts
|
|
57686
|
-
var
|
|
57842
|
+
var args27, tool$invoicesRecalculateInvoiceV2;
|
|
57687
57843
|
var init_invoicesRecalculateInvoiceV22 = __esm(() => {
|
|
57688
57844
|
init_invoicesRecalculateInvoiceV2();
|
|
57689
57845
|
init_recalculateinvoicev2op();
|
|
57690
57846
|
init_tools();
|
|
57691
|
-
|
|
57847
|
+
args27 = {
|
|
57692
57848
|
request: RecalculateInvoiceV2Request$zodSchema
|
|
57693
57849
|
};
|
|
57694
57850
|
tool$invoicesRecalculateInvoiceV2 = {
|
|
@@ -57704,9 +57860,9 @@ Recalculates a draft SUBSCRIPTION invoice in-place (replaces line items, reappli
|
|
|
57704
57860
|
openWorldHint: false,
|
|
57705
57861
|
readOnlyHint: false
|
|
57706
57862
|
},
|
|
57707
|
-
args:
|
|
57708
|
-
tool: async (client,
|
|
57709
|
-
const [result] = await invoicesRecalculateInvoiceV2(client,
|
|
57863
|
+
args: args27,
|
|
57864
|
+
tool: async (client, args28, ctx) => {
|
|
57865
|
+
const [result] = await invoicesRecalculateInvoiceV2(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57710
57866
|
if (!result.ok) {
|
|
57711
57867
|
return {
|
|
57712
57868
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57735,9 +57891,9 @@ var init_triggerinvoicecommswebhookop = __esm(() => {
|
|
|
57735
57891
|
|
|
57736
57892
|
// src/funcs/invoicesTriggerInvoiceCommsWebhook.ts
|
|
57737
57893
|
function invoicesTriggerInvoiceCommsWebhook(client$, request, options) {
|
|
57738
|
-
return new APIPromise($
|
|
57894
|
+
return new APIPromise($do29(client$, request, options));
|
|
57739
57895
|
}
|
|
57740
|
-
async function $
|
|
57896
|
+
async function $do29(client$, request, options) {
|
|
57741
57897
|
const parsed$ = safeParse4(request, (value$) => TriggerInvoiceCommsWebhookRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57742
57898
|
if (!parsed$.ok) {
|
|
57743
57899
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57812,12 +57968,12 @@ var init_invoicesTriggerInvoiceCommsWebhook = __esm(() => {
|
|
|
57812
57968
|
});
|
|
57813
57969
|
|
|
57814
57970
|
// src/mcp-server/tools/invoicesTriggerInvoiceCommsWebhook.ts
|
|
57815
|
-
var
|
|
57971
|
+
var args28, tool$invoicesTriggerInvoiceCommsWebhook;
|
|
57816
57972
|
var init_invoicesTriggerInvoiceCommsWebhook2 = __esm(() => {
|
|
57817
57973
|
init_invoicesTriggerInvoiceCommsWebhook();
|
|
57818
57974
|
init_triggerinvoicecommswebhookop();
|
|
57819
57975
|
init_tools();
|
|
57820
|
-
|
|
57976
|
+
args28 = {
|
|
57821
57977
|
request: TriggerInvoiceCommsWebhookRequest$zodSchema
|
|
57822
57978
|
};
|
|
57823
57979
|
tool$invoicesTriggerInvoiceCommsWebhook = {
|
|
@@ -57833,9 +57989,9 @@ Use when sending an invoice to the customer (e.g. trigger email or Slack). Paylo
|
|
|
57833
57989
|
openWorldHint: false,
|
|
57834
57990
|
readOnlyHint: false
|
|
57835
57991
|
},
|
|
57836
|
-
args:
|
|
57837
|
-
tool: async (client,
|
|
57838
|
-
const [result] = await invoicesTriggerInvoiceCommsWebhook(client,
|
|
57992
|
+
args: args28,
|
|
57993
|
+
tool: async (client, args29, ctx) => {
|
|
57994
|
+
const [result] = await invoicesTriggerInvoiceCommsWebhook(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57839
57995
|
if (!result.ok) {
|
|
57840
57996
|
return {
|
|
57841
57997
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57877,9 +58033,9 @@ var init_updateinvoiceop = __esm(() => {
|
|
|
57877
58033
|
|
|
57878
58034
|
// src/funcs/invoicesUpdateInvoice.ts
|
|
57879
58035
|
function invoicesUpdateInvoice(client$, request, options) {
|
|
57880
|
-
return new APIPromise($
|
|
58036
|
+
return new APIPromise($do30(client$, request, options));
|
|
57881
58037
|
}
|
|
57882
|
-
async function $
|
|
58038
|
+
async function $do30(client$, request, options) {
|
|
57883
58039
|
const parsed$ = safeParse4(request, (value$) => UpdateInvoiceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57884
58040
|
if (!parsed$.ok) {
|
|
57885
58041
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57955,12 +58111,12 @@ var init_invoicesUpdateInvoice = __esm(() => {
|
|
|
57955
58111
|
});
|
|
57956
58112
|
|
|
57957
58113
|
// src/mcp-server/tools/invoicesUpdateInvoice.ts
|
|
57958
|
-
var
|
|
58114
|
+
var args29, tool$invoicesUpdateInvoice;
|
|
57959
58115
|
var init_invoicesUpdateInvoice2 = __esm(() => {
|
|
57960
58116
|
init_invoicesUpdateInvoice();
|
|
57961
58117
|
init_updateinvoiceop();
|
|
57962
58118
|
init_tools();
|
|
57963
|
-
|
|
58119
|
+
args29 = {
|
|
57964
58120
|
request: UpdateInvoiceRequestRequest$zodSchema
|
|
57965
58121
|
};
|
|
57966
58122
|
tool$invoicesUpdateInvoice = {
|
|
@@ -57976,9 +58132,9 @@ Use when updating invoice metadata or due date (e.g. PDF URL, net terms). For pa
|
|
|
57976
58132
|
openWorldHint: false,
|
|
57977
58133
|
readOnlyHint: false
|
|
57978
58134
|
},
|
|
57979
|
-
args:
|
|
57980
|
-
tool: async (client,
|
|
57981
|
-
const [result] = await invoicesUpdateInvoice(client,
|
|
58135
|
+
args: args29,
|
|
58136
|
+
tool: async (client, args30, ctx) => {
|
|
58137
|
+
const [result] = await invoicesUpdateInvoice(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57982
58138
|
if (!result.ok) {
|
|
57983
58139
|
return {
|
|
57984
58140
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58020,9 +58176,9 @@ var init_updateinvoicepaymentstatusop = __esm(() => {
|
|
|
58020
58176
|
|
|
58021
58177
|
// src/funcs/invoicesUpdateInvoicePaymentStatus.ts
|
|
58022
58178
|
function invoicesUpdateInvoicePaymentStatus(client$, request, options) {
|
|
58023
|
-
return new APIPromise($
|
|
58179
|
+
return new APIPromise($do31(client$, request, options));
|
|
58024
58180
|
}
|
|
58025
|
-
async function $
|
|
58181
|
+
async function $do31(client$, request, options) {
|
|
58026
58182
|
const parsed$ = safeParse4(request, (value$) => UpdateInvoicePaymentStatusRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58027
58183
|
if (!parsed$.ok) {
|
|
58028
58184
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58098,12 +58254,12 @@ var init_invoicesUpdateInvoicePaymentStatus = __esm(() => {
|
|
|
58098
58254
|
});
|
|
58099
58255
|
|
|
58100
58256
|
// src/mcp-server/tools/invoicesUpdateInvoicePaymentStatus.ts
|
|
58101
|
-
var
|
|
58257
|
+
var args30, tool$invoicesUpdateInvoicePaymentStatus;
|
|
58102
58258
|
var init_invoicesUpdateInvoicePaymentStatus2 = __esm(() => {
|
|
58103
58259
|
init_invoicesUpdateInvoicePaymentStatus();
|
|
58104
58260
|
init_updateinvoicepaymentstatusop();
|
|
58105
58261
|
init_tools();
|
|
58106
|
-
|
|
58262
|
+
args30 = {
|
|
58107
58263
|
request: UpdateInvoicePaymentStatusRequest$zodSchema
|
|
58108
58264
|
};
|
|
58109
58265
|
tool$invoicesUpdateInvoicePaymentStatus = {
|
|
@@ -58119,9 +58275,9 @@ Use when reconciling payment status from an external gateway or manual entry (e.
|
|
|
58119
58275
|
openWorldHint: false,
|
|
58120
58276
|
readOnlyHint: false
|
|
58121
58277
|
},
|
|
58122
|
-
args:
|
|
58123
|
-
tool: async (client,
|
|
58124
|
-
const [result] = await invoicesUpdateInvoicePaymentStatus(client,
|
|
58278
|
+
args: args30,
|
|
58279
|
+
tool: async (client, args31, ctx) => {
|
|
58280
|
+
const [result] = await invoicesUpdateInvoicePaymentStatus(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58125
58281
|
if (!result.ok) {
|
|
58126
58282
|
return {
|
|
58127
58283
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58150,9 +58306,9 @@ var init_voidinvoiceop = __esm(() => {
|
|
|
58150
58306
|
|
|
58151
58307
|
// src/funcs/invoicesVoidInvoice.ts
|
|
58152
58308
|
function invoicesVoidInvoice(client$, request, options) {
|
|
58153
|
-
return new APIPromise($
|
|
58309
|
+
return new APIPromise($do32(client$, request, options));
|
|
58154
58310
|
}
|
|
58155
|
-
async function $
|
|
58311
|
+
async function $do32(client$, request, options) {
|
|
58156
58312
|
const parsed$ = safeParse4(request, (value$) => VoidInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58157
58313
|
if (!parsed$.ok) {
|
|
58158
58314
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58227,12 +58383,12 @@ var init_invoicesVoidInvoice = __esm(() => {
|
|
|
58227
58383
|
});
|
|
58228
58384
|
|
|
58229
58385
|
// src/mcp-server/tools/invoicesVoidInvoice.ts
|
|
58230
|
-
var
|
|
58386
|
+
var args31, tool$invoicesVoidInvoice;
|
|
58231
58387
|
var init_invoicesVoidInvoice2 = __esm(() => {
|
|
58232
58388
|
init_invoicesVoidInvoice();
|
|
58233
58389
|
init_voidinvoiceop();
|
|
58234
58390
|
init_tools();
|
|
58235
|
-
|
|
58391
|
+
args31 = {
|
|
58236
58392
|
request: VoidInvoiceRequest$zodSchema
|
|
58237
58393
|
};
|
|
58238
58394
|
tool$invoicesVoidInvoice = {
|
|
@@ -58248,9 +58404,9 @@ Use when cancelling an invoice (e.g. order cancelled or duplicate). Only unpaid
|
|
|
58248
58404
|
openWorldHint: false,
|
|
58249
58405
|
readOnlyHint: false
|
|
58250
58406
|
},
|
|
58251
|
-
args:
|
|
58252
|
-
tool: async (client,
|
|
58253
|
-
const [result] = await invoicesVoidInvoice(client,
|
|
58407
|
+
args: args31,
|
|
58408
|
+
tool: async (client, args32, ctx) => {
|
|
58409
|
+
const [result] = await invoicesVoidInvoice(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58254
58410
|
if (!result.ok) {
|
|
58255
58411
|
return {
|
|
58256
58412
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58277,9 +58433,9 @@ var init_createplanrequest = __esm(() => {
|
|
|
58277
58433
|
|
|
58278
58434
|
// src/funcs/plansCreatePlan.ts
|
|
58279
58435
|
function plansCreatePlan(client$, request, options) {
|
|
58280
|
-
return new APIPromise($
|
|
58436
|
+
return new APIPromise($do33(client$, request, options));
|
|
58281
58437
|
}
|
|
58282
|
-
async function $
|
|
58438
|
+
async function $do33(client$, request, options) {
|
|
58283
58439
|
const parsed$ = safeParse4(request, (value$) => CreatePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58284
58440
|
if (!parsed$.ok) {
|
|
58285
58441
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58349,12 +58505,12 @@ var init_plansCreatePlan = __esm(() => {
|
|
|
58349
58505
|
});
|
|
58350
58506
|
|
|
58351
58507
|
// src/mcp-server/tools/plansCreatePlan.ts
|
|
58352
|
-
var
|
|
58508
|
+
var args32, tool$plansCreatePlan;
|
|
58353
58509
|
var init_plansCreatePlan2 = __esm(() => {
|
|
58354
58510
|
init_plansCreatePlan();
|
|
58355
58511
|
init_createplanrequest();
|
|
58356
58512
|
init_tools();
|
|
58357
|
-
|
|
58513
|
+
args32 = {
|
|
58358
58514
|
request: CreatePlanRequest$zodSchema.describe(`Plan configuration`)
|
|
58359
58515
|
};
|
|
58360
58516
|
tool$plansCreatePlan = {
|
|
@@ -58370,9 +58526,9 @@ Use when defining a new pricing plan (e.g. Free, Pro, Enterprise). Attach prices
|
|
|
58370
58526
|
openWorldHint: false,
|
|
58371
58527
|
readOnlyHint: false
|
|
58372
58528
|
},
|
|
58373
|
-
args:
|
|
58374
|
-
tool: async (client,
|
|
58375
|
-
const [result] = await plansCreatePlan(client,
|
|
58529
|
+
args: args32,
|
|
58530
|
+
tool: async (client, args33, ctx) => {
|
|
58531
|
+
const [result] = await plansCreatePlan(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58376
58532
|
if (!result.ok) {
|
|
58377
58533
|
return {
|
|
58378
58534
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58401,9 +58557,9 @@ var init_deleteplanop = __esm(() => {
|
|
|
58401
58557
|
|
|
58402
58558
|
// src/funcs/plansDeletePlan.ts
|
|
58403
58559
|
function plansDeletePlan(client$, request, options) {
|
|
58404
|
-
return new APIPromise($
|
|
58560
|
+
return new APIPromise($do34(client$, request, options));
|
|
58405
58561
|
}
|
|
58406
|
-
async function $
|
|
58562
|
+
async function $do34(client$, request, options) {
|
|
58407
58563
|
const parsed$ = safeParse4(request, (value$) => DeletePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58408
58564
|
if (!parsed$.ok) {
|
|
58409
58565
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58478,12 +58634,12 @@ var init_plansDeletePlan = __esm(() => {
|
|
|
58478
58634
|
});
|
|
58479
58635
|
|
|
58480
58636
|
// src/mcp-server/tools/plansDeletePlan.ts
|
|
58481
|
-
var
|
|
58637
|
+
var args33, tool$plansDeletePlan;
|
|
58482
58638
|
var init_plansDeletePlan2 = __esm(() => {
|
|
58483
58639
|
init_plansDeletePlan();
|
|
58484
58640
|
init_deleteplanop();
|
|
58485
58641
|
init_tools();
|
|
58486
|
-
|
|
58642
|
+
args33 = {
|
|
58487
58643
|
request: DeletePlanRequest$zodSchema
|
|
58488
58644
|
};
|
|
58489
58645
|
tool$plansDeletePlan = {
|
|
@@ -58499,9 +58655,9 @@ Use when retiring a plan (e.g. end-of-life). Existing subscriptions may be affec
|
|
|
58499
58655
|
openWorldHint: false,
|
|
58500
58656
|
readOnlyHint: false
|
|
58501
58657
|
},
|
|
58502
|
-
args:
|
|
58503
|
-
tool: async (client,
|
|
58504
|
-
const [result] = await plansDeletePlan(client,
|
|
58658
|
+
args: args33,
|
|
58659
|
+
tool: async (client, args34, ctx) => {
|
|
58660
|
+
const [result] = await plansDeletePlan(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58505
58661
|
if (!result.ok) {
|
|
58506
58662
|
return {
|
|
58507
58663
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58530,9 +58686,9 @@ var init_getplanop = __esm(() => {
|
|
|
58530
58686
|
|
|
58531
58687
|
// src/funcs/plansGetPlan.ts
|
|
58532
58688
|
function plansGetPlan(client$, request, options) {
|
|
58533
|
-
return new APIPromise($
|
|
58689
|
+
return new APIPromise($do35(client$, request, options));
|
|
58534
58690
|
}
|
|
58535
|
-
async function $
|
|
58691
|
+
async function $do35(client$, request, options) {
|
|
58536
58692
|
const parsed$ = safeParse4(request, (value$) => GetPlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58537
58693
|
if (!parsed$.ok) {
|
|
58538
58694
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58607,12 +58763,12 @@ var init_plansGetPlan = __esm(() => {
|
|
|
58607
58763
|
});
|
|
58608
58764
|
|
|
58609
58765
|
// src/mcp-server/tools/plansGetPlan.ts
|
|
58610
|
-
var
|
|
58766
|
+
var args34, tool$plansGetPlan;
|
|
58611
58767
|
var init_plansGetPlan2 = __esm(() => {
|
|
58612
58768
|
init_plansGetPlan();
|
|
58613
58769
|
init_getplanop();
|
|
58614
58770
|
init_tools();
|
|
58615
|
-
|
|
58771
|
+
args34 = {
|
|
58616
58772
|
request: GetPlanRequest$zodSchema
|
|
58617
58773
|
};
|
|
58618
58774
|
tool$plansGetPlan = {
|
|
@@ -58628,9 +58784,9 @@ Use when you need to load a single plan (e.g. for display or to create a subscri
|
|
|
58628
58784
|
openWorldHint: false,
|
|
58629
58785
|
readOnlyHint: true
|
|
58630
58786
|
},
|
|
58631
|
-
args:
|
|
58632
|
-
tool: async (client,
|
|
58633
|
-
const [result] = await plansGetPlan(client,
|
|
58787
|
+
args: args34,
|
|
58788
|
+
tool: async (client, args35, ctx) => {
|
|
58789
|
+
const [result] = await plansGetPlan(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58634
58790
|
if (!result.ok) {
|
|
58635
58791
|
return {
|
|
58636
58792
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58674,9 +58830,9 @@ var init_postplansidcloneop = __esm(() => {
|
|
|
58674
58830
|
|
|
58675
58831
|
// src/funcs/plansPostPlansIdClone.ts
|
|
58676
58832
|
function plansPostPlansIdClone(client$, request, options) {
|
|
58677
|
-
return new APIPromise($
|
|
58833
|
+
return new APIPromise($do36(client$, request, options));
|
|
58678
58834
|
}
|
|
58679
|
-
async function $
|
|
58835
|
+
async function $do36(client$, request, options) {
|
|
58680
58836
|
const parsed$ = safeParse4(request, (value$) => PostPlansIdCloneRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58681
58837
|
if (!parsed$.ok) {
|
|
58682
58838
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58752,12 +58908,12 @@ var init_plansPostPlansIdClone = __esm(() => {
|
|
|
58752
58908
|
});
|
|
58753
58909
|
|
|
58754
58910
|
// src/mcp-server/tools/plansPostPlansIdClone.ts
|
|
58755
|
-
var
|
|
58911
|
+
var args35, tool$plansPostPlansIdClone;
|
|
58756
58912
|
var init_plansPostPlansIdClone2 = __esm(() => {
|
|
58757
58913
|
init_plansPostPlansIdClone();
|
|
58758
58914
|
init_postplansidcloneop();
|
|
58759
58915
|
init_tools();
|
|
58760
|
-
|
|
58916
|
+
args35 = {
|
|
58761
58917
|
request: PostPlansIdCloneRequest$zodSchema
|
|
58762
58918
|
};
|
|
58763
58919
|
tool$plansPostPlansIdClone = {
|
|
@@ -58773,9 +58929,9 @@ Clone an existing plan, copying its active prices, published entitlements, and p
|
|
|
58773
58929
|
openWorldHint: false,
|
|
58774
58930
|
readOnlyHint: false
|
|
58775
58931
|
},
|
|
58776
|
-
args:
|
|
58777
|
-
tool: async (client,
|
|
58778
|
-
const [result] = await plansPostPlansIdClone(client,
|
|
58932
|
+
args: args35,
|
|
58933
|
+
tool: async (client, args36, ctx) => {
|
|
58934
|
+
const [result] = await plansPostPlansIdClone(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58779
58935
|
if (!result.ok) {
|
|
58780
58936
|
return {
|
|
58781
58937
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58815,9 +58971,9 @@ var init_planfilter = __esm(() => {
|
|
|
58815
58971
|
|
|
58816
58972
|
// src/funcs/plansQueryPlan.ts
|
|
58817
58973
|
function plansQueryPlan(client$, request, options) {
|
|
58818
|
-
return new APIPromise($
|
|
58974
|
+
return new APIPromise($do37(client$, request, options));
|
|
58819
58975
|
}
|
|
58820
|
-
async function $
|
|
58976
|
+
async function $do37(client$, request, options) {
|
|
58821
58977
|
const parsed$ = safeParse4(request, (value$) => PlanFilter$zodSchema.parse(value$), "Input validation failed");
|
|
58822
58978
|
if (!parsed$.ok) {
|
|
58823
58979
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58887,12 +59043,12 @@ var init_plansQueryPlan = __esm(() => {
|
|
|
58887
59043
|
});
|
|
58888
59044
|
|
|
58889
59045
|
// src/mcp-server/tools/plansQueryPlan.ts
|
|
58890
|
-
var
|
|
59046
|
+
var args36, tool$plansQueryPlan;
|
|
58891
59047
|
var init_plansQueryPlan2 = __esm(() => {
|
|
58892
59048
|
init_plansQueryPlan();
|
|
58893
59049
|
init_planfilter();
|
|
58894
59050
|
init_tools();
|
|
58895
|
-
|
|
59051
|
+
args36 = {
|
|
58896
59052
|
request: PlanFilter$zodSchema.describe(`Filter`)
|
|
58897
59053
|
};
|
|
58898
59054
|
tool$plansQueryPlan = {
|
|
@@ -58908,9 +59064,9 @@ Use when listing or searching plans (e.g. plan picker or admin catalog). Returns
|
|
|
58908
59064
|
openWorldHint: false,
|
|
58909
59065
|
readOnlyHint: false
|
|
58910
59066
|
},
|
|
58911
|
-
args:
|
|
58912
|
-
tool: async (client,
|
|
58913
|
-
const [result] = await plansQueryPlan(client,
|
|
59067
|
+
args: args36,
|
|
59068
|
+
tool: async (client, args37, ctx) => {
|
|
59069
|
+
const [result] = await plansQueryPlan(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58914
59070
|
if (!result.ok) {
|
|
58915
59071
|
return {
|
|
58916
59072
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58939,9 +59095,9 @@ var init_syncplanpricesop = __esm(() => {
|
|
|
58939
59095
|
|
|
58940
59096
|
// src/funcs/plansSyncPlanPrices.ts
|
|
58941
59097
|
function plansSyncPlanPrices(client$, request, options) {
|
|
58942
|
-
return new APIPromise($
|
|
59098
|
+
return new APIPromise($do38(client$, request, options));
|
|
58943
59099
|
}
|
|
58944
|
-
async function $
|
|
59100
|
+
async function $do38(client$, request, options) {
|
|
58945
59101
|
const parsed$ = safeParse4(request, (value$) => SyncPlanPricesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58946
59102
|
if (!parsed$.ok) {
|
|
58947
59103
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59016,12 +59172,12 @@ var init_plansSyncPlanPrices = __esm(() => {
|
|
|
59016
59172
|
});
|
|
59017
59173
|
|
|
59018
59174
|
// src/mcp-server/tools/plansSyncPlanPrices.ts
|
|
59019
|
-
var
|
|
59175
|
+
var args37, tool$plansSyncPlanPrices;
|
|
59020
59176
|
var init_plansSyncPlanPrices2 = __esm(() => {
|
|
59021
59177
|
init_plansSyncPlanPrices();
|
|
59022
59178
|
init_syncplanpricesop();
|
|
59023
59179
|
init_tools();
|
|
59024
|
-
|
|
59180
|
+
args37 = {
|
|
59025
59181
|
request: SyncPlanPricesRequest$zodSchema
|
|
59026
59182
|
};
|
|
59027
59183
|
tool$plansSyncPlanPrices = {
|
|
@@ -59037,9 +59193,9 @@ Use when you have changed plan prices and need to push them to all active subscr
|
|
|
59037
59193
|
openWorldHint: false,
|
|
59038
59194
|
readOnlyHint: false
|
|
59039
59195
|
},
|
|
59040
|
-
args:
|
|
59041
|
-
tool: async (client,
|
|
59042
|
-
const [result] = await plansSyncPlanPrices(client,
|
|
59196
|
+
args: args37,
|
|
59197
|
+
tool: async (client, args38, ctx) => {
|
|
59198
|
+
const [result] = await plansSyncPlanPrices(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59043
59199
|
if (!result.ok) {
|
|
59044
59200
|
return {
|
|
59045
59201
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59083,9 +59239,9 @@ var init_updateplanop = __esm(() => {
|
|
|
59083
59239
|
|
|
59084
59240
|
// src/funcs/plansUpdatePlan.ts
|
|
59085
59241
|
function plansUpdatePlan(client$, request, options) {
|
|
59086
|
-
return new APIPromise($
|
|
59242
|
+
return new APIPromise($do39(client$, request, options));
|
|
59087
59243
|
}
|
|
59088
|
-
async function $
|
|
59244
|
+
async function $do39(client$, request, options) {
|
|
59089
59245
|
const parsed$ = safeParse4(request, (value$) => UpdatePlanRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59090
59246
|
if (!parsed$.ok) {
|
|
59091
59247
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59161,12 +59317,12 @@ var init_plansUpdatePlan = __esm(() => {
|
|
|
59161
59317
|
});
|
|
59162
59318
|
|
|
59163
59319
|
// src/mcp-server/tools/plansUpdatePlan.ts
|
|
59164
|
-
var
|
|
59320
|
+
var args38, tool$plansUpdatePlan;
|
|
59165
59321
|
var init_plansUpdatePlan2 = __esm(() => {
|
|
59166
59322
|
init_plansUpdatePlan();
|
|
59167
59323
|
init_updateplanop();
|
|
59168
59324
|
init_tools();
|
|
59169
|
-
|
|
59325
|
+
args38 = {
|
|
59170
59326
|
request: UpdatePlanRequestRequest$zodSchema
|
|
59171
59327
|
};
|
|
59172
59328
|
tool$plansUpdatePlan = {
|
|
@@ -59182,9 +59338,9 @@ Use when changing plan details (e.g. name, interval, or metadata). Partial updat
|
|
|
59182
59338
|
openWorldHint: false,
|
|
59183
59339
|
readOnlyHint: false
|
|
59184
59340
|
},
|
|
59185
|
-
args:
|
|
59186
|
-
tool: async (client,
|
|
59187
|
-
const [result] = await plansUpdatePlan(client,
|
|
59341
|
+
args: args38,
|
|
59342
|
+
tool: async (client, args39, ctx) => {
|
|
59343
|
+
const [result] = await plansUpdatePlan(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59188
59344
|
if (!result.ok) {
|
|
59189
59345
|
return {
|
|
59190
59346
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59238,7 +59394,6 @@ var init_priceunitconfig = __esm(() => {
|
|
|
59238
59394
|
var CreatePriceRequest$zodSchema;
|
|
59239
59395
|
var init_createpricerequest = __esm(() => {
|
|
59240
59396
|
init_zod();
|
|
59241
|
-
init_billingcadence();
|
|
59242
59397
|
init_billingmodel();
|
|
59243
59398
|
init_billingperiod();
|
|
59244
59399
|
init_billingtier();
|
|
@@ -59251,7 +59406,6 @@ var init_createpricerequest = __esm(() => {
|
|
|
59251
59406
|
init_priceunittype();
|
|
59252
59407
|
CreatePriceRequest$zodSchema = object({
|
|
59253
59408
|
amount: string2().optional(),
|
|
59254
|
-
billing_cadence: BillingCadence$zodSchema,
|
|
59255
59409
|
billing_model: BillingModel$zodSchema,
|
|
59256
59410
|
billing_period: BillingPeriod$zodSchema,
|
|
59257
59411
|
billing_period_count: int().optional(),
|
|
@@ -59281,9 +59435,9 @@ var init_createpricerequest = __esm(() => {
|
|
|
59281
59435
|
|
|
59282
59436
|
// src/funcs/pricesCreatePrice.ts
|
|
59283
59437
|
function pricesCreatePrice(client$, request, options) {
|
|
59284
|
-
return new APIPromise($
|
|
59438
|
+
return new APIPromise($do40(client$, request, options));
|
|
59285
59439
|
}
|
|
59286
|
-
async function $
|
|
59440
|
+
async function $do40(client$, request, options) {
|
|
59287
59441
|
const parsed$ = safeParse4(request, (value$) => CreatePriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59288
59442
|
if (!parsed$.ok) {
|
|
59289
59443
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59353,12 +59507,12 @@ var init_pricesCreatePrice = __esm(() => {
|
|
|
59353
59507
|
});
|
|
59354
59508
|
|
|
59355
59509
|
// src/mcp-server/tools/pricesCreatePrice.ts
|
|
59356
|
-
var
|
|
59510
|
+
var args39, tool$pricesCreatePrice;
|
|
59357
59511
|
var init_pricesCreatePrice2 = __esm(() => {
|
|
59358
59512
|
init_pricesCreatePrice();
|
|
59359
59513
|
init_createpricerequest();
|
|
59360
59514
|
init_tools();
|
|
59361
|
-
|
|
59515
|
+
args39 = {
|
|
59362
59516
|
request: CreatePriceRequest$zodSchema.describe(`Price configuration`)
|
|
59363
59517
|
};
|
|
59364
59518
|
tool$pricesCreatePrice = {
|
|
@@ -59374,9 +59528,9 @@ Use when adding a new price to a plan or catalog (e.g. per-seat, flat, or metere
|
|
|
59374
59528
|
openWorldHint: false,
|
|
59375
59529
|
readOnlyHint: false
|
|
59376
59530
|
},
|
|
59377
|
-
args:
|
|
59378
|
-
tool: async (client,
|
|
59379
|
-
const [result] = await pricesCreatePrice(client,
|
|
59531
|
+
args: args39,
|
|
59532
|
+
tool: async (client, args40, ctx) => {
|
|
59533
|
+
const [result] = await pricesCreatePrice(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59380
59534
|
if (!result.ok) {
|
|
59381
59535
|
return {
|
|
59382
59536
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59400,9 +59554,9 @@ var init_createbulkpricerequest = __esm(() => {
|
|
|
59400
59554
|
|
|
59401
59555
|
// src/funcs/pricesCreatePricesBulk.ts
|
|
59402
59556
|
function pricesCreatePricesBulk(client$, request, options) {
|
|
59403
|
-
return new APIPromise($
|
|
59557
|
+
return new APIPromise($do41(client$, request, options));
|
|
59404
59558
|
}
|
|
59405
|
-
async function $
|
|
59559
|
+
async function $do41(client$, request, options) {
|
|
59406
59560
|
const parsed$ = safeParse4(request, (value$) => CreateBulkPriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59407
59561
|
if (!parsed$.ok) {
|
|
59408
59562
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59472,12 +59626,12 @@ var init_pricesCreatePricesBulk = __esm(() => {
|
|
|
59472
59626
|
});
|
|
59473
59627
|
|
|
59474
59628
|
// src/mcp-server/tools/pricesCreatePricesBulk.ts
|
|
59475
|
-
var
|
|
59629
|
+
var args40, tool$pricesCreatePricesBulk;
|
|
59476
59630
|
var init_pricesCreatePricesBulk2 = __esm(() => {
|
|
59477
59631
|
init_pricesCreatePricesBulk();
|
|
59478
59632
|
init_createbulkpricerequest();
|
|
59479
59633
|
init_tools();
|
|
59480
|
-
|
|
59634
|
+
args40 = {
|
|
59481
59635
|
request: CreateBulkPriceRequest$zodSchema.describe(`Bulk price configuration`)
|
|
59482
59636
|
};
|
|
59483
59637
|
tool$pricesCreatePricesBulk = {
|
|
@@ -59493,9 +59647,9 @@ Use when creating many prices at once (e.g. importing a catalog or setting up a
|
|
|
59493
59647
|
openWorldHint: false,
|
|
59494
59648
|
readOnlyHint: false
|
|
59495
59649
|
},
|
|
59496
|
-
args:
|
|
59497
|
-
tool: async (client,
|
|
59498
|
-
const [result] = await pricesCreatePricesBulk(client,
|
|
59650
|
+
args: args40,
|
|
59651
|
+
tool: async (client, args41, ctx) => {
|
|
59652
|
+
const [result] = await pricesCreatePricesBulk(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59499
59653
|
if (!result.ok) {
|
|
59500
59654
|
return {
|
|
59501
59655
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59535,9 +59689,9 @@ var init_deletepriceop = __esm(() => {
|
|
|
59535
59689
|
|
|
59536
59690
|
// src/funcs/pricesDeletePrice.ts
|
|
59537
59691
|
function pricesDeletePrice(client$, request, options) {
|
|
59538
|
-
return new APIPromise($
|
|
59692
|
+
return new APIPromise($do42(client$, request, options));
|
|
59539
59693
|
}
|
|
59540
|
-
async function $
|
|
59694
|
+
async function $do42(client$, request, options) {
|
|
59541
59695
|
const parsed$ = safeParse4(request, (value$) => DeletePriceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59542
59696
|
if (!parsed$.ok) {
|
|
59543
59697
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59613,12 +59767,12 @@ var init_pricesDeletePrice = __esm(() => {
|
|
|
59613
59767
|
});
|
|
59614
59768
|
|
|
59615
59769
|
// src/mcp-server/tools/pricesDeletePrice.ts
|
|
59616
|
-
var
|
|
59770
|
+
var args41, tool$pricesDeletePrice;
|
|
59617
59771
|
var init_pricesDeletePrice2 = __esm(() => {
|
|
59618
59772
|
init_pricesDeletePrice();
|
|
59619
59773
|
init_deletepriceop();
|
|
59620
59774
|
init_tools();
|
|
59621
|
-
|
|
59775
|
+
args41 = {
|
|
59622
59776
|
request: DeletePriceRequestRequest$zodSchema
|
|
59623
59777
|
};
|
|
59624
59778
|
tool$pricesDeletePrice = {
|
|
@@ -59634,9 +59788,9 @@ Use when retiring a price (e.g. end-of-life or replacement). Optional effective
|
|
|
59634
59788
|
openWorldHint: false,
|
|
59635
59789
|
readOnlyHint: false
|
|
59636
59790
|
},
|
|
59637
|
-
args:
|
|
59638
|
-
tool: async (client,
|
|
59639
|
-
const [result] = await pricesDeletePrice(client,
|
|
59791
|
+
args: args41,
|
|
59792
|
+
tool: async (client, args42, ctx) => {
|
|
59793
|
+
const [result] = await pricesDeletePrice(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59640
59794
|
if (!result.ok) {
|
|
59641
59795
|
return {
|
|
59642
59796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59665,9 +59819,9 @@ var init_getpriceop = __esm(() => {
|
|
|
59665
59819
|
|
|
59666
59820
|
// src/funcs/pricesGetPrice.ts
|
|
59667
59821
|
function pricesGetPrice(client$, request, options) {
|
|
59668
|
-
return new APIPromise($
|
|
59822
|
+
return new APIPromise($do43(client$, request, options));
|
|
59669
59823
|
}
|
|
59670
|
-
async function $
|
|
59824
|
+
async function $do43(client$, request, options) {
|
|
59671
59825
|
const parsed$ = safeParse4(request, (value$) => GetPriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59672
59826
|
if (!parsed$.ok) {
|
|
59673
59827
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59742,12 +59896,12 @@ var init_pricesGetPrice = __esm(() => {
|
|
|
59742
59896
|
});
|
|
59743
59897
|
|
|
59744
59898
|
// src/mcp-server/tools/pricesGetPrice.ts
|
|
59745
|
-
var
|
|
59899
|
+
var args42, tool$pricesGetPrice;
|
|
59746
59900
|
var init_pricesGetPrice2 = __esm(() => {
|
|
59747
59901
|
init_pricesGetPrice();
|
|
59748
59902
|
init_getpriceop();
|
|
59749
59903
|
init_tools();
|
|
59750
|
-
|
|
59904
|
+
args42 = {
|
|
59751
59905
|
request: GetPriceRequest$zodSchema
|
|
59752
59906
|
};
|
|
59753
59907
|
tool$pricesGetPrice = {
|
|
@@ -59763,9 +59917,9 @@ Use when you need to load a single price (e.g. for display or editing). Response
|
|
|
59763
59917
|
openWorldHint: false,
|
|
59764
59918
|
readOnlyHint: true
|
|
59765
59919
|
},
|
|
59766
|
-
args:
|
|
59767
|
-
tool: async (client,
|
|
59768
|
-
const [result] = await pricesGetPrice(client,
|
|
59920
|
+
args: args42,
|
|
59921
|
+
tool: async (client, args43, ctx) => {
|
|
59922
|
+
const [result] = await pricesGetPrice(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59769
59923
|
if (!result.ok) {
|
|
59770
59924
|
return {
|
|
59771
59925
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59794,9 +59948,9 @@ var init_getpricebylookupkeyop = __esm(() => {
|
|
|
59794
59948
|
|
|
59795
59949
|
// src/funcs/pricesGetPriceByLookupKey.ts
|
|
59796
59950
|
function pricesGetPriceByLookupKey(client$, request, options) {
|
|
59797
|
-
return new APIPromise($
|
|
59951
|
+
return new APIPromise($do44(client$, request, options));
|
|
59798
59952
|
}
|
|
59799
|
-
async function $
|
|
59953
|
+
async function $do44(client$, request, options) {
|
|
59800
59954
|
const parsed$ = safeParse4(request, (value$) => GetPriceByLookupKeyRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59801
59955
|
if (!parsed$.ok) {
|
|
59802
59956
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59871,12 +60025,12 @@ var init_pricesGetPriceByLookupKey = __esm(() => {
|
|
|
59871
60025
|
});
|
|
59872
60026
|
|
|
59873
60027
|
// src/mcp-server/tools/pricesGetPriceByLookupKey.ts
|
|
59874
|
-
var
|
|
60028
|
+
var args43, tool$pricesGetPriceByLookupKey;
|
|
59875
60029
|
var init_pricesGetPriceByLookupKey2 = __esm(() => {
|
|
59876
60030
|
init_pricesGetPriceByLookupKey();
|
|
59877
60031
|
init_getpricebylookupkeyop();
|
|
59878
60032
|
init_tools();
|
|
59879
|
-
|
|
60033
|
+
args43 = {
|
|
59880
60034
|
request: GetPriceByLookupKeyRequest$zodSchema
|
|
59881
60035
|
};
|
|
59882
60036
|
tool$pricesGetPriceByLookupKey = {
|
|
@@ -59892,9 +60046,9 @@ Use when resolving a price by external id (e.g. from your catalog or CMS). Ideal
|
|
|
59892
60046
|
openWorldHint: false,
|
|
59893
60047
|
readOnlyHint: true
|
|
59894
60048
|
},
|
|
59895
|
-
args:
|
|
59896
|
-
tool: async (client,
|
|
59897
|
-
const [result] = await pricesGetPriceByLookupKey(client,
|
|
60049
|
+
args: args43,
|
|
60050
|
+
tool: async (client, args44, ctx) => {
|
|
60051
|
+
const [result] = await pricesGetPriceByLookupKey(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59898
60052
|
if (!result.ok) {
|
|
59899
60053
|
return {
|
|
59900
60054
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59941,9 +60095,9 @@ var init_pricefilter = __esm(() => {
|
|
|
59941
60095
|
|
|
59942
60096
|
// src/funcs/pricesQueryPrice.ts
|
|
59943
60097
|
function pricesQueryPrice(client$, request, options) {
|
|
59944
|
-
return new APIPromise($
|
|
60098
|
+
return new APIPromise($do45(client$, request, options));
|
|
59945
60099
|
}
|
|
59946
|
-
async function $
|
|
60100
|
+
async function $do45(client$, request, options) {
|
|
59947
60101
|
const parsed$ = safeParse4(request, (value$) => PriceFilter$zodSchema.parse(value$), "Input validation failed");
|
|
59948
60102
|
if (!parsed$.ok) {
|
|
59949
60103
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60013,12 +60167,12 @@ var init_pricesQueryPrice = __esm(() => {
|
|
|
60013
60167
|
});
|
|
60014
60168
|
|
|
60015
60169
|
// src/mcp-server/tools/pricesQueryPrice.ts
|
|
60016
|
-
var
|
|
60170
|
+
var args44, tool$pricesQueryPrice;
|
|
60017
60171
|
var init_pricesQueryPrice2 = __esm(() => {
|
|
60018
60172
|
init_pricesQueryPrice();
|
|
60019
60173
|
init_pricefilter();
|
|
60020
60174
|
init_tools();
|
|
60021
|
-
|
|
60175
|
+
args44 = {
|
|
60022
60176
|
request: PriceFilter$zodSchema.describe(`Filter`)
|
|
60023
60177
|
};
|
|
60024
60178
|
tool$pricesQueryPrice = {
|
|
@@ -60034,9 +60188,9 @@ Use when listing or searching prices (e.g. plan builder or catalog). Returns a p
|
|
|
60034
60188
|
openWorldHint: false,
|
|
60035
60189
|
readOnlyHint: false
|
|
60036
60190
|
},
|
|
60037
|
-
args:
|
|
60038
|
-
tool: async (client,
|
|
60039
|
-
const [result] = await pricesQueryPrice(client,
|
|
60191
|
+
args: args44,
|
|
60192
|
+
tool: async (client, args45, ctx) => {
|
|
60193
|
+
const [result] = await pricesQueryPrice(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60040
60194
|
if (!result.ok) {
|
|
60041
60195
|
return {
|
|
60042
60196
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60096,9 +60250,9 @@ var init_updatepriceop = __esm(() => {
|
|
|
60096
60250
|
|
|
60097
60251
|
// src/funcs/pricesUpdatePrice.ts
|
|
60098
60252
|
function pricesUpdatePrice(client$, request, options) {
|
|
60099
|
-
return new APIPromise($
|
|
60253
|
+
return new APIPromise($do46(client$, request, options));
|
|
60100
60254
|
}
|
|
60101
|
-
async function $
|
|
60255
|
+
async function $do46(client$, request, options) {
|
|
60102
60256
|
const parsed$ = safeParse4(request, (value$) => UpdatePriceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60103
60257
|
if (!parsed$.ok) {
|
|
60104
60258
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60174,12 +60328,12 @@ var init_pricesUpdatePrice = __esm(() => {
|
|
|
60174
60328
|
});
|
|
60175
60329
|
|
|
60176
60330
|
// src/mcp-server/tools/pricesUpdatePrice.ts
|
|
60177
|
-
var
|
|
60331
|
+
var args45, tool$pricesUpdatePrice;
|
|
60178
60332
|
var init_pricesUpdatePrice2 = __esm(() => {
|
|
60179
60333
|
init_pricesUpdatePrice();
|
|
60180
60334
|
init_updatepriceop();
|
|
60181
60335
|
init_tools();
|
|
60182
|
-
|
|
60336
|
+
args45 = {
|
|
60183
60337
|
request: UpdatePriceRequestRequest$zodSchema
|
|
60184
60338
|
};
|
|
60185
60339
|
tool$pricesUpdatePrice = {
|
|
@@ -60195,9 +60349,9 @@ Use when changing price configuration (e.g. amount, billing scheme, or metadata)
|
|
|
60195
60349
|
openWorldHint: false,
|
|
60196
60350
|
readOnlyHint: false
|
|
60197
60351
|
},
|
|
60198
|
-
args:
|
|
60199
|
-
tool: async (client,
|
|
60200
|
-
const [result] = await pricesUpdatePrice(client,
|
|
60352
|
+
args: args45,
|
|
60353
|
+
tool: async (client, args46, ctx) => {
|
|
60354
|
+
const [result] = await pricesUpdatePrice(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60201
60355
|
if (!result.ok) {
|
|
60202
60356
|
return {
|
|
60203
60357
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60237,9 +60391,9 @@ var init_activatesubscriptionop = __esm(() => {
|
|
|
60237
60391
|
|
|
60238
60392
|
// src/funcs/subscriptionsActivateSubscription.ts
|
|
60239
60393
|
function subscriptionsActivateSubscription(client$, request, options) {
|
|
60240
|
-
return new APIPromise($
|
|
60394
|
+
return new APIPromise($do47(client$, request, options));
|
|
60241
60395
|
}
|
|
60242
|
-
async function $
|
|
60396
|
+
async function $do47(client$, request, options) {
|
|
60243
60397
|
const parsed$ = safeParse4(request, (value$) => ActivateSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60244
60398
|
if (!parsed$.ok) {
|
|
60245
60399
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60315,12 +60469,12 @@ var init_subscriptionsActivateSubscription = __esm(() => {
|
|
|
60315
60469
|
});
|
|
60316
60470
|
|
|
60317
60471
|
// src/mcp-server/tools/subscriptionsActivateSubscription.ts
|
|
60318
|
-
var
|
|
60472
|
+
var args46, tool$subscriptionsActivateSubscription;
|
|
60319
60473
|
var init_subscriptionsActivateSubscription2 = __esm(() => {
|
|
60320
60474
|
init_subscriptionsActivateSubscription();
|
|
60321
60475
|
init_activatesubscriptionop();
|
|
60322
60476
|
init_tools();
|
|
60323
|
-
|
|
60477
|
+
args46 = {
|
|
60324
60478
|
request: ActivateSubscriptionRequest$zodSchema
|
|
60325
60479
|
};
|
|
60326
60480
|
tool$subscriptionsActivateSubscription = {
|
|
@@ -60336,9 +60490,9 @@ Use when turning a draft subscription live (e.g. after collecting payment or com
|
|
|
60336
60490
|
openWorldHint: false,
|
|
60337
60491
|
readOnlyHint: false
|
|
60338
60492
|
},
|
|
60339
|
-
args:
|
|
60340
|
-
tool: async (client,
|
|
60341
|
-
const [result] = await subscriptionsActivateSubscription(client,
|
|
60493
|
+
args: args46,
|
|
60494
|
+
tool: async (client, args47, ctx) => {
|
|
60495
|
+
const [result] = await subscriptionsActivateSubscription(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60342
60496
|
if (!result.ok) {
|
|
60343
60497
|
return {
|
|
60344
60498
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60383,9 +60537,9 @@ var init_addaddonrequest = __esm(() => {
|
|
|
60383
60537
|
|
|
60384
60538
|
// src/funcs/subscriptionsAddSubscriptionAddon.ts
|
|
60385
60539
|
function subscriptionsAddSubscriptionAddon(client$, request, options) {
|
|
60386
|
-
return new APIPromise($
|
|
60540
|
+
return new APIPromise($do48(client$, request, options));
|
|
60387
60541
|
}
|
|
60388
|
-
async function $
|
|
60542
|
+
async function $do48(client$, request, options) {
|
|
60389
60543
|
const parsed$ = safeParse4(request, (value$) => AddAddonRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60390
60544
|
if (!parsed$.ok) {
|
|
60391
60545
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60455,12 +60609,12 @@ var init_subscriptionsAddSubscriptionAddon = __esm(() => {
|
|
|
60455
60609
|
});
|
|
60456
60610
|
|
|
60457
60611
|
// src/mcp-server/tools/subscriptionsAddSubscriptionAddon.ts
|
|
60458
|
-
var
|
|
60612
|
+
var args47, tool$subscriptionsAddSubscriptionAddon;
|
|
60459
60613
|
var init_subscriptionsAddSubscriptionAddon2 = __esm(() => {
|
|
60460
60614
|
init_subscriptionsAddSubscriptionAddon();
|
|
60461
60615
|
init_addaddonrequest();
|
|
60462
60616
|
init_tools();
|
|
60463
|
-
|
|
60617
|
+
args47 = {
|
|
60464
60618
|
request: AddAddonRequest$zodSchema.describe(`Add Addon Request`)
|
|
60465
60619
|
};
|
|
60466
60620
|
tool$subscriptionsAddSubscriptionAddon = {
|
|
@@ -60476,9 +60630,9 @@ Use when adding an optional product or add-on to an existing subscription (e.g.
|
|
|
60476
60630
|
openWorldHint: false,
|
|
60477
60631
|
readOnlyHint: false
|
|
60478
60632
|
},
|
|
60479
|
-
args:
|
|
60480
|
-
tool: async (client,
|
|
60481
|
-
const [result] = await subscriptionsAddSubscriptionAddon(client,
|
|
60633
|
+
args: args47,
|
|
60634
|
+
tool: async (client, args48, ctx) => {
|
|
60635
|
+
const [result] = await subscriptionsAddSubscriptionAddon(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60482
60636
|
if (!result.ok) {
|
|
60483
60637
|
return {
|
|
60484
60638
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60584,9 +60738,9 @@ var init_cancelsubscriptionop = __esm(() => {
|
|
|
60584
60738
|
|
|
60585
60739
|
// src/funcs/subscriptionsCancelSubscription.ts
|
|
60586
60740
|
function subscriptionsCancelSubscription(client$, request, options) {
|
|
60587
|
-
return new APIPromise($
|
|
60741
|
+
return new APIPromise($do49(client$, request, options));
|
|
60588
60742
|
}
|
|
60589
|
-
async function $
|
|
60743
|
+
async function $do49(client$, request, options) {
|
|
60590
60744
|
const parsed$ = safeParse4(request, (value$) => CancelSubscriptionRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60591
60745
|
if (!parsed$.ok) {
|
|
60592
60746
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60662,12 +60816,12 @@ var init_subscriptionsCancelSubscription = __esm(() => {
|
|
|
60662
60816
|
});
|
|
60663
60817
|
|
|
60664
60818
|
// src/mcp-server/tools/subscriptionsCancelSubscription.ts
|
|
60665
|
-
var
|
|
60819
|
+
var args48, tool$subscriptionsCancelSubscription;
|
|
60666
60820
|
var init_subscriptionsCancelSubscription2 = __esm(() => {
|
|
60667
60821
|
init_subscriptionsCancelSubscription();
|
|
60668
60822
|
init_cancelsubscriptionop();
|
|
60669
60823
|
init_tools();
|
|
60670
|
-
|
|
60824
|
+
args48 = {
|
|
60671
60825
|
request: CancelSubscriptionRequestRequest$zodSchema
|
|
60672
60826
|
};
|
|
60673
60827
|
tool$subscriptionsCancelSubscription = {
|
|
@@ -60683,9 +60837,9 @@ Use when a customer churns or downgrades. Supports immediate or end-of-period ca
|
|
|
60683
60837
|
openWorldHint: false,
|
|
60684
60838
|
readOnlyHint: false
|
|
60685
60839
|
},
|
|
60686
|
-
args:
|
|
60687
|
-
tool: async (client,
|
|
60688
|
-
const [result] = await subscriptionsCancelSubscription(client,
|
|
60840
|
+
args: args48,
|
|
60841
|
+
tool: async (client, args49, ctx) => {
|
|
60842
|
+
const [result] = await subscriptionsCancelSubscription(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60689
60843
|
if (!result.ok) {
|
|
60690
60844
|
return {
|
|
60691
60845
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60732,9 +60886,9 @@ var init_cancelsubscriptionscheduleop = __esm(() => {
|
|
|
60732
60886
|
|
|
60733
60887
|
// src/funcs/subscriptionsCancelSubscriptionSchedule.ts
|
|
60734
60888
|
function subscriptionsCancelSubscriptionSchedule(client$, request, options) {
|
|
60735
|
-
return new APIPromise($
|
|
60889
|
+
return new APIPromise($do50(client$, request, options));
|
|
60736
60890
|
}
|
|
60737
|
-
async function $
|
|
60891
|
+
async function $do50(client$, request, options) {
|
|
60738
60892
|
const parsed$ = safeParse4(request, (value$) => CancelSubscriptionScheduleRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60739
60893
|
if (!parsed$.ok) {
|
|
60740
60894
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60810,12 +60964,12 @@ var init_subscriptionsCancelSubscriptionSchedule = __esm(() => {
|
|
|
60810
60964
|
});
|
|
60811
60965
|
|
|
60812
60966
|
// src/mcp-server/tools/subscriptionsCancelSubscriptionSchedule.ts
|
|
60813
|
-
var
|
|
60967
|
+
var args49, tool$subscriptionsCancelSubscriptionSchedule;
|
|
60814
60968
|
var init_subscriptionsCancelSubscriptionSchedule2 = __esm(() => {
|
|
60815
60969
|
init_subscriptionsCancelSubscriptionSchedule();
|
|
60816
60970
|
init_cancelsubscriptionscheduleop();
|
|
60817
60971
|
init_tools();
|
|
60818
|
-
|
|
60972
|
+
args49 = {
|
|
60819
60973
|
request: CancelSubscriptionScheduleRequest$zodSchema
|
|
60820
60974
|
};
|
|
60821
60975
|
tool$subscriptionsCancelSubscriptionSchedule = {
|
|
@@ -60831,9 +60985,9 @@ Use when cancelling a scheduled change (e.g. customer changed mind). Identify by
|
|
|
60831
60985
|
openWorldHint: false,
|
|
60832
60986
|
readOnlyHint: false
|
|
60833
60987
|
},
|
|
60834
|
-
args:
|
|
60835
|
-
tool: async (client,
|
|
60836
|
-
const [result] = await subscriptionsCancelSubscriptionSchedule(client,
|
|
60988
|
+
args: args49,
|
|
60989
|
+
tool: async (client, args50, ctx) => {
|
|
60990
|
+
const [result] = await subscriptionsCancelSubscriptionSchedule(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60837
60991
|
if (!result.ok) {
|
|
60838
60992
|
return {
|
|
60839
60993
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60908,7 +61062,6 @@ ex if topup_conversion_rate is 0.5, then 1 USD = 2 credits`)
|
|
|
60908
61062
|
var SubscriptionPriceCreateRequest$zodSchema;
|
|
60909
61063
|
var init_subscriptionpricecreaterequest = __esm(() => {
|
|
60910
61064
|
init_zod();
|
|
60911
|
-
init_billingcadence();
|
|
60912
61065
|
init_billingmodel();
|
|
60913
61066
|
init_billingperiod();
|
|
60914
61067
|
init_billingtier();
|
|
@@ -60920,7 +61073,6 @@ var init_subscriptionpricecreaterequest = __esm(() => {
|
|
|
60920
61073
|
init_priceunittype();
|
|
60921
61074
|
SubscriptionPriceCreateRequest$zodSchema = object({
|
|
60922
61075
|
amount: string2().optional(),
|
|
60923
|
-
billing_cadence: BillingCadence$zodSchema,
|
|
60924
61076
|
billing_model: BillingModel$zodSchema,
|
|
60925
61077
|
billing_period: BillingPeriod$zodSchema,
|
|
60926
61078
|
billing_period_count: int().optional(),
|
|
@@ -61031,11 +61183,14 @@ var init_subscriptioninheritanceconfig = __esm(() => {
|
|
|
61031
61183
|
var SubscriptionPhaseCreateRequest$zodSchema;
|
|
61032
61184
|
var init_subscriptionphasecreaterequest = __esm(() => {
|
|
61033
61185
|
init_zod();
|
|
61186
|
+
init_createsubscriptionlineitemrequest();
|
|
61034
61187
|
init_overridelineitemrequest();
|
|
61035
61188
|
SubscriptionPhaseCreateRequest$zodSchema = object({
|
|
61036
61189
|
coupons: array(string2()).optional().describe("Coupons represents subscription-level coupons to be applied to this phase"),
|
|
61037
61190
|
end_date: exports_iso.datetime({ offset: true }).optional(),
|
|
61038
61191
|
line_item_coupons: record(string2(), array(string2())).optional().describe("LineItemCoupons represents line item-level coupons (map of line_item_id to coupon IDs)"),
|
|
61192
|
+
line_items: array(CreateSubscriptionLineItemRequest$zodSchema).optional().describe(`LineItems are extra line items to add during this phase, primarily one-time charges.
|
|
61193
|
+
Each item's start_date defaults to the phase's start_date when not provided.`),
|
|
61039
61194
|
metadata: record(string2(), string2()).optional(),
|
|
61040
61195
|
override_line_items: array(OverrideLineItemRequest$zodSchema).optional().describe(`OverrideLineItems allows customizing specific prices for this phase
|
|
61041
61196
|
If not provided, phase will use the same line items as the subscription (plan prices)`),
|
|
@@ -61048,7 +61203,6 @@ var CreateSubscriptionRequest$zodSchema;
|
|
|
61048
61203
|
var init_createsubscriptionrequest = __esm(() => {
|
|
61049
61204
|
init_zod();
|
|
61050
61205
|
init_addaddontosubscriptionrequest();
|
|
61051
|
-
init_billingcadence();
|
|
61052
61206
|
init_billingcycle();
|
|
61053
61207
|
init_billingperiod();
|
|
61054
61208
|
init_collectionmethod();
|
|
@@ -61066,7 +61220,6 @@ var init_createsubscriptionrequest = __esm(() => {
|
|
|
61066
61220
|
init_taxrateoverride();
|
|
61067
61221
|
CreateSubscriptionRequest$zodSchema = object({
|
|
61068
61222
|
addons: array(AddAddonToSubscriptionRequest$zodSchema).optional().describe("Addons represents addons to be added to the subscription during creation"),
|
|
61069
|
-
billing_cadence: BillingCadence$zodSchema,
|
|
61070
61223
|
billing_cycle: BillingCycle$zodSchema.optional(),
|
|
61071
61224
|
billing_period: BillingPeriod$zodSchema,
|
|
61072
61225
|
billing_period_count: int().optional(),
|
|
@@ -61109,9 +61262,9 @@ and must be same as what you provided as external_id while creating the customer
|
|
|
61109
61262
|
|
|
61110
61263
|
// src/funcs/subscriptionsCreateSubscription.ts
|
|
61111
61264
|
function subscriptionsCreateSubscription(client$, request, options) {
|
|
61112
|
-
return new APIPromise($
|
|
61265
|
+
return new APIPromise($do51(client$, request, options));
|
|
61113
61266
|
}
|
|
61114
|
-
async function $
|
|
61267
|
+
async function $do51(client$, request, options) {
|
|
61115
61268
|
const parsed$ = safeParse4(request, (value$) => CreateSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61116
61269
|
if (!parsed$.ok) {
|
|
61117
61270
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61181,12 +61334,12 @@ var init_subscriptionsCreateSubscription = __esm(() => {
|
|
|
61181
61334
|
});
|
|
61182
61335
|
|
|
61183
61336
|
// src/mcp-server/tools/subscriptionsCreateSubscription.ts
|
|
61184
|
-
var
|
|
61337
|
+
var args50, tool$subscriptionsCreateSubscription;
|
|
61185
61338
|
var init_subscriptionsCreateSubscription2 = __esm(() => {
|
|
61186
61339
|
init_subscriptionsCreateSubscription();
|
|
61187
61340
|
init_createsubscriptionrequest();
|
|
61188
61341
|
init_tools();
|
|
61189
|
-
|
|
61342
|
+
args50 = {
|
|
61190
61343
|
request: CreateSubscriptionRequest$zodSchema.describe(`Subscription Request`)
|
|
61191
61344
|
};
|
|
61192
61345
|
tool$subscriptionsCreateSubscription = {
|
|
@@ -61202,9 +61355,9 @@ Use when onboarding a customer to a plan or starting a new subscription. Ideal f
|
|
|
61202
61355
|
openWorldHint: false,
|
|
61203
61356
|
readOnlyHint: false
|
|
61204
61357
|
},
|
|
61205
|
-
args:
|
|
61206
|
-
tool: async (client,
|
|
61207
|
-
const [result] = await subscriptionsCreateSubscription(client,
|
|
61358
|
+
args: args50,
|
|
61359
|
+
tool: async (client, args51, ctx) => {
|
|
61360
|
+
const [result] = await subscriptionsCreateSubscription(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61208
61361
|
if (!result.ok) {
|
|
61209
61362
|
return {
|
|
61210
61363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61288,9 +61441,9 @@ var init_createsubscriptionlineitemop = __esm(() => {
|
|
|
61288
61441
|
|
|
61289
61442
|
// src/funcs/subscriptionsCreateSubscriptionLineItem.ts
|
|
61290
61443
|
function subscriptionsCreateSubscriptionLineItem(client$, request, options) {
|
|
61291
|
-
return new APIPromise($
|
|
61444
|
+
return new APIPromise($do52(client$, request, options));
|
|
61292
61445
|
}
|
|
61293
|
-
async function $
|
|
61446
|
+
async function $do52(client$, request, options) {
|
|
61294
61447
|
const parsed$ = safeParse4(request, (value$) => CreateSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61295
61448
|
if (!parsed$.ok) {
|
|
61296
61449
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61366,12 +61519,12 @@ var init_subscriptionsCreateSubscriptionLineItem = __esm(() => {
|
|
|
61366
61519
|
});
|
|
61367
61520
|
|
|
61368
61521
|
// src/mcp-server/tools/subscriptionsCreateSubscriptionLineItem.ts
|
|
61369
|
-
var
|
|
61522
|
+
var args51, tool$subscriptionsCreateSubscriptionLineItem;
|
|
61370
61523
|
var init_subscriptionsCreateSubscriptionLineItem2 = __esm(() => {
|
|
61371
61524
|
init_subscriptionsCreateSubscriptionLineItem();
|
|
61372
61525
|
init_createsubscriptionlineitemop();
|
|
61373
61526
|
init_tools();
|
|
61374
|
-
|
|
61527
|
+
args51 = {
|
|
61375
61528
|
request: CreateSubscriptionLineItemRequestRequest$zodSchema
|
|
61376
61529
|
};
|
|
61377
61530
|
tool$subscriptionsCreateSubscriptionLineItem = {
|
|
@@ -61387,9 +61540,9 @@ Use when adding a new charge or seat to a subscription (e.g. extra seat or one-t
|
|
|
61387
61540
|
openWorldHint: false,
|
|
61388
61541
|
readOnlyHint: false
|
|
61389
61542
|
},
|
|
61390
|
-
args:
|
|
61391
|
-
tool: async (client,
|
|
61392
|
-
const [result] = await subscriptionsCreateSubscriptionLineItem(client,
|
|
61543
|
+
args: args51,
|
|
61544
|
+
tool: async (client, args52, ctx) => {
|
|
61545
|
+
const [result] = await subscriptionsCreateSubscriptionLineItem(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61393
61546
|
if (!result.ok) {
|
|
61394
61547
|
return {
|
|
61395
61548
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61429,9 +61582,9 @@ var init_deletesubscriptionlineitemop = __esm(() => {
|
|
|
61429
61582
|
|
|
61430
61583
|
// src/funcs/subscriptionsDeleteSubscriptionLineItem.ts
|
|
61431
61584
|
function subscriptionsDeleteSubscriptionLineItem(client$, request, options) {
|
|
61432
|
-
return new APIPromise($
|
|
61585
|
+
return new APIPromise($do53(client$, request, options));
|
|
61433
61586
|
}
|
|
61434
|
-
async function $
|
|
61587
|
+
async function $do53(client$, request, options) {
|
|
61435
61588
|
const parsed$ = safeParse4(request, (value$) => DeleteSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61436
61589
|
if (!parsed$.ok) {
|
|
61437
61590
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61507,12 +61660,12 @@ var init_subscriptionsDeleteSubscriptionLineItem = __esm(() => {
|
|
|
61507
61660
|
});
|
|
61508
61661
|
|
|
61509
61662
|
// src/mcp-server/tools/subscriptionsDeleteSubscriptionLineItem.ts
|
|
61510
|
-
var
|
|
61663
|
+
var args52, tool$subscriptionsDeleteSubscriptionLineItem;
|
|
61511
61664
|
var init_subscriptionsDeleteSubscriptionLineItem2 = __esm(() => {
|
|
61512
61665
|
init_subscriptionsDeleteSubscriptionLineItem();
|
|
61513
61666
|
init_deletesubscriptionlineitemop();
|
|
61514
61667
|
init_tools();
|
|
61515
|
-
|
|
61668
|
+
args52 = {
|
|
61516
61669
|
request: DeleteSubscriptionLineItemRequestRequest$zodSchema
|
|
61517
61670
|
};
|
|
61518
61671
|
tool$subscriptionsDeleteSubscriptionLineItem = {
|
|
@@ -61528,9 +61681,9 @@ Use when removing a charge or seat from a subscription (e.g. downgrade). Line it
|
|
|
61528
61681
|
openWorldHint: false,
|
|
61529
61682
|
readOnlyHint: false
|
|
61530
61683
|
},
|
|
61531
|
-
args:
|
|
61532
|
-
tool: async (client,
|
|
61533
|
-
const [result] = await subscriptionsDeleteSubscriptionLineItem(client,
|
|
61684
|
+
args: args52,
|
|
61685
|
+
tool: async (client, args53, ctx) => {
|
|
61686
|
+
const [result] = await subscriptionsDeleteSubscriptionLineItem(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61534
61687
|
if (!result.ok) {
|
|
61535
61688
|
return {
|
|
61536
61689
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61663,9 +61816,9 @@ var init_executesubscriptionchangeop = __esm(() => {
|
|
|
61663
61816
|
|
|
61664
61817
|
// src/funcs/subscriptionsExecuteSubscriptionChange.ts
|
|
61665
61818
|
function subscriptionsExecuteSubscriptionChange(client$, request, options) {
|
|
61666
|
-
return new APIPromise($
|
|
61819
|
+
return new APIPromise($do54(client$, request, options));
|
|
61667
61820
|
}
|
|
61668
|
-
async function $
|
|
61821
|
+
async function $do54(client$, request, options) {
|
|
61669
61822
|
const parsed$ = safeParse4(request, (value$) => ExecuteSubscriptionChangeRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61670
61823
|
if (!parsed$.ok) {
|
|
61671
61824
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61741,12 +61894,12 @@ var init_subscriptionsExecuteSubscriptionChange = __esm(() => {
|
|
|
61741
61894
|
});
|
|
61742
61895
|
|
|
61743
61896
|
// src/mcp-server/tools/subscriptionsExecuteSubscriptionChange.ts
|
|
61744
|
-
var
|
|
61897
|
+
var args53, tool$subscriptionsExecuteSubscriptionChange;
|
|
61745
61898
|
var init_subscriptionsExecuteSubscriptionChange2 = __esm(() => {
|
|
61746
61899
|
init_subscriptionsExecuteSubscriptionChange();
|
|
61747
61900
|
init_executesubscriptionchangeop();
|
|
61748
61901
|
init_tools();
|
|
61749
|
-
|
|
61902
|
+
args53 = {
|
|
61750
61903
|
request: ExecuteSubscriptionChangeRequest$zodSchema
|
|
61751
61904
|
};
|
|
61752
61905
|
tool$subscriptionsExecuteSubscriptionChange = {
|
|
@@ -61762,9 +61915,9 @@ Use when applying a plan change (e.g. upgrade or downgrade). Executes proration
|
|
|
61762
61915
|
openWorldHint: false,
|
|
61763
61916
|
readOnlyHint: false
|
|
61764
61917
|
},
|
|
61765
|
-
args:
|
|
61766
|
-
tool: async (client,
|
|
61767
|
-
const [result] = await subscriptionsExecuteSubscriptionChange(client,
|
|
61918
|
+
args: args53,
|
|
61919
|
+
tool: async (client, args54, ctx) => {
|
|
61920
|
+
const [result] = await subscriptionsExecuteSubscriptionChange(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61768
61921
|
if (!result.ok) {
|
|
61769
61922
|
return {
|
|
61770
61923
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61776,38 +61929,147 @@ Use when applying a plan change (e.g. upgrade or downgrade). Executes proration
|
|
|
61776
61929
|
};
|
|
61777
61930
|
});
|
|
61778
61931
|
|
|
61779
|
-
// src/models/
|
|
61780
|
-
var
|
|
61781
|
-
var
|
|
61932
|
+
// src/models/submodifyinheritancerequest.ts
|
|
61933
|
+
var SubModifyInheritanceRequest$zodSchema;
|
|
61934
|
+
var init_submodifyinheritancerequest = __esm(() => {
|
|
61782
61935
|
init_zod();
|
|
61783
|
-
|
|
61936
|
+
SubModifyInheritanceRequest$zodSchema = object({
|
|
61784
61937
|
external_customer_ids_to_inherit_subscription: array(string2()).optional()
|
|
61785
61938
|
});
|
|
61786
61939
|
});
|
|
61787
61940
|
|
|
61941
|
+
// src/models/lineitemquantitychange.ts
|
|
61942
|
+
var LineItemQuantityChange$zodSchema;
|
|
61943
|
+
var init_lineitemquantitychange = __esm(() => {
|
|
61944
|
+
init_zod();
|
|
61945
|
+
LineItemQuantityChange$zodSchema = object({
|
|
61946
|
+
effective_date: exports_iso.datetime({ offset: true }).optional().describe(`EffectiveDate is when the quantity change takes effect.
|
|
61947
|
+
If omitted, the change is effective immediately (now).`),
|
|
61948
|
+
id: string2(),
|
|
61949
|
+
quantity: string2()
|
|
61950
|
+
});
|
|
61951
|
+
});
|
|
61952
|
+
|
|
61953
|
+
// src/models/submodifyquantitychangerequest.ts
|
|
61954
|
+
var SubModifyQuantityChangeRequest$zodSchema;
|
|
61955
|
+
var init_submodifyquantitychangerequest = __esm(() => {
|
|
61956
|
+
init_zod();
|
|
61957
|
+
init_lineitemquantitychange();
|
|
61958
|
+
SubModifyQuantityChangeRequest$zodSchema = object({
|
|
61959
|
+
line_items: array(LineItemQuantityChange$zodSchema)
|
|
61960
|
+
});
|
|
61961
|
+
});
|
|
61962
|
+
|
|
61963
|
+
// src/models/subscriptionmodifytype.ts
|
|
61964
|
+
var SubscriptionModifyType$zodSchema;
|
|
61965
|
+
var init_subscriptionmodifytype = __esm(() => {
|
|
61966
|
+
init_zod();
|
|
61967
|
+
SubscriptionModifyType$zodSchema = _enum([
|
|
61968
|
+
"inheritance",
|
|
61969
|
+
"quantity_change"
|
|
61970
|
+
]);
|
|
61971
|
+
});
|
|
61972
|
+
|
|
61973
|
+
// src/models/executesubscriptionmodifyrequest.ts
|
|
61974
|
+
var ExecuteSubscriptionModifyRequest$zodSchema;
|
|
61975
|
+
var init_executesubscriptionmodifyrequest = __esm(() => {
|
|
61976
|
+
init_zod();
|
|
61977
|
+
init_submodifyinheritancerequest();
|
|
61978
|
+
init_submodifyquantitychangerequest();
|
|
61979
|
+
init_subscriptionmodifytype();
|
|
61980
|
+
ExecuteSubscriptionModifyRequest$zodSchema = object({
|
|
61981
|
+
inheritance_params: SubModifyInheritanceRequest$zodSchema.optional(),
|
|
61982
|
+
quantity_change_params: SubModifyQuantityChangeRequest$zodSchema.optional(),
|
|
61983
|
+
type: SubscriptionModifyType$zodSchema
|
|
61984
|
+
});
|
|
61985
|
+
});
|
|
61986
|
+
|
|
61987
|
+
// src/models/changedinvoice.ts
|
|
61988
|
+
var ChangedInvoice$zodSchema;
|
|
61989
|
+
var init_changedinvoice = __esm(() => {
|
|
61990
|
+
init_zod();
|
|
61991
|
+
ChangedInvoice$zodSchema = object({
|
|
61992
|
+
action: string2().optional().describe('"created" | "wallet_credit"'),
|
|
61993
|
+
id: string2().optional(),
|
|
61994
|
+
status: string2().optional()
|
|
61995
|
+
});
|
|
61996
|
+
});
|
|
61997
|
+
|
|
61998
|
+
// src/models/changedlineitem.ts
|
|
61999
|
+
var ChangedLineItem$zodSchema;
|
|
62000
|
+
var init_changedlineitem = __esm(() => {
|
|
62001
|
+
init_zod();
|
|
62002
|
+
ChangedLineItem$zodSchema = object({
|
|
62003
|
+
change_action: string2().optional().describe('"created" | "updated" | "ended"'),
|
|
62004
|
+
end_date: exports_iso.datetime({ offset: true }).optional(),
|
|
62005
|
+
id: string2().optional(),
|
|
62006
|
+
price_id: string2().optional(),
|
|
62007
|
+
quantity: string2().optional(),
|
|
62008
|
+
start_date: exports_iso.datetime({ offset: true }).optional()
|
|
62009
|
+
});
|
|
62010
|
+
});
|
|
62011
|
+
|
|
62012
|
+
// src/models/changedsubscription.ts
|
|
62013
|
+
var ChangedSubscription$zodSchema;
|
|
62014
|
+
var init_changedsubscription = __esm(() => {
|
|
62015
|
+
init_zod();
|
|
62016
|
+
init_subscriptionstatus();
|
|
62017
|
+
ChangedSubscription$zodSchema = object({
|
|
62018
|
+
action: string2().optional().describe('"created" | "updated"'),
|
|
62019
|
+
id: string2().optional(),
|
|
62020
|
+
status: SubscriptionStatus$zodSchema.optional()
|
|
62021
|
+
});
|
|
62022
|
+
});
|
|
62023
|
+
|
|
62024
|
+
// src/models/changedresources.ts
|
|
62025
|
+
var ChangedResources$zodSchema;
|
|
62026
|
+
var init_changedresources = __esm(() => {
|
|
62027
|
+
init_zod();
|
|
62028
|
+
init_changedinvoice();
|
|
62029
|
+
init_changedlineitem();
|
|
62030
|
+
init_changedsubscription();
|
|
62031
|
+
ChangedResources$zodSchema = object({
|
|
62032
|
+
invoices: array(ChangedInvoice$zodSchema).optional(),
|
|
62033
|
+
line_items: array(ChangedLineItem$zodSchema).optional(),
|
|
62034
|
+
subscriptions: array(ChangedSubscription$zodSchema).optional()
|
|
62035
|
+
});
|
|
62036
|
+
});
|
|
62037
|
+
|
|
62038
|
+
// src/models/subscriptionmodifyresponse.ts
|
|
62039
|
+
var SubscriptionModifyResponse$zodSchema;
|
|
62040
|
+
var init_subscriptionmodifyresponse = __esm(() => {
|
|
62041
|
+
init_zod();
|
|
62042
|
+
init_changedresources();
|
|
62043
|
+
init_subscriptionresponse();
|
|
62044
|
+
SubscriptionModifyResponse$zodSchema = object({
|
|
62045
|
+
changed_resources: ChangedResources$zodSchema.optional(),
|
|
62046
|
+
subscription: SubscriptionResponse$zodSchema.optional()
|
|
62047
|
+
});
|
|
62048
|
+
});
|
|
62049
|
+
|
|
61788
62050
|
// src/models/executesubscriptionmodifyop.ts
|
|
61789
|
-
var
|
|
62051
|
+
var ExecuteSubscriptionModifyRequestRequest$zodSchema, ExecuteSubscriptionModifyResponse$zodSchema;
|
|
61790
62052
|
var init_executesubscriptionmodifyop = __esm(() => {
|
|
61791
62053
|
init_zod();
|
|
61792
62054
|
init_errorresponse();
|
|
61793
|
-
|
|
61794
|
-
|
|
61795
|
-
|
|
61796
|
-
body:
|
|
62055
|
+
init_executesubscriptionmodifyrequest();
|
|
62056
|
+
init_subscriptionmodifyresponse();
|
|
62057
|
+
ExecuteSubscriptionModifyRequestRequest$zodSchema = object({
|
|
62058
|
+
body: ExecuteSubscriptionModifyRequest$zodSchema.describe("Modification request"),
|
|
61797
62059
|
id: string2().describe("Subscription ID")
|
|
61798
62060
|
});
|
|
61799
62061
|
ExecuteSubscriptionModifyResponse$zodSchema = union([
|
|
61800
|
-
|
|
62062
|
+
SubscriptionModifyResponse$zodSchema,
|
|
61801
62063
|
ErrorResponse$zodSchema
|
|
61802
62064
|
]);
|
|
61803
62065
|
});
|
|
61804
62066
|
|
|
61805
62067
|
// src/funcs/subscriptionsExecuteSubscriptionModify.ts
|
|
61806
62068
|
function subscriptionsExecuteSubscriptionModify(client$, request, options) {
|
|
61807
|
-
return new APIPromise($
|
|
62069
|
+
return new APIPromise($do55(client$, request, options));
|
|
61808
62070
|
}
|
|
61809
|
-
async function $
|
|
61810
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
62071
|
+
async function $do55(client$, request, options) {
|
|
62072
|
+
const parsed$ = safeParse4(request, (value$) => ExecuteSubscriptionModifyRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61811
62073
|
if (!parsed$.ok) {
|
|
61812
62074
|
return [parsed$, { status: "invalid" }];
|
|
61813
62075
|
}
|
|
@@ -61882,19 +62144,19 @@ var init_subscriptionsExecuteSubscriptionModify = __esm(() => {
|
|
|
61882
62144
|
});
|
|
61883
62145
|
|
|
61884
62146
|
// src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts
|
|
61885
|
-
var
|
|
62147
|
+
var args54, tool$subscriptionsExecuteSubscriptionModify;
|
|
61886
62148
|
var init_subscriptionsExecuteSubscriptionModify2 = __esm(() => {
|
|
61887
62149
|
init_subscriptionsExecuteSubscriptionModify();
|
|
61888
62150
|
init_executesubscriptionmodifyop();
|
|
61889
62151
|
init_tools();
|
|
61890
|
-
|
|
61891
|
-
request:
|
|
62152
|
+
args54 = {
|
|
62153
|
+
request: ExecuteSubscriptionModifyRequestRequest$zodSchema
|
|
61892
62154
|
};
|
|
61893
62155
|
tool$subscriptionsExecuteSubscriptionModify = {
|
|
61894
62156
|
name: "execute-subscription-modify",
|
|
61895
|
-
description: `
|
|
62157
|
+
description: `Execute subscription modification
|
|
61896
62158
|
|
|
61897
|
-
|
|
62159
|
+
Execute a mid-cycle subscription modification (inheritance or quantity change).`,
|
|
61898
62160
|
scopes: ["write"],
|
|
61899
62161
|
annotations: {
|
|
61900
62162
|
title: "",
|
|
@@ -61903,9 +62165,9 @@ Attach additional child customers (by external ID) to an active standalone or pa
|
|
|
61903
62165
|
openWorldHint: false,
|
|
61904
62166
|
readOnlyHint: false
|
|
61905
62167
|
},
|
|
61906
|
-
args:
|
|
61907
|
-
tool: async (client,
|
|
61908
|
-
const [result] = await subscriptionsExecuteSubscriptionModify(client,
|
|
62168
|
+
args: args54,
|
|
62169
|
+
tool: async (client, args55, ctx) => {
|
|
62170
|
+
const [result] = await subscriptionsExecuteSubscriptionModify(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61909
62171
|
if (!result.ok) {
|
|
61910
62172
|
return {
|
|
61911
62173
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61934,9 +62196,9 @@ var init_getsubscriptionop = __esm(() => {
|
|
|
61934
62196
|
|
|
61935
62197
|
// src/funcs/subscriptionsGetSubscription.ts
|
|
61936
62198
|
function subscriptionsGetSubscription(client$, request, options) {
|
|
61937
|
-
return new APIPromise($
|
|
62199
|
+
return new APIPromise($do56(client$, request, options));
|
|
61938
62200
|
}
|
|
61939
|
-
async function $
|
|
62201
|
+
async function $do56(client$, request, options) {
|
|
61940
62202
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61941
62203
|
if (!parsed$.ok) {
|
|
61942
62204
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62011,12 +62273,12 @@ var init_subscriptionsGetSubscription = __esm(() => {
|
|
|
62011
62273
|
});
|
|
62012
62274
|
|
|
62013
62275
|
// src/mcp-server/tools/subscriptionsGetSubscription.ts
|
|
62014
|
-
var
|
|
62276
|
+
var args55, tool$subscriptionsGetSubscription;
|
|
62015
62277
|
var init_subscriptionsGetSubscription2 = __esm(() => {
|
|
62016
62278
|
init_subscriptionsGetSubscription();
|
|
62017
62279
|
init_getsubscriptionop();
|
|
62018
62280
|
init_tools();
|
|
62019
|
-
|
|
62281
|
+
args55 = {
|
|
62020
62282
|
request: GetSubscriptionRequest$zodSchema
|
|
62021
62283
|
};
|
|
62022
62284
|
tool$subscriptionsGetSubscription = {
|
|
@@ -62032,9 +62294,9 @@ Use when you need to load a single subscription (e.g. for a billing portal or to
|
|
|
62032
62294
|
openWorldHint: false,
|
|
62033
62295
|
readOnlyHint: true
|
|
62034
62296
|
},
|
|
62035
|
-
args:
|
|
62036
|
-
tool: async (client,
|
|
62037
|
-
const [result] = await subscriptionsGetSubscription(client,
|
|
62297
|
+
args: args55,
|
|
62298
|
+
tool: async (client, args56, ctx) => {
|
|
62299
|
+
const [result] = await subscriptionsGetSubscription(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62038
62300
|
if (!result.ok) {
|
|
62039
62301
|
return {
|
|
62040
62302
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62117,9 +62379,9 @@ var init_getsubscriptionaddonassociationsop = __esm(() => {
|
|
|
62117
62379
|
|
|
62118
62380
|
// src/funcs/subscriptionsGetSubscriptionAddonAssociations.ts
|
|
62119
62381
|
function subscriptionsGetSubscriptionAddonAssociations(client$, request, options) {
|
|
62120
|
-
return new APIPromise($
|
|
62382
|
+
return new APIPromise($do57(client$, request, options));
|
|
62121
62383
|
}
|
|
62122
|
-
async function $
|
|
62384
|
+
async function $do57(client$, request, options) {
|
|
62123
62385
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionAddonAssociationsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62124
62386
|
if (!parsed$.ok) {
|
|
62125
62387
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62194,12 +62456,12 @@ var init_subscriptionsGetSubscriptionAddonAssociations = __esm(() => {
|
|
|
62194
62456
|
});
|
|
62195
62457
|
|
|
62196
62458
|
// src/mcp-server/tools/subscriptionsGetSubscriptionAddonAssociations.ts
|
|
62197
|
-
var
|
|
62459
|
+
var args56, tool$subscriptionsGetSubscriptionAddonAssociations;
|
|
62198
62460
|
var init_subscriptionsGetSubscriptionAddonAssociations2 = __esm(() => {
|
|
62199
62461
|
init_subscriptionsGetSubscriptionAddonAssociations();
|
|
62200
62462
|
init_getsubscriptionaddonassociationsop();
|
|
62201
62463
|
init_tools();
|
|
62202
|
-
|
|
62464
|
+
args56 = {
|
|
62203
62465
|
request: GetSubscriptionAddonAssociationsRequest$zodSchema
|
|
62204
62466
|
};
|
|
62205
62467
|
tool$subscriptionsGetSubscriptionAddonAssociations = {
|
|
@@ -62215,9 +62477,9 @@ Use when listing which add-ons are currently attached to a subscription (e.g. fo
|
|
|
62215
62477
|
openWorldHint: false,
|
|
62216
62478
|
readOnlyHint: true
|
|
62217
62479
|
},
|
|
62218
|
-
args:
|
|
62219
|
-
tool: async (client,
|
|
62220
|
-
const [result] = await subscriptionsGetSubscriptionAddonAssociations(client,
|
|
62480
|
+
args: args56,
|
|
62481
|
+
tool: async (client, args57, ctx) => {
|
|
62482
|
+
const [result] = await subscriptionsGetSubscriptionAddonAssociations(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62221
62483
|
if (!result.ok) {
|
|
62222
62484
|
return {
|
|
62223
62485
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62259,9 +62521,9 @@ var init_getsubscriptionentitlementsop = __esm(() => {
|
|
|
62259
62521
|
|
|
62260
62522
|
// src/funcs/subscriptionsGetSubscriptionEntitlements.ts
|
|
62261
62523
|
function subscriptionsGetSubscriptionEntitlements(client$, request, options) {
|
|
62262
|
-
return new APIPromise($
|
|
62524
|
+
return new APIPromise($do58(client$, request, options));
|
|
62263
62525
|
}
|
|
62264
|
-
async function $
|
|
62526
|
+
async function $do58(client$, request, options) {
|
|
62265
62527
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionEntitlementsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62266
62528
|
if (!parsed$.ok) {
|
|
62267
62529
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62340,12 +62602,12 @@ var init_subscriptionsGetSubscriptionEntitlements = __esm(() => {
|
|
|
62340
62602
|
});
|
|
62341
62603
|
|
|
62342
62604
|
// src/mcp-server/tools/subscriptionsGetSubscriptionEntitlements.ts
|
|
62343
|
-
var
|
|
62605
|
+
var args57, tool$subscriptionsGetSubscriptionEntitlements;
|
|
62344
62606
|
var init_subscriptionsGetSubscriptionEntitlements2 = __esm(() => {
|
|
62345
62607
|
init_subscriptionsGetSubscriptionEntitlements();
|
|
62346
62608
|
init_getsubscriptionentitlementsop();
|
|
62347
62609
|
init_tools();
|
|
62348
|
-
|
|
62610
|
+
args57 = {
|
|
62349
62611
|
request: GetSubscriptionEntitlementsRequest$zodSchema
|
|
62350
62612
|
};
|
|
62351
62613
|
tool$subscriptionsGetSubscriptionEntitlements = {
|
|
@@ -62361,9 +62623,9 @@ Use when checking what features or limits a subscription has (e.g. entitlement c
|
|
|
62361
62623
|
openWorldHint: false,
|
|
62362
62624
|
readOnlyHint: true
|
|
62363
62625
|
},
|
|
62364
|
-
args:
|
|
62365
|
-
tool: async (client,
|
|
62366
|
-
const [result] = await subscriptionsGetSubscriptionEntitlements(client,
|
|
62626
|
+
args: args57,
|
|
62627
|
+
tool: async (client, args58, ctx) => {
|
|
62628
|
+
const [result] = await subscriptionsGetSubscriptionEntitlements(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62367
62629
|
if (!result.ok) {
|
|
62368
62630
|
return {
|
|
62369
62631
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62386,9 +62648,9 @@ var init_getsubscriptionscheduleop = __esm(() => {
|
|
|
62386
62648
|
|
|
62387
62649
|
// src/funcs/subscriptionsGetSubscriptionSchedule.ts
|
|
62388
62650
|
function subscriptionsGetSubscriptionSchedule(client$, request, options) {
|
|
62389
|
-
return new APIPromise($
|
|
62651
|
+
return new APIPromise($do59(client$, request, options));
|
|
62390
62652
|
}
|
|
62391
|
-
async function $
|
|
62653
|
+
async function $do59(client$, request, options) {
|
|
62392
62654
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionScheduleRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62393
62655
|
if (!parsed$.ok) {
|
|
62394
62656
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62463,12 +62725,12 @@ var init_subscriptionsGetSubscriptionSchedule = __esm(() => {
|
|
|
62463
62725
|
});
|
|
62464
62726
|
|
|
62465
62727
|
// src/mcp-server/tools/subscriptionsGetSubscriptionSchedule.ts
|
|
62466
|
-
var
|
|
62728
|
+
var args58, tool$subscriptionsGetSubscriptionSchedule;
|
|
62467
62729
|
var init_subscriptionsGetSubscriptionSchedule2 = __esm(() => {
|
|
62468
62730
|
init_subscriptionsGetSubscriptionSchedule();
|
|
62469
62731
|
init_getsubscriptionscheduleop();
|
|
62470
62732
|
init_tools();
|
|
62471
|
-
|
|
62733
|
+
args58 = {
|
|
62472
62734
|
request: GetSubscriptionScheduleRequest$zodSchema
|
|
62473
62735
|
};
|
|
62474
62736
|
tool$subscriptionsGetSubscriptionSchedule = {
|
|
@@ -62484,9 +62746,9 @@ Use when you need to load a single scheduled change (e.g. to show when a plan ch
|
|
|
62484
62746
|
openWorldHint: false,
|
|
62485
62747
|
readOnlyHint: true
|
|
62486
62748
|
},
|
|
62487
|
-
args:
|
|
62488
|
-
tool: async (client,
|
|
62489
|
-
const [result] = await subscriptionsGetSubscriptionSchedule(client,
|
|
62749
|
+
args: args58,
|
|
62750
|
+
tool: async (client, args59, ctx) => {
|
|
62751
|
+
const [result] = await subscriptionsGetSubscriptionSchedule(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62490
62752
|
if (!result.ok) {
|
|
62491
62753
|
return {
|
|
62492
62754
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62515,9 +62777,9 @@ var init_getsubscriptionupcominggrantsop = __esm(() => {
|
|
|
62515
62777
|
|
|
62516
62778
|
// src/funcs/subscriptionsGetSubscriptionUpcomingGrants.ts
|
|
62517
62779
|
function subscriptionsGetSubscriptionUpcomingGrants(client$, request, options) {
|
|
62518
|
-
return new APIPromise($
|
|
62780
|
+
return new APIPromise($do60(client$, request, options));
|
|
62519
62781
|
}
|
|
62520
|
-
async function $
|
|
62782
|
+
async function $do60(client$, request, options) {
|
|
62521
62783
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionUpcomingGrantsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62522
62784
|
if (!parsed$.ok) {
|
|
62523
62785
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62592,12 +62854,12 @@ var init_subscriptionsGetSubscriptionUpcomingGrants = __esm(() => {
|
|
|
62592
62854
|
});
|
|
62593
62855
|
|
|
62594
62856
|
// src/mcp-server/tools/subscriptionsGetSubscriptionUpcomingGrants.ts
|
|
62595
|
-
var
|
|
62857
|
+
var args59, tool$subscriptionsGetSubscriptionUpcomingGrants;
|
|
62596
62858
|
var init_subscriptionsGetSubscriptionUpcomingGrants2 = __esm(() => {
|
|
62597
62859
|
init_subscriptionsGetSubscriptionUpcomingGrants();
|
|
62598
62860
|
init_getsubscriptionupcominggrantsop();
|
|
62599
62861
|
init_tools();
|
|
62600
|
-
|
|
62862
|
+
args59 = {
|
|
62601
62863
|
request: GetSubscriptionUpcomingGrantsRequest$zodSchema
|
|
62602
62864
|
};
|
|
62603
62865
|
tool$subscriptionsGetSubscriptionUpcomingGrants = {
|
|
@@ -62613,9 +62875,9 @@ Use when showing upcoming or pending credits for a subscription (e.g. in a porta
|
|
|
62613
62875
|
openWorldHint: false,
|
|
62614
62876
|
readOnlyHint: true
|
|
62615
62877
|
},
|
|
62616
|
-
args:
|
|
62617
|
-
tool: async (client,
|
|
62618
|
-
const [result] = await subscriptionsGetSubscriptionUpcomingGrants(client,
|
|
62878
|
+
args: args59,
|
|
62879
|
+
tool: async (client, args60, ctx) => {
|
|
62880
|
+
const [result] = await subscriptionsGetSubscriptionUpcomingGrants(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62619
62881
|
if (!result.ok) {
|
|
62620
62882
|
return {
|
|
62621
62883
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62641,9 +62903,9 @@ var init_getusagebysubscriptionrequest = __esm(() => {
|
|
|
62641
62903
|
|
|
62642
62904
|
// src/funcs/subscriptionsGetSubscriptionUsage.ts
|
|
62643
62905
|
function subscriptionsGetSubscriptionUsage(client$, request, options) {
|
|
62644
|
-
return new APIPromise($
|
|
62906
|
+
return new APIPromise($do61(client$, request, options));
|
|
62645
62907
|
}
|
|
62646
|
-
async function $
|
|
62908
|
+
async function $do61(client$, request, options) {
|
|
62647
62909
|
const parsed$ = safeParse4(request, (value$) => GetUsageBySubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62648
62910
|
if (!parsed$.ok) {
|
|
62649
62911
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62713,12 +62975,12 @@ var init_subscriptionsGetSubscriptionUsage = __esm(() => {
|
|
|
62713
62975
|
});
|
|
62714
62976
|
|
|
62715
62977
|
// src/mcp-server/tools/subscriptionsGetSubscriptionUsage.ts
|
|
62716
|
-
var
|
|
62978
|
+
var args60, tool$subscriptionsGetSubscriptionUsage;
|
|
62717
62979
|
var init_subscriptionsGetSubscriptionUsage2 = __esm(() => {
|
|
62718
62980
|
init_subscriptionsGetSubscriptionUsage();
|
|
62719
62981
|
init_getusagebysubscriptionrequest();
|
|
62720
62982
|
init_tools();
|
|
62721
|
-
|
|
62983
|
+
args60 = {
|
|
62722
62984
|
request: GetUsageBySubscriptionRequest$zodSchema.describe(`Usage request`)
|
|
62723
62985
|
};
|
|
62724
62986
|
tool$subscriptionsGetSubscriptionUsage = {
|
|
@@ -62734,9 +62996,9 @@ Use when showing usage for a subscription (e.g. in a portal or for overage check
|
|
|
62734
62996
|
openWorldHint: false,
|
|
62735
62997
|
readOnlyHint: false
|
|
62736
62998
|
},
|
|
62737
|
-
args:
|
|
62738
|
-
tool: async (client,
|
|
62739
|
-
const [result] = await subscriptionsGetSubscriptionUsage(client,
|
|
62999
|
+
args: args60,
|
|
63000
|
+
tool: async (client, args61, ctx) => {
|
|
63001
|
+
const [result] = await subscriptionsGetSubscriptionUsage(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62740
63002
|
if (!result.ok) {
|
|
62741
63003
|
return {
|
|
62742
63004
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62848,9 +63110,9 @@ var init_getsubscriptionv2op = __esm(() => {
|
|
|
62848
63110
|
|
|
62849
63111
|
// src/funcs/subscriptionsGetSubscriptionV2.ts
|
|
62850
63112
|
function subscriptionsGetSubscriptionV2(client$, request, options) {
|
|
62851
|
-
return new APIPromise($
|
|
63113
|
+
return new APIPromise($do62(client$, request, options));
|
|
62852
63114
|
}
|
|
62853
|
-
async function $
|
|
63115
|
+
async function $do62(client$, request, options) {
|
|
62854
63116
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionV2Request$zodSchema.parse(value$), "Input validation failed");
|
|
62855
63117
|
if (!parsed$.ok) {
|
|
62856
63118
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62929,12 +63191,12 @@ var init_subscriptionsGetSubscriptionV2 = __esm(() => {
|
|
|
62929
63191
|
});
|
|
62930
63192
|
|
|
62931
63193
|
// src/mcp-server/tools/subscriptionsGetSubscriptionV2.ts
|
|
62932
|
-
var
|
|
63194
|
+
var args61, tool$subscriptionsGetSubscriptionV2;
|
|
62933
63195
|
var init_subscriptionsGetSubscriptionV22 = __esm(() => {
|
|
62934
63196
|
init_subscriptionsGetSubscriptionV2();
|
|
62935
63197
|
init_getsubscriptionv2op();
|
|
62936
63198
|
init_tools();
|
|
62937
|
-
|
|
63199
|
+
args61 = {
|
|
62938
63200
|
request: GetSubscriptionV2Request$zodSchema
|
|
62939
63201
|
};
|
|
62940
63202
|
tool$subscriptionsGetSubscriptionV2 = {
|
|
@@ -62950,9 +63212,9 @@ Use when you need a subscription with related data (line items, prices, plan). S
|
|
|
62950
63212
|
openWorldHint: false,
|
|
62951
63213
|
readOnlyHint: true
|
|
62952
63214
|
},
|
|
62953
|
-
args:
|
|
62954
|
-
tool: async (client,
|
|
62955
|
-
const [result] = await subscriptionsGetSubscriptionV2(client,
|
|
63215
|
+
args: args61,
|
|
63216
|
+
tool: async (client, args62, ctx) => {
|
|
63217
|
+
const [result] = await subscriptionsGetSubscriptionV2(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62956
63218
|
if (!result.ok) {
|
|
62957
63219
|
return {
|
|
62958
63220
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62978,9 +63240,9 @@ var init_listallsubscriptionschedulesop = __esm(() => {
|
|
|
62978
63240
|
|
|
62979
63241
|
// src/funcs/subscriptionsListAllSubscriptionSchedules.ts
|
|
62980
63242
|
function subscriptionsListAllSubscriptionSchedules(client$, request, options) {
|
|
62981
|
-
return new APIPromise($
|
|
63243
|
+
return new APIPromise($do63(client$, request, options));
|
|
62982
63244
|
}
|
|
62983
|
-
async function $
|
|
63245
|
+
async function $do63(client$, request, options) {
|
|
62984
63246
|
const parsed$ = safeParse4(request, (value$) => ListAllSubscriptionSchedulesRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62985
63247
|
if (!parsed$.ok) {
|
|
62986
63248
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63056,12 +63318,12 @@ var init_subscriptionsListAllSubscriptionSchedules = __esm(() => {
|
|
|
63056
63318
|
});
|
|
63057
63319
|
|
|
63058
63320
|
// src/mcp-server/tools/subscriptionsListAllSubscriptionSchedules.ts
|
|
63059
|
-
var
|
|
63321
|
+
var args62, tool$subscriptionsListAllSubscriptionSchedules;
|
|
63060
63322
|
var init_subscriptionsListAllSubscriptionSchedules2 = __esm(() => {
|
|
63061
63323
|
init_subscriptionsListAllSubscriptionSchedules();
|
|
63062
63324
|
init_listallsubscriptionschedulesop();
|
|
63063
63325
|
init_tools();
|
|
63064
|
-
|
|
63326
|
+
args62 = {
|
|
63065
63327
|
request: ListAllSubscriptionSchedulesRequest$zodSchema.optional()
|
|
63066
63328
|
};
|
|
63067
63329
|
tool$subscriptionsListAllSubscriptionSchedules = {
|
|
@@ -63077,9 +63339,9 @@ Use when listing or searching scheduled changes across subscriptions (e.g. admin
|
|
|
63077
63339
|
openWorldHint: false,
|
|
63078
63340
|
readOnlyHint: true
|
|
63079
63341
|
},
|
|
63080
|
-
args:
|
|
63081
|
-
tool: async (client,
|
|
63082
|
-
const [result] = await subscriptionsListAllSubscriptionSchedules(client,
|
|
63342
|
+
args: args62,
|
|
63343
|
+
tool: async (client, args63, ctx) => {
|
|
63344
|
+
const [result] = await subscriptionsListAllSubscriptionSchedules(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63083
63345
|
if (!result.ok) {
|
|
63084
63346
|
return {
|
|
63085
63347
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63152,9 +63414,9 @@ var init_listsubscriptionpausesop = __esm(() => {
|
|
|
63152
63414
|
|
|
63153
63415
|
// src/funcs/subscriptionsListSubscriptionPauses.ts
|
|
63154
63416
|
function subscriptionsListSubscriptionPauses(client$, request, options) {
|
|
63155
|
-
return new APIPromise($
|
|
63417
|
+
return new APIPromise($do64(client$, request, options));
|
|
63156
63418
|
}
|
|
63157
|
-
async function $
|
|
63419
|
+
async function $do64(client$, request, options) {
|
|
63158
63420
|
const parsed$ = safeParse4(request, (value$) => ListSubscriptionPausesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63159
63421
|
if (!parsed$.ok) {
|
|
63160
63422
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63229,12 +63491,12 @@ var init_subscriptionsListSubscriptionPauses = __esm(() => {
|
|
|
63229
63491
|
});
|
|
63230
63492
|
|
|
63231
63493
|
// src/mcp-server/tools/subscriptionsListSubscriptionPauses.ts
|
|
63232
|
-
var
|
|
63494
|
+
var args63, tool$subscriptionsListSubscriptionPauses;
|
|
63233
63495
|
var init_subscriptionsListSubscriptionPauses2 = __esm(() => {
|
|
63234
63496
|
init_subscriptionsListSubscriptionPauses();
|
|
63235
63497
|
init_listsubscriptionpausesop();
|
|
63236
63498
|
init_tools();
|
|
63237
|
-
|
|
63499
|
+
args63 = {
|
|
63238
63500
|
request: ListSubscriptionPausesRequest$zodSchema
|
|
63239
63501
|
};
|
|
63240
63502
|
tool$subscriptionsListSubscriptionPauses = {
|
|
@@ -63250,9 +63512,9 @@ Use when showing pause history for a subscription (e.g. support or audit). Retur
|
|
|
63250
63512
|
openWorldHint: false,
|
|
63251
63513
|
readOnlyHint: true
|
|
63252
63514
|
},
|
|
63253
|
-
args:
|
|
63254
|
-
tool: async (client,
|
|
63255
|
-
const [result] = await subscriptionsListSubscriptionPauses(client,
|
|
63515
|
+
args: args63,
|
|
63516
|
+
tool: async (client, args64, ctx) => {
|
|
63517
|
+
const [result] = await subscriptionsListSubscriptionPauses(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63256
63518
|
if (!result.ok) {
|
|
63257
63519
|
return {
|
|
63258
63520
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63275,9 +63537,9 @@ var init_listsubscriptionschedulesop = __esm(() => {
|
|
|
63275
63537
|
|
|
63276
63538
|
// src/funcs/subscriptionsListSubscriptionSchedules.ts
|
|
63277
63539
|
function subscriptionsListSubscriptionSchedules(client$, request, options) {
|
|
63278
|
-
return new APIPromise($
|
|
63540
|
+
return new APIPromise($do65(client$, request, options));
|
|
63279
63541
|
}
|
|
63280
|
-
async function $
|
|
63542
|
+
async function $do65(client$, request, options) {
|
|
63281
63543
|
const parsed$ = safeParse4(request, (value$) => ListSubscriptionSchedulesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63282
63544
|
if (!parsed$.ok) {
|
|
63283
63545
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63352,12 +63614,12 @@ var init_subscriptionsListSubscriptionSchedules = __esm(() => {
|
|
|
63352
63614
|
});
|
|
63353
63615
|
|
|
63354
63616
|
// src/mcp-server/tools/subscriptionsListSubscriptionSchedules.ts
|
|
63355
|
-
var
|
|
63617
|
+
var args64, tool$subscriptionsListSubscriptionSchedules;
|
|
63356
63618
|
var init_subscriptionsListSubscriptionSchedules2 = __esm(() => {
|
|
63357
63619
|
init_subscriptionsListSubscriptionSchedules();
|
|
63358
63620
|
init_listsubscriptionschedulesop();
|
|
63359
63621
|
init_tools();
|
|
63360
|
-
|
|
63622
|
+
args64 = {
|
|
63361
63623
|
request: ListSubscriptionSchedulesRequest$zodSchema
|
|
63362
63624
|
};
|
|
63363
63625
|
tool$subscriptionsListSubscriptionSchedules = {
|
|
@@ -63373,9 +63635,9 @@ Use when listing scheduled changes for a subscription (e.g. upcoming plan change
|
|
|
63373
63635
|
openWorldHint: false,
|
|
63374
63636
|
readOnlyHint: true
|
|
63375
63637
|
},
|
|
63376
|
-
args:
|
|
63377
|
-
tool: async (client,
|
|
63378
|
-
const [result] = await subscriptionsListSubscriptionSchedules(client,
|
|
63638
|
+
args: args64,
|
|
63639
|
+
tool: async (client, args65, ctx) => {
|
|
63640
|
+
const [result] = await subscriptionsListSubscriptionSchedules(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63379
63641
|
if (!result.ok) {
|
|
63380
63642
|
return {
|
|
63381
63643
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63434,9 +63696,9 @@ var init_pausesubscriptionop = __esm(() => {
|
|
|
63434
63696
|
|
|
63435
63697
|
// src/funcs/subscriptionsPauseSubscription.ts
|
|
63436
63698
|
function subscriptionsPauseSubscription(client$, request, options) {
|
|
63437
|
-
return new APIPromise($
|
|
63699
|
+
return new APIPromise($do66(client$, request, options));
|
|
63438
63700
|
}
|
|
63439
|
-
async function $
|
|
63701
|
+
async function $do66(client$, request, options) {
|
|
63440
63702
|
const parsed$ = safeParse4(request, (value$) => PauseSubscriptionRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63441
63703
|
if (!parsed$.ok) {
|
|
63442
63704
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63512,12 +63774,12 @@ var init_subscriptionsPauseSubscription = __esm(() => {
|
|
|
63512
63774
|
});
|
|
63513
63775
|
|
|
63514
63776
|
// src/mcp-server/tools/subscriptionsPauseSubscription.ts
|
|
63515
|
-
var
|
|
63777
|
+
var args65, tool$subscriptionsPauseSubscription;
|
|
63516
63778
|
var init_subscriptionsPauseSubscription2 = __esm(() => {
|
|
63517
63779
|
init_subscriptionsPauseSubscription();
|
|
63518
63780
|
init_pausesubscriptionop();
|
|
63519
63781
|
init_tools();
|
|
63520
|
-
|
|
63782
|
+
args65 = {
|
|
63521
63783
|
request: PauseSubscriptionRequestRequest$zodSchema
|
|
63522
63784
|
};
|
|
63523
63785
|
tool$subscriptionsPauseSubscription = {
|
|
@@ -63533,9 +63795,9 @@ Use when temporarily stopping a subscription (e.g. customer hold or seasonal pau
|
|
|
63533
63795
|
openWorldHint: false,
|
|
63534
63796
|
readOnlyHint: false
|
|
63535
63797
|
},
|
|
63536
|
-
args:
|
|
63537
|
-
tool: async (client,
|
|
63538
|
-
const [result] = await subscriptionsPauseSubscription(client,
|
|
63798
|
+
args: args65,
|
|
63799
|
+
tool: async (client, args66, ctx) => {
|
|
63800
|
+
const [result] = await subscriptionsPauseSubscription(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63539
63801
|
if (!result.ok) {
|
|
63540
63802
|
return {
|
|
63541
63803
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63647,9 +63909,9 @@ var init_previewsubscriptionchangeop = __esm(() => {
|
|
|
63647
63909
|
|
|
63648
63910
|
// src/funcs/subscriptionsPreviewSubscriptionChange.ts
|
|
63649
63911
|
function subscriptionsPreviewSubscriptionChange(client$, request, options) {
|
|
63650
|
-
return new APIPromise($
|
|
63912
|
+
return new APIPromise($do67(client$, request, options));
|
|
63651
63913
|
}
|
|
63652
|
-
async function $
|
|
63914
|
+
async function $do67(client$, request, options) {
|
|
63653
63915
|
const parsed$ = safeParse4(request, (value$) => PreviewSubscriptionChangeRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63654
63916
|
if (!parsed$.ok) {
|
|
63655
63917
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63725,12 +63987,12 @@ var init_subscriptionsPreviewSubscriptionChange = __esm(() => {
|
|
|
63725
63987
|
});
|
|
63726
63988
|
|
|
63727
63989
|
// src/mcp-server/tools/subscriptionsPreviewSubscriptionChange.ts
|
|
63728
|
-
var
|
|
63990
|
+
var args66, tool$subscriptionsPreviewSubscriptionChange;
|
|
63729
63991
|
var init_subscriptionsPreviewSubscriptionChange2 = __esm(() => {
|
|
63730
63992
|
init_subscriptionsPreviewSubscriptionChange();
|
|
63731
63993
|
init_previewsubscriptionchangeop();
|
|
63732
63994
|
init_tools();
|
|
63733
|
-
|
|
63995
|
+
args66 = {
|
|
63734
63996
|
request: PreviewSubscriptionChangeRequest$zodSchema
|
|
63735
63997
|
};
|
|
63736
63998
|
tool$subscriptionsPreviewSubscriptionChange = {
|
|
@@ -63746,9 +64008,141 @@ Use when showing a customer the cost of a plan change before they confirm (e.g.
|
|
|
63746
64008
|
openWorldHint: false,
|
|
63747
64009
|
readOnlyHint: false
|
|
63748
64010
|
},
|
|
63749
|
-
args:
|
|
63750
|
-
tool: async (client,
|
|
63751
|
-
const [result] = await subscriptionsPreviewSubscriptionChange(client,
|
|
64011
|
+
args: args66,
|
|
64012
|
+
tool: async (client, args67, ctx) => {
|
|
64013
|
+
const [result] = await subscriptionsPreviewSubscriptionChange(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64014
|
+
if (!result.ok) {
|
|
64015
|
+
return {
|
|
64016
|
+
content: [{ type: "text", text: result.error.message }],
|
|
64017
|
+
isError: true
|
|
64018
|
+
};
|
|
64019
|
+
}
|
|
64020
|
+
return formatResult(result.value);
|
|
64021
|
+
}
|
|
64022
|
+
};
|
|
64023
|
+
});
|
|
64024
|
+
|
|
64025
|
+
// src/models/previewsubscriptionmodifyop.ts
|
|
64026
|
+
var PreviewSubscriptionModifyRequest$zodSchema, PreviewSubscriptionModifyResponse$zodSchema;
|
|
64027
|
+
var init_previewsubscriptionmodifyop = __esm(() => {
|
|
64028
|
+
init_zod();
|
|
64029
|
+
init_errorresponse();
|
|
64030
|
+
init_executesubscriptionmodifyrequest();
|
|
64031
|
+
init_subscriptionmodifyresponse();
|
|
64032
|
+
PreviewSubscriptionModifyRequest$zodSchema = object({
|
|
64033
|
+
body: ExecuteSubscriptionModifyRequest$zodSchema.describe("Modification preview request"),
|
|
64034
|
+
id: string2().describe("Subscription ID")
|
|
64035
|
+
});
|
|
64036
|
+
PreviewSubscriptionModifyResponse$zodSchema = union([
|
|
64037
|
+
SubscriptionModifyResponse$zodSchema,
|
|
64038
|
+
ErrorResponse$zodSchema
|
|
64039
|
+
]);
|
|
64040
|
+
});
|
|
64041
|
+
|
|
64042
|
+
// src/funcs/subscriptionsPreviewSubscriptionModify.ts
|
|
64043
|
+
function subscriptionsPreviewSubscriptionModify(client$, request, options) {
|
|
64044
|
+
return new APIPromise($do68(client$, request, options));
|
|
64045
|
+
}
|
|
64046
|
+
async function $do68(client$, request, options) {
|
|
64047
|
+
const parsed$ = safeParse4(request, (value$) => PreviewSubscriptionModifyRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64048
|
+
if (!parsed$.ok) {
|
|
64049
|
+
return [parsed$, { status: "invalid" }];
|
|
64050
|
+
}
|
|
64051
|
+
const payload$ = parsed$.value;
|
|
64052
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
64053
|
+
const pathParams$ = {
|
|
64054
|
+
id: encodeSimple("id", payload$.id, {
|
|
64055
|
+
explode: false,
|
|
64056
|
+
charEncoding: "percent"
|
|
64057
|
+
})
|
|
64058
|
+
};
|
|
64059
|
+
const path$ = pathToFunc("/subscriptions/{id}/modify/preview")(pathParams$);
|
|
64060
|
+
const headers$ = new Headers(compactMap({
|
|
64061
|
+
"Content-Type": "application/json",
|
|
64062
|
+
Accept: "application/json"
|
|
64063
|
+
}));
|
|
64064
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
64065
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64066
|
+
const context = {
|
|
64067
|
+
options: client$._options,
|
|
64068
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
64069
|
+
operationID: "previewSubscriptionModify",
|
|
64070
|
+
oAuth2Scopes: null,
|
|
64071
|
+
resolvedSecurity: requestSecurity,
|
|
64072
|
+
securitySource: client$._options.security,
|
|
64073
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
64074
|
+
retryCodes: options?.retryCodes || [
|
|
64075
|
+
"429",
|
|
64076
|
+
"500",
|
|
64077
|
+
"502",
|
|
64078
|
+
"503",
|
|
64079
|
+
"504"
|
|
64080
|
+
]
|
|
64081
|
+
};
|
|
64082
|
+
const requestRes = client$._createRequest(context, {
|
|
64083
|
+
security: requestSecurity,
|
|
64084
|
+
method: "POST",
|
|
64085
|
+
baseURL: options?.serverURL,
|
|
64086
|
+
path: path$,
|
|
64087
|
+
headers: headers$,
|
|
64088
|
+
body: body$,
|
|
64089
|
+
userAgent: client$._options.userAgent,
|
|
64090
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
64091
|
+
}, options);
|
|
64092
|
+
if (!requestRes.ok) {
|
|
64093
|
+
return [requestRes, { status: "invalid" }];
|
|
64094
|
+
}
|
|
64095
|
+
const req$ = requestRes.value;
|
|
64096
|
+
const doResult = await client$._do(req$, {
|
|
64097
|
+
context,
|
|
64098
|
+
errorCodes: [],
|
|
64099
|
+
retryConfig: context.retryConfig,
|
|
64100
|
+
retryCodes: context.retryCodes
|
|
64101
|
+
});
|
|
64102
|
+
if (!doResult.ok) {
|
|
64103
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
64104
|
+
}
|
|
64105
|
+
return [doResult, {
|
|
64106
|
+
status: "complete",
|
|
64107
|
+
request: req$,
|
|
64108
|
+
response: doResult.value
|
|
64109
|
+
}];
|
|
64110
|
+
}
|
|
64111
|
+
var init_subscriptionsPreviewSubscriptionModify = __esm(() => {
|
|
64112
|
+
init_encodings();
|
|
64113
|
+
init_primitives();
|
|
64114
|
+
init_schemas4();
|
|
64115
|
+
init_security();
|
|
64116
|
+
init_url();
|
|
64117
|
+
init_previewsubscriptionmodifyop();
|
|
64118
|
+
init_async();
|
|
64119
|
+
});
|
|
64120
|
+
|
|
64121
|
+
// src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts
|
|
64122
|
+
var args67, tool$subscriptionsPreviewSubscriptionModify;
|
|
64123
|
+
var init_subscriptionsPreviewSubscriptionModify2 = __esm(() => {
|
|
64124
|
+
init_subscriptionsPreviewSubscriptionModify();
|
|
64125
|
+
init_previewsubscriptionmodifyop();
|
|
64126
|
+
init_tools();
|
|
64127
|
+
args67 = {
|
|
64128
|
+
request: PreviewSubscriptionModifyRequest$zodSchema
|
|
64129
|
+
};
|
|
64130
|
+
tool$subscriptionsPreviewSubscriptionModify = {
|
|
64131
|
+
name: "preview-subscription-modify",
|
|
64132
|
+
description: `Preview subscription modification
|
|
64133
|
+
|
|
64134
|
+
Preview the impact of a mid-cycle subscription modification without committing changes.`,
|
|
64135
|
+
scopes: ["read"],
|
|
64136
|
+
annotations: {
|
|
64137
|
+
title: "",
|
|
64138
|
+
destructiveHint: false,
|
|
64139
|
+
idempotentHint: false,
|
|
64140
|
+
openWorldHint: false,
|
|
64141
|
+
readOnlyHint: true
|
|
64142
|
+
},
|
|
64143
|
+
args: args67,
|
|
64144
|
+
tool: async (client, args68, ctx) => {
|
|
64145
|
+
const [result] = await subscriptionsPreviewSubscriptionModify(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63752
64146
|
if (!result.ok) {
|
|
63753
64147
|
return {
|
|
63754
64148
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63806,9 +64200,9 @@ When nil, period/cancel cutoff logic is not applied by this field (see TimeRange
|
|
|
63806
64200
|
|
|
63807
64201
|
// src/funcs/subscriptionsQuerySubscription.ts
|
|
63808
64202
|
function subscriptionsQuerySubscription(client$, request, options) {
|
|
63809
|
-
return new APIPromise($
|
|
64203
|
+
return new APIPromise($do69(client$, request, options));
|
|
63810
64204
|
}
|
|
63811
|
-
async function $
|
|
64205
|
+
async function $do69(client$, request, options) {
|
|
63812
64206
|
const parsed$ = safeParse4(request, (value$) => SubscriptionFilter$zodSchema.parse(value$), "Input validation failed");
|
|
63813
64207
|
if (!parsed$.ok) {
|
|
63814
64208
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63878,12 +64272,12 @@ var init_subscriptionsQuerySubscription = __esm(() => {
|
|
|
63878
64272
|
});
|
|
63879
64273
|
|
|
63880
64274
|
// src/mcp-server/tools/subscriptionsQuerySubscription.ts
|
|
63881
|
-
var
|
|
64275
|
+
var args68, tool$subscriptionsQuerySubscription;
|
|
63882
64276
|
var init_subscriptionsQuerySubscription2 = __esm(() => {
|
|
63883
64277
|
init_subscriptionsQuerySubscription();
|
|
63884
64278
|
init_subscriptionfilter();
|
|
63885
64279
|
init_tools();
|
|
63886
|
-
|
|
64280
|
+
args68 = {
|
|
63887
64281
|
request: SubscriptionFilter$zodSchema.describe(`Filter`)
|
|
63888
64282
|
};
|
|
63889
64283
|
tool$subscriptionsQuerySubscription = {
|
|
@@ -63899,9 +64293,9 @@ Use when listing or searching subscriptions (e.g. admin view or customer subscri
|
|
|
63899
64293
|
openWorldHint: false,
|
|
63900
64294
|
readOnlyHint: false
|
|
63901
64295
|
},
|
|
63902
|
-
args:
|
|
63903
|
-
tool: async (client,
|
|
63904
|
-
const [result] = await subscriptionsQuerySubscription(client,
|
|
64296
|
+
args: args68,
|
|
64297
|
+
tool: async (client, args69, ctx) => {
|
|
64298
|
+
const [result] = await subscriptionsQuerySubscription(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63905
64299
|
if (!result.ok) {
|
|
63906
64300
|
return {
|
|
63907
64301
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63925,9 +64319,9 @@ var init_removeaddonrequest = __esm(() => {
|
|
|
63925
64319
|
|
|
63926
64320
|
// src/funcs/subscriptionsRemoveSubscriptionAddon.ts
|
|
63927
64321
|
function subscriptionsRemoveSubscriptionAddon(client$, request, options) {
|
|
63928
|
-
return new APIPromise($
|
|
64322
|
+
return new APIPromise($do70(client$, request, options));
|
|
63929
64323
|
}
|
|
63930
|
-
async function $
|
|
64324
|
+
async function $do70(client$, request, options) {
|
|
63931
64325
|
const parsed$ = safeParse4(request, (value$) => RemoveAddonRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63932
64326
|
if (!parsed$.ok) {
|
|
63933
64327
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63997,12 +64391,12 @@ var init_subscriptionsRemoveSubscriptionAddon = __esm(() => {
|
|
|
63997
64391
|
});
|
|
63998
64392
|
|
|
63999
64393
|
// src/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.ts
|
|
64000
|
-
var
|
|
64394
|
+
var args69, tool$subscriptionsRemoveSubscriptionAddon;
|
|
64001
64395
|
var init_subscriptionsRemoveSubscriptionAddon2 = __esm(() => {
|
|
64002
64396
|
init_subscriptionsRemoveSubscriptionAddon();
|
|
64003
64397
|
init_removeaddonrequest();
|
|
64004
64398
|
init_tools();
|
|
64005
|
-
|
|
64399
|
+
args69 = {
|
|
64006
64400
|
request: RemoveAddonRequest$zodSchema.describe(`Remove Addon Request`)
|
|
64007
64401
|
};
|
|
64008
64402
|
tool$subscriptionsRemoveSubscriptionAddon = {
|
|
@@ -64018,9 +64412,9 @@ Use when removing an add-on from a subscription (e.g. downgrade or opt-out).`,
|
|
|
64018
64412
|
openWorldHint: false,
|
|
64019
64413
|
readOnlyHint: false
|
|
64020
64414
|
},
|
|
64021
|
-
args:
|
|
64022
|
-
tool: async (client,
|
|
64023
|
-
const [result] = await subscriptionsRemoveSubscriptionAddon(client,
|
|
64415
|
+
args: args69,
|
|
64416
|
+
tool: async (client, args70, ctx) => {
|
|
64417
|
+
const [result] = await subscriptionsRemoveSubscriptionAddon(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64024
64418
|
if (!result.ok) {
|
|
64025
64419
|
return {
|
|
64026
64420
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64067,9 +64461,9 @@ var init_resumesubscriptionop = __esm(() => {
|
|
|
64067
64461
|
|
|
64068
64462
|
// src/funcs/subscriptionsResumeSubscription.ts
|
|
64069
64463
|
function subscriptionsResumeSubscription(client$, request, options) {
|
|
64070
|
-
return new APIPromise($
|
|
64464
|
+
return new APIPromise($do71(client$, request, options));
|
|
64071
64465
|
}
|
|
64072
|
-
async function $
|
|
64466
|
+
async function $do71(client$, request, options) {
|
|
64073
64467
|
const parsed$ = safeParse4(request, (value$) => ResumeSubscriptionRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64074
64468
|
if (!parsed$.ok) {
|
|
64075
64469
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64145,12 +64539,12 @@ var init_subscriptionsResumeSubscription = __esm(() => {
|
|
|
64145
64539
|
});
|
|
64146
64540
|
|
|
64147
64541
|
// src/mcp-server/tools/subscriptionsResumeSubscription.ts
|
|
64148
|
-
var
|
|
64542
|
+
var args70, tool$subscriptionsResumeSubscription;
|
|
64149
64543
|
var init_subscriptionsResumeSubscription2 = __esm(() => {
|
|
64150
64544
|
init_subscriptionsResumeSubscription();
|
|
64151
64545
|
init_resumesubscriptionop();
|
|
64152
64546
|
init_tools();
|
|
64153
|
-
|
|
64547
|
+
args70 = {
|
|
64154
64548
|
request: ResumeSubscriptionRequestRequest$zodSchema
|
|
64155
64549
|
};
|
|
64156
64550
|
tool$subscriptionsResumeSubscription = {
|
|
@@ -64166,9 +64560,9 @@ Use when reactivating a paused subscription (e.g. end of hold). Billing and acce
|
|
|
64166
64560
|
openWorldHint: false,
|
|
64167
64561
|
readOnlyHint: false
|
|
64168
64562
|
},
|
|
64169
|
-
args:
|
|
64170
|
-
tool: async (client,
|
|
64171
|
-
const [result] = await subscriptionsResumeSubscription(client,
|
|
64563
|
+
args: args70,
|
|
64564
|
+
tool: async (client, args71, ctx) => {
|
|
64565
|
+
const [result] = await subscriptionsResumeSubscription(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64172
64566
|
if (!result.ok) {
|
|
64173
64567
|
return {
|
|
64174
64568
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64212,9 +64606,9 @@ var init_updatesubscriptionop = __esm(() => {
|
|
|
64212
64606
|
|
|
64213
64607
|
// src/funcs/subscriptionsUpdateSubscription.ts
|
|
64214
64608
|
function subscriptionsUpdateSubscription(client$, request, options) {
|
|
64215
|
-
return new APIPromise($
|
|
64609
|
+
return new APIPromise($do72(client$, request, options));
|
|
64216
64610
|
}
|
|
64217
|
-
async function $
|
|
64611
|
+
async function $do72(client$, request, options) {
|
|
64218
64612
|
const parsed$ = safeParse4(request, (value$) => UpdateSubscriptionRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64219
64613
|
if (!parsed$.ok) {
|
|
64220
64614
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64290,12 +64684,12 @@ var init_subscriptionsUpdateSubscription = __esm(() => {
|
|
|
64290
64684
|
});
|
|
64291
64685
|
|
|
64292
64686
|
// src/mcp-server/tools/subscriptionsUpdateSubscription.ts
|
|
64293
|
-
var
|
|
64687
|
+
var args71, tool$subscriptionsUpdateSubscription;
|
|
64294
64688
|
var init_subscriptionsUpdateSubscription2 = __esm(() => {
|
|
64295
64689
|
init_subscriptionsUpdateSubscription();
|
|
64296
64690
|
init_updatesubscriptionop();
|
|
64297
64691
|
init_tools();
|
|
64298
|
-
|
|
64692
|
+
args71 = {
|
|
64299
64693
|
request: UpdateSubscriptionRequestRequest$zodSchema
|
|
64300
64694
|
};
|
|
64301
64695
|
tool$subscriptionsUpdateSubscription = {
|
|
@@ -64311,9 +64705,9 @@ Use when changing subscription details (e.g. quantity, billing anchor, or parent
|
|
|
64311
64705
|
openWorldHint: false,
|
|
64312
64706
|
readOnlyHint: false
|
|
64313
64707
|
},
|
|
64314
|
-
args:
|
|
64315
|
-
tool: async (client,
|
|
64316
|
-
const [result] = await subscriptionsUpdateSubscription(client,
|
|
64708
|
+
args: args71,
|
|
64709
|
+
tool: async (client, args72, ctx) => {
|
|
64710
|
+
const [result] = await subscriptionsUpdateSubscription(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64317
64711
|
if (!result.ok) {
|
|
64318
64712
|
return {
|
|
64319
64713
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64372,9 +64766,9 @@ var init_updatesubscriptionlineitemop = __esm(() => {
|
|
|
64372
64766
|
|
|
64373
64767
|
// src/funcs/subscriptionsUpdateSubscriptionLineItem.ts
|
|
64374
64768
|
function subscriptionsUpdateSubscriptionLineItem(client$, request, options) {
|
|
64375
|
-
return new APIPromise($
|
|
64769
|
+
return new APIPromise($do73(client$, request, options));
|
|
64376
64770
|
}
|
|
64377
|
-
async function $
|
|
64771
|
+
async function $do73(client$, request, options) {
|
|
64378
64772
|
const parsed$ = safeParse4(request, (value$) => UpdateSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64379
64773
|
if (!parsed$.ok) {
|
|
64380
64774
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64450,12 +64844,12 @@ var init_subscriptionsUpdateSubscriptionLineItem = __esm(() => {
|
|
|
64450
64844
|
});
|
|
64451
64845
|
|
|
64452
64846
|
// src/mcp-server/tools/subscriptionsUpdateSubscriptionLineItem.ts
|
|
64453
|
-
var
|
|
64847
|
+
var args72, tool$subscriptionsUpdateSubscriptionLineItem;
|
|
64454
64848
|
var init_subscriptionsUpdateSubscriptionLineItem2 = __esm(() => {
|
|
64455
64849
|
init_subscriptionsUpdateSubscriptionLineItem();
|
|
64456
64850
|
init_updatesubscriptionlineitemop();
|
|
64457
64851
|
init_tools();
|
|
64458
|
-
|
|
64852
|
+
args72 = {
|
|
64459
64853
|
request: UpdateSubscriptionLineItemRequestRequest$zodSchema
|
|
64460
64854
|
};
|
|
64461
64855
|
tool$subscriptionsUpdateSubscriptionLineItem = {
|
|
@@ -64471,9 +64865,9 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
64471
64865
|
openWorldHint: false,
|
|
64472
64866
|
readOnlyHint: false
|
|
64473
64867
|
},
|
|
64474
|
-
args:
|
|
64475
|
-
tool: async (client,
|
|
64476
|
-
const [result] = await subscriptionsUpdateSubscriptionLineItem(client,
|
|
64868
|
+
args: args72,
|
|
64869
|
+
tool: async (client, args73, ctx) => {
|
|
64870
|
+
const [result] = await subscriptionsUpdateSubscriptionLineItem(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64477
64871
|
if (!result.ok) {
|
|
64478
64872
|
return {
|
|
64479
64873
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64489,16 +64883,16 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
64489
64883
|
function createMCPServer(deps) {
|
|
64490
64884
|
const server = new McpServer({
|
|
64491
64885
|
name: "Flexprice",
|
|
64492
|
-
version: "2.1.
|
|
64886
|
+
version: "2.1.2"
|
|
64493
64887
|
});
|
|
64494
64888
|
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
64495
64889
|
security: deps.security,
|
|
64496
64890
|
serverURL: deps.serverURL,
|
|
64497
64891
|
serverIdx: deps.serverIdx,
|
|
64498
64892
|
debugLogger: deps.logger.level === "debug" ? {
|
|
64499
|
-
log: (...
|
|
64500
|
-
group: (...
|
|
64501
|
-
groupEnd: (...
|
|
64893
|
+
log: (...args73) => console.log(...args73),
|
|
64894
|
+
group: (...args73) => console.group(...args73),
|
|
64895
|
+
groupEnd: (...args73) => console.groupEnd(...args73)
|
|
64502
64896
|
} : undefined
|
|
64503
64897
|
}));
|
|
64504
64898
|
const scopes = new Set(deps.scopes);
|
|
@@ -64519,6 +64913,7 @@ function createMCPServer(deps) {
|
|
|
64519
64913
|
tool(tool$customersGetCustomerUpcomingGrants);
|
|
64520
64914
|
tool(tool$invoicesGetCustomerInvoiceSummary);
|
|
64521
64915
|
tool(tool$invoicesCreateInvoice);
|
|
64916
|
+
tool(tool$invoicesGetMeterUsagePreviewInvoice);
|
|
64522
64917
|
tool(tool$invoicesGetInvoicePreview);
|
|
64523
64918
|
tool(tool$invoicesQueryInvoice);
|
|
64524
64919
|
tool(tool$invoicesGetInvoice);
|
|
@@ -64571,6 +64966,7 @@ function createMCPServer(deps) {
|
|
|
64571
64966
|
tool(tool$subscriptionsGetSubscriptionUpcomingGrants);
|
|
64572
64967
|
tool(tool$subscriptionsCreateSubscriptionLineItem);
|
|
64573
64968
|
tool(tool$subscriptionsExecuteSubscriptionModify);
|
|
64969
|
+
tool(tool$subscriptionsPreviewSubscriptionModify);
|
|
64574
64970
|
tool(tool$subscriptionsPauseSubscription);
|
|
64575
64971
|
tool(tool$subscriptionsListSubscriptionPauses);
|
|
64576
64972
|
tool(tool$subscriptionsResumeSubscription);
|
|
@@ -64613,6 +65009,7 @@ var init_server2 = __esm(() => {
|
|
|
64613
65009
|
init_invoicesGetInvoice2();
|
|
64614
65010
|
init_invoicesGetInvoicePdf2();
|
|
64615
65011
|
init_invoicesGetInvoicePreview2();
|
|
65012
|
+
init_invoicesGetMeterUsagePreviewInvoice2();
|
|
64616
65013
|
init_invoicesQueryInvoice2();
|
|
64617
65014
|
init_invoicesRecalculateInvoice2();
|
|
64618
65015
|
init_invoicesRecalculateInvoiceV22();
|
|
@@ -64655,6 +65052,7 @@ var init_server2 = __esm(() => {
|
|
|
64655
65052
|
init_subscriptionsListSubscriptionSchedules2();
|
|
64656
65053
|
init_subscriptionsPauseSubscription2();
|
|
64657
65054
|
init_subscriptionsPreviewSubscriptionChange2();
|
|
65055
|
+
init_subscriptionsPreviewSubscriptionModify2();
|
|
64658
65056
|
init_subscriptionsQuerySubscription2();
|
|
64659
65057
|
init_subscriptionsRemoveSubscriptionAddon2();
|
|
64660
65058
|
init_subscriptionsResumeSubscription2();
|
|
@@ -64731,6 +65129,12 @@ Use when showing a customer's invoice overview (e.g. billing portal or balance s
|
|
|
64731
65129
|
description: `Create one-off invoice
|
|
64732
65130
|
|
|
64733
65131
|
Use when creating a manual or one-off invoice (e.g. custom charge or non-recurring billing). Invoice is created in draft; finalize when ready.`
|
|
65132
|
+
},
|
|
65133
|
+
{
|
|
65134
|
+
name: "get-meter-usage-preview-invoice",
|
|
65135
|
+
description: `Get invoice preview using meter_usage data
|
|
65136
|
+
|
|
65137
|
+
Preview invoice using the meter_usage table for usage data instead of feature_usage.`
|
|
64734
65138
|
},
|
|
64735
65139
|
{
|
|
64736
65140
|
name: "get-invoice-preview",
|
|
@@ -65040,9 +65444,15 @@ Use when adding a new charge or seat to a subscription (e.g. extra seat or one-t
|
|
|
65040
65444
|
},
|
|
65041
65445
|
{
|
|
65042
65446
|
name: "execute-subscription-modify",
|
|
65043
|
-
description: `
|
|
65447
|
+
description: `Execute subscription modification
|
|
65448
|
+
|
|
65449
|
+
Execute a mid-cycle subscription modification (inheritance or quantity change).`
|
|
65450
|
+
},
|
|
65451
|
+
{
|
|
65452
|
+
name: "preview-subscription-modify",
|
|
65453
|
+
description: `Preview subscription modification
|
|
65044
65454
|
|
|
65045
|
-
|
|
65455
|
+
Preview the impact of a mid-cycle subscription modification without committing changes.`
|
|
65046
65456
|
},
|
|
65047
65457
|
{
|
|
65048
65458
|
name: "pause-subscription",
|
|
@@ -68636,7 +69046,7 @@ var routes = buildRouteMap({
|
|
|
68636
69046
|
var app = buildApplication(routes, {
|
|
68637
69047
|
name: "mcp",
|
|
68638
69048
|
versionInfo: {
|
|
68639
|
-
currentVersion: "2.1.
|
|
69049
|
+
currentVersion: "2.1.2"
|
|
68640
69050
|
}
|
|
68641
69051
|
});
|
|
68642
69052
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -68644,5 +69054,5 @@ export {
|
|
|
68644
69054
|
app
|
|
68645
69055
|
};
|
|
68646
69056
|
|
|
68647
|
-
//# debugId=
|
|
69057
|
+
//# debugId=A570B468EBF80BAA64756E2164756E21
|
|
68648
69058
|
//# sourceMappingURL=mcp-server.js.map
|