@flexprice/mcp-server 2.1.9 → 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 +670 -605
- package/bin/mcp-server.js.map +21 -21
- package/bun.lock +8 -6
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/mcp-server.js.map +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/createsubscriptionrequest.d.ts +1 -0
- package/esm/models/createsubscriptionrequest.d.ts.map +1 -1
- package/esm/models/createsubscriptionrequest.js +1 -0
- package/esm/models/createsubscriptionrequest.js.map +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/invoicebillingreason.d.ts +2 -0
- package/esm/models/invoicebillingreason.d.ts.map +1 -1
- package/esm/models/invoicebillingreason.js +2 -0
- package/esm/models/invoicebillingreason.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/subscriptionresponse.d.ts +1 -0
- package/esm/models/subscriptionresponse.d.ts.map +1 -1
- package/esm/models/subscriptionresponse.js +1 -0
- package/esm/models/subscriptionresponse.js.map +1 -1
- package/esm/models/subscriptionresponsev2.d.ts +1 -0
- package/esm/models/subscriptionresponsev2.d.ts.map +1 -1
- package/esm/models/subscriptionresponsev2.js +1 -0
- package/esm/models/subscriptionresponsev2.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/createsubscriptionrequest.ts +4 -0
- package/src/models/errorcode.ts +37 -0
- package/src/models/errorresponse.ts +3 -38
- package/src/models/invoicebillingreason.ts +2 -0
- package/src/models/invoiceresponse.ts +4 -0
- package/src/models/subscriptionresponse.ts +4 -0
- package/src/models/subscriptionresponsev2.ts +4 -0
- 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");
|
|
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
|
+
}
|
|
23101
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;
|
|
25758
|
+
}
|
|
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;
|
|
25610
25763
|
}
|
|
25611
|
-
|
|
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
|
});
|
|
@@ -55981,7 +56142,8 @@ var init_invoicebillingreason = __esm(() => {
|
|
|
55981
56142
|
"SUBSCRIPTION_TRIAL_END",
|
|
55982
56143
|
"SUBSCRIPTION_TRIAL_START",
|
|
55983
56144
|
"PRORATION",
|
|
55984
|
-
"MANUAL"
|
|
56145
|
+
"MANUAL",
|
|
56146
|
+
"AUTO_INVOICE_THRESHOLD"
|
|
55985
56147
|
]);
|
|
55986
56148
|
});
|
|
55987
56149
|
|
|
@@ -56134,6 +56296,8 @@ var init_createinvoicerequest = __esm(() => {
|
|
|
56134
56296
|
invoice_pdf_url: string2().optional().describe("invoice_pdf_url is the URL where customers can download the PDF version of this invoice"),
|
|
56135
56297
|
invoice_status: InvoiceStatus$zodSchema.optional(),
|
|
56136
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.`),
|
|
56137
56301
|
line_item_coupons: array(InvoiceLineItemCoupon$zodSchema).optional().describe("Invoice Line Item Coupons"),
|
|
56138
56302
|
line_items: array(CreateInvoiceLineItemRequest$zodSchema).optional().describe("line_items contains the individual items that make up this invoice"),
|
|
56139
56303
|
metadata: record(string2(), string2()).optional(),
|
|
@@ -57190,6 +57354,9 @@ var init_subscriptionresponse = __esm(() => {
|
|
|
57190
57354
|
SubscriptionResponse$zodSchema = object({
|
|
57191
57355
|
active_pause_id: string2().optional().describe(`ActivePauseID references the current active pause configuration
|
|
57192
57356
|
This will be null if no pause is active or scheduled`),
|
|
57357
|
+
auto_invoice_threshold: string2().optional().describe(`AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers
|
|
57358
|
+
an intermediate invoice. Overrides the plan-level threshold when set.
|
|
57359
|
+
Nil means: inherit from the plan's threshold (which may also be nil = disabled).`),
|
|
57193
57360
|
billing_anchor: exports_iso.datetime({ offset: true }).optional().describe(`BillingAnchor is the reference point that aligns future billing cycle dates.
|
|
57194
57361
|
It sets the day of week for week intervals, the day of month for month and year intervals,
|
|
57195
57362
|
and the month of year for year intervals. The timestamp is in UTC format.`),
|
|
@@ -57329,6 +57496,7 @@ These are non-cash reductions applied to the invoice (e.g. goodwill credit, bill
|
|
|
57329
57496
|
invoice_pdf_url: string2().optional().describe("invoice_pdf_url is the URL where customers can download the PDF version of this invoice"),
|
|
57330
57497
|
invoice_status: InvoiceStatus$zodSchema.optional(),
|
|
57331
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."),
|
|
57332
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"),
|
|
57333
57501
|
line_items: array(InvoiceLineItemResponse$zodSchema).optional().describe("line_items contains the individual items that make up this invoice (overrides embedded field)"),
|
|
57334
57502
|
metadata: record(string2(), string2()).optional(),
|
|
@@ -57753,115 +57921,6 @@ Use when showing a customer what they will be charged (e.g. preview before check
|
|
|
57753
57921
|
};
|
|
57754
57922
|
});
|
|
57755
57923
|
|
|
57756
|
-
// src/funcs/invoicesGetMeterUsagePreviewInvoice.ts
|
|
57757
|
-
function invoicesGetMeterUsagePreviewInvoice(client$, request, options) {
|
|
57758
|
-
return new APIPromise($do25(client$, request, options));
|
|
57759
|
-
}
|
|
57760
|
-
async function $do25(client$, request, options) {
|
|
57761
|
-
const parsed$ = safeParse4(request, (value$) => GetPreviewInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57762
|
-
if (!parsed$.ok) {
|
|
57763
|
-
return [parsed$, { status: "invalid" }];
|
|
57764
|
-
}
|
|
57765
|
-
const payload$ = parsed$.value;
|
|
57766
|
-
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
57767
|
-
const path$ = pathToFunc("/invoices/meter-usage-preview")();
|
|
57768
|
-
const headers$ = new Headers(compactMap({
|
|
57769
|
-
"Content-Type": "application/json",
|
|
57770
|
-
Accept: "application/json"
|
|
57771
|
-
}));
|
|
57772
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
57773
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57774
|
-
const context = {
|
|
57775
|
-
options: client$._options,
|
|
57776
|
-
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
57777
|
-
operationID: "getMeterUsagePreviewInvoice",
|
|
57778
|
-
oAuth2Scopes: null,
|
|
57779
|
-
resolvedSecurity: requestSecurity,
|
|
57780
|
-
securitySource: client$._options.security,
|
|
57781
|
-
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
57782
|
-
retryCodes: options?.retryCodes || [
|
|
57783
|
-
"429",
|
|
57784
|
-
"500",
|
|
57785
|
-
"502",
|
|
57786
|
-
"503",
|
|
57787
|
-
"504"
|
|
57788
|
-
]
|
|
57789
|
-
};
|
|
57790
|
-
const requestRes = client$._createRequest(context, {
|
|
57791
|
-
security: requestSecurity,
|
|
57792
|
-
method: "POST",
|
|
57793
|
-
baseURL: options?.serverURL,
|
|
57794
|
-
path: path$,
|
|
57795
|
-
headers: headers$,
|
|
57796
|
-
body: body$,
|
|
57797
|
-
userAgent: client$._options.userAgent,
|
|
57798
|
-
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
57799
|
-
}, options);
|
|
57800
|
-
if (!requestRes.ok) {
|
|
57801
|
-
return [requestRes, { status: "invalid" }];
|
|
57802
|
-
}
|
|
57803
|
-
const req$ = requestRes.value;
|
|
57804
|
-
const doResult = await client$._do(req$, {
|
|
57805
|
-
context,
|
|
57806
|
-
errorCodes: [],
|
|
57807
|
-
retryConfig: context.retryConfig,
|
|
57808
|
-
retryCodes: context.retryCodes
|
|
57809
|
-
});
|
|
57810
|
-
if (!doResult.ok) {
|
|
57811
|
-
return [doResult, { status: "request-error", request: req$ }];
|
|
57812
|
-
}
|
|
57813
|
-
return [doResult, {
|
|
57814
|
-
status: "complete",
|
|
57815
|
-
request: req$,
|
|
57816
|
-
response: doResult.value
|
|
57817
|
-
}];
|
|
57818
|
-
}
|
|
57819
|
-
var init_invoicesGetMeterUsagePreviewInvoice = __esm(() => {
|
|
57820
|
-
init_encodings();
|
|
57821
|
-
init_primitives();
|
|
57822
|
-
init_schemas4();
|
|
57823
|
-
init_security();
|
|
57824
|
-
init_url();
|
|
57825
|
-
init_getpreviewinvoicerequest();
|
|
57826
|
-
init_async();
|
|
57827
|
-
});
|
|
57828
|
-
|
|
57829
|
-
// src/mcp-server/tools/invoicesGetMeterUsagePreviewInvoice.ts
|
|
57830
|
-
var args24, tool$invoicesGetMeterUsagePreviewInvoice;
|
|
57831
|
-
var init_invoicesGetMeterUsagePreviewInvoice2 = __esm(() => {
|
|
57832
|
-
init_invoicesGetMeterUsagePreviewInvoice();
|
|
57833
|
-
init_getpreviewinvoicerequest();
|
|
57834
|
-
init_tools();
|
|
57835
|
-
args24 = {
|
|
57836
|
-
request: GetPreviewInvoiceRequest$zodSchema.describe(`Preview Invoice Request`)
|
|
57837
|
-
};
|
|
57838
|
-
tool$invoicesGetMeterUsagePreviewInvoice = {
|
|
57839
|
-
name: "get-meter-usage-preview-invoice",
|
|
57840
|
-
description: `Get invoice preview using meter_usage data
|
|
57841
|
-
|
|
57842
|
-
Preview invoice using the meter_usage table for usage data instead of feature_usage.`,
|
|
57843
|
-
scopes: ["write"],
|
|
57844
|
-
annotations: {
|
|
57845
|
-
title: "",
|
|
57846
|
-
destructiveHint: false,
|
|
57847
|
-
idempotentHint: false,
|
|
57848
|
-
openWorldHint: false,
|
|
57849
|
-
readOnlyHint: false
|
|
57850
|
-
},
|
|
57851
|
-
args: args24,
|
|
57852
|
-
tool: async (client, args25, ctx) => {
|
|
57853
|
-
const [result] = await invoicesGetMeterUsagePreviewInvoice(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57854
|
-
if (!result.ok) {
|
|
57855
|
-
return {
|
|
57856
|
-
content: [{ type: "text", text: result.error.message }],
|
|
57857
|
-
isError: true
|
|
57858
|
-
};
|
|
57859
|
-
}
|
|
57860
|
-
return formatResult(result.value);
|
|
57861
|
-
}
|
|
57862
|
-
};
|
|
57863
|
-
});
|
|
57864
|
-
|
|
57865
57924
|
// src/models/invoicefilter.ts
|
|
57866
57925
|
var InvoiceFilterOrder$zodSchema, InvoiceFilter$zodSchema;
|
|
57867
57926
|
var init_invoicefilter = __esm(() => {
|
|
@@ -57914,9 +57973,9 @@ Only returns invoices that were created as part of the specified subscription's
|
|
|
57914
57973
|
|
|
57915
57974
|
// src/funcs/invoicesQueryInvoice.ts
|
|
57916
57975
|
function invoicesQueryInvoice(client$, request, options) {
|
|
57917
|
-
return new APIPromise($
|
|
57976
|
+
return new APIPromise($do25(client$, request, options));
|
|
57918
57977
|
}
|
|
57919
|
-
async function $
|
|
57978
|
+
async function $do25(client$, request, options) {
|
|
57920
57979
|
const parsed$ = safeParse4(request, (value$) => InvoiceFilter$zodSchema.parse(value$), "Input validation failed");
|
|
57921
57980
|
if (!parsed$.ok) {
|
|
57922
57981
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57986,12 +58045,12 @@ var init_invoicesQueryInvoice = __esm(() => {
|
|
|
57986
58045
|
});
|
|
57987
58046
|
|
|
57988
58047
|
// src/mcp-server/tools/invoicesQueryInvoice.ts
|
|
57989
|
-
var
|
|
58048
|
+
var args24, tool$invoicesQueryInvoice;
|
|
57990
58049
|
var init_invoicesQueryInvoice2 = __esm(() => {
|
|
57991
58050
|
init_invoicesQueryInvoice();
|
|
57992
58051
|
init_invoicefilter();
|
|
57993
58052
|
init_tools();
|
|
57994
|
-
|
|
58053
|
+
args24 = {
|
|
57995
58054
|
request: InvoiceFilter$zodSchema.describe(`Filter`)
|
|
57996
58055
|
};
|
|
57997
58056
|
tool$invoicesQueryInvoice = {
|
|
@@ -58007,9 +58066,9 @@ Use when listing or searching invoices (e.g. admin view or customer history). Re
|
|
|
58007
58066
|
openWorldHint: false,
|
|
58008
58067
|
readOnlyHint: false
|
|
58009
58068
|
},
|
|
58010
|
-
args:
|
|
58011
|
-
tool: async (client,
|
|
58012
|
-
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();
|
|
58013
58072
|
if (!result.ok) {
|
|
58014
58073
|
return {
|
|
58015
58074
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58049,9 +58108,9 @@ var init_recalculateinvoiceop = __esm(() => {
|
|
|
58049
58108
|
|
|
58050
58109
|
// src/funcs/invoicesRecalculateInvoice.ts
|
|
58051
58110
|
function invoicesRecalculateInvoice(client$, request, options) {
|
|
58052
|
-
return new APIPromise($
|
|
58111
|
+
return new APIPromise($do26(client$, request, options));
|
|
58053
58112
|
}
|
|
58054
|
-
async function $
|
|
58113
|
+
async function $do26(client$, request, options) {
|
|
58055
58114
|
const parsed$ = safeParse4(request, (value$) => RecalculateInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58056
58115
|
if (!parsed$.ok) {
|
|
58057
58116
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58126,12 +58185,12 @@ var init_invoicesRecalculateInvoice = __esm(() => {
|
|
|
58126
58185
|
});
|
|
58127
58186
|
|
|
58128
58187
|
// src/mcp-server/tools/invoicesRecalculateInvoice.ts
|
|
58129
|
-
var
|
|
58188
|
+
var args25, tool$invoicesRecalculateInvoice;
|
|
58130
58189
|
var init_invoicesRecalculateInvoice2 = __esm(() => {
|
|
58131
58190
|
init_invoicesRecalculateInvoice();
|
|
58132
58191
|
init_recalculateinvoiceop();
|
|
58133
58192
|
init_tools();
|
|
58134
|
-
|
|
58193
|
+
args25 = {
|
|
58135
58194
|
request: RecalculateInvoiceRequest$zodSchema
|
|
58136
58195
|
};
|
|
58137
58196
|
tool$invoicesRecalculateInvoice = {
|
|
@@ -58147,9 +58206,9 @@ Starts an async workflow that creates a fresh replacement invoice for a voided S
|
|
|
58147
58206
|
openWorldHint: false,
|
|
58148
58207
|
readOnlyHint: false
|
|
58149
58208
|
},
|
|
58150
|
-
args:
|
|
58151
|
-
tool: async (client,
|
|
58152
|
-
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();
|
|
58153
58212
|
if (!result.ok) {
|
|
58154
58213
|
return {
|
|
58155
58214
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58179,9 +58238,9 @@ var init_recalculateinvoicev2op = __esm(() => {
|
|
|
58179
58238
|
|
|
58180
58239
|
// src/funcs/invoicesRecalculateInvoiceV2.ts
|
|
58181
58240
|
function invoicesRecalculateInvoiceV2(client$, request, options) {
|
|
58182
|
-
return new APIPromise($
|
|
58241
|
+
return new APIPromise($do27(client$, request, options));
|
|
58183
58242
|
}
|
|
58184
|
-
async function $
|
|
58243
|
+
async function $do27(client$, request, options) {
|
|
58185
58244
|
const parsed$ = safeParse4(request, (value$) => RecalculateInvoiceV2Request$zodSchema.parse(value$), "Input validation failed");
|
|
58186
58245
|
if (!parsed$.ok) {
|
|
58187
58246
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58260,12 +58319,12 @@ var init_invoicesRecalculateInvoiceV2 = __esm(() => {
|
|
|
58260
58319
|
});
|
|
58261
58320
|
|
|
58262
58321
|
// src/mcp-server/tools/invoicesRecalculateInvoiceV2.ts
|
|
58263
|
-
var
|
|
58322
|
+
var args26, tool$invoicesRecalculateInvoiceV2;
|
|
58264
58323
|
var init_invoicesRecalculateInvoiceV22 = __esm(() => {
|
|
58265
58324
|
init_invoicesRecalculateInvoiceV2();
|
|
58266
58325
|
init_recalculateinvoicev2op();
|
|
58267
58326
|
init_tools();
|
|
58268
|
-
|
|
58327
|
+
args26 = {
|
|
58269
58328
|
request: RecalculateInvoiceV2Request$zodSchema
|
|
58270
58329
|
};
|
|
58271
58330
|
tool$invoicesRecalculateInvoiceV2 = {
|
|
@@ -58281,9 +58340,9 @@ Recalculates a draft SUBSCRIPTION invoice in-place (replaces line items, reappli
|
|
|
58281
58340
|
openWorldHint: false,
|
|
58282
58341
|
readOnlyHint: false
|
|
58283
58342
|
},
|
|
58284
|
-
args:
|
|
58285
|
-
tool: async (client,
|
|
58286
|
-
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();
|
|
58287
58346
|
if (!result.ok) {
|
|
58288
58347
|
return {
|
|
58289
58348
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58312,9 +58371,9 @@ var init_triggerinvoicecommswebhookop = __esm(() => {
|
|
|
58312
58371
|
|
|
58313
58372
|
// src/funcs/invoicesTriggerInvoiceCommsWebhook.ts
|
|
58314
58373
|
function invoicesTriggerInvoiceCommsWebhook(client$, request, options) {
|
|
58315
|
-
return new APIPromise($
|
|
58374
|
+
return new APIPromise($do28(client$, request, options));
|
|
58316
58375
|
}
|
|
58317
|
-
async function $
|
|
58376
|
+
async function $do28(client$, request, options) {
|
|
58318
58377
|
const parsed$ = safeParse4(request, (value$) => TriggerInvoiceCommsWebhookRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58319
58378
|
if (!parsed$.ok) {
|
|
58320
58379
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58389,12 +58448,12 @@ var init_invoicesTriggerInvoiceCommsWebhook = __esm(() => {
|
|
|
58389
58448
|
});
|
|
58390
58449
|
|
|
58391
58450
|
// src/mcp-server/tools/invoicesTriggerInvoiceCommsWebhook.ts
|
|
58392
|
-
var
|
|
58451
|
+
var args27, tool$invoicesTriggerInvoiceCommsWebhook;
|
|
58393
58452
|
var init_invoicesTriggerInvoiceCommsWebhook2 = __esm(() => {
|
|
58394
58453
|
init_invoicesTriggerInvoiceCommsWebhook();
|
|
58395
58454
|
init_triggerinvoicecommswebhookop();
|
|
58396
58455
|
init_tools();
|
|
58397
|
-
|
|
58456
|
+
args27 = {
|
|
58398
58457
|
request: TriggerInvoiceCommsWebhookRequest$zodSchema
|
|
58399
58458
|
};
|
|
58400
58459
|
tool$invoicesTriggerInvoiceCommsWebhook = {
|
|
@@ -58410,9 +58469,9 @@ Use when sending an invoice to the customer (e.g. trigger email or Slack). Paylo
|
|
|
58410
58469
|
openWorldHint: false,
|
|
58411
58470
|
readOnlyHint: false
|
|
58412
58471
|
},
|
|
58413
|
-
args:
|
|
58414
|
-
tool: async (client,
|
|
58415
|
-
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();
|
|
58416
58475
|
if (!result.ok) {
|
|
58417
58476
|
return {
|
|
58418
58477
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58454,9 +58513,9 @@ var init_updateinvoiceop = __esm(() => {
|
|
|
58454
58513
|
|
|
58455
58514
|
// src/funcs/invoicesUpdateInvoice.ts
|
|
58456
58515
|
function invoicesUpdateInvoice(client$, request, options) {
|
|
58457
|
-
return new APIPromise($
|
|
58516
|
+
return new APIPromise($do29(client$, request, options));
|
|
58458
58517
|
}
|
|
58459
|
-
async function $
|
|
58518
|
+
async function $do29(client$, request, options) {
|
|
58460
58519
|
const parsed$ = safeParse4(request, (value$) => UpdateInvoiceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58461
58520
|
if (!parsed$.ok) {
|
|
58462
58521
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58532,12 +58591,12 @@ var init_invoicesUpdateInvoice = __esm(() => {
|
|
|
58532
58591
|
});
|
|
58533
58592
|
|
|
58534
58593
|
// src/mcp-server/tools/invoicesUpdateInvoice.ts
|
|
58535
|
-
var
|
|
58594
|
+
var args28, tool$invoicesUpdateInvoice;
|
|
58536
58595
|
var init_invoicesUpdateInvoice2 = __esm(() => {
|
|
58537
58596
|
init_invoicesUpdateInvoice();
|
|
58538
58597
|
init_updateinvoiceop();
|
|
58539
58598
|
init_tools();
|
|
58540
|
-
|
|
58599
|
+
args28 = {
|
|
58541
58600
|
request: UpdateInvoiceRequestRequest$zodSchema
|
|
58542
58601
|
};
|
|
58543
58602
|
tool$invoicesUpdateInvoice = {
|
|
@@ -58553,9 +58612,9 @@ Use when updating invoice metadata or due date (e.g. PDF URL, net terms). For pa
|
|
|
58553
58612
|
openWorldHint: false,
|
|
58554
58613
|
readOnlyHint: false
|
|
58555
58614
|
},
|
|
58556
|
-
args:
|
|
58557
|
-
tool: async (client,
|
|
58558
|
-
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();
|
|
58559
58618
|
if (!result.ok) {
|
|
58560
58619
|
return {
|
|
58561
58620
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58597,9 +58656,9 @@ var init_updateinvoicepaymentstatusop = __esm(() => {
|
|
|
58597
58656
|
|
|
58598
58657
|
// src/funcs/invoicesUpdateInvoicePaymentStatus.ts
|
|
58599
58658
|
function invoicesUpdateInvoicePaymentStatus(client$, request, options) {
|
|
58600
|
-
return new APIPromise($
|
|
58659
|
+
return new APIPromise($do30(client$, request, options));
|
|
58601
58660
|
}
|
|
58602
|
-
async function $
|
|
58661
|
+
async function $do30(client$, request, options) {
|
|
58603
58662
|
const parsed$ = safeParse4(request, (value$) => UpdateInvoicePaymentStatusRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58604
58663
|
if (!parsed$.ok) {
|
|
58605
58664
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58675,12 +58734,12 @@ var init_invoicesUpdateInvoicePaymentStatus = __esm(() => {
|
|
|
58675
58734
|
});
|
|
58676
58735
|
|
|
58677
58736
|
// src/mcp-server/tools/invoicesUpdateInvoicePaymentStatus.ts
|
|
58678
|
-
var
|
|
58737
|
+
var args29, tool$invoicesUpdateInvoicePaymentStatus;
|
|
58679
58738
|
var init_invoicesUpdateInvoicePaymentStatus2 = __esm(() => {
|
|
58680
58739
|
init_invoicesUpdateInvoicePaymentStatus();
|
|
58681
58740
|
init_updateinvoicepaymentstatusop();
|
|
58682
58741
|
init_tools();
|
|
58683
|
-
|
|
58742
|
+
args29 = {
|
|
58684
58743
|
request: UpdateInvoicePaymentStatusRequest$zodSchema
|
|
58685
58744
|
};
|
|
58686
58745
|
tool$invoicesUpdateInvoicePaymentStatus = {
|
|
@@ -58696,9 +58755,9 @@ Use when reconciling payment status from an external gateway or manual entry (e.
|
|
|
58696
58755
|
openWorldHint: false,
|
|
58697
58756
|
readOnlyHint: false
|
|
58698
58757
|
},
|
|
58699
|
-
args:
|
|
58700
|
-
tool: async (client,
|
|
58701
|
-
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();
|
|
58702
58761
|
if (!result.ok) {
|
|
58703
58762
|
return {
|
|
58704
58763
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58727,9 +58786,9 @@ var init_voidinvoiceop = __esm(() => {
|
|
|
58727
58786
|
|
|
58728
58787
|
// src/funcs/invoicesVoidInvoice.ts
|
|
58729
58788
|
function invoicesVoidInvoice(client$, request, options) {
|
|
58730
|
-
return new APIPromise($
|
|
58789
|
+
return new APIPromise($do31(client$, request, options));
|
|
58731
58790
|
}
|
|
58732
|
-
async function $
|
|
58791
|
+
async function $do31(client$, request, options) {
|
|
58733
58792
|
const parsed$ = safeParse4(request, (value$) => VoidInvoiceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58734
58793
|
if (!parsed$.ok) {
|
|
58735
58794
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58804,12 +58863,12 @@ var init_invoicesVoidInvoice = __esm(() => {
|
|
|
58804
58863
|
});
|
|
58805
58864
|
|
|
58806
58865
|
// src/mcp-server/tools/invoicesVoidInvoice.ts
|
|
58807
|
-
var
|
|
58866
|
+
var args30, tool$invoicesVoidInvoice;
|
|
58808
58867
|
var init_invoicesVoidInvoice2 = __esm(() => {
|
|
58809
58868
|
init_invoicesVoidInvoice();
|
|
58810
58869
|
init_voidinvoiceop();
|
|
58811
58870
|
init_tools();
|
|
58812
|
-
|
|
58871
|
+
args30 = {
|
|
58813
58872
|
request: VoidInvoiceRequest$zodSchema
|
|
58814
58873
|
};
|
|
58815
58874
|
tool$invoicesVoidInvoice = {
|
|
@@ -58825,9 +58884,9 @@ Use when cancelling an invoice (e.g. order cancelled or duplicate). Only unpaid
|
|
|
58825
58884
|
openWorldHint: false,
|
|
58826
58885
|
readOnlyHint: false
|
|
58827
58886
|
},
|
|
58828
|
-
args:
|
|
58829
|
-
tool: async (client,
|
|
58830
|
-
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();
|
|
58831
58890
|
if (!result.ok) {
|
|
58832
58891
|
return {
|
|
58833
58892
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58871,9 +58930,9 @@ var init_cloneplanop = __esm(() => {
|
|
|
58871
58930
|
|
|
58872
58931
|
// src/funcs/plansClonePlan.ts
|
|
58873
58932
|
function plansClonePlan(client$, request, options) {
|
|
58874
|
-
return new APIPromise($
|
|
58933
|
+
return new APIPromise($do32(client$, request, options));
|
|
58875
58934
|
}
|
|
58876
|
-
async function $
|
|
58935
|
+
async function $do32(client$, request, options) {
|
|
58877
58936
|
const parsed$ = safeParse4(request, (value$) => ClonePlanRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58878
58937
|
if (!parsed$.ok) {
|
|
58879
58938
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58949,12 +59008,12 @@ var init_plansClonePlan = __esm(() => {
|
|
|
58949
59008
|
});
|
|
58950
59009
|
|
|
58951
59010
|
// src/mcp-server/tools/plansClonePlan.ts
|
|
58952
|
-
var
|
|
59011
|
+
var args31, tool$plansClonePlan;
|
|
58953
59012
|
var init_plansClonePlan2 = __esm(() => {
|
|
58954
59013
|
init_plansClonePlan();
|
|
58955
59014
|
init_cloneplanop();
|
|
58956
59015
|
init_tools();
|
|
58957
|
-
|
|
59016
|
+
args31 = {
|
|
58958
59017
|
request: ClonePlanRequestRequest$zodSchema
|
|
58959
59018
|
};
|
|
58960
59019
|
tool$plansClonePlan = {
|
|
@@ -58970,9 +59029,9 @@ Clone an existing plan, copying its active prices, published entitlements, and p
|
|
|
58970
59029
|
openWorldHint: false,
|
|
58971
59030
|
readOnlyHint: false
|
|
58972
59031
|
},
|
|
58973
|
-
args:
|
|
58974
|
-
tool: async (client,
|
|
58975
|
-
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();
|
|
58976
59035
|
if (!result.ok) {
|
|
58977
59036
|
return {
|
|
58978
59037
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58999,9 +59058,9 @@ var init_createplanrequest = __esm(() => {
|
|
|
58999
59058
|
|
|
59000
59059
|
// src/funcs/plansCreatePlan.ts
|
|
59001
59060
|
function plansCreatePlan(client$, request, options) {
|
|
59002
|
-
return new APIPromise($
|
|
59061
|
+
return new APIPromise($do33(client$, request, options));
|
|
59003
59062
|
}
|
|
59004
|
-
async function $
|
|
59063
|
+
async function $do33(client$, request, options) {
|
|
59005
59064
|
const parsed$ = safeParse4(request, (value$) => CreatePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59006
59065
|
if (!parsed$.ok) {
|
|
59007
59066
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59071,12 +59130,12 @@ var init_plansCreatePlan = __esm(() => {
|
|
|
59071
59130
|
});
|
|
59072
59131
|
|
|
59073
59132
|
// src/mcp-server/tools/plansCreatePlan.ts
|
|
59074
|
-
var
|
|
59133
|
+
var args32, tool$plansCreatePlan;
|
|
59075
59134
|
var init_plansCreatePlan2 = __esm(() => {
|
|
59076
59135
|
init_plansCreatePlan();
|
|
59077
59136
|
init_createplanrequest();
|
|
59078
59137
|
init_tools();
|
|
59079
|
-
|
|
59138
|
+
args32 = {
|
|
59080
59139
|
request: CreatePlanRequest$zodSchema.describe(`Plan configuration`)
|
|
59081
59140
|
};
|
|
59082
59141
|
tool$plansCreatePlan = {
|
|
@@ -59092,9 +59151,9 @@ Use when defining a new pricing plan (e.g. Free, Pro, Enterprise). Attach prices
|
|
|
59092
59151
|
openWorldHint: false,
|
|
59093
59152
|
readOnlyHint: false
|
|
59094
59153
|
},
|
|
59095
|
-
args:
|
|
59096
|
-
tool: async (client,
|
|
59097
|
-
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();
|
|
59098
59157
|
if (!result.ok) {
|
|
59099
59158
|
return {
|
|
59100
59159
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59123,9 +59182,9 @@ var init_deleteplanop = __esm(() => {
|
|
|
59123
59182
|
|
|
59124
59183
|
// src/funcs/plansDeletePlan.ts
|
|
59125
59184
|
function plansDeletePlan(client$, request, options) {
|
|
59126
|
-
return new APIPromise($
|
|
59185
|
+
return new APIPromise($do34(client$, request, options));
|
|
59127
59186
|
}
|
|
59128
|
-
async function $
|
|
59187
|
+
async function $do34(client$, request, options) {
|
|
59129
59188
|
const parsed$ = safeParse4(request, (value$) => DeletePlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59130
59189
|
if (!parsed$.ok) {
|
|
59131
59190
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59200,12 +59259,12 @@ var init_plansDeletePlan = __esm(() => {
|
|
|
59200
59259
|
});
|
|
59201
59260
|
|
|
59202
59261
|
// src/mcp-server/tools/plansDeletePlan.ts
|
|
59203
|
-
var
|
|
59262
|
+
var args33, tool$plansDeletePlan;
|
|
59204
59263
|
var init_plansDeletePlan2 = __esm(() => {
|
|
59205
59264
|
init_plansDeletePlan();
|
|
59206
59265
|
init_deleteplanop();
|
|
59207
59266
|
init_tools();
|
|
59208
|
-
|
|
59267
|
+
args33 = {
|
|
59209
59268
|
request: DeletePlanRequest$zodSchema
|
|
59210
59269
|
};
|
|
59211
59270
|
tool$plansDeletePlan = {
|
|
@@ -59221,9 +59280,9 @@ Use when retiring a plan (e.g. end-of-life). Existing subscriptions may be affec
|
|
|
59221
59280
|
openWorldHint: false,
|
|
59222
59281
|
readOnlyHint: false
|
|
59223
59282
|
},
|
|
59224
|
-
args:
|
|
59225
|
-
tool: async (client,
|
|
59226
|
-
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();
|
|
59227
59286
|
if (!result.ok) {
|
|
59228
59287
|
return {
|
|
59229
59288
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59252,9 +59311,9 @@ var init_getplanop = __esm(() => {
|
|
|
59252
59311
|
|
|
59253
59312
|
// src/funcs/plansGetPlan.ts
|
|
59254
59313
|
function plansGetPlan(client$, request, options) {
|
|
59255
|
-
return new APIPromise($
|
|
59314
|
+
return new APIPromise($do35(client$, request, options));
|
|
59256
59315
|
}
|
|
59257
|
-
async function $
|
|
59316
|
+
async function $do35(client$, request, options) {
|
|
59258
59317
|
const parsed$ = safeParse4(request, (value$) => GetPlanRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59259
59318
|
if (!parsed$.ok) {
|
|
59260
59319
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59329,12 +59388,12 @@ var init_plansGetPlan = __esm(() => {
|
|
|
59329
59388
|
});
|
|
59330
59389
|
|
|
59331
59390
|
// src/mcp-server/tools/plansGetPlan.ts
|
|
59332
|
-
var
|
|
59391
|
+
var args34, tool$plansGetPlan;
|
|
59333
59392
|
var init_plansGetPlan2 = __esm(() => {
|
|
59334
59393
|
init_plansGetPlan();
|
|
59335
59394
|
init_getplanop();
|
|
59336
59395
|
init_tools();
|
|
59337
|
-
|
|
59396
|
+
args34 = {
|
|
59338
59397
|
request: GetPlanRequest$zodSchema
|
|
59339
59398
|
};
|
|
59340
59399
|
tool$plansGetPlan = {
|
|
@@ -59350,9 +59409,9 @@ Use when you need to load a single plan (e.g. for display or to create a subscri
|
|
|
59350
59409
|
openWorldHint: false,
|
|
59351
59410
|
readOnlyHint: true
|
|
59352
59411
|
},
|
|
59353
|
-
args:
|
|
59354
|
-
tool: async (client,
|
|
59355
|
-
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();
|
|
59356
59415
|
if (!result.ok) {
|
|
59357
59416
|
return {
|
|
59358
59417
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59393,9 +59452,9 @@ var init_planfilter = __esm(() => {
|
|
|
59393
59452
|
|
|
59394
59453
|
// src/funcs/plansQueryPlan.ts
|
|
59395
59454
|
function plansQueryPlan(client$, request, options) {
|
|
59396
|
-
return new APIPromise($
|
|
59455
|
+
return new APIPromise($do36(client$, request, options));
|
|
59397
59456
|
}
|
|
59398
|
-
async function $
|
|
59457
|
+
async function $do36(client$, request, options) {
|
|
59399
59458
|
const parsed$ = safeParse4(request, (value$) => PlanFilter$zodSchema.parse(value$), "Input validation failed");
|
|
59400
59459
|
if (!parsed$.ok) {
|
|
59401
59460
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59465,12 +59524,12 @@ var init_plansQueryPlan = __esm(() => {
|
|
|
59465
59524
|
});
|
|
59466
59525
|
|
|
59467
59526
|
// src/mcp-server/tools/plansQueryPlan.ts
|
|
59468
|
-
var
|
|
59527
|
+
var args35, tool$plansQueryPlan;
|
|
59469
59528
|
var init_plansQueryPlan2 = __esm(() => {
|
|
59470
59529
|
init_plansQueryPlan();
|
|
59471
59530
|
init_planfilter();
|
|
59472
59531
|
init_tools();
|
|
59473
|
-
|
|
59532
|
+
args35 = {
|
|
59474
59533
|
request: PlanFilter$zodSchema.describe(`Filter`)
|
|
59475
59534
|
};
|
|
59476
59535
|
tool$plansQueryPlan = {
|
|
@@ -59486,9 +59545,9 @@ Use when listing or searching plans (e.g. plan picker or admin catalog). Returns
|
|
|
59486
59545
|
openWorldHint: false,
|
|
59487
59546
|
readOnlyHint: false
|
|
59488
59547
|
},
|
|
59489
|
-
args:
|
|
59490
|
-
tool: async (client,
|
|
59491
|
-
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();
|
|
59492
59551
|
if (!result.ok) {
|
|
59493
59552
|
return {
|
|
59494
59553
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59517,9 +59576,9 @@ var init_syncplanpricesop = __esm(() => {
|
|
|
59517
59576
|
|
|
59518
59577
|
// src/funcs/plansSyncPlanPrices.ts
|
|
59519
59578
|
function plansSyncPlanPrices(client$, request, options) {
|
|
59520
|
-
return new APIPromise($
|
|
59579
|
+
return new APIPromise($do37(client$, request, options));
|
|
59521
59580
|
}
|
|
59522
|
-
async function $
|
|
59581
|
+
async function $do37(client$, request, options) {
|
|
59523
59582
|
const parsed$ = safeParse4(request, (value$) => SyncPlanPricesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59524
59583
|
if (!parsed$.ok) {
|
|
59525
59584
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59594,12 +59653,12 @@ var init_plansSyncPlanPrices = __esm(() => {
|
|
|
59594
59653
|
});
|
|
59595
59654
|
|
|
59596
59655
|
// src/mcp-server/tools/plansSyncPlanPrices.ts
|
|
59597
|
-
var
|
|
59656
|
+
var args36, tool$plansSyncPlanPrices;
|
|
59598
59657
|
var init_plansSyncPlanPrices2 = __esm(() => {
|
|
59599
59658
|
init_plansSyncPlanPrices();
|
|
59600
59659
|
init_syncplanpricesop();
|
|
59601
59660
|
init_tools();
|
|
59602
|
-
|
|
59661
|
+
args36 = {
|
|
59603
59662
|
request: SyncPlanPricesRequest$zodSchema
|
|
59604
59663
|
};
|
|
59605
59664
|
tool$plansSyncPlanPrices = {
|
|
@@ -59615,9 +59674,9 @@ Use when you have changed plan prices and need to push them to all active subscr
|
|
|
59615
59674
|
openWorldHint: false,
|
|
59616
59675
|
readOnlyHint: false
|
|
59617
59676
|
},
|
|
59618
|
-
args:
|
|
59619
|
-
tool: async (client,
|
|
59620
|
-
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();
|
|
59621
59680
|
if (!result.ok) {
|
|
59622
59681
|
return {
|
|
59623
59682
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59661,9 +59720,9 @@ var init_updateplanop = __esm(() => {
|
|
|
59661
59720
|
|
|
59662
59721
|
// src/funcs/plansUpdatePlan.ts
|
|
59663
59722
|
function plansUpdatePlan(client$, request, options) {
|
|
59664
|
-
return new APIPromise($
|
|
59723
|
+
return new APIPromise($do38(client$, request, options));
|
|
59665
59724
|
}
|
|
59666
|
-
async function $
|
|
59725
|
+
async function $do38(client$, request, options) {
|
|
59667
59726
|
const parsed$ = safeParse4(request, (value$) => UpdatePlanRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59668
59727
|
if (!parsed$.ok) {
|
|
59669
59728
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59739,12 +59798,12 @@ var init_plansUpdatePlan = __esm(() => {
|
|
|
59739
59798
|
});
|
|
59740
59799
|
|
|
59741
59800
|
// src/mcp-server/tools/plansUpdatePlan.ts
|
|
59742
|
-
var
|
|
59801
|
+
var args37, tool$plansUpdatePlan;
|
|
59743
59802
|
var init_plansUpdatePlan2 = __esm(() => {
|
|
59744
59803
|
init_plansUpdatePlan();
|
|
59745
59804
|
init_updateplanop();
|
|
59746
59805
|
init_tools();
|
|
59747
|
-
|
|
59806
|
+
args37 = {
|
|
59748
59807
|
request: UpdatePlanRequestRequest$zodSchema
|
|
59749
59808
|
};
|
|
59750
59809
|
tool$plansUpdatePlan = {
|
|
@@ -59760,9 +59819,9 @@ Use when changing plan details (e.g. name, interval, or metadata). Partial updat
|
|
|
59760
59819
|
openWorldHint: false,
|
|
59761
59820
|
readOnlyHint: false
|
|
59762
59821
|
},
|
|
59763
|
-
args:
|
|
59764
|
-
tool: async (client,
|
|
59765
|
-
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();
|
|
59766
59825
|
if (!result.ok) {
|
|
59767
59826
|
return {
|
|
59768
59827
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59857,9 +59916,9 @@ var init_createpricerequest = __esm(() => {
|
|
|
59857
59916
|
|
|
59858
59917
|
// src/funcs/pricesCreatePrice.ts
|
|
59859
59918
|
function pricesCreatePrice(client$, request, options) {
|
|
59860
|
-
return new APIPromise($
|
|
59919
|
+
return new APIPromise($do39(client$, request, options));
|
|
59861
59920
|
}
|
|
59862
|
-
async function $
|
|
59921
|
+
async function $do39(client$, request, options) {
|
|
59863
59922
|
const parsed$ = safeParse4(request, (value$) => CreatePriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59864
59923
|
if (!parsed$.ok) {
|
|
59865
59924
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59929,12 +59988,12 @@ var init_pricesCreatePrice = __esm(() => {
|
|
|
59929
59988
|
});
|
|
59930
59989
|
|
|
59931
59990
|
// src/mcp-server/tools/pricesCreatePrice.ts
|
|
59932
|
-
var
|
|
59991
|
+
var args38, tool$pricesCreatePrice;
|
|
59933
59992
|
var init_pricesCreatePrice2 = __esm(() => {
|
|
59934
59993
|
init_pricesCreatePrice();
|
|
59935
59994
|
init_createpricerequest();
|
|
59936
59995
|
init_tools();
|
|
59937
|
-
|
|
59996
|
+
args38 = {
|
|
59938
59997
|
request: CreatePriceRequest$zodSchema.describe(`Price configuration`)
|
|
59939
59998
|
};
|
|
59940
59999
|
tool$pricesCreatePrice = {
|
|
@@ -59950,9 +60009,9 @@ Use when adding a new price to a plan or catalog (e.g. per-seat, flat, or metere
|
|
|
59950
60009
|
openWorldHint: false,
|
|
59951
60010
|
readOnlyHint: false
|
|
59952
60011
|
},
|
|
59953
|
-
args:
|
|
59954
|
-
tool: async (client,
|
|
59955
|
-
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();
|
|
59956
60015
|
if (!result.ok) {
|
|
59957
60016
|
return {
|
|
59958
60017
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59976,9 +60035,9 @@ var init_createbulkpricerequest = __esm(() => {
|
|
|
59976
60035
|
|
|
59977
60036
|
// src/funcs/pricesCreatePricesBulk.ts
|
|
59978
60037
|
function pricesCreatePricesBulk(client$, request, options) {
|
|
59979
|
-
return new APIPromise($
|
|
60038
|
+
return new APIPromise($do40(client$, request, options));
|
|
59980
60039
|
}
|
|
59981
|
-
async function $
|
|
60040
|
+
async function $do40(client$, request, options) {
|
|
59982
60041
|
const parsed$ = safeParse4(request, (value$) => CreateBulkPriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59983
60042
|
if (!parsed$.ok) {
|
|
59984
60043
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60048,12 +60107,12 @@ var init_pricesCreatePricesBulk = __esm(() => {
|
|
|
60048
60107
|
});
|
|
60049
60108
|
|
|
60050
60109
|
// src/mcp-server/tools/pricesCreatePricesBulk.ts
|
|
60051
|
-
var
|
|
60110
|
+
var args39, tool$pricesCreatePricesBulk;
|
|
60052
60111
|
var init_pricesCreatePricesBulk2 = __esm(() => {
|
|
60053
60112
|
init_pricesCreatePricesBulk();
|
|
60054
60113
|
init_createbulkpricerequest();
|
|
60055
60114
|
init_tools();
|
|
60056
|
-
|
|
60115
|
+
args39 = {
|
|
60057
60116
|
request: CreateBulkPriceRequest$zodSchema.describe(`Bulk price configuration`)
|
|
60058
60117
|
};
|
|
60059
60118
|
tool$pricesCreatePricesBulk = {
|
|
@@ -60069,9 +60128,9 @@ Use when creating many prices at once (e.g. importing a catalog or setting up a
|
|
|
60069
60128
|
openWorldHint: false,
|
|
60070
60129
|
readOnlyHint: false
|
|
60071
60130
|
},
|
|
60072
|
-
args:
|
|
60073
|
-
tool: async (client,
|
|
60074
|
-
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();
|
|
60075
60134
|
if (!result.ok) {
|
|
60076
60135
|
return {
|
|
60077
60136
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60111,9 +60170,9 @@ var init_deletepriceop = __esm(() => {
|
|
|
60111
60170
|
|
|
60112
60171
|
// src/funcs/pricesDeletePrice.ts
|
|
60113
60172
|
function pricesDeletePrice(client$, request, options) {
|
|
60114
|
-
return new APIPromise($
|
|
60173
|
+
return new APIPromise($do41(client$, request, options));
|
|
60115
60174
|
}
|
|
60116
|
-
async function $
|
|
60175
|
+
async function $do41(client$, request, options) {
|
|
60117
60176
|
const parsed$ = safeParse4(request, (value$) => DeletePriceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60118
60177
|
if (!parsed$.ok) {
|
|
60119
60178
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60189,12 +60248,12 @@ var init_pricesDeletePrice = __esm(() => {
|
|
|
60189
60248
|
});
|
|
60190
60249
|
|
|
60191
60250
|
// src/mcp-server/tools/pricesDeletePrice.ts
|
|
60192
|
-
var
|
|
60251
|
+
var args40, tool$pricesDeletePrice;
|
|
60193
60252
|
var init_pricesDeletePrice2 = __esm(() => {
|
|
60194
60253
|
init_pricesDeletePrice();
|
|
60195
60254
|
init_deletepriceop();
|
|
60196
60255
|
init_tools();
|
|
60197
|
-
|
|
60256
|
+
args40 = {
|
|
60198
60257
|
request: DeletePriceRequestRequest$zodSchema
|
|
60199
60258
|
};
|
|
60200
60259
|
tool$pricesDeletePrice = {
|
|
@@ -60210,9 +60269,9 @@ Use when retiring a price (e.g. end-of-life or replacement). Optional effective
|
|
|
60210
60269
|
openWorldHint: false,
|
|
60211
60270
|
readOnlyHint: false
|
|
60212
60271
|
},
|
|
60213
|
-
args:
|
|
60214
|
-
tool: async (client,
|
|
60215
|
-
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();
|
|
60216
60275
|
if (!result.ok) {
|
|
60217
60276
|
return {
|
|
60218
60277
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60241,9 +60300,9 @@ var init_getpriceop = __esm(() => {
|
|
|
60241
60300
|
|
|
60242
60301
|
// src/funcs/pricesGetPrice.ts
|
|
60243
60302
|
function pricesGetPrice(client$, request, options) {
|
|
60244
|
-
return new APIPromise($
|
|
60303
|
+
return new APIPromise($do42(client$, request, options));
|
|
60245
60304
|
}
|
|
60246
|
-
async function $
|
|
60305
|
+
async function $do42(client$, request, options) {
|
|
60247
60306
|
const parsed$ = safeParse4(request, (value$) => GetPriceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60248
60307
|
if (!parsed$.ok) {
|
|
60249
60308
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60318,12 +60377,12 @@ var init_pricesGetPrice = __esm(() => {
|
|
|
60318
60377
|
});
|
|
60319
60378
|
|
|
60320
60379
|
// src/mcp-server/tools/pricesGetPrice.ts
|
|
60321
|
-
var
|
|
60380
|
+
var args41, tool$pricesGetPrice;
|
|
60322
60381
|
var init_pricesGetPrice2 = __esm(() => {
|
|
60323
60382
|
init_pricesGetPrice();
|
|
60324
60383
|
init_getpriceop();
|
|
60325
60384
|
init_tools();
|
|
60326
|
-
|
|
60385
|
+
args41 = {
|
|
60327
60386
|
request: GetPriceRequest$zodSchema
|
|
60328
60387
|
};
|
|
60329
60388
|
tool$pricesGetPrice = {
|
|
@@ -60339,9 +60398,9 @@ Use when you need to load a single price (e.g. for display or editing). Response
|
|
|
60339
60398
|
openWorldHint: false,
|
|
60340
60399
|
readOnlyHint: true
|
|
60341
60400
|
},
|
|
60342
|
-
args:
|
|
60343
|
-
tool: async (client,
|
|
60344
|
-
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();
|
|
60345
60404
|
if (!result.ok) {
|
|
60346
60405
|
return {
|
|
60347
60406
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60370,9 +60429,9 @@ var init_getpricebylookupkeyop = __esm(() => {
|
|
|
60370
60429
|
|
|
60371
60430
|
// src/funcs/pricesGetPriceByLookupKey.ts
|
|
60372
60431
|
function pricesGetPriceByLookupKey(client$, request, options) {
|
|
60373
|
-
return new APIPromise($
|
|
60432
|
+
return new APIPromise($do43(client$, request, options));
|
|
60374
60433
|
}
|
|
60375
|
-
async function $
|
|
60434
|
+
async function $do43(client$, request, options) {
|
|
60376
60435
|
const parsed$ = safeParse4(request, (value$) => GetPriceByLookupKeyRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60377
60436
|
if (!parsed$.ok) {
|
|
60378
60437
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60447,12 +60506,12 @@ var init_pricesGetPriceByLookupKey = __esm(() => {
|
|
|
60447
60506
|
});
|
|
60448
60507
|
|
|
60449
60508
|
// src/mcp-server/tools/pricesGetPriceByLookupKey.ts
|
|
60450
|
-
var
|
|
60509
|
+
var args42, tool$pricesGetPriceByLookupKey;
|
|
60451
60510
|
var init_pricesGetPriceByLookupKey2 = __esm(() => {
|
|
60452
60511
|
init_pricesGetPriceByLookupKey();
|
|
60453
60512
|
init_getpricebylookupkeyop();
|
|
60454
60513
|
init_tools();
|
|
60455
|
-
|
|
60514
|
+
args42 = {
|
|
60456
60515
|
request: GetPriceByLookupKeyRequest$zodSchema
|
|
60457
60516
|
};
|
|
60458
60517
|
tool$pricesGetPriceByLookupKey = {
|
|
@@ -60468,9 +60527,9 @@ Use when resolving a price by external id (e.g. from your catalog or CMS). Ideal
|
|
|
60468
60527
|
openWorldHint: false,
|
|
60469
60528
|
readOnlyHint: true
|
|
60470
60529
|
},
|
|
60471
|
-
args:
|
|
60472
|
-
tool: async (client,
|
|
60473
|
-
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();
|
|
60474
60533
|
if (!result.ok) {
|
|
60475
60534
|
return {
|
|
60476
60535
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60517,9 +60576,9 @@ var init_pricefilter = __esm(() => {
|
|
|
60517
60576
|
|
|
60518
60577
|
// src/funcs/pricesQueryPrice.ts
|
|
60519
60578
|
function pricesQueryPrice(client$, request, options) {
|
|
60520
|
-
return new APIPromise($
|
|
60579
|
+
return new APIPromise($do44(client$, request, options));
|
|
60521
60580
|
}
|
|
60522
|
-
async function $
|
|
60581
|
+
async function $do44(client$, request, options) {
|
|
60523
60582
|
const parsed$ = safeParse4(request, (value$) => PriceFilter$zodSchema.parse(value$), "Input validation failed");
|
|
60524
60583
|
if (!parsed$.ok) {
|
|
60525
60584
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60589,12 +60648,12 @@ var init_pricesQueryPrice = __esm(() => {
|
|
|
60589
60648
|
});
|
|
60590
60649
|
|
|
60591
60650
|
// src/mcp-server/tools/pricesQueryPrice.ts
|
|
60592
|
-
var
|
|
60651
|
+
var args43, tool$pricesQueryPrice;
|
|
60593
60652
|
var init_pricesQueryPrice2 = __esm(() => {
|
|
60594
60653
|
init_pricesQueryPrice();
|
|
60595
60654
|
init_pricefilter();
|
|
60596
60655
|
init_tools();
|
|
60597
|
-
|
|
60656
|
+
args43 = {
|
|
60598
60657
|
request: PriceFilter$zodSchema.describe(`Filter`)
|
|
60599
60658
|
};
|
|
60600
60659
|
tool$pricesQueryPrice = {
|
|
@@ -60610,9 +60669,9 @@ Use when listing or searching prices (e.g. plan builder or catalog). Returns a p
|
|
|
60610
60669
|
openWorldHint: false,
|
|
60611
60670
|
readOnlyHint: false
|
|
60612
60671
|
},
|
|
60613
|
-
args:
|
|
60614
|
-
tool: async (client,
|
|
60615
|
-
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();
|
|
60616
60675
|
if (!result.ok) {
|
|
60617
60676
|
return {
|
|
60618
60677
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60672,9 +60731,9 @@ var init_updatepriceop = __esm(() => {
|
|
|
60672
60731
|
|
|
60673
60732
|
// src/funcs/pricesUpdatePrice.ts
|
|
60674
60733
|
function pricesUpdatePrice(client$, request, options) {
|
|
60675
|
-
return new APIPromise($
|
|
60734
|
+
return new APIPromise($do45(client$, request, options));
|
|
60676
60735
|
}
|
|
60677
|
-
async function $
|
|
60736
|
+
async function $do45(client$, request, options) {
|
|
60678
60737
|
const parsed$ = safeParse4(request, (value$) => UpdatePriceRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60679
60738
|
if (!parsed$.ok) {
|
|
60680
60739
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60750,12 +60809,12 @@ var init_pricesUpdatePrice = __esm(() => {
|
|
|
60750
60809
|
});
|
|
60751
60810
|
|
|
60752
60811
|
// src/mcp-server/tools/pricesUpdatePrice.ts
|
|
60753
|
-
var
|
|
60812
|
+
var args44, tool$pricesUpdatePrice;
|
|
60754
60813
|
var init_pricesUpdatePrice2 = __esm(() => {
|
|
60755
60814
|
init_pricesUpdatePrice();
|
|
60756
60815
|
init_updatepriceop();
|
|
60757
60816
|
init_tools();
|
|
60758
|
-
|
|
60817
|
+
args44 = {
|
|
60759
60818
|
request: UpdatePriceRequestRequest$zodSchema
|
|
60760
60819
|
};
|
|
60761
60820
|
tool$pricesUpdatePrice = {
|
|
@@ -60771,9 +60830,9 @@ Use when changing price configuration (e.g. amount, billing scheme, or metadata)
|
|
|
60771
60830
|
openWorldHint: false,
|
|
60772
60831
|
readOnlyHint: false
|
|
60773
60832
|
},
|
|
60774
|
-
args:
|
|
60775
|
-
tool: async (client,
|
|
60776
|
-
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();
|
|
60777
60836
|
if (!result.ok) {
|
|
60778
60837
|
return {
|
|
60779
60838
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60813,9 +60872,9 @@ var init_activatesubscriptionop = __esm(() => {
|
|
|
60813
60872
|
|
|
60814
60873
|
// src/funcs/subscriptionsActivateSubscription.ts
|
|
60815
60874
|
function subscriptionsActivateSubscription(client$, request, options) {
|
|
60816
|
-
return new APIPromise($
|
|
60875
|
+
return new APIPromise($do46(client$, request, options));
|
|
60817
60876
|
}
|
|
60818
|
-
async function $
|
|
60877
|
+
async function $do46(client$, request, options) {
|
|
60819
60878
|
const parsed$ = safeParse4(request, (value$) => ActivateSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60820
60879
|
if (!parsed$.ok) {
|
|
60821
60880
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60891,12 +60950,12 @@ var init_subscriptionsActivateSubscription = __esm(() => {
|
|
|
60891
60950
|
});
|
|
60892
60951
|
|
|
60893
60952
|
// src/mcp-server/tools/subscriptionsActivateSubscription.ts
|
|
60894
|
-
var
|
|
60953
|
+
var args45, tool$subscriptionsActivateSubscription;
|
|
60895
60954
|
var init_subscriptionsActivateSubscription2 = __esm(() => {
|
|
60896
60955
|
init_subscriptionsActivateSubscription();
|
|
60897
60956
|
init_activatesubscriptionop();
|
|
60898
60957
|
init_tools();
|
|
60899
|
-
|
|
60958
|
+
args45 = {
|
|
60900
60959
|
request: ActivateSubscriptionRequest$zodSchema
|
|
60901
60960
|
};
|
|
60902
60961
|
tool$subscriptionsActivateSubscription = {
|
|
@@ -60912,9 +60971,9 @@ Use when turning a draft subscription live (e.g. after collecting payment or com
|
|
|
60912
60971
|
openWorldHint: false,
|
|
60913
60972
|
readOnlyHint: false
|
|
60914
60973
|
},
|
|
60915
|
-
args:
|
|
60916
|
-
tool: async (client,
|
|
60917
|
-
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();
|
|
60918
60977
|
if (!result.ok) {
|
|
60919
60978
|
return {
|
|
60920
60979
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -60973,9 +61032,9 @@ var init_addaddonrequest = __esm(() => {
|
|
|
60973
61032
|
|
|
60974
61033
|
// src/funcs/subscriptionsAddSubscriptionAddon.ts
|
|
60975
61034
|
function subscriptionsAddSubscriptionAddon(client$, request, options) {
|
|
60976
|
-
return new APIPromise($
|
|
61035
|
+
return new APIPromise($do47(client$, request, options));
|
|
60977
61036
|
}
|
|
60978
|
-
async function $
|
|
61037
|
+
async function $do47(client$, request, options) {
|
|
60979
61038
|
const parsed$ = safeParse4(request, (value$) => AddAddonRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60980
61039
|
if (!parsed$.ok) {
|
|
60981
61040
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61045,12 +61104,12 @@ var init_subscriptionsAddSubscriptionAddon = __esm(() => {
|
|
|
61045
61104
|
});
|
|
61046
61105
|
|
|
61047
61106
|
// src/mcp-server/tools/subscriptionsAddSubscriptionAddon.ts
|
|
61048
|
-
var
|
|
61107
|
+
var args46, tool$subscriptionsAddSubscriptionAddon;
|
|
61049
61108
|
var init_subscriptionsAddSubscriptionAddon2 = __esm(() => {
|
|
61050
61109
|
init_subscriptionsAddSubscriptionAddon();
|
|
61051
61110
|
init_addaddonrequest();
|
|
61052
61111
|
init_tools();
|
|
61053
|
-
|
|
61112
|
+
args46 = {
|
|
61054
61113
|
request: AddAddonRequest$zodSchema.describe(`Add Addon Request`)
|
|
61055
61114
|
};
|
|
61056
61115
|
tool$subscriptionsAddSubscriptionAddon = {
|
|
@@ -61066,9 +61125,9 @@ Use when adding an optional product or add-on to an existing subscription (e.g.
|
|
|
61066
61125
|
openWorldHint: false,
|
|
61067
61126
|
readOnlyHint: false
|
|
61068
61127
|
},
|
|
61069
|
-
args:
|
|
61070
|
-
tool: async (client,
|
|
61071
|
-
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();
|
|
61072
61131
|
if (!result.ok) {
|
|
61073
61132
|
return {
|
|
61074
61133
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61174,9 +61233,9 @@ var init_cancelsubscriptionop = __esm(() => {
|
|
|
61174
61233
|
|
|
61175
61234
|
// src/funcs/subscriptionsCancelSubscription.ts
|
|
61176
61235
|
function subscriptionsCancelSubscription(client$, request, options) {
|
|
61177
|
-
return new APIPromise($
|
|
61236
|
+
return new APIPromise($do48(client$, request, options));
|
|
61178
61237
|
}
|
|
61179
|
-
async function $
|
|
61238
|
+
async function $do48(client$, request, options) {
|
|
61180
61239
|
const parsed$ = safeParse4(request, (value$) => CancelSubscriptionRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61181
61240
|
if (!parsed$.ok) {
|
|
61182
61241
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61252,12 +61311,12 @@ var init_subscriptionsCancelSubscription = __esm(() => {
|
|
|
61252
61311
|
});
|
|
61253
61312
|
|
|
61254
61313
|
// src/mcp-server/tools/subscriptionsCancelSubscription.ts
|
|
61255
|
-
var
|
|
61314
|
+
var args47, tool$subscriptionsCancelSubscription;
|
|
61256
61315
|
var init_subscriptionsCancelSubscription2 = __esm(() => {
|
|
61257
61316
|
init_subscriptionsCancelSubscription();
|
|
61258
61317
|
init_cancelsubscriptionop();
|
|
61259
61318
|
init_tools();
|
|
61260
|
-
|
|
61319
|
+
args47 = {
|
|
61261
61320
|
request: CancelSubscriptionRequestRequest$zodSchema
|
|
61262
61321
|
};
|
|
61263
61322
|
tool$subscriptionsCancelSubscription = {
|
|
@@ -61273,9 +61332,9 @@ Use when a customer churns or downgrades. Supports immediate or end-of-period ca
|
|
|
61273
61332
|
openWorldHint: false,
|
|
61274
61333
|
readOnlyHint: false
|
|
61275
61334
|
},
|
|
61276
|
-
args:
|
|
61277
|
-
tool: async (client,
|
|
61278
|
-
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();
|
|
61279
61338
|
if (!result.ok) {
|
|
61280
61339
|
return {
|
|
61281
61340
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61322,9 +61381,9 @@ var init_cancelsubscriptionscheduleop = __esm(() => {
|
|
|
61322
61381
|
|
|
61323
61382
|
// src/funcs/subscriptionsCancelSubscriptionSchedule.ts
|
|
61324
61383
|
function subscriptionsCancelSubscriptionSchedule(client$, request, options) {
|
|
61325
|
-
return new APIPromise($
|
|
61384
|
+
return new APIPromise($do49(client$, request, options));
|
|
61326
61385
|
}
|
|
61327
|
-
async function $
|
|
61386
|
+
async function $do49(client$, request, options) {
|
|
61328
61387
|
const parsed$ = safeParse4(request, (value$) => CancelSubscriptionScheduleRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61329
61388
|
if (!parsed$.ok) {
|
|
61330
61389
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61400,12 +61459,12 @@ var init_subscriptionsCancelSubscriptionSchedule = __esm(() => {
|
|
|
61400
61459
|
});
|
|
61401
61460
|
|
|
61402
61461
|
// src/mcp-server/tools/subscriptionsCancelSubscriptionSchedule.ts
|
|
61403
|
-
var
|
|
61462
|
+
var args48, tool$subscriptionsCancelSubscriptionSchedule;
|
|
61404
61463
|
var init_subscriptionsCancelSubscriptionSchedule2 = __esm(() => {
|
|
61405
61464
|
init_subscriptionsCancelSubscriptionSchedule();
|
|
61406
61465
|
init_cancelsubscriptionscheduleop();
|
|
61407
61466
|
init_tools();
|
|
61408
|
-
|
|
61467
|
+
args48 = {
|
|
61409
61468
|
request: CancelSubscriptionScheduleRequest$zodSchema
|
|
61410
61469
|
};
|
|
61411
61470
|
tool$subscriptionsCancelSubscriptionSchedule = {
|
|
@@ -61421,9 +61480,9 @@ Use when cancelling a scheduled change (e.g. customer changed mind). Identify by
|
|
|
61421
61480
|
openWorldHint: false,
|
|
61422
61481
|
readOnlyHint: false
|
|
61423
61482
|
},
|
|
61424
|
-
args:
|
|
61425
|
-
tool: async (client,
|
|
61426
|
-
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();
|
|
61427
61486
|
if (!result.ok) {
|
|
61428
61487
|
return {
|
|
61429
61488
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61667,6 +61726,11 @@ var init_createsubscriptionrequest = __esm(() => {
|
|
|
61667
61726
|
init_taxrateoverride();
|
|
61668
61727
|
CreateSubscriptionRequest$zodSchema = object({
|
|
61669
61728
|
addons: array(AddAddonToSubscriptionRequest$zodSchema).optional().describe("Addons represents addons to be added to the subscription during creation"),
|
|
61729
|
+
auto_invoice_threshold: string2().optional().describe(`AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers
|
|
61730
|
+
an intermediate invoice mid-period. Set once at creation; cannot be changed later.
|
|
61731
|
+
Allowed only when the subscription resolves to type standalone (no parent hierarchy rows).
|
|
61732
|
+
Plan line items must be usage-based only (no fixed or other non-usage plan prices).
|
|
61733
|
+
Nil means auto invoice threshold billing is disabled for this subscription.`),
|
|
61670
61734
|
billing_anchor: exports_iso.datetime({ offset: true }).optional().describe(`BillingAnchor overrides the derived billing anchor when billing_cycle is anniversary.
|
|
61671
61735
|
For monthly billing, the day-of-month (and time-of-day) define cycle boundaries: if start_date
|
|
61672
61736
|
is before that day in the month, the first billing period ends on the next occurrence of that
|
|
@@ -61713,9 +61777,9 @@ and must be same as what you provided as external_id while creating the customer
|
|
|
61713
61777
|
|
|
61714
61778
|
// src/funcs/subscriptionsCreateSubscription.ts
|
|
61715
61779
|
function subscriptionsCreateSubscription(client$, request, options) {
|
|
61716
|
-
return new APIPromise($
|
|
61780
|
+
return new APIPromise($do50(client$, request, options));
|
|
61717
61781
|
}
|
|
61718
|
-
async function $
|
|
61782
|
+
async function $do50(client$, request, options) {
|
|
61719
61783
|
const parsed$ = safeParse4(request, (value$) => CreateSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61720
61784
|
if (!parsed$.ok) {
|
|
61721
61785
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61785,12 +61849,12 @@ var init_subscriptionsCreateSubscription = __esm(() => {
|
|
|
61785
61849
|
});
|
|
61786
61850
|
|
|
61787
61851
|
// src/mcp-server/tools/subscriptionsCreateSubscription.ts
|
|
61788
|
-
var
|
|
61852
|
+
var args49, tool$subscriptionsCreateSubscription;
|
|
61789
61853
|
var init_subscriptionsCreateSubscription2 = __esm(() => {
|
|
61790
61854
|
init_subscriptionsCreateSubscription();
|
|
61791
61855
|
init_createsubscriptionrequest();
|
|
61792
61856
|
init_tools();
|
|
61793
|
-
|
|
61857
|
+
args49 = {
|
|
61794
61858
|
request: CreateSubscriptionRequest$zodSchema.describe(`Subscription Request`)
|
|
61795
61859
|
};
|
|
61796
61860
|
tool$subscriptionsCreateSubscription = {
|
|
@@ -61806,9 +61870,9 @@ Use when onboarding a customer to a plan or starting a new subscription. Ideal f
|
|
|
61806
61870
|
openWorldHint: false,
|
|
61807
61871
|
readOnlyHint: false
|
|
61808
61872
|
},
|
|
61809
|
-
args:
|
|
61810
|
-
tool: async (client,
|
|
61811
|
-
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();
|
|
61812
61876
|
if (!result.ok) {
|
|
61813
61877
|
return {
|
|
61814
61878
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -61892,9 +61956,9 @@ var init_createsubscriptionlineitemop = __esm(() => {
|
|
|
61892
61956
|
|
|
61893
61957
|
// src/funcs/subscriptionsCreateSubscriptionLineItem.ts
|
|
61894
61958
|
function subscriptionsCreateSubscriptionLineItem(client$, request, options) {
|
|
61895
|
-
return new APIPromise($
|
|
61959
|
+
return new APIPromise($do51(client$, request, options));
|
|
61896
61960
|
}
|
|
61897
|
-
async function $
|
|
61961
|
+
async function $do51(client$, request, options) {
|
|
61898
61962
|
const parsed$ = safeParse4(request, (value$) => CreateSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61899
61963
|
if (!parsed$.ok) {
|
|
61900
61964
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61970,12 +62034,12 @@ var init_subscriptionsCreateSubscriptionLineItem = __esm(() => {
|
|
|
61970
62034
|
});
|
|
61971
62035
|
|
|
61972
62036
|
// src/mcp-server/tools/subscriptionsCreateSubscriptionLineItem.ts
|
|
61973
|
-
var
|
|
62037
|
+
var args50, tool$subscriptionsCreateSubscriptionLineItem;
|
|
61974
62038
|
var init_subscriptionsCreateSubscriptionLineItem2 = __esm(() => {
|
|
61975
62039
|
init_subscriptionsCreateSubscriptionLineItem();
|
|
61976
62040
|
init_createsubscriptionlineitemop();
|
|
61977
62041
|
init_tools();
|
|
61978
|
-
|
|
62042
|
+
args50 = {
|
|
61979
62043
|
request: CreateSubscriptionLineItemRequestRequest$zodSchema
|
|
61980
62044
|
};
|
|
61981
62045
|
tool$subscriptionsCreateSubscriptionLineItem = {
|
|
@@ -61991,9 +62055,9 @@ Use when adding a new charge or seat to a subscription (e.g. extra seat or one-t
|
|
|
61991
62055
|
openWorldHint: false,
|
|
61992
62056
|
readOnlyHint: false
|
|
61993
62057
|
},
|
|
61994
|
-
args:
|
|
61995
|
-
tool: async (client,
|
|
61996
|
-
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();
|
|
61997
62061
|
if (!result.ok) {
|
|
61998
62062
|
return {
|
|
61999
62063
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62035,9 +62099,9 @@ var init_deletesubscriptionlineitemop = __esm(() => {
|
|
|
62035
62099
|
|
|
62036
62100
|
// src/funcs/subscriptionsDeleteSubscriptionLineItem.ts
|
|
62037
62101
|
function subscriptionsDeleteSubscriptionLineItem(client$, request, options) {
|
|
62038
|
-
return new APIPromise($
|
|
62102
|
+
return new APIPromise($do52(client$, request, options));
|
|
62039
62103
|
}
|
|
62040
|
-
async function $
|
|
62104
|
+
async function $do52(client$, request, options) {
|
|
62041
62105
|
const parsed$ = safeParse4(request, (value$) => DeleteSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62042
62106
|
if (!parsed$.ok) {
|
|
62043
62107
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62113,12 +62177,12 @@ var init_subscriptionsDeleteSubscriptionLineItem = __esm(() => {
|
|
|
62113
62177
|
});
|
|
62114
62178
|
|
|
62115
62179
|
// src/mcp-server/tools/subscriptionsDeleteSubscriptionLineItem.ts
|
|
62116
|
-
var
|
|
62180
|
+
var args51, tool$subscriptionsDeleteSubscriptionLineItem;
|
|
62117
62181
|
var init_subscriptionsDeleteSubscriptionLineItem2 = __esm(() => {
|
|
62118
62182
|
init_subscriptionsDeleteSubscriptionLineItem();
|
|
62119
62183
|
init_deletesubscriptionlineitemop();
|
|
62120
62184
|
init_tools();
|
|
62121
|
-
|
|
62185
|
+
args51 = {
|
|
62122
62186
|
request: DeleteSubscriptionLineItemRequestRequest$zodSchema
|
|
62123
62187
|
};
|
|
62124
62188
|
tool$subscriptionsDeleteSubscriptionLineItem = {
|
|
@@ -62134,9 +62198,9 @@ Use when removing a charge or seat from a subscription (e.g. downgrade). Line it
|
|
|
62134
62198
|
openWorldHint: false,
|
|
62135
62199
|
readOnlyHint: false
|
|
62136
62200
|
},
|
|
62137
|
-
args:
|
|
62138
|
-
tool: async (client,
|
|
62139
|
-
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();
|
|
62140
62204
|
if (!result.ok) {
|
|
62141
62205
|
return {
|
|
62142
62206
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62269,9 +62333,9 @@ var init_executesubscriptionchangeop = __esm(() => {
|
|
|
62269
62333
|
|
|
62270
62334
|
// src/funcs/subscriptionsExecuteSubscriptionChange.ts
|
|
62271
62335
|
function subscriptionsExecuteSubscriptionChange(client$, request, options) {
|
|
62272
|
-
return new APIPromise($
|
|
62336
|
+
return new APIPromise($do53(client$, request, options));
|
|
62273
62337
|
}
|
|
62274
|
-
async function $
|
|
62338
|
+
async function $do53(client$, request, options) {
|
|
62275
62339
|
const parsed$ = safeParse4(request, (value$) => ExecuteSubscriptionChangeRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62276
62340
|
if (!parsed$.ok) {
|
|
62277
62341
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62347,12 +62411,12 @@ var init_subscriptionsExecuteSubscriptionChange = __esm(() => {
|
|
|
62347
62411
|
});
|
|
62348
62412
|
|
|
62349
62413
|
// src/mcp-server/tools/subscriptionsExecuteSubscriptionChange.ts
|
|
62350
|
-
var
|
|
62414
|
+
var args52, tool$subscriptionsExecuteSubscriptionChange;
|
|
62351
62415
|
var init_subscriptionsExecuteSubscriptionChange2 = __esm(() => {
|
|
62352
62416
|
init_subscriptionsExecuteSubscriptionChange();
|
|
62353
62417
|
init_executesubscriptionchangeop();
|
|
62354
62418
|
init_tools();
|
|
62355
|
-
|
|
62419
|
+
args52 = {
|
|
62356
62420
|
request: ExecuteSubscriptionChangeRequest$zodSchema
|
|
62357
62421
|
};
|
|
62358
62422
|
tool$subscriptionsExecuteSubscriptionChange = {
|
|
@@ -62368,9 +62432,9 @@ Use when applying a plan change (e.g. upgrade or downgrade). Executes proration
|
|
|
62368
62432
|
openWorldHint: false,
|
|
62369
62433
|
readOnlyHint: false
|
|
62370
62434
|
},
|
|
62371
|
-
args:
|
|
62372
|
-
tool: async (client,
|
|
62373
|
-
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();
|
|
62374
62438
|
if (!result.ok) {
|
|
62375
62439
|
return {
|
|
62376
62440
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -62883,9 +62947,9 @@ var init_executesubscriptionmodifyop = __esm(() => {
|
|
|
62883
62947
|
|
|
62884
62948
|
// src/funcs/subscriptionsExecuteSubscriptionModify.ts
|
|
62885
62949
|
function subscriptionsExecuteSubscriptionModify(client$, request, options) {
|
|
62886
|
-
return new APIPromise($
|
|
62950
|
+
return new APIPromise($do54(client$, request, options));
|
|
62887
62951
|
}
|
|
62888
|
-
async function $
|
|
62952
|
+
async function $do54(client$, request, options) {
|
|
62889
62953
|
const parsed$ = safeParse4(request, (value$) => ExecuteSubscriptionModifyRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62890
62954
|
if (!parsed$.ok) {
|
|
62891
62955
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62961,12 +63025,12 @@ var init_subscriptionsExecuteSubscriptionModify = __esm(() => {
|
|
|
62961
63025
|
});
|
|
62962
63026
|
|
|
62963
63027
|
// src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts
|
|
62964
|
-
var
|
|
63028
|
+
var args53, tool$subscriptionsExecuteSubscriptionModify;
|
|
62965
63029
|
var init_subscriptionsExecuteSubscriptionModify2 = __esm(() => {
|
|
62966
63030
|
init_subscriptionsExecuteSubscriptionModify();
|
|
62967
63031
|
init_executesubscriptionmodifyop();
|
|
62968
63032
|
init_tools();
|
|
62969
|
-
|
|
63033
|
+
args53 = {
|
|
62970
63034
|
request: ExecuteSubscriptionModifyRequestRequest$zodSchema
|
|
62971
63035
|
};
|
|
62972
63036
|
tool$subscriptionsExecuteSubscriptionModify = {
|
|
@@ -62982,9 +63046,9 @@ Execute a mid-cycle subscription modification (inheritance or quantity change).`
|
|
|
62982
63046
|
openWorldHint: false,
|
|
62983
63047
|
readOnlyHint: false
|
|
62984
63048
|
},
|
|
62985
|
-
args:
|
|
62986
|
-
tool: async (client,
|
|
62987
|
-
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();
|
|
62988
63052
|
if (!result.ok) {
|
|
62989
63053
|
return {
|
|
62990
63054
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63013,9 +63077,9 @@ var init_getsubscriptionop = __esm(() => {
|
|
|
63013
63077
|
|
|
63014
63078
|
// src/funcs/subscriptionsGetSubscription.ts
|
|
63015
63079
|
function subscriptionsGetSubscription(client$, request, options) {
|
|
63016
|
-
return new APIPromise($
|
|
63080
|
+
return new APIPromise($do55(client$, request, options));
|
|
63017
63081
|
}
|
|
63018
|
-
async function $
|
|
63082
|
+
async function $do55(client$, request, options) {
|
|
63019
63083
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63020
63084
|
if (!parsed$.ok) {
|
|
63021
63085
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63090,12 +63154,12 @@ var init_subscriptionsGetSubscription = __esm(() => {
|
|
|
63090
63154
|
});
|
|
63091
63155
|
|
|
63092
63156
|
// src/mcp-server/tools/subscriptionsGetSubscription.ts
|
|
63093
|
-
var
|
|
63157
|
+
var args54, tool$subscriptionsGetSubscription;
|
|
63094
63158
|
var init_subscriptionsGetSubscription2 = __esm(() => {
|
|
63095
63159
|
init_subscriptionsGetSubscription();
|
|
63096
63160
|
init_getsubscriptionop();
|
|
63097
63161
|
init_tools();
|
|
63098
|
-
|
|
63162
|
+
args54 = {
|
|
63099
63163
|
request: GetSubscriptionRequest$zodSchema
|
|
63100
63164
|
};
|
|
63101
63165
|
tool$subscriptionsGetSubscription = {
|
|
@@ -63111,9 +63175,9 @@ Use when you need to load a single subscription (e.g. for a billing portal or to
|
|
|
63111
63175
|
openWorldHint: false,
|
|
63112
63176
|
readOnlyHint: true
|
|
63113
63177
|
},
|
|
63114
|
-
args:
|
|
63115
|
-
tool: async (client,
|
|
63116
|
-
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();
|
|
63117
63181
|
if (!result.ok) {
|
|
63118
63182
|
return {
|
|
63119
63183
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63196,9 +63260,9 @@ var init_getsubscriptionaddonassociationsop = __esm(() => {
|
|
|
63196
63260
|
|
|
63197
63261
|
// src/funcs/subscriptionsGetSubscriptionAddonAssociations.ts
|
|
63198
63262
|
function subscriptionsGetSubscriptionAddonAssociations(client$, request, options) {
|
|
63199
|
-
return new APIPromise($
|
|
63263
|
+
return new APIPromise($do56(client$, request, options));
|
|
63200
63264
|
}
|
|
63201
|
-
async function $
|
|
63265
|
+
async function $do56(client$, request, options) {
|
|
63202
63266
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionAddonAssociationsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63203
63267
|
if (!parsed$.ok) {
|
|
63204
63268
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63273,12 +63337,12 @@ var init_subscriptionsGetSubscriptionAddonAssociations = __esm(() => {
|
|
|
63273
63337
|
});
|
|
63274
63338
|
|
|
63275
63339
|
// src/mcp-server/tools/subscriptionsGetSubscriptionAddonAssociations.ts
|
|
63276
|
-
var
|
|
63340
|
+
var args55, tool$subscriptionsGetSubscriptionAddonAssociations;
|
|
63277
63341
|
var init_subscriptionsGetSubscriptionAddonAssociations2 = __esm(() => {
|
|
63278
63342
|
init_subscriptionsGetSubscriptionAddonAssociations();
|
|
63279
63343
|
init_getsubscriptionaddonassociationsop();
|
|
63280
63344
|
init_tools();
|
|
63281
|
-
|
|
63345
|
+
args55 = {
|
|
63282
63346
|
request: GetSubscriptionAddonAssociationsRequest$zodSchema
|
|
63283
63347
|
};
|
|
63284
63348
|
tool$subscriptionsGetSubscriptionAddonAssociations = {
|
|
@@ -63294,9 +63358,9 @@ Use when listing which add-ons are currently attached to a subscription (e.g. fo
|
|
|
63294
63358
|
openWorldHint: false,
|
|
63295
63359
|
readOnlyHint: true
|
|
63296
63360
|
},
|
|
63297
|
-
args:
|
|
63298
|
-
tool: async (client,
|
|
63299
|
-
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();
|
|
63300
63364
|
if (!result.ok) {
|
|
63301
63365
|
return {
|
|
63302
63366
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63338,9 +63402,9 @@ var init_getsubscriptionentitlementsop = __esm(() => {
|
|
|
63338
63402
|
|
|
63339
63403
|
// src/funcs/subscriptionsGetSubscriptionEntitlements.ts
|
|
63340
63404
|
function subscriptionsGetSubscriptionEntitlements(client$, request, options) {
|
|
63341
|
-
return new APIPromise($
|
|
63405
|
+
return new APIPromise($do57(client$, request, options));
|
|
63342
63406
|
}
|
|
63343
|
-
async function $
|
|
63407
|
+
async function $do57(client$, request, options) {
|
|
63344
63408
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionEntitlementsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63345
63409
|
if (!parsed$.ok) {
|
|
63346
63410
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63419,12 +63483,12 @@ var init_subscriptionsGetSubscriptionEntitlements = __esm(() => {
|
|
|
63419
63483
|
});
|
|
63420
63484
|
|
|
63421
63485
|
// src/mcp-server/tools/subscriptionsGetSubscriptionEntitlements.ts
|
|
63422
|
-
var
|
|
63486
|
+
var args56, tool$subscriptionsGetSubscriptionEntitlements;
|
|
63423
63487
|
var init_subscriptionsGetSubscriptionEntitlements2 = __esm(() => {
|
|
63424
63488
|
init_subscriptionsGetSubscriptionEntitlements();
|
|
63425
63489
|
init_getsubscriptionentitlementsop();
|
|
63426
63490
|
init_tools();
|
|
63427
|
-
|
|
63491
|
+
args56 = {
|
|
63428
63492
|
request: GetSubscriptionEntitlementsRequest$zodSchema
|
|
63429
63493
|
};
|
|
63430
63494
|
tool$subscriptionsGetSubscriptionEntitlements = {
|
|
@@ -63440,9 +63504,9 @@ Use when checking what features or limits a subscription has (e.g. entitlement c
|
|
|
63440
63504
|
openWorldHint: false,
|
|
63441
63505
|
readOnlyHint: true
|
|
63442
63506
|
},
|
|
63443
|
-
args:
|
|
63444
|
-
tool: async (client,
|
|
63445
|
-
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();
|
|
63446
63510
|
if (!result.ok) {
|
|
63447
63511
|
return {
|
|
63448
63512
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63465,9 +63529,9 @@ var init_getsubscriptionscheduleop = __esm(() => {
|
|
|
63465
63529
|
|
|
63466
63530
|
// src/funcs/subscriptionsGetSubscriptionSchedule.ts
|
|
63467
63531
|
function subscriptionsGetSubscriptionSchedule(client$, request, options) {
|
|
63468
|
-
return new APIPromise($
|
|
63532
|
+
return new APIPromise($do58(client$, request, options));
|
|
63469
63533
|
}
|
|
63470
|
-
async function $
|
|
63534
|
+
async function $do58(client$, request, options) {
|
|
63471
63535
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionScheduleRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63472
63536
|
if (!parsed$.ok) {
|
|
63473
63537
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63542,12 +63606,12 @@ var init_subscriptionsGetSubscriptionSchedule = __esm(() => {
|
|
|
63542
63606
|
});
|
|
63543
63607
|
|
|
63544
63608
|
// src/mcp-server/tools/subscriptionsGetSubscriptionSchedule.ts
|
|
63545
|
-
var
|
|
63609
|
+
var args57, tool$subscriptionsGetSubscriptionSchedule;
|
|
63546
63610
|
var init_subscriptionsGetSubscriptionSchedule2 = __esm(() => {
|
|
63547
63611
|
init_subscriptionsGetSubscriptionSchedule();
|
|
63548
63612
|
init_getsubscriptionscheduleop();
|
|
63549
63613
|
init_tools();
|
|
63550
|
-
|
|
63614
|
+
args57 = {
|
|
63551
63615
|
request: GetSubscriptionScheduleRequest$zodSchema
|
|
63552
63616
|
};
|
|
63553
63617
|
tool$subscriptionsGetSubscriptionSchedule = {
|
|
@@ -63563,9 +63627,9 @@ Use when you need to load a single scheduled change (e.g. to show when a plan ch
|
|
|
63563
63627
|
openWorldHint: false,
|
|
63564
63628
|
readOnlyHint: true
|
|
63565
63629
|
},
|
|
63566
|
-
args:
|
|
63567
|
-
tool: async (client,
|
|
63568
|
-
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();
|
|
63569
63633
|
if (!result.ok) {
|
|
63570
63634
|
return {
|
|
63571
63635
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63594,9 +63658,9 @@ var init_getsubscriptionupcominggrantsop = __esm(() => {
|
|
|
63594
63658
|
|
|
63595
63659
|
// src/funcs/subscriptionsGetSubscriptionUpcomingGrants.ts
|
|
63596
63660
|
function subscriptionsGetSubscriptionUpcomingGrants(client$, request, options) {
|
|
63597
|
-
return new APIPromise($
|
|
63661
|
+
return new APIPromise($do59(client$, request, options));
|
|
63598
63662
|
}
|
|
63599
|
-
async function $
|
|
63663
|
+
async function $do59(client$, request, options) {
|
|
63600
63664
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionUpcomingGrantsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63601
63665
|
if (!parsed$.ok) {
|
|
63602
63666
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63671,12 +63735,12 @@ var init_subscriptionsGetSubscriptionUpcomingGrants = __esm(() => {
|
|
|
63671
63735
|
});
|
|
63672
63736
|
|
|
63673
63737
|
// src/mcp-server/tools/subscriptionsGetSubscriptionUpcomingGrants.ts
|
|
63674
|
-
var
|
|
63738
|
+
var args58, tool$subscriptionsGetSubscriptionUpcomingGrants;
|
|
63675
63739
|
var init_subscriptionsGetSubscriptionUpcomingGrants2 = __esm(() => {
|
|
63676
63740
|
init_subscriptionsGetSubscriptionUpcomingGrants();
|
|
63677
63741
|
init_getsubscriptionupcominggrantsop();
|
|
63678
63742
|
init_tools();
|
|
63679
|
-
|
|
63743
|
+
args58 = {
|
|
63680
63744
|
request: GetSubscriptionUpcomingGrantsRequest$zodSchema
|
|
63681
63745
|
};
|
|
63682
63746
|
tool$subscriptionsGetSubscriptionUpcomingGrants = {
|
|
@@ -63692,9 +63756,9 @@ Use when showing upcoming or pending credits for a subscription (e.g. in a porta
|
|
|
63692
63756
|
openWorldHint: false,
|
|
63693
63757
|
readOnlyHint: true
|
|
63694
63758
|
},
|
|
63695
|
-
args:
|
|
63696
|
-
tool: async (client,
|
|
63697
|
-
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();
|
|
63698
63762
|
if (!result.ok) {
|
|
63699
63763
|
return {
|
|
63700
63764
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63720,9 +63784,9 @@ var init_getusagebysubscriptionrequest = __esm(() => {
|
|
|
63720
63784
|
|
|
63721
63785
|
// src/funcs/subscriptionsGetSubscriptionUsage.ts
|
|
63722
63786
|
function subscriptionsGetSubscriptionUsage(client$, request, options) {
|
|
63723
|
-
return new APIPromise($
|
|
63787
|
+
return new APIPromise($do60(client$, request, options));
|
|
63724
63788
|
}
|
|
63725
|
-
async function $
|
|
63789
|
+
async function $do60(client$, request, options) {
|
|
63726
63790
|
const parsed$ = safeParse4(request, (value$) => GetUsageBySubscriptionRequest$zodSchema.parse(value$), "Input validation failed");
|
|
63727
63791
|
if (!parsed$.ok) {
|
|
63728
63792
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63792,12 +63856,12 @@ var init_subscriptionsGetSubscriptionUsage = __esm(() => {
|
|
|
63792
63856
|
});
|
|
63793
63857
|
|
|
63794
63858
|
// src/mcp-server/tools/subscriptionsGetSubscriptionUsage.ts
|
|
63795
|
-
var
|
|
63859
|
+
var args59, tool$subscriptionsGetSubscriptionUsage;
|
|
63796
63860
|
var init_subscriptionsGetSubscriptionUsage2 = __esm(() => {
|
|
63797
63861
|
init_subscriptionsGetSubscriptionUsage();
|
|
63798
63862
|
init_getusagebysubscriptionrequest();
|
|
63799
63863
|
init_tools();
|
|
63800
|
-
|
|
63864
|
+
args59 = {
|
|
63801
63865
|
request: GetUsageBySubscriptionRequest$zodSchema.describe(`Usage request`)
|
|
63802
63866
|
};
|
|
63803
63867
|
tool$subscriptionsGetSubscriptionUsage = {
|
|
@@ -63813,9 +63877,9 @@ Use when showing usage for a subscription (e.g. in a portal or for overage check
|
|
|
63813
63877
|
openWorldHint: false,
|
|
63814
63878
|
readOnlyHint: false
|
|
63815
63879
|
},
|
|
63816
|
-
args:
|
|
63817
|
-
tool: async (client,
|
|
63818
|
-
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();
|
|
63819
63883
|
if (!result.ok) {
|
|
63820
63884
|
return {
|
|
63821
63885
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63850,6 +63914,9 @@ var init_subscriptionresponsev2 = __esm(() => {
|
|
|
63850
63914
|
SubscriptionResponseV2$zodSchema = object({
|
|
63851
63915
|
active_pause_id: string2().optional().describe(`ActivePauseID references the current active pause configuration
|
|
63852
63916
|
This will be null if no pause is active or scheduled`),
|
|
63917
|
+
auto_invoice_threshold: string2().optional().describe(`AutoInvoiceThreshold is the usage amount (in subscription currency) that triggers
|
|
63918
|
+
an intermediate invoice. Overrides the plan-level threshold when set.
|
|
63919
|
+
Nil means: inherit from the plan's threshold (which may also be nil = disabled).`),
|
|
63853
63920
|
billing_anchor: exports_iso.datetime({ offset: true }).optional().describe(`BillingAnchor is the reference point that aligns future billing cycle dates.
|
|
63854
63921
|
It sets the day of week for week intervals, the day of month for month and year intervals,
|
|
63855
63922
|
and the month of year for year intervals. The timestamp is in UTC format.`),
|
|
@@ -63927,9 +63994,9 @@ var init_getsubscriptionv2op = __esm(() => {
|
|
|
63927
63994
|
|
|
63928
63995
|
// src/funcs/subscriptionsGetSubscriptionV2.ts
|
|
63929
63996
|
function subscriptionsGetSubscriptionV2(client$, request, options) {
|
|
63930
|
-
return new APIPromise($
|
|
63997
|
+
return new APIPromise($do61(client$, request, options));
|
|
63931
63998
|
}
|
|
63932
|
-
async function $
|
|
63999
|
+
async function $do61(client$, request, options) {
|
|
63933
64000
|
const parsed$ = safeParse4(request, (value$) => GetSubscriptionV2Request$zodSchema.parse(value$), "Input validation failed");
|
|
63934
64001
|
if (!parsed$.ok) {
|
|
63935
64002
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64008,12 +64075,12 @@ var init_subscriptionsGetSubscriptionV2 = __esm(() => {
|
|
|
64008
64075
|
});
|
|
64009
64076
|
|
|
64010
64077
|
// src/mcp-server/tools/subscriptionsGetSubscriptionV2.ts
|
|
64011
|
-
var
|
|
64078
|
+
var args60, tool$subscriptionsGetSubscriptionV2;
|
|
64012
64079
|
var init_subscriptionsGetSubscriptionV22 = __esm(() => {
|
|
64013
64080
|
init_subscriptionsGetSubscriptionV2();
|
|
64014
64081
|
init_getsubscriptionv2op();
|
|
64015
64082
|
init_tools();
|
|
64016
|
-
|
|
64083
|
+
args60 = {
|
|
64017
64084
|
request: GetSubscriptionV2Request$zodSchema
|
|
64018
64085
|
};
|
|
64019
64086
|
tool$subscriptionsGetSubscriptionV2 = {
|
|
@@ -64029,9 +64096,9 @@ Use when you need a subscription with related data (line items, prices, plan). S
|
|
|
64029
64096
|
openWorldHint: false,
|
|
64030
64097
|
readOnlyHint: true
|
|
64031
64098
|
},
|
|
64032
|
-
args:
|
|
64033
|
-
tool: async (client,
|
|
64034
|
-
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();
|
|
64035
64102
|
if (!result.ok) {
|
|
64036
64103
|
return {
|
|
64037
64104
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64057,9 +64124,9 @@ var init_listallsubscriptionschedulesop = __esm(() => {
|
|
|
64057
64124
|
|
|
64058
64125
|
// src/funcs/subscriptionsListAllSubscriptionSchedules.ts
|
|
64059
64126
|
function subscriptionsListAllSubscriptionSchedules(client$, request, options) {
|
|
64060
|
-
return new APIPromise($
|
|
64127
|
+
return new APIPromise($do62(client$, request, options));
|
|
64061
64128
|
}
|
|
64062
|
-
async function $
|
|
64129
|
+
async function $do62(client$, request, options) {
|
|
64063
64130
|
const parsed$ = safeParse4(request, (value$) => ListAllSubscriptionSchedulesRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
64064
64131
|
if (!parsed$.ok) {
|
|
64065
64132
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64135,12 +64202,12 @@ var init_subscriptionsListAllSubscriptionSchedules = __esm(() => {
|
|
|
64135
64202
|
});
|
|
64136
64203
|
|
|
64137
64204
|
// src/mcp-server/tools/subscriptionsListAllSubscriptionSchedules.ts
|
|
64138
|
-
var
|
|
64205
|
+
var args61, tool$subscriptionsListAllSubscriptionSchedules;
|
|
64139
64206
|
var init_subscriptionsListAllSubscriptionSchedules2 = __esm(() => {
|
|
64140
64207
|
init_subscriptionsListAllSubscriptionSchedules();
|
|
64141
64208
|
init_listallsubscriptionschedulesop();
|
|
64142
64209
|
init_tools();
|
|
64143
|
-
|
|
64210
|
+
args61 = {
|
|
64144
64211
|
request: ListAllSubscriptionSchedulesRequest$zodSchema.optional()
|
|
64145
64212
|
};
|
|
64146
64213
|
tool$subscriptionsListAllSubscriptionSchedules = {
|
|
@@ -64156,9 +64223,9 @@ Use when listing or searching scheduled changes across subscriptions (e.g. admin
|
|
|
64156
64223
|
openWorldHint: false,
|
|
64157
64224
|
readOnlyHint: true
|
|
64158
64225
|
},
|
|
64159
|
-
args:
|
|
64160
|
-
tool: async (client,
|
|
64161
|
-
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();
|
|
64162
64229
|
if (!result.ok) {
|
|
64163
64230
|
return {
|
|
64164
64231
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64181,9 +64248,9 @@ var init_listsubscriptionschedulesop = __esm(() => {
|
|
|
64181
64248
|
|
|
64182
64249
|
// src/funcs/subscriptionsListSubscriptionSchedules.ts
|
|
64183
64250
|
function subscriptionsListSubscriptionSchedules(client$, request, options) {
|
|
64184
|
-
return new APIPromise($
|
|
64251
|
+
return new APIPromise($do63(client$, request, options));
|
|
64185
64252
|
}
|
|
64186
|
-
async function $
|
|
64253
|
+
async function $do63(client$, request, options) {
|
|
64187
64254
|
const parsed$ = safeParse4(request, (value$) => ListSubscriptionSchedulesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64188
64255
|
if (!parsed$.ok) {
|
|
64189
64256
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64258,12 +64325,12 @@ var init_subscriptionsListSubscriptionSchedules = __esm(() => {
|
|
|
64258
64325
|
});
|
|
64259
64326
|
|
|
64260
64327
|
// src/mcp-server/tools/subscriptionsListSubscriptionSchedules.ts
|
|
64261
|
-
var
|
|
64328
|
+
var args62, tool$subscriptionsListSubscriptionSchedules;
|
|
64262
64329
|
var init_subscriptionsListSubscriptionSchedules2 = __esm(() => {
|
|
64263
64330
|
init_subscriptionsListSubscriptionSchedules();
|
|
64264
64331
|
init_listsubscriptionschedulesop();
|
|
64265
64332
|
init_tools();
|
|
64266
|
-
|
|
64333
|
+
args62 = {
|
|
64267
64334
|
request: ListSubscriptionSchedulesRequest$zodSchema
|
|
64268
64335
|
};
|
|
64269
64336
|
tool$subscriptionsListSubscriptionSchedules = {
|
|
@@ -64279,9 +64346,9 @@ Use when listing scheduled changes for a subscription (e.g. upcoming plan change
|
|
|
64279
64346
|
openWorldHint: false,
|
|
64280
64347
|
readOnlyHint: true
|
|
64281
64348
|
},
|
|
64282
|
-
args:
|
|
64283
|
-
tool: async (client,
|
|
64284
|
-
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();
|
|
64285
64352
|
if (!result.ok) {
|
|
64286
64353
|
return {
|
|
64287
64354
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64393,9 +64460,9 @@ var init_previewsubscriptionchangeop = __esm(() => {
|
|
|
64393
64460
|
|
|
64394
64461
|
// src/funcs/subscriptionsPreviewSubscriptionChange.ts
|
|
64395
64462
|
function subscriptionsPreviewSubscriptionChange(client$, request, options) {
|
|
64396
|
-
return new APIPromise($
|
|
64463
|
+
return new APIPromise($do64(client$, request, options));
|
|
64397
64464
|
}
|
|
64398
|
-
async function $
|
|
64465
|
+
async function $do64(client$, request, options) {
|
|
64399
64466
|
const parsed$ = safeParse4(request, (value$) => PreviewSubscriptionChangeRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64400
64467
|
if (!parsed$.ok) {
|
|
64401
64468
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64471,12 +64538,12 @@ var init_subscriptionsPreviewSubscriptionChange = __esm(() => {
|
|
|
64471
64538
|
});
|
|
64472
64539
|
|
|
64473
64540
|
// src/mcp-server/tools/subscriptionsPreviewSubscriptionChange.ts
|
|
64474
|
-
var
|
|
64541
|
+
var args63, tool$subscriptionsPreviewSubscriptionChange;
|
|
64475
64542
|
var init_subscriptionsPreviewSubscriptionChange2 = __esm(() => {
|
|
64476
64543
|
init_subscriptionsPreviewSubscriptionChange();
|
|
64477
64544
|
init_previewsubscriptionchangeop();
|
|
64478
64545
|
init_tools();
|
|
64479
|
-
|
|
64546
|
+
args63 = {
|
|
64480
64547
|
request: PreviewSubscriptionChangeRequest$zodSchema
|
|
64481
64548
|
};
|
|
64482
64549
|
tool$subscriptionsPreviewSubscriptionChange = {
|
|
@@ -64492,9 +64559,9 @@ Use when showing a customer the cost of a plan change before they confirm (e.g.
|
|
|
64492
64559
|
openWorldHint: false,
|
|
64493
64560
|
readOnlyHint: false
|
|
64494
64561
|
},
|
|
64495
|
-
args:
|
|
64496
|
-
tool: async (client,
|
|
64497
|
-
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();
|
|
64498
64565
|
if (!result.ok) {
|
|
64499
64566
|
return {
|
|
64500
64567
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64525,9 +64592,9 @@ var init_previewsubscriptionmodifyop = __esm(() => {
|
|
|
64525
64592
|
|
|
64526
64593
|
// src/funcs/subscriptionsPreviewSubscriptionModify.ts
|
|
64527
64594
|
function subscriptionsPreviewSubscriptionModify(client$, request, options) {
|
|
64528
|
-
return new APIPromise($
|
|
64595
|
+
return new APIPromise($do65(client$, request, options));
|
|
64529
64596
|
}
|
|
64530
|
-
async function $
|
|
64597
|
+
async function $do65(client$, request, options) {
|
|
64531
64598
|
const parsed$ = safeParse4(request, (value$) => PreviewSubscriptionModifyRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64532
64599
|
if (!parsed$.ok) {
|
|
64533
64600
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64603,12 +64670,12 @@ var init_subscriptionsPreviewSubscriptionModify = __esm(() => {
|
|
|
64603
64670
|
});
|
|
64604
64671
|
|
|
64605
64672
|
// src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts
|
|
64606
|
-
var
|
|
64673
|
+
var args64, tool$subscriptionsPreviewSubscriptionModify;
|
|
64607
64674
|
var init_subscriptionsPreviewSubscriptionModify2 = __esm(() => {
|
|
64608
64675
|
init_subscriptionsPreviewSubscriptionModify();
|
|
64609
64676
|
init_previewsubscriptionmodifyop();
|
|
64610
64677
|
init_tools();
|
|
64611
|
-
|
|
64678
|
+
args64 = {
|
|
64612
64679
|
request: PreviewSubscriptionModifyRequest$zodSchema
|
|
64613
64680
|
};
|
|
64614
64681
|
tool$subscriptionsPreviewSubscriptionModify = {
|
|
@@ -64624,9 +64691,9 @@ Preview the impact of a mid-cycle subscription modification without committing c
|
|
|
64624
64691
|
openWorldHint: false,
|
|
64625
64692
|
readOnlyHint: true
|
|
64626
64693
|
},
|
|
64627
|
-
args:
|
|
64628
|
-
tool: async (client,
|
|
64629
|
-
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();
|
|
64630
64697
|
if (!result.ok) {
|
|
64631
64698
|
return {
|
|
64632
64699
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64686,9 +64753,9 @@ Use with subscription_status trialing for trial-end cron processing.`),
|
|
|
64686
64753
|
|
|
64687
64754
|
// src/funcs/subscriptionsQuerySubscription.ts
|
|
64688
64755
|
function subscriptionsQuerySubscription(client$, request, options) {
|
|
64689
|
-
return new APIPromise($
|
|
64756
|
+
return new APIPromise($do66(client$, request, options));
|
|
64690
64757
|
}
|
|
64691
|
-
async function $
|
|
64758
|
+
async function $do66(client$, request, options) {
|
|
64692
64759
|
const parsed$ = safeParse4(request, (value$) => SubscriptionFilter$zodSchema.parse(value$), "Input validation failed");
|
|
64693
64760
|
if (!parsed$.ok) {
|
|
64694
64761
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64758,12 +64825,12 @@ var init_subscriptionsQuerySubscription = __esm(() => {
|
|
|
64758
64825
|
});
|
|
64759
64826
|
|
|
64760
64827
|
// src/mcp-server/tools/subscriptionsQuerySubscription.ts
|
|
64761
|
-
var
|
|
64828
|
+
var args65, tool$subscriptionsQuerySubscription;
|
|
64762
64829
|
var init_subscriptionsQuerySubscription2 = __esm(() => {
|
|
64763
64830
|
init_subscriptionsQuerySubscription();
|
|
64764
64831
|
init_subscriptionfilter();
|
|
64765
64832
|
init_tools();
|
|
64766
|
-
|
|
64833
|
+
args65 = {
|
|
64767
64834
|
request: SubscriptionFilter$zodSchema.describe(`Filter`)
|
|
64768
64835
|
};
|
|
64769
64836
|
tool$subscriptionsQuerySubscription = {
|
|
@@ -64779,9 +64846,9 @@ Use when listing or searching subscriptions (e.g. admin view or customer subscri
|
|
|
64779
64846
|
openWorldHint: false,
|
|
64780
64847
|
readOnlyHint: false
|
|
64781
64848
|
},
|
|
64782
|
-
args:
|
|
64783
|
-
tool: async (client,
|
|
64784
|
-
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();
|
|
64785
64852
|
if (!result.ok) {
|
|
64786
64853
|
return {
|
|
64787
64854
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64831,9 +64898,9 @@ var init_subscriptionlineitemfilter = __esm(() => {
|
|
|
64831
64898
|
|
|
64832
64899
|
// src/funcs/subscriptionsQuerySubscriptionLineItems.ts
|
|
64833
64900
|
function subscriptionsQuerySubscriptionLineItems(client$, request, options) {
|
|
64834
|
-
return new APIPromise($
|
|
64901
|
+
return new APIPromise($do67(client$, request, options));
|
|
64835
64902
|
}
|
|
64836
|
-
async function $
|
|
64903
|
+
async function $do67(client$, request, options) {
|
|
64837
64904
|
const parsed$ = safeParse4(request, (value$) => SubscriptionLineItemFilter$zodSchema.parse(value$), "Input validation failed");
|
|
64838
64905
|
if (!parsed$.ok) {
|
|
64839
64906
|
return [parsed$, { status: "invalid" }];
|
|
@@ -64903,12 +64970,12 @@ var init_subscriptionsQuerySubscriptionLineItems = __esm(() => {
|
|
|
64903
64970
|
});
|
|
64904
64971
|
|
|
64905
64972
|
// src/mcp-server/tools/subscriptionsQuerySubscriptionLineItems.ts
|
|
64906
|
-
var
|
|
64973
|
+
var args66, tool$subscriptionsQuerySubscriptionLineItems;
|
|
64907
64974
|
var init_subscriptionsQuerySubscriptionLineItems2 = __esm(() => {
|
|
64908
64975
|
init_subscriptionsQuerySubscriptionLineItems();
|
|
64909
64976
|
init_subscriptionlineitemfilter();
|
|
64910
64977
|
init_tools();
|
|
64911
|
-
|
|
64978
|
+
args66 = {
|
|
64912
64979
|
request: SubscriptionLineItemFilter$zodSchema.describe(`Filter`)
|
|
64913
64980
|
};
|
|
64914
64981
|
tool$subscriptionsQuerySubscriptionLineItems = {
|
|
@@ -64924,9 +64991,9 @@ List subscription line items with a JSON filter (subscription, customer, price,
|
|
|
64924
64991
|
openWorldHint: false,
|
|
64925
64992
|
readOnlyHint: true
|
|
64926
64993
|
},
|
|
64927
|
-
args:
|
|
64928
|
-
tool: async (client,
|
|
64929
|
-
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();
|
|
64930
64997
|
if (!result.ok) {
|
|
64931
64998
|
return {
|
|
64932
64999
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -64956,9 +65023,9 @@ values combined with create_prorations will issue a wallet credit for unused tim
|
|
|
64956
65023
|
|
|
64957
65024
|
// src/funcs/subscriptionsRemoveSubscriptionAddon.ts
|
|
64958
65025
|
function subscriptionsRemoveSubscriptionAddon(client$, request, options) {
|
|
64959
|
-
return new APIPromise($
|
|
65026
|
+
return new APIPromise($do68(client$, request, options));
|
|
64960
65027
|
}
|
|
64961
|
-
async function $
|
|
65028
|
+
async function $do68(client$, request, options) {
|
|
64962
65029
|
const parsed$ = safeParse4(request, (value$) => RemoveAddonRequest$zodSchema.parse(value$), "Input validation failed");
|
|
64963
65030
|
if (!parsed$.ok) {
|
|
64964
65031
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65028,12 +65095,12 @@ var init_subscriptionsRemoveSubscriptionAddon = __esm(() => {
|
|
|
65028
65095
|
});
|
|
65029
65096
|
|
|
65030
65097
|
// src/mcp-server/tools/subscriptionsRemoveSubscriptionAddon.ts
|
|
65031
|
-
var
|
|
65098
|
+
var args67, tool$subscriptionsRemoveSubscriptionAddon;
|
|
65032
65099
|
var init_subscriptionsRemoveSubscriptionAddon2 = __esm(() => {
|
|
65033
65100
|
init_subscriptionsRemoveSubscriptionAddon();
|
|
65034
65101
|
init_removeaddonrequest();
|
|
65035
65102
|
init_tools();
|
|
65036
|
-
|
|
65103
|
+
args67 = {
|
|
65037
65104
|
request: RemoveAddonRequest$zodSchema.describe(`Remove Addon Request`)
|
|
65038
65105
|
};
|
|
65039
65106
|
tool$subscriptionsRemoveSubscriptionAddon = {
|
|
@@ -65049,9 +65116,9 @@ Use when removing an add-on from a subscription (e.g. downgrade or opt-out).`,
|
|
|
65049
65116
|
openWorldHint: false,
|
|
65050
65117
|
readOnlyHint: false
|
|
65051
65118
|
},
|
|
65052
|
-
args:
|
|
65053
|
-
tool: async (client,
|
|
65054
|
-
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();
|
|
65055
65122
|
if (!result.ok) {
|
|
65056
65123
|
return {
|
|
65057
65124
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65095,9 +65162,9 @@ var init_updatesubscriptionop = __esm(() => {
|
|
|
65095
65162
|
|
|
65096
65163
|
// src/funcs/subscriptionsUpdateSubscription.ts
|
|
65097
65164
|
function subscriptionsUpdateSubscription(client$, request, options) {
|
|
65098
|
-
return new APIPromise($
|
|
65165
|
+
return new APIPromise($do69(client$, request, options));
|
|
65099
65166
|
}
|
|
65100
|
-
async function $
|
|
65167
|
+
async function $do69(client$, request, options) {
|
|
65101
65168
|
const parsed$ = safeParse4(request, (value$) => UpdateSubscriptionRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65102
65169
|
if (!parsed$.ok) {
|
|
65103
65170
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65173,12 +65240,12 @@ var init_subscriptionsUpdateSubscription = __esm(() => {
|
|
|
65173
65240
|
});
|
|
65174
65241
|
|
|
65175
65242
|
// src/mcp-server/tools/subscriptionsUpdateSubscription.ts
|
|
65176
|
-
var
|
|
65243
|
+
var args68, tool$subscriptionsUpdateSubscription;
|
|
65177
65244
|
var init_subscriptionsUpdateSubscription2 = __esm(() => {
|
|
65178
65245
|
init_subscriptionsUpdateSubscription();
|
|
65179
65246
|
init_updatesubscriptionop();
|
|
65180
65247
|
init_tools();
|
|
65181
|
-
|
|
65248
|
+
args68 = {
|
|
65182
65249
|
request: UpdateSubscriptionRequestRequest$zodSchema
|
|
65183
65250
|
};
|
|
65184
65251
|
tool$subscriptionsUpdateSubscription = {
|
|
@@ -65194,9 +65261,9 @@ Use when changing subscription details (e.g. quantity, billing anchor, or parent
|
|
|
65194
65261
|
openWorldHint: false,
|
|
65195
65262
|
readOnlyHint: false
|
|
65196
65263
|
},
|
|
65197
|
-
args:
|
|
65198
|
-
tool: async (client,
|
|
65199
|
-
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();
|
|
65200
65267
|
if (!result.ok) {
|
|
65201
65268
|
return {
|
|
65202
65269
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65255,9 +65322,9 @@ var init_updatesubscriptionlineitemop = __esm(() => {
|
|
|
65255
65322
|
|
|
65256
65323
|
// src/funcs/subscriptionsUpdateSubscriptionLineItem.ts
|
|
65257
65324
|
function subscriptionsUpdateSubscriptionLineItem(client$, request, options) {
|
|
65258
|
-
return new APIPromise($
|
|
65325
|
+
return new APIPromise($do70(client$, request, options));
|
|
65259
65326
|
}
|
|
65260
|
-
async function $
|
|
65327
|
+
async function $do70(client$, request, options) {
|
|
65261
65328
|
const parsed$ = safeParse4(request, (value$) => UpdateSubscriptionLineItemRequestRequest$zodSchema.parse(value$), "Input validation failed");
|
|
65262
65329
|
if (!parsed$.ok) {
|
|
65263
65330
|
return [parsed$, { status: "invalid" }];
|
|
@@ -65333,12 +65400,12 @@ var init_subscriptionsUpdateSubscriptionLineItem = __esm(() => {
|
|
|
65333
65400
|
});
|
|
65334
65401
|
|
|
65335
65402
|
// src/mcp-server/tools/subscriptionsUpdateSubscriptionLineItem.ts
|
|
65336
|
-
var
|
|
65403
|
+
var args69, tool$subscriptionsUpdateSubscriptionLineItem;
|
|
65337
65404
|
var init_subscriptionsUpdateSubscriptionLineItem2 = __esm(() => {
|
|
65338
65405
|
init_subscriptionsUpdateSubscriptionLineItem();
|
|
65339
65406
|
init_updatesubscriptionlineitemop();
|
|
65340
65407
|
init_tools();
|
|
65341
|
-
|
|
65408
|
+
args69 = {
|
|
65342
65409
|
request: UpdateSubscriptionLineItemRequestRequest$zodSchema
|
|
65343
65410
|
};
|
|
65344
65411
|
tool$subscriptionsUpdateSubscriptionLineItem = {
|
|
@@ -65354,9 +65421,9 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
65354
65421
|
openWorldHint: false,
|
|
65355
65422
|
readOnlyHint: false
|
|
65356
65423
|
},
|
|
65357
|
-
args:
|
|
65358
|
-
tool: async (client,
|
|
65359
|
-
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();
|
|
65360
65427
|
if (!result.ok) {
|
|
65361
65428
|
return {
|
|
65362
65429
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -65372,16 +65439,16 @@ Use when changing a subscription line item (e.g. quantity or price). Implemented
|
|
|
65372
65439
|
function createMCPServer(deps) {
|
|
65373
65440
|
const server = new McpServer({
|
|
65374
65441
|
name: "Flexprice",
|
|
65375
|
-
version: "2.1.
|
|
65442
|
+
version: "2.1.11"
|
|
65376
65443
|
});
|
|
65377
65444
|
const getClient = deps.getSDK || (() => new FlexpriceCore({
|
|
65378
65445
|
security: deps.security,
|
|
65379
65446
|
serverURL: deps.serverURL,
|
|
65380
65447
|
serverIdx: deps.serverIdx,
|
|
65381
65448
|
debugLogger: deps.logger.level === "debug" ? {
|
|
65382
|
-
log: (...
|
|
65383
|
-
group: (...
|
|
65384
|
-
groupEnd: (...
|
|
65449
|
+
log: (...args70) => console.log(...args70),
|
|
65450
|
+
group: (...args70) => console.group(...args70),
|
|
65451
|
+
groupEnd: (...args70) => console.groupEnd(...args70)
|
|
65385
65452
|
} : undefined
|
|
65386
65453
|
}));
|
|
65387
65454
|
const scopes = new Set(deps.scopes);
|
|
@@ -65402,7 +65469,6 @@ function createMCPServer(deps) {
|
|
|
65402
65469
|
tool(tool$customersGetCustomerUpcomingGrants);
|
|
65403
65470
|
tool(tool$invoicesGetCustomerInvoiceSummary);
|
|
65404
65471
|
tool(tool$invoicesCreateInvoice);
|
|
65405
|
-
tool(tool$invoicesGetMeterUsagePreviewInvoice);
|
|
65406
65472
|
tool(tool$invoicesGetInvoicePreview);
|
|
65407
65473
|
tool(tool$invoicesQueryInvoice);
|
|
65408
65474
|
tool(tool$invoicesGetInvoice);
|
|
@@ -65496,7 +65562,6 @@ var init_server2 = __esm(() => {
|
|
|
65496
65562
|
init_invoicesGetInvoice2();
|
|
65497
65563
|
init_invoicesGetInvoicePdf2();
|
|
65498
65564
|
init_invoicesGetInvoicePreview2();
|
|
65499
|
-
init_invoicesGetMeterUsagePreviewInvoice2();
|
|
65500
65565
|
init_invoicesQueryInvoice2();
|
|
65501
65566
|
init_invoicesRecalculateInvoice2();
|
|
65502
65567
|
init_invoicesRecalculateInvoiceV22();
|
|
@@ -65614,12 +65679,6 @@ Use when showing a customer's invoice overview (e.g. billing portal or balance s
|
|
|
65614
65679
|
description: `Create one-off invoice
|
|
65615
65680
|
|
|
65616
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.`
|
|
65617
|
-
},
|
|
65618
|
-
{
|
|
65619
|
-
name: "get-meter-usage-preview-invoice",
|
|
65620
|
-
description: `Get invoice preview using meter_usage data
|
|
65621
|
-
|
|
65622
|
-
Preview invoice using the meter_usage table for usage data instead of feature_usage.`
|
|
65623
65682
|
},
|
|
65624
65683
|
{
|
|
65625
65684
|
name: "get-invoice-preview",
|
|
@@ -67497,9 +67556,21 @@ var init_impl2 = __esm(() => {
|
|
|
67497
67556
|
});
|
|
67498
67557
|
|
|
67499
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
|
+
};
|
|
67500
67571
|
function checkEnvironmentVariable(process2, varName) {
|
|
67501
67572
|
const value = process2.env?.[varName];
|
|
67502
|
-
return typeof value === "string" && value
|
|
67573
|
+
return typeof value === "string" && looseBooleanParser(value);
|
|
67503
67574
|
}
|
|
67504
67575
|
var ExitCode = {
|
|
67505
67576
|
UnknownCommand: -5,
|
|
@@ -67670,18 +67741,6 @@ async function allSettledOrElse(values) {
|
|
|
67670
67741
|
}
|
|
67671
67742
|
return { status: "fulfilled", value: grouped.fulfilled?.map((result) => result.value) ?? [] };
|
|
67672
67743
|
}
|
|
67673
|
-
var TRUTHY_VALUES = /* @__PURE__ */ new Set(["true", "t", "yes", "y", "on", "1"]);
|
|
67674
|
-
var FALSY_VALUES = /* @__PURE__ */ new Set(["false", "f", "no", "n", "off", "0"]);
|
|
67675
|
-
var looseBooleanParser = (input) => {
|
|
67676
|
-
const value = input.toLowerCase();
|
|
67677
|
-
if (TRUTHY_VALUES.has(value)) {
|
|
67678
|
-
return true;
|
|
67679
|
-
}
|
|
67680
|
-
if (FALSY_VALUES.has(value)) {
|
|
67681
|
-
return false;
|
|
67682
|
-
}
|
|
67683
|
-
throw new SyntaxError(`Cannot convert ${input} to a boolean`);
|
|
67684
|
-
};
|
|
67685
67744
|
var numberParser = (input) => {
|
|
67686
67745
|
const value = Number(input);
|
|
67687
67746
|
if (Number.isNaN(value)) {
|
|
@@ -68401,7 +68460,7 @@ var text_en = {
|
|
|
68401
68460
|
version: "Print version information and exit",
|
|
68402
68461
|
argumentEscapeSequence: "All subsequent inputs should be interpreted as arguments"
|
|
68403
68462
|
},
|
|
68404
|
-
noCommandRegisteredForInput
|
|
68463
|
+
noCommandRegisteredForInput({ input, corrections }) {
|
|
68405
68464
|
const errorMessage = `No command registered for \`${input}\``;
|
|
68406
68465
|
if (corrections.length > 0) {
|
|
68407
68466
|
const formattedCorrections = joinWithGrammar(corrections, {
|
|
@@ -68414,28 +68473,28 @@ var text_en = {
|
|
|
68414
68473
|
return errorMessage;
|
|
68415
68474
|
}
|
|
68416
68475
|
},
|
|
68417
|
-
noTextAvailableForLocale
|
|
68476
|
+
noTextAvailableForLocale({ requestedLocale, defaultLocale }) {
|
|
68418
68477
|
return `Application does not support "${requestedLocale}" locale, defaulting to "${defaultLocale}"`;
|
|
68419
68478
|
},
|
|
68420
|
-
exceptionWhileParsingArguments
|
|
68479
|
+
exceptionWhileParsingArguments(exc) {
|
|
68421
68480
|
if (exc instanceof ArgumentScannerError) {
|
|
68422
68481
|
return formatMessageForArgumentScannerError(exc, {});
|
|
68423
68482
|
}
|
|
68424
|
-
return `Unable to parse arguments, ${formatException(exc)}`;
|
|
68483
|
+
return `Unable to parse arguments, ${(this.formatException ?? formatException)(exc)}`;
|
|
68425
68484
|
},
|
|
68426
|
-
exceptionWhileLoadingCommandFunction
|
|
68427
|
-
return `Unable to load command function, ${formatException(exc)}`;
|
|
68485
|
+
exceptionWhileLoadingCommandFunction(exc) {
|
|
68486
|
+
return `Unable to load command function, ${(this.formatException ?? formatException)(exc)}`;
|
|
68428
68487
|
},
|
|
68429
|
-
exceptionWhileLoadingCommandContext
|
|
68430
|
-
return `Unable to load command context, ${formatException(exc)}`;
|
|
68488
|
+
exceptionWhileLoadingCommandContext(exc) {
|
|
68489
|
+
return `Unable to load command context, ${(this.formatException ?? formatException)(exc)}`;
|
|
68431
68490
|
},
|
|
68432
|
-
exceptionWhileRunningCommand
|
|
68433
|
-
return `Command failed, ${formatException(exc)}`;
|
|
68491
|
+
exceptionWhileRunningCommand(exc) {
|
|
68492
|
+
return `Command failed, ${(this.formatException ?? formatException)(exc)}`;
|
|
68434
68493
|
},
|
|
68435
|
-
commandErrorResult
|
|
68494
|
+
commandErrorResult(err) {
|
|
68436
68495
|
return err.message;
|
|
68437
68496
|
},
|
|
68438
|
-
currentVersionIsNotLatest
|
|
68497
|
+
currentVersionIsNotLatest({ currentVersion, latestVersion, upgradeCommand }) {
|
|
68439
68498
|
if (upgradeCommand) {
|
|
68440
68499
|
return `Latest available version is ${latestVersion} (currently running ${currentVersion}), upgrade with "${upgradeCommand}"`;
|
|
68441
68500
|
}
|
|
@@ -68610,7 +68669,7 @@ function buildRouteScanner(root, config, startingPrefix) {
|
|
|
68610
68669
|
}
|
|
68611
68670
|
async function runApplication({ root, defaultText, config }, rawInputs, context) {
|
|
68612
68671
|
let text = defaultText;
|
|
68613
|
-
if (context.locale) {
|
|
68672
|
+
if (context.locale && "loadText" in config.localization) {
|
|
68614
68673
|
const localeText = config.localization.loadText(context.locale);
|
|
68615
68674
|
if (localeText) {
|
|
68616
68675
|
text = localeText;
|
|
@@ -68785,9 +68844,15 @@ function buildApplication(root, appConfig) {
|
|
|
68785
68844
|
throw new InternalError("Unable to use command with alias -v as root when version info is supplied");
|
|
68786
68845
|
}
|
|
68787
68846
|
}
|
|
68788
|
-
|
|
68789
|
-
if (
|
|
68790
|
-
|
|
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;
|
|
68791
68856
|
}
|
|
68792
68857
|
return {
|
|
68793
68858
|
root,
|
|
@@ -69294,7 +69359,7 @@ function buildRouteMap({
|
|
|
69294
69359
|
}
|
|
69295
69360
|
async function run(app, inputs, context) {
|
|
69296
69361
|
const exitCode = await runApplication(app, inputs, context);
|
|
69297
|
-
context.process.exitCode
|
|
69362
|
+
context.process.exitCode ??= exitCode;
|
|
69298
69363
|
}
|
|
69299
69364
|
|
|
69300
69365
|
// src/mcp-server/mcp-server.ts
|
|
@@ -69524,7 +69589,7 @@ var routes = buildRouteMap({
|
|
|
69524
69589
|
var app = buildApplication(routes, {
|
|
69525
69590
|
name: "mcp",
|
|
69526
69591
|
versionInfo: {
|
|
69527
|
-
currentVersion: "2.1.
|
|
69592
|
+
currentVersion: "2.1.11"
|
|
69528
69593
|
}
|
|
69529
69594
|
});
|
|
69530
69595
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -69532,5 +69597,5 @@ export {
|
|
|
69532
69597
|
app
|
|
69533
69598
|
};
|
|
69534
69599
|
|
|
69535
|
-
//# debugId=
|
|
69600
|
+
//# debugId=D4F261958DBBD12264756E2164756E21
|
|
69536
69601
|
//# sourceMappingURL=mcp-server.js.map
|