@flexprice/mcp-server 2.1.10 → 2.1.11
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 +659 -606
- package/bin/mcp-server.js.map +18 -18
- package/bun.lock +8 -6
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +1 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/createinvoicerequest.d.ts +1 -0
- package/esm/models/createinvoicerequest.d.ts.map +1 -1
- package/esm/models/createinvoicerequest.js +1 -0
- package/esm/models/createinvoicerequest.js.map +1 -1
- package/esm/models/creditgrantexpirydurationunit.d.ts +1 -1
- package/esm/models/errorcode.d.ts +32 -0
- package/esm/models/errorcode.d.ts.map +1 -0
- package/esm/models/errorcode.js +33 -0
- package/esm/models/errorcode.js.map +1 -0
- package/esm/models/errorresponse.d.ts +2 -34
- package/esm/models/errorresponse.d.ts.map +1 -1
- package/esm/models/errorresponse.js +2 -29
- package/esm/models/errorresponse.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/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 +0 -4
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +1 -5
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -3
- package/src/models/createinvoicerequest.ts +4 -0
- package/src/models/errorcode.ts +37 -0
- package/src/models/errorresponse.ts +3 -38
- package/src/models/invoiceresponse.ts +4 -0
- package/src/models/windowsize.ts +2 -2
- package/src/tool-names.ts +0 -4
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.d.ts +0 -16
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.d.ts.map +0 -1
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.js +0 -82
- package/esm/funcs/invoicesGetMeterUsagePreviewInvoice.js.map +0 -1
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.d.ts +0 -7
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.d.ts.map +0 -1
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.js +0 -35
- package/esm/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.js.map +0 -1
- package/esm/models/getmeterusagepreviewinvoiceop.d.ts +0 -6
- package/esm/models/getmeterusagepreviewinvoiceop.d.ts.map +0 -1
- package/esm/models/getmeterusagepreviewinvoiceop.js +0 -11
- package/esm/models/getmeterusagepreviewinvoiceop.js.map +0 -1
- package/src/funcs/invoicesGetMeterUsagePreviewInvoice.ts +0 -144
- package/src/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.ts +0 -47
- package/src/models/getmeterusagepreviewinvoiceop.ts +0 -21
package/bin/mcp-server.js
CHANGED
|
@@ -13338,109 +13338,136 @@ var require_on_finished = __commonJS((exports, module) => {
|
|
|
13338
13338
|
}
|
|
13339
13339
|
});
|
|
13340
13340
|
|
|
13341
|
-
// node_modules/content-type/index.js
|
|
13342
|
-
var
|
|
13341
|
+
// node_modules/type-is/node_modules/content-type/dist/index.js
|
|
13342
|
+
var require_dist = __commonJS((exports) => {
|
|
13343
13343
|
/*!
|
|
13344
13344
|
* content-type
|
|
13345
13345
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
13346
13346
|
* MIT Licensed
|
|
13347
13347
|
*/
|
|
13348
|
-
|
|
13349
|
-
var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
|
|
13350
|
-
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
13351
|
-
var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
|
|
13352
|
-
var QUOTE_REGEXP = /([\\"])/g;
|
|
13353
|
-
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
13348
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13354
13349
|
exports.format = format;
|
|
13355
13350
|
exports.parse = parse5;
|
|
13351
|
+
var TEXT_REGEXP = /^[\u0009\u0020-\u007e\u0080-\u00ff]*$/;
|
|
13352
|
+
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
13353
|
+
var QUOTE_REGEXP = /[\\"]/g;
|
|
13354
|
+
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
13355
|
+
var NullObject = /* @__PURE__ */ (() => {
|
|
13356
|
+
const C = function() {};
|
|
13357
|
+
C.prototype = Object.create(null);
|
|
13358
|
+
return C;
|
|
13359
|
+
})();
|
|
13356
13360
|
function format(obj) {
|
|
13357
|
-
|
|
13358
|
-
throw new TypeError("argument obj is required");
|
|
13359
|
-
}
|
|
13360
|
-
var parameters = obj.parameters;
|
|
13361
|
-
var type = obj.type;
|
|
13361
|
+
const { type, parameters } = obj;
|
|
13362
13362
|
if (!type || !TYPE_REGEXP.test(type)) {
|
|
13363
|
-
throw new TypeError(
|
|
13363
|
+
throw new TypeError(`Invalid type: ${type}`);
|
|
13364
13364
|
}
|
|
13365
|
-
|
|
13366
|
-
if (parameters
|
|
13367
|
-
|
|
13368
|
-
var params = Object.keys(parameters).sort();
|
|
13369
|
-
for (var i = 0;i < params.length; i++) {
|
|
13370
|
-
param = params[i];
|
|
13365
|
+
let result = type;
|
|
13366
|
+
if (parameters) {
|
|
13367
|
+
for (const param of Object.keys(parameters)) {
|
|
13371
13368
|
if (!TOKEN_REGEXP.test(param)) {
|
|
13372
|
-
throw new TypeError(
|
|
13369
|
+
throw new TypeError(`Invalid parameter name: ${param}`);
|
|
13373
13370
|
}
|
|
13374
|
-
|
|
13371
|
+
result += `; ${param}=${qstring(parameters[param])}`;
|
|
13375
13372
|
}
|
|
13376
13373
|
}
|
|
13377
|
-
return
|
|
13374
|
+
return result;
|
|
13378
13375
|
}
|
|
13379
|
-
function parse5(
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13395
|
-
|
|
13396
|
-
|
|
13397
|
-
|
|
13398
|
-
while (
|
|
13399
|
-
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13376
|
+
function parse5(header, options) {
|
|
13377
|
+
const len = header.length;
|
|
13378
|
+
let index = skipOWS(header, 0, len);
|
|
13379
|
+
const valueStart = index;
|
|
13380
|
+
index = skipValue(header, index, len);
|
|
13381
|
+
const valueEnd = trailingOWS(header, valueStart, index);
|
|
13382
|
+
const type = header.slice(valueStart, valueEnd).toLowerCase();
|
|
13383
|
+
const parameters = options?.parameters === false ? new NullObject : parseParameters(header, index, len);
|
|
13384
|
+
return { type, parameters };
|
|
13385
|
+
}
|
|
13386
|
+
var SP = 32;
|
|
13387
|
+
var HTAB = 9;
|
|
13388
|
+
var SEMI = 59;
|
|
13389
|
+
var EQ = 61;
|
|
13390
|
+
var DQUOTE = 34;
|
|
13391
|
+
var BSLASH = 92;
|
|
13392
|
+
function parseParameters(header, index, len) {
|
|
13393
|
+
const parameters = new NullObject;
|
|
13394
|
+
parameter:
|
|
13395
|
+
while (index < len) {
|
|
13396
|
+
index = skipOWS(header, index + 1, len);
|
|
13397
|
+
const keyStart = index;
|
|
13398
|
+
while (index < len) {
|
|
13399
|
+
const code = header.charCodeAt(index);
|
|
13400
|
+
if (code === SEMI)
|
|
13401
|
+
continue parameter;
|
|
13402
|
+
if (code === EQ) {
|
|
13403
|
+
const keyEnd = trailingOWS(header, keyStart, index);
|
|
13404
|
+
const key = header.slice(keyStart, keyEnd).toLowerCase();
|
|
13405
|
+
index = skipOWS(header, index + 1, len);
|
|
13406
|
+
if (index < len && header.charCodeAt(index) === DQUOTE) {
|
|
13407
|
+
index++;
|
|
13408
|
+
let value = "";
|
|
13409
|
+
while (index < len) {
|
|
13410
|
+
const code2 = header.charCodeAt(index++);
|
|
13411
|
+
if (code2 === DQUOTE) {
|
|
13412
|
+
index = skipValue(header, index, len);
|
|
13413
|
+
if (parameters[key] === undefined)
|
|
13414
|
+
parameters[key] = value;
|
|
13415
|
+
break;
|
|
13416
|
+
}
|
|
13417
|
+
if (code2 === BSLASH && index < len) {
|
|
13418
|
+
value += header[index++];
|
|
13419
|
+
continue;
|
|
13420
|
+
}
|
|
13421
|
+
value += String.fromCharCode(code2);
|
|
13422
|
+
}
|
|
13423
|
+
continue parameter;
|
|
13424
|
+
}
|
|
13425
|
+
const valueStart = index;
|
|
13426
|
+
index = skipValue(header, index, len);
|
|
13427
|
+
if (parameters[key] === undefined) {
|
|
13428
|
+
const valueEnd = trailingOWS(header, valueStart, index);
|
|
13429
|
+
parameters[key] = header.slice(valueStart, valueEnd);
|
|
13430
|
+
}
|
|
13431
|
+
continue parameter;
|
|
13409
13432
|
}
|
|
13433
|
+
index++;
|
|
13410
13434
|
}
|
|
13411
|
-
obj.parameters[key] = value;
|
|
13412
13435
|
}
|
|
13413
|
-
|
|
13414
|
-
throw new TypeError("invalid parameter format");
|
|
13415
|
-
}
|
|
13416
|
-
}
|
|
13417
|
-
return obj;
|
|
13436
|
+
return parameters;
|
|
13418
13437
|
}
|
|
13419
|
-
function
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
}
|
|
13426
|
-
if (typeof header !== "string") {
|
|
13427
|
-
throw new TypeError("content-type header is missing from object");
|
|
13438
|
+
function skipValue(str, index, len) {
|
|
13439
|
+
while (index < len) {
|
|
13440
|
+
const char = str.charCodeAt(index);
|
|
13441
|
+
if (char === SEMI)
|
|
13442
|
+
break;
|
|
13443
|
+
index++;
|
|
13428
13444
|
}
|
|
13429
|
-
return
|
|
13445
|
+
return index;
|
|
13430
13446
|
}
|
|
13431
|
-
function
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
|
|
13447
|
+
function skipOWS(header, index, len) {
|
|
13448
|
+
while (index < len) {
|
|
13449
|
+
const char = header.charCodeAt(index);
|
|
13450
|
+
if (char !== SP && char !== HTAB)
|
|
13451
|
+
break;
|
|
13452
|
+
index++;
|
|
13435
13453
|
}
|
|
13436
|
-
|
|
13437
|
-
|
|
13454
|
+
return index;
|
|
13455
|
+
}
|
|
13456
|
+
function trailingOWS(header, start, end) {
|
|
13457
|
+
while (end > start) {
|
|
13458
|
+
const char = header.charCodeAt(end - 1);
|
|
13459
|
+
if (char !== SP && char !== HTAB)
|
|
13460
|
+
break;
|
|
13461
|
+
end--;
|
|
13438
13462
|
}
|
|
13439
|
-
return
|
|
13463
|
+
return end;
|
|
13440
13464
|
}
|
|
13441
|
-
function
|
|
13442
|
-
|
|
13443
|
-
|
|
13465
|
+
function qstring(str) {
|
|
13466
|
+
if (TOKEN_REGEXP.test(str))
|
|
13467
|
+
return str;
|
|
13468
|
+
if (TEXT_REGEXP.test(str))
|
|
13469
|
+
return `"${str.replace(QUOTE_REGEXP, "\\$&")}"`;
|
|
13470
|
+
throw new TypeError(`Invalid parameter value: ${str}`);
|
|
13444
13471
|
}
|
|
13445
13472
|
});
|
|
13446
13473
|
|
|
@@ -23012,7 +23039,7 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
23012
23039
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
23013
23040
|
* MIT Licensed
|
|
23014
23041
|
*/
|
|
23015
|
-
var contentType =
|
|
23042
|
+
var contentType = require_dist();
|
|
23016
23043
|
var mime = require_mime_types();
|
|
23017
23044
|
var typer = require_media_typer();
|
|
23018
23045
|
module.exports = typeofrequest;
|
|
@@ -23021,9 +23048,12 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
23021
23048
|
module.exports.normalize = normalize;
|
|
23022
23049
|
module.exports.match = mimeMatch;
|
|
23023
23050
|
function typeis(value, types_) {
|
|
23051
|
+
if (value && typeof value === "object") {
|
|
23052
|
+
value = value.headers["content-type"];
|
|
23053
|
+
}
|
|
23024
23054
|
var i;
|
|
23025
23055
|
var types = types_;
|
|
23026
|
-
var val =
|
|
23056
|
+
var val = normalizeType(value);
|
|
23027
23057
|
if (!val) {
|
|
23028
23058
|
return false;
|
|
23029
23059
|
}
|
|
@@ -23090,15 +23120,116 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
23090
23120
|
return true;
|
|
23091
23121
|
}
|
|
23092
23122
|
function normalizeType(value) {
|
|
23093
|
-
|
|
23123
|
+
if (!value)
|
|
23124
|
+
return null;
|
|
23125
|
+
var type = contentType.parse(value, { parameters: false }).type;
|
|
23094
23126
|
return typer.test(type) ? type : null;
|
|
23095
23127
|
}
|
|
23096
|
-
|
|
23097
|
-
|
|
23098
|
-
|
|
23099
|
-
|
|
23100
|
-
|
|
23128
|
+
});
|
|
23129
|
+
|
|
23130
|
+
// node_modules/content-type/index.js
|
|
23131
|
+
var require_content_type = __commonJS((exports) => {
|
|
23132
|
+
/*!
|
|
23133
|
+
* content-type
|
|
23134
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
23135
|
+
* MIT Licensed
|
|
23136
|
+
*/
|
|
23137
|
+
var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
|
|
23138
|
+
var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
|
|
23139
|
+
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
23140
|
+
var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
|
|
23141
|
+
var QUOTE_REGEXP = /([\\"])/g;
|
|
23142
|
+
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
23143
|
+
exports.format = format;
|
|
23144
|
+
exports.parse = parse5;
|
|
23145
|
+
function format(obj) {
|
|
23146
|
+
if (!obj || typeof obj !== "object") {
|
|
23147
|
+
throw new TypeError("argument obj is required");
|
|
23101
23148
|
}
|
|
23149
|
+
var parameters = obj.parameters;
|
|
23150
|
+
var type = obj.type;
|
|
23151
|
+
if (!type || !TYPE_REGEXP.test(type)) {
|
|
23152
|
+
throw new TypeError("invalid type");
|
|
23153
|
+
}
|
|
23154
|
+
var string4 = type;
|
|
23155
|
+
if (parameters && typeof parameters === "object") {
|
|
23156
|
+
var param;
|
|
23157
|
+
var params = Object.keys(parameters).sort();
|
|
23158
|
+
for (var i = 0;i < params.length; i++) {
|
|
23159
|
+
param = params[i];
|
|
23160
|
+
if (!TOKEN_REGEXP.test(param)) {
|
|
23161
|
+
throw new TypeError("invalid parameter name");
|
|
23162
|
+
}
|
|
23163
|
+
string4 += "; " + param + "=" + qstring(parameters[param]);
|
|
23164
|
+
}
|
|
23165
|
+
}
|
|
23166
|
+
return string4;
|
|
23167
|
+
}
|
|
23168
|
+
function parse5(string4) {
|
|
23169
|
+
if (!string4) {
|
|
23170
|
+
throw new TypeError("argument string is required");
|
|
23171
|
+
}
|
|
23172
|
+
var header = typeof string4 === "object" ? getcontenttype(string4) : string4;
|
|
23173
|
+
if (typeof header !== "string") {
|
|
23174
|
+
throw new TypeError("argument string is required to be a string");
|
|
23175
|
+
}
|
|
23176
|
+
var index = header.indexOf(";");
|
|
23177
|
+
var type = index !== -1 ? header.slice(0, index).trim() : header.trim();
|
|
23178
|
+
if (!TYPE_REGEXP.test(type)) {
|
|
23179
|
+
throw new TypeError("invalid media type");
|
|
23180
|
+
}
|
|
23181
|
+
var obj = new ContentType(type.toLowerCase());
|
|
23182
|
+
if (index !== -1) {
|
|
23183
|
+
var key;
|
|
23184
|
+
var match;
|
|
23185
|
+
var value;
|
|
23186
|
+
PARAM_REGEXP.lastIndex = index;
|
|
23187
|
+
while (match = PARAM_REGEXP.exec(header)) {
|
|
23188
|
+
if (match.index !== index) {
|
|
23189
|
+
throw new TypeError("invalid parameter format");
|
|
23190
|
+
}
|
|
23191
|
+
index += match[0].length;
|
|
23192
|
+
key = match[1].toLowerCase();
|
|
23193
|
+
value = match[2];
|
|
23194
|
+
if (value.charCodeAt(0) === 34) {
|
|
23195
|
+
value = value.slice(1, -1);
|
|
23196
|
+
if (value.indexOf("\\") !== -1) {
|
|
23197
|
+
value = value.replace(QESC_REGEXP, "$1");
|
|
23198
|
+
}
|
|
23199
|
+
}
|
|
23200
|
+
obj.parameters[key] = value;
|
|
23201
|
+
}
|
|
23202
|
+
if (index !== header.length) {
|
|
23203
|
+
throw new TypeError("invalid parameter format");
|
|
23204
|
+
}
|
|
23205
|
+
}
|
|
23206
|
+
return obj;
|
|
23207
|
+
}
|
|
23208
|
+
function getcontenttype(obj) {
|
|
23209
|
+
var header;
|
|
23210
|
+
if (typeof obj.getHeader === "function") {
|
|
23211
|
+
header = obj.getHeader("content-type");
|
|
23212
|
+
} else if (typeof obj.headers === "object") {
|
|
23213
|
+
header = obj.headers && obj.headers["content-type"];
|
|
23214
|
+
}
|
|
23215
|
+
if (typeof header !== "string") {
|
|
23216
|
+
throw new TypeError("content-type header is missing from object");
|
|
23217
|
+
}
|
|
23218
|
+
return header;
|
|
23219
|
+
}
|
|
23220
|
+
function qstring(val) {
|
|
23221
|
+
var str = String(val);
|
|
23222
|
+
if (TOKEN_REGEXP.test(str)) {
|
|
23223
|
+
return str;
|
|
23224
|
+
}
|
|
23225
|
+
if (str.length > 0 && !TEXT_REGEXP.test(str)) {
|
|
23226
|
+
throw new TypeError("invalid parameter value");
|
|
23227
|
+
}
|
|
23228
|
+
return '"' + str.replace(QUOTE_REGEXP, "\\$1") + '"';
|
|
23229
|
+
}
|
|
23230
|
+
function ContentType(type) {
|
|
23231
|
+
this.parameters = Object.create(null);
|
|
23232
|
+
this.type = type;
|
|
23102
23233
|
}
|
|
23103
23234
|
});
|
|
23104
23235
|
|
|
@@ -25267,7 +25398,7 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
25267
25398
|
}
|
|
25268
25399
|
if (obj === null) {
|
|
25269
25400
|
if (strictNullHandling) {
|
|
25270
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
25401
|
+
return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
|
|
25271
25402
|
}
|
|
25272
25403
|
obj = "";
|
|
25273
25404
|
}
|
|
@@ -25285,7 +25416,9 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
25285
25416
|
var objKeys;
|
|
25286
25417
|
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
25287
25418
|
if (encodeValuesOnly && encoder) {
|
|
25288
|
-
obj = utils.maybeMap(obj,
|
|
25419
|
+
obj = utils.maybeMap(obj, function(v) {
|
|
25420
|
+
return v == null ? v : encoder(v);
|
|
25421
|
+
});
|
|
25289
25422
|
}
|
|
25290
25423
|
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : undefined }];
|
|
25291
25424
|
} else if (isArray(filter)) {
|
|
@@ -25404,6 +25537,9 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
25404
25537
|
var sideChannel = getSideChannel();
|
|
25405
25538
|
for (var i = 0;i < objKeys.length; ++i) {
|
|
25406
25539
|
var key = objKeys[i];
|
|
25540
|
+
if (typeof key === "undefined" || key === null) {
|
|
25541
|
+
continue;
|
|
25542
|
+
}
|
|
25407
25543
|
var value = obj[key];
|
|
25408
25544
|
if (options.skipNulls && value === null) {
|
|
25409
25545
|
continue;
|
|
@@ -25414,9 +25550,9 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
25414
25550
|
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
25415
25551
|
if (options.charsetSentinel) {
|
|
25416
25552
|
if (options.charset === "iso-8859-1") {
|
|
25417
|
-
prefix += "utf8=%26%2310003%3B
|
|
25553
|
+
prefix += "utf8=%26%2310003%3B" + options.delimiter;
|
|
25418
25554
|
} else {
|
|
25419
|
-
prefix += "utf8=%E2%9C%93
|
|
25555
|
+
prefix += "utf8=%E2%9C%93" + options.delimiter;
|
|
25420
25556
|
}
|
|
25421
25557
|
}
|
|
25422
25558
|
return joined.length > 0 ? prefix + joined : "";
|
|
@@ -25576,8 +25712,8 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
25576
25712
|
}
|
|
25577
25713
|
return leaf;
|
|
25578
25714
|
};
|
|
25579
|
-
var splitKeyIntoSegments = function splitKeyIntoSegments2(
|
|
25580
|
-
var key = options.allowDots ?
|
|
25715
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments2(originalKey, options) {
|
|
25716
|
+
var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, "[$1]") : originalKey;
|
|
25581
25717
|
if (options.depth <= 0) {
|
|
25582
25718
|
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
25583
25719
|
if (!options.allowPrototypes) {
|
|
@@ -25586,37 +25722,56 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
25586
25722
|
}
|
|
25587
25723
|
return [key];
|
|
25588
25724
|
}
|
|
25589
|
-
var
|
|
25590
|
-
var
|
|
25591
|
-
var
|
|
25592
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
25593
|
-
var keys = [];
|
|
25725
|
+
var segments = [];
|
|
25726
|
+
var first = key.indexOf("[");
|
|
25727
|
+
var parent = first >= 0 ? key.slice(0, first) : key;
|
|
25594
25728
|
if (parent) {
|
|
25595
25729
|
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
25596
25730
|
if (!options.allowPrototypes) {
|
|
25597
25731
|
return;
|
|
25598
25732
|
}
|
|
25599
25733
|
}
|
|
25600
|
-
|
|
25601
|
-
}
|
|
25602
|
-
var
|
|
25603
|
-
|
|
25604
|
-
|
|
25605
|
-
|
|
25606
|
-
|
|
25607
|
-
|
|
25608
|
-
|
|
25734
|
+
segments[segments.length] = parent;
|
|
25735
|
+
}
|
|
25736
|
+
var n = key.length;
|
|
25737
|
+
var open = first;
|
|
25738
|
+
var collected = 0;
|
|
25739
|
+
while (open >= 0 && collected < options.depth) {
|
|
25740
|
+
var level = 1;
|
|
25741
|
+
var i = open + 1;
|
|
25742
|
+
var close = -1;
|
|
25743
|
+
while (i < n && close < 0) {
|
|
25744
|
+
var cu = key.charCodeAt(i);
|
|
25745
|
+
if (cu === 91) {
|
|
25746
|
+
level += 1;
|
|
25747
|
+
} else if (cu === 93) {
|
|
25748
|
+
level -= 1;
|
|
25749
|
+
if (level === 0) {
|
|
25750
|
+
close = i;
|
|
25751
|
+
}
|
|
25609
25752
|
}
|
|
25753
|
+
i += 1;
|
|
25754
|
+
}
|
|
25755
|
+
if (close < 0) {
|
|
25756
|
+
segments[segments.length] = "[" + key.slice(open) + "]";
|
|
25757
|
+
return segments;
|
|
25610
25758
|
}
|
|
25611
|
-
|
|
25759
|
+
var seg = key.slice(open, close + 1);
|
|
25760
|
+
var content = seg.slice(1, -1);
|
|
25761
|
+
if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
|
|
25762
|
+
return;
|
|
25763
|
+
}
|
|
25764
|
+
segments[segments.length] = seg;
|
|
25765
|
+
collected += 1;
|
|
25766
|
+
open = key.indexOf("[", close + 1);
|
|
25612
25767
|
}
|
|
25613
|
-
if (
|
|
25768
|
+
if (open >= 0) {
|
|
25614
25769
|
if (options.strictDepth === true) {
|
|
25615
25770
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
25616
25771
|
}
|
|
25617
|
-
|
|
25772
|
+
segments[segments.length] = "[" + key.slice(open) + "]";
|
|
25618
25773
|
}
|
|
25619
|
-
return
|
|
25774
|
+
return segments;
|
|
25620
25775
|
};
|
|
25621
25776
|
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
25622
25777
|
if (!givenKey) {
|
|
@@ -27332,7 +27487,7 @@ var require_is_promise = __commonJS((exports, module) => {
|
|
|
27332
27487
|
});
|
|
27333
27488
|
|
|
27334
27489
|
// node_modules/path-to-regexp/dist/index.js
|
|
27335
|
-
var
|
|
27490
|
+
var require_dist2 = __commonJS((exports) => {
|
|
27336
27491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27337
27492
|
exports.PathError = exports.TokenData = undefined;
|
|
27338
27493
|
exports.parse = parse5;
|
|
@@ -27708,7 +27863,7 @@ var require_layer = __commonJS((exports, module) => {
|
|
|
27708
27863
|
* MIT Licensed
|
|
27709
27864
|
*/
|
|
27710
27865
|
var isPromise2 = require_is_promise();
|
|
27711
|
-
var pathRegexp =
|
|
27866
|
+
var pathRegexp = require_dist2();
|
|
27712
27867
|
var debug = require_src()("router:layer");
|
|
27713
27868
|
var deprecate = require_depd()("router");
|
|
27714
27869
|
var TRAILING_SLASH_REGEXP = /\/+$/;
|
|
@@ -49498,7 +49653,7 @@ var require_limit = __commonJS((exports) => {
|
|
|
49498
49653
|
});
|
|
49499
49654
|
|
|
49500
49655
|
// node_modules/ajv-formats/dist/index.js
|
|
49501
|
-
var
|
|
49656
|
+
var require_dist3 = __commonJS((exports, module) => {
|
|
49502
49657
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49503
49658
|
var formats_1 = require_formats2();
|
|
49504
49659
|
var limit_1 = require_limit();
|
|
@@ -49576,7 +49731,7 @@ class AjvJsonSchemaValidator {
|
|
|
49576
49731
|
var import_ajv, import_ajv_formats;
|
|
49577
49732
|
var init_ajv_provider = __esm(() => {
|
|
49578
49733
|
import_ajv = __toESM(require_ajv(), 1);
|
|
49579
|
-
import_ajv_formats = __toESM(
|
|
49734
|
+
import_ajv_formats = __toESM(require_dist3(), 1);
|
|
49580
49735
|
});
|
|
49581
49736
|
|
|
49582
49737
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
@@ -50979,9 +51134,9 @@ var init_config = __esm(() => {
|
|
|
50979
51134
|
SDK_METADATA = {
|
|
50980
51135
|
language: "typescript",
|
|
50981
51136
|
openapiDocVersion: "1.0",
|
|
50982
|
-
sdkVersion: "2.1.
|
|
50983
|
-
genVersion: "2.
|
|
50984
|
-
userAgent: "speakeasy-sdk/mcp-typescript 2.1.
|
|
51137
|
+
sdkVersion: "2.1.11",
|
|
51138
|
+
genVersion: "2.884.4",
|
|
51139
|
+
userAgent: "speakeasy-sdk/mcp-typescript 2.1.11 2.884.4 1.0 @flexprice/mcp-server"
|
|
50985
51140
|
};
|
|
50986
51141
|
});
|
|
50987
51142
|
|
|
@@ -52759,27 +52914,33 @@ var init_customerresponse = __esm(() => {
|
|
|
52759
52914
|
}).describe("Customer response object containing all customer information");
|
|
52760
52915
|
});
|
|
52761
52916
|
|
|
52762
|
-
// src/models/
|
|
52763
|
-
var
|
|
52764
|
-
var
|
|
52917
|
+
// src/models/errorcode.ts
|
|
52918
|
+
var ErrorCode$zodSchema;
|
|
52919
|
+
var init_errorcode = __esm(() => {
|
|
52765
52920
|
init_zod();
|
|
52766
|
-
|
|
52921
|
+
ErrorCode$zodSchema = _enum([
|
|
52922
|
+
"http_client_error",
|
|
52923
|
+
"system_error",
|
|
52924
|
+
"internal_error",
|
|
52767
52925
|
"not_found",
|
|
52768
52926
|
"already_exists",
|
|
52769
52927
|
"version_conflict",
|
|
52770
52928
|
"validation_error",
|
|
52771
52929
|
"invalid_operation",
|
|
52772
52930
|
"permission_denied",
|
|
52773
|
-
"http_client_error",
|
|
52774
52931
|
"database_error",
|
|
52775
|
-
"
|
|
52776
|
-
"
|
|
52777
|
-
"service_unavailable"
|
|
52932
|
+
"service_unavailable",
|
|
52933
|
+
"too_many_requests"
|
|
52778
52934
|
]);
|
|
52779
|
-
|
|
52935
|
+
});
|
|
52936
|
+
|
|
52937
|
+
// src/models/errorresponse.ts
|
|
52938
|
+
var ErrorResponse$zodSchema;
|
|
52939
|
+
var init_errorresponse = __esm(() => {
|
|
52940
|
+
init_zod();
|
|
52941
|
+
init_errorcode();
|
|
52780
52942
|
ErrorResponse$zodSchema = object({
|
|
52781
|
-
code:
|
|
52782
|
-
details: record(string2(), lazy(() => Details$zodSchema)).optional(),
|
|
52943
|
+
code: ErrorCode$zodSchema.optional(),
|
|
52783
52944
|
http_status_code: int().optional(),
|
|
52784
52945
|
message: string2().optional()
|
|
52785
52946
|
});
|
|
@@ -53201,6 +53362,7 @@ var WindowSize$zodSchema;
|
|
|
53201
53362
|
var init_windowsize = __esm(() => {
|
|
53202
53363
|
init_zod();
|
|
53203
53364
|
WindowSize$zodSchema = _enum([
|
|
53365
|
+
"MONTH",
|
|
53204
53366
|
"MINUTE",
|
|
53205
53367
|
"15MIN",
|
|
53206
53368
|
"30MIN",
|
|
@@ -53209,8 +53371,7 @@ var init_windowsize = __esm(() => {
|
|
|
53209
53371
|
"6HOUR",
|
|
53210
53372
|
"12HOUR",
|
|
53211
53373
|
"DAY",
|
|
53212
|
-
"WEEK"
|
|
53213
|
-
"MONTH"
|
|
53374
|
+
"WEEK"
|
|
53214
53375
|
]);
|
|
53215
53376
|
});
|
|
53216
53377
|
|
|
@@ -56135,6 +56296,8 @@ var init_createinvoicerequest = __esm(() => {
|
|
|
56135
56296
|
invoice_pdf_url: string2().optional().describe("invoice_pdf_url is the URL where customers can download the PDF version of this invoice"),
|
|
56136
56297
|
invoice_status: InvoiceStatus$zodSchema.optional(),
|
|
56137
56298
|
invoice_type: InvoiceType$zodSchema.optional(),
|
|
56299
|
+
issue_date: exports_iso.datetime({ offset: true }).optional().describe(`issue_date overrides the user-facing date of the invoice.
|
|
56300
|
+
Defaults to created_at if not provided.`),
|
|
56138
56301
|
line_item_coupons: array(InvoiceLineItemCoupon$zodSchema).optional().describe("Invoice Line Item Coupons"),
|
|
56139
56302
|
line_items: array(CreateInvoiceLineItemRequest$zodSchema).optional().describe("line_items contains the individual items that make up this invoice"),
|
|
56140
56303
|
metadata: record(string2(), string2()).optional(),
|
|
@@ -57333,6 +57496,7 @@ These are non-cash reductions applied to the invoice (e.g. goodwill credit, bill
|
|
|
57333
57496
|
invoice_pdf_url: string2().optional().describe("invoice_pdf_url is the URL where customers can download the PDF version of this invoice"),
|
|
57334
57497
|
invoice_status: InvoiceStatus$zodSchema.optional(),
|
|
57335
57498
|
invoice_type: InvoiceType$zodSchema.optional(),
|
|
57499
|
+
issue_date: exports_iso.datetime({ offset: true }).optional().describe("issue_date is the user-facing date of the invoice. Defaults to created_at if not set."),
|
|
57336
57500
|
last_computed_at: exports_iso.datetime({ offset: true }).optional().describe("last_computed_at is the timestamp when this invoice was last computed by ComputeInvoice"),
|
|
57337
57501
|
line_items: array(InvoiceLineItemResponse$zodSchema).optional().describe("line_items contains the individual items that make up this invoice (overrides embedded field)"),
|
|
57338
57502
|
metadata: record(string2(), string2()).optional(),
|
|
@@ -57757,115 +57921,6 @@ Use when showing a customer what they will be charged (e.g. preview before check
|
|
|
57757
57921
|
};
|
|
57758
57922
|
});
|
|
57759
57923
|
|
|
57760
|
-
// src/funcs/invoicesGetMeterUsagePreviewInvoice.ts
|
|
57761
|
-
function invoicesGetMeterUsagePreviewInvoice(client$, request, options) {
|
|
57762
|
-
return new APIPromise($do25(client$, request, options));
|
|
57763
|
-
}
|
|
57764
|
-
async function $do25(client$, request, options) {
|
|
57765
|
-
const parsed$ = safeParse4(request, (value$) => GetPreviewInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57766
|
-
if (!parsed$.ok) {
|
|
57767
|
-
return [parsed$, { status: "invalid" }];
|
|
57768
|
-
}
|
|
57769
|
-
const payload$ = parsed$.value;
|
|
57770
|
-
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
57771
|
-
const path$ = pathToFunc("/invoices/meter-usage-preview")();
|
|
57772
|
-
const headers$ = new Headers(compactMap({
|
|
57773
|
-
"Content-Type": "application/json",
|
|
57774
|
-
Accept: "application/json"
|
|
57775
|
-
}));
|
|
57776
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
57777
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57778
|
-
const context = {
|
|
57779
|
-
options: client$._options,
|
|
57780
|
-
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57781
|
-
operationID: "getMeterUsagePreviewInvoice",
|
|
57782
|
-
oAuth2Scopes: null,
|
|
57783
|
-
resolvedSecurity: requestSecurity,
|
|
57784
|
-
securitySource: client$._options.security,
|
|
57785
|
-
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57786
|
-
retryCodes: options?.retryCodes || [
|
|
57787
|
-
"429",
|
|
57788
|
-
"500",
|
|
57789
|
-
"502",
|
|
57790
|
-
"503",
|
|
57791
|
-
"504"
|
|
57792
|
-
]
|
|
57793
|
-
};
|
|
57794
|
-
const requestRes = client$._createRequest(context, {
|
|
57795
|
-
security: requestSecurity,
|
|
57796
|
-
method: "POST",
|
|
57797
|
-
baseURL: options?.serverURL,
|
|
57798
|
-
path: path$,
|
|
57799
|
-
headers: headers$,
|
|
57800
|
-
body: body$,
|
|
57801
|
-
userAgent: client$._options.userAgent,
|
|
57802
|
-
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57803
|
-
}, options);
|
|
57804
|
-
if (!requestRes.ok) {
|
|
57805
|
-
return [requestRes, { status: "invalid" }];
|
|
57806
|
-
}
|
|
57807
|
-
const req$ = requestRes.value;
|
|
57808
|
-
const doResult = await client$._do(req$, {
|
|
57809
|
-
context,
|
|
57810
|
-
errorCodes: [],
|
|
57811
|
-
retryConfig: context.retryConfig,
|
|
57812
|
-
retryCodes: context.retryCodes
|
|
57813
|
-
});
|
|
57814
|
-
if (!doResult.ok) {
|
|
57815
|
-
return [doResult, { status: "request-error", request: req$ }];
|
|
57816
|
-
}
|
|
57817
|
-
return [doResult, {
|
|
57818
|
-
status: "complete",
|
|
57819
|
-
request: req$,
|
|
57820
|
-
response: doResult.value
|
|
57821
|
-
}];
|
|
57822
|
-
}
|
|
57823
|
-
var init_invoicesGetMeterUsagePreviewInvoice = __esm(() => {
|
|
57824
|
-
init_encodings();
|
|
57825
|
-
init_primitives();
|
|
57826
|
-
init_schemas4();
|
|
57827
|
-
init_security();
|
|
57828
|
-
init_url();
|
|
57829
|
-
init_getpreviewinvoicerequest();
|
|
57830
|
-
init_async();
|
|
57831
|
-
});
|
|
57832
|
-
|
|
57833
|
-
// src/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.ts
|
|
57834
|
-
var args24, tool$invoicesGetMeterUsagePreviewInvoice;
|
|
57835
|
-
var init_invoicesGetMeterUsagePreviewInvoice2 = __esm(() => {
|
|
57836
|
-
init_invoicesGetMeterUsagePreviewInvoice();
|
|
57837
|
-
init_getpreviewinvoicerequest();
|
|
57838
|
-
init_tools();
|
|
57839
|
-
args24 = {
|
|
57840
|
-
request: GetPreviewInvoiceRequest$zodSchema.describe(`Preview Invoice Request`)
|
|
57841
|
-
};
|
|
57842
|
-
tool$invoicesGetMeterUsagePreviewInvoice = {
|
|
57843
|
-
name: "get-meter-usage-preview-invoice",
|
|
57844
|
-
description: `Get invoice preview using meter_usage data
|
|
57845
|
-
|
|
57846
|
-
Preview invoice using the meter_usage table for usage data instead of feature_usage.`,
|
|
57847
|
-
scopes: ["write"],
|
|
57848
|
-
annotations: {
|
|
57849
|
-
title: "",
|
|
57850
|
-
destructiveHint: false,
|
|
57851
|
-
idempotentHint: false,
|
|
57852
|
-
openWorldHint: false,
|
|
57853
|
-
readOnlyHint: false
|
|
57854
|
-
},
|
|
57855
|
-
args: args24,
|
|
57856
|
-
tool: async (client, args25, ctx) => {
|
|
57857
|
-
const [result] = await invoicesGetMeterUsagePreviewInvoice(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57858
|
-
if (!result.ok) {
|
|
57859
|
-
return {
|
|
57860
|
-
content: [{ type: "text", text: result.error.message }],
|
|
57861
|
-
isError: true
|
|
57862
|
-
};
|
|
57863
|
-
}
|
|
57864
|
-
return formatResult(result.value);
|
|
57865
|
-
}
|
|
57866
|
-
};
|
|
57867
|
-
});
|
|
57868
|
-
|
|
57869
57924
|
// src/models/invoicefilter.ts
|
|
57870
57925
|
var InvoiceFilterOrder$zodSchema, InvoiceFilter$zodSchema;
|
|
57871
57926
|
var init_invoicefilter = __esm(() => {
|
|
@@ -57918,9 +57973,9 @@ Only returns invoices that were created as part of the specified subscription's
|
|
|
57918
57973
|
|
|
57919
57974
|
// src/funcs/invoicesQueryInvoice.ts
|
|
57920
57975
|
function invoicesQueryInvoice(client$, request, options) {
|
|
57921
|
-
return new APIPromise($
|
|
57976
|
+
return new APIPromise($do25(client$, request, options));
|
|
57922
57977
|
}
|
|
57923
|
-
async function $
|
|
57978
|
+
async function $do25(client$, request, options) {
|
|
57924
57979
|
const parsed$ = safeParse4(request, (value$) => InvoiceFilter$zodSchema.parse(value$), "Input validation failed");
|
|
57925
57980
|
if (!parsed$.ok) {
|
|
57926
57981
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57990,12 +58045,12 @@ var init_invoicesQueryInvoice = __esm(() => {
|
|
|
57990
58045
|
});
|
|
57991
58046
|
|
|
57992
58047
|
// src/mcp-server/tools/invoicesQueryInvoice.ts
|
|
57993
|
-
var
|
|
58048
|
+
var args24, tool$invoicesQueryInvoice;
|
|
57994
58049
|
var init_invoicesQueryInvoice2 = __esm(() => {
|
|
57995
58050
|
init_invoicesQueryInvoice();
|
|
57996
58051
|
init_invoicefilter();
|
|
57997
58052
|
init_tools();
|
|
57998
|
-
|
|
58053
|
+
args24 = {
|
|
57999
58054
|
request: InvoiceFilter$zodSchema.describe(`Filter`)
|
|
58000
58055
|
};
|
|
58001
58056
|
tool$invoicesQueryInvoice = {
|
|
@@ -58011,9 +58066,9 @@ Use when listing or searching invoices (e.g. admin view or customer history). Re
|
|
|
58011
58066
|
openWorldHint: false,
|
|
58012
58067
|
readOnlyHint: false
|
|
58013
58068
|
},
|
|
58014
|
-
args:
|
|
58015
|
-
tool: async (client,
|
|
58016
|
-
const [result] = await invoicesQueryInvoice(client,
|
|
58069
|
+
args: args24,
|
|
58070
|
+
tool: async (client, args25, ctx) => {
|
|
58071
|
+
const [result] = await invoicesQueryInvoice(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58017
58072
|
if (!result.ok) {
|
|
58018
58073
|
return {
|
|
58019
58074
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58053,9 +58108,9 @@ var init_recalculateinvoiceop = __esm(() => {
|
|
|
58053
58108
|
|
|
58054
58109
|
// src/funcs/invoicesRecalculateInvoice.ts
|
|
58055
58110
|
function invoicesRecalculateInvoice(client$, request, options) {
|
|
58056
|
-
return new APIPromise($
|
|
58111
|
+
return new APIPromise($do26(client$, request, options));
|
|
58057
58112
|
}
|
|
58058
|
-
async function $
|
|
58113
|
+
async function $do26(client$, request, options) {
|
|
58059
58114
|
const parsed$ = safeParse4(request, (value$) => RecalculateInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58060
58115
|
if (!parsed$.ok) {
|
|
58061
58116
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58130,12 +58185,12 @@ var init_invoicesRecalculateInvoice = __esm(() => {
|
|
|
58130
58185
|
});
|
|
58131
58186
|
|
|
58132
58187
|
// src/mcp-server/tools/invoicesRecalculateInvoice.ts
|
|
58133
|
-
var
|
|
58188
|
+
var args25, tool$invoicesRecalculateInvoice;
|
|
58134
58189
|
var init_invoicesRecalculateInvoice2 = __esm(() => {
|
|
58135
58190
|
init_invoicesRecalculateInvoice();
|
|
58136
58191
|
init_recalculateinvoiceop();
|
|
58137
58192
|
init_tools();
|
|
58138
|
-
|
|
58193
|
+
args25 = {
|
|
58139
58194
|
request: RecalculateInvoiceRequest$zodSchema
|
|
58140
58195
|
};
|
|
58141
58196
|
tool$invoicesRecalculateInvoice = {
|
|
@@ -58151,9 +58206,9 @@ Starts an async workflow that creates a fresh replacement invoice for a voided S
|
|
|
58151
58206
|
openWorldHint: false,
|
|
58152
58207
|
readOnlyHint: false
|
|
58153
58208
|
},
|
|
58154
|
-
args:
|
|
58155
|
-
tool: async (client,
|
|
58156
|
-
const [result] = await invoicesRecalculateInvoice(client,
|
|
58209
|
+
args: args25,
|
|
58210
|
+
tool: async (client, args26, ctx) => {
|
|
58211
|
+
const [result] = await invoicesRecalculateInvoice(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58157
58212
|
if (!result.ok) {
|
|
58158
58213
|
return {
|
|
58159
58214
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58183,9 +58238,9 @@ var init_recalculateinvoicev2op = __esm(() => {
|
|
|
58183
58238
|
|
|
58184
58239
|
// src/funcs/invoicesRecalculateInvoiceV2.ts
|
|
58185
58240
|
function invoicesRecalculateInvoiceV2(client$, request, options) {
|
|
58186
|
-
return new APIPromise($
|
|
58241
|
+
return new APIPromise($do27(client$, request, options));
|
|
58187
58242
|
}
|
|
58188
|
-
async function $
|
|
58243
|
+
async function $do27(client$, request, options) {
|
|
58189
58244
|
const parsed$ = safeParse4(request, (value$) => RecalculateInvoiceV2Request$zodSchema.parse(value$), "Input validation failed");
|
|
58190
58245
|
if (!parsed$.ok) {
|
|
58191
58246
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58264,12 +58319,12 @@ var init_invoicesRecalculateInvoiceV2 = __esm(() => {
|
|
|
58264
58319
|
});
|
|
58265
58320
|
|
|
58266
58321
|
// src/mcp-server/tools/invoicesRecalculateInvoiceV2.ts
|
|
58267
|
-
var
|
|
58322
|
+
var args26, tool$invoicesRecalculateInvoiceV2;
|
|
58268
58323
|
var init_invoicesRecalculateInvoiceV22 = __esm(() => {
|
|
58269
58324
|
init_invoicesRecalculateInvoiceV2();
|
|
58270
58325
|
init_recalculateinvoicev2op();
|
|
58271
58326
|
init_tools();
|
|
58272
|
-
|
|
58327
|
+
args26 = {
|
|
58273
58328
|
request: RecalculateInvoiceV2Request$zodSchema
|
|
58274
58329
|
};
|
|
58275
58330
|
tool$invoicesRecalculateInvoiceV2 = {
|
|
@@ -58285,9 +58340,9 @@ Recalculates a draft SUBSCRIPTION invoice in-place (replaces line items, reappli
|
|
|
58285
58340
|
openWorldHint: false,
|
|
58286
58341
|
readOnlyHint: false
|
|
58287
58342
|
},
|
|
58288
|
-
args:
|
|
58289
|
-
tool: async (client,
|
|
58290
|
-
const [result] = await invoicesRecalculateInvoiceV2(client,
|
|
58343
|
+
args: args26,
|
|
58344
|
+
tool: async (client, args27, ctx) => {
|
|
58345
|
+
const [result] = await invoicesRecalculateInvoiceV2(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58291
58346
|
if (!result.ok) {
|
|
58292
58347
|
return {
|
|
58293
58348
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58316,9 +58371,9 @@ var init_triggerinvoicecommswebhookop = __esm(() => {
|
|
|
58316
58371
|
|
|
58317
58372
|
// src/funcs/invoicesTriggerInvoiceCommsWebhook.ts
|
|
58318
58373
|
function invoicesTriggerInvoiceCommsWebhook(client$, request, options) {
|
|
58319
|
-
return new APIPromise($
|
|
58374
|
+
return new APIPromise($do28(client$, request, options));
|
|
58320
58375
|
}
|
|
58321
|
-
async function $
|
|
58376
|
+
async function $do28(client$, request, options) {
|
|
58322
58377
|
const parsed$ = safeParse4(request, (value$) => TriggerInvoiceCommsWebhookRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58323
58378
|
if (!parsed$.ok) {
|
|
58324
58379
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58393,12 +58448,12 @@ var init_invoicesTriggerInvoiceCommsWebhook = __esm(() => {
|
|
|
58393
58448
|
});
|
|
58394
58449
|
|
|
58395
58450
|
// src/mcp-server/tools/invoicesTriggerInvoiceCommsWebhook.ts
|
|
58396
|
-
var
|
|
58451
|
+
var args27, tool$invoicesTriggerInvoiceCommsWebhook;
|
|
58397
58452
|
var init_invoicesTriggerInvoiceCommsWebhook2 = __esm(() => {
|
|
58398
58453
|
init_invoicesTriggerInvoiceCommsWebhook();
|
|
58399
58454
|
init_triggerinvoicecommswebhookop();
|
|
58400
58455
|
init_tools();
|
|
58401
|
-
|
|
58456
|
+
args27 = {
|
|
58402
58457
|
request: TriggerInvoiceCommsWebhookRequest$zodSchema
|
|
58403
58458
|
};
|
|
58404
58459
|
tool$invoicesTriggerInvoiceCommsWebhook = {
|
|
@@ -58414,9 +58469,9 @@ Use when sending an invoice to the customer (e.g. trigger email or Slack). Paylo
|
|
|
58414
58469
|
openWorldHint: false,
|
|
58415
58470
|
readOnlyHint: false
|
|
58416
58471
|
},
|
|
58417
|
-
args:
|
|
58418
|
-
tool: async (client,
|
|
58419
|
-
const [result] = await invoicesTriggerInvoiceCommsWebhook(client,
|
|
58472
|
+
args: args27,
|
|
58473
|
+
tool: async (client, args28, ctx) => {
|
|
58474
|
+
const [result] = await invoicesTriggerInvoiceCommsWebhook(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58420
58475
|
if (!result.ok) {
|
|
58421
58476
|
return {
|
|
58422
58477
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58458,9 +58513,9 @@ var init_updateinvoiceop = __esm(() => {
|
|
|
58458
58513
|
|
|
58459
58514
|
// src/funcs/invoicesUpdateInvoice.ts
|
|
58460
58515
|
function invoicesUpdateInvoice(client$, request, options) {
|
|
58461
|
-
return new APIPromise($
|
|
58516
|
+
return new APIPromise($do29(client$, request, options));
|
|
58462
58517
|
}
|
|
58463
|
-
async function $
|
|
58518
|
+
async function $do29(client$, request, options) {
|
|
58464
58519
|
const parsed$ = safeParse4(request, (value$) => UpdateInvoiceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58465
58520
|
if (!parsed$.ok) {
|
|
58466
58521
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58536,12 +58591,12 @@ var init_invoicesUpdateInvoice = __esm(() => {
|
|
|
58536
58591
|
});
|
|
58537
58592
|
|
|
58538
58593
|
// src/mcp-server/tools/invoicesUpdateInvoice.ts
|
|
58539
|
-
var
|
|
58594
|
+
var args28, tool$invoicesUpdateInvoice;
|
|
58540
58595
|
var init_invoicesUpdateInvoice2 = __esm(() => {
|
|
58541
58596
|
init_invoicesUpdateInvoice();
|
|
58542
58597
|
init_updateinvoiceop();
|
|
58543
58598
|
init_tools();
|
|
58544
|
-
|
|
58599
|
+
args28 = {
|
|
58545
58600
|
request: UpdateInvoiceRequestRequest$zodSchema
|
|
58546
58601
|
};
|
|
58547
58602
|
tool$invoicesUpdateInvoice = {
|
|
@@ -58557,9 +58612,9 @@ Use when updating invoice metadata or due date (e.g. PDF URL, net terms). For pa
|
|
|
58557
58612
|
openWorldHint: false,
|
|
58558
58613
|
readOnlyHint: false
|
|
58559
58614
|
},
|
|
58560
|
-
args:
|
|
58561
|
-
tool: async (client,
|
|
58562
|
-
const [result] = await invoicesUpdateInvoice(client,
|
|
58615
|
+
args: args28,
|
|
58616
|
+
tool: async (client, args29, ctx) => {
|
|
58617
|
+
const [result] = await invoicesUpdateInvoice(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58563
58618
|
if (!result.ok) {
|
|
58564
58619
|
return {
|
|
58565
58620
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58601,9 +58656,9 @@ var init_updateinvoicepaymentstatusop = __esm(() => {
|
|
|
58601
58656
|
|
|
58602
58657
|
// src/funcs/invoicesUpdateInvoicePaymentStatus.ts
|
|
58603
58658
|
function invoicesUpdateInvoicePaymentStatus(client$, request, options) {
|
|
58604
|
-
return new APIPromise($
|
|
58659
|
+
return new APIPromise($do30(client$, request, options));
|
|
58605
58660
|
}
|
|
58606
|
-
async function $
|
|
58661
|
+
async function $do30(client$, request, options) {
|
|
58607
58662
|
const parsed$ = safeParse4(request, (value$) => UpdateInvoicePaymentStatusRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58608
58663
|
if (!parsed$.ok) {
|
|
58609
58664
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58679,12 +58734,12 @@ var init_invoicesUpdateInvoicePaymentStatus = __esm(() => {
|
|
|
58679
58734
|
});
|
|
58680
58735
|
|
|
58681
58736
|
// src/mcp-server/tools/invoicesUpdateInvoicePaymentStatus.ts
|
|
58682
|
-
var
|
|
58737
|
+
var args29, tool$invoicesUpdateInvoicePaymentStatus;
|
|
58683
58738
|
var init_invoicesUpdateInvoicePaymentStatus2 = __esm(() => {
|
|
58684
58739
|
init_invoicesUpdateInvoicePaymentStatus();
|
|
58685
58740
|
init_updateinvoicepaymentstatusop();
|
|
58686
58741
|
init_tools();
|
|
58687
|
-
|
|
58742
|
+
args29 = {
|
|
58688
58743
|
request: UpdateInvoicePaymentStatusRequest$zodSchema
|
|
58689
58744
|
};
|
|
58690
58745
|
tool$invoicesUpdateInvoicePaymentStatus = {
|
|
@@ -58700,9 +58755,9 @@ Use when reconciling payment status from an external gateway or manual entry (e.
|
|
|
58700
58755
|
openWorldHint: false,
|
|
58701
58756
|
readOnlyHint: false
|
|
58702
58757
|
},
|
|
58703
|
-
args:
|
|
58704
|
-
tool: async (client,
|
|
58705
|
-
const [result] = await invoicesUpdateInvoicePaymentStatus(client,
|
|
58758
|
+
args: args29,
|
|
58759
|
+
tool: async (client, args30, ctx) => {
|
|
58760
|
+
const [result] = await invoicesUpdateInvoicePaymentStatus(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58706
58761
|
if (!result.ok) {
|
|
58707
58762
|
return {
|
|
58708
58763
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58731,9 +58786,9 @@ var init_voidinvoiceop = __esm(() => {
|
|
|
58731
58786
|
|
|
58732
58787
|
// src/funcs/invoicesVoidInvoice.ts
|
|
58733
58788
|
function invoicesVoidInvoice(client$, request, options) {
|
|
58734
|
-
return new APIPromise($
|
|
58789
|
+
return new APIPromise($do31(client$, request, options));
|
|
58735
58790
|
}
|
|
58736
|
-
async function $
|
|
58791
|
+
async function $do31(client$, request, options) {
|
|
58737
58792
|
const parsed$ = safeParse4(request, (value$) => VoidInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58738
58793
|
if (!parsed$.ok) {
|
|
58739
58794
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58808,12 +58863,12 @@ var init_invoicesVoidInvoice = __esm(() => {
|
|
|
58808
58863
|
});
|
|
58809
58864
|
|
|
58810
58865
|
// src/mcp-server/tools/invoicesVoidInvoice.ts
|
|
58811
|
-
var
|
|
58866
|
+
var args30, tool$invoicesVoidInvoice;
|
|
58812
58867
|
var init_invoicesVoidInvoice2 = __esm(() => {
|
|
58813
58868
|
init_invoicesVoidInvoice();
|
|
58814
58869
|
init_voidinvoiceop();
|
|
58815
58870
|
init_tools();
|
|
58816
|
-
|
|
58871
|
+
args30 = {
|
|
58817
58872
|
request: VoidInvoiceRequest$zodSchema
|
|
58818
58873
|
};
|
|
58819
58874
|
tool$invoicesVoidInvoice = {
|
|
@@ -58829,9 +58884,9 @@ Use when cancelling an invoice (e.g. order cancelled or duplicate). Only unpaid
|
|
|
58829
58884
|
openWorldHint: false,
|
|
58830
58885
|
readOnlyHint: false
|
|
58831
58886
|
},
|
|
58832
|
-
args:
|
|
58833
|
-
tool: async (client,
|
|
58834
|
-
const [result] = await invoicesVoidInvoice(client,
|
|
58887
|
+
args: args30,
|
|
58888
|
+
tool: async (client, args31, ctx) => {
|
|
58889
|
+
const [result] = await invoicesVoidInvoice(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58835
58890
|
if (!result.ok) {
|
|
58836
58891
|
return {
|
|
58837
58892
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58875,9 +58930,9 @@ var init_cloneplanop = __esm(() => {
|
|
|
58875
58930
|
|
|
58876
58931
|
// src/funcs/plansClonePlan.ts
|
|
58877
58932
|
function plansClonePlan(client$, request, options) {
|
|
58878
|
-
return new APIPromise($
|
|
58933
|
+
return new APIPromise($do32(client$, request, options));
|
|
58879
58934
|
}
|
|
58880
|
-
async function $
|
|
58935
|
+
async function $do32(client$, request, options) {
|
|
58881
58936
|
const parsed$ = safeParse4(request, (value$) => ClonePlanRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58882
58937
|
if (!parsed$.ok) {
|
|
58883
58938
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58953,12 +59008,12 @@ var init_plansClonePlan = __esm(() => {
|
|
|
58953
59008
|
});
|
|
58954
59009
|
|
|
58955
59010
|
// src/mcp-server/tools/plansClonePlan.ts
|
|
58956
|
-
var
|
|
59011
|
+
var args31, tool$plansClonePlan;
|
|
58957
59012
|
var init_plansClonePlan2 = __esm(() => {
|
|
58958
59013
|
init_plansClonePlan();
|
|
58959
59014
|
init_cloneplanop();
|
|
58960
59015
|
init_tools();
|
|
58961
|
-
|
|
59016
|
+
args31 = {
|
|
58962
59017
|
request: ClonePlanRequestRequest$zodSchema
|
|
58963
59018
|
};
|
|
58964
59019
|
tool$plansClonePlan = {
|
|
@@ -58974,9 +59029,9 @@ Clone an existing plan, copying its active prices, published entitlements, and p
|
|
|
58974
59029
|
openWorldHint: false,
|
|
58975
59030
|
readOnlyHint: false
|
|
58976
59031
|
},
|
|
58977
|
-
args:
|
|
58978
|
-
tool: async (client,
|
|
58979
|
-
const [result] = await plansClonePlan(client,
|
|
59032
|
+
args: args31,
|
|
59033
|
+
tool: async (client, args32, ctx) => {
|
|
59034
|
+
const [result] = await plansClonePlan(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58980
59035
|
if (!result.ok) {
|
|
58981
59036
|
return {
|
|
58982
59037
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59003,9 +59058,9 @@ var init_createplanrequest = __esm(() => {
|
|
|
59003
59058
|
|
|
59004
59059
|
// src/funcs/plansCreatePlan.ts
|
|
59005
59060
|
function plansCreatePlan(client$, request, options) {
|
|
59006
|
-
return new APIPromise($
|
|
59061
|
+
return new APIPromise($do33(client$, request, options));
|
|
59007
59062
|
}
|
|
59008
|
-
async function $
|
|
59063
|
+
async function $do33(client$, request, options) {
|
|
59009
59064
|
const parsed$ = safeParse4(request, (value$) => CreatePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59010
59065
|
if (!parsed$.ok) {
|
|
59011
59066
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59075,12 +59130,12 @@ var init_plansCreatePlan = __esm(() => {
|
|
|
59075
59130
|
});
|
|
59076
59131
|
|
|
59077
59132
|
// src/mcp-server/tools/plansCreatePlan.ts
|
|
59078
|
-
var
|
|
59133
|
+
var args32, tool$plansCreatePlan;
|
|
59079
59134
|
var init_plansCreatePlan2 = __esm(() => {
|
|
59080
59135
|
init_plansCreatePlan();
|
|
59081
59136
|
init_createplanrequest();
|
|
59082
59137
|
init_tools();
|
|
59083
|
-
|
|
59138
|
+
args32 = {
|
|
59084
59139
|
request: CreatePlanRequest$zodSchema.describe(`Plan configuration`)
|
|
59085
59140
|
};
|
|
59086
59141
|
tool$plansCreatePlan = {
|
|
@@ -59096,9 +59151,9 @@ Use when defining a new pricing plan (e.g. Free, Pro, Enterprise). Attach prices
|
|
|
59096
59151
|
openWorldHint: false,
|
|
59097
59152
|
readOnlyHint: false
|
|
59098
59153
|
},
|
|
59099
|
-
args:
|
|
59100
|
-
tool: async (client,
|
|
59101
|
-
const [result] = await plansCreatePlan(client,
|
|
59154
|
+
args: args32,
|
|
59155
|
+
tool: async (client, args33, ctx) => {
|
|
59156
|
+
const [result] = await plansCreatePlan(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59102
59157
|
if (!result.ok) {
|
|
59103
59158
|
return {
|
|
59104
59159
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59127,9 +59182,9 @@ var init_deleteplanop = __esm(() => {
|
|
|
59127
59182
|
|
|
59128
59183
|
// src/funcs/plansDeletePlan.ts
|
|
59129
59184
|
function plansDeletePlan(client$, request, options) {
|
|
59130
|
-
return new APIPromise($
|
|
59185
|
+
return new APIPromise($do34(client$, request, options));
|
|
59131
59186
|
}
|
|
59132
|
-
async function $
|
|
59187
|
+
async function $do34(client$, request, options) {
|
|
59133
59188
|
const parsed$ = safeParse4(request, (value$) => DeletePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59134
59189
|
if (!parsed$.ok) {
|
|
59135
59190
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59204,12 +59259,12 @@ var init_plansDeletePlan = __esm(() => {
|
|
|
59204
59259
|
});
|
|
59205
59260
|
|
|
59206
59261
|
// src/mcp-server/tools/plansDeletePlan.ts
|
|
59207
|
-
var
|
|
59262
|
+
var args33, tool$plansDeletePlan;
|
|
59208
59263
|
var init_plansDeletePlan2 = __esm(() => {
|
|
59209
59264
|
init_plansDeletePlan();
|
|
59210
59265
|
init_deleteplanop();
|
|
59211
59266
|
init_tools();
|
|
59212
|
-
|
|
59267
|
+
args33 = {
|
|
59213
59268
|
request: DeletePlanRequest$zodSchema
|
|
59214
59269
|
};
|
|
59215
59270
|
tool$plansDeletePlan = {
|
|
@@ -59225,9 +59280,9 @@ Use when retiring a plan (e.g. end-of-life). Existing subscriptions may be affec
|
|
|
59225
59280
|
openWorldHint: false,
|
|
59226
59281
|
readOnlyHint: false
|
|
59227
59282
|
},
|
|
59228
|
-
args:
|
|
59229
|
-
tool: async (client,
|
|
59230
|
-
const [result] = await plansDeletePlan(client,
|
|
59283
|
+
args: args33,
|
|
59284
|
+
tool: async (client, args34, ctx) => {
|
|
59285
|
+
const [result] = await plansDeletePlan(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59231
59286
|
if (!result.ok) {
|
|
59232
59287
|
return {
|
|
59233
59288
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59256,9 +59311,9 @@ var init_getplanop = __esm(() => {
|
|
|
59256
59311
|
|
|
59257
59312
|
// src/funcs/plansGetPlan.ts
|
|
59258
59313
|
function plansGetPlan(client$, request, options) {
|
|
59259
|
-
return new APIPromise($
|
|
59314
|
+
return new APIPromise($do35(client$, request, options));
|
|
59260
59315
|
}
|
|
59261
|
-
async function $
|
|
59316
|
+
async function $do35(client$, request, options) {
|
|
59262
59317
|
const parsed$ = safeParse4(request, (value$) => GetPlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59263
59318
|
if (!parsed$.ok) {
|
|
59264
59319
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59333,12 +59388,12 @@ var init_plansGetPlan = __esm(() => {
|
|
|
59333
59388
|
});
|
|
59334
59389
|
|
|
59335
59390
|
// src/mcp-server/tools/plansGetPlan.ts
|
|
59336
|
-
var
|
|
59391
|
+
var args34, tool$plansGetPlan;
|
|
59337
59392
|
var init_plansGetPlan2 = __esm(() => {
|
|
59338
59393
|
init_plansGetPlan();
|
|
59339
59394
|
init_getplanop();
|
|
59340
59395
|
init_tools();
|
|
59341
|
-
|
|
59396
|
+
args34 = {
|
|
59342
59397
|
request: GetPlanRequest$zodSchema
|
|
59343
59398
|
};
|
|
59344
59399
|
tool$plansGetPlan = {
|
|
@@ -59354,9 +59409,9 @@ Use when you need to load a single plan (e.g. for display or to create a subscri
|
|
|
59354
59409
|
openWorldHint: false,
|
|
59355
59410
|
readOnlyHint: true
|
|
59356
59411
|
},
|
|
59357
|
-
args:
|
|
59358
|
-
tool: async (client,
|
|
59359
|
-
const [result] = await plansGetPlan(client,
|
|
59412
|
+
args: args34,
|
|
59413
|
+
tool: async (client, args35, ctx) => {
|
|
59414
|
+
const [result] = await plansGetPlan(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59360
59415
|
if (!result.ok) {
|
|
59361
59416
|
return {
|
|
59362
59417
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59397,9 +59452,9 @@ var init_planfilter = __esm(() => {
|
|
|
59397
59452
|
|
|
59398
59453
|
// src/funcs/plansQueryPlan.ts
|
|
59399
59454
|
function plansQueryPlan(client$, request, options) {
|
|
59400
|
-
return new APIPromise($
|
|
59455
|
+
return new APIPromise($do36(client$, request, options));
|
|
59401
59456
|
}
|
|
59402
|
-
async function $
|
|
59457
|
+
async function $do36(client$, request, options) {
|
|
59403
59458
|
const parsed$ = safeParse4(request, (value$) => PlanFilter$zodSchema.parse(value$), "Input validation failed");
|
|
59404
59459
|
if (!parsed$.ok) {
|
|
59405
59460
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59469,12 +59524,12 @@ var init_plansQueryPlan = __esm(() => {
|
|
|
59469
59524
|
});
|
|
59470
59525
|
|
|
59471
59526
|
// src/mcp-server/tools/plansQueryPlan.ts
|
|
59472
|
-
var
|
|
59527
|
+
var args35, tool$plansQueryPlan;
|
|
59473
59528
|
var init_plansQueryPlan2 = __esm(() => {
|
|
59474
59529
|
init_plansQueryPlan();
|
|
59475
59530
|
init_planfilter();
|
|
59476
59531
|
init_tools();
|
|
59477
|
-
|
|
59532
|
+
args35 = {
|
|
59478
59533
|
request: PlanFilter$zodSchema.describe(`Filter`)
|
|
59479
59534
|
};
|
|
59480
59535
|
tool$plansQueryPlan = {
|
|
@@ -59490,9 +59545,9 @@ Use when listing or searching plans (e.g. plan picker or admin catalog). Returns
|
|
|
59490
59545
|
openWorldHint: false,
|
|
59491
59546
|
readOnlyHint: false
|
|
59492
59547
|
},
|
|
59493
|
-
args:
|
|
59494
|
-
tool: async (client,
|
|
59495
|
-
const [result] = await plansQueryPlan(client,
|
|
59548
|
+
args: args35,
|
|
59549
|
+
tool: async (client, args36, ctx) => {
|
|
59550
|
+
const [result] = await plansQueryPlan(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59496
59551
|
if (!result.ok) {
|
|
59497
59552
|
return {
|
|
59498
59553
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59521,9 +59576,9 @@ var init_syncplanpricesop = __esm(() => {
|
|
|
59521
59576
|
|
|
59522
59577
|
// src/funcs/plansSyncPlanPrices.ts
|
|
59523
59578
|
function plansSyncPlanPrices(client$, request, options) {
|
|
59524
|
-
return new APIPromise($
|
|
59579
|
+
return new APIPromise($do37(client$, request, options));
|
|
59525
59580
|
}
|
|
59526
|
-
async function $
|
|
59581
|
+
async function $do37(client$, request, options) {
|
|
59527
59582
|
const parsed$ = safeParse4(request, (value$) => SyncPlanPricesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59528
59583
|
if (!parsed$.ok) {
|
|
59529
59584
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59598,12 +59653,12 @@ var init_plansSyncPlanPrices = __esm(() => {
|
|
|
59598
59653
|
});
|
|
59599
59654
|
|
|
59600
59655
|
// src/mcp-server/tools/plansSyncPlanPrices.ts
|
|
59601
|
-
var
|
|
59656
|
+
var args36, tool$plansSyncPlanPrices;
|
|
59602
59657
|
var init_plansSyncPlanPrices2 = __esm(() => {
|
|
59603
59658
|
init_plansSyncPlanPrices();
|
|
59604
59659
|
init_syncplanpricesop();
|
|
59605
59660
|
init_tools();
|
|
59606
|
-
|
|
59661
|
+
args36 = {
|
|
59607
59662
|
request: SyncPlanPricesRequest$zodSchema
|
|
59608
59663
|
};
|
|
59609
59664
|
tool$plansSyncPlanPrices = {
|
|
@@ -59619,9 +59674,9 @@ Use when you have changed plan prices and need to push them to all active subscr
|
|
|
59619
59674
|
openWorldHint: false,
|
|
59620
59675
|
readOnlyHint: false
|
|
59621
59676
|
},
|
|
59622
|
-
args:
|
|
59623
|
-
tool: async (client,
|
|
59624
|
-
const [result] = await plansSyncPlanPrices(client,
|
|
59677
|
+
args: args36,
|
|
59678
|
+
tool: async (client, args37, ctx) => {
|
|
59679
|
+
const [result] = await plansSyncPlanPrices(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59625
59680
|
if (!result.ok) {
|
|
59626
59681
|
return {
|
|
59627
59682
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59665,9 +59720,9 @@ var init_updateplanop = __esm(() => {
|
|
|
59665
59720
|
|
|
59666
59721
|
// src/funcs/plansUpdatePlan.ts
|
|
59667
59722
|
function plansUpdatePlan(client$, request, options) {
|
|
59668
|
-
return new APIPromise($
|
|
59723
|
+
return new APIPromise($do38(client$, request, options));
|
|
59669
59724
|
}
|
|
59670
|
-
async function $
|
|
59725
|
+
async function $do38(client$, request, options) {
|
|
59671
59726
|
const parsed$ = safeParse4(request, (value$) => UpdatePlanRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59672
59727
|
if (!parsed$.ok) {
|
|
59673
59728
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59743,12 +59798,12 @@ var init_plansUpdatePlan = __esm(() => {
|
|
|
59743
59798
|
});
|
|
59744
59799
|
|
|
59745
59800
|
// src/mcp-server/tools/plansUpdatePlan.ts
|
|
59746
|
-
var
|
|
59801
|
+
var args37, tool$plansUpdatePlan;
|
|
59747
59802
|
var init_plansUpdatePlan2 = __esm(() => {
|
|
59748
59803
|
init_plansUpdatePlan();
|
|
59749
59804
|
init_updateplanop();
|
|
59750
59805
|
init_tools();
|
|
59751
|
-
|
|
59806
|
+
args37 = {
|
|
59752
59807
|
request: UpdatePlanRequestRequest$zodSchema
|
|
59753
59808
|
};
|
|
59754
59809
|
tool$plansUpdatePlan = {
|
|
@@ -59764,9 +59819,9 @@ Use when changing plan details (e.g. name, interval, or metadata). Partial updat
|
|
|
59764
59819
|
openWorldHint: false,
|
|
59765
59820
|
readOnlyHint: false
|
|
59766
59821
|
},
|
|
59767
|
-
args:
|
|
59768
|
-
tool: async (client,
|
|
59769
|
-
const [result] = await plansUpdatePlan(client,
|
|
59822
|
+
args: args37,
|
|
59823
|
+
tool: async (client, args38, ctx) => {
|
|
59824
|
+
const [result] = await plansUpdatePlan(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59770
59825
|
if (!result.ok) {
|
|
59771
59826
|
return {
|
|
59772
59827
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59861,9 +59916,9 @@ var init_createpricerequest = __esm(() => {
|
|
|
59861
59916
|
|
|
59862
59917
|
// src/funcs/pricesCreatePrice.ts
|
|
59863
59918
|
function pricesCreatePrice(client$, request, options) {
|
|
59864
|
-
return new APIPromise($
|
|
59919
|
+
return new APIPromise($do39(client$, request, options));
|
|
59865
59920
|
}
|
|
59866
|
-
async function $
|
|
59921
|
+
async function $do39(client$, request, options) {
|
|
59867
59922
|
const parsed$ = safeParse4(request, (value$) => CreatePriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59868
59923
|
if (!parsed$.ok) {
|
|
59869
59924
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59933,12 +59988,12 @@ var init_pricesCreatePrice = __esm(() => {
|
|
|
59933
59988
|
});
|
|
59934
59989
|
|
|
59935
59990
|
// src/mcp-server/tools/pricesCreatePrice.ts
|
|
59936
|
-
var
|
|
59991
|
+
var args38, tool$pricesCreatePrice;
|
|
59937
59992
|
var init_pricesCreatePrice2 = __esm(() => {
|
|
59938
59993
|
init_pricesCreatePrice();
|
|
59939
59994
|
init_createpricerequest();
|
|
59940
59995
|
init_tools();
|
|
59941
|
-
|
|
59996
|
+
args38 = {
|
|
59942
59997
|
request: CreatePriceRequest$zodSchema.describe(`Price configuration`)
|
|
59943
59998
|
};
|
|
59944
59999
|
tool$pricesCreatePrice = {
|
|
@@ -59954,9 +60009,9 @@ Use when adding a new price to a plan or catalog (e.g. per-seat, flat, or metere
|
|
|
59954
60009
|
openWorldHint: false,
|
|
59955
60010
|
readOnlyHint: false
|
|
59956
60011
|
},
|
|
59957
|
-
args:
|
|
59958
|
-
tool: async (client,
|
|
59959
|
-
const [result] = await pricesCreatePrice(client,
|
|
60012
|
+
args: args38,
|
|
60013
|
+
tool: async (client, args39, ctx) => {
|
|
60014
|
+
const [result] = await pricesCreatePrice(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59960
60015
|
if (!result.ok) {
|
|
59961
60016
|
return {
|
|
59962
60017
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59980,9 +60035,9 @@ var init_createbulkpricerequest = __esm(() => {
|
|
|
59980
60035
|
|
|
59981
60036
|
// src/funcs/pricesCreatePricesBulk.ts
|
|
59982
60037
|
function pricesCreatePricesBulk(client$, request, options) {
|
|
59983
|
-
return new APIPromise($
|
|
60038
|
+
return new APIPromise($do40(client$, request, options));
|
|
59984
60039
|
}
|
|
59985
|
-
async function $
|
|
60040
|
+
async function $do40(client$, request, options) {
|
|
59986
60041
|
const parsed$ = safeParse4(request, (value$) => CreateBulkPriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59987
60042
|
if (!parsed$.ok) {
|
|
59988
60043
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60052,12 +60107,12 @@ var init_pricesCreatePricesBulk = __esm(() => {
|
|
|
60052
60107
|
});
|
|
60053
60108
|
|
|
60054
60109
|
// src/mcp-server/tools/pricesCreatePricesBulk.ts
|
|
60055
|
-
var
|
|
60110
|
+
var args39, tool$pricesCreatePricesBulk;
|
|
60056
60111
|
var init_pricesCreatePricesBulk2 = __esm(() => {
|
|
60057
60112
|
init_pricesCreatePricesBulk();
|
|
60058
60113
|
init_createbulkpricerequest();
|
|
60059
60114
|
init_tools();
|
|
60060
|
-
|
|
60115
|
+
args39 = {
|
|
60061
60116
|
request: CreateBulkPriceRequest$zodSchema.describe(`Bulk price configuration`)
|
|
60062
60117
|
};
|
|
60063
60118
|
tool$pricesCreatePricesBulk = {
|
|
@@ -60073,9 +60128,9 @@ Use when creating many prices at once (e.g. importing a catalog or setting up a
|
|
|
60073
60128
|
openWorldHint: false,
|
|
60074
60129
|
readOnlyHint: false
|
|
60075
60130
|
},
|
|
60076
|
-
args:
|
|
60077
|
-
tool: async (client,
|
|
60078
|
-
const [result] = await pricesCreatePricesBulk(client,
|
|
60131
|
+
args: args39,
|
|
60132
|
+
tool: async (client, args40, ctx) => {
|
|
60133
|
+
const [result] = await pricesCreatePricesBulk(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60079
60134
|
if (!result.ok) {
|
|
60080
60135
|
return {
|
|
60081
60136
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60115,9 +60170,9 @@ var init_deletepriceop = __esm(() => {
|
|
|
60115
60170
|
|
|
60116
60171
|
// src/funcs/pricesDeletePrice.ts
|
|
60117
60172
|
function pricesDeletePrice(client$, request, options) {
|
|
60118
|
-
return new APIPromise($
|
|
60173
|
+
return new APIPromise($do41(client$, request, options));
|
|
60119
60174
|
}
|
|
60120
|
-
async function $
|
|
60175
|
+
async function $do41(client$, request, options) {
|
|
60121
60176
|
const parsed$ = safeParse4(request, (value$) => DeletePriceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60122
60177
|
if (!parsed$.ok) {
|
|
60123
60178
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60193,12 +60248,12 @@ var init_pricesDeletePrice = __esm(() => {
|
|
|
60193
60248
|
});
|
|
60194
60249
|
|
|
60195
60250
|
// src/mcp-server/tools/pricesDeletePrice.ts
|
|
60196
|
-
var
|
|
60251
|
+
var args40, tool$pricesDeletePrice;
|
|
60197
60252
|
var init_pricesDeletePrice2 = __esm(() => {
|
|
60198
60253
|
init_pricesDeletePrice();
|
|
60199
60254
|
init_deletepriceop();
|
|
60200
60255
|
init_tools();
|
|
60201
|
-
|
|
60256
|
+
args40 = {
|
|
60202
60257
|
request: DeletePriceRequestRequest$zodSchema
|
|
60203
60258
|
};
|
|
60204
60259
|
tool$pricesDeletePrice = {
|
|
@@ -60214,9 +60269,9 @@ Use when retiring a price (e.g. end-of-life or replacement). Optional effective
|
|
|
60214
60269
|
openWorldHint: false,
|
|
60215
60270
|
readOnlyHint: false
|
|
60216
60271
|
},
|
|
60217
|
-
args:
|
|
60218
|
-
tool: async (client,
|
|
60219
|
-
const [result] = await pricesDeletePrice(client,
|
|
60272
|
+
args: args40,
|
|
60273
|
+
tool: async (client, args41, ctx) => {
|
|
60274
|
+
const [result] = await pricesDeletePrice(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60220
60275
|
if (!result.ok) {
|
|
60221
60276
|
return {
|
|
60222
60277
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60245,9 +60300,9 @@ var init_getpriceop = __esm(() => {
|
|
|
60245
60300
|
|
|
60246
60301
|
// src/funcs/pricesGetPrice.ts
|
|
60247
60302
|
function pricesGetPrice(client$, request, options) {
|
|
60248
|
-
return new APIPromise($
|
|
60303
|
+
return new APIPromise($do42(client$, request, options));
|
|
60249
60304
|
}
|
|
60250
|
-
async function $
|
|
60305
|
+
async function $do42(client$, request, options) {
|
|
60251
60306
|
const parsed$ = safeParse4(request, (value$) => GetPriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60252
60307
|
if (!parsed$.ok) {
|
|
60253
60308
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60322,12 +60377,12 @@ var init_pricesGetPrice = __esm(() => {
|
|
|
60322
60377
|
});
|
|
60323
60378
|
|
|
60324
60379
|
// src/mcp-server/tools/pricesGetPrice.ts
|
|
60325
|
-
var
|
|
60380
|
+
var args41, tool$pricesGetPrice;
|
|
60326
60381
|
var init_pricesGetPrice2 = __esm(() => {
|
|
60327
60382
|
init_pricesGetPrice();
|
|
60328
60383
|
init_getpriceop();
|
|
60329
60384
|
init_tools();
|
|
60330
|
-
|
|
60385
|
+
args41 = {
|
|
60331
60386
|
request: GetPriceRequest$zodSchema
|
|
60332
60387
|
};
|
|
60333
60388
|
tool$pricesGetPrice = {
|
|
@@ -60343,9 +60398,9 @@ Use when you need to load a single price (e.g. for display or editing). Response
|
|
|
60343
60398
|
openWorldHint: false,
|
|
60344
60399
|
readOnlyHint: true
|
|
60345
60400
|
},
|
|
60346
|
-
args:
|
|
60347
|
-
tool: async (client,
|
|
60348
|
-
const [result] = await pricesGetPrice(client,
|
|
60401
|
+
args: args41,
|
|
60402
|
+
tool: async (client, args42, ctx) => {
|
|
60403
|
+
const [result] = await pricesGetPrice(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60349
60404
|
if (!result.ok) {
|
|
60350
60405
|
return {
|
|
60351
60406
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60374,9 +60429,9 @@ var init_getpricebylookupkeyop = __esm(() => {
|
|
|
60374
60429
|
|
|
60375
60430
|
// src/funcs/pricesGetPriceByLookupKey.ts
|
|
60376
60431
|
function pricesGetPriceByLookupKey(client$, request, options) {
|
|
60377
|
-
return new APIPromise($
|
|
60432
|
+
return new APIPromise($do43(client$, request, options));
|
|
60378
60433
|
}
|
|
60379
|
-
async function $
|
|
60434
|
+
async function $do43(client$, request, options) {
|
|
60380
60435
|
const parsed$ = safeParse4(request, (value$) => GetPriceByLookupKeyRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60381
60436
|
if (!parsed$.ok) {
|
|
60382
60437
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60451,12 +60506,12 @@ var init_pricesGetPriceByLookupKey = __esm(() => {
|
|
|
60451
60506
|
});
|
|
60452
60507
|
|
|
60453
60508
|
// src/mcp-server/tools/pricesGetPriceByLookupKey.ts
|
|
60454
|
-
var
|
|
60509
|
+
var args42, tool$pricesGetPriceByLookupKey;
|
|
60455
60510
|
var init_pricesGetPriceByLookupKey2 = __esm(() => {
|
|
60456
60511
|
init_pricesGetPriceByLookupKey();
|
|
60457
60512
|
init_getpricebylookupkeyop();
|
|
60458
60513
|
init_tools();
|
|
60459
|
-
|
|
60514
|
+
args42 = {
|
|
60460
60515
|
request: GetPriceByLookupKeyRequest$zodSchema
|
|
60461
60516
|
};
|
|
60462
60517
|
tool$pricesGetPriceByLookupKey = {
|
|
@@ -60472,9 +60527,9 @@ Use when resolving a price by external id (e.g. from your catalog or CMS). Ideal
|
|
|
60472
60527
|
openWorldHint: false,
|
|
60473
60528
|
readOnlyHint: true
|
|
60474
60529
|
},
|
|
60475
|
-
args:
|
|
60476
|
-
tool: async (client,
|
|
60477
|
-
const [result] = await pricesGetPriceByLookupKey(client,
|
|
60530
|
+
args: args42,
|
|
60531
|
+
tool: async (client, args43, ctx) => {
|
|
60532
|
+
const [result] = await pricesGetPriceByLookupKey(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60478
60533
|
if (!result.ok) {
|
|
60479
60534
|
return {
|
|
60480
60535
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60521,9 +60576,9 @@ var init_pricefilter = __esm(() => {
|
|
|
60521
60576
|
|
|
60522
60577
|
// src/funcs/pricesQueryPrice.ts
|
|
60523
60578
|
function pricesQueryPrice(client$, request, options) {
|
|
60524
|
-
return new APIPromise($
|
|
60579
|
+
return new APIPromise($do44(client$, request, options));
|
|
60525
60580
|
}
|
|
60526
|
-
async function $
|
|
60581
|
+
async function $do44(client$, request, options) {
|
|
60527
60582
|
const parsed$ = safeParse4(request, (value$) => PriceFilter$zodSchema.parse(value$), "Input validation failed");
|
|
60528
60583
|
if (!parsed$.ok) {
|
|
60529
60584
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60593,12 +60648,12 @@ var init_pricesQueryPrice = __esm(() => {
|
|
|
60593
60648
|
});
|
|
60594
60649
|
|
|
60595
60650
|
// src/mcp-server/tools/pricesQueryPrice.ts
|
|
60596
|
-
var
|
|
60651
|
+
var args43, tool$pricesQueryPrice;
|
|
60597
60652
|
var init_pricesQueryPrice2 = __esm(() => {
|
|
60598
60653
|
init_pricesQueryPrice();
|
|
60599
60654
|
init_pricefilter();
|
|
60600
60655
|
init_tools();
|
|
60601
|
-
|
|
60656
|
+
args43 = {
|
|
60602
60657
|
request: PriceFilter$zodSchema.describe(`Filter`)
|
|
60603
60658
|
};
|
|
60604
60659
|
tool$pricesQueryPrice = {
|
|
@@ -60614,9 +60669,9 @@ Use when listing or searching prices (e.g. plan builder or catalog). Returns a p
|
|
|
60614
60669
|
openWorldHint: false,
|
|
60615
60670
|
readOnlyHint: false
|
|
60616
60671
|
},
|
|
60617
|
-
args:
|
|
60618
|
-
tool: async (client,
|
|
60619
|
-
const [result] = await pricesQueryPrice(client,
|
|
60672
|
+
args: args43,
|
|
60673
|
+
tool: async (client, args44, ctx) => {
|
|
60674
|
+
const [result] = await pricesQueryPrice(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60620
60675
|
if (!result.ok) {
|
|
60621
60676
|
return {
|
|
60622
60677
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60676,9 +60731,9 @@ var init_updatepriceop = __esm(() => {
|
|
|
60676
60731
|
|
|
60677
60732
|
// src/funcs/pricesUpdatePrice.ts
|
|
60678
60733
|
function pricesUpdatePrice(client$, request, options) {
|
|
60679
|
-
return new APIPromise($
|
|
60734
|
+
return new APIPromise($do45(client$, request, options));
|
|
60680
60735
|
}
|
|
60681
|
-
async function $
|
|
60736
|
+
async function $do45(client$, request, options) {
|
|
60682
60737
|
const parsed$ = safeParse4(request, (value$) => UpdatePriceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60683
60738
|
if (!parsed$.ok) {
|
|
60684
60739
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60754,12 +60809,12 @@ var init_pricesUpdatePrice = __esm(() => {
|
|
|
60754
60809
|
});
|
|
60755
60810
|
|
|
60756
60811
|
// src/mcp-server/tools/pricesUpdatePrice.ts
|
|
60757
|
-
var
|
|
60812
|
+
var args44, tool$pricesUpdatePrice;
|
|
60758
60813
|
var init_pricesUpdatePrice2 = __esm(() => {
|
|
60759
60814
|
init_pricesUpdatePrice();
|
|
60760
60815
|
init_updatepriceop();
|
|
60761
60816
|
init_tools();
|
|
60762
|
-
|
|
60817
|
+
args44 = {
|
|
60763
60818
|
request: UpdatePriceRequestRequest$zodSchema
|
|
60764
60819
|
};
|
|
60765
60820
|
tool$pricesUpdatePrice = {
|
|
@@ -60775,9 +60830,9 @@ Use when changing price configuration (e.g. amount, billing scheme, or metadata)
|
|
|
60775
60830
|
openWorldHint: false,
|
|
60776
60831
|
readOnlyHint: false
|
|
60777
60832
|
},
|
|
60778
|
-
args:
|
|
60779
|
-
tool: async (client,
|
|
60780
|
-
const [result] = await pricesUpdatePrice(client,
|
|
60833
|
+
args: args44,
|
|
60834
|
+
tool: async (client, args45, ctx) => {
|
|
60835
|
+
const [result] = await pricesUpdatePrice(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60781
60836
|
if (!result.ok) {
|
|
60782
60837
|
return {
|
|
60783
60838
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60817,9 +60872,9 @@ var init_activatesubscriptionop = __esm(() => {
|
|
|
60817
60872
|
|
|
60818
60873
|
// src/funcs/subscriptionsActivateSubscription.ts
|
|
60819
60874
|
function subscriptionsActivateSubscription(client$, request, options) {
|
|
60820
|
-
return new APIPromise($
|
|
60875
|
+
return new APIPromise($do46(client$, request, options));
|
|
60821
60876
|
}
|
|
60822
|
-
async function $
|
|
60877
|
+
async function $do46(client$, request, options) {
|
|
60823
60878
|
const parsed$ = safeParse4(request, (value$) => ActivateSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60824
60879
|
if (!parsed$.ok) {
|
|
60825
60880
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60895,12 +60950,12 @@ var init_subscriptionsActivateSubscription = __esm(() => {
|
|
|
60895
60950
|
});
|
|
60896
60951
|
|
|
60897
60952
|
// src/mcp-server/tools/subscriptionsActivateSubscription.ts
|
|
60898
|
-
var
|
|
60953
|
+
var args45, tool$subscriptionsActivateSubscription;
|
|
60899
60954
|
var init_subscriptionsActivateSubscription2 = __esm(() => {
|
|
60900
60955
|
init_subscriptionsActivateSubscription();
|
|
60901
60956
|
init_activatesubscriptionop();
|
|
60902
60957
|
init_tools();
|
|
60903
|
-
|
|
60958
|
+
args45 = {
|
|
60904
60959
|
request: ActivateSubscriptionRequest$zodSchema
|
|
60905
60960
|
};
|
|
60906
60961
|
tool$subscriptionsActivateSubscription = {
|
|
@@ -60916,9 +60971,9 @@ Use when turning a draft subscription live (e.g. after collecting payment or com
|
|
|
60916
60971
|
openWorldHint: false,
|
|
60917
60972
|
readOnlyHint: false
|
|
60918
60973
|
},
|
|
60919
|
-
args:
|
|
60920
|
-
tool: async (client,
|
|
60921
|
-
const [result] = await subscriptionsActivateSubscription(client,
|
|
60974
|
+
args: args45,
|
|
60975
|
+
tool: async (client, args46, ctx) => {
|
|
60976
|
+
const [result] = await subscriptionsActivateSubscription(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60922
60977
|
if (!result.ok) {
|
|
60923
60978
|
return {
|
|
60924
60979
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60977,9 +61032,9 @@ var init_addaddonrequest = __esm(() => {
|
|
|
60977
61032
|
|
|
60978
61033
|
// src/funcs/subscriptionsAddSubscriptionAddon.ts
|
|
60979
61034
|
function subscriptionsAddSubscriptionAddon(client$, request, options) {
|
|
60980
|
-
return new APIPromise($
|
|
61035
|
+
return new APIPromise($do47(client$, request, options));
|
|
60981
61036
|
}
|
|
60982
|
-
async function $
|
|
61037
|
+
async function $do47(client$, request, options) {
|
|
60983
61038
|
const parsed$ = safeParse4(request, (value$) => AddAddonRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60984
61039
|
if (!parsed$.ok) {
|
|
60985
61040
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61049,12 +61104,12 @@ var init_subscriptionsAddSubscriptionAddon = __esm(() => {
|
|
|
61049
61104
|
});
|
|
61050
61105
|
|
|
61051
61106
|
// src/mcp-server/tools/subscriptionsAddSubscriptionAddon.ts
|
|
61052
|
-
var
|
|
61107
|
+
var args46, tool$subscriptionsAddSubscriptionAddon;
|
|
61053
61108
|
var init_subscriptionsAddSubscriptionAddon2 = __esm(() => {
|
|
61054
61109
|
init_subscriptionsAddSubscriptionAddon();
|
|
61055
61110
|
init_addaddonrequest();
|
|
61056
61111
|
init_tools();
|
|
61057
|
-
|
|
61112
|
+
args46 = {
|
|
61058
61113
|
request: AddAddonRequest$zodSchema.describe(`Add Addon Request`)
|
|
61059
61114
|
};
|
|
61060
61115
|
tool$subscriptionsAddSubscriptionAddon = {
|
|
@@ -61070,9 +61125,9 @@ Use when adding an optional product or add-on to an existing subscription (e.g.
|
|
|
61070
61125
|
openWorldHint: false,
|
|
61071
61126
|
readOnlyHint: false
|
|
61072
61127
|
},
|
|
61073
|
-
args:
|
|
61074
|
-
tool: async (client,
|
|
61075
|
-
const [result] = await subscriptionsAddSubscriptionAddon(client,
|
|
61128
|
+
args: args46,
|
|
61129
|
+
tool: async (client, args47, ctx) => {
|
|
61130
|
+
const [result] = await subscriptionsAddSubscriptionAddon(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61076
61131
|
if (!result.ok) {
|
|
61077
61132
|
return {
|
|
61078
61133
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61178,9 +61233,9 @@ var init_cancelsubscriptionop = __esm(() => {
|
|
|
61178
61233
|
|
|
61179
61234
|
// src/funcs/subscriptionsCancelSubscription.ts
|
|
61180
61235
|
function subscriptionsCancelSubscription(client$, request, options) {
|
|
61181
|
-
return new APIPromise($
|
|
61236
|
+
return new APIPromise($do48(client$, request, options));
|
|
61182
61237
|
}
|
|
61183
|
-
async function $
|
|
61238
|
+
async function $do48(client$, request, options) {
|
|
61184
61239
|
const parsed$ = safeParse4(request, (value$) => CancelSubscriptionRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61185
61240
|
if (!parsed$.ok) {
|
|
61186
61241
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61256,12 +61311,12 @@ var init_subscriptionsCancelSubscription = __esm(() => {
|
|
|
61256
61311
|
});
|
|
61257
61312
|
|
|
61258
61313
|
// src/mcp-server/tools/subscriptionsCancelSubscription.ts
|
|
61259
|
-
var
|
|
61314
|
+
var args47, tool$subscriptionsCancelSubscription;
|
|
61260
61315
|
var init_subscriptionsCancelSubscription2 = __esm(() => {
|
|
61261
61316
|
init_subscriptionsCancelSubscription();
|
|
61262
61317
|
init_cancelsubscriptionop();
|
|
61263
61318
|
init_tools();
|
|
61264
|
-
|
|
61319
|
+
args47 = {
|
|
61265
61320
|
request: CancelSubscriptionRequestRequest$zodSchema
|
|
61266
61321
|
};
|
|
61267
61322
|
tool$subscriptionsCancelSubscription = {
|
|
@@ -61277,9 +61332,9 @@ Use when a customer churns or downgrades. Supports immediate or end-of-period ca
|
|
|
61277
61332
|
openWorldHint: false,
|
|
61278
61333
|
readOnlyHint: false
|
|
61279
61334
|
},
|
|
61280
|
-
args:
|
|
61281
|
-
tool: async (client,
|
|
61282
|
-
const [result] = await subscriptionsCancelSubscription(client,
|
|
61335
|
+
args: args47,
|
|
61336
|
+
tool: async (client, args48, ctx) => {
|
|
61337
|
+
const [result] = await subscriptionsCancelSubscription(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61283
61338
|
if (!result.ok) {
|
|
61284
61339
|
return {
|
|
61285
61340
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61326,9 +61381,9 @@ var init_cancelsubscriptionscheduleop = __esm(() => {
|
|
|
61326
61381
|
|
|
61327
61382
|
// src/funcs/subscriptionsCancelSubscriptionSchedule.ts
|
|
61328
61383
|
function subscriptionsCancelSubscriptionSchedule(client$, request, options) {
|
|
61329
|
-
return new APIPromise($
|
|
61384
|
+
return new APIPromise($do49(client$, request, options));
|
|
61330
61385
|
}
|
|
61331
|
-
async function $
|
|
61386
|
+
async function $do49(client$, request, options) {
|
|
61332
61387
|
const parsed$ = safeParse4(request, (value$) => CancelSubscriptionScheduleRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61333
61388
|
if (!parsed$.ok) {
|
|
61334
61389
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61404,12 +61459,12 @@ var init_subscriptionsCancelSubscriptionSchedule = __esm(() => {
|
|
|
61404
61459
|
});
|
|
61405
61460
|
|
|
61406
61461
|
// src/mcp-server/tools/subscriptionsCancelSubscriptionSchedule.ts
|
|
61407
|
-
var
|
|
61462
|
+
var args48, tool$subscriptionsCancelSubscriptionSchedule;
|
|
61408
61463
|
var init_subscriptionsCancelSubscriptionSchedule2 = __esm(() => {
|
|
61409
61464
|
init_subscriptionsCancelSubscriptionSchedule();
|
|
61410
61465
|
init_cancelsubscriptionscheduleop();
|
|
61411
61466
|
init_tools();
|
|
61412
|
-
|
|
61467
|
+
args48 = {
|
|
61413
61468
|
request: CancelSubscriptionScheduleRequest$zodSchema
|
|
61414
61469
|
};
|
|
61415
61470
|
tool$subscriptionsCancelSubscriptionSchedule = {
|
|
@@ -61425,9 +61480,9 @@ Use when cancelling a scheduled change (e.g. customer changed mind). Identify by
|
|
|
61425
61480
|
openWorldHint: false,
|
|
61426
61481
|
readOnlyHint: false
|
|
61427
61482
|
},
|
|
61428
|
-
args:
|
|
61429
|
-
tool: async (client,
|
|
61430
|
-
const [result] = await subscriptionsCancelSubscriptionSchedule(client,
|
|
61483
|
+
args: args48,
|
|
61484
|
+
tool: async (client, args49, ctx) => {
|
|
61485
|
+
const [result] = await subscriptionsCancelSubscriptionSchedule(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61431
61486
|
if (!result.ok) {
|
|
61432
61487
|
return {
|
|
61433
61488
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61722,9 +61777,9 @@ and must be same as what you provided as external_id while creating the customer
|
|
|
61722
61777
|
|
|
61723
61778
|
// src/funcs/subscriptionsCreateSubscription.ts
|
|
61724
61779
|
function subscriptionsCreateSubscription(client$, request, options) {
|
|
61725
|
-
return new APIPromise($
|
|
61780
|
+
return new APIPromise($do50(client$, request, options));
|
|
61726
61781
|
}
|
|
61727
|
-
async function $
|
|
61782
|
+
async function $do50(client$, request, options) {
|
|
61728
61783
|
const parsed$ = safeParse4(request, (value$) => CreateSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61729
61784
|
if (!parsed$.ok) {
|
|
61730
61785
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61794,12 +61849,12 @@ var init_subscriptionsCreateSubscription = __esm(() => {
|
|
|
61794
61849
|
});
|
|
61795
61850
|
|
|
61796
61851
|
// src/mcp-server/tools/subscriptionsCreateSubscription.ts
|
|
61797
|
-
var
|
|
61852
|
+
var args49, tool$subscriptionsCreateSubscription;
|
|
61798
61853
|
var init_subscriptionsCreateSubscription2 = __esm(() => {
|
|
61799
61854
|
init_subscriptionsCreateSubscription();
|
|
61800
61855
|
init_createsubscriptionrequest();
|
|
61801
61856
|
init_tools();
|
|
61802
|
-
|
|
61857
|
+
args49 = {
|
|
61803
61858
|
request: CreateSubscriptionRequest$zodSchema.describe(`Subscription Request`)
|
|
61804
61859
|
};
|
|
61805
61860
|
tool$subscriptionsCreateSubscription = {
|
|
@@ -61815,9 +61870,9 @@ Use when onboarding a customer to a plan or starting a new subscription. Ideal f
|
|
|
61815
61870
|
openWorldHint: false,
|
|
61816
61871
|
readOnlyHint: false
|
|
61817
61872
|
},
|
|
61818
|
-
args:
|
|
61819
|
-
tool: async (client,
|
|
61820
|
-
const [result] = await subscriptionsCreateSubscription(client,
|
|
61873
|
+
args: args49,
|
|
61874
|
+
tool: async (client, args50, ctx) => {
|
|
61875
|
+
const [result] = await subscriptionsCreateSubscription(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61821
61876
|
if (!result.ok) {
|
|
61822
61877
|
return {
|
|
61823
61878
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61901,9 +61956,9 @@ var init_createsubscriptionlineitemop = __esm(() => {
|
|
|
61901
61956
|
|
|
61902
61957
|
// src/funcs/subscriptionsCreateSubscriptionLineItem.ts
|
|
61903
61958
|
function subscriptionsCreateSubscriptionLineItem(client$, request, options) {
|
|
61904
|
-
return new APIPromise($
|
|
61959
|
+
return new APIPromise($do51(client$, request, options));
|
|
61905
61960
|
}
|
|
61906
|
-
async function $
|
|
61961
|
+
async function $do51(client$, request, options) {
|
|
61907
61962
|
const parsed$ = safeParse4(request, (value$) => CreateSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61908
61963
|
if (!parsed$.ok) {
|
|
61909
61964
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61979,12 +62034,12 @@ var init_subscriptionsCreateSubscriptionLineItem = __esm(() => {
|
|
|
61979
62034
|
});
|
|
61980
62035
|
|
|
61981
62036
|
// src/mcp-server/tools/subscriptionsCreateSubscriptionLineItem.ts
|
|
61982
|
-
var
|
|
62037
|
+
var args50, tool$subscriptionsCreateSubscriptionLineItem;
|
|
61983
62038
|
var init_subscriptionsCreateSubscriptionLineItem2 = __esm(() => {
|
|
61984
62039
|
init_subscriptionsCreateSubscriptionLineItem();
|
|
61985
62040
|
init_createsubscriptionlineitemop();
|
|
61986
62041
|
init_tools();
|
|
61987
|
-
|
|
62042
|
+
args50 = {
|
|
61988
62043
|
request: CreateSubscriptionLineItemRequestRequest$zodSchema
|
|
61989
62044
|
};
|
|
61990
62045
|
tool$subscriptionsCreateSubscriptionLineItem = {
|
|
@@ -62000,9 +62055,9 @@ Use when adding a new charge or seat to a subscription (e.g. extra seat or one-t
|
|
|
62000
62055
|
openWorldHint: false,
|
|
62001
62056
|
readOnlyHint: false
|
|
62002
62057
|
},
|
|
62003
|
-
args:
|
|
62004
|
-
tool: async (client,
|
|
62005
|
-
const [result] = await subscriptionsCreateSubscriptionLineItem(client,
|
|
62058
|
+
args: args50,
|
|
62059
|
+
tool: async (client, args51, ctx) => {
|
|
62060
|
+
const [result] = await subscriptionsCreateSubscriptionLineItem(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62006
62061
|
if (!result.ok) {
|
|
62007
62062
|
return {
|
|
62008
62063
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62044,9 +62099,9 @@ var init_deletesubscriptionlineitemop = __esm(() => {
|
|
|
62044
62099
|
|
|
62045
62100
|
// src/funcs/subscriptionsDeleteSubscriptionLineItem.ts
|
|
62046
62101
|
function subscriptionsDeleteSubscriptionLineItem(client$, request, options) {
|
|
62047
|
-
return new APIPromise($
|
|
62102
|
+
return new APIPromise($do52(client$, request, options));
|
|
62048
62103
|
}
|
|
62049
|
-
async function $
|
|
62104
|
+
async function $do52(client$, request, options) {
|
|
62050
62105
|
const parsed$ = safeParse4(request, (value$) => DeleteSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62051
62106
|
if (!parsed$.ok) {
|
|
62052
62107
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62122,12 +62177,12 @@ var init_subscriptionsDeleteSubscriptionLineItem = __esm(() => {
|
|
|
62122
62177
|
});
|
|
62123
62178
|
|
|
62124
62179
|
// src/mcp-server/tools/subscriptionsDeleteSubscriptionLineItem.ts
|
|
62125
|
-
var
|
|
62180
|
+
var args51, tool$subscriptionsDeleteSubscriptionLineItem;
|
|
62126
62181
|
var init_subscriptionsDeleteSubscriptionLineItem2 = __esm(() => {
|
|
62127
62182
|
init_subscriptionsDeleteSubscriptionLineItem();
|
|
62128
62183
|
init_deletesubscriptionlineitemop();
|
|
62129
62184
|
init_tools();
|
|
62130
|
-
|
|
62185
|
+
args51 = {
|
|
62131
62186
|
request: DeleteSubscriptionLineItemRequestRequest$zodSchema
|
|
62132
62187
|
};
|
|
62133
62188
|
tool$subscriptionsDeleteSubscriptionLineItem = {
|
|
@@ -62143,9 +62198,9 @@ Use when removing a charge or seat from a subscription (e.g. downgrade). Line it
|
|
|
62143
62198
|
openWorldHint: false,
|
|
62144
62199
|
readOnlyHint: false
|
|
62145
62200
|
},
|
|
62146
|
-
args:
|
|
62147
|
-
tool: async (client,
|
|
62148
|
-
const [result] = await subscriptionsDeleteSubscriptionLineItem(client,
|
|
62201
|
+
args: args51,
|
|
62202
|
+
tool: async (client, args52, ctx) => {
|
|
62203
|
+
const [result] = await subscriptionsDeleteSubscriptionLineItem(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62149
62204
|
if (!result.ok) {
|
|
62150
62205
|
return {
|
|
62151
62206
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62278,9 +62333,9 @@ var init_executesubscriptionchangeop = __esm(() => {
|
|
|
62278
62333
|
|
|
62279
62334
|
// src/funcs/subscriptionsExecuteSubscriptionChange.ts
|
|
62280
62335
|
function subscriptionsExecuteSubscriptionChange(client$, request, options) {
|
|
62281
|
-
return new APIPromise($
|
|
62336
|
+
return new APIPromise($do53(client$, request, options));
|
|
62282
62337
|
}
|
|
62283
|
-
async function $
|
|
62338
|
+
async function $do53(client$, request, options) {
|
|
62284
62339
|
const parsed$ = safeParse4(request, (value$) => ExecuteSubscriptionChangeRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62285
62340
|
if (!parsed$.ok) {
|
|
62286
62341
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62356,12 +62411,12 @@ var init_subscriptionsExecuteSubscriptionChange = __esm(() => {
|
|
|
62356
62411
|
});
|
|
62357
62412
|
|
|
62358
62413
|
// src/mcp-server/tools/subscriptionsExecuteSubscriptionChange.ts
|
|
62359
|
-
var
|
|
62414
|
+
var args52, tool$subscriptionsExecuteSubscriptionChange;
|
|
62360
62415
|
var init_subscriptionsExecuteSubscriptionChange2 = __esm(() => {
|
|
62361
62416
|
init_subscriptionsExecuteSubscriptionChange();
|
|
62362
62417
|
init_executesubscriptionchangeop();
|
|
62363
62418
|
init_tools();
|
|
62364
|
-
|
|
62419
|
+
args52 = {
|
|
62365
62420
|
request: ExecuteSubscriptionChangeRequest$zodSchema
|
|
62366
62421
|
};
|
|
62367
62422
|
tool$subscriptionsExecuteSubscriptionChange = {
|
|
@@ -62377,9 +62432,9 @@ Use when applying a plan change (e.g. upgrade or downgrade). Executes proration
|
|
|
62377
62432
|
openWorldHint: false,
|
|
62378
62433
|
readOnlyHint: false
|
|
62379
62434
|
},
|
|
62380
|
-
args:
|
|
62381
|
-
tool: async (client,
|
|
62382
|
-
const [result] = await subscriptionsExecuteSubscriptionChange(client,
|
|
62435
|
+
args: args52,
|
|
62436
|
+
tool: async (client, args53, ctx) => {
|
|
62437
|
+
const [result] = await subscriptionsExecuteSubscriptionChange(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62383
62438
|
if (!result.ok) {
|
|
62384
62439
|
return {
|
|
62385
62440
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62892,9 +62947,9 @@ var init_executesubscriptionmodifyop = __esm(() => {
|
|
|
62892
62947
|
|
|
62893
62948
|
// src/funcs/subscriptionsExecuteSubscriptionModify.ts
|
|
62894
62949
|
function subscriptionsExecuteSubscriptionModify(client$, request, options) {
|
|
62895
|
-
return new APIPromise($
|
|
62950
|
+
return new APIPromise($do54(client$, request, options));
|
|
62896
62951
|
}
|
|
62897
|
-
async function $
|
|
62952
|
+
async function $do54(client$, request, options) {
|
|
62898
62953
|
const parsed$ = safeParse4(request, (value$) => ExecuteSubscriptionModifyRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62899
62954
|
if (!parsed$.ok) {
|
|
62900
62955
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62970,12 +63025,12 @@ var init_subscriptionsExecuteSubscriptionModify = __esm(() => {
|
|
|
62970
63025
|
});
|
|
62971
63026
|
|
|
62972
63027
|
// src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts
|
|
62973
|
-
var
|
|
63028
|
+
var args53, tool$subscriptionsExecuteSubscriptionModify;
|
|
62974
63029
|
var init_subscriptionsExecuteSubscriptionModify2 = __esm(() => {
|
|
62975
63030
|
init_subscriptionsExecuteSubscriptionModify();
|
|
62976
63031
|
init_executesubscriptionmodifyop();
|
|
62977
63032
|
init_tools();
|
|
62978
|
-
|
|
63033
|
+
args53 = {
|
|
62979
63034
|
request: ExecuteSubscriptionModifyRequestRequest$zodSchema
|
|
62980
63035
|
};
|
|
62981
63036
|
tool$subscriptionsExecuteSubscriptionModify = {
|
|
@@ -62991,9 +63046,9 @@ Execute a mid-cycle subscription modification (inheritance or quantity change).`
|
|
|
62991
63046
|
openWorldHint: false,
|
|
62992
63047
|
readOnlyHint: false
|
|
62993
63048
|
},
|
|
62994
|
-
args:
|
|
62995
|
-
tool: async (client,
|
|
62996
|
-
const [result] = await subscriptionsExecuteSubscriptionModify(client,
|
|
63049
|
+
args: args53,
|
|
63050
|
+
tool: async (client, args54, ctx) => {
|
|
63051
|
+
const [result] = await subscriptionsExecuteSubscriptionModify(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62997
63052
|
if (!result.ok) {
|
|
62998
63053
|
return {
|
|
62999
63054
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63022,9 +63077,9 @@ var init_getsubscriptionop = __esm(() => {
|
|
|
63022
63077
|
|
|
63023
63078
|
// src/funcs/subscriptionsGetSubscription.ts
|
|
63024
63079
|
function subscriptionsGetSubscription(client$, request, options) {
|
|
63025
|
-
return new APIPromise($
|
|
63080
|
+
return new APIPromise($do55(client$, request, options));
|
|
63026
63081
|
}
|
|
63027
|
-
async function $
|
|
63082
|
+
async function $do55(client$, request, options) {
|
|
63028
63083
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63029
63084
|
if (!parsed$.ok) {
|
|
63030
63085
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63099,12 +63154,12 @@ var init_subscriptionsGetSubscription = __esm(() => {
|
|
|
63099
63154
|
});
|
|
63100
63155
|
|
|
63101
63156
|
// src/mcp-server/tools/subscriptionsGetSubscription.ts
|
|
63102
|
-
var
|
|
63157
|
+
var args54, tool$subscriptionsGetSubscription;
|
|
63103
63158
|
var init_subscriptionsGetSubscription2 = __esm(() => {
|
|
63104
63159
|
init_subscriptionsGetSubscription();
|
|
63105
63160
|
init_getsubscriptionop();
|
|
63106
63161
|
init_tools();
|
|
63107
|
-
|
|
63162
|
+
args54 = {
|
|
63108
63163
|
request: GetSubscriptionRequest$zodSchema
|
|
63109
63164
|
};
|
|
63110
63165
|
tool$subscriptionsGetSubscription = {
|
|
@@ -63120,9 +63175,9 @@ Use when you need to load a single subscription (e.g. for a billing portal or to
|
|
|
63120
63175
|
openWorldHint: false,
|
|
63121
63176
|
readOnlyHint: true
|
|
63122
63177
|
},
|
|
63123
|
-
args:
|
|
63124
|
-
tool: async (client,
|
|
63125
|
-
const [result] = await subscriptionsGetSubscription(client,
|
|
63178
|
+
args: args54,
|
|
63179
|
+
tool: async (client, args55, ctx) => {
|
|
63180
|
+
const [result] = await subscriptionsGetSubscription(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63126
63181
|
if (!result.ok) {
|
|
63127
63182
|
return {
|
|
63128
63183
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63205,9 +63260,9 @@ var init_getsubscriptionaddonassociationsop = __esm(() => {
|
|
|
63205
63260
|
|
|
63206
63261
|
// src/funcs/subscriptionsGetSubscriptionAddonAssociations.ts
|
|
63207
63262
|
function subscriptionsGetSubscriptionAddonAssociations(client$, request, options) {
|
|
63208
|
-
return new APIPromise($
|
|
63263
|
+
return new APIPromise($do56(client$, request, options));
|
|
63209
63264
|
}
|
|
63210
|
-
async function $
|
|
63265
|
+
async function $do56(client$, request, options) {
|
|
63211
63266
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionAddonAssociationsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63212
63267
|
if (!parsed$.ok) {
|
|
63213
63268
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63282,12 +63337,12 @@ var init_subscriptionsGetSubscriptionAddonAssociations = __esm(() => {
|
|
|
63282
63337
|
});
|
|
63283
63338
|
|
|
63284
63339
|
// src/mcp-server/tools/subscriptionsGetSubscriptionAddonAssociations.ts
|
|
63285
|
-
var
|
|
63340
|
+
var args55, tool$subscriptionsGetSubscriptionAddonAssociations;
|
|
63286
63341
|
var init_subscriptionsGetSubscriptionAddonAssociations2 = __esm(() => {
|
|
63287
63342
|
init_subscriptionsGetSubscriptionAddonAssociations();
|
|
63288
63343
|
init_getsubscriptionaddonassociationsop();
|
|
63289
63344
|
init_tools();
|
|
63290
|
-
|
|
63345
|
+
args55 = {
|
|
63291
63346
|
request: GetSubscriptionAddonAssociationsRequest$zodSchema
|
|
63292
63347
|
};
|
|
63293
63348
|
tool$subscriptionsGetSubscriptionAddonAssociations = {
|
|
@@ -63303,9 +63358,9 @@ Use when listing which add-ons are currently attached to a subscription (e.g. fo
|
|
|
63303
63358
|
openWorldHint: false,
|
|
63304
63359
|
readOnlyHint: true
|
|
63305
63360
|
},
|
|
63306
|
-
args:
|
|
63307
|
-
tool: async (client,
|
|
63308
|
-
const [result] = await subscriptionsGetSubscriptionAddonAssociations(client,
|
|
63361
|
+
args: args55,
|
|
63362
|
+
tool: async (client, args56, ctx) => {
|
|
63363
|
+
const [result] = await subscriptionsGetSubscriptionAddonAssociations(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63309
63364
|
if (!result.ok) {
|
|
63310
63365
|
return {
|
|
63311
63366
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63347,9 +63402,9 @@ var init_getsubscriptionentitlementsop = __esm(() => {
|
|
|
63347
63402
|
|
|
63348
63403
|
// src/funcs/subscriptionsGetSubscriptionEntitlements.ts
|
|
63349
63404
|
function subscriptionsGetSubscriptionEntitlements(client$, request, options) {
|
|
63350
|
-
return new APIPromise($
|
|
63405
|
+
return new APIPromise($do57(client$, request, options));
|
|
63351
63406
|
}
|
|
63352
|
-
async function $
|
|
63407
|
+
async function $do57(client$, request, options) {
|
|
63353
63408
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionEntitlementsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63354
63409
|
if (!parsed$.ok) {
|
|
63355
63410
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63428,12 +63483,12 @@ var init_subscriptionsGetSubscriptionEntitlements = __esm(() => {
|
|
|
63428
63483
|
});
|
|
63429
63484
|
|
|
63430
63485
|
// src/mcp-server/tools/subscriptionsGetSubscriptionEntitlements.ts
|
|
63431
|
-
var
|
|
63486
|
+
var args56, tool$subscriptionsGetSubscriptionEntitlements;
|
|
63432
63487
|
var init_subscriptionsGetSubscriptionEntitlements2 = __esm(() => {
|
|
63433
63488
|
init_subscriptionsGetSubscriptionEntitlements();
|
|
63434
63489
|
init_getsubscriptionentitlementsop();
|
|
63435
63490
|
init_tools();
|
|
63436
|
-
|
|
63491
|
+
args56 = {
|
|
63437
63492
|
request: GetSubscriptionEntitlementsRequest$zodSchema
|
|
63438
63493
|
};
|
|
63439
63494
|
tool$subscriptionsGetSubscriptionEntitlements = {
|
|
@@ -63449,9 +63504,9 @@ Use when checking what features or limits a subscription has (e.g. entitlement c
|
|
|
63449
63504
|
openWorldHint: false,
|
|
63450
63505
|
readOnlyHint: true
|
|
63451
63506
|
},
|
|
63452
|
-
args:
|
|
63453
|
-
tool: async (client,
|
|
63454
|
-
const [result] = await subscriptionsGetSubscriptionEntitlements(client,
|
|
63507
|
+
args: args56,
|
|
63508
|
+
tool: async (client, args57, ctx) => {
|
|
63509
|
+
const [result] = await subscriptionsGetSubscriptionEntitlements(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63455
63510
|
if (!result.ok) {
|
|
63456
63511
|
return {
|
|
63457
63512
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63474,9 +63529,9 @@ var init_getsubscriptionscheduleop = __esm(() => {
|
|
|
63474
63529
|
|
|
63475
63530
|
// src/funcs/subscriptionsGetSubscriptionSchedule.ts
|
|
63476
63531
|
function subscriptionsGetSubscriptionSchedule(client$, request, options) {
|
|
63477
|
-
return new APIPromise($
|
|
63532
|
+
return new APIPromise($do58(client$, request, options));
|
|
63478
63533
|
}
|
|
63479
|
-
async function $
|
|
63534
|
+
async function $do58(client$, request, options) {
|
|
63480
63535
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionScheduleRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63481
63536
|
if (!parsed$.ok) {
|
|
63482
63537
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63551,12 +63606,12 @@ var init_subscriptionsGetSubscriptionSchedule = __esm(() => {
|
|
|
63551
63606
|
});
|
|
63552
63607
|
|
|
63553
63608
|
// src/mcp-server/tools/subscriptionsGetSubscriptionSchedule.ts
|
|
63554
|
-
var
|
|
63609
|
+
var args57, tool$subscriptionsGetSubscriptionSchedule;
|
|
63555
63610
|
var init_subscriptionsGetSubscriptionSchedule2 = __esm(() => {
|
|
63556
63611
|
init_subscriptionsGetSubscriptionSchedule();
|
|
63557
63612
|
init_getsubscriptionscheduleop();
|
|
63558
63613
|
init_tools();
|
|
63559
|
-
|
|
63614
|
+
args57 = {
|
|
63560
63615
|
request: GetSubscriptionScheduleRequest$zodSchema
|
|
63561
63616
|
};
|
|
63562
63617
|
tool$subscriptionsGetSubscriptionSchedule = {
|
|
@@ -63572,9 +63627,9 @@ Use when you need to load a single scheduled change (e.g. to show when a plan ch
|
|
|
63572
63627
|
openWorldHint: false,
|
|
63573
63628
|
readOnlyHint: true
|
|
63574
63629
|
},
|
|
63575
|
-
args:
|
|
63576
|
-
tool: async (client,
|
|
63577
|
-
const [result] = await subscriptionsGetSubscriptionSchedule(client,
|
|
63630
|
+
args: args57,
|
|
63631
|
+
tool: async (client, args58, ctx) => {
|
|
63632
|
+
const [result] = await subscriptionsGetSubscriptionSchedule(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63578
63633
|
if (!result.ok) {
|
|
63579
63634
|
return {
|
|
63580
63635
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63603,9 +63658,9 @@ var init_getsubscriptionupcominggrantsop = __esm(() => {
|
|
|
63603
63658
|
|
|
63604
63659
|
// src/funcs/subscriptionsGetSubscriptionUpcomingGrants.ts
|
|
63605
63660
|
function subscriptionsGetSubscriptionUpcomingGrants(client$, request, options) {
|
|
63606
|
-
return new APIPromise($
|
|
63661
|
+
return new APIPromise($do59(client$, request, options));
|
|
63607
63662
|
}
|
|
63608
|
-
async function $
|
|
63663
|
+
async function $do59(client$, request, options) {
|
|
63609
63664
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionUpcomingGrantsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63610
63665
|
if (!parsed$.ok) {
|
|
63611
63666
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63680,12 +63735,12 @@ var init_subscriptionsGetSubscriptionUpcomingGrants = __esm(() => {
|
|
|
63680
63735
|
});
|
|
63681
63736
|
|
|
63682
63737
|
// src/mcp-server/tools/subscriptionsGetSubscriptionUpcomingGrants.ts
|
|
63683
|
-
var
|
|
63738
|
+
var args58, tool$subscriptionsGetSubscriptionUpcomingGrants;
|
|
63684
63739
|
var init_subscriptionsGetSubscriptionUpcomingGrants2 = __esm(() => {
|
|
63685
63740
|
init_subscriptionsGetSubscriptionUpcomingGrants();
|
|
63686
63741
|
init_getsubscriptionupcominggrantsop();
|
|
63687
63742
|
init_tools();
|
|
63688
|
-
|
|
63743
|
+
args58 = {
|
|
63689
63744
|
request: GetSubscriptionUpcomingGrantsRequest$zodSchema
|
|
63690
63745
|
};
|
|
63691
63746
|
tool$subscriptionsGetSubscriptionUpcomingGrants = {
|
|
@@ -63701,9 +63756,9 @@ Use when showing upcoming or pending credits for a subscription (e.g. in a porta
|
|
|
63701
63756
|
openWorldHint: false,
|
|
63702
63757
|
readOnlyHint: true
|
|
63703
63758
|
},
|
|
63704
|
-
args:
|
|
63705
|
-
tool: async (client,
|
|
63706
|
-
const [result] = await subscriptionsGetSubscriptionUpcomingGrants(client,
|
|
63759
|
+
args: args58,
|
|
63760
|
+
tool: async (client, args59, ctx) => {
|
|
63761
|
+
const [result] = await subscriptionsGetSubscriptionUpcomingGrants(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63707
63762
|
if (!result.ok) {
|
|
63708
63763
|
return {
|
|
63709
63764
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63729,9 +63784,9 @@ var init_getusagebysubscriptionrequest = __esm(() => {
|
|
|
63729
63784
|
|
|
63730
63785
|
// src/funcs/subscriptionsGetSubscriptionUsage.ts
|
|
63731
63786
|
function subscriptionsGetSubscriptionUsage(client$, request, options) {
|
|
63732
|
-
return new APIPromise($
|
|
63787
|
+
return new APIPromise($do60(client$, request, options));
|
|
63733
63788
|
}
|
|
63734
|
-
async function $
|
|
63789
|
+
async function $do60(client$, request, options) {
|
|
63735
63790
|
const parsed$ = safeParse4(request, (value$) => GetUsageBySubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63736
63791
|
if (!parsed$.ok) {
|
|
63737
63792
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63801,12 +63856,12 @@ var init_subscriptionsGetSubscriptionUsage = __esm(() => {
|
|
|
63801
63856
|
});
|
|
63802
63857
|
|
|
63803
63858
|
// src/mcp-server/tools/subscriptionsGetSubscriptionUsage.ts
|
|
63804
|
-
var
|
|
63859
|
+
var args59, tool$subscriptionsGetSubscriptionUsage;
|
|
63805
63860
|
var init_subscriptionsGetSubscriptionUsage2 = __esm(() => {
|
|
63806
63861
|
init_subscriptionsGetSubscriptionUsage();
|
|
63807
63862
|
init_getusagebysubscriptionrequest();
|
|
63808
63863
|
init_tools();
|
|
63809
|
-
|
|
63864
|
+
args59 = {
|
|
63810
63865
|
request: GetUsageBySubscriptionRequest$zodSchema.describe(`Usage request`)
|
|
63811
63866
|
};
|
|
63812
63867
|
tool$subscriptionsGetSubscriptionUsage = {
|
|
@@ -63822,9 +63877,9 @@ Use when showing usage for a subscription (e.g. in a portal or for overage check
|
|
|
63822
63877
|
openWorldHint: false,
|
|
63823
63878
|
readOnlyHint: false
|
|
63824
63879
|
},
|
|
63825
|
-
args:
|
|
63826
|
-
tool: async (client,
|
|
63827
|
-
const [result] = await subscriptionsGetSubscriptionUsage(client,
|
|
63880
|
+
args: args59,
|
|
63881
|
+
tool: async (client, args60, ctx) => {
|
|
63882
|
+
const [result] = await subscriptionsGetSubscriptionUsage(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63828
63883
|
if (!result.ok) {
|
|
63829
63884
|
return {
|
|
63830
63885
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63939,9 +63994,9 @@ var init_getsubscriptionv2op = __esm(() => {
|
|
|
63939
63994
|
|
|
63940
63995
|
// src/funcs/subscriptionsGetSubscriptionV2.ts
|
|
63941
63996
|
function subscriptionsGetSubscriptionV2(client$, request, options) {
|
|
63942
|
-
return new APIPromise($
|
|
63997
|
+
return new APIPromise($do61(client$, request, options));
|
|
63943
63998
|
}
|
|
63944
|
-
async function $
|
|
63999
|
+
async function $do61(client$, request, options) {
|
|
63945
64000
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionV2Request$zodSchema.parse(value$), "Input validation failed");
|
|
63946
64001
|
if (!parsed$.ok) {
|
|
63947
64002
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64020,12 +64075,12 @@ var init_subscriptionsGetSubscriptionV2 = __esm(() => {
|
|
|
64020
64075
|
});
|
|
64021
64076
|
|
|
64022
64077
|
// src/mcp-server/tools/subscriptionsGetSubscriptionV2.ts
|
|
64023
|
-
var
|
|
64078
|
+
var args60, tool$subscriptionsGetSubscriptionV2;
|
|
64024
64079
|
var init_subscriptionsGetSubscriptionV22 = __esm(() => {
|
|
64025
64080
|
init_subscriptionsGetSubscriptionV2();
|
|
64026
64081
|
init_getsubscriptionv2op();
|
|
64027
64082
|
init_tools();
|
|
64028
|
-
|
|
64083
|
+
args60 = {
|
|
64029
64084
|
request: GetSubscriptionV2Request$zodSchema
|
|
64030
64085
|
};
|
|
64031
64086
|
tool$subscriptionsGetSubscriptionV2 = {
|
|
@@ -64041,9 +64096,9 @@ Use when you need a subscription with related data (line items, prices, plan). S
|
|
|
64041
64096
|
openWorldHint: false,
|
|
64042
64097
|
readOnlyHint: true
|
|
64043
64098
|
},
|
|
64044
|
-
args:
|
|
64045
|
-
tool: async (client,
|
|
64046
|
-
const [result] = await subscriptionsGetSubscriptionV2(client,
|
|
64099
|
+
args: args60,
|
|
64100
|
+
tool: async (client, args61, ctx) => {
|
|
64101
|
+
const [result] = await subscriptionsGetSubscriptionV2(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64047
64102
|
if (!result.ok) {
|
|
64048
64103
|
return {
|
|
64049
64104
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64069,9 +64124,9 @@ var init_listallsubscriptionschedulesop = __esm(() => {
|
|
|
64069
64124
|
|
|
64070
64125
|
// src/funcs/subscriptionsListAllSubscriptionSchedules.ts
|
|
64071
64126
|
function subscriptionsListAllSubscriptionSchedules(client$, request, options) {
|
|
64072
|
-
return new APIPromise($
|
|
64127
|
+
return new APIPromise($do62(client$, request, options));
|
|
64073
64128
|
}
|
|
64074
|
-
async function $
|
|
64129
|
+
async function $do62(client$, request, options) {
|
|
64075
64130
|
const parsed$ = safeParse4(request, (value$) => ListAllSubscriptionSchedulesRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
64076
64131
|
if (!parsed$.ok) {
|
|
64077
64132
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64147,12 +64202,12 @@ var init_subscriptionsListAllSubscriptionSchedules = __esm(() => {
|
|
|
64147
64202
|
});
|
|
64148
64203
|
|
|
64149
64204
|
// src/mcp-server/tools/subscriptionsListAllSubscriptionSchedules.ts
|
|
64150
|
-
var
|
|
64205
|
+
var args61, tool$subscriptionsListAllSubscriptionSchedules;
|
|
64151
64206
|
var init_subscriptionsListAllSubscriptionSchedules2 = __esm(() => {
|
|
64152
64207
|
init_subscriptionsListAllSubscriptionSchedules();
|
|
64153
64208
|
init_listallsubscriptionschedulesop();
|
|
64154
64209
|
init_tools();
|
|
64155
|
-
|
|
64210
|
+
args61 = {
|
|
64156
64211
|
request: ListAllSubscriptionSchedulesRequest$zodSchema.optional()
|
|
64157
64212
|
};
|
|
64158
64213
|
tool$subscriptionsListAllSubscriptionSchedules = {
|
|
@@ -64168,9 +64223,9 @@ Use when listing or searching scheduled changes across subscriptions (e.g. admin
|
|
|
64168
64223
|
openWorldHint: false,
|
|
64169
64224
|
readOnlyHint: true
|
|
64170
64225
|
},
|
|
64171
|
-
args:
|
|
64172
|
-
tool: async (client,
|
|
64173
|
-
const [result] = await subscriptionsListAllSubscriptionSchedules(client,
|
|
64226
|
+
args: args61,
|
|
64227
|
+
tool: async (client, args62, ctx) => {
|
|
64228
|
+
const [result] = await subscriptionsListAllSubscriptionSchedules(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64174
64229
|
if (!result.ok) {
|
|
64175
64230
|
return {
|
|
64176
64231
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64193,9 +64248,9 @@ var init_listsubscriptionschedulesop = __esm(() => {
|
|
|
64193
64248
|
|
|
64194
64249
|
// src/funcs/subscriptionsListSubscriptionSchedules.ts
|
|
64195
64250
|
function subscriptionsListSubscriptionSchedules(client$, request, options) {
|
|
64196
|
-
return new APIPromise($
|
|
64251
|
+
return new APIPromise($do63(client$, request, options));
|
|
64197
64252
|
}
|
|
64198
|
-
async function $
|
|
64253
|
+
async function $do63(client$, request, options) {
|
|
64199
64254
|
const parsed$ = safeParse4(request, (value$) => ListSubscriptionSchedulesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64200
64255
|
if (!parsed$.ok) {
|
|
64201
64256
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64270,12 +64325,12 @@ var init_subscriptionsListSubscriptionSchedules = __esm(() => {
|
|
|
64270
64325
|
});
|
|
64271
64326
|
|
|
64272
64327
|
// src/mcp-server/tools/subscriptionsListSubscriptionSchedules.ts
|
|
64273
|
-
var
|
|
64328
|
+
var args62, tool$subscriptionsListSubscriptionSchedules;
|
|
64274
64329
|
var init_subscriptionsListSubscriptionSchedules2 = __esm(() => {
|
|
64275
64330
|
init_subscriptionsListSubscriptionSchedules();
|
|
64276
64331
|
init_listsubscriptionschedulesop();
|
|
64277
64332
|
init_tools();
|
|
64278
|
-
|
|
64333
|
+
args62 = {
|
|
64279
64334
|
request: ListSubscriptionSchedulesRequest$zodSchema
|
|
64280
64335
|
};
|
|
64281
64336
|
tool$subscriptionsListSubscriptionSchedules = {
|
|
@@ -64291,9 +64346,9 @@ Use when listing scheduled changes for a subscription (e.g. upcoming plan change
|
|
|
64291
64346
|
openWorldHint: false,
|
|
64292
64347
|
readOnlyHint: true
|
|
64293
64348
|
},
|
|
64294
|
-
args:
|
|
64295
|
-
tool: async (client,
|
|
64296
|
-
const [result] = await subscriptionsListSubscriptionSchedules(client,
|
|
64349
|
+
args: args62,
|
|
64350
|
+
tool: async (client, args63, ctx) => {
|
|
64351
|
+
const [result] = await subscriptionsListSubscriptionSchedules(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64297
64352
|
if (!result.ok) {
|
|
64298
64353
|
return {
|
|
64299
64354
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64405,9 +64460,9 @@ var init_previewsubscriptionchangeop = __esm(() => {
|
|
|
64405
64460
|
|
|
64406
64461
|
// src/funcs/subscriptionsPreviewSubscriptionChange.ts
|
|
64407
64462
|
function subscriptionsPreviewSubscriptionChange(client$, request, options) {
|
|
64408
|
-
return new APIPromise($
|
|
64463
|
+
return new APIPromise($do64(client$, request, options));
|
|
64409
64464
|
}
|
|
64410
|
-
async function $
|
|
64465
|
+
async function $do64(client$, request, options) {
|
|
64411
64466
|
const parsed$ = safeParse4(request, (value$) => PreviewSubscriptionChangeRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64412
64467
|
if (!parsed$.ok) {
|
|
64413
64468
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64483,12 +64538,12 @@ var init_subscriptionsPreviewSubscriptionChange = __esm(() => {
|
|
|
64483
64538
|
});
|
|
64484
64539
|
|
|
64485
64540
|
// src/mcp-server/tools/subscriptionsPreviewSubscriptionChange.ts
|
|
64486
|
-
var
|
|
64541
|
+
var args63, tool$subscriptionsPreviewSubscriptionChange;
|
|
64487
64542
|
var init_subscriptionsPreviewSubscriptionChange2 = __esm(() => {
|
|
64488
64543
|
init_subscriptionsPreviewSubscriptionChange();
|
|
64489
64544
|
init_previewsubscriptionchangeop();
|
|
64490
64545
|
init_tools();
|
|
64491
|
-
|
|
64546
|
+
args63 = {
|
|
64492
64547
|
request: PreviewSubscriptionChangeRequest$zodSchema
|
|
64493
64548
|
};
|
|
64494
64549
|
tool$subscriptionsPreviewSubscriptionChange = {
|
|
@@ -64504,9 +64559,9 @@ Use when showing a customer the cost of a plan change before they confirm (e.g.
|
|
|
64504
64559
|
openWorldHint: false,
|
|
64505
64560
|
readOnlyHint: false
|
|
64506
64561
|
},
|
|
64507
|
-
args:
|
|
64508
|
-
tool: async (client,
|
|
64509
|
-
const [result] = await subscriptionsPreviewSubscriptionChange(client,
|
|
64562
|
+
args: args63,
|
|
64563
|
+
tool: async (client, args64, ctx) => {
|
|
64564
|
+
const [result] = await subscriptionsPreviewSubscriptionChange(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64510
64565
|
if (!result.ok) {
|
|
64511
64566
|
return {
|
|
64512
64567
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64537,9 +64592,9 @@ var init_previewsubscriptionmodifyop = __esm(() => {
|
|
|
64537
64592
|
|
|
64538
64593
|
// src/funcs/subscriptionsPreviewSubscriptionModify.ts
|
|
64539
64594
|
function subscriptionsPreviewSubscriptionModify(client$, request, options) {
|
|
64540
|
-
return new APIPromise($
|
|
64595
|
+
return new APIPromise($do65(client$, request, options));
|
|
64541
64596
|
}
|
|
64542
|
-
async function $
|
|
64597
|
+
async function $do65(client$, request, options) {
|
|
64543
64598
|
const parsed$ = safeParse4(request, (value$) => PreviewSubscriptionModifyRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64544
64599
|
if (!parsed$.ok) {
|
|
64545
64600
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64615,12 +64670,12 @@ var init_subscriptionsPreviewSubscriptionModify = __esm(() => {
|
|
|
64615
64670
|
});
|
|
64616
64671
|
|
|
64617
64672
|
// src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts
|
|
64618
|
-
var
|
|
64673
|
+
var args64, tool$subscriptionsPreviewSubscriptionModify;
|
|
64619
64674
|
var init_subscriptionsPreviewSubscriptionModify2 = __esm(() => {
|
|
64620
64675
|
init_subscriptionsPreviewSubscriptionModify();
|
|
64621
64676
|
init_previewsubscriptionmodifyop();
|
|
64622
64677
|
init_tools();
|
|
64623
|
-
|
|
64678
|
+
args64 = {
|
|
64624
64679
|
request: PreviewSubscriptionModifyRequest$zodSchema
|
|
64625
64680
|
};
|
|
64626
64681
|
tool$subscriptionsPreviewSubscriptionModify = {
|
|
@@ -64636,9 +64691,9 @@ Preview the impact of a mid-cycle subscription modification without committing c
|
|
|
64636
64691
|
openWorldHint: false,
|
|
64637
64692
|
readOnlyHint: true
|
|
64638
64693
|
},
|
|
64639
|
-
args:
|
|
64640
|
-
tool: async (client,
|
|
64641
|
-
const [result] = await subscriptionsPreviewSubscriptionModify(client,
|
|
64694
|
+
args: args64,
|
|
64695
|
+
tool: async (client, args65, ctx) => {
|
|
64696
|
+
const [result] = await subscriptionsPreviewSubscriptionModify(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64642
64697
|
if (!result.ok) {
|
|
64643
64698
|
return {
|
|
64644
64699
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64698,9 +64753,9 @@ Use with subscription_status trialing for trial-end cron processing.`),
|
|
|
64698
64753
|
|
|
64699
64754
|
// src/funcs/subscriptionsQuerySubscription.ts
|
|
64700
64755
|
function subscriptionsQuerySubscription(client$, request, options) {
|
|
64701
|
-
return new APIPromise($
|
|
64756
|
+
return new APIPromise($do66(client$, request, options));
|
|
64702
64757
|
}
|
|
64703
|
-
async function $
|
|
64758
|
+
async function $do66(client$, request, options) {
|
|
64704
64759
|
const parsed$ = safeParse4(request, (value$) => SubscriptionFilter$zodSchema.parse(value$), "Input validation failed");
|
|
64705
64760
|
if (!parsed$.ok) {
|
|
64706
64761
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64770,12 +64825,12 @@ var init_subscriptionsQuerySubscription = __esm(() => {
|
|
|
64770
64825
|
});
|
|
64771
64826
|
|
|
64772
64827
|
// src/mcp-server/tools/subscriptionsQuerySubscription.ts
|
|
64773
|
-
var
|
|
64828
|
+
var args65, tool$subscriptionsQuerySubscription;
|
|
64774
64829
|
var init_subscriptionsQuerySubscription2 = __esm(() => {
|
|
64775
64830
|
init_subscriptionsQuerySubscription();
|
|
64776
64831
|
init_subscriptionfilter();
|
|
64777
64832
|
init_tools();
|
|
64778
|
-
|
|
64833
|
+
args65 = {
|
|
64779
64834
|
request: SubscriptionFilter$zodSchema.describe(`Filter`)
|
|
64780
64835
|
};
|
|
64781
64836
|
tool$subscriptionsQuerySubscription = {
|
|
@@ -64791,9 +64846,9 @@ Use when listing or searching subscriptions (e.g. admin view or customer subscri
|
|
|
64791
64846
|
openWorldHint: false,
|
|
64792
64847
|
readOnlyHint: false
|
|
64793
64848
|
},
|
|
64794
|
-
args:
|
|
64795
|
-
tool: async (client,
|
|
64796
|
-
const [result] = await subscriptionsQuerySubscription(client,
|
|
64849
|
+
args: args65,
|
|
64850
|
+
tool: async (client, args66, ctx) => {
|
|
64851
|
+
const [result] = await subscriptionsQuerySubscription(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64797
64852
|
if (!result.ok) {
|
|
64798
64853
|
return {
|
|
64799
64854
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64843,9 +64898,9 @@ var init_subscriptionlineitemfilter = __esm(() => {
|
|
|
64843
64898
|
|
|
64844
64899
|
// src/funcs/subscriptionsQuerySubscriptionLineItems.ts
|
|
64845
64900
|
function subscriptionsQuerySubscriptionLineItems(client$, request, options) {
|
|
64846
|
-
return new APIPromise($
|
|
64901
|
+
return new APIPromise($do67(client$, request, options));
|
|
64847
64902
|
}
|
|
64848
|
-
async function $
|
|
64903
|
+
async function $do67(client$, request, options) {
|
|
64849
64904
|
const parsed$ = safeParse4(request, (value$) => SubscriptionLineItemFilter$zodSchema.parse(value$), "Input validation failed");
|
|
64850
64905
|
if (!parsed$.ok) {
|
|
64851
64906
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64915,12 +64970,12 @@ var init_subscriptionsQuerySubscriptionLineItems = __esm(() => {
|
|
|
64915
64970
|
});
|
|
64916
64971
|
|
|
64917
64972
|
// src/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.ts
|
|
64918
|
-
var
|
|
64973
|
+
var args66, tool$subscriptionsQuerySubscriptionLineItems;
|
|
64919
64974
|
var init_subscriptionsQuerySubscriptionLineItems2 = __esm(() => {
|
|
64920
64975
|
init_subscriptionsQuerySubscriptionLineItems();
|
|
64921
64976
|
init_subscriptionlineitemfilter();
|
|
64922
64977
|
init_tools();
|
|
64923
|
-
|
|
64978
|
+
args66 = {
|
|
64924
64979
|
request: SubscriptionLineItemFilter$zodSchema.describe(`Filter`)
|
|
64925
64980
|
};
|
|
64926
64981
|
tool$subscriptionsQuerySubscriptionLineItems = {
|
|
@@ -64936,9 +64991,9 @@ List subscription line items with a JSON filter (subscription, customer, price,
|
|
|
64936
64991
|
openWorldHint: false,
|
|
64937
64992
|
readOnlyHint: true
|
|
64938
64993
|
},
|
|
64939
|
-
args:
|
|
64940
|
-
tool: async (client,
|
|
64941
|
-
const [result] = await subscriptionsQuerySubscriptionLineItems(client,
|
|
64994
|
+
args: args66,
|
|
64995
|
+
tool: async (client, args67, ctx) => {
|
|
64996
|
+
const [result] = await subscriptionsQuerySubscriptionLineItems(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64942
64997
|
if (!result.ok) {
|
|
64943
64998
|
return {
|
|
64944
64999
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64968,9 +65023,9 @@ values combined with create_prorations will issue a wallet credit for unused tim
|
|
|
64968
65023
|
|
|
64969
65024
|
// src/funcs/subscriptionsRemoveSubscriptionAddon.ts
|
|
64970
65025
|
function subscriptionsRemoveSubscriptionAddon(client$, request, options) {
|
|
64971
|
-
return new APIPromise($
|
|
65026
|
+
return new APIPromise($do68(client$, request, options));
|
|
64972
65027
|
}
|
|
64973
|
-
async function $
|
|
65028
|
+
async function $do68(client$, request, options) {
|
|
64974
65029
|
const parsed$ = safeParse4(request, (value$) => RemoveAddonRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64975
65030
|
if (!parsed$.ok) {
|
|
64976
65031
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65040,12 +65095,12 @@ var init_subscriptionsRemoveSubscriptionAddon = __esm(() => {
|
|
|
65040
65095
|
});
|
|
65041
65096
|
|
|
65042
65097
|
// src/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.ts
|
|
65043
|
-
var
|
|
65098
|
+
var args67, tool$subscriptionsRemoveSubscriptionAddon;
|
|
65044
65099
|
var init_subscriptionsRemoveSubscriptionAddon2 = __esm(() => {
|
|
65045
65100
|
init_subscriptionsRemoveSubscriptionAddon();
|
|
65046
65101
|
init_removeaddonrequest();
|
|
65047
65102
|
init_tools();
|
|
65048
|
-
|
|
65103
|
+
args67 = {
|
|
65049
65104
|
request: RemoveAddonRequest$zodSchema.describe(`Remove Addon Request`)
|
|
65050
65105
|
};
|
|
65051
65106
|
tool$subscriptionsRemoveSubscriptionAddon = {
|
|
@@ -65061,9 +65116,9 @@ Use when removing an add-on from a subscription (e.g. downgrade or opt-out).`,
|
|
|
65061
65116
|
openWorldHint: false,
|
|
65062
65117
|
readOnlyHint: false
|
|
65063
65118
|
},
|
|
65064
|
-
args:
|
|
65065
|
-
tool: async (client,
|
|
65066
|
-
const [result] = await subscriptionsRemoveSubscriptionAddon(client,
|
|
65119
|
+
args: args67,
|
|
65120
|
+
tool: async (client, args68, ctx) => {
|
|
65121
|
+
const [result] = await subscriptionsRemoveSubscriptionAddon(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65067
65122
|
if (!result.ok) {
|
|
65068
65123
|
return {
|
|
65069
65124
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65107,9 +65162,9 @@ var init_updatesubscriptionop = __esm(() => {
|
|
|
65107
65162
|
|
|
65108
65163
|
// src/funcs/subscriptionsUpdateSubscription.ts
|
|
65109
65164
|
function subscriptionsUpdateSubscription(client$, request, options) {
|
|
65110
|
-
return new APIPromise($
|
|
65165
|
+
return new APIPromise($do69(client$, request, options));
|
|
65111
65166
|
}
|
|
65112
|
-
async function $
|
|
65167
|
+
async function $do69(client$, request, options) {
|
|
65113
65168
|
const parsed$ = safeParse4(request, (value$) => UpdateSubscriptionRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65114
65169
|
if (!parsed$.ok) {
|
|
65115
65170
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65185,12 +65240,12 @@ var init_subscriptionsUpdateSubscription = __esm(() => {
|
|
|
65185
65240
|
});
|
|
65186
65241
|
|
|
65187
65242
|
// src/mcp-server/tools/subscriptionsUpdateSubscription.ts
|
|
65188
|
-
var
|
|
65243
|
+
var args68, tool$subscriptionsUpdateSubscription;
|
|
65189
65244
|
var init_subscriptionsUpdateSubscription2 = __esm(() => {
|
|
65190
65245
|
init_subscriptionsUpdateSubscription();
|
|
65191
65246
|
init_updatesubscriptionop();
|
|
65192
65247
|
init_tools();
|
|
65193
|
-
|
|
65248
|
+
args68 = {
|
|
65194
65249
|
request: UpdateSubscriptionRequestRequest$zodSchema
|
|
65195
65250
|
};
|
|
65196
65251
|
tool$subscriptionsUpdateSubscription = {
|
|
@@ -65206,9 +65261,9 @@ Use when changing subscription details (e.g. quantity, billing anchor, or parent
|
|
|
65206
65261
|
openWorldHint: false,
|
|
65207
65262
|
readOnlyHint: false
|
|
65208
65263
|
},
|
|
65209
|
-
args:
|
|
65210
|
-
tool: async (client,
|
|
65211
|
-
const [result] = await subscriptionsUpdateSubscription(client,
|
|
65264
|
+
args: args68,
|
|
65265
|
+
tool: async (client, args69, ctx) => {
|
|
65266
|
+
const [result] = await subscriptionsUpdateSubscription(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65212
65267
|
if (!result.ok) {
|
|
65213
65268
|
return {
|
|
65214
65269
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65267,9 +65322,9 @@ var init_updatesubscriptionlineitemop = __esm(() => {
|
|
|
65267
65322
|
|
|
65268
65323
|
// src/funcs/subscriptionsUpdateSubscriptionLineItem.ts
|
|
65269
65324
|
function subscriptionsUpdateSubscriptionLineItem(client$, request, options) {
|
|
65270
|
-
return new APIPromise($
|
|
65325
|
+
return new APIPromise($do70(client$, request, options));
|
|
65271
65326
|
}
|
|
65272
|
-
async function $
|
|
65327
|
+
async function $do70(client$, request, options) {
|
|
65273
65328
|
const parsed$ = safeParse4(request, (value$) => UpdateSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65274
65329
|
if (!parsed$.ok) {
|
|
65275
65330
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65345,12 +65400,12 @@ var init_subscriptionsUpdateSubscriptionLineItem = __esm(() => {
|
|
|
65345
65400
|
});
|
|
65346
65401
|
|
|
65347
65402
|
// src/mcp-server/tools/subscriptionsUpdateSubscriptionLineItem.ts
|
|
65348
|
-
var
|
|
65403
|
+
var args69, tool$subscriptionsUpdateSubscriptionLineItem;
|
|
65349
65404
|
var init_subscriptionsUpdateSubscriptionLineItem2 = __esm(() => {
|
|
65350
65405
|
init_subscriptionsUpdateSubscriptionLineItem();
|
|
65351
65406
|
init_updatesubscriptionlineitemop();
|
|
65352
65407
|
init_tools();
|
|
65353
|
-
|
|
65408
|
+
args69 = {
|
|
65354
65409
|
request: UpdateSubscriptionLineItemRequestRequest$zodSchema
|
|
65355
65410
|
};
|
|
65356
65411
|
tool$subscriptionsUpdateSubscriptionLineItem = {
|
|
@@ -65366,9 +65421,9 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
65366
65421
|
openWorldHint: false,
|
|
65367
65422
|
readOnlyHint: false
|
|
65368
65423
|
},
|
|
65369
|
-
args:
|
|
65370
|
-
tool: async (client,
|
|
65371
|
-
const [result] = await subscriptionsUpdateSubscriptionLineItem(client,
|
|
65424
|
+
args: args69,
|
|
65425
|
+
tool: async (client, args70, ctx) => {
|
|
65426
|
+
const [result] = await subscriptionsUpdateSubscriptionLineItem(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65372
65427
|
if (!result.ok) {
|
|
65373
65428
|
return {
|
|
65374
65429
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65384,16 +65439,16 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
65384
65439
|
function createMCPServer(deps) {
|
|
65385
65440
|
const server = new McpServer({
|
|
65386
65441
|
name: "Flexprice",
|
|
65387
|
-
version: "2.1.
|
|
65442
|
+
version: "2.1.11"
|
|
65388
65443
|
});
|
|
65389
65444
|
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
65390
65445
|
security: deps.security,
|
|
65391
65446
|
serverURL: deps.serverURL,
|
|
65392
65447
|
serverIdx: deps.serverIdx,
|
|
65393
65448
|
debugLogger: deps.logger.level === "debug" ? {
|
|
65394
|
-
log: (...
|
|
65395
|
-
group: (...
|
|
65396
|
-
groupEnd: (...
|
|
65449
|
+
log: (...args70) => console.log(...args70),
|
|
65450
|
+
group: (...args70) => console.group(...args70),
|
|
65451
|
+
groupEnd: (...args70) => console.groupEnd(...args70)
|
|
65397
65452
|
} : undefined
|
|
65398
65453
|
}));
|
|
65399
65454
|
const scopes = new Set(deps.scopes);
|
|
@@ -65414,7 +65469,6 @@ function createMCPServer(deps) {
|
|
|
65414
65469
|
tool(tool$customersGetCustomerUpcomingGrants);
|
|
65415
65470
|
tool(tool$invoicesGetCustomerInvoiceSummary);
|
|
65416
65471
|
tool(tool$invoicesCreateInvoice);
|
|
65417
|
-
tool(tool$invoicesGetMeterUsagePreviewInvoice);
|
|
65418
65472
|
tool(tool$invoicesGetInvoicePreview);
|
|
65419
65473
|
tool(tool$invoicesQueryInvoice);
|
|
65420
65474
|
tool(tool$invoicesGetInvoice);
|
|
@@ -65508,7 +65562,6 @@ var init_server2 = __esm(() => {
|
|
|
65508
65562
|
init_invoicesGetInvoice2();
|
|
65509
65563
|
init_invoicesGetInvoicePdf2();
|
|
65510
65564
|
init_invoicesGetInvoicePreview2();
|
|
65511
|
-
init_invoicesGetMeterUsagePreviewInvoice2();
|
|
65512
65565
|
init_invoicesQueryInvoice2();
|
|
65513
65566
|
init_invoicesRecalculateInvoice2();
|
|
65514
65567
|
init_invoicesRecalculateInvoiceV22();
|
|
@@ -65626,12 +65679,6 @@ Use when showing a customer's invoice overview (e.g. billing portal or balance s
|
|
|
65626
65679
|
description: `Create one-off invoice
|
|
65627
65680
|
|
|
65628
65681
|
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.`
|
|
65629
|
-
},
|
|
65630
|
-
{
|
|
65631
|
-
name: "get-meter-usage-preview-invoice",
|
|
65632
|
-
description: `Get invoice preview using meter_usage data
|
|
65633
|
-
|
|
65634
|
-
Preview invoice using the meter_usage table for usage data instead of feature_usage.`
|
|
65635
65682
|
},
|
|
65636
65683
|
{
|
|
65637
65684
|
name: "get-invoice-preview",
|
|
@@ -67509,9 +67556,21 @@ var init_impl2 = __esm(() => {
|
|
|
67509
67556
|
});
|
|
67510
67557
|
|
|
67511
67558
|
// node_modules/@stricli/core/dist/index.js
|
|
67559
|
+
var TRUTHY_VALUES = /* @__PURE__ */ new Set(["true", "t", "yes", "y", "on", "1", ""]);
|
|
67560
|
+
var FALSY_VALUES = /* @__PURE__ */ new Set(["false", "f", "no", "n", "off", "0"]);
|
|
67561
|
+
var looseBooleanParser = (input) => {
|
|
67562
|
+
const value = input.toLowerCase();
|
|
67563
|
+
if (TRUTHY_VALUES.has(value)) {
|
|
67564
|
+
return true;
|
|
67565
|
+
}
|
|
67566
|
+
if (FALSY_VALUES.has(value)) {
|
|
67567
|
+
return false;
|
|
67568
|
+
}
|
|
67569
|
+
throw new SyntaxError(`Cannot convert ${input} to a boolean`);
|
|
67570
|
+
};
|
|
67512
67571
|
function checkEnvironmentVariable(process2, varName) {
|
|
67513
67572
|
const value = process2.env?.[varName];
|
|
67514
|
-
return typeof value === "string" && value
|
|
67573
|
+
return typeof value === "string" && looseBooleanParser(value);
|
|
67515
67574
|
}
|
|
67516
67575
|
var ExitCode = {
|
|
67517
67576
|
UnknownCommand: -5,
|
|
@@ -67682,18 +67741,6 @@ async function allSettledOrElse(values) {
|
|
|
67682
67741
|
}
|
|
67683
67742
|
return { status: "fulfilled", value: grouped.fulfilled?.map((result) => result.value) ?? [] };
|
|
67684
67743
|
}
|
|
67685
|
-
var TRUTHY_VALUES = /* @__PURE__ */ new Set(["true", "t", "yes", "y", "on", "1"]);
|
|
67686
|
-
var FALSY_VALUES = /* @__PURE__ */ new Set(["false", "f", "no", "n", "off", "0"]);
|
|
67687
|
-
var looseBooleanParser = (input) => {
|
|
67688
|
-
const value = input.toLowerCase();
|
|
67689
|
-
if (TRUTHY_VALUES.has(value)) {
|
|
67690
|
-
return true;
|
|
67691
|
-
}
|
|
67692
|
-
if (FALSY_VALUES.has(value)) {
|
|
67693
|
-
return false;
|
|
67694
|
-
}
|
|
67695
|
-
throw new SyntaxError(`Cannot convert ${input} to a boolean`);
|
|
67696
|
-
};
|
|
67697
67744
|
var numberParser = (input) => {
|
|
67698
67745
|
const value = Number(input);
|
|
67699
67746
|
if (Number.isNaN(value)) {
|
|
@@ -68413,7 +68460,7 @@ var text_en = {
|
|
|
68413
68460
|
version: "Print version information and exit",
|
|
68414
68461
|
argumentEscapeSequence: "All subsequent inputs should be interpreted as arguments"
|
|
68415
68462
|
},
|
|
68416
|
-
noCommandRegisteredForInput
|
|
68463
|
+
noCommandRegisteredForInput({ input, corrections }) {
|
|
68417
68464
|
const errorMessage = `No command registered for \`${input}\``;
|
|
68418
68465
|
if (corrections.length > 0) {
|
|
68419
68466
|
const formattedCorrections = joinWithGrammar(corrections, {
|
|
@@ -68426,28 +68473,28 @@ var text_en = {
|
|
|
68426
68473
|
return errorMessage;
|
|
68427
68474
|
}
|
|
68428
68475
|
},
|
|
68429
|
-
noTextAvailableForLocale
|
|
68476
|
+
noTextAvailableForLocale({ requestedLocale, defaultLocale }) {
|
|
68430
68477
|
return `Application does not support "${requestedLocale}" locale, defaulting to "${defaultLocale}"`;
|
|
68431
68478
|
},
|
|
68432
|
-
exceptionWhileParsingArguments
|
|
68479
|
+
exceptionWhileParsingArguments(exc) {
|
|
68433
68480
|
if (exc instanceof ArgumentScannerError) {
|
|
68434
68481
|
return formatMessageForArgumentScannerError(exc, {});
|
|
68435
68482
|
}
|
|
68436
|
-
return `Unable to parse arguments, ${formatException(exc)}`;
|
|
68483
|
+
return `Unable to parse arguments, ${(this.formatException ?? formatException)(exc)}`;
|
|
68437
68484
|
},
|
|
68438
|
-
exceptionWhileLoadingCommandFunction
|
|
68439
|
-
return `Unable to load command function, ${formatException(exc)}`;
|
|
68485
|
+
exceptionWhileLoadingCommandFunction(exc) {
|
|
68486
|
+
return `Unable to load command function, ${(this.formatException ?? formatException)(exc)}`;
|
|
68440
68487
|
},
|
|
68441
|
-
exceptionWhileLoadingCommandContext
|
|
68442
|
-
return `Unable to load command context, ${formatException(exc)}`;
|
|
68488
|
+
exceptionWhileLoadingCommandContext(exc) {
|
|
68489
|
+
return `Unable to load command context, ${(this.formatException ?? formatException)(exc)}`;
|
|
68443
68490
|
},
|
|
68444
|
-
exceptionWhileRunningCommand
|
|
68445
|
-
return `Command failed, ${formatException(exc)}`;
|
|
68491
|
+
exceptionWhileRunningCommand(exc) {
|
|
68492
|
+
return `Command failed, ${(this.formatException ?? formatException)(exc)}`;
|
|
68446
68493
|
},
|
|
68447
|
-
commandErrorResult
|
|
68494
|
+
commandErrorResult(err) {
|
|
68448
68495
|
return err.message;
|
|
68449
68496
|
},
|
|
68450
|
-
currentVersionIsNotLatest
|
|
68497
|
+
currentVersionIsNotLatest({ currentVersion, latestVersion, upgradeCommand }) {
|
|
68451
68498
|
if (upgradeCommand) {
|
|
68452
68499
|
return `Latest available version is ${latestVersion} (currently running ${currentVersion}), upgrade with "${upgradeCommand}"`;
|
|
68453
68500
|
}
|
|
@@ -68622,7 +68669,7 @@ function buildRouteScanner(root, config, startingPrefix) {
|
|
|
68622
68669
|
}
|
|
68623
68670
|
async function runApplication({ root, defaultText, config }, rawInputs, context) {
|
|
68624
68671
|
let text = defaultText;
|
|
68625
|
-
if (context.locale) {
|
|
68672
|
+
if (context.locale && "loadText" in config.localization) {
|
|
68626
68673
|
const localeText = config.localization.loadText(context.locale);
|
|
68627
68674
|
if (localeText) {
|
|
68628
68675
|
text = localeText;
|
|
@@ -68797,9 +68844,15 @@ function buildApplication(root, appConfig) {
|
|
|
68797
68844
|
throw new InternalError("Unable to use command with alias -v as root when version info is supplied");
|
|
68798
68845
|
}
|
|
68799
68846
|
}
|
|
68800
|
-
|
|
68801
|
-
if (
|
|
68802
|
-
|
|
68847
|
+
let defaultText;
|
|
68848
|
+
if ("text" in config.localization) {
|
|
68849
|
+
defaultText = config.localization.text;
|
|
68850
|
+
} else {
|
|
68851
|
+
const text = config.localization.loadText(config.localization.defaultLocale);
|
|
68852
|
+
if (!text) {
|
|
68853
|
+
throw new InternalError(`No text available for the default locale "${config.localization.defaultLocale}"`);
|
|
68854
|
+
}
|
|
68855
|
+
defaultText = text;
|
|
68803
68856
|
}
|
|
68804
68857
|
return {
|
|
68805
68858
|
root,
|
|
@@ -69306,7 +69359,7 @@ function buildRouteMap({
|
|
|
69306
69359
|
}
|
|
69307
69360
|
async function run(app, inputs, context) {
|
|
69308
69361
|
const exitCode = await runApplication(app, inputs, context);
|
|
69309
|
-
context.process.exitCode
|
|
69362
|
+
context.process.exitCode ??= exitCode;
|
|
69310
69363
|
}
|
|
69311
69364
|
|
|
69312
69365
|
// src/mcp-server/mcp-server.ts
|
|
@@ -69536,7 +69589,7 @@ var routes = buildRouteMap({
|
|
|
69536
69589
|
var app = buildApplication(routes, {
|
|
69537
69590
|
name: "mcp",
|
|
69538
69591
|
versionInfo: {
|
|
69539
|
-
currentVersion: "2.1.
|
|
69592
|
+
currentVersion: "2.1.11"
|
|
69540
69593
|
}
|
|
69541
69594
|
});
|
|
69542
69595
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -69544,5 +69597,5 @@ export {
|
|
|
69544
69597
|
app
|
|
69545
69598
|
};
|
|
69546
69599
|
|
|
69547
|
-
//# debugId=
|
|
69600
|
+
//# debugId=D4F261958DBBD12264756E2164756E21
|
|
69548
69601
|
//# sourceMappingURL=mcp-server.js.map
|