dub 0.61.14 → 0.61.15
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 +1055 -1037
- package/bin/mcp-server.js.map +19 -10
- package/dist/commonjs/funcs/foldersList.js +0 -1
- package/dist/commonjs/funcs/foldersList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/folderschema.d.ts +0 -5
- package/dist/commonjs/models/components/folderschema.d.ts.map +1 -1
- package/dist/commonjs/models/components/folderschema.js +0 -2
- package/dist/commonjs/models/components/folderschema.js.map +1 -1
- package/dist/commonjs/models/operations/listfolders.d.ts +0 -5
- package/dist/commonjs/models/operations/listfolders.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listfolders.js +0 -2
- package/dist/commonjs/models/operations/listfolders.js.map +1 -1
- package/dist/esm/funcs/foldersList.js +0 -1
- package/dist/esm/funcs/foldersList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/folderschema.d.ts +0 -5
- package/dist/esm/models/components/folderschema.d.ts.map +1 -1
- package/dist/esm/models/components/folderschema.js +0 -2
- package/dist/esm/models/components/folderschema.js.map +1 -1
- package/dist/esm/models/operations/listfolders.d.ts +0 -5
- package/dist/esm/models/operations/listfolders.d.ts.map +1 -1
- package/dist/esm/models/operations/listfolders.js +0 -2
- package/dist/esm/models/operations/listfolders.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/foldersList.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/folderschema.ts +0 -7
- package/src/models/operations/listfolders.ts +0 -7
package/bin/mcp-server.js
CHANGED
|
@@ -29,13 +29,378 @@ var __export = (target, all) => {
|
|
|
29
29
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
30
30
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
31
31
|
|
|
32
|
-
// node_modules/zod/
|
|
32
|
+
// node_modules/zod/dist/esm/v3/helpers/util.js
|
|
33
|
+
var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
34
|
+
const t = typeof data;
|
|
35
|
+
switch (t) {
|
|
36
|
+
case "undefined":
|
|
37
|
+
return ZodParsedType.undefined;
|
|
38
|
+
case "string":
|
|
39
|
+
return ZodParsedType.string;
|
|
40
|
+
case "number":
|
|
41
|
+
return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
42
|
+
case "boolean":
|
|
43
|
+
return ZodParsedType.boolean;
|
|
44
|
+
case "function":
|
|
45
|
+
return ZodParsedType.function;
|
|
46
|
+
case "bigint":
|
|
47
|
+
return ZodParsedType.bigint;
|
|
48
|
+
case "symbol":
|
|
49
|
+
return ZodParsedType.symbol;
|
|
50
|
+
case "object":
|
|
51
|
+
if (Array.isArray(data)) {
|
|
52
|
+
return ZodParsedType.array;
|
|
53
|
+
}
|
|
54
|
+
if (data === null) {
|
|
55
|
+
return ZodParsedType.null;
|
|
56
|
+
}
|
|
57
|
+
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
58
|
+
return ZodParsedType.promise;
|
|
59
|
+
}
|
|
60
|
+
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
61
|
+
return ZodParsedType.map;
|
|
62
|
+
}
|
|
63
|
+
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
64
|
+
return ZodParsedType.set;
|
|
65
|
+
}
|
|
66
|
+
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
67
|
+
return ZodParsedType.date;
|
|
68
|
+
}
|
|
69
|
+
return ZodParsedType.object;
|
|
70
|
+
default:
|
|
71
|
+
return ZodParsedType.unknown;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var init_util = __esm(() => {
|
|
75
|
+
(function(util2) {
|
|
76
|
+
util2.assertEqual = (_2) => {
|
|
77
|
+
};
|
|
78
|
+
function assertIs(_arg) {
|
|
79
|
+
}
|
|
80
|
+
util2.assertIs = assertIs;
|
|
81
|
+
function assertNever(_x) {
|
|
82
|
+
throw new Error;
|
|
83
|
+
}
|
|
84
|
+
util2.assertNever = assertNever;
|
|
85
|
+
util2.arrayToEnum = (items) => {
|
|
86
|
+
const obj = {};
|
|
87
|
+
for (const item of items) {
|
|
88
|
+
obj[item] = item;
|
|
89
|
+
}
|
|
90
|
+
return obj;
|
|
91
|
+
};
|
|
92
|
+
util2.getValidEnumValues = (obj) => {
|
|
93
|
+
const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
|
|
94
|
+
const filtered = {};
|
|
95
|
+
for (const k2 of validKeys) {
|
|
96
|
+
filtered[k2] = obj[k2];
|
|
97
|
+
}
|
|
98
|
+
return util2.objectValues(filtered);
|
|
99
|
+
};
|
|
100
|
+
util2.objectValues = (obj) => {
|
|
101
|
+
return util2.objectKeys(obj).map(function(e) {
|
|
102
|
+
return obj[e];
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
106
|
+
const keys = [];
|
|
107
|
+
for (const key in object) {
|
|
108
|
+
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
109
|
+
keys.push(key);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return keys;
|
|
113
|
+
};
|
|
114
|
+
util2.find = (arr, checker) => {
|
|
115
|
+
for (const item of arr) {
|
|
116
|
+
if (checker(item))
|
|
117
|
+
return item;
|
|
118
|
+
}
|
|
119
|
+
return;
|
|
120
|
+
};
|
|
121
|
+
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
122
|
+
function joinValues(array, separator = " | ") {
|
|
123
|
+
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
124
|
+
}
|
|
125
|
+
util2.joinValues = joinValues;
|
|
126
|
+
util2.jsonStringifyReplacer = (_2, value) => {
|
|
127
|
+
if (typeof value === "bigint") {
|
|
128
|
+
return value.toString();
|
|
129
|
+
}
|
|
130
|
+
return value;
|
|
131
|
+
};
|
|
132
|
+
})(util || (util = {}));
|
|
133
|
+
(function(objectUtil2) {
|
|
134
|
+
objectUtil2.mergeShapes = (first, second) => {
|
|
135
|
+
return {
|
|
136
|
+
...first,
|
|
137
|
+
...second
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
})(objectUtil || (objectUtil = {}));
|
|
141
|
+
ZodParsedType = util.arrayToEnum([
|
|
142
|
+
"string",
|
|
143
|
+
"nan",
|
|
144
|
+
"number",
|
|
145
|
+
"integer",
|
|
146
|
+
"float",
|
|
147
|
+
"boolean",
|
|
148
|
+
"date",
|
|
149
|
+
"bigint",
|
|
150
|
+
"symbol",
|
|
151
|
+
"function",
|
|
152
|
+
"undefined",
|
|
153
|
+
"null",
|
|
154
|
+
"array",
|
|
155
|
+
"object",
|
|
156
|
+
"unknown",
|
|
157
|
+
"promise",
|
|
158
|
+
"void",
|
|
159
|
+
"never",
|
|
160
|
+
"map",
|
|
161
|
+
"set"
|
|
162
|
+
]);
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
// node_modules/zod/dist/esm/v3/ZodError.js
|
|
166
|
+
var ZodIssueCode, quotelessJson = (obj) => {
|
|
167
|
+
const json = JSON.stringify(obj, null, 2);
|
|
168
|
+
return json.replace(/"([^"]+)":/g, "$1:");
|
|
169
|
+
}, ZodError;
|
|
170
|
+
var init_ZodError = __esm(() => {
|
|
171
|
+
init_util();
|
|
172
|
+
ZodIssueCode = util.arrayToEnum([
|
|
173
|
+
"invalid_type",
|
|
174
|
+
"invalid_literal",
|
|
175
|
+
"custom",
|
|
176
|
+
"invalid_union",
|
|
177
|
+
"invalid_union_discriminator",
|
|
178
|
+
"invalid_enum_value",
|
|
179
|
+
"unrecognized_keys",
|
|
180
|
+
"invalid_arguments",
|
|
181
|
+
"invalid_return_type",
|
|
182
|
+
"invalid_date",
|
|
183
|
+
"invalid_string",
|
|
184
|
+
"too_small",
|
|
185
|
+
"too_big",
|
|
186
|
+
"invalid_intersection_types",
|
|
187
|
+
"not_multiple_of",
|
|
188
|
+
"not_finite"
|
|
189
|
+
]);
|
|
190
|
+
ZodError = class ZodError extends Error {
|
|
191
|
+
get errors() {
|
|
192
|
+
return this.issues;
|
|
193
|
+
}
|
|
194
|
+
constructor(issues) {
|
|
195
|
+
super();
|
|
196
|
+
this.issues = [];
|
|
197
|
+
this.addIssue = (sub) => {
|
|
198
|
+
this.issues = [...this.issues, sub];
|
|
199
|
+
};
|
|
200
|
+
this.addIssues = (subs = []) => {
|
|
201
|
+
this.issues = [...this.issues, ...subs];
|
|
202
|
+
};
|
|
203
|
+
const actualProto = new.target.prototype;
|
|
204
|
+
if (Object.setPrototypeOf) {
|
|
205
|
+
Object.setPrototypeOf(this, actualProto);
|
|
206
|
+
} else {
|
|
207
|
+
this.__proto__ = actualProto;
|
|
208
|
+
}
|
|
209
|
+
this.name = "ZodError";
|
|
210
|
+
this.issues = issues;
|
|
211
|
+
}
|
|
212
|
+
format(_mapper) {
|
|
213
|
+
const mapper = _mapper || function(issue) {
|
|
214
|
+
return issue.message;
|
|
215
|
+
};
|
|
216
|
+
const fieldErrors = { _errors: [] };
|
|
217
|
+
const processError = (error) => {
|
|
218
|
+
for (const issue of error.issues) {
|
|
219
|
+
if (issue.code === "invalid_union") {
|
|
220
|
+
issue.unionErrors.map(processError);
|
|
221
|
+
} else if (issue.code === "invalid_return_type") {
|
|
222
|
+
processError(issue.returnTypeError);
|
|
223
|
+
} else if (issue.code === "invalid_arguments") {
|
|
224
|
+
processError(issue.argumentsError);
|
|
225
|
+
} else if (issue.path.length === 0) {
|
|
226
|
+
fieldErrors._errors.push(mapper(issue));
|
|
227
|
+
} else {
|
|
228
|
+
let curr = fieldErrors;
|
|
229
|
+
let i = 0;
|
|
230
|
+
while (i < issue.path.length) {
|
|
231
|
+
const el = issue.path[i];
|
|
232
|
+
const terminal = i === issue.path.length - 1;
|
|
233
|
+
if (!terminal) {
|
|
234
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
235
|
+
} else {
|
|
236
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
237
|
+
curr[el]._errors.push(mapper(issue));
|
|
238
|
+
}
|
|
239
|
+
curr = curr[el];
|
|
240
|
+
i++;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
processError(this);
|
|
246
|
+
return fieldErrors;
|
|
247
|
+
}
|
|
248
|
+
static assert(value) {
|
|
249
|
+
if (!(value instanceof ZodError)) {
|
|
250
|
+
throw new Error(`Not a ZodError: ${value}`);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
toString() {
|
|
254
|
+
return this.message;
|
|
255
|
+
}
|
|
256
|
+
get message() {
|
|
257
|
+
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
258
|
+
}
|
|
259
|
+
get isEmpty() {
|
|
260
|
+
return this.issues.length === 0;
|
|
261
|
+
}
|
|
262
|
+
flatten(mapper = (issue) => issue.message) {
|
|
263
|
+
const fieldErrors = {};
|
|
264
|
+
const formErrors = [];
|
|
265
|
+
for (const sub of this.issues) {
|
|
266
|
+
if (sub.path.length > 0) {
|
|
267
|
+
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
268
|
+
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
269
|
+
} else {
|
|
270
|
+
formErrors.push(mapper(sub));
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return { formErrors, fieldErrors };
|
|
274
|
+
}
|
|
275
|
+
get formErrors() {
|
|
276
|
+
return this.flatten();
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
ZodError.create = (issues) => {
|
|
280
|
+
const error = new ZodError(issues);
|
|
281
|
+
return error;
|
|
282
|
+
};
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
// node_modules/zod/dist/esm/v3/locales/en.js
|
|
286
|
+
var errorMap = (issue, _ctx) => {
|
|
287
|
+
let message;
|
|
288
|
+
switch (issue.code) {
|
|
289
|
+
case ZodIssueCode.invalid_type:
|
|
290
|
+
if (issue.received === ZodParsedType.undefined) {
|
|
291
|
+
message = "Required";
|
|
292
|
+
} else {
|
|
293
|
+
message = `Expected ${issue.expected}, received ${issue.received}`;
|
|
294
|
+
}
|
|
295
|
+
break;
|
|
296
|
+
case ZodIssueCode.invalid_literal:
|
|
297
|
+
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
|
|
298
|
+
break;
|
|
299
|
+
case ZodIssueCode.unrecognized_keys:
|
|
300
|
+
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
|
|
301
|
+
break;
|
|
302
|
+
case ZodIssueCode.invalid_union:
|
|
303
|
+
message = `Invalid input`;
|
|
304
|
+
break;
|
|
305
|
+
case ZodIssueCode.invalid_union_discriminator:
|
|
306
|
+
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
|
|
307
|
+
break;
|
|
308
|
+
case ZodIssueCode.invalid_enum_value:
|
|
309
|
+
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
|
|
310
|
+
break;
|
|
311
|
+
case ZodIssueCode.invalid_arguments:
|
|
312
|
+
message = `Invalid function arguments`;
|
|
313
|
+
break;
|
|
314
|
+
case ZodIssueCode.invalid_return_type:
|
|
315
|
+
message = `Invalid function return type`;
|
|
316
|
+
break;
|
|
317
|
+
case ZodIssueCode.invalid_date:
|
|
318
|
+
message = `Invalid date`;
|
|
319
|
+
break;
|
|
320
|
+
case ZodIssueCode.invalid_string:
|
|
321
|
+
if (typeof issue.validation === "object") {
|
|
322
|
+
if ("includes" in issue.validation) {
|
|
323
|
+
message = `Invalid input: must include "${issue.validation.includes}"`;
|
|
324
|
+
if (typeof issue.validation.position === "number") {
|
|
325
|
+
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
|
326
|
+
}
|
|
327
|
+
} else if ("startsWith" in issue.validation) {
|
|
328
|
+
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
|
329
|
+
} else if ("endsWith" in issue.validation) {
|
|
330
|
+
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
|
|
331
|
+
} else {
|
|
332
|
+
util.assertNever(issue.validation);
|
|
333
|
+
}
|
|
334
|
+
} else if (issue.validation !== "regex") {
|
|
335
|
+
message = `Invalid ${issue.validation}`;
|
|
336
|
+
} else {
|
|
337
|
+
message = "Invalid";
|
|
338
|
+
}
|
|
339
|
+
break;
|
|
340
|
+
case ZodIssueCode.too_small:
|
|
341
|
+
if (issue.type === "array")
|
|
342
|
+
message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
|
|
343
|
+
else if (issue.type === "string")
|
|
344
|
+
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
345
|
+
else if (issue.type === "number")
|
|
346
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
347
|
+
else if (issue.type === "date")
|
|
348
|
+
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
349
|
+
else
|
|
350
|
+
message = "Invalid input";
|
|
351
|
+
break;
|
|
352
|
+
case ZodIssueCode.too_big:
|
|
353
|
+
if (issue.type === "array")
|
|
354
|
+
message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
|
|
355
|
+
else if (issue.type === "string")
|
|
356
|
+
message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
|
|
357
|
+
else if (issue.type === "number")
|
|
358
|
+
message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
359
|
+
else if (issue.type === "bigint")
|
|
360
|
+
message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
361
|
+
else if (issue.type === "date")
|
|
362
|
+
message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
|
|
363
|
+
else
|
|
364
|
+
message = "Invalid input";
|
|
365
|
+
break;
|
|
366
|
+
case ZodIssueCode.custom:
|
|
367
|
+
message = `Invalid input`;
|
|
368
|
+
break;
|
|
369
|
+
case ZodIssueCode.invalid_intersection_types:
|
|
370
|
+
message = `Intersection results could not be merged`;
|
|
371
|
+
break;
|
|
372
|
+
case ZodIssueCode.not_multiple_of:
|
|
373
|
+
message = `Number must be a multiple of ${issue.multipleOf}`;
|
|
374
|
+
break;
|
|
375
|
+
case ZodIssueCode.not_finite:
|
|
376
|
+
message = "Number must be finite";
|
|
377
|
+
break;
|
|
378
|
+
default:
|
|
379
|
+
message = _ctx.defaultError;
|
|
380
|
+
util.assertNever(issue);
|
|
381
|
+
}
|
|
382
|
+
return { message };
|
|
383
|
+
}, en_default;
|
|
384
|
+
var init_en = __esm(() => {
|
|
385
|
+
init_ZodError();
|
|
386
|
+
init_util();
|
|
387
|
+
en_default = errorMap;
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
// node_modules/zod/dist/esm/v3/errors.js
|
|
33
391
|
function setErrorMap(map) {
|
|
34
392
|
overrideErrorMap = map;
|
|
35
393
|
}
|
|
36
394
|
function getErrorMap() {
|
|
37
395
|
return overrideErrorMap;
|
|
38
396
|
}
|
|
397
|
+
var overrideErrorMap;
|
|
398
|
+
var init_errors = __esm(() => {
|
|
399
|
+
init_en();
|
|
400
|
+
overrideErrorMap = en_default;
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
// node_modules/zod/dist/esm/v3/helpers/parseUtil.js
|
|
39
404
|
function addIssueToContext(ctx, issueData) {
|
|
40
405
|
const overrideMap = getErrorMap();
|
|
41
406
|
const issue = makeIssue({
|
|
@@ -46,7 +411,7 @@ function addIssueToContext(ctx, issueData) {
|
|
|
46
411
|
ctx.common.contextualErrorMap,
|
|
47
412
|
ctx.schemaErrorMap,
|
|
48
413
|
overrideMap,
|
|
49
|
-
overrideMap ===
|
|
414
|
+
overrideMap === en_default ? undefined : en_default
|
|
50
415
|
].filter((x2) => !!x2)
|
|
51
416
|
});
|
|
52
417
|
ctx.common.issues.push(issue);
|
|
@@ -106,23 +471,54 @@ class ParseStatus {
|
|
|
106
471
|
return { status: status.value, value: finalObject };
|
|
107
472
|
}
|
|
108
473
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
474
|
+
var makeIssue = (params) => {
|
|
475
|
+
const { data, path, errorMaps, issueData } = params;
|
|
476
|
+
const fullPath = [...path, ...issueData.path || []];
|
|
477
|
+
const fullIssue = {
|
|
478
|
+
...issueData,
|
|
479
|
+
path: fullPath
|
|
480
|
+
};
|
|
481
|
+
if (issueData.message !== undefined) {
|
|
482
|
+
return {
|
|
483
|
+
...issueData,
|
|
484
|
+
path: fullPath,
|
|
485
|
+
message: issueData.message
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
let errorMessage = "";
|
|
489
|
+
const maps = errorMaps.filter((m) => !!m).slice().reverse();
|
|
490
|
+
for (const map of maps) {
|
|
491
|
+
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
492
|
+
}
|
|
493
|
+
return {
|
|
494
|
+
...issueData,
|
|
495
|
+
path: fullPath,
|
|
496
|
+
message: errorMessage
|
|
497
|
+
};
|
|
498
|
+
}, EMPTY_PATH, INVALID, DIRTY = (value) => ({ status: "dirty", value }), OK = (value) => ({ status: "valid", value }), isAborted = (x2) => x2.status === "aborted", isDirty = (x2) => x2.status === "dirty", isValid = (x2) => x2.status === "valid", isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
|
|
499
|
+
var init_parseUtil = __esm(() => {
|
|
500
|
+
init_errors();
|
|
501
|
+
init_en();
|
|
502
|
+
EMPTY_PATH = [];
|
|
503
|
+
INVALID = Object.freeze({
|
|
504
|
+
status: "aborted"
|
|
505
|
+
});
|
|
506
|
+
});
|
|
507
|
+
|
|
508
|
+
// node_modules/zod/dist/esm/v3/helpers/typeAliases.js
|
|
509
|
+
var init_typeAliases = () => {
|
|
510
|
+
};
|
|
125
511
|
|
|
512
|
+
// node_modules/zod/dist/esm/v3/helpers/errorUtil.js
|
|
513
|
+
var errorUtil;
|
|
514
|
+
var init_errorUtil = __esm(() => {
|
|
515
|
+
(function(errorUtil2) {
|
|
516
|
+
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
517
|
+
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
518
|
+
})(errorUtil || (errorUtil = {}));
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
// node_modules/zod/dist/esm/v3/types.js
|
|
126
522
|
class ParseInputLazyPath {
|
|
127
523
|
constructor(parent, value, path, key) {
|
|
128
524
|
this._cachedPath = [];
|
|
@@ -133,7 +529,7 @@ class ParseInputLazyPath {
|
|
|
133
529
|
}
|
|
134
530
|
get path() {
|
|
135
531
|
if (!this._cachedPath.length) {
|
|
136
|
-
if (this._key
|
|
532
|
+
if (Array.isArray(this._key)) {
|
|
137
533
|
this._cachedPath.push(...this._path, ...this._key);
|
|
138
534
|
} else {
|
|
139
535
|
this._cachedPath.push(...this._path, this._key);
|
|
@@ -152,17 +548,16 @@ function processCreateParams(params) {
|
|
|
152
548
|
if (errorMap2)
|
|
153
549
|
return { errorMap: errorMap2, description };
|
|
154
550
|
const customMap = (iss, ctx) => {
|
|
155
|
-
var _a, _b;
|
|
156
551
|
const { message } = params;
|
|
157
552
|
if (iss.code === "invalid_enum_value") {
|
|
158
|
-
return { message: message
|
|
553
|
+
return { message: message ?? ctx.defaultError };
|
|
159
554
|
}
|
|
160
555
|
if (typeof ctx.data === "undefined") {
|
|
161
|
-
return { message:
|
|
556
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
162
557
|
}
|
|
163
558
|
if (iss.code !== "invalid_type")
|
|
164
559
|
return { message: ctx.defaultError };
|
|
165
|
-
return { message:
|
|
560
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
166
561
|
};
|
|
167
562
|
return { errorMap: customMap, description };
|
|
168
563
|
}
|
|
@@ -215,14 +610,13 @@ class ZodType {
|
|
|
215
610
|
throw result.error;
|
|
216
611
|
}
|
|
217
612
|
safeParse(data, params) {
|
|
218
|
-
var _a;
|
|
219
613
|
const ctx = {
|
|
220
614
|
common: {
|
|
221
615
|
issues: [],
|
|
222
|
-
async:
|
|
223
|
-
contextualErrorMap: params
|
|
616
|
+
async: params?.async ?? false,
|
|
617
|
+
contextualErrorMap: params?.errorMap
|
|
224
618
|
},
|
|
225
|
-
path:
|
|
619
|
+
path: params?.path || [],
|
|
226
620
|
schemaErrorMap: this._def.errorMap,
|
|
227
621
|
parent: null,
|
|
228
622
|
data,
|
|
@@ -232,7 +626,6 @@ class ZodType {
|
|
|
232
626
|
return handleResult(ctx, result);
|
|
233
627
|
}
|
|
234
628
|
"~validate"(data) {
|
|
235
|
-
var _a, _b;
|
|
236
629
|
const ctx = {
|
|
237
630
|
common: {
|
|
238
631
|
issues: [],
|
|
@@ -253,7 +646,7 @@ class ZodType {
|
|
|
253
646
|
issues: ctx.common.issues
|
|
254
647
|
};
|
|
255
648
|
} catch (err) {
|
|
256
|
-
if (
|
|
649
|
+
if (err?.message?.toLowerCase()?.includes("encountered")) {
|
|
257
650
|
this["~standard"].async = true;
|
|
258
651
|
}
|
|
259
652
|
ctx.common = {
|
|
@@ -278,10 +671,10 @@ class ZodType {
|
|
|
278
671
|
const ctx = {
|
|
279
672
|
common: {
|
|
280
673
|
issues: [],
|
|
281
|
-
contextualErrorMap: params
|
|
674
|
+
contextualErrorMap: params?.errorMap,
|
|
282
675
|
async: true
|
|
283
676
|
},
|
|
284
|
-
path:
|
|
677
|
+
path: params?.path || [],
|
|
285
678
|
schemaErrorMap: this._def.errorMap,
|
|
286
679
|
parent: null,
|
|
287
680
|
data,
|
|
@@ -453,13 +846,14 @@ class ZodType {
|
|
|
453
846
|
}
|
|
454
847
|
}
|
|
455
848
|
function timeRegexSource(args) {
|
|
456
|
-
let
|
|
849
|
+
let secondsRegexSource = `[0-5]\\d`;
|
|
457
850
|
if (args.precision) {
|
|
458
|
-
|
|
851
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
|
459
852
|
} else if (args.precision == null) {
|
|
460
|
-
|
|
853
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
|
461
854
|
}
|
|
462
|
-
|
|
855
|
+
const secondsQuantifier = args.precision ? "+" : "?";
|
|
856
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
463
857
|
}
|
|
464
858
|
function timeRegex(args) {
|
|
465
859
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
@@ -491,12 +885,14 @@ function isValidJWT(jwt, alg) {
|
|
|
491
885
|
const decoded = JSON.parse(atob(base64));
|
|
492
886
|
if (typeof decoded !== "object" || decoded === null)
|
|
493
887
|
return false;
|
|
494
|
-
if (
|
|
888
|
+
if ("typ" in decoded && decoded?.typ !== "JWT")
|
|
889
|
+
return false;
|
|
890
|
+
if (!decoded.alg)
|
|
495
891
|
return false;
|
|
496
892
|
if (alg && decoded.alg !== alg)
|
|
497
893
|
return false;
|
|
498
894
|
return true;
|
|
499
|
-
} catch
|
|
895
|
+
} catch {
|
|
500
896
|
return false;
|
|
501
897
|
}
|
|
502
898
|
}
|
|
@@ -513,9 +909,9 @@ function floatSafeRemainder(val, step) {
|
|
|
513
909
|
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
514
910
|
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
515
911
|
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
516
|
-
const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
|
|
517
|
-
const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
|
|
518
|
-
return valInt % stepInt /
|
|
912
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
913
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
914
|
+
return valInt % stepInt / 10 ** decCount;
|
|
519
915
|
}
|
|
520
916
|
function deepPartialify(schema) {
|
|
521
917
|
if (schema instanceof ZodObject) {
|
|
@@ -596,192 +992,26 @@ function cleanParams(params, data) {
|
|
|
596
992
|
function custom(check, _params = {}, fatal) {
|
|
597
993
|
if (check)
|
|
598
994
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
599
|
-
var _a, _b;
|
|
600
995
|
const r = check(data);
|
|
601
996
|
if (r instanceof Promise) {
|
|
602
997
|
return r.then((r2) => {
|
|
603
|
-
var _a2, _b2;
|
|
604
998
|
if (!r2) {
|
|
605
999
|
const params = cleanParams(_params, data);
|
|
606
|
-
const _fatal =
|
|
1000
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
607
1001
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
608
1002
|
}
|
|
609
1003
|
});
|
|
610
1004
|
}
|
|
611
1005
|
if (!r) {
|
|
612
1006
|
const params = cleanParams(_params, data);
|
|
613
|
-
const _fatal =
|
|
1007
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
614
1008
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
615
1009
|
}
|
|
616
1010
|
return;
|
|
617
1011
|
});
|
|
618
1012
|
return ZodAny.create();
|
|
619
1013
|
}
|
|
620
|
-
var
|
|
621
|
-
const t = typeof data;
|
|
622
|
-
switch (t) {
|
|
623
|
-
case "undefined":
|
|
624
|
-
return ZodParsedType.undefined;
|
|
625
|
-
case "string":
|
|
626
|
-
return ZodParsedType.string;
|
|
627
|
-
case "number":
|
|
628
|
-
return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
629
|
-
case "boolean":
|
|
630
|
-
return ZodParsedType.boolean;
|
|
631
|
-
case "function":
|
|
632
|
-
return ZodParsedType.function;
|
|
633
|
-
case "bigint":
|
|
634
|
-
return ZodParsedType.bigint;
|
|
635
|
-
case "symbol":
|
|
636
|
-
return ZodParsedType.symbol;
|
|
637
|
-
case "object":
|
|
638
|
-
if (Array.isArray(data)) {
|
|
639
|
-
return ZodParsedType.array;
|
|
640
|
-
}
|
|
641
|
-
if (data === null) {
|
|
642
|
-
return ZodParsedType.null;
|
|
643
|
-
}
|
|
644
|
-
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
645
|
-
return ZodParsedType.promise;
|
|
646
|
-
}
|
|
647
|
-
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
648
|
-
return ZodParsedType.map;
|
|
649
|
-
}
|
|
650
|
-
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
651
|
-
return ZodParsedType.set;
|
|
652
|
-
}
|
|
653
|
-
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
654
|
-
return ZodParsedType.date;
|
|
655
|
-
}
|
|
656
|
-
return ZodParsedType.object;
|
|
657
|
-
default:
|
|
658
|
-
return ZodParsedType.unknown;
|
|
659
|
-
}
|
|
660
|
-
}, ZodIssueCode, quotelessJson = (obj) => {
|
|
661
|
-
const json = JSON.stringify(obj, null, 2);
|
|
662
|
-
return json.replace(/"([^"]+)":/g, "$1:");
|
|
663
|
-
}, ZodError, errorMap = (issue, _ctx) => {
|
|
664
|
-
let message;
|
|
665
|
-
switch (issue.code) {
|
|
666
|
-
case ZodIssueCode.invalid_type:
|
|
667
|
-
if (issue.received === ZodParsedType.undefined) {
|
|
668
|
-
message = "Required";
|
|
669
|
-
} else {
|
|
670
|
-
message = `Expected ${issue.expected}, received ${issue.received}`;
|
|
671
|
-
}
|
|
672
|
-
break;
|
|
673
|
-
case ZodIssueCode.invalid_literal:
|
|
674
|
-
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
|
|
675
|
-
break;
|
|
676
|
-
case ZodIssueCode.unrecognized_keys:
|
|
677
|
-
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
|
|
678
|
-
break;
|
|
679
|
-
case ZodIssueCode.invalid_union:
|
|
680
|
-
message = `Invalid input`;
|
|
681
|
-
break;
|
|
682
|
-
case ZodIssueCode.invalid_union_discriminator:
|
|
683
|
-
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
|
|
684
|
-
break;
|
|
685
|
-
case ZodIssueCode.invalid_enum_value:
|
|
686
|
-
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
|
|
687
|
-
break;
|
|
688
|
-
case ZodIssueCode.invalid_arguments:
|
|
689
|
-
message = `Invalid function arguments`;
|
|
690
|
-
break;
|
|
691
|
-
case ZodIssueCode.invalid_return_type:
|
|
692
|
-
message = `Invalid function return type`;
|
|
693
|
-
break;
|
|
694
|
-
case ZodIssueCode.invalid_date:
|
|
695
|
-
message = `Invalid date`;
|
|
696
|
-
break;
|
|
697
|
-
case ZodIssueCode.invalid_string:
|
|
698
|
-
if (typeof issue.validation === "object") {
|
|
699
|
-
if ("includes" in issue.validation) {
|
|
700
|
-
message = `Invalid input: must include "${issue.validation.includes}"`;
|
|
701
|
-
if (typeof issue.validation.position === "number") {
|
|
702
|
-
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
|
703
|
-
}
|
|
704
|
-
} else if ("startsWith" in issue.validation) {
|
|
705
|
-
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
|
706
|
-
} else if ("endsWith" in issue.validation) {
|
|
707
|
-
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
|
|
708
|
-
} else {
|
|
709
|
-
util.assertNever(issue.validation);
|
|
710
|
-
}
|
|
711
|
-
} else if (issue.validation !== "regex") {
|
|
712
|
-
message = `Invalid ${issue.validation}`;
|
|
713
|
-
} else {
|
|
714
|
-
message = "Invalid";
|
|
715
|
-
}
|
|
716
|
-
break;
|
|
717
|
-
case ZodIssueCode.too_small:
|
|
718
|
-
if (issue.type === "array")
|
|
719
|
-
message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
|
|
720
|
-
else if (issue.type === "string")
|
|
721
|
-
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
722
|
-
else if (issue.type === "number")
|
|
723
|
-
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
724
|
-
else if (issue.type === "date")
|
|
725
|
-
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
726
|
-
else
|
|
727
|
-
message = "Invalid input";
|
|
728
|
-
break;
|
|
729
|
-
case ZodIssueCode.too_big:
|
|
730
|
-
if (issue.type === "array")
|
|
731
|
-
message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
|
|
732
|
-
else if (issue.type === "string")
|
|
733
|
-
message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
|
|
734
|
-
else if (issue.type === "number")
|
|
735
|
-
message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
736
|
-
else if (issue.type === "bigint")
|
|
737
|
-
message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
738
|
-
else if (issue.type === "date")
|
|
739
|
-
message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
|
|
740
|
-
else
|
|
741
|
-
message = "Invalid input";
|
|
742
|
-
break;
|
|
743
|
-
case ZodIssueCode.custom:
|
|
744
|
-
message = `Invalid input`;
|
|
745
|
-
break;
|
|
746
|
-
case ZodIssueCode.invalid_intersection_types:
|
|
747
|
-
message = `Intersection results could not be merged`;
|
|
748
|
-
break;
|
|
749
|
-
case ZodIssueCode.not_multiple_of:
|
|
750
|
-
message = `Number must be a multiple of ${issue.multipleOf}`;
|
|
751
|
-
break;
|
|
752
|
-
case ZodIssueCode.not_finite:
|
|
753
|
-
message = "Number must be finite";
|
|
754
|
-
break;
|
|
755
|
-
default:
|
|
756
|
-
message = _ctx.defaultError;
|
|
757
|
-
util.assertNever(issue);
|
|
758
|
-
}
|
|
759
|
-
return { message };
|
|
760
|
-
}, overrideErrorMap, makeIssue = (params) => {
|
|
761
|
-
const { data, path, errorMaps, issueData } = params;
|
|
762
|
-
const fullPath = [...path, ...issueData.path || []];
|
|
763
|
-
const fullIssue = {
|
|
764
|
-
...issueData,
|
|
765
|
-
path: fullPath
|
|
766
|
-
};
|
|
767
|
-
if (issueData.message !== undefined) {
|
|
768
|
-
return {
|
|
769
|
-
...issueData,
|
|
770
|
-
path: fullPath,
|
|
771
|
-
message: issueData.message
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
let errorMessage = "";
|
|
775
|
-
const maps = errorMaps.filter((m) => !!m).slice().reverse();
|
|
776
|
-
for (const map of maps) {
|
|
777
|
-
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
778
|
-
}
|
|
779
|
-
return {
|
|
780
|
-
...issueData,
|
|
781
|
-
path: fullPath,
|
|
782
|
-
message: errorMessage
|
|
783
|
-
};
|
|
784
|
-
}, EMPTY_PATH, INVALID, DIRTY = (value) => ({ status: "dirty", value }), OK = (value) => ({ status: "valid", value }), isAborted = (x2) => x2.status === "aborted", isDirty = (x2) => x2.status === "dirty", isValid = (x2) => x2.status === "valid", isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise, errorUtil, _ZodEnum_cache, _ZodNativeEnum_cache, handleResult = (ctx, result) => {
|
|
1014
|
+
var handleResult = (ctx, result) => {
|
|
785
1015
|
if (isValid(result)) {
|
|
786
1016
|
return { success: true, data: result.value };
|
|
787
1017
|
} else {
|
|
@@ -831,215 +1061,13 @@ var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
|
831
1061
|
}
|
|
832
1062
|
}, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, BRAND, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, instanceOfType = (cls, params = {
|
|
833
1063
|
message: `Input not instance of ${cls.name}`
|
|
834
|
-
}) => custom((data) => data instanceof cls, params), stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, ostring = () => stringType().optional(), onumber = () => numberType().optional(), oboolean = () => booleanType().optional(), coerce, NEVER
|
|
835
|
-
var
|
|
836
|
-
(
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
function assertNever(_x) {
|
|
842
|
-
throw new Error;
|
|
843
|
-
}
|
|
844
|
-
util2.assertNever = assertNever;
|
|
845
|
-
util2.arrayToEnum = (items) => {
|
|
846
|
-
const obj = {};
|
|
847
|
-
for (const item of items) {
|
|
848
|
-
obj[item] = item;
|
|
849
|
-
}
|
|
850
|
-
return obj;
|
|
851
|
-
};
|
|
852
|
-
util2.getValidEnumValues = (obj) => {
|
|
853
|
-
const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
|
|
854
|
-
const filtered = {};
|
|
855
|
-
for (const k2 of validKeys) {
|
|
856
|
-
filtered[k2] = obj[k2];
|
|
857
|
-
}
|
|
858
|
-
return util2.objectValues(filtered);
|
|
859
|
-
};
|
|
860
|
-
util2.objectValues = (obj) => {
|
|
861
|
-
return util2.objectKeys(obj).map(function(e) {
|
|
862
|
-
return obj[e];
|
|
863
|
-
});
|
|
864
|
-
};
|
|
865
|
-
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
866
|
-
const keys = [];
|
|
867
|
-
for (const key in object) {
|
|
868
|
-
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
869
|
-
keys.push(key);
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
return keys;
|
|
873
|
-
};
|
|
874
|
-
util2.find = (arr, checker) => {
|
|
875
|
-
for (const item of arr) {
|
|
876
|
-
if (checker(item))
|
|
877
|
-
return item;
|
|
878
|
-
}
|
|
879
|
-
return;
|
|
880
|
-
};
|
|
881
|
-
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
|
882
|
-
function joinValues(array, separator = " | ") {
|
|
883
|
-
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
884
|
-
}
|
|
885
|
-
util2.joinValues = joinValues;
|
|
886
|
-
util2.jsonStringifyReplacer = (_2, value) => {
|
|
887
|
-
if (typeof value === "bigint") {
|
|
888
|
-
return value.toString();
|
|
889
|
-
}
|
|
890
|
-
return value;
|
|
891
|
-
};
|
|
892
|
-
})(util || (util = {}));
|
|
893
|
-
(function(objectUtil2) {
|
|
894
|
-
objectUtil2.mergeShapes = (first, second) => {
|
|
895
|
-
return {
|
|
896
|
-
...first,
|
|
897
|
-
...second
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
})(objectUtil || (objectUtil = {}));
|
|
901
|
-
ZodParsedType = util.arrayToEnum([
|
|
902
|
-
"string",
|
|
903
|
-
"nan",
|
|
904
|
-
"number",
|
|
905
|
-
"integer",
|
|
906
|
-
"float",
|
|
907
|
-
"boolean",
|
|
908
|
-
"date",
|
|
909
|
-
"bigint",
|
|
910
|
-
"symbol",
|
|
911
|
-
"function",
|
|
912
|
-
"undefined",
|
|
913
|
-
"null",
|
|
914
|
-
"array",
|
|
915
|
-
"object",
|
|
916
|
-
"unknown",
|
|
917
|
-
"promise",
|
|
918
|
-
"void",
|
|
919
|
-
"never",
|
|
920
|
-
"map",
|
|
921
|
-
"set"
|
|
922
|
-
]);
|
|
923
|
-
ZodIssueCode = util.arrayToEnum([
|
|
924
|
-
"invalid_type",
|
|
925
|
-
"invalid_literal",
|
|
926
|
-
"custom",
|
|
927
|
-
"invalid_union",
|
|
928
|
-
"invalid_union_discriminator",
|
|
929
|
-
"invalid_enum_value",
|
|
930
|
-
"unrecognized_keys",
|
|
931
|
-
"invalid_arguments",
|
|
932
|
-
"invalid_return_type",
|
|
933
|
-
"invalid_date",
|
|
934
|
-
"invalid_string",
|
|
935
|
-
"too_small",
|
|
936
|
-
"too_big",
|
|
937
|
-
"invalid_intersection_types",
|
|
938
|
-
"not_multiple_of",
|
|
939
|
-
"not_finite"
|
|
940
|
-
]);
|
|
941
|
-
ZodError = class ZodError extends Error {
|
|
942
|
-
get errors() {
|
|
943
|
-
return this.issues;
|
|
944
|
-
}
|
|
945
|
-
constructor(issues) {
|
|
946
|
-
super();
|
|
947
|
-
this.issues = [];
|
|
948
|
-
this.addIssue = (sub) => {
|
|
949
|
-
this.issues = [...this.issues, sub];
|
|
950
|
-
};
|
|
951
|
-
this.addIssues = (subs = []) => {
|
|
952
|
-
this.issues = [...this.issues, ...subs];
|
|
953
|
-
};
|
|
954
|
-
const actualProto = new.target.prototype;
|
|
955
|
-
if (Object.setPrototypeOf) {
|
|
956
|
-
Object.setPrototypeOf(this, actualProto);
|
|
957
|
-
} else {
|
|
958
|
-
this.__proto__ = actualProto;
|
|
959
|
-
}
|
|
960
|
-
this.name = "ZodError";
|
|
961
|
-
this.issues = issues;
|
|
962
|
-
}
|
|
963
|
-
format(_mapper) {
|
|
964
|
-
const mapper = _mapper || function(issue) {
|
|
965
|
-
return issue.message;
|
|
966
|
-
};
|
|
967
|
-
const fieldErrors = { _errors: [] };
|
|
968
|
-
const processError = (error) => {
|
|
969
|
-
for (const issue of error.issues) {
|
|
970
|
-
if (issue.code === "invalid_union") {
|
|
971
|
-
issue.unionErrors.map(processError);
|
|
972
|
-
} else if (issue.code === "invalid_return_type") {
|
|
973
|
-
processError(issue.returnTypeError);
|
|
974
|
-
} else if (issue.code === "invalid_arguments") {
|
|
975
|
-
processError(issue.argumentsError);
|
|
976
|
-
} else if (issue.path.length === 0) {
|
|
977
|
-
fieldErrors._errors.push(mapper(issue));
|
|
978
|
-
} else {
|
|
979
|
-
let curr = fieldErrors;
|
|
980
|
-
let i = 0;
|
|
981
|
-
while (i < issue.path.length) {
|
|
982
|
-
const el = issue.path[i];
|
|
983
|
-
const terminal = i === issue.path.length - 1;
|
|
984
|
-
if (!terminal) {
|
|
985
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
986
|
-
} else {
|
|
987
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
988
|
-
curr[el]._errors.push(mapper(issue));
|
|
989
|
-
}
|
|
990
|
-
curr = curr[el];
|
|
991
|
-
i++;
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
};
|
|
996
|
-
processError(this);
|
|
997
|
-
return fieldErrors;
|
|
998
|
-
}
|
|
999
|
-
static assert(value) {
|
|
1000
|
-
if (!(value instanceof ZodError)) {
|
|
1001
|
-
throw new Error(`Not a ZodError: ${value}`);
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
toString() {
|
|
1005
|
-
return this.message;
|
|
1006
|
-
}
|
|
1007
|
-
get message() {
|
|
1008
|
-
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
1009
|
-
}
|
|
1010
|
-
get isEmpty() {
|
|
1011
|
-
return this.issues.length === 0;
|
|
1012
|
-
}
|
|
1013
|
-
flatten(mapper = (issue) => issue.message) {
|
|
1014
|
-
const fieldErrors = {};
|
|
1015
|
-
const formErrors = [];
|
|
1016
|
-
for (const sub of this.issues) {
|
|
1017
|
-
if (sub.path.length > 0) {
|
|
1018
|
-
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1019
|
-
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
1020
|
-
} else {
|
|
1021
|
-
formErrors.push(mapper(sub));
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
return { formErrors, fieldErrors };
|
|
1025
|
-
}
|
|
1026
|
-
get formErrors() {
|
|
1027
|
-
return this.flatten();
|
|
1028
|
-
}
|
|
1029
|
-
};
|
|
1030
|
-
ZodError.create = (issues) => {
|
|
1031
|
-
const error = new ZodError(issues);
|
|
1032
|
-
return error;
|
|
1033
|
-
};
|
|
1034
|
-
overrideErrorMap = errorMap;
|
|
1035
|
-
EMPTY_PATH = [];
|
|
1036
|
-
INVALID = Object.freeze({
|
|
1037
|
-
status: "aborted"
|
|
1038
|
-
});
|
|
1039
|
-
(function(errorUtil2) {
|
|
1040
|
-
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
1041
|
-
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === undefined ? undefined : message.message;
|
|
1042
|
-
})(errorUtil || (errorUtil = {}));
|
|
1064
|
+
}) => custom((data) => data instanceof cls, params), stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, ostring = () => stringType().optional(), onumber = () => numberType().optional(), oboolean = () => booleanType().optional(), coerce, NEVER;
|
|
1065
|
+
var init_types = __esm(() => {
|
|
1066
|
+
init_ZodError();
|
|
1067
|
+
init_errors();
|
|
1068
|
+
init_errorUtil();
|
|
1069
|
+
init_parseUtil();
|
|
1070
|
+
init_util();
|
|
1043
1071
|
cuidRegex = /^c[^\s-]{8,}$/i;
|
|
1044
1072
|
cuid2Regex = /^[0-9a-z]+$/;
|
|
1045
1073
|
ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
@@ -1201,7 +1229,7 @@ var init_lib = __esm(() => {
|
|
|
1201
1229
|
} else if (check.kind === "url") {
|
|
1202
1230
|
try {
|
|
1203
1231
|
new URL(input.data);
|
|
1204
|
-
} catch
|
|
1232
|
+
} catch {
|
|
1205
1233
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1206
1234
|
addIssueToContext(ctx, {
|
|
1207
1235
|
validation: "url",
|
|
@@ -1413,7 +1441,6 @@ var init_lib = __esm(() => {
|
|
|
1413
1441
|
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
1414
1442
|
}
|
|
1415
1443
|
datetime(options) {
|
|
1416
|
-
var _a, _b;
|
|
1417
1444
|
if (typeof options === "string") {
|
|
1418
1445
|
return this._addCheck({
|
|
1419
1446
|
kind: "datetime",
|
|
@@ -1425,10 +1452,10 @@ var init_lib = __esm(() => {
|
|
|
1425
1452
|
}
|
|
1426
1453
|
return this._addCheck({
|
|
1427
1454
|
kind: "datetime",
|
|
1428
|
-
precision: typeof
|
|
1429
|
-
offset:
|
|
1430
|
-
local:
|
|
1431
|
-
...errorUtil.errToObj(options
|
|
1455
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
1456
|
+
offset: options?.offset ?? false,
|
|
1457
|
+
local: options?.local ?? false,
|
|
1458
|
+
...errorUtil.errToObj(options?.message)
|
|
1432
1459
|
});
|
|
1433
1460
|
}
|
|
1434
1461
|
date(message) {
|
|
@@ -1444,8 +1471,8 @@ var init_lib = __esm(() => {
|
|
|
1444
1471
|
}
|
|
1445
1472
|
return this._addCheck({
|
|
1446
1473
|
kind: "time",
|
|
1447
|
-
precision: typeof
|
|
1448
|
-
...errorUtil.errToObj(options
|
|
1474
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
1475
|
+
...errorUtil.errToObj(options?.message)
|
|
1449
1476
|
});
|
|
1450
1477
|
}
|
|
1451
1478
|
duration(message) {
|
|
@@ -1462,8 +1489,8 @@ var init_lib = __esm(() => {
|
|
|
1462
1489
|
return this._addCheck({
|
|
1463
1490
|
kind: "includes",
|
|
1464
1491
|
value,
|
|
1465
|
-
position: options
|
|
1466
|
-
...errorUtil.errToObj(options
|
|
1492
|
+
position: options?.position,
|
|
1493
|
+
...errorUtil.errToObj(options?.message)
|
|
1467
1494
|
});
|
|
1468
1495
|
}
|
|
1469
1496
|
startsWith(value, message) {
|
|
@@ -1592,11 +1619,10 @@ var init_lib = __esm(() => {
|
|
|
1592
1619
|
}
|
|
1593
1620
|
};
|
|
1594
1621
|
ZodString.create = (params) => {
|
|
1595
|
-
var _a;
|
|
1596
1622
|
return new ZodString({
|
|
1597
1623
|
checks: [],
|
|
1598
1624
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
1599
|
-
coerce:
|
|
1625
|
+
coerce: params?.coerce ?? false,
|
|
1600
1626
|
...processCreateParams(params)
|
|
1601
1627
|
});
|
|
1602
1628
|
};
|
|
@@ -1808,7 +1834,8 @@ var init_lib = __esm(() => {
|
|
|
1808
1834
|
return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
|
|
1809
1835
|
}
|
|
1810
1836
|
get isFinite() {
|
|
1811
|
-
let max = null
|
|
1837
|
+
let max = null;
|
|
1838
|
+
let min = null;
|
|
1812
1839
|
for (const ch of this._def.checks) {
|
|
1813
1840
|
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
1814
1841
|
return true;
|
|
@@ -1827,7 +1854,7 @@ var init_lib = __esm(() => {
|
|
|
1827
1854
|
return new ZodNumber({
|
|
1828
1855
|
checks: [],
|
|
1829
1856
|
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
1830
|
-
coerce:
|
|
1857
|
+
coerce: params?.coerce || false,
|
|
1831
1858
|
...processCreateParams(params)
|
|
1832
1859
|
});
|
|
1833
1860
|
};
|
|
@@ -1841,7 +1868,7 @@ var init_lib = __esm(() => {
|
|
|
1841
1868
|
if (this._def.coerce) {
|
|
1842
1869
|
try {
|
|
1843
1870
|
input.data = BigInt(input.data);
|
|
1844
|
-
} catch
|
|
1871
|
+
} catch {
|
|
1845
1872
|
return this._getInvalidInput(input);
|
|
1846
1873
|
}
|
|
1847
1874
|
}
|
|
@@ -1996,11 +2023,10 @@ var init_lib = __esm(() => {
|
|
|
1996
2023
|
}
|
|
1997
2024
|
};
|
|
1998
2025
|
ZodBigInt.create = (params) => {
|
|
1999
|
-
var _a;
|
|
2000
2026
|
return new ZodBigInt({
|
|
2001
2027
|
checks: [],
|
|
2002
2028
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
2003
|
-
coerce:
|
|
2029
|
+
coerce: params?.coerce ?? false,
|
|
2004
2030
|
...processCreateParams(params)
|
|
2005
2031
|
});
|
|
2006
2032
|
};
|
|
@@ -2025,7 +2051,7 @@ var init_lib = __esm(() => {
|
|
|
2025
2051
|
ZodBoolean.create = (params) => {
|
|
2026
2052
|
return new ZodBoolean({
|
|
2027
2053
|
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
2028
|
-
coerce:
|
|
2054
|
+
coerce: params?.coerce || false,
|
|
2029
2055
|
...processCreateParams(params)
|
|
2030
2056
|
});
|
|
2031
2057
|
};
|
|
@@ -2044,7 +2070,7 @@ var init_lib = __esm(() => {
|
|
|
2044
2070
|
});
|
|
2045
2071
|
return INVALID;
|
|
2046
2072
|
}
|
|
2047
|
-
if (isNaN(input.data.getTime())) {
|
|
2073
|
+
if (Number.isNaN(input.data.getTime())) {
|
|
2048
2074
|
const ctx2 = this._getOrReturnCtx(input);
|
|
2049
2075
|
addIssueToContext(ctx2, {
|
|
2050
2076
|
code: ZodIssueCode.invalid_date
|
|
@@ -2133,7 +2159,7 @@ var init_lib = __esm(() => {
|
|
|
2133
2159
|
ZodDate.create = (params) => {
|
|
2134
2160
|
return new ZodDate({
|
|
2135
2161
|
checks: [],
|
|
2136
|
-
coerce:
|
|
2162
|
+
coerce: params?.coerce || false,
|
|
2137
2163
|
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
2138
2164
|
...processCreateParams(params)
|
|
2139
2165
|
});
|
|
@@ -2382,7 +2408,8 @@ var init_lib = __esm(() => {
|
|
|
2382
2408
|
return this._cached;
|
|
2383
2409
|
const shape = this._def.shape();
|
|
2384
2410
|
const keys = util.objectKeys(shape);
|
|
2385
|
-
|
|
2411
|
+
this._cached = { shape, keys };
|
|
2412
|
+
return this._cached;
|
|
2386
2413
|
}
|
|
2387
2414
|
_parse(input) {
|
|
2388
2415
|
const parsedType = this._getType(input);
|
|
@@ -2432,9 +2459,8 @@ var init_lib = __esm(() => {
|
|
|
2432
2459
|
});
|
|
2433
2460
|
status.dirty();
|
|
2434
2461
|
}
|
|
2435
|
-
} else if (unknownKeys === "strip")
|
|
2436
|
-
|
|
2437
|
-
else {
|
|
2462
|
+
} else if (unknownKeys === "strip") {
|
|
2463
|
+
} else {
|
|
2438
2464
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2439
2465
|
}
|
|
2440
2466
|
} else {
|
|
@@ -2478,11 +2504,10 @@ var init_lib = __esm(() => {
|
|
|
2478
2504
|
unknownKeys: "strict",
|
|
2479
2505
|
...message !== undefined ? {
|
|
2480
2506
|
errorMap: (issue, ctx) => {
|
|
2481
|
-
|
|
2482
|
-
const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === undefined ? undefined : _b.call(_a, issue, ctx).message) !== null && _c !== undefined ? _c : ctx.defaultError;
|
|
2507
|
+
const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
|
|
2483
2508
|
if (issue.code === "unrecognized_keys")
|
|
2484
2509
|
return {
|
|
2485
|
-
message:
|
|
2510
|
+
message: errorUtil.errToObj(message).message ?? defaultError
|
|
2486
2511
|
};
|
|
2487
2512
|
return {
|
|
2488
2513
|
message: defaultError
|
|
@@ -2535,11 +2560,11 @@ var init_lib = __esm(() => {
|
|
|
2535
2560
|
}
|
|
2536
2561
|
pick(mask) {
|
|
2537
2562
|
const shape = {};
|
|
2538
|
-
util.objectKeys(mask)
|
|
2563
|
+
for (const key of util.objectKeys(mask)) {
|
|
2539
2564
|
if (mask[key] && this.shape[key]) {
|
|
2540
2565
|
shape[key] = this.shape[key];
|
|
2541
2566
|
}
|
|
2542
|
-
}
|
|
2567
|
+
}
|
|
2543
2568
|
return new ZodObject({
|
|
2544
2569
|
...this._def,
|
|
2545
2570
|
shape: () => shape
|
|
@@ -2547,11 +2572,11 @@ var init_lib = __esm(() => {
|
|
|
2547
2572
|
}
|
|
2548
2573
|
omit(mask) {
|
|
2549
2574
|
const shape = {};
|
|
2550
|
-
util.objectKeys(this.shape)
|
|
2575
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2551
2576
|
if (!mask[key]) {
|
|
2552
2577
|
shape[key] = this.shape[key];
|
|
2553
2578
|
}
|
|
2554
|
-
}
|
|
2579
|
+
}
|
|
2555
2580
|
return new ZodObject({
|
|
2556
2581
|
...this._def,
|
|
2557
2582
|
shape: () => shape
|
|
@@ -2562,14 +2587,14 @@ var init_lib = __esm(() => {
|
|
|
2562
2587
|
}
|
|
2563
2588
|
partial(mask) {
|
|
2564
2589
|
const newShape = {};
|
|
2565
|
-
util.objectKeys(this.shape)
|
|
2590
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2566
2591
|
const fieldSchema = this.shape[key];
|
|
2567
2592
|
if (mask && !mask[key]) {
|
|
2568
2593
|
newShape[key] = fieldSchema;
|
|
2569
2594
|
} else {
|
|
2570
2595
|
newShape[key] = fieldSchema.optional();
|
|
2571
2596
|
}
|
|
2572
|
-
}
|
|
2597
|
+
}
|
|
2573
2598
|
return new ZodObject({
|
|
2574
2599
|
...this._def,
|
|
2575
2600
|
shape: () => newShape
|
|
@@ -2577,7 +2602,7 @@ var init_lib = __esm(() => {
|
|
|
2577
2602
|
}
|
|
2578
2603
|
required(mask) {
|
|
2579
2604
|
const newShape = {};
|
|
2580
|
-
util.objectKeys(this.shape)
|
|
2605
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2581
2606
|
if (mask && !mask[key]) {
|
|
2582
2607
|
newShape[key] = this.shape[key];
|
|
2583
2608
|
} else {
|
|
@@ -2588,7 +2613,7 @@ var init_lib = __esm(() => {
|
|
|
2588
2613
|
}
|
|
2589
2614
|
newShape[key] = newField;
|
|
2590
2615
|
}
|
|
2591
|
-
}
|
|
2616
|
+
}
|
|
2592
2617
|
return new ZodObject({
|
|
2593
2618
|
...this._def,
|
|
2594
2619
|
shape: () => newShape
|
|
@@ -3127,12 +3152,7 @@ var init_lib = __esm(() => {
|
|
|
3127
3152
|
return makeIssue({
|
|
3128
3153
|
data: args,
|
|
3129
3154
|
path: ctx.path,
|
|
3130
|
-
errorMaps: [
|
|
3131
|
-
ctx.common.contextualErrorMap,
|
|
3132
|
-
ctx.schemaErrorMap,
|
|
3133
|
-
getErrorMap(),
|
|
3134
|
-
errorMap
|
|
3135
|
-
].filter((x2) => !!x2),
|
|
3155
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x2) => !!x2),
|
|
3136
3156
|
issueData: {
|
|
3137
3157
|
code: ZodIssueCode.invalid_arguments,
|
|
3138
3158
|
argumentsError: error
|
|
@@ -3143,12 +3163,7 @@ var init_lib = __esm(() => {
|
|
|
3143
3163
|
return makeIssue({
|
|
3144
3164
|
data: returns,
|
|
3145
3165
|
path: ctx.path,
|
|
3146
|
-
errorMaps: [
|
|
3147
|
-
ctx.common.contextualErrorMap,
|
|
3148
|
-
ctx.schemaErrorMap,
|
|
3149
|
-
getErrorMap(),
|
|
3150
|
-
errorMap
|
|
3151
|
-
].filter((x2) => !!x2),
|
|
3166
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x2) => !!x2),
|
|
3152
3167
|
issueData: {
|
|
3153
3168
|
code: ZodIssueCode.invalid_return_type,
|
|
3154
3169
|
returnTypeError: error
|
|
@@ -3265,10 +3280,6 @@ var init_lib = __esm(() => {
|
|
|
3265
3280
|
});
|
|
3266
3281
|
};
|
|
3267
3282
|
ZodEnum = class ZodEnum extends ZodType {
|
|
3268
|
-
constructor() {
|
|
3269
|
-
super(...arguments);
|
|
3270
|
-
_ZodEnum_cache.set(this, undefined);
|
|
3271
|
-
}
|
|
3272
3283
|
_parse(input) {
|
|
3273
3284
|
if (typeof input.data !== "string") {
|
|
3274
3285
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3280,10 +3291,10 @@ var init_lib = __esm(() => {
|
|
|
3280
3291
|
});
|
|
3281
3292
|
return INVALID;
|
|
3282
3293
|
}
|
|
3283
|
-
if (!
|
|
3284
|
-
|
|
3294
|
+
if (!this._cache) {
|
|
3295
|
+
this._cache = new Set(this._def.values);
|
|
3285
3296
|
}
|
|
3286
|
-
if (!
|
|
3297
|
+
if (!this._cache.has(input.data)) {
|
|
3287
3298
|
const ctx = this._getOrReturnCtx(input);
|
|
3288
3299
|
const expectedValues = this._def.values;
|
|
3289
3300
|
addIssueToContext(ctx, {
|
|
@@ -3332,13 +3343,8 @@ var init_lib = __esm(() => {
|
|
|
3332
3343
|
});
|
|
3333
3344
|
}
|
|
3334
3345
|
};
|
|
3335
|
-
_ZodEnum_cache = new WeakMap;
|
|
3336
3346
|
ZodEnum.create = createZodEnum;
|
|
3337
3347
|
ZodNativeEnum = class ZodNativeEnum extends ZodType {
|
|
3338
|
-
constructor() {
|
|
3339
|
-
super(...arguments);
|
|
3340
|
-
_ZodNativeEnum_cache.set(this, undefined);
|
|
3341
|
-
}
|
|
3342
3348
|
_parse(input) {
|
|
3343
3349
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3344
3350
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3351,10 +3357,10 @@ var init_lib = __esm(() => {
|
|
|
3351
3357
|
});
|
|
3352
3358
|
return INVALID;
|
|
3353
3359
|
}
|
|
3354
|
-
if (!
|
|
3355
|
-
|
|
3360
|
+
if (!this._cache) {
|
|
3361
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3356
3362
|
}
|
|
3357
|
-
if (!
|
|
3363
|
+
if (!this._cache.has(input.data)) {
|
|
3358
3364
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3359
3365
|
addIssueToContext(ctx, {
|
|
3360
3366
|
received: ctx.data,
|
|
@@ -3369,7 +3375,6 @@ var init_lib = __esm(() => {
|
|
|
3369
3375
|
return this._def.values;
|
|
3370
3376
|
}
|
|
3371
3377
|
};
|
|
3372
|
-
_ZodNativeEnum_cache = new WeakMap;
|
|
3373
3378
|
ZodNativeEnum.create = (values, params) => {
|
|
3374
3379
|
return new ZodNativeEnum({
|
|
3375
3380
|
values,
|
|
@@ -3510,7 +3515,7 @@ var init_lib = __esm(() => {
|
|
|
3510
3515
|
parent: ctx
|
|
3511
3516
|
});
|
|
3512
3517
|
if (!isValid(base))
|
|
3513
|
-
return
|
|
3518
|
+
return INVALID;
|
|
3514
3519
|
const result = effect.transform(base.value, checkCtx);
|
|
3515
3520
|
if (result instanceof Promise) {
|
|
3516
3521
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -3519,8 +3524,11 @@ var init_lib = __esm(() => {
|
|
|
3519
3524
|
} else {
|
|
3520
3525
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3521
3526
|
if (!isValid(base))
|
|
3522
|
-
return
|
|
3523
|
-
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3527
|
+
return INVALID;
|
|
3528
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3529
|
+
status: status.value,
|
|
3530
|
+
value: result
|
|
3531
|
+
}));
|
|
3524
3532
|
});
|
|
3525
3533
|
}
|
|
3526
3534
|
}
|
|
@@ -3858,122 +3866,137 @@ var init_lib = __esm(() => {
|
|
|
3858
3866
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
3859
3867
|
};
|
|
3860
3868
|
NEVER = INVALID;
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3869
|
+
});
|
|
3870
|
+
|
|
3871
|
+
// node_modules/zod/dist/esm/v3/external.js
|
|
3872
|
+
var exports_external = {};
|
|
3873
|
+
__export(exports_external, {
|
|
3874
|
+
void: () => voidType,
|
|
3875
|
+
util: () => util,
|
|
3876
|
+
unknown: () => unknownType,
|
|
3877
|
+
union: () => unionType,
|
|
3878
|
+
undefined: () => undefinedType,
|
|
3879
|
+
tuple: () => tupleType,
|
|
3880
|
+
transformer: () => effectsType,
|
|
3881
|
+
symbol: () => symbolType,
|
|
3882
|
+
string: () => stringType,
|
|
3883
|
+
strictObject: () => strictObjectType,
|
|
3884
|
+
setErrorMap: () => setErrorMap,
|
|
3885
|
+
set: () => setType,
|
|
3886
|
+
record: () => recordType,
|
|
3887
|
+
quotelessJson: () => quotelessJson,
|
|
3888
|
+
promise: () => promiseType,
|
|
3889
|
+
preprocess: () => preprocessType,
|
|
3890
|
+
pipeline: () => pipelineType,
|
|
3891
|
+
ostring: () => ostring,
|
|
3892
|
+
optional: () => optionalType,
|
|
3893
|
+
onumber: () => onumber,
|
|
3894
|
+
oboolean: () => oboolean,
|
|
3895
|
+
objectUtil: () => objectUtil,
|
|
3896
|
+
object: () => objectType,
|
|
3897
|
+
number: () => numberType,
|
|
3898
|
+
nullable: () => nullableType,
|
|
3899
|
+
null: () => nullType,
|
|
3900
|
+
never: () => neverType,
|
|
3901
|
+
nativeEnum: () => nativeEnumType,
|
|
3902
|
+
nan: () => nanType,
|
|
3903
|
+
map: () => mapType,
|
|
3904
|
+
makeIssue: () => makeIssue,
|
|
3905
|
+
literal: () => literalType,
|
|
3906
|
+
lazy: () => lazyType,
|
|
3907
|
+
late: () => late,
|
|
3908
|
+
isValid: () => isValid,
|
|
3909
|
+
isDirty: () => isDirty,
|
|
3910
|
+
isAsync: () => isAsync,
|
|
3911
|
+
isAborted: () => isAborted,
|
|
3912
|
+
intersection: () => intersectionType,
|
|
3913
|
+
instanceof: () => instanceOfType,
|
|
3914
|
+
getParsedType: () => getParsedType,
|
|
3915
|
+
getErrorMap: () => getErrorMap,
|
|
3916
|
+
function: () => functionType,
|
|
3917
|
+
enum: () => enumType,
|
|
3918
|
+
effect: () => effectsType,
|
|
3919
|
+
discriminatedUnion: () => discriminatedUnionType,
|
|
3920
|
+
defaultErrorMap: () => en_default,
|
|
3921
|
+
datetimeRegex: () => datetimeRegex,
|
|
3922
|
+
date: () => dateType,
|
|
3923
|
+
custom: () => custom,
|
|
3924
|
+
coerce: () => coerce,
|
|
3925
|
+
boolean: () => booleanType,
|
|
3926
|
+
bigint: () => bigIntType,
|
|
3927
|
+
array: () => arrayType,
|
|
3928
|
+
any: () => anyType,
|
|
3929
|
+
addIssueToContext: () => addIssueToContext,
|
|
3930
|
+
ZodVoid: () => ZodVoid,
|
|
3931
|
+
ZodUnknown: () => ZodUnknown,
|
|
3932
|
+
ZodUnion: () => ZodUnion,
|
|
3933
|
+
ZodUndefined: () => ZodUndefined,
|
|
3934
|
+
ZodType: () => ZodType,
|
|
3935
|
+
ZodTuple: () => ZodTuple,
|
|
3936
|
+
ZodTransformer: () => ZodEffects,
|
|
3937
|
+
ZodSymbol: () => ZodSymbol,
|
|
3938
|
+
ZodString: () => ZodString,
|
|
3939
|
+
ZodSet: () => ZodSet,
|
|
3940
|
+
ZodSchema: () => ZodType,
|
|
3941
|
+
ZodRecord: () => ZodRecord,
|
|
3942
|
+
ZodReadonly: () => ZodReadonly,
|
|
3943
|
+
ZodPromise: () => ZodPromise,
|
|
3944
|
+
ZodPipeline: () => ZodPipeline,
|
|
3945
|
+
ZodParsedType: () => ZodParsedType,
|
|
3946
|
+
ZodOptional: () => ZodOptional,
|
|
3947
|
+
ZodObject: () => ZodObject,
|
|
3948
|
+
ZodNumber: () => ZodNumber,
|
|
3949
|
+
ZodNullable: () => ZodNullable,
|
|
3950
|
+
ZodNull: () => ZodNull,
|
|
3951
|
+
ZodNever: () => ZodNever,
|
|
3952
|
+
ZodNativeEnum: () => ZodNativeEnum,
|
|
3953
|
+
ZodNaN: () => ZodNaN,
|
|
3954
|
+
ZodMap: () => ZodMap,
|
|
3955
|
+
ZodLiteral: () => ZodLiteral,
|
|
3956
|
+
ZodLazy: () => ZodLazy,
|
|
3957
|
+
ZodIssueCode: () => ZodIssueCode,
|
|
3958
|
+
ZodIntersection: () => ZodIntersection,
|
|
3959
|
+
ZodFunction: () => ZodFunction,
|
|
3960
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
3961
|
+
ZodError: () => ZodError,
|
|
3962
|
+
ZodEnum: () => ZodEnum,
|
|
3963
|
+
ZodEffects: () => ZodEffects,
|
|
3964
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
3965
|
+
ZodDefault: () => ZodDefault,
|
|
3966
|
+
ZodDate: () => ZodDate,
|
|
3967
|
+
ZodCatch: () => ZodCatch,
|
|
3968
|
+
ZodBranded: () => ZodBranded,
|
|
3969
|
+
ZodBoolean: () => ZodBoolean,
|
|
3970
|
+
ZodBigInt: () => ZodBigInt,
|
|
3971
|
+
ZodArray: () => ZodArray,
|
|
3972
|
+
ZodAny: () => ZodAny,
|
|
3973
|
+
Schema: () => ZodType,
|
|
3974
|
+
ParseStatus: () => ParseStatus,
|
|
3975
|
+
OK: () => OK,
|
|
3976
|
+
NEVER: () => NEVER,
|
|
3977
|
+
INVALID: () => INVALID,
|
|
3978
|
+
EMPTY_PATH: () => EMPTY_PATH,
|
|
3979
|
+
DIRTY: () => DIRTY,
|
|
3980
|
+
BRAND: () => BRAND
|
|
3981
|
+
});
|
|
3982
|
+
var init_external = __esm(() => {
|
|
3983
|
+
init_errors();
|
|
3984
|
+
init_parseUtil();
|
|
3985
|
+
init_typeAliases();
|
|
3986
|
+
init_util();
|
|
3987
|
+
init_types();
|
|
3988
|
+
init_ZodError();
|
|
3989
|
+
});
|
|
3990
|
+
|
|
3991
|
+
// node_modules/zod/dist/esm/v3/index.js
|
|
3992
|
+
var init_v3 = __esm(() => {
|
|
3993
|
+
init_external();
|
|
3994
|
+
init_external();
|
|
3995
|
+
});
|
|
3996
|
+
|
|
3997
|
+
// node_modules/zod/dist/esm/index.js
|
|
3998
|
+
var init_esm = __esm(() => {
|
|
3999
|
+
init_v3();
|
|
3977
4000
|
});
|
|
3978
4001
|
|
|
3979
4002
|
// src/mcp-server/console-logger.ts
|
|
@@ -4030,43 +4053,43 @@ var init_console_logger = __esm(() => {
|
|
|
4030
4053
|
|
|
4031
4054
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
4032
4055
|
var LATEST_PROTOCOL_VERSION = "2024-11-05", SUPPORTED_PROTOCOL_VERSIONS, JSONRPC_VERSION = "2.0", ProgressTokenSchema, CursorSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, EmbeddedResourceSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, ResourceReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError;
|
|
4033
|
-
var
|
|
4034
|
-
|
|
4056
|
+
var init_types2 = __esm(() => {
|
|
4057
|
+
init_esm();
|
|
4035
4058
|
SUPPORTED_PROTOCOL_VERSIONS = [
|
|
4036
4059
|
LATEST_PROTOCOL_VERSION,
|
|
4037
4060
|
"2024-10-07"
|
|
4038
4061
|
];
|
|
4039
|
-
ProgressTokenSchema =
|
|
4040
|
-
CursorSchema =
|
|
4041
|
-
BaseRequestParamsSchema =
|
|
4042
|
-
_meta:
|
|
4043
|
-
progressToken:
|
|
4062
|
+
ProgressTokenSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
4063
|
+
CursorSchema = exports_external.string();
|
|
4064
|
+
BaseRequestParamsSchema = exports_external.object({
|
|
4065
|
+
_meta: exports_external.optional(exports_external.object({
|
|
4066
|
+
progressToken: exports_external.optional(ProgressTokenSchema)
|
|
4044
4067
|
}).passthrough())
|
|
4045
4068
|
}).passthrough();
|
|
4046
|
-
RequestSchema =
|
|
4047
|
-
method:
|
|
4048
|
-
params:
|
|
4069
|
+
RequestSchema = exports_external.object({
|
|
4070
|
+
method: exports_external.string(),
|
|
4071
|
+
params: exports_external.optional(BaseRequestParamsSchema)
|
|
4049
4072
|
});
|
|
4050
|
-
BaseNotificationParamsSchema =
|
|
4051
|
-
_meta:
|
|
4073
|
+
BaseNotificationParamsSchema = exports_external.object({
|
|
4074
|
+
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
4052
4075
|
}).passthrough();
|
|
4053
|
-
NotificationSchema =
|
|
4054
|
-
method:
|
|
4055
|
-
params:
|
|
4076
|
+
NotificationSchema = exports_external.object({
|
|
4077
|
+
method: exports_external.string(),
|
|
4078
|
+
params: exports_external.optional(BaseNotificationParamsSchema)
|
|
4056
4079
|
});
|
|
4057
|
-
ResultSchema =
|
|
4058
|
-
_meta:
|
|
4080
|
+
ResultSchema = exports_external.object({
|
|
4081
|
+
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
4059
4082
|
}).passthrough();
|
|
4060
|
-
RequestIdSchema =
|
|
4061
|
-
JSONRPCRequestSchema =
|
|
4062
|
-
jsonrpc:
|
|
4083
|
+
RequestIdSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
4084
|
+
JSONRPCRequestSchema = exports_external.object({
|
|
4085
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4063
4086
|
id: RequestIdSchema
|
|
4064
4087
|
}).merge(RequestSchema).strict();
|
|
4065
|
-
JSONRPCNotificationSchema =
|
|
4066
|
-
jsonrpc:
|
|
4088
|
+
JSONRPCNotificationSchema = exports_external.object({
|
|
4089
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION)
|
|
4067
4090
|
}).merge(NotificationSchema).strict();
|
|
4068
|
-
JSONRPCResponseSchema =
|
|
4069
|
-
jsonrpc:
|
|
4091
|
+
JSONRPCResponseSchema = exports_external.object({
|
|
4092
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4070
4093
|
id: RequestIdSchema,
|
|
4071
4094
|
result: ResultSchema
|
|
4072
4095
|
}).strict();
|
|
@@ -4079,16 +4102,16 @@ var init_types = __esm(() => {
|
|
|
4079
4102
|
ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams";
|
|
4080
4103
|
ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
|
|
4081
4104
|
})(ErrorCode || (ErrorCode = {}));
|
|
4082
|
-
JSONRPCErrorSchema =
|
|
4083
|
-
jsonrpc:
|
|
4105
|
+
JSONRPCErrorSchema = exports_external.object({
|
|
4106
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4084
4107
|
id: RequestIdSchema,
|
|
4085
|
-
error:
|
|
4086
|
-
code:
|
|
4087
|
-
message:
|
|
4088
|
-
data:
|
|
4108
|
+
error: exports_external.object({
|
|
4109
|
+
code: exports_external.number().int(),
|
|
4110
|
+
message: exports_external.string(),
|
|
4111
|
+
data: exports_external.optional(exports_external.unknown())
|
|
4089
4112
|
})
|
|
4090
4113
|
}).strict();
|
|
4091
|
-
JSONRPCMessageSchema =
|
|
4114
|
+
JSONRPCMessageSchema = exports_external.union([
|
|
4092
4115
|
JSONRPCRequestSchema,
|
|
4093
4116
|
JSONRPCNotificationSchema,
|
|
4094
4117
|
JSONRPCResponseSchema,
|
|
@@ -4096,222 +4119,222 @@ var init_types = __esm(() => {
|
|
|
4096
4119
|
]);
|
|
4097
4120
|
EmptyResultSchema = ResultSchema.strict();
|
|
4098
4121
|
CancelledNotificationSchema = NotificationSchema.extend({
|
|
4099
|
-
method:
|
|
4122
|
+
method: exports_external.literal("notifications/cancelled"),
|
|
4100
4123
|
params: BaseNotificationParamsSchema.extend({
|
|
4101
4124
|
requestId: RequestIdSchema,
|
|
4102
|
-
reason:
|
|
4125
|
+
reason: exports_external.string().optional()
|
|
4103
4126
|
})
|
|
4104
4127
|
});
|
|
4105
|
-
ImplementationSchema =
|
|
4106
|
-
name:
|
|
4107
|
-
version:
|
|
4128
|
+
ImplementationSchema = exports_external.object({
|
|
4129
|
+
name: exports_external.string(),
|
|
4130
|
+
version: exports_external.string()
|
|
4108
4131
|
}).passthrough();
|
|
4109
|
-
ClientCapabilitiesSchema =
|
|
4110
|
-
experimental:
|
|
4111
|
-
sampling:
|
|
4112
|
-
roots:
|
|
4113
|
-
listChanged:
|
|
4132
|
+
ClientCapabilitiesSchema = exports_external.object({
|
|
4133
|
+
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4134
|
+
sampling: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4135
|
+
roots: exports_external.optional(exports_external.object({
|
|
4136
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4114
4137
|
}).passthrough())
|
|
4115
4138
|
}).passthrough();
|
|
4116
4139
|
InitializeRequestSchema = RequestSchema.extend({
|
|
4117
|
-
method:
|
|
4140
|
+
method: exports_external.literal("initialize"),
|
|
4118
4141
|
params: BaseRequestParamsSchema.extend({
|
|
4119
|
-
protocolVersion:
|
|
4142
|
+
protocolVersion: exports_external.string(),
|
|
4120
4143
|
capabilities: ClientCapabilitiesSchema,
|
|
4121
4144
|
clientInfo: ImplementationSchema
|
|
4122
4145
|
})
|
|
4123
4146
|
});
|
|
4124
|
-
ServerCapabilitiesSchema =
|
|
4125
|
-
experimental:
|
|
4126
|
-
logging:
|
|
4127
|
-
prompts:
|
|
4128
|
-
listChanged:
|
|
4147
|
+
ServerCapabilitiesSchema = exports_external.object({
|
|
4148
|
+
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4149
|
+
logging: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4150
|
+
prompts: exports_external.optional(exports_external.object({
|
|
4151
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4129
4152
|
}).passthrough()),
|
|
4130
|
-
resources:
|
|
4131
|
-
subscribe:
|
|
4132
|
-
listChanged:
|
|
4153
|
+
resources: exports_external.optional(exports_external.object({
|
|
4154
|
+
subscribe: exports_external.optional(exports_external.boolean()),
|
|
4155
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4133
4156
|
}).passthrough()),
|
|
4134
|
-
tools:
|
|
4135
|
-
listChanged:
|
|
4157
|
+
tools: exports_external.optional(exports_external.object({
|
|
4158
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4136
4159
|
}).passthrough())
|
|
4137
4160
|
}).passthrough();
|
|
4138
4161
|
InitializeResultSchema = ResultSchema.extend({
|
|
4139
|
-
protocolVersion:
|
|
4162
|
+
protocolVersion: exports_external.string(),
|
|
4140
4163
|
capabilities: ServerCapabilitiesSchema,
|
|
4141
4164
|
serverInfo: ImplementationSchema,
|
|
4142
|
-
instructions:
|
|
4165
|
+
instructions: exports_external.optional(exports_external.string())
|
|
4143
4166
|
});
|
|
4144
4167
|
InitializedNotificationSchema = NotificationSchema.extend({
|
|
4145
|
-
method:
|
|
4168
|
+
method: exports_external.literal("notifications/initialized")
|
|
4146
4169
|
});
|
|
4147
4170
|
PingRequestSchema = RequestSchema.extend({
|
|
4148
|
-
method:
|
|
4171
|
+
method: exports_external.literal("ping")
|
|
4149
4172
|
});
|
|
4150
|
-
ProgressSchema =
|
|
4151
|
-
progress:
|
|
4152
|
-
total:
|
|
4173
|
+
ProgressSchema = exports_external.object({
|
|
4174
|
+
progress: exports_external.number(),
|
|
4175
|
+
total: exports_external.optional(exports_external.number())
|
|
4153
4176
|
}).passthrough();
|
|
4154
4177
|
ProgressNotificationSchema = NotificationSchema.extend({
|
|
4155
|
-
method:
|
|
4178
|
+
method: exports_external.literal("notifications/progress"),
|
|
4156
4179
|
params: BaseNotificationParamsSchema.merge(ProgressSchema).extend({
|
|
4157
4180
|
progressToken: ProgressTokenSchema
|
|
4158
4181
|
})
|
|
4159
4182
|
});
|
|
4160
4183
|
PaginatedRequestSchema = RequestSchema.extend({
|
|
4161
4184
|
params: BaseRequestParamsSchema.extend({
|
|
4162
|
-
cursor:
|
|
4185
|
+
cursor: exports_external.optional(CursorSchema)
|
|
4163
4186
|
}).optional()
|
|
4164
4187
|
});
|
|
4165
4188
|
PaginatedResultSchema = ResultSchema.extend({
|
|
4166
|
-
nextCursor:
|
|
4189
|
+
nextCursor: exports_external.optional(CursorSchema)
|
|
4167
4190
|
});
|
|
4168
|
-
ResourceContentsSchema =
|
|
4169
|
-
uri:
|
|
4170
|
-
mimeType:
|
|
4191
|
+
ResourceContentsSchema = exports_external.object({
|
|
4192
|
+
uri: exports_external.string(),
|
|
4193
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4171
4194
|
}).passthrough();
|
|
4172
4195
|
TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
4173
|
-
text:
|
|
4196
|
+
text: exports_external.string()
|
|
4174
4197
|
});
|
|
4175
4198
|
BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
4176
|
-
blob:
|
|
4199
|
+
blob: exports_external.string().base64()
|
|
4177
4200
|
});
|
|
4178
|
-
ResourceSchema =
|
|
4179
|
-
uri:
|
|
4180
|
-
name:
|
|
4181
|
-
description:
|
|
4182
|
-
mimeType:
|
|
4201
|
+
ResourceSchema = exports_external.object({
|
|
4202
|
+
uri: exports_external.string(),
|
|
4203
|
+
name: exports_external.string(),
|
|
4204
|
+
description: exports_external.optional(exports_external.string()),
|
|
4205
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4183
4206
|
}).passthrough();
|
|
4184
|
-
ResourceTemplateSchema =
|
|
4185
|
-
uriTemplate:
|
|
4186
|
-
name:
|
|
4187
|
-
description:
|
|
4188
|
-
mimeType:
|
|
4207
|
+
ResourceTemplateSchema = exports_external.object({
|
|
4208
|
+
uriTemplate: exports_external.string(),
|
|
4209
|
+
name: exports_external.string(),
|
|
4210
|
+
description: exports_external.optional(exports_external.string()),
|
|
4211
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4189
4212
|
}).passthrough();
|
|
4190
4213
|
ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
4191
|
-
method:
|
|
4214
|
+
method: exports_external.literal("resources/list")
|
|
4192
4215
|
});
|
|
4193
4216
|
ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
4194
|
-
resources:
|
|
4217
|
+
resources: exports_external.array(ResourceSchema)
|
|
4195
4218
|
});
|
|
4196
4219
|
ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
4197
|
-
method:
|
|
4220
|
+
method: exports_external.literal("resources/templates/list")
|
|
4198
4221
|
});
|
|
4199
4222
|
ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
4200
|
-
resourceTemplates:
|
|
4223
|
+
resourceTemplates: exports_external.array(ResourceTemplateSchema)
|
|
4201
4224
|
});
|
|
4202
4225
|
ReadResourceRequestSchema = RequestSchema.extend({
|
|
4203
|
-
method:
|
|
4226
|
+
method: exports_external.literal("resources/read"),
|
|
4204
4227
|
params: BaseRequestParamsSchema.extend({
|
|
4205
|
-
uri:
|
|
4228
|
+
uri: exports_external.string()
|
|
4206
4229
|
})
|
|
4207
4230
|
});
|
|
4208
4231
|
ReadResourceResultSchema = ResultSchema.extend({
|
|
4209
|
-
contents:
|
|
4232
|
+
contents: exports_external.array(exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
4210
4233
|
});
|
|
4211
4234
|
ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
4212
|
-
method:
|
|
4235
|
+
method: exports_external.literal("notifications/resources/list_changed")
|
|
4213
4236
|
});
|
|
4214
4237
|
SubscribeRequestSchema = RequestSchema.extend({
|
|
4215
|
-
method:
|
|
4238
|
+
method: exports_external.literal("resources/subscribe"),
|
|
4216
4239
|
params: BaseRequestParamsSchema.extend({
|
|
4217
|
-
uri:
|
|
4240
|
+
uri: exports_external.string()
|
|
4218
4241
|
})
|
|
4219
4242
|
});
|
|
4220
4243
|
UnsubscribeRequestSchema = RequestSchema.extend({
|
|
4221
|
-
method:
|
|
4244
|
+
method: exports_external.literal("resources/unsubscribe"),
|
|
4222
4245
|
params: BaseRequestParamsSchema.extend({
|
|
4223
|
-
uri:
|
|
4246
|
+
uri: exports_external.string()
|
|
4224
4247
|
})
|
|
4225
4248
|
});
|
|
4226
4249
|
ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
4227
|
-
method:
|
|
4250
|
+
method: exports_external.literal("notifications/resources/updated"),
|
|
4228
4251
|
params: BaseNotificationParamsSchema.extend({
|
|
4229
|
-
uri:
|
|
4252
|
+
uri: exports_external.string()
|
|
4230
4253
|
})
|
|
4231
4254
|
});
|
|
4232
|
-
PromptArgumentSchema =
|
|
4233
|
-
name:
|
|
4234
|
-
description:
|
|
4235
|
-
required:
|
|
4255
|
+
PromptArgumentSchema = exports_external.object({
|
|
4256
|
+
name: exports_external.string(),
|
|
4257
|
+
description: exports_external.optional(exports_external.string()),
|
|
4258
|
+
required: exports_external.optional(exports_external.boolean())
|
|
4236
4259
|
}).passthrough();
|
|
4237
|
-
PromptSchema =
|
|
4238
|
-
name:
|
|
4239
|
-
description:
|
|
4240
|
-
arguments:
|
|
4260
|
+
PromptSchema = exports_external.object({
|
|
4261
|
+
name: exports_external.string(),
|
|
4262
|
+
description: exports_external.optional(exports_external.string()),
|
|
4263
|
+
arguments: exports_external.optional(exports_external.array(PromptArgumentSchema))
|
|
4241
4264
|
}).passthrough();
|
|
4242
4265
|
ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
4243
|
-
method:
|
|
4266
|
+
method: exports_external.literal("prompts/list")
|
|
4244
4267
|
});
|
|
4245
4268
|
ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
4246
|
-
prompts:
|
|
4269
|
+
prompts: exports_external.array(PromptSchema)
|
|
4247
4270
|
});
|
|
4248
4271
|
GetPromptRequestSchema = RequestSchema.extend({
|
|
4249
|
-
method:
|
|
4272
|
+
method: exports_external.literal("prompts/get"),
|
|
4250
4273
|
params: BaseRequestParamsSchema.extend({
|
|
4251
|
-
name:
|
|
4252
|
-
arguments:
|
|
4274
|
+
name: exports_external.string(),
|
|
4275
|
+
arguments: exports_external.optional(exports_external.record(exports_external.string()))
|
|
4253
4276
|
})
|
|
4254
4277
|
});
|
|
4255
|
-
TextContentSchema =
|
|
4256
|
-
type:
|
|
4257
|
-
text:
|
|
4278
|
+
TextContentSchema = exports_external.object({
|
|
4279
|
+
type: exports_external.literal("text"),
|
|
4280
|
+
text: exports_external.string()
|
|
4258
4281
|
}).passthrough();
|
|
4259
|
-
ImageContentSchema =
|
|
4260
|
-
type:
|
|
4261
|
-
data:
|
|
4262
|
-
mimeType:
|
|
4282
|
+
ImageContentSchema = exports_external.object({
|
|
4283
|
+
type: exports_external.literal("image"),
|
|
4284
|
+
data: exports_external.string().base64(),
|
|
4285
|
+
mimeType: exports_external.string()
|
|
4263
4286
|
}).passthrough();
|
|
4264
|
-
EmbeddedResourceSchema =
|
|
4265
|
-
type:
|
|
4266
|
-
resource:
|
|
4287
|
+
EmbeddedResourceSchema = exports_external.object({
|
|
4288
|
+
type: exports_external.literal("resource"),
|
|
4289
|
+
resource: exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema])
|
|
4267
4290
|
}).passthrough();
|
|
4268
|
-
PromptMessageSchema =
|
|
4269
|
-
role:
|
|
4270
|
-
content:
|
|
4291
|
+
PromptMessageSchema = exports_external.object({
|
|
4292
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4293
|
+
content: exports_external.union([
|
|
4271
4294
|
TextContentSchema,
|
|
4272
4295
|
ImageContentSchema,
|
|
4273
4296
|
EmbeddedResourceSchema
|
|
4274
4297
|
])
|
|
4275
4298
|
}).passthrough();
|
|
4276
4299
|
GetPromptResultSchema = ResultSchema.extend({
|
|
4277
|
-
description:
|
|
4278
|
-
messages:
|
|
4300
|
+
description: exports_external.optional(exports_external.string()),
|
|
4301
|
+
messages: exports_external.array(PromptMessageSchema)
|
|
4279
4302
|
});
|
|
4280
4303
|
PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
4281
|
-
method:
|
|
4282
|
-
});
|
|
4283
|
-
ToolSchema =
|
|
4284
|
-
name:
|
|
4285
|
-
description:
|
|
4286
|
-
inputSchema:
|
|
4287
|
-
type:
|
|
4288
|
-
properties:
|
|
4304
|
+
method: exports_external.literal("notifications/prompts/list_changed")
|
|
4305
|
+
});
|
|
4306
|
+
ToolSchema = exports_external.object({
|
|
4307
|
+
name: exports_external.string(),
|
|
4308
|
+
description: exports_external.optional(exports_external.string()),
|
|
4309
|
+
inputSchema: exports_external.object({
|
|
4310
|
+
type: exports_external.literal("object"),
|
|
4311
|
+
properties: exports_external.optional(exports_external.object({}).passthrough())
|
|
4289
4312
|
}).passthrough()
|
|
4290
4313
|
}).passthrough();
|
|
4291
4314
|
ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
4292
|
-
method:
|
|
4315
|
+
method: exports_external.literal("tools/list")
|
|
4293
4316
|
});
|
|
4294
4317
|
ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
4295
|
-
tools:
|
|
4318
|
+
tools: exports_external.array(ToolSchema)
|
|
4296
4319
|
});
|
|
4297
4320
|
CallToolResultSchema = ResultSchema.extend({
|
|
4298
|
-
content:
|
|
4299
|
-
isError:
|
|
4321
|
+
content: exports_external.array(exports_external.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema])),
|
|
4322
|
+
isError: exports_external.boolean().default(false).optional()
|
|
4300
4323
|
});
|
|
4301
4324
|
CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
4302
|
-
toolResult:
|
|
4325
|
+
toolResult: exports_external.unknown()
|
|
4303
4326
|
}));
|
|
4304
4327
|
CallToolRequestSchema = RequestSchema.extend({
|
|
4305
|
-
method:
|
|
4328
|
+
method: exports_external.literal("tools/call"),
|
|
4306
4329
|
params: BaseRequestParamsSchema.extend({
|
|
4307
|
-
name:
|
|
4308
|
-
arguments:
|
|
4330
|
+
name: exports_external.string(),
|
|
4331
|
+
arguments: exports_external.optional(exports_external.record(exports_external.unknown()))
|
|
4309
4332
|
})
|
|
4310
4333
|
});
|
|
4311
4334
|
ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
4312
|
-
method:
|
|
4335
|
+
method: exports_external.literal("notifications/tools/list_changed")
|
|
4313
4336
|
});
|
|
4314
|
-
LoggingLevelSchema =
|
|
4337
|
+
LoggingLevelSchema = exports_external.enum([
|
|
4315
4338
|
"debug",
|
|
4316
4339
|
"info",
|
|
4317
4340
|
"notice",
|
|
@@ -4322,93 +4345,93 @@ var init_types = __esm(() => {
|
|
|
4322
4345
|
"emergency"
|
|
4323
4346
|
]);
|
|
4324
4347
|
SetLevelRequestSchema = RequestSchema.extend({
|
|
4325
|
-
method:
|
|
4348
|
+
method: exports_external.literal("logging/setLevel"),
|
|
4326
4349
|
params: BaseRequestParamsSchema.extend({
|
|
4327
4350
|
level: LoggingLevelSchema
|
|
4328
4351
|
})
|
|
4329
4352
|
});
|
|
4330
4353
|
LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
4331
|
-
method:
|
|
4354
|
+
method: exports_external.literal("notifications/message"),
|
|
4332
4355
|
params: BaseNotificationParamsSchema.extend({
|
|
4333
4356
|
level: LoggingLevelSchema,
|
|
4334
|
-
logger:
|
|
4335
|
-
data:
|
|
4357
|
+
logger: exports_external.optional(exports_external.string()),
|
|
4358
|
+
data: exports_external.unknown()
|
|
4336
4359
|
})
|
|
4337
4360
|
});
|
|
4338
|
-
ModelHintSchema =
|
|
4339
|
-
name:
|
|
4361
|
+
ModelHintSchema = exports_external.object({
|
|
4362
|
+
name: exports_external.string().optional()
|
|
4340
4363
|
}).passthrough();
|
|
4341
|
-
ModelPreferencesSchema =
|
|
4342
|
-
hints:
|
|
4343
|
-
costPriority:
|
|
4344
|
-
speedPriority:
|
|
4345
|
-
intelligencePriority:
|
|
4364
|
+
ModelPreferencesSchema = exports_external.object({
|
|
4365
|
+
hints: exports_external.optional(exports_external.array(ModelHintSchema)),
|
|
4366
|
+
costPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
4367
|
+
speedPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
4368
|
+
intelligencePriority: exports_external.optional(exports_external.number().min(0).max(1))
|
|
4346
4369
|
}).passthrough();
|
|
4347
|
-
SamplingMessageSchema =
|
|
4348
|
-
role:
|
|
4349
|
-
content:
|
|
4370
|
+
SamplingMessageSchema = exports_external.object({
|
|
4371
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4372
|
+
content: exports_external.union([TextContentSchema, ImageContentSchema])
|
|
4350
4373
|
}).passthrough();
|
|
4351
4374
|
CreateMessageRequestSchema = RequestSchema.extend({
|
|
4352
|
-
method:
|
|
4375
|
+
method: exports_external.literal("sampling/createMessage"),
|
|
4353
4376
|
params: BaseRequestParamsSchema.extend({
|
|
4354
|
-
messages:
|
|
4355
|
-
systemPrompt:
|
|
4356
|
-
includeContext:
|
|
4357
|
-
temperature:
|
|
4358
|
-
maxTokens:
|
|
4359
|
-
stopSequences:
|
|
4360
|
-
metadata:
|
|
4361
|
-
modelPreferences:
|
|
4377
|
+
messages: exports_external.array(SamplingMessageSchema),
|
|
4378
|
+
systemPrompt: exports_external.optional(exports_external.string()),
|
|
4379
|
+
includeContext: exports_external.optional(exports_external.enum(["none", "thisServer", "allServers"])),
|
|
4380
|
+
temperature: exports_external.optional(exports_external.number()),
|
|
4381
|
+
maxTokens: exports_external.number().int(),
|
|
4382
|
+
stopSequences: exports_external.optional(exports_external.array(exports_external.string())),
|
|
4383
|
+
metadata: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4384
|
+
modelPreferences: exports_external.optional(ModelPreferencesSchema)
|
|
4362
4385
|
})
|
|
4363
4386
|
});
|
|
4364
4387
|
CreateMessageResultSchema = ResultSchema.extend({
|
|
4365
|
-
model:
|
|
4366
|
-
stopReason:
|
|
4367
|
-
role:
|
|
4368
|
-
content:
|
|
4388
|
+
model: exports_external.string(),
|
|
4389
|
+
stopReason: exports_external.optional(exports_external.enum(["endTurn", "stopSequence", "maxTokens"]).or(exports_external.string())),
|
|
4390
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4391
|
+
content: exports_external.discriminatedUnion("type", [
|
|
4369
4392
|
TextContentSchema,
|
|
4370
4393
|
ImageContentSchema
|
|
4371
4394
|
])
|
|
4372
4395
|
});
|
|
4373
|
-
ResourceReferenceSchema =
|
|
4374
|
-
type:
|
|
4375
|
-
uri:
|
|
4396
|
+
ResourceReferenceSchema = exports_external.object({
|
|
4397
|
+
type: exports_external.literal("ref/resource"),
|
|
4398
|
+
uri: exports_external.string()
|
|
4376
4399
|
}).passthrough();
|
|
4377
|
-
PromptReferenceSchema =
|
|
4378
|
-
type:
|
|
4379
|
-
name:
|
|
4400
|
+
PromptReferenceSchema = exports_external.object({
|
|
4401
|
+
type: exports_external.literal("ref/prompt"),
|
|
4402
|
+
name: exports_external.string()
|
|
4380
4403
|
}).passthrough();
|
|
4381
4404
|
CompleteRequestSchema = RequestSchema.extend({
|
|
4382
|
-
method:
|
|
4405
|
+
method: exports_external.literal("completion/complete"),
|
|
4383
4406
|
params: BaseRequestParamsSchema.extend({
|
|
4384
|
-
ref:
|
|
4385
|
-
argument:
|
|
4386
|
-
name:
|
|
4387
|
-
value:
|
|
4407
|
+
ref: exports_external.union([PromptReferenceSchema, ResourceReferenceSchema]),
|
|
4408
|
+
argument: exports_external.object({
|
|
4409
|
+
name: exports_external.string(),
|
|
4410
|
+
value: exports_external.string()
|
|
4388
4411
|
}).passthrough()
|
|
4389
4412
|
})
|
|
4390
4413
|
});
|
|
4391
4414
|
CompleteResultSchema = ResultSchema.extend({
|
|
4392
|
-
completion:
|
|
4393
|
-
values:
|
|
4394
|
-
total:
|
|
4395
|
-
hasMore:
|
|
4415
|
+
completion: exports_external.object({
|
|
4416
|
+
values: exports_external.array(exports_external.string()).max(100),
|
|
4417
|
+
total: exports_external.optional(exports_external.number().int()),
|
|
4418
|
+
hasMore: exports_external.optional(exports_external.boolean())
|
|
4396
4419
|
}).passthrough()
|
|
4397
4420
|
});
|
|
4398
|
-
RootSchema =
|
|
4399
|
-
uri:
|
|
4400
|
-
name:
|
|
4421
|
+
RootSchema = exports_external.object({
|
|
4422
|
+
uri: exports_external.string().startsWith("file://"),
|
|
4423
|
+
name: exports_external.optional(exports_external.string())
|
|
4401
4424
|
}).passthrough();
|
|
4402
4425
|
ListRootsRequestSchema = RequestSchema.extend({
|
|
4403
|
-
method:
|
|
4426
|
+
method: exports_external.literal("roots/list")
|
|
4404
4427
|
});
|
|
4405
4428
|
ListRootsResultSchema = ResultSchema.extend({
|
|
4406
|
-
roots:
|
|
4429
|
+
roots: exports_external.array(RootSchema)
|
|
4407
4430
|
});
|
|
4408
4431
|
RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
4409
|
-
method:
|
|
4432
|
+
method: exports_external.literal("notifications/roots/list_changed")
|
|
4410
4433
|
});
|
|
4411
|
-
ClientRequestSchema =
|
|
4434
|
+
ClientRequestSchema = exports_external.union([
|
|
4412
4435
|
PingRequestSchema,
|
|
4413
4436
|
InitializeRequestSchema,
|
|
4414
4437
|
CompleteRequestSchema,
|
|
@@ -4423,23 +4446,23 @@ var init_types = __esm(() => {
|
|
|
4423
4446
|
CallToolRequestSchema,
|
|
4424
4447
|
ListToolsRequestSchema
|
|
4425
4448
|
]);
|
|
4426
|
-
ClientNotificationSchema =
|
|
4449
|
+
ClientNotificationSchema = exports_external.union([
|
|
4427
4450
|
CancelledNotificationSchema,
|
|
4428
4451
|
ProgressNotificationSchema,
|
|
4429
4452
|
InitializedNotificationSchema,
|
|
4430
4453
|
RootsListChangedNotificationSchema
|
|
4431
4454
|
]);
|
|
4432
|
-
ClientResultSchema =
|
|
4455
|
+
ClientResultSchema = exports_external.union([
|
|
4433
4456
|
EmptyResultSchema,
|
|
4434
4457
|
CreateMessageResultSchema,
|
|
4435
4458
|
ListRootsResultSchema
|
|
4436
4459
|
]);
|
|
4437
|
-
ServerRequestSchema =
|
|
4460
|
+
ServerRequestSchema = exports_external.union([
|
|
4438
4461
|
PingRequestSchema,
|
|
4439
4462
|
CreateMessageRequestSchema,
|
|
4440
4463
|
ListRootsRequestSchema
|
|
4441
4464
|
]);
|
|
4442
|
-
ServerNotificationSchema =
|
|
4465
|
+
ServerNotificationSchema = exports_external.union([
|
|
4443
4466
|
CancelledNotificationSchema,
|
|
4444
4467
|
ProgressNotificationSchema,
|
|
4445
4468
|
LoggingMessageNotificationSchema,
|
|
@@ -4448,7 +4471,7 @@ var init_types = __esm(() => {
|
|
|
4448
4471
|
ToolListChangedNotificationSchema,
|
|
4449
4472
|
PromptListChangedNotificationSchema
|
|
4450
4473
|
]);
|
|
4451
|
-
ServerResultSchema =
|
|
4474
|
+
ServerResultSchema = exports_external.union([
|
|
4452
4475
|
EmptyResultSchema,
|
|
4453
4476
|
InitializeResultSchema,
|
|
4454
4477
|
CompleteResultSchema,
|
|
@@ -5064,14 +5087,14 @@ var require_inherits_browser = __commonJS((exports, module) => {
|
|
|
5064
5087
|
// node_modules/inherits/inherits.js
|
|
5065
5088
|
var require_inherits = __commonJS((exports, module) => {
|
|
5066
5089
|
try {
|
|
5067
|
-
|
|
5068
|
-
if (typeof
|
|
5090
|
+
util3 = __require("util");
|
|
5091
|
+
if (typeof util3.inherits !== "function")
|
|
5069
5092
|
throw "";
|
|
5070
|
-
module.exports =
|
|
5093
|
+
module.exports = util3.inherits;
|
|
5071
5094
|
} catch (e) {
|
|
5072
5095
|
module.exports = require_inherits_browser();
|
|
5073
5096
|
}
|
|
5074
|
-
var
|
|
5097
|
+
var util3;
|
|
5075
5098
|
});
|
|
5076
5099
|
|
|
5077
5100
|
// node_modules/toidentifier/index.js
|
|
@@ -9221,7 +9244,7 @@ data: ${JSON.stringify(message)}
|
|
|
9221
9244
|
}
|
|
9222
9245
|
var import_raw_body, import_content_type, MAXIMUM_MESSAGE_SIZE = "4mb";
|
|
9223
9246
|
var init_sse = __esm(() => {
|
|
9224
|
-
|
|
9247
|
+
init_types2();
|
|
9225
9248
|
import_raw_body = __toESM(require_raw_body(), 1);
|
|
9226
9249
|
import_content_type = __toESM(require_content_type(), 1);
|
|
9227
9250
|
});
|
|
@@ -9256,7 +9279,7 @@ function serializeMessage(message) {
|
|
|
9256
9279
|
`;
|
|
9257
9280
|
}
|
|
9258
9281
|
var init_stdio = __esm(() => {
|
|
9259
|
-
|
|
9282
|
+
init_types2();
|
|
9260
9283
|
});
|
|
9261
9284
|
|
|
9262
9285
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
@@ -9613,7 +9636,7 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
9613
9636
|
// node_modules/body-parser/node_modules/debug/src/node.js
|
|
9614
9637
|
var require_node = __commonJS((exports, module) => {
|
|
9615
9638
|
var tty = __require("tty");
|
|
9616
|
-
var
|
|
9639
|
+
var util3 = __require("util");
|
|
9617
9640
|
exports = module.exports = require_debug();
|
|
9618
9641
|
exports.init = init;
|
|
9619
9642
|
exports.log = log2;
|
|
@@ -9642,7 +9665,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9642
9665
|
}, {});
|
|
9643
9666
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
9644
9667
|
if (fd !== 1 && fd !== 2) {
|
|
9645
|
-
|
|
9668
|
+
util3.deprecate(function() {
|
|
9646
9669
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
9647
9670
|
}
|
|
9648
9671
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -9651,14 +9674,14 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9651
9674
|
}
|
|
9652
9675
|
exports.formatters.o = function(v2) {
|
|
9653
9676
|
this.inspectOpts.colors = this.useColors;
|
|
9654
|
-
return
|
|
9677
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
9655
9678
|
`).map(function(str) {
|
|
9656
9679
|
return str.trim();
|
|
9657
9680
|
}).join(" ");
|
|
9658
9681
|
};
|
|
9659
9682
|
exports.formatters.O = function(v2) {
|
|
9660
9683
|
this.inspectOpts.colors = this.useColors;
|
|
9661
|
-
return
|
|
9684
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
9662
9685
|
};
|
|
9663
9686
|
function formatArgs(args) {
|
|
9664
9687
|
var name = this.namespace;
|
|
@@ -9675,7 +9698,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9675
9698
|
}
|
|
9676
9699
|
}
|
|
9677
9700
|
function log2() {
|
|
9678
|
-
return stream.write(
|
|
9701
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
9679
9702
|
`);
|
|
9680
9703
|
}
|
|
9681
9704
|
function save(namespaces) {
|
|
@@ -22317,7 +22340,7 @@ var require_mime_types = __commonJS((exports) => {
|
|
|
22317
22340
|
}
|
|
22318
22341
|
return exports.types[extension2] || false;
|
|
22319
22342
|
}
|
|
22320
|
-
function populateMaps(extensions,
|
|
22343
|
+
function populateMaps(extensions, types2) {
|
|
22321
22344
|
var preference = ["nginx", "apache", undefined, "iana"];
|
|
22322
22345
|
Object.keys(db).forEach(function forEachMimeType(type) {
|
|
22323
22346
|
var mime = db[type];
|
|
@@ -22328,14 +22351,14 @@ var require_mime_types = __commonJS((exports) => {
|
|
|
22328
22351
|
extensions[type] = exts;
|
|
22329
22352
|
for (var i = 0;i < exts.length; i++) {
|
|
22330
22353
|
var extension2 = exts[i];
|
|
22331
|
-
if (
|
|
22332
|
-
var from = preference.indexOf(db[
|
|
22354
|
+
if (types2[extension2]) {
|
|
22355
|
+
var from = preference.indexOf(db[types2[extension2]].source);
|
|
22333
22356
|
var to = preference.indexOf(mime.source);
|
|
22334
|
-
if (
|
|
22357
|
+
if (types2[extension2] !== "application/octet-stream" && (from > to || from === to && types2[extension2].substr(0, 12) === "application/")) {
|
|
22335
22358
|
continue;
|
|
22336
22359
|
}
|
|
22337
22360
|
}
|
|
22338
|
-
|
|
22361
|
+
types2[extension2] = type;
|
|
22339
22362
|
}
|
|
22340
22363
|
});
|
|
22341
22364
|
}
|
|
@@ -22358,23 +22381,23 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
22358
22381
|
module.exports.match = mimeMatch;
|
|
22359
22382
|
function typeis(value, types_) {
|
|
22360
22383
|
var i;
|
|
22361
|
-
var
|
|
22384
|
+
var types2 = types_;
|
|
22362
22385
|
var val = tryNormalizeType(value);
|
|
22363
22386
|
if (!val) {
|
|
22364
22387
|
return false;
|
|
22365
22388
|
}
|
|
22366
|
-
if (
|
|
22367
|
-
|
|
22368
|
-
for (i = 0;i <
|
|
22369
|
-
|
|
22389
|
+
if (types2 && !Array.isArray(types2)) {
|
|
22390
|
+
types2 = new Array(arguments.length - 1);
|
|
22391
|
+
for (i = 0;i < types2.length; i++) {
|
|
22392
|
+
types2[i] = arguments[i + 1];
|
|
22370
22393
|
}
|
|
22371
22394
|
}
|
|
22372
|
-
if (!
|
|
22395
|
+
if (!types2 || !types2.length) {
|
|
22373
22396
|
return val;
|
|
22374
22397
|
}
|
|
22375
22398
|
var type;
|
|
22376
|
-
for (i = 0;i <
|
|
22377
|
-
if (mimeMatch(normalize(type =
|
|
22399
|
+
for (i = 0;i < types2.length; i++) {
|
|
22400
|
+
if (mimeMatch(normalize(type = types2[i]), val)) {
|
|
22378
22401
|
return type[0] === "+" || type.indexOf("*") !== -1 ? val : type;
|
|
22379
22402
|
}
|
|
22380
22403
|
}
|
|
@@ -22384,18 +22407,18 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
22384
22407
|
return req.headers["transfer-encoding"] !== undefined || !isNaN(req.headers["content-length"]);
|
|
22385
22408
|
}
|
|
22386
22409
|
function typeofrequest(req, types_) {
|
|
22387
|
-
var
|
|
22410
|
+
var types2 = types_;
|
|
22388
22411
|
if (!hasbody(req)) {
|
|
22389
22412
|
return null;
|
|
22390
22413
|
}
|
|
22391
22414
|
if (arguments.length > 2) {
|
|
22392
|
-
|
|
22393
|
-
for (var i = 0;i <
|
|
22394
|
-
|
|
22415
|
+
types2 = new Array(arguments.length - 1);
|
|
22416
|
+
for (var i = 0;i < types2.length; i++) {
|
|
22417
|
+
types2[i] = arguments[i + 1];
|
|
22395
22418
|
}
|
|
22396
22419
|
}
|
|
22397
22420
|
var value = req.headers["content-type"];
|
|
22398
|
-
return typeis(value,
|
|
22421
|
+
return typeis(value, types2);
|
|
22399
22422
|
}
|
|
22400
22423
|
function normalize(type) {
|
|
22401
22424
|
if (typeof type !== "string") {
|
|
@@ -25452,7 +25475,7 @@ var require_browser2 = __commonJS((exports, module) => {
|
|
|
25452
25475
|
// node_modules/finalhandler/node_modules/debug/src/node.js
|
|
25453
25476
|
var require_node2 = __commonJS((exports, module) => {
|
|
25454
25477
|
var tty = __require("tty");
|
|
25455
|
-
var
|
|
25478
|
+
var util3 = __require("util");
|
|
25456
25479
|
exports = module.exports = require_debug2();
|
|
25457
25480
|
exports.init = init;
|
|
25458
25481
|
exports.log = log2;
|
|
@@ -25481,7 +25504,7 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25481
25504
|
}, {});
|
|
25482
25505
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
25483
25506
|
if (fd !== 1 && fd !== 2) {
|
|
25484
|
-
|
|
25507
|
+
util3.deprecate(function() {
|
|
25485
25508
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
25486
25509
|
}
|
|
25487
25510
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -25490,14 +25513,14 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25490
25513
|
}
|
|
25491
25514
|
exports.formatters.o = function(v2) {
|
|
25492
25515
|
this.inspectOpts.colors = this.useColors;
|
|
25493
|
-
return
|
|
25516
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
25494
25517
|
`).map(function(str) {
|
|
25495
25518
|
return str.trim();
|
|
25496
25519
|
}).join(" ");
|
|
25497
25520
|
};
|
|
25498
25521
|
exports.formatters.O = function(v2) {
|
|
25499
25522
|
this.inspectOpts.colors = this.useColors;
|
|
25500
|
-
return
|
|
25523
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
25501
25524
|
};
|
|
25502
25525
|
function formatArgs(args) {
|
|
25503
25526
|
var name = this.namespace;
|
|
@@ -25514,7 +25537,7 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25514
25537
|
}
|
|
25515
25538
|
}
|
|
25516
25539
|
function log2() {
|
|
25517
|
-
return stream.write(
|
|
25540
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
25518
25541
|
`);
|
|
25519
25542
|
}
|
|
25520
25543
|
function save(namespaces) {
|
|
@@ -26182,7 +26205,7 @@ var require_browser3 = __commonJS((exports, module) => {
|
|
|
26182
26205
|
// node_modules/express/node_modules/debug/src/node.js
|
|
26183
26206
|
var require_node3 = __commonJS((exports, module) => {
|
|
26184
26207
|
var tty = __require("tty");
|
|
26185
|
-
var
|
|
26208
|
+
var util3 = __require("util");
|
|
26186
26209
|
exports = module.exports = require_debug3();
|
|
26187
26210
|
exports.init = init;
|
|
26188
26211
|
exports.log = log2;
|
|
@@ -26211,7 +26234,7 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26211
26234
|
}, {});
|
|
26212
26235
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
26213
26236
|
if (fd !== 1 && fd !== 2) {
|
|
26214
|
-
|
|
26237
|
+
util3.deprecate(function() {
|
|
26215
26238
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
26216
26239
|
}
|
|
26217
26240
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -26220,14 +26243,14 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26220
26243
|
}
|
|
26221
26244
|
exports.formatters.o = function(v2) {
|
|
26222
26245
|
this.inspectOpts.colors = this.useColors;
|
|
26223
|
-
return
|
|
26246
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
26224
26247
|
`).map(function(str) {
|
|
26225
26248
|
return str.trim();
|
|
26226
26249
|
}).join(" ");
|
|
26227
26250
|
};
|
|
26228
26251
|
exports.formatters.O = function(v2) {
|
|
26229
26252
|
this.inspectOpts.colors = this.useColors;
|
|
26230
|
-
return
|
|
26253
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
26231
26254
|
};
|
|
26232
26255
|
function formatArgs(args) {
|
|
26233
26256
|
var name = this.namespace;
|
|
@@ -26244,7 +26267,7 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26244
26267
|
}
|
|
26245
26268
|
}
|
|
26246
26269
|
function log2() {
|
|
26247
|
-
return stream.write(
|
|
26270
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
26248
26271
|
`);
|
|
26249
26272
|
}
|
|
26250
26273
|
function save(namespaces) {
|
|
@@ -27765,7 +27788,7 @@ var require_browser4 = __commonJS((exports, module) => {
|
|
|
27765
27788
|
// node_modules/send/node_modules/debug/src/node.js
|
|
27766
27789
|
var require_node4 = __commonJS((exports, module) => {
|
|
27767
27790
|
var tty = __require("tty");
|
|
27768
|
-
var
|
|
27791
|
+
var util3 = __require("util");
|
|
27769
27792
|
exports = module.exports = require_debug4();
|
|
27770
27793
|
exports.init = init;
|
|
27771
27794
|
exports.log = log2;
|
|
@@ -27794,7 +27817,7 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27794
27817
|
}, {});
|
|
27795
27818
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
27796
27819
|
if (fd !== 1 && fd !== 2) {
|
|
27797
|
-
|
|
27820
|
+
util3.deprecate(function() {
|
|
27798
27821
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
27799
27822
|
}
|
|
27800
27823
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -27803,14 +27826,14 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27803
27826
|
}
|
|
27804
27827
|
exports.formatters.o = function(v2) {
|
|
27805
27828
|
this.inspectOpts.colors = this.useColors;
|
|
27806
|
-
return
|
|
27829
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
27807
27830
|
`).map(function(str) {
|
|
27808
27831
|
return str.trim();
|
|
27809
27832
|
}).join(" ");
|
|
27810
27833
|
};
|
|
27811
27834
|
exports.formatters.O = function(v2) {
|
|
27812
27835
|
this.inspectOpts.colors = this.useColors;
|
|
27813
|
-
return
|
|
27836
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
27814
27837
|
};
|
|
27815
27838
|
function formatArgs(args) {
|
|
27816
27839
|
var name = this.namespace;
|
|
@@ -27827,7 +27850,7 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27827
27850
|
}
|
|
27828
27851
|
}
|
|
27829
27852
|
function log2() {
|
|
27830
|
-
return stream.write(
|
|
27853
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
27831
27854
|
`);
|
|
27832
27855
|
}
|
|
27833
27856
|
function save(namespaces) {
|
|
@@ -28308,7 +28331,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
28308
28331
|
var path = __require("path");
|
|
28309
28332
|
var statuses = require_statuses();
|
|
28310
28333
|
var Stream = __require("stream");
|
|
28311
|
-
var
|
|
28334
|
+
var util3 = __require("util");
|
|
28312
28335
|
var extname = path.extname;
|
|
28313
28336
|
var join = path.join;
|
|
28314
28337
|
var normalize = path.normalize;
|
|
@@ -28354,7 +28377,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
28354
28377
|
this.from(opts.from);
|
|
28355
28378
|
}
|
|
28356
28379
|
}
|
|
28357
|
-
|
|
28380
|
+
util3.inherits(SendStream, Stream);
|
|
28358
28381
|
SendStream.prototype.etag = deprecate.function(function etag(val) {
|
|
28359
28382
|
this._etag = Boolean(val);
|
|
28360
28383
|
debug("etag %s", this._etag);
|
|
@@ -29710,10 +29733,10 @@ var require_utils2 = __commonJS((exports) => {
|
|
|
29710
29733
|
exports.normalizeType = function(type) {
|
|
29711
29734
|
return ~type.indexOf("/") ? acceptParams(type) : { value: mime.lookup(type), params: {} };
|
|
29712
29735
|
};
|
|
29713
|
-
exports.normalizeTypes = function(
|
|
29736
|
+
exports.normalizeTypes = function(types2) {
|
|
29714
29737
|
var ret = [];
|
|
29715
|
-
for (var i = 0;i <
|
|
29716
|
-
ret.push(exports.normalizeType(
|
|
29738
|
+
for (var i = 0;i < types2.length; ++i) {
|
|
29739
|
+
ret.push(exports.normalizeType(types2[i]));
|
|
29717
29740
|
}
|
|
29718
29741
|
return ret;
|
|
29719
29742
|
};
|
|
@@ -30613,23 +30636,23 @@ var require_accepts = __commonJS((exports, module) => {
|
|
|
30613
30636
|
this.negotiator = new Negotiator(req);
|
|
30614
30637
|
}
|
|
30615
30638
|
Accepts.prototype.type = Accepts.prototype.types = function(types_) {
|
|
30616
|
-
var
|
|
30617
|
-
if (
|
|
30618
|
-
|
|
30619
|
-
for (var i = 0;i <
|
|
30620
|
-
|
|
30639
|
+
var types2 = types_;
|
|
30640
|
+
if (types2 && !Array.isArray(types2)) {
|
|
30641
|
+
types2 = new Array(arguments.length);
|
|
30642
|
+
for (var i = 0;i < types2.length; i++) {
|
|
30643
|
+
types2[i] = arguments[i];
|
|
30621
30644
|
}
|
|
30622
30645
|
}
|
|
30623
|
-
if (!
|
|
30646
|
+
if (!types2 || types2.length === 0) {
|
|
30624
30647
|
return this.negotiator.mediaTypes();
|
|
30625
30648
|
}
|
|
30626
30649
|
if (!this.headers.accept) {
|
|
30627
|
-
return
|
|
30650
|
+
return types2[0];
|
|
30628
30651
|
}
|
|
30629
|
-
var mimes =
|
|
30652
|
+
var mimes = types2.map(extToMime);
|
|
30630
30653
|
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime));
|
|
30631
30654
|
var first = accepts[0];
|
|
30632
|
-
return first ?
|
|
30655
|
+
return first ? types2[mimes.indexOf(first)] : false;
|
|
30633
30656
|
};
|
|
30634
30657
|
Accepts.prototype.encoding = Accepts.prototype.encodings = function(encodings_) {
|
|
30635
30658
|
var encodings = encodings_;
|
|
@@ -30753,9 +30776,9 @@ var require_request = __commonJS((exports, module) => {
|
|
|
30753
30776
|
return query[name];
|
|
30754
30777
|
return defaultValue;
|
|
30755
30778
|
};
|
|
30756
|
-
req.is = function is(
|
|
30757
|
-
var arr =
|
|
30758
|
-
if (!Array.isArray(
|
|
30779
|
+
req.is = function is(types2) {
|
|
30780
|
+
var arr = types2;
|
|
30781
|
+
if (!Array.isArray(types2)) {
|
|
30759
30782
|
arr = new Array(arguments.length);
|
|
30760
30783
|
for (var i = 0;i < arr.length; i++) {
|
|
30761
30784
|
arr[i] = arguments[i];
|
|
@@ -32131,14 +32154,14 @@ function mergeCapabilities(base, additional) {
|
|
|
32131
32154
|
}
|
|
32132
32155
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
32133
32156
|
var init_protocol = __esm(() => {
|
|
32134
|
-
|
|
32157
|
+
init_types2();
|
|
32135
32158
|
});
|
|
32136
32159
|
|
|
32137
32160
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
32138
32161
|
var Server;
|
|
32139
32162
|
var init_server = __esm(() => {
|
|
32140
32163
|
init_protocol();
|
|
32141
|
-
|
|
32164
|
+
init_types2();
|
|
32142
32165
|
Server = class Server extends Protocol {
|
|
32143
32166
|
constructor(_serverInfo, options) {
|
|
32144
32167
|
var _a;
|
|
@@ -32392,7 +32415,7 @@ function parseArrayDef(def, refs) {
|
|
|
32392
32415
|
return res;
|
|
32393
32416
|
}
|
|
32394
32417
|
var init_array = __esm(() => {
|
|
32395
|
-
|
|
32418
|
+
init_esm();
|
|
32396
32419
|
init_parseDef();
|
|
32397
32420
|
});
|
|
32398
32421
|
|
|
@@ -32958,7 +32981,7 @@ function parseRecordDef(def, refs) {
|
|
|
32958
32981
|
return schema;
|
|
32959
32982
|
}
|
|
32960
32983
|
var init_record = __esm(() => {
|
|
32961
|
-
|
|
32984
|
+
init_esm();
|
|
32962
32985
|
init_parseDef();
|
|
32963
32986
|
init_string();
|
|
32964
32987
|
init_branded();
|
|
@@ -33030,15 +33053,15 @@ function parseUnionDef(def, refs) {
|
|
|
33030
33053
|
return asAnyOf(def, refs);
|
|
33031
33054
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
33032
33055
|
if (options.every((x2) => (x2._def.typeName in primitiveMappings) && (!x2._def.checks || !x2._def.checks.length))) {
|
|
33033
|
-
const
|
|
33056
|
+
const types2 = options.reduce((types3, x2) => {
|
|
33034
33057
|
const type = primitiveMappings[x2._def.typeName];
|
|
33035
|
-
return type && !
|
|
33058
|
+
return type && !types3.includes(type) ? [...types3, type] : types3;
|
|
33036
33059
|
}, []);
|
|
33037
33060
|
return {
|
|
33038
|
-
type:
|
|
33061
|
+
type: types2.length > 1 ? types2 : types2[0]
|
|
33039
33062
|
};
|
|
33040
33063
|
} else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
|
|
33041
|
-
const
|
|
33064
|
+
const types2 = options.reduce((acc, x2) => {
|
|
33042
33065
|
const type = typeof x2._def.value;
|
|
33043
33066
|
switch (type) {
|
|
33044
33067
|
case "string":
|
|
@@ -33057,8 +33080,8 @@ function parseUnionDef(def, refs) {
|
|
|
33057
33080
|
return acc;
|
|
33058
33081
|
}
|
|
33059
33082
|
}, []);
|
|
33060
|
-
if (
|
|
33061
|
-
const uniqueTypes =
|
|
33083
|
+
if (types2.length === options.length) {
|
|
33084
|
+
const uniqueTypes = types2.filter((x2, i, a) => a.indexOf(x2) === i);
|
|
33062
33085
|
return {
|
|
33063
33086
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
33064
33087
|
enum: options.reduce((acc, x2) => {
|
|
@@ -33232,7 +33255,7 @@ function parseObjectDef(def, refs) {
|
|
|
33232
33255
|
return result;
|
|
33233
33256
|
}
|
|
33234
33257
|
var init_object = __esm(() => {
|
|
33235
|
-
|
|
33258
|
+
init_esm();
|
|
33236
33259
|
init_parseDef();
|
|
33237
33260
|
});
|
|
33238
33261
|
|
|
@@ -33441,7 +33464,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
33441
33464
|
}
|
|
33442
33465
|
};
|
|
33443
33466
|
var init_selectParser = __esm(() => {
|
|
33444
|
-
|
|
33467
|
+
init_esm();
|
|
33445
33468
|
init_array();
|
|
33446
33469
|
init_bigint();
|
|
33447
33470
|
init_branded();
|
|
@@ -33584,7 +33607,7 @@ var init_zodToJsonSchema = __esm(() => {
|
|
|
33584
33607
|
});
|
|
33585
33608
|
|
|
33586
33609
|
// node_modules/zod-to-json-schema/dist/esm/index.js
|
|
33587
|
-
var
|
|
33610
|
+
var init_esm2 = __esm(() => {
|
|
33588
33611
|
init_Options();
|
|
33589
33612
|
init_Refs();
|
|
33590
33613
|
init_parseDef();
|
|
@@ -33642,7 +33665,7 @@ function processCreateParams2(params) {
|
|
|
33642
33665
|
}
|
|
33643
33666
|
var McpZodTypeKind, Completable;
|
|
33644
33667
|
var init_completable = __esm(() => {
|
|
33645
|
-
|
|
33668
|
+
init_esm();
|
|
33646
33669
|
(function(McpZodTypeKind2) {
|
|
33647
33670
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
33648
33671
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
@@ -33937,7 +33960,7 @@ class McpServer {
|
|
|
33937
33960
|
const cb = rest[0];
|
|
33938
33961
|
this._registeredTools[name] = {
|
|
33939
33962
|
description,
|
|
33940
|
-
inputSchema: paramsSchema === undefined ? undefined :
|
|
33963
|
+
inputSchema: paramsSchema === undefined ? undefined : exports_external.object(paramsSchema),
|
|
33941
33964
|
callback: cb
|
|
33942
33965
|
};
|
|
33943
33966
|
this.setToolRequestHandlers();
|
|
@@ -33957,7 +33980,7 @@ class McpServer {
|
|
|
33957
33980
|
const cb = rest[0];
|
|
33958
33981
|
this._registeredPrompts[name] = {
|
|
33959
33982
|
description,
|
|
33960
|
-
argsSchema: argsSchema === undefined ? undefined :
|
|
33983
|
+
argsSchema: argsSchema === undefined ? undefined : exports_external.object(argsSchema),
|
|
33961
33984
|
callback: cb
|
|
33962
33985
|
};
|
|
33963
33986
|
this.setPromptRequestHandlers();
|
|
@@ -33982,9 +34005,9 @@ function createCompletionResult(suggestions) {
|
|
|
33982
34005
|
var EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT;
|
|
33983
34006
|
var init_mcp = __esm(() => {
|
|
33984
34007
|
init_server();
|
|
34008
|
+
init_esm2();
|
|
33985
34009
|
init_esm();
|
|
33986
|
-
|
|
33987
|
-
init_types();
|
|
34010
|
+
init_types2();
|
|
33988
34011
|
init_completable();
|
|
33989
34012
|
EMPTY_OBJECT_JSON_SCHEMA = {
|
|
33990
34013
|
type: "object"
|
|
@@ -34192,7 +34215,7 @@ function stringToBase64(str) {
|
|
|
34192
34215
|
}
|
|
34193
34216
|
var zodOutbound, zodInbound;
|
|
34194
34217
|
var init_base64 = __esm(() => {
|
|
34195
|
-
|
|
34218
|
+
init_esm();
|
|
34196
34219
|
zodOutbound = instanceOfType(Uint8Array).or(stringType().transform(stringToBytes));
|
|
34197
34220
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
34198
34221
|
});
|
|
@@ -34241,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34241
34264
|
SDK_METADATA = {
|
|
34242
34265
|
language: "typescript",
|
|
34243
34266
|
openapiDocVersion: "0.0.1",
|
|
34244
|
-
sdkVersion: "0.61.
|
|
34245
|
-
genVersion: "2.
|
|
34246
|
-
userAgent: "speakeasy-sdk/typescript 0.61.
|
|
34267
|
+
sdkVersion: "0.61.15",
|
|
34268
|
+
genVersion: "2.610.0",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.61.15 2.610.0 0.0.1 dub"
|
|
34247
34270
|
};
|
|
34248
34271
|
});
|
|
34249
34272
|
|
|
@@ -35082,7 +35105,7 @@ async function valueToBase64(value) {
|
|
|
35082
35105
|
}
|
|
35083
35106
|
var base64Schema;
|
|
35084
35107
|
var init_shared = __esm(() => {
|
|
35085
|
-
|
|
35108
|
+
init_esm();
|
|
35086
35109
|
init_base64();
|
|
35087
35110
|
base64Schema = stringType().base64();
|
|
35088
35111
|
});
|
|
@@ -35269,7 +35292,7 @@ ${pre}${str}`;
|
|
|
35269
35292
|
}
|
|
35270
35293
|
var SDKValidationError;
|
|
35271
35294
|
var init_sdkvalidationerror = __esm(() => {
|
|
35272
|
-
|
|
35295
|
+
init_esm();
|
|
35273
35296
|
SDKValidationError = class SDKValidationError extends Error {
|
|
35274
35297
|
rawValue;
|
|
35275
35298
|
rawMessage;
|
|
@@ -35603,7 +35626,7 @@ var init_security = __esm(() => {
|
|
|
35603
35626
|
// src/models/errors/badrequest.ts
|
|
35604
35627
|
var Code, BadRequest, Code$inboundSchema, Code$outboundSchema, Code$, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$, BadRequest$inboundSchema, BadRequest$outboundSchema, BadRequest$;
|
|
35605
35628
|
var init_badrequest = __esm(() => {
|
|
35606
|
-
|
|
35629
|
+
init_esm();
|
|
35607
35630
|
init_primitives();
|
|
35608
35631
|
Code = {
|
|
35609
35632
|
BadRequest: "bad_request"
|
|
@@ -35664,7 +35687,7 @@ var init_badrequest = __esm(() => {
|
|
|
35664
35687
|
// src/models/errors/conflict.ts
|
|
35665
35688
|
var ConflictCode, Conflict, ConflictCode$inboundSchema, ConflictCode$outboundSchema, ConflictCode$, ConflictError$inboundSchema, ConflictError$outboundSchema, ConflictError$, Conflict$inboundSchema, Conflict$outboundSchema, Conflict$;
|
|
35666
35689
|
var init_conflict = __esm(() => {
|
|
35667
|
-
|
|
35690
|
+
init_esm();
|
|
35668
35691
|
init_primitives();
|
|
35669
35692
|
ConflictCode = {
|
|
35670
35693
|
Conflict: "conflict"
|
|
@@ -35725,7 +35748,7 @@ var init_conflict = __esm(() => {
|
|
|
35725
35748
|
// src/models/errors/forbidden.ts
|
|
35726
35749
|
var ForbiddenCode, Forbidden, ForbiddenCode$inboundSchema, ForbiddenCode$outboundSchema, ForbiddenCode$, ForbiddenError$inboundSchema, ForbiddenError$outboundSchema, ForbiddenError$, Forbidden$inboundSchema, Forbidden$outboundSchema, Forbidden$;
|
|
35727
35750
|
var init_forbidden = __esm(() => {
|
|
35728
|
-
|
|
35751
|
+
init_esm();
|
|
35729
35752
|
init_primitives();
|
|
35730
35753
|
ForbiddenCode = {
|
|
35731
35754
|
Forbidden: "forbidden"
|
|
@@ -35786,7 +35809,7 @@ var init_forbidden = __esm(() => {
|
|
|
35786
35809
|
// src/models/errors/internalservererror.ts
|
|
35787
35810
|
var InternalServerErrorCode, InternalServerError, InternalServerErrorCode$inboundSchema, InternalServerErrorCode$outboundSchema, InternalServerErrorCode$, InternalServerErrorError$inboundSchema, InternalServerErrorError$outboundSchema, InternalServerErrorError$, InternalServerError$inboundSchema, InternalServerError$outboundSchema, InternalServerError$;
|
|
35788
35811
|
var init_internalservererror = __esm(() => {
|
|
35789
|
-
|
|
35812
|
+
init_esm();
|
|
35790
35813
|
init_primitives();
|
|
35791
35814
|
InternalServerErrorCode = {
|
|
35792
35815
|
InternalServerError: "internal_server_error"
|
|
@@ -35847,7 +35870,7 @@ var init_internalservererror = __esm(() => {
|
|
|
35847
35870
|
// src/models/errors/inviteexpired.ts
|
|
35848
35871
|
var InviteExpiredCode, InviteExpired, InviteExpiredCode$inboundSchema, InviteExpiredCode$outboundSchema, InviteExpiredCode$, InviteExpiredError$inboundSchema, InviteExpiredError$outboundSchema, InviteExpiredError$, InviteExpired$inboundSchema, InviteExpired$outboundSchema, InviteExpired$;
|
|
35849
35872
|
var init_inviteexpired = __esm(() => {
|
|
35850
|
-
|
|
35873
|
+
init_esm();
|
|
35851
35874
|
init_primitives();
|
|
35852
35875
|
InviteExpiredCode = {
|
|
35853
35876
|
InviteExpired: "invite_expired"
|
|
@@ -35908,7 +35931,7 @@ var init_inviteexpired = __esm(() => {
|
|
|
35908
35931
|
// src/models/errors/notfound.ts
|
|
35909
35932
|
var NotFoundCode, NotFound, NotFoundCode$inboundSchema, NotFoundCode$outboundSchema, NotFoundCode$, NotFoundError$inboundSchema, NotFoundError$outboundSchema, NotFoundError$, NotFound$inboundSchema, NotFound$outboundSchema, NotFound$;
|
|
35910
35933
|
var init_notfound = __esm(() => {
|
|
35911
|
-
|
|
35934
|
+
init_esm();
|
|
35912
35935
|
init_primitives();
|
|
35913
35936
|
NotFoundCode = {
|
|
35914
35937
|
NotFound: "not_found"
|
|
@@ -35969,7 +35992,7 @@ var init_notfound = __esm(() => {
|
|
|
35969
35992
|
// src/models/errors/ratelimitexceeded.ts
|
|
35970
35993
|
var RateLimitExceededCode, RateLimitExceeded, RateLimitExceededCode$inboundSchema, RateLimitExceededCode$outboundSchema, RateLimitExceededCode$, RateLimitExceededError$inboundSchema, RateLimitExceededError$outboundSchema, RateLimitExceededError$, RateLimitExceeded$inboundSchema, RateLimitExceeded$outboundSchema, RateLimitExceeded$;
|
|
35971
35994
|
var init_ratelimitexceeded = __esm(() => {
|
|
35972
|
-
|
|
35995
|
+
init_esm();
|
|
35973
35996
|
init_primitives();
|
|
35974
35997
|
RateLimitExceededCode = {
|
|
35975
35998
|
RateLimitExceeded: "rate_limit_exceeded"
|
|
@@ -36030,7 +36053,7 @@ var init_ratelimitexceeded = __esm(() => {
|
|
|
36030
36053
|
// src/models/errors/unauthorized.ts
|
|
36031
36054
|
var UnauthorizedCode, Unauthorized, UnauthorizedCode$inboundSchema, UnauthorizedCode$outboundSchema, UnauthorizedCode$, UnauthorizedError$inboundSchema, UnauthorizedError$outboundSchema, UnauthorizedError$, Unauthorized$inboundSchema, Unauthorized$outboundSchema, Unauthorized$;
|
|
36032
36055
|
var init_unauthorized = __esm(() => {
|
|
36033
|
-
|
|
36056
|
+
init_esm();
|
|
36034
36057
|
init_primitives();
|
|
36035
36058
|
UnauthorizedCode = {
|
|
36036
36059
|
Unauthorized: "unauthorized"
|
|
@@ -36091,7 +36114,7 @@ var init_unauthorized = __esm(() => {
|
|
|
36091
36114
|
// src/models/errors/unprocessableentity.ts
|
|
36092
36115
|
var UnprocessableEntityCode, UnprocessableEntity, UnprocessableEntityCode$inboundSchema, UnprocessableEntityCode$outboundSchema, UnprocessableEntityCode$, UnprocessableEntityError$inboundSchema, UnprocessableEntityError$outboundSchema, UnprocessableEntityError$, UnprocessableEntity$inboundSchema, UnprocessableEntity$outboundSchema, UnprocessableEntity$;
|
|
36093
36116
|
var init_unprocessableentity = __esm(() => {
|
|
36094
|
-
|
|
36117
|
+
init_esm();
|
|
36095
36118
|
init_primitives();
|
|
36096
36119
|
UnprocessableEntityCode = {
|
|
36097
36120
|
UnprocessableEntity: "unprocessable_entity"
|
|
@@ -36150,7 +36173,7 @@ var init_unprocessableentity = __esm(() => {
|
|
|
36150
36173
|
});
|
|
36151
36174
|
|
|
36152
36175
|
// src/models/errors/index.ts
|
|
36153
|
-
var
|
|
36176
|
+
var init_errors2 = __esm(() => {
|
|
36154
36177
|
init_badrequest();
|
|
36155
36178
|
init_conflict();
|
|
36156
36179
|
init_forbidden();
|
|
@@ -36168,7 +36191,7 @@ var init_errors = __esm(() => {
|
|
|
36168
36191
|
// src/models/components/analyticsbrowsers.ts
|
|
36169
36192
|
var AnalyticsBrowsers$inboundSchema, AnalyticsBrowsers$outboundSchema, AnalyticsBrowsers$;
|
|
36170
36193
|
var init_analyticsbrowsers = __esm(() => {
|
|
36171
|
-
|
|
36194
|
+
init_esm();
|
|
36172
36195
|
AnalyticsBrowsers$inboundSchema = objectType({
|
|
36173
36196
|
browser: stringType(),
|
|
36174
36197
|
clicks: numberType().default(0),
|
|
@@ -36192,7 +36215,7 @@ var init_analyticsbrowsers = __esm(() => {
|
|
|
36192
36215
|
// src/models/components/analyticscities.ts
|
|
36193
36216
|
var AnalyticsCitiesCountry, AnalyticsCitiesCountry$inboundSchema, AnalyticsCitiesCountry$outboundSchema, AnalyticsCitiesCountry$, AnalyticsCities$inboundSchema, AnalyticsCities$outboundSchema, AnalyticsCities$;
|
|
36194
36217
|
var init_analyticscities = __esm(() => {
|
|
36195
|
-
|
|
36218
|
+
init_esm();
|
|
36196
36219
|
AnalyticsCitiesCountry = {
|
|
36197
36220
|
Af: "AF",
|
|
36198
36221
|
Al: "AL",
|
|
@@ -36478,7 +36501,7 @@ var init_analyticscities = __esm(() => {
|
|
|
36478
36501
|
// src/models/components/analyticscontinents.ts
|
|
36479
36502
|
var Continent, Continent$inboundSchema, Continent$outboundSchema, Continent$, AnalyticsContinents$inboundSchema, AnalyticsContinents$outboundSchema, AnalyticsContinents$;
|
|
36480
36503
|
var init_analyticscontinents = __esm(() => {
|
|
36481
|
-
|
|
36504
|
+
init_esm();
|
|
36482
36505
|
Continent = {
|
|
36483
36506
|
Af: "AF",
|
|
36484
36507
|
An: "AN",
|
|
@@ -36517,7 +36540,7 @@ var init_analyticscontinents = __esm(() => {
|
|
|
36517
36540
|
// src/models/components/analyticscount.ts
|
|
36518
36541
|
var AnalyticsCount$inboundSchema, AnalyticsCount$outboundSchema, AnalyticsCount$;
|
|
36519
36542
|
var init_analyticscount = __esm(() => {
|
|
36520
|
-
|
|
36543
|
+
init_esm();
|
|
36521
36544
|
AnalyticsCount$inboundSchema = objectType({
|
|
36522
36545
|
clicks: numberType().default(0),
|
|
36523
36546
|
leads: numberType().default(0),
|
|
@@ -36539,7 +36562,7 @@ var init_analyticscount = __esm(() => {
|
|
|
36539
36562
|
// src/models/components/analyticscountries.ts
|
|
36540
36563
|
var Country, Region, City, Country$inboundSchema, Country$outboundSchema, Country$, Region$inboundSchema, Region$outboundSchema, Region$, City$inboundSchema, City$outboundSchema, City$, AnalyticsCountries$inboundSchema, AnalyticsCountries$outboundSchema, AnalyticsCountries$;
|
|
36541
36564
|
var init_analyticscountries = __esm(() => {
|
|
36542
|
-
|
|
36565
|
+
init_esm();
|
|
36543
36566
|
Country = {
|
|
36544
36567
|
Af: "AF",
|
|
36545
36568
|
Al: "AL",
|
|
@@ -36843,7 +36866,7 @@ var init_analyticscountries = __esm(() => {
|
|
|
36843
36866
|
// src/models/components/analyticsdevices.ts
|
|
36844
36867
|
var AnalyticsDevices$inboundSchema, AnalyticsDevices$outboundSchema, AnalyticsDevices$;
|
|
36845
36868
|
var init_analyticsdevices = __esm(() => {
|
|
36846
|
-
|
|
36869
|
+
init_esm();
|
|
36847
36870
|
AnalyticsDevices$inboundSchema = objectType({
|
|
36848
36871
|
device: stringType(),
|
|
36849
36872
|
clicks: numberType().default(0),
|
|
@@ -36867,7 +36890,7 @@ var init_analyticsdevices = __esm(() => {
|
|
|
36867
36890
|
// src/models/components/analyticsos.ts
|
|
36868
36891
|
var AnalyticsOS$inboundSchema, AnalyticsOS$outboundSchema, AnalyticsOS$;
|
|
36869
36892
|
var init_analyticsos = __esm(() => {
|
|
36870
|
-
|
|
36893
|
+
init_esm();
|
|
36871
36894
|
AnalyticsOS$inboundSchema = objectType({
|
|
36872
36895
|
os: stringType(),
|
|
36873
36896
|
clicks: numberType().default(0),
|
|
@@ -36891,7 +36914,7 @@ var init_analyticsos = __esm(() => {
|
|
|
36891
36914
|
// src/models/components/analyticsreferers.ts
|
|
36892
36915
|
var AnalyticsReferers$inboundSchema, AnalyticsReferers$outboundSchema, AnalyticsReferers$;
|
|
36893
36916
|
var init_analyticsreferers = __esm(() => {
|
|
36894
|
-
|
|
36917
|
+
init_esm();
|
|
36895
36918
|
AnalyticsReferers$inboundSchema = objectType({
|
|
36896
36919
|
referer: stringType(),
|
|
36897
36920
|
clicks: numberType().default(0),
|
|
@@ -36915,7 +36938,7 @@ var init_analyticsreferers = __esm(() => {
|
|
|
36915
36938
|
// src/models/components/analyticsrefererurls.ts
|
|
36916
36939
|
var AnalyticsRefererUrls$inboundSchema, AnalyticsRefererUrls$outboundSchema, AnalyticsRefererUrls$;
|
|
36917
36940
|
var init_analyticsrefererurls = __esm(() => {
|
|
36918
|
-
|
|
36941
|
+
init_esm();
|
|
36919
36942
|
AnalyticsRefererUrls$inboundSchema = objectType({
|
|
36920
36943
|
refererUrl: stringType(),
|
|
36921
36944
|
clicks: numberType().default(0),
|
|
@@ -36939,7 +36962,7 @@ var init_analyticsrefererurls = __esm(() => {
|
|
|
36939
36962
|
// src/models/components/analyticsregions.ts
|
|
36940
36963
|
var AnalyticsRegionsCountry, AnalyticsRegionsCity, AnalyticsRegionsCountry$inboundSchema, AnalyticsRegionsCountry$outboundSchema, AnalyticsRegionsCountry$, AnalyticsRegionsCity$inboundSchema, AnalyticsRegionsCity$outboundSchema, AnalyticsRegionsCity$, AnalyticsRegions$inboundSchema, AnalyticsRegions$outboundSchema, AnalyticsRegions$;
|
|
36941
36964
|
var init_analyticsregions = __esm(() => {
|
|
36942
|
-
|
|
36965
|
+
init_esm();
|
|
36943
36966
|
AnalyticsRegionsCountry = {
|
|
36944
36967
|
Af: "AF",
|
|
36945
36968
|
Al: "AL",
|
|
@@ -37234,7 +37257,7 @@ var init_analyticsregions = __esm(() => {
|
|
|
37234
37257
|
// src/models/components/analyticstimeseries.ts
|
|
37235
37258
|
var AnalyticsTimeseries$inboundSchema, AnalyticsTimeseries$outboundSchema, AnalyticsTimeseries$;
|
|
37236
37259
|
var init_analyticstimeseries = __esm(() => {
|
|
37237
|
-
|
|
37260
|
+
init_esm();
|
|
37238
37261
|
AnalyticsTimeseries$inboundSchema = objectType({
|
|
37239
37262
|
start: stringType(),
|
|
37240
37263
|
clicks: numberType().default(0),
|
|
@@ -37258,7 +37281,7 @@ var init_analyticstimeseries = __esm(() => {
|
|
|
37258
37281
|
// src/models/components/analyticstoplinks.ts
|
|
37259
37282
|
var AnalyticsTopLinks$inboundSchema, AnalyticsTopLinks$outboundSchema, AnalyticsTopLinks$;
|
|
37260
37283
|
var init_analyticstoplinks = __esm(() => {
|
|
37261
|
-
|
|
37284
|
+
init_esm();
|
|
37262
37285
|
AnalyticsTopLinks$inboundSchema = objectType({
|
|
37263
37286
|
link: stringType(),
|
|
37264
37287
|
id: stringType(),
|
|
@@ -37298,7 +37321,7 @@ var init_analyticstoplinks = __esm(() => {
|
|
|
37298
37321
|
// src/models/components/analyticstopurls.ts
|
|
37299
37322
|
var AnalyticsTopUrls$inboundSchema, AnalyticsTopUrls$outboundSchema, AnalyticsTopUrls$;
|
|
37300
37323
|
var init_analyticstopurls = __esm(() => {
|
|
37301
|
-
|
|
37324
|
+
init_esm();
|
|
37302
37325
|
AnalyticsTopUrls$inboundSchema = objectType({
|
|
37303
37326
|
url: stringType(),
|
|
37304
37327
|
clicks: numberType().default(0),
|
|
@@ -37322,7 +37345,7 @@ var init_analyticstopurls = __esm(() => {
|
|
|
37322
37345
|
// src/models/components/analyticstriggers.ts
|
|
37323
37346
|
var Trigger, Trigger$inboundSchema, Trigger$outboundSchema, Trigger$, AnalyticsTriggers$inboundSchema, AnalyticsTriggers$outboundSchema, AnalyticsTriggers$;
|
|
37324
37347
|
var init_analyticstriggers = __esm(() => {
|
|
37325
|
-
|
|
37348
|
+
init_esm();
|
|
37326
37349
|
Trigger = {
|
|
37327
37350
|
Qr: "qr",
|
|
37328
37351
|
Link: "link"
|
|
@@ -37356,7 +37379,7 @@ var init_analyticstriggers = __esm(() => {
|
|
|
37356
37379
|
// src/models/components/tagschema.ts
|
|
37357
37380
|
var Color, Color$inboundSchema, Color$outboundSchema, Color$, TagSchema$inboundSchema, TagSchema$outboundSchema, TagSchema$;
|
|
37358
37381
|
var init_tagschema = __esm(() => {
|
|
37359
|
-
|
|
37382
|
+
init_esm();
|
|
37360
37383
|
Color = {
|
|
37361
37384
|
Red: "red",
|
|
37362
37385
|
Yellow: "yellow",
|
|
@@ -37391,7 +37414,7 @@ var init_tagschema = __esm(() => {
|
|
|
37391
37414
|
// src/models/components/clickevent.ts
|
|
37392
37415
|
var Event, Event$inboundSchema, Event$outboundSchema, Event$, Click$inboundSchema, Click$outboundSchema, Click$, ClickEventGeo$inboundSchema, ClickEventGeo$outboundSchema, ClickEventGeo$, ClickEventTestVariants$inboundSchema, ClickEventTestVariants$outboundSchema, ClickEventTestVariants$, Link$inboundSchema, Link$outboundSchema, Link$, ClickEvent$inboundSchema, ClickEvent$outboundSchema, ClickEvent$;
|
|
37393
37416
|
var init_clickevent = __esm(() => {
|
|
37394
|
-
|
|
37417
|
+
init_esm();
|
|
37395
37418
|
init_primitives();
|
|
37396
37419
|
init_tagschema();
|
|
37397
37420
|
Event = {
|
|
@@ -38644,7 +38667,7 @@ var init_clickevent = __esm(() => {
|
|
|
38644
38667
|
// src/models/components/continentcode.ts
|
|
38645
38668
|
var ContinentCode, ContinentCode$inboundSchema, ContinentCode$outboundSchema, ContinentCode$;
|
|
38646
38669
|
var init_continentcode = __esm(() => {
|
|
38647
|
-
|
|
38670
|
+
init_esm();
|
|
38648
38671
|
ContinentCode = {
|
|
38649
38672
|
Af: "AF",
|
|
38650
38673
|
An: "AN",
|
|
@@ -38665,7 +38688,7 @@ var init_continentcode = __esm(() => {
|
|
|
38665
38688
|
// src/models/components/countrycode.ts
|
|
38666
38689
|
var CountryCode, CountryCode$inboundSchema, CountryCode$outboundSchema, CountryCode$;
|
|
38667
38690
|
var init_countrycode = __esm(() => {
|
|
38668
|
-
|
|
38691
|
+
init_esm();
|
|
38669
38692
|
CountryCode = {
|
|
38670
38693
|
Af: "AF",
|
|
38671
38694
|
Al: "AL",
|
|
@@ -38929,7 +38952,7 @@ var init_countrycode = __esm(() => {
|
|
|
38929
38952
|
// src/models/components/domainschema.ts
|
|
38930
38953
|
var RegisteredDomain$inboundSchema, RegisteredDomain$outboundSchema, RegisteredDomain$, DomainSchema$inboundSchema, DomainSchema$outboundSchema, DomainSchema$;
|
|
38931
38954
|
var init_domainschema = __esm(() => {
|
|
38932
|
-
|
|
38955
|
+
init_esm();
|
|
38933
38956
|
RegisteredDomain$inboundSchema = objectType({
|
|
38934
38957
|
id: stringType(),
|
|
38935
38958
|
createdAt: stringType(),
|
|
@@ -38985,7 +39008,7 @@ var init_domainschema = __esm(() => {
|
|
|
38985
39008
|
// src/models/components/folderschema.ts
|
|
38986
39009
|
var Type, AccessLevel, Type$inboundSchema, Type$outboundSchema, Type$, AccessLevel$inboundSchema, AccessLevel$outboundSchema, AccessLevel$, FolderSchema$inboundSchema, FolderSchema$outboundSchema, FolderSchema$;
|
|
38987
39010
|
var init_folderschema = __esm(() => {
|
|
38988
|
-
|
|
39011
|
+
init_esm();
|
|
38989
39012
|
Type = {
|
|
38990
39013
|
Default: "default",
|
|
38991
39014
|
Mega: "mega"
|
|
@@ -39011,7 +39034,6 @@ var init_folderschema = __esm(() => {
|
|
|
39011
39034
|
name: stringType(),
|
|
39012
39035
|
type: Type$inboundSchema,
|
|
39013
39036
|
accessLevel: nullableType(AccessLevel$inboundSchema).default(null),
|
|
39014
|
-
linkCount: numberType().default(0),
|
|
39015
39037
|
createdAt: stringType(),
|
|
39016
39038
|
updatedAt: stringType()
|
|
39017
39039
|
});
|
|
@@ -39020,7 +39042,6 @@ var init_folderschema = __esm(() => {
|
|
|
39020
39042
|
name: stringType(),
|
|
39021
39043
|
type: Type$outboundSchema,
|
|
39022
39044
|
accessLevel: nullableType(AccessLevel$outboundSchema).default(null),
|
|
39023
|
-
linkCount: numberType().default(0),
|
|
39024
39045
|
createdAt: stringType(),
|
|
39025
39046
|
updatedAt: stringType()
|
|
39026
39047
|
});
|
|
@@ -39033,7 +39054,7 @@ var init_folderschema = __esm(() => {
|
|
|
39033
39054
|
// src/models/components/leadcreatedevent.ts
|
|
39034
39055
|
var LeadCreatedEventEvent, LeadCreatedEventEvent$inboundSchema, LeadCreatedEventEvent$outboundSchema, LeadCreatedEventEvent$, LeadCreatedEventCustomer$inboundSchema, LeadCreatedEventCustomer$outboundSchema, LeadCreatedEventCustomer$, LeadCreatedEventClick$inboundSchema, LeadCreatedEventClick$outboundSchema, LeadCreatedEventClick$, LeadCreatedEventGeo$inboundSchema, LeadCreatedEventGeo$outboundSchema, LeadCreatedEventGeo$, LeadCreatedEventTestVariants$inboundSchema, LeadCreatedEventTestVariants$outboundSchema, LeadCreatedEventTestVariants$, LeadCreatedEventLink$inboundSchema, LeadCreatedEventLink$outboundSchema, LeadCreatedEventLink$, LeadCreatedEventData$inboundSchema, LeadCreatedEventData$outboundSchema, LeadCreatedEventData$, LeadCreatedEvent$inboundSchema, LeadCreatedEvent$outboundSchema, LeadCreatedEvent$;
|
|
39035
39056
|
var init_leadcreatedevent = __esm(() => {
|
|
39036
|
-
|
|
39057
|
+
init_esm();
|
|
39037
39058
|
init_primitives();
|
|
39038
39059
|
init_tagschema();
|
|
39039
39060
|
LeadCreatedEventEvent = {
|
|
@@ -40292,7 +40313,7 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
40292
40313
|
// src/models/components/leadevent.ts
|
|
40293
40314
|
var LeadEventEvent, LeadEventEvent$inboundSchema, LeadEventEvent$outboundSchema, LeadEventEvent$, LeadEventClick$inboundSchema, LeadEventClick$outboundSchema, LeadEventClick$, LeadEventGeo$inboundSchema, LeadEventGeo$outboundSchema, LeadEventGeo$, LeadEventTestVariants$inboundSchema, LeadEventTestVariants$outboundSchema, LeadEventTestVariants$, LeadEventLink$inboundSchema, LeadEventLink$outboundSchema, LeadEventLink$, Customer$inboundSchema, Customer$outboundSchema, Customer$, LeadEvent$inboundSchema, LeadEvent$outboundSchema, LeadEvent$;
|
|
40294
40315
|
var init_leadevent = __esm(() => {
|
|
40295
|
-
|
|
40316
|
+
init_esm();
|
|
40296
40317
|
init_primitives();
|
|
40297
40318
|
init_tagschema();
|
|
40298
40319
|
LeadEventEvent = {
|
|
@@ -41577,7 +41598,7 @@ var init_leadevent = __esm(() => {
|
|
|
41577
41598
|
// src/models/components/linkclickedevent.ts
|
|
41578
41599
|
var LinkClickedEventEvent, LinkClickedEventEvent$inboundSchema, LinkClickedEventEvent$outboundSchema, LinkClickedEventEvent$, LinkClickedEventClick$inboundSchema, LinkClickedEventClick$outboundSchema, LinkClickedEventClick$, LinkClickedEventGeo$inboundSchema, LinkClickedEventGeo$outboundSchema, LinkClickedEventGeo$, LinkClickedEventTestVariants$inboundSchema, LinkClickedEventTestVariants$outboundSchema, LinkClickedEventTestVariants$, LinkClickedEventLink$inboundSchema, LinkClickedEventLink$outboundSchema, LinkClickedEventLink$, Data$inboundSchema, Data$outboundSchema, Data$, LinkClickedEvent$inboundSchema, LinkClickedEvent$outboundSchema, LinkClickedEvent$;
|
|
41579
41600
|
var init_linkclickedevent = __esm(() => {
|
|
41580
|
-
|
|
41601
|
+
init_esm();
|
|
41581
41602
|
init_primitives();
|
|
41582
41603
|
init_tagschema();
|
|
41583
41604
|
LinkClickedEventEvent = {
|
|
@@ -42806,7 +42827,7 @@ var init_linkclickedevent = __esm(() => {
|
|
|
42806
42827
|
// src/models/components/linkerrorschema.ts
|
|
42807
42828
|
var Code2, Code$inboundSchema2, Code$outboundSchema2, Code$2, LinkErrorSchema$inboundSchema, LinkErrorSchema$outboundSchema, LinkErrorSchema$;
|
|
42808
42829
|
var init_linkerrorschema = __esm(() => {
|
|
42809
|
-
|
|
42830
|
+
init_esm();
|
|
42810
42831
|
Code2 = {
|
|
42811
42832
|
BadRequest: "bad_request",
|
|
42812
42833
|
NotFound: "not_found",
|
|
@@ -42845,7 +42866,7 @@ var init_linkerrorschema = __esm(() => {
|
|
|
42845
42866
|
// src/models/components/linkgeotargeting.ts
|
|
42846
42867
|
var LinkGeoTargeting$inboundSchema, LinkGeoTargeting$outboundSchema, LinkGeoTargeting$;
|
|
42847
42868
|
var init_linkgeotargeting = __esm(() => {
|
|
42848
|
-
|
|
42869
|
+
init_esm();
|
|
42849
42870
|
init_primitives();
|
|
42850
42871
|
LinkGeoTargeting$inboundSchema = objectType({
|
|
42851
42872
|
AF: stringType().optional(),
|
|
@@ -43866,7 +43887,7 @@ var init_linkgeotargeting = __esm(() => {
|
|
|
43866
43887
|
// src/models/components/linkschema.ts
|
|
43867
43888
|
var Geo$inboundSchema, Geo$outboundSchema, Geo$, TestVariants$inboundSchema, TestVariants$outboundSchema, TestVariants$, LinkSchema$inboundSchema, LinkSchema$outboundSchema, LinkSchema$;
|
|
43868
43889
|
var init_linkschema = __esm(() => {
|
|
43869
|
-
|
|
43890
|
+
init_esm();
|
|
43870
43891
|
init_primitives();
|
|
43871
43892
|
init_tagschema();
|
|
43872
43893
|
Geo$inboundSchema = objectType({
|
|
@@ -45022,7 +45043,7 @@ var init_linkschema = __esm(() => {
|
|
|
45022
45043
|
// src/models/components/linkwebhookevent.ts
|
|
45023
45044
|
var Three, Two, One, Three$inboundSchema, Three$outboundSchema, Three$, Two$inboundSchema, Two$outboundSchema, Two$, One$inboundSchema, One$outboundSchema, One$, LinkWebhookEventEvent$inboundSchema, LinkWebhookEventEvent$outboundSchema, LinkWebhookEventEvent$, LinkWebhookEventGeo$inboundSchema, LinkWebhookEventGeo$outboundSchema, LinkWebhookEventGeo$, LinkWebhookEventTestVariants$inboundSchema, LinkWebhookEventTestVariants$outboundSchema, LinkWebhookEventTestVariants$, LinkWebhookEventLink$inboundSchema, LinkWebhookEventLink$outboundSchema, LinkWebhookEventLink$, LinkWebhookEvent$inboundSchema, LinkWebhookEvent$outboundSchema, LinkWebhookEvent$;
|
|
45024
45045
|
var init_linkwebhookevent = __esm(() => {
|
|
45025
|
-
|
|
45046
|
+
init_esm();
|
|
45026
45047
|
init_primitives();
|
|
45027
45048
|
init_tagschema();
|
|
45028
45049
|
Three = {
|
|
@@ -46231,7 +46252,7 @@ var init_linkwebhookevent = __esm(() => {
|
|
|
46231
46252
|
// src/models/components/partneranalyticscount.ts
|
|
46232
46253
|
var PartnerAnalyticsCount$inboundSchema, PartnerAnalyticsCount$outboundSchema, PartnerAnalyticsCount$;
|
|
46233
46254
|
var init_partneranalyticscount = __esm(() => {
|
|
46234
|
-
|
|
46255
|
+
init_esm();
|
|
46235
46256
|
PartnerAnalyticsCount$inboundSchema = objectType({
|
|
46236
46257
|
clicks: numberType().default(0),
|
|
46237
46258
|
leads: numberType().default(0),
|
|
@@ -46255,7 +46276,7 @@ var init_partneranalyticscount = __esm(() => {
|
|
|
46255
46276
|
// src/models/components/partneranalyticstimeseries.ts
|
|
46256
46277
|
var PartnerAnalyticsTimeseries$inboundSchema, PartnerAnalyticsTimeseries$outboundSchema, PartnerAnalyticsTimeseries$;
|
|
46257
46278
|
var init_partneranalyticstimeseries = __esm(() => {
|
|
46258
|
-
|
|
46279
|
+
init_esm();
|
|
46259
46280
|
PartnerAnalyticsTimeseries$inboundSchema = objectType({
|
|
46260
46281
|
start: stringType(),
|
|
46261
46282
|
clicks: numberType().default(0),
|
|
@@ -46281,7 +46302,7 @@ var init_partneranalyticstimeseries = __esm(() => {
|
|
|
46281
46302
|
// src/models/components/partneranalyticstoplinks.ts
|
|
46282
46303
|
var PartnerAnalyticsTopLinks$inboundSchema, PartnerAnalyticsTopLinks$outboundSchema, PartnerAnalyticsTopLinks$;
|
|
46283
46304
|
var init_partneranalyticstoplinks = __esm(() => {
|
|
46284
|
-
|
|
46305
|
+
init_esm();
|
|
46285
46306
|
PartnerAnalyticsTopLinks$inboundSchema = objectType({
|
|
46286
46307
|
link: stringType(),
|
|
46287
46308
|
id: stringType(),
|
|
@@ -46323,7 +46344,7 @@ var init_partneranalyticstoplinks = __esm(() => {
|
|
|
46323
46344
|
// src/models/components/partnerenrolledevent.ts
|
|
46324
46345
|
var PartnerEnrolledEventEvent, Status, PartnerEnrolledEventEvent$inboundSchema, PartnerEnrolledEventEvent$outboundSchema, PartnerEnrolledEventEvent$, Status$inboundSchema, Status$outboundSchema, Status$, PartnerEnrolledEventLink$inboundSchema, PartnerEnrolledEventLink$outboundSchema, PartnerEnrolledEventLink$, PartnerEnrolledEventData$inboundSchema, PartnerEnrolledEventData$outboundSchema, PartnerEnrolledEventData$, PartnerEnrolledEvent$inboundSchema, PartnerEnrolledEvent$outboundSchema, PartnerEnrolledEvent$;
|
|
46325
46346
|
var init_partnerenrolledevent = __esm(() => {
|
|
46326
|
-
|
|
46347
|
+
init_esm();
|
|
46327
46348
|
PartnerEnrolledEventEvent = {
|
|
46328
46349
|
PartnerEnrolled: "partner.enrolled"
|
|
46329
46350
|
};
|
|
@@ -46454,7 +46475,7 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
46454
46475
|
// src/models/components/salecreatedevent.ts
|
|
46455
46476
|
var SaleCreatedEventEvent, SaleCreatedEventEvent$inboundSchema, SaleCreatedEventEvent$outboundSchema, SaleCreatedEventEvent$, SaleCreatedEventCustomer$inboundSchema, SaleCreatedEventCustomer$outboundSchema, SaleCreatedEventCustomer$, SaleCreatedEventClick$inboundSchema, SaleCreatedEventClick$outboundSchema, SaleCreatedEventClick$, SaleCreatedEventGeo$inboundSchema, SaleCreatedEventGeo$outboundSchema, SaleCreatedEventGeo$, SaleCreatedEventTestVariants$inboundSchema, SaleCreatedEventTestVariants$outboundSchema, SaleCreatedEventTestVariants$, SaleCreatedEventLink$inboundSchema, SaleCreatedEventLink$outboundSchema, SaleCreatedEventLink$, SaleCreatedEventSale$inboundSchema, SaleCreatedEventSale$outboundSchema, SaleCreatedEventSale$, SaleCreatedEventData$inboundSchema, SaleCreatedEventData$outboundSchema, SaleCreatedEventData$, SaleCreatedEvent$inboundSchema, SaleCreatedEvent$outboundSchema, SaleCreatedEvent$;
|
|
46456
46477
|
var init_salecreatedevent = __esm(() => {
|
|
46457
|
-
|
|
46478
|
+
init_esm();
|
|
46458
46479
|
init_primitives();
|
|
46459
46480
|
init_tagschema();
|
|
46460
46481
|
SaleCreatedEventEvent = {
|
|
@@ -47731,7 +47752,7 @@ var init_salecreatedevent = __esm(() => {
|
|
|
47731
47752
|
// src/models/components/saleevent.ts
|
|
47732
47753
|
var SaleEventEvent, PaymentProcessor, SaleEventEvent$inboundSchema, SaleEventEvent$outboundSchema, SaleEventEvent$, SaleEventGeo$inboundSchema, SaleEventGeo$outboundSchema, SaleEventGeo$, SaleEventTestVariants$inboundSchema, SaleEventTestVariants$outboundSchema, SaleEventTestVariants$, SaleEventLink$inboundSchema, SaleEventLink$outboundSchema, SaleEventLink$, SaleEventClick$inboundSchema, SaleEventClick$outboundSchema, SaleEventClick$, SaleEventCustomer$inboundSchema, SaleEventCustomer$outboundSchema, SaleEventCustomer$, PaymentProcessor$inboundSchema, PaymentProcessor$outboundSchema, PaymentProcessor$, Sale$inboundSchema, Sale$outboundSchema, Sale$, SaleEvent$inboundSchema, SaleEvent$outboundSchema, SaleEvent$;
|
|
47733
47754
|
var init_saleevent = __esm(() => {
|
|
47734
|
-
|
|
47755
|
+
init_esm();
|
|
47735
47756
|
init_primitives();
|
|
47736
47757
|
init_tagschema();
|
|
47737
47758
|
SaleEventEvent = {
|
|
@@ -49055,7 +49076,7 @@ var init_saleevent = __esm(() => {
|
|
|
49055
49076
|
// src/models/components/security.ts
|
|
49056
49077
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
49057
49078
|
var init_security2 = __esm(() => {
|
|
49058
|
-
|
|
49079
|
+
init_esm();
|
|
49059
49080
|
Security$inboundSchema = objectType({
|
|
49060
49081
|
token: stringType()
|
|
49061
49082
|
});
|
|
@@ -49071,7 +49092,7 @@ var init_security2 = __esm(() => {
|
|
|
49071
49092
|
// src/models/components/webhookevent.ts
|
|
49072
49093
|
var WebhookEvent$inboundSchema, WebhookEvent$outboundSchema, WebhookEvent$;
|
|
49073
49094
|
var init_webhookevent = __esm(() => {
|
|
49074
|
-
|
|
49095
|
+
init_esm();
|
|
49075
49096
|
init_leadcreatedevent();
|
|
49076
49097
|
init_linkclickedevent();
|
|
49077
49098
|
init_linkwebhookevent();
|
|
@@ -49100,7 +49121,7 @@ var init_webhookevent = __esm(() => {
|
|
|
49100
49121
|
// src/models/components/workspaceschema.ts
|
|
49101
49122
|
var Plan, Role, Plan$inboundSchema, Plan$outboundSchema, Plan$, Role$inboundSchema, Role$outboundSchema, Role$, Users$inboundSchema, Users$outboundSchema, Users$, Domains$inboundSchema, Domains$outboundSchema, Domains$, WorkspaceSchema$inboundSchema, WorkspaceSchema$outboundSchema, WorkspaceSchema$;
|
|
49102
49123
|
var init_workspaceschema = __esm(() => {
|
|
49103
|
-
|
|
49124
|
+
init_esm();
|
|
49104
49125
|
Plan = {
|
|
49105
49126
|
Free: "free",
|
|
49106
49127
|
Pro: "pro",
|
|
@@ -49272,7 +49293,7 @@ var init_components = __esm(() => {
|
|
|
49272
49293
|
// src/models/operations/bulkcreatelinks.ts
|
|
49273
49294
|
var BulkCreateLinksTagIds$inboundSchema, BulkCreateLinksTagIds$outboundSchema, BulkCreateLinksTagIds$, BulkCreateLinksTagNames$inboundSchema, BulkCreateLinksTagNames$outboundSchema, BulkCreateLinksTagNames$, BulkCreateLinksTestVariants$inboundSchema, BulkCreateLinksTestVariants$outboundSchema, BulkCreateLinksTestVariants$, RequestBody$inboundSchema, RequestBody$outboundSchema, RequestBody$, ResponseBody$inboundSchema, ResponseBody$outboundSchema, ResponseBody$;
|
|
49274
49295
|
var init_bulkcreatelinks = __esm(() => {
|
|
49275
|
-
|
|
49296
|
+
init_esm();
|
|
49276
49297
|
init_primitives();
|
|
49277
49298
|
init_components();
|
|
49278
49299
|
BulkCreateLinksTagIds$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -49418,7 +49439,7 @@ var init_bulkcreatelinks = __esm(() => {
|
|
|
49418
49439
|
// src/models/operations/bulkdeletelinks.ts
|
|
49419
49440
|
var BulkDeleteLinksRequest$inboundSchema, BulkDeleteLinksRequest$outboundSchema, BulkDeleteLinksRequest$, BulkDeleteLinksResponseBody$inboundSchema, BulkDeleteLinksResponseBody$outboundSchema, BulkDeleteLinksResponseBody$;
|
|
49420
49441
|
var init_bulkdeletelinks = __esm(() => {
|
|
49421
|
-
|
|
49442
|
+
init_esm();
|
|
49422
49443
|
BulkDeleteLinksRequest$inboundSchema = objectType({
|
|
49423
49444
|
linkIds: arrayType(stringType())
|
|
49424
49445
|
});
|
|
@@ -49444,7 +49465,7 @@ var init_bulkdeletelinks = __esm(() => {
|
|
|
49444
49465
|
// src/models/operations/bulkupdatelinks.ts
|
|
49445
49466
|
var BulkUpdateLinksTagIds$inboundSchema, BulkUpdateLinksTagIds$outboundSchema, BulkUpdateLinksTagIds$, BulkUpdateLinksTagNames$inboundSchema, BulkUpdateLinksTagNames$outboundSchema, BulkUpdateLinksTagNames$, BulkUpdateLinksTestVariants$inboundSchema, BulkUpdateLinksTestVariants$outboundSchema, BulkUpdateLinksTestVariants$, Data$inboundSchema2, Data$outboundSchema2, Data$2, BulkUpdateLinksRequestBody$inboundSchema, BulkUpdateLinksRequestBody$outboundSchema, BulkUpdateLinksRequestBody$;
|
|
49446
49467
|
var init_bulkupdatelinks = __esm(() => {
|
|
49447
|
-
|
|
49468
|
+
init_esm();
|
|
49448
49469
|
init_primitives();
|
|
49449
49470
|
init_components();
|
|
49450
49471
|
BulkUpdateLinksTagIds$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -49584,7 +49605,7 @@ var init_bulkupdatelinks = __esm(() => {
|
|
|
49584
49605
|
// src/models/operations/createcustomer.ts
|
|
49585
49606
|
var CreateCustomerType, CreateCustomerRequestBody$inboundSchema, CreateCustomerRequestBody$outboundSchema, CreateCustomerRequestBody$, CreateCustomerLink$inboundSchema, CreateCustomerLink$outboundSchema, CreateCustomerLink$, CreateCustomerPartner$inboundSchema, CreateCustomerPartner$outboundSchema, CreateCustomerPartner$, CreateCustomerType$inboundSchema, CreateCustomerType$outboundSchema, CreateCustomerType$, CreateCustomerDiscount$inboundSchema, CreateCustomerDiscount$outboundSchema, CreateCustomerDiscount$, CreateCustomerResponseBody$inboundSchema, CreateCustomerResponseBody$outboundSchema, CreateCustomerResponseBody$;
|
|
49586
49607
|
var init_createcustomer = __esm(() => {
|
|
49587
|
-
|
|
49608
|
+
init_esm();
|
|
49588
49609
|
CreateCustomerType = {
|
|
49589
49610
|
Percentage: "percentage",
|
|
49590
49611
|
Flat: "flat"
|
|
@@ -49710,7 +49731,7 @@ var init_createcustomer = __esm(() => {
|
|
|
49710
49731
|
// src/models/operations/createdomain.ts
|
|
49711
49732
|
var CreateDomainRequestBody$inboundSchema, CreateDomainRequestBody$outboundSchema, CreateDomainRequestBody$;
|
|
49712
49733
|
var init_createdomain = __esm(() => {
|
|
49713
|
-
|
|
49734
|
+
init_esm();
|
|
49714
49735
|
CreateDomainRequestBody$inboundSchema = objectType({
|
|
49715
49736
|
slug: stringType(),
|
|
49716
49737
|
expiredUrl: nullableType(stringType()).optional(),
|
|
@@ -49740,7 +49761,7 @@ var init_createdomain = __esm(() => {
|
|
|
49740
49761
|
// src/models/operations/createfolder.ts
|
|
49741
49762
|
var AccessLevel2, AccessLevel$inboundSchema2, AccessLevel$outboundSchema2, AccessLevel$2, CreateFolderRequestBody$inboundSchema, CreateFolderRequestBody$outboundSchema, CreateFolderRequestBody$;
|
|
49742
49763
|
var init_createfolder = __esm(() => {
|
|
49743
|
-
|
|
49764
|
+
init_esm();
|
|
49744
49765
|
AccessLevel2 = {
|
|
49745
49766
|
Write: "write",
|
|
49746
49767
|
Read: "read"
|
|
@@ -49768,7 +49789,7 @@ var init_createfolder = __esm(() => {
|
|
|
49768
49789
|
// src/models/operations/createlink.ts
|
|
49769
49790
|
var TagIds$inboundSchema, TagIds$outboundSchema, TagIds$, TagNames$inboundSchema, TagNames$outboundSchema, TagNames$, TestVariants$inboundSchema2, TestVariants$outboundSchema2, TestVariants$2, CreateLinkRequestBody$inboundSchema, CreateLinkRequestBody$outboundSchema, CreateLinkRequestBody$;
|
|
49770
49791
|
var init_createlink = __esm(() => {
|
|
49771
|
-
|
|
49792
|
+
init_esm();
|
|
49772
49793
|
init_primitives();
|
|
49773
49794
|
init_components();
|
|
49774
49795
|
TagIds$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -49902,7 +49923,7 @@ var init_createlink = __esm(() => {
|
|
|
49902
49923
|
// src/models/operations/createpartner.ts
|
|
49903
49924
|
var Country2, CreatePartnerStatus, Country$inboundSchema2, Country$outboundSchema2, Country$2, CreatePartnerTagIds$inboundSchema, CreatePartnerTagIds$outboundSchema, CreatePartnerTagIds$, CreatePartnerTagNames$inboundSchema, CreatePartnerTagNames$outboundSchema, CreatePartnerTagNames$, CreatePartnerTestVariants$inboundSchema, CreatePartnerTestVariants$outboundSchema, CreatePartnerTestVariants$, LinkProps$inboundSchema, LinkProps$outboundSchema, LinkProps$, CreatePartnerRequestBody$inboundSchema, CreatePartnerRequestBody$outboundSchema, CreatePartnerRequestBody$, CreatePartnerStatus$inboundSchema, CreatePartnerStatus$outboundSchema, CreatePartnerStatus$, CreatePartnerLink$inboundSchema, CreatePartnerLink$outboundSchema, CreatePartnerLink$, CreatePartnerResponseBody$inboundSchema, CreatePartnerResponseBody$outboundSchema, CreatePartnerResponseBody$;
|
|
49904
49925
|
var init_createpartner = __esm(() => {
|
|
49905
|
-
|
|
49926
|
+
init_esm();
|
|
49906
49927
|
init_primitives();
|
|
49907
49928
|
Country2 = {
|
|
49908
49929
|
Af: "AF",
|
|
@@ -50399,7 +50420,7 @@ var init_createpartner = __esm(() => {
|
|
|
50399
50420
|
// src/models/operations/createpartnerlink.ts
|
|
50400
50421
|
var CreatePartnerLinkTagIds$inboundSchema, CreatePartnerLinkTagIds$outboundSchema, CreatePartnerLinkTagIds$, CreatePartnerLinkTagNames$inboundSchema, CreatePartnerLinkTagNames$outboundSchema, CreatePartnerLinkTagNames$, CreatePartnerLinkTestVariants$inboundSchema, CreatePartnerLinkTestVariants$outboundSchema, CreatePartnerLinkTestVariants$, CreatePartnerLinkLinkProps$inboundSchema, CreatePartnerLinkLinkProps$outboundSchema, CreatePartnerLinkLinkProps$, CreatePartnerLinkRequestBody$inboundSchema, CreatePartnerLinkRequestBody$outboundSchema, CreatePartnerLinkRequestBody$;
|
|
50401
50422
|
var init_createpartnerlink = __esm(() => {
|
|
50402
|
-
|
|
50423
|
+
init_esm();
|
|
50403
50424
|
init_primitives();
|
|
50404
50425
|
CreatePartnerLinkTagIds$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
50405
50426
|
CreatePartnerLinkTagIds$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -50534,7 +50555,7 @@ var init_createpartnerlink = __esm(() => {
|
|
|
50534
50555
|
// src/models/operations/createreferralsembedtoken.ts
|
|
50535
50556
|
var CreateReferralsEmbedTokenCountry, CreateReferralsEmbedTokenCountry$inboundSchema, CreateReferralsEmbedTokenCountry$outboundSchema, CreateReferralsEmbedTokenCountry$, CreateReferralsEmbedTokenTagIds$inboundSchema, CreateReferralsEmbedTokenTagIds$outboundSchema, CreateReferralsEmbedTokenTagIds$, CreateReferralsEmbedTokenTagNames$inboundSchema, CreateReferralsEmbedTokenTagNames$outboundSchema, CreateReferralsEmbedTokenTagNames$, CreateReferralsEmbedTokenTestVariants$inboundSchema, CreateReferralsEmbedTokenTestVariants$outboundSchema, CreateReferralsEmbedTokenTestVariants$, CreateReferralsEmbedTokenLinkProps$inboundSchema, CreateReferralsEmbedTokenLinkProps$outboundSchema, CreateReferralsEmbedTokenLinkProps$, Partner$inboundSchema, Partner$outboundSchema, Partner$, CreateReferralsEmbedTokenRequestBody$inboundSchema, CreateReferralsEmbedTokenRequestBody$outboundSchema, CreateReferralsEmbedTokenRequestBody$, CreateReferralsEmbedTokenResponseBody$inboundSchema, CreateReferralsEmbedTokenResponseBody$outboundSchema, CreateReferralsEmbedTokenResponseBody$;
|
|
50536
50557
|
var init_createreferralsembedtoken = __esm(() => {
|
|
50537
|
-
|
|
50558
|
+
init_esm();
|
|
50538
50559
|
init_primitives();
|
|
50539
50560
|
CreateReferralsEmbedTokenCountry = {
|
|
50540
50561
|
Af: "AF",
|
|
@@ -50957,7 +50978,7 @@ var init_createreferralsembedtoken = __esm(() => {
|
|
|
50957
50978
|
// src/models/operations/createtag.ts
|
|
50958
50979
|
var Color2, Color$inboundSchema2, Color$outboundSchema2, Color$2, CreateTagRequestBody$inboundSchema, CreateTagRequestBody$outboundSchema, CreateTagRequestBody$;
|
|
50959
50980
|
var init_createtag = __esm(() => {
|
|
50960
|
-
|
|
50981
|
+
init_esm();
|
|
50961
50982
|
Color2 = {
|
|
50962
50983
|
Red: "red",
|
|
50963
50984
|
Yellow: "yellow",
|
|
@@ -50992,7 +51013,7 @@ var init_createtag = __esm(() => {
|
|
|
50992
51013
|
// src/models/operations/deletecustomer.ts
|
|
50993
51014
|
var DeleteCustomerRequest$inboundSchema, DeleteCustomerRequest$outboundSchema, DeleteCustomerRequest$, DeleteCustomerResponseBody$inboundSchema, DeleteCustomerResponseBody$outboundSchema, DeleteCustomerResponseBody$;
|
|
50994
51015
|
var init_deletecustomer = __esm(() => {
|
|
50995
|
-
|
|
51016
|
+
init_esm();
|
|
50996
51017
|
DeleteCustomerRequest$inboundSchema = objectType({
|
|
50997
51018
|
id: stringType()
|
|
50998
51019
|
});
|
|
@@ -51018,7 +51039,7 @@ var init_deletecustomer = __esm(() => {
|
|
|
51018
51039
|
// src/models/operations/deletedomain.ts
|
|
51019
51040
|
var DeleteDomainRequest$inboundSchema, DeleteDomainRequest$outboundSchema, DeleteDomainRequest$, DeleteDomainResponseBody$inboundSchema, DeleteDomainResponseBody$outboundSchema, DeleteDomainResponseBody$;
|
|
51020
51041
|
var init_deletedomain = __esm(() => {
|
|
51021
|
-
|
|
51042
|
+
init_esm();
|
|
51022
51043
|
DeleteDomainRequest$inboundSchema = objectType({
|
|
51023
51044
|
slug: stringType()
|
|
51024
51045
|
});
|
|
@@ -51044,7 +51065,7 @@ var init_deletedomain = __esm(() => {
|
|
|
51044
51065
|
// src/models/operations/deletefolder.ts
|
|
51045
51066
|
var DeleteFolderRequest$inboundSchema, DeleteFolderRequest$outboundSchema, DeleteFolderRequest$, DeleteFolderResponseBody$inboundSchema, DeleteFolderResponseBody$outboundSchema, DeleteFolderResponseBody$;
|
|
51046
51067
|
var init_deletefolder = __esm(() => {
|
|
51047
|
-
|
|
51068
|
+
init_esm();
|
|
51048
51069
|
DeleteFolderRequest$inboundSchema = objectType({
|
|
51049
51070
|
id: stringType()
|
|
51050
51071
|
});
|
|
@@ -51070,7 +51091,7 @@ var init_deletefolder = __esm(() => {
|
|
|
51070
51091
|
// src/models/operations/deletelink.ts
|
|
51071
51092
|
var DeleteLinkRequest$inboundSchema, DeleteLinkRequest$outboundSchema, DeleteLinkRequest$, DeleteLinkResponseBody$inboundSchema, DeleteLinkResponseBody$outboundSchema, DeleteLinkResponseBody$;
|
|
51072
51093
|
var init_deletelink = __esm(() => {
|
|
51073
|
-
|
|
51094
|
+
init_esm();
|
|
51074
51095
|
DeleteLinkRequest$inboundSchema = objectType({
|
|
51075
51096
|
linkId: stringType()
|
|
51076
51097
|
});
|
|
@@ -51096,7 +51117,7 @@ var init_deletelink = __esm(() => {
|
|
|
51096
51117
|
// src/models/operations/deletetag.ts
|
|
51097
51118
|
var DeleteTagRequest$inboundSchema, DeleteTagRequest$outboundSchema, DeleteTagRequest$, DeleteTagResponseBody$inboundSchema, DeleteTagResponseBody$outboundSchema, DeleteTagResponseBody$;
|
|
51098
51119
|
var init_deletetag = __esm(() => {
|
|
51099
|
-
|
|
51120
|
+
init_esm();
|
|
51100
51121
|
DeleteTagRequest$inboundSchema = objectType({
|
|
51101
51122
|
id: stringType()
|
|
51102
51123
|
});
|
|
@@ -51122,7 +51143,7 @@ var init_deletetag = __esm(() => {
|
|
|
51122
51143
|
// src/models/operations/getcustomer.ts
|
|
51123
51144
|
var GetCustomerType, GetCustomerRequest$inboundSchema, GetCustomerRequest$outboundSchema, GetCustomerRequest$, GetCustomerLink$inboundSchema, GetCustomerLink$outboundSchema, GetCustomerLink$, GetCustomerPartner$inboundSchema, GetCustomerPartner$outboundSchema, GetCustomerPartner$, GetCustomerType$inboundSchema, GetCustomerType$outboundSchema, GetCustomerType$, GetCustomerDiscount$inboundSchema, GetCustomerDiscount$outboundSchema, GetCustomerDiscount$, GetCustomerResponseBody$inboundSchema, GetCustomerResponseBody$outboundSchema, GetCustomerResponseBody$;
|
|
51124
51145
|
var init_getcustomer = __esm(() => {
|
|
51125
|
-
|
|
51146
|
+
init_esm();
|
|
51126
51147
|
GetCustomerType = {
|
|
51127
51148
|
Percentage: "percentage",
|
|
51128
51149
|
Flat: "flat"
|
|
@@ -51244,7 +51265,7 @@ var init_getcustomer = __esm(() => {
|
|
|
51244
51265
|
// src/models/operations/getcustomers.ts
|
|
51245
51266
|
var GetCustomersQueryParamSortBy, GetCustomersQueryParamSortOrder, GetCustomersType, GetCustomersQueryParamSortBy$inboundSchema, GetCustomersQueryParamSortBy$outboundSchema, GetCustomersQueryParamSortBy$, GetCustomersQueryParamSortOrder$inboundSchema, GetCustomersQueryParamSortOrder$outboundSchema, GetCustomersQueryParamSortOrder$, GetCustomersRequest$inboundSchema, GetCustomersRequest$outboundSchema, GetCustomersRequest$, GetCustomersLink$inboundSchema, GetCustomersLink$outboundSchema, GetCustomersLink$, GetCustomersPartner$inboundSchema, GetCustomersPartner$outboundSchema, GetCustomersPartner$, GetCustomersType$inboundSchema, GetCustomersType$outboundSchema, GetCustomersType$, Discount$inboundSchema, Discount$outboundSchema, Discount$, GetCustomersResponseBody$inboundSchema, GetCustomersResponseBody$outboundSchema, GetCustomersResponseBody$;
|
|
51246
51267
|
var init_getcustomers = __esm(() => {
|
|
51247
|
-
|
|
51268
|
+
init_esm();
|
|
51248
51269
|
GetCustomersQueryParamSortBy = {
|
|
51249
51270
|
CreatedAt: "createdAt",
|
|
51250
51271
|
SaleAmount: "saleAmount"
|
|
@@ -51402,7 +51423,7 @@ var init_getcustomers = __esm(() => {
|
|
|
51402
51423
|
// src/models/operations/getlinkinfo.ts
|
|
51403
51424
|
var GetLinkInfoRequest$inboundSchema, GetLinkInfoRequest$outboundSchema, GetLinkInfoRequest$;
|
|
51404
51425
|
var init_getlinkinfo = __esm(() => {
|
|
51405
|
-
|
|
51426
|
+
init_esm();
|
|
51406
51427
|
GetLinkInfoRequest$inboundSchema = objectType({
|
|
51407
51428
|
domain: stringType().optional(),
|
|
51408
51429
|
key: stringType().optional(),
|
|
@@ -51424,7 +51445,7 @@ var init_getlinkinfo = __esm(() => {
|
|
|
51424
51445
|
// src/models/operations/getlinks.ts
|
|
51425
51446
|
var SortBy, SortOrder, Sort, QueryParamTagIds$inboundSchema, QueryParamTagIds$outboundSchema, QueryParamTagIds$, QueryParamTagNames$inboundSchema, QueryParamTagNames$outboundSchema, QueryParamTagNames$, SortBy$inboundSchema, SortBy$outboundSchema, SortBy$, SortOrder$inboundSchema, SortOrder$outboundSchema, SortOrder$, Sort$inboundSchema, Sort$outboundSchema, Sort$, GetLinksRequest$inboundSchema, GetLinksRequest$outboundSchema, GetLinksRequest$, GetLinksResponse$inboundSchema, GetLinksResponse$outboundSchema, GetLinksResponse$;
|
|
51426
51447
|
var init_getlinks = __esm(() => {
|
|
51427
|
-
|
|
51448
|
+
init_esm();
|
|
51428
51449
|
init_primitives();
|
|
51429
51450
|
init_components();
|
|
51430
51451
|
SortBy = {
|
|
@@ -51534,7 +51555,7 @@ var init_getlinks = __esm(() => {
|
|
|
51534
51555
|
// src/models/operations/getlinkscount.ts
|
|
51535
51556
|
var Four, Three2, Two2, One2, GetLinksCountQueryParamTagIds$inboundSchema, GetLinksCountQueryParamTagIds$outboundSchema, GetLinksCountQueryParamTagIds$, GetLinksCountQueryParamTagNames$inboundSchema, GetLinksCountQueryParamTagNames$outboundSchema, GetLinksCountQueryParamTagNames$, Four$inboundSchema, Four$outboundSchema, Four$, Three$inboundSchema2, Three$outboundSchema2, Three$2, Two$inboundSchema2, Two$outboundSchema2, Two$2, One$inboundSchema2, One$outboundSchema2, One$2, GroupBy$inboundSchema, GroupBy$outboundSchema, GroupBy$, GetLinksCountRequest$inboundSchema, GetLinksCountRequest$outboundSchema, GetLinksCountRequest$;
|
|
51536
51557
|
var init_getlinkscount = __esm(() => {
|
|
51537
|
-
|
|
51558
|
+
init_esm();
|
|
51538
51559
|
Four = {
|
|
51539
51560
|
FolderId: "folderId"
|
|
51540
51561
|
};
|
|
@@ -51644,7 +51665,7 @@ var init_getlinkscount = __esm(() => {
|
|
|
51644
51665
|
// src/models/operations/getqrcode.ts
|
|
51645
51666
|
var Level, Level$inboundSchema, Level$outboundSchema, Level$, GetQRCodeRequest$inboundSchema, GetQRCodeRequest$outboundSchema, GetQRCodeRequest$;
|
|
51646
51667
|
var init_getqrcode = __esm(() => {
|
|
51647
|
-
|
|
51668
|
+
init_esm();
|
|
51648
51669
|
Level = {
|
|
51649
51670
|
L: "L",
|
|
51650
51671
|
M: "M",
|
|
@@ -51688,7 +51709,7 @@ var init_getqrcode = __esm(() => {
|
|
|
51688
51709
|
// src/models/operations/gettags.ts
|
|
51689
51710
|
var GetTagsQueryParamSortBy, GetTagsQueryParamSortOrder, GetTagsQueryParamSortBy$inboundSchema, GetTagsQueryParamSortBy$outboundSchema, GetTagsQueryParamSortBy$, GetTagsQueryParamSortOrder$inboundSchema, GetTagsQueryParamSortOrder$outboundSchema, GetTagsQueryParamSortOrder$, Ids$inboundSchema, Ids$outboundSchema, Ids$, GetTagsRequest$inboundSchema, GetTagsRequest$outboundSchema, GetTagsRequest$;
|
|
51690
51711
|
var init_gettags = __esm(() => {
|
|
51691
|
-
|
|
51712
|
+
init_esm();
|
|
51692
51713
|
GetTagsQueryParamSortBy = {
|
|
51693
51714
|
Name: "name",
|
|
51694
51715
|
CreatedAt: "createdAt"
|
|
@@ -51740,7 +51761,7 @@ var init_gettags = __esm(() => {
|
|
|
51740
51761
|
// src/models/operations/getworkspace.ts
|
|
51741
51762
|
var GetWorkspaceRequest$inboundSchema, GetWorkspaceRequest$outboundSchema, GetWorkspaceRequest$;
|
|
51742
51763
|
var init_getworkspace = __esm(() => {
|
|
51743
|
-
|
|
51764
|
+
init_esm();
|
|
51744
51765
|
GetWorkspaceRequest$inboundSchema = objectType({
|
|
51745
51766
|
idOrSlug: stringType()
|
|
51746
51767
|
});
|
|
@@ -51756,7 +51777,7 @@ var init_getworkspace = __esm(() => {
|
|
|
51756
51777
|
// src/models/operations/listcommissions.ts
|
|
51757
51778
|
var Type2, QueryParamStatus, ListCommissionsQueryParamSortBy, ListCommissionsQueryParamSortOrder, ListCommissionsQueryParamInterval, ListCommissionsType, ListCommissionsStatus, Type$inboundSchema2, Type$outboundSchema2, Type$2, QueryParamStatus$inboundSchema, QueryParamStatus$outboundSchema, QueryParamStatus$, ListCommissionsQueryParamSortBy$inboundSchema, ListCommissionsQueryParamSortBy$outboundSchema, ListCommissionsQueryParamSortBy$, ListCommissionsQueryParamSortOrder$inboundSchema, ListCommissionsQueryParamSortOrder$outboundSchema, ListCommissionsQueryParamSortOrder$, ListCommissionsQueryParamInterval$inboundSchema, ListCommissionsQueryParamInterval$outboundSchema, ListCommissionsQueryParamInterval$, ListCommissionsRequest$inboundSchema, ListCommissionsRequest$outboundSchema, ListCommissionsRequest$, ListCommissionsType$inboundSchema, ListCommissionsType$outboundSchema, ListCommissionsType$, ListCommissionsStatus$inboundSchema, ListCommissionsStatus$outboundSchema, ListCommissionsStatus$, ListCommissionsResponseBody$inboundSchema, ListCommissionsResponseBody$outboundSchema, ListCommissionsResponseBody$;
|
|
51758
51779
|
var init_listcommissions = __esm(() => {
|
|
51759
|
-
|
|
51780
|
+
init_esm();
|
|
51760
51781
|
Type2 = {
|
|
51761
51782
|
Click: "click",
|
|
51762
51783
|
Lead: "lead",
|
|
@@ -51911,7 +51932,7 @@ var init_listcommissions = __esm(() => {
|
|
|
51911
51932
|
// src/models/operations/listdomains.ts
|
|
51912
51933
|
var ListDomainsRequest$inboundSchema, ListDomainsRequest$outboundSchema, ListDomainsRequest$, ListDomainsResponse$inboundSchema, ListDomainsResponse$outboundSchema, ListDomainsResponse$;
|
|
51913
51934
|
var init_listdomains = __esm(() => {
|
|
51914
|
-
|
|
51935
|
+
init_esm();
|
|
51915
51936
|
init_primitives();
|
|
51916
51937
|
init_components();
|
|
51917
51938
|
ListDomainsRequest$inboundSchema = objectType({
|
|
@@ -51953,7 +51974,7 @@ var init_listdomains = __esm(() => {
|
|
|
51953
51974
|
// src/models/operations/listevents.ts
|
|
51954
51975
|
var QueryParamEvent, QueryParamInterval, QueryParamTrigger, QueryParamSortOrder, QueryParamSortBy, Order, QueryParamEvent$inboundSchema, QueryParamEvent$outboundSchema, QueryParamEvent$, QueryParamInterval$inboundSchema, QueryParamInterval$outboundSchema, QueryParamInterval$, QueryParamTrigger$inboundSchema, QueryParamTrigger$outboundSchema, QueryParamTrigger$, ListEventsQueryParamTagIds$inboundSchema, ListEventsQueryParamTagIds$outboundSchema, ListEventsQueryParamTagIds$, QueryParamSortOrder$inboundSchema, QueryParamSortOrder$outboundSchema, QueryParamSortOrder$, QueryParamSortBy$inboundSchema, QueryParamSortBy$outboundSchema, QueryParamSortBy$, Order$inboundSchema, Order$outboundSchema, Order$, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsRequest$, ListEventsResponseBody$inboundSchema, ListEventsResponseBody$outboundSchema, ListEventsResponseBody$;
|
|
51955
51976
|
var init_listevents = __esm(() => {
|
|
51956
|
-
|
|
51977
|
+
init_esm();
|
|
51957
51978
|
init_primitives();
|
|
51958
51979
|
init_components();
|
|
51959
51980
|
QueryParamEvent = {
|
|
@@ -52162,16 +52183,14 @@ var init_listevents = __esm(() => {
|
|
|
52162
52183
|
// src/models/operations/listfolders.ts
|
|
52163
52184
|
var ListFoldersRequest$inboundSchema, ListFoldersRequest$outboundSchema, ListFoldersRequest$;
|
|
52164
52185
|
var init_listfolders = __esm(() => {
|
|
52165
|
-
|
|
52186
|
+
init_esm();
|
|
52166
52187
|
ListFoldersRequest$inboundSchema = objectType({
|
|
52167
52188
|
search: stringType().optional(),
|
|
52168
|
-
includeLinkCount: booleanType().optional(),
|
|
52169
52189
|
page: numberType().default(1),
|
|
52170
52190
|
pageSize: numberType().default(50)
|
|
52171
52191
|
});
|
|
52172
52192
|
ListFoldersRequest$outboundSchema = objectType({
|
|
52173
52193
|
search: stringType().optional(),
|
|
52174
|
-
includeLinkCount: booleanType().optional(),
|
|
52175
52194
|
page: numberType().default(1),
|
|
52176
52195
|
pageSize: numberType().default(50)
|
|
52177
52196
|
});
|
|
@@ -52184,7 +52203,7 @@ var init_listfolders = __esm(() => {
|
|
|
52184
52203
|
// src/models/operations/retrieveanalytics.ts
|
|
52185
52204
|
var Event2, QueryParamGroupBy, Interval, Trigger2, Event$inboundSchema2, Event$outboundSchema2, Event$2, QueryParamGroupBy$inboundSchema, QueryParamGroupBy$outboundSchema, QueryParamGroupBy$, Interval$inboundSchema, Interval$outboundSchema, Interval$, Trigger$inboundSchema2, Trigger$outboundSchema2, Trigger$2, RetrieveAnalyticsQueryParamTagIds$inboundSchema, RetrieveAnalyticsQueryParamTagIds$outboundSchema, RetrieveAnalyticsQueryParamTagIds$, RetrieveAnalyticsRequest$inboundSchema, RetrieveAnalyticsRequest$outboundSchema, RetrieveAnalyticsRequest$, RetrieveAnalyticsResponseBody$inboundSchema, RetrieveAnalyticsResponseBody$outboundSchema, RetrieveAnalyticsResponseBody$;
|
|
52186
52205
|
var init_retrieveanalytics = __esm(() => {
|
|
52187
|
-
|
|
52206
|
+
init_esm();
|
|
52188
52207
|
init_primitives();
|
|
52189
52208
|
init_components();
|
|
52190
52209
|
Event2 = {
|
|
@@ -52395,7 +52414,7 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
52395
52414
|
// src/models/operations/retrievelinks.ts
|
|
52396
52415
|
var RetrieveLinksRequest$inboundSchema, RetrieveLinksRequest$outboundSchema, RetrieveLinksRequest$, Link$inboundSchema2, Link$outboundSchema2, Link$2;
|
|
52397
52416
|
var init_retrievelinks = __esm(() => {
|
|
52398
|
-
|
|
52417
|
+
init_esm();
|
|
52399
52418
|
RetrieveLinksRequest$inboundSchema = objectType({
|
|
52400
52419
|
programId: stringType(),
|
|
52401
52420
|
partnerId: stringType().optional(),
|
|
@@ -52441,7 +52460,7 @@ var init_retrievelinks = __esm(() => {
|
|
|
52441
52460
|
// src/models/operations/retrievepartneranalytics.ts
|
|
52442
52461
|
var RetrievePartnerAnalyticsQueryParamInterval, RetrievePartnerAnalyticsQueryParamGroupBy, RetrievePartnerAnalyticsQueryParamInterval$inboundSchema, RetrievePartnerAnalyticsQueryParamInterval$outboundSchema, RetrievePartnerAnalyticsQueryParamInterval$, RetrievePartnerAnalyticsQueryParamGroupBy$inboundSchema, RetrievePartnerAnalyticsQueryParamGroupBy$outboundSchema, RetrievePartnerAnalyticsQueryParamGroupBy$, RetrievePartnerAnalyticsRequest$inboundSchema, RetrievePartnerAnalyticsRequest$outboundSchema, RetrievePartnerAnalyticsRequest$, RetrievePartnerAnalyticsResponseBody$inboundSchema, RetrievePartnerAnalyticsResponseBody$outboundSchema, RetrievePartnerAnalyticsResponseBody$;
|
|
52443
52462
|
var init_retrievepartneranalytics = __esm(() => {
|
|
52444
|
-
|
|
52463
|
+
init_esm();
|
|
52445
52464
|
init_components();
|
|
52446
52465
|
RetrievePartnerAnalyticsQueryParamInterval = {
|
|
52447
52466
|
TwentyFourh: "24h",
|
|
@@ -52514,7 +52533,7 @@ var init_retrievepartneranalytics = __esm(() => {
|
|
|
52514
52533
|
// src/models/operations/tracklead.ts
|
|
52515
52534
|
var Mode, Mode$inboundSchema, Mode$outboundSchema, Mode$, TrackLeadRequestBody$inboundSchema, TrackLeadRequestBody$outboundSchema, TrackLeadRequestBody$, Click$inboundSchema2, Click$outboundSchema2, Click$2, Customer$inboundSchema2, Customer$outboundSchema2, Customer$2, TrackLeadResponseBody$inboundSchema, TrackLeadResponseBody$outboundSchema, TrackLeadResponseBody$;
|
|
52516
52535
|
var init_tracklead = __esm(() => {
|
|
52517
|
-
|
|
52536
|
+
init_esm();
|
|
52518
52537
|
Mode = {
|
|
52519
52538
|
Async: "async",
|
|
52520
52539
|
Wait: "wait"
|
|
@@ -52594,7 +52613,7 @@ var init_tracklead = __esm(() => {
|
|
|
52594
52613
|
// src/models/operations/tracksale.ts
|
|
52595
52614
|
var PaymentProcessor2, PaymentProcessor$inboundSchema2, PaymentProcessor$outboundSchema2, PaymentProcessor$2, TrackSaleRequestBody$inboundSchema, TrackSaleRequestBody$outboundSchema, TrackSaleRequestBody$, TrackSaleCustomer$inboundSchema, TrackSaleCustomer$outboundSchema, TrackSaleCustomer$, Sale$inboundSchema2, Sale$outboundSchema2, Sale$2, TrackSaleResponseBody$inboundSchema, TrackSaleResponseBody$outboundSchema, TrackSaleResponseBody$;
|
|
52596
52615
|
var init_tracksale = __esm(() => {
|
|
52597
|
-
|
|
52616
|
+
init_esm();
|
|
52598
52617
|
PaymentProcessor2 = {
|
|
52599
52618
|
Stripe: "stripe",
|
|
52600
52619
|
Shopify: "shopify",
|
|
@@ -52687,7 +52706,7 @@ var init_tracksale = __esm(() => {
|
|
|
52687
52706
|
// src/models/operations/updatecommission.ts
|
|
52688
52707
|
var Status2, UpdateCommissionType, UpdateCommissionStatus, Status$inboundSchema2, Status$outboundSchema2, Status$2, UpdateCommissionRequestBody$inboundSchema, UpdateCommissionRequestBody$outboundSchema, UpdateCommissionRequestBody$, UpdateCommissionRequest$inboundSchema, UpdateCommissionRequest$outboundSchema, UpdateCommissionRequest$, UpdateCommissionType$inboundSchema, UpdateCommissionType$outboundSchema, UpdateCommissionType$, UpdateCommissionStatus$inboundSchema, UpdateCommissionStatus$outboundSchema, UpdateCommissionStatus$, UpdateCommissionResponseBody$inboundSchema, UpdateCommissionResponseBody$outboundSchema, UpdateCommissionResponseBody$;
|
|
52689
52708
|
var init_updatecommission = __esm(() => {
|
|
52690
|
-
|
|
52709
|
+
init_esm();
|
|
52691
52710
|
init_primitives();
|
|
52692
52711
|
Status2 = {
|
|
52693
52712
|
Refunded: "refunded",
|
|
@@ -52794,7 +52813,7 @@ var init_updatecommission = __esm(() => {
|
|
|
52794
52813
|
// src/models/operations/updatecustomer.ts
|
|
52795
52814
|
var UpdateCustomerType, UpdateCustomerRequestBody$inboundSchema, UpdateCustomerRequestBody$outboundSchema, UpdateCustomerRequestBody$, UpdateCustomerRequest$inboundSchema, UpdateCustomerRequest$outboundSchema, UpdateCustomerRequest$, UpdateCustomerLink$inboundSchema, UpdateCustomerLink$outboundSchema, UpdateCustomerLink$, UpdateCustomerPartner$inboundSchema, UpdateCustomerPartner$outboundSchema, UpdateCustomerPartner$, UpdateCustomerType$inboundSchema, UpdateCustomerType$outboundSchema, UpdateCustomerType$, UpdateCustomerDiscount$inboundSchema, UpdateCustomerDiscount$outboundSchema, UpdateCustomerDiscount$, UpdateCustomerResponseBody$inboundSchema, UpdateCustomerResponseBody$outboundSchema, UpdateCustomerResponseBody$;
|
|
52796
52815
|
var init_updatecustomer = __esm(() => {
|
|
52797
|
-
|
|
52816
|
+
init_esm();
|
|
52798
52817
|
init_primitives();
|
|
52799
52818
|
UpdateCustomerType = {
|
|
52800
52819
|
Percentage: "percentage",
|
|
@@ -52943,7 +52962,7 @@ var init_updatecustomer = __esm(() => {
|
|
|
52943
52962
|
// src/models/operations/updatedomain.ts
|
|
52944
52963
|
var UpdateDomainRequestBody$inboundSchema, UpdateDomainRequestBody$outboundSchema, UpdateDomainRequestBody$, UpdateDomainRequest$inboundSchema, UpdateDomainRequest$outboundSchema, UpdateDomainRequest$;
|
|
52945
52964
|
var init_updatedomain = __esm(() => {
|
|
52946
|
-
|
|
52965
|
+
init_esm();
|
|
52947
52966
|
init_primitives();
|
|
52948
52967
|
UpdateDomainRequestBody$inboundSchema = objectType({
|
|
52949
52968
|
slug: stringType().optional(),
|
|
@@ -52994,7 +53013,7 @@ var init_updatedomain = __esm(() => {
|
|
|
52994
53013
|
// src/models/operations/updatefolder.ts
|
|
52995
53014
|
var UpdateFolderAccessLevel, UpdateFolderAccessLevel$inboundSchema, UpdateFolderAccessLevel$outboundSchema, UpdateFolderAccessLevel$, UpdateFolderRequestBody$inboundSchema, UpdateFolderRequestBody$outboundSchema, UpdateFolderRequestBody$, UpdateFolderRequest$inboundSchema, UpdateFolderRequest$outboundSchema, UpdateFolderRequest$;
|
|
52996
53015
|
var init_updatefolder = __esm(() => {
|
|
52997
|
-
|
|
53016
|
+
init_esm();
|
|
52998
53017
|
init_primitives();
|
|
52999
53018
|
UpdateFolderAccessLevel = {
|
|
53000
53019
|
Write: "write",
|
|
@@ -53043,7 +53062,7 @@ var init_updatefolder = __esm(() => {
|
|
|
53043
53062
|
// src/models/operations/updatelink.ts
|
|
53044
53063
|
var UpdateLinkTagIds$inboundSchema, UpdateLinkTagIds$outboundSchema, UpdateLinkTagIds$, UpdateLinkTagNames$inboundSchema, UpdateLinkTagNames$outboundSchema, UpdateLinkTagNames$, UpdateLinkTestVariants$inboundSchema, UpdateLinkTestVariants$outboundSchema, UpdateLinkTestVariants$, UpdateLinkRequestBody$inboundSchema, UpdateLinkRequestBody$outboundSchema, UpdateLinkRequestBody$, UpdateLinkRequest$inboundSchema, UpdateLinkRequest$outboundSchema, UpdateLinkRequest$;
|
|
53045
53064
|
var init_updatelink = __esm(() => {
|
|
53046
|
-
|
|
53065
|
+
init_esm();
|
|
53047
53066
|
init_primitives();
|
|
53048
53067
|
init_components();
|
|
53049
53068
|
UpdateLinkTagIds$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -53197,7 +53216,7 @@ var init_updatelink = __esm(() => {
|
|
|
53197
53216
|
// src/models/operations/updatetag.ts
|
|
53198
53217
|
var UpdateTagColor, UpdateTagColor$inboundSchema, UpdateTagColor$outboundSchema, UpdateTagColor$, UpdateTagRequestBody$inboundSchema, UpdateTagRequestBody$outboundSchema, UpdateTagRequestBody$, UpdateTagRequest$inboundSchema, UpdateTagRequest$outboundSchema, UpdateTagRequest$;
|
|
53199
53218
|
var init_updatetag = __esm(() => {
|
|
53200
|
-
|
|
53219
|
+
init_esm();
|
|
53201
53220
|
init_primitives();
|
|
53202
53221
|
UpdateTagColor = {
|
|
53203
53222
|
Red: "red",
|
|
@@ -53253,7 +53272,7 @@ var init_updatetag = __esm(() => {
|
|
|
53253
53272
|
// src/models/operations/updateworkspace.ts
|
|
53254
53273
|
var UpdateWorkspaceRequestBody$inboundSchema, UpdateWorkspaceRequestBody$outboundSchema, UpdateWorkspaceRequestBody$, UpdateWorkspaceRequest$inboundSchema, UpdateWorkspaceRequest$outboundSchema, UpdateWorkspaceRequest$;
|
|
53255
53274
|
var init_updateworkspace = __esm(() => {
|
|
53256
|
-
|
|
53275
|
+
init_esm();
|
|
53257
53276
|
init_primitives();
|
|
53258
53277
|
UpdateWorkspaceRequestBody$inboundSchema = objectType({
|
|
53259
53278
|
name: stringType().optional(),
|
|
@@ -53298,7 +53317,7 @@ var init_updateworkspace = __esm(() => {
|
|
|
53298
53317
|
// src/models/operations/upsertlink.ts
|
|
53299
53318
|
var UpsertLinkTagIds$inboundSchema, UpsertLinkTagIds$outboundSchema, UpsertLinkTagIds$, UpsertLinkTagNames$inboundSchema, UpsertLinkTagNames$outboundSchema, UpsertLinkTagNames$, UpsertLinkTestVariants$inboundSchema, UpsertLinkTestVariants$outboundSchema, UpsertLinkTestVariants$, UpsertLinkRequestBody$inboundSchema, UpsertLinkRequestBody$outboundSchema, UpsertLinkRequestBody$;
|
|
53300
53319
|
var init_upsertlink = __esm(() => {
|
|
53301
|
-
|
|
53320
|
+
init_esm();
|
|
53302
53321
|
init_primitives();
|
|
53303
53322
|
init_components();
|
|
53304
53323
|
UpsertLinkTagIds$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -53432,7 +53451,7 @@ var init_upsertlink = __esm(() => {
|
|
|
53432
53451
|
// src/models/operations/upsertpartnerlink.ts
|
|
53433
53452
|
var UpsertPartnerLinkTagIds$inboundSchema, UpsertPartnerLinkTagIds$outboundSchema, UpsertPartnerLinkTagIds$, UpsertPartnerLinkTagNames$inboundSchema, UpsertPartnerLinkTagNames$outboundSchema, UpsertPartnerLinkTagNames$, UpsertPartnerLinkTestVariants$inboundSchema, UpsertPartnerLinkTestVariants$outboundSchema, UpsertPartnerLinkTestVariants$, UpsertPartnerLinkLinkProps$inboundSchema, UpsertPartnerLinkLinkProps$outboundSchema, UpsertPartnerLinkLinkProps$, UpsertPartnerLinkRequestBody$inboundSchema, UpsertPartnerLinkRequestBody$outboundSchema, UpsertPartnerLinkRequestBody$;
|
|
53434
53453
|
var init_upsertpartnerlink = __esm(() => {
|
|
53435
|
-
|
|
53454
|
+
init_esm();
|
|
53436
53455
|
init_primitives();
|
|
53437
53456
|
UpsertPartnerLinkTagIds$inboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
53438
53457
|
UpsertPartnerLinkTagIds$outboundSchema = unionType([stringType(), arrayType(stringType())]);
|
|
@@ -53752,7 +53771,7 @@ var init_analyticsRetrieve = __esm(() => {
|
|
|
53752
53771
|
init_schemas();
|
|
53753
53772
|
init_security();
|
|
53754
53773
|
init_url();
|
|
53755
|
-
|
|
53774
|
+
init_errors2();
|
|
53756
53775
|
init_operations();
|
|
53757
53776
|
init_async();
|
|
53758
53777
|
});
|
|
@@ -53874,14 +53893,14 @@ async function $do2(client, request, options) {
|
|
|
53874
53893
|
return [result, { status: "complete", request: req, response }];
|
|
53875
53894
|
}
|
|
53876
53895
|
var init_commissionsList = __esm(() => {
|
|
53877
|
-
|
|
53896
|
+
init_esm();
|
|
53878
53897
|
init_encodings();
|
|
53879
53898
|
init_matchers();
|
|
53880
53899
|
init_primitives();
|
|
53881
53900
|
init_schemas();
|
|
53882
53901
|
init_security();
|
|
53883
53902
|
init_url();
|
|
53884
|
-
|
|
53903
|
+
init_errors2();
|
|
53885
53904
|
init_operations();
|
|
53886
53905
|
init_async();
|
|
53887
53906
|
});
|
|
@@ -54000,7 +54019,7 @@ var init_commissionsUpdate = __esm(() => {
|
|
|
54000
54019
|
init_schemas();
|
|
54001
54020
|
init_security();
|
|
54002
54021
|
init_url();
|
|
54003
|
-
|
|
54022
|
+
init_errors2();
|
|
54004
54023
|
init_operations();
|
|
54005
54024
|
init_async();
|
|
54006
54025
|
});
|
|
@@ -54113,7 +54132,7 @@ var init_customersCreate = __esm(() => {
|
|
|
54113
54132
|
init_schemas();
|
|
54114
54133
|
init_security();
|
|
54115
54134
|
init_url();
|
|
54116
|
-
|
|
54135
|
+
init_errors2();
|
|
54117
54136
|
init_operations();
|
|
54118
54137
|
init_async();
|
|
54119
54138
|
});
|
|
@@ -54234,7 +54253,7 @@ var init_customersDelete = __esm(() => {
|
|
|
54234
54253
|
init_schemas();
|
|
54235
54254
|
init_security();
|
|
54236
54255
|
init_url();
|
|
54237
|
-
|
|
54256
|
+
init_errors2();
|
|
54238
54257
|
init_operations();
|
|
54239
54258
|
init_async();
|
|
54240
54259
|
});
|
|
@@ -54242,7 +54261,7 @@ var init_customersDelete = __esm(() => {
|
|
|
54242
54261
|
// src/mcp-server/tools/customersDelete.ts
|
|
54243
54262
|
var args5, tool$customersDelete;
|
|
54244
54263
|
var init_customersDelete2 = __esm(() => {
|
|
54245
|
-
|
|
54264
|
+
init_esm();
|
|
54246
54265
|
init_customersDelete();
|
|
54247
54266
|
init_tools();
|
|
54248
54267
|
args5 = {
|
|
@@ -54356,7 +54375,7 @@ var init_customersGet = __esm(() => {
|
|
|
54356
54375
|
init_schemas();
|
|
54357
54376
|
init_security();
|
|
54358
54377
|
init_url();
|
|
54359
|
-
|
|
54378
|
+
init_errors2();
|
|
54360
54379
|
init_operations();
|
|
54361
54380
|
init_async();
|
|
54362
54381
|
});
|
|
@@ -54475,14 +54494,14 @@ async function $do7(client, request, options) {
|
|
|
54475
54494
|
return [result, { status: "complete", request: req, response }];
|
|
54476
54495
|
}
|
|
54477
54496
|
var init_customersList = __esm(() => {
|
|
54478
|
-
|
|
54497
|
+
init_esm();
|
|
54479
54498
|
init_encodings();
|
|
54480
54499
|
init_matchers();
|
|
54481
54500
|
init_primitives();
|
|
54482
54501
|
init_schemas();
|
|
54483
54502
|
init_security();
|
|
54484
54503
|
init_url();
|
|
54485
|
-
|
|
54504
|
+
init_errors2();
|
|
54486
54505
|
init_operations();
|
|
54487
54506
|
init_async();
|
|
54488
54507
|
});
|
|
@@ -54605,7 +54624,7 @@ var init_customersUpdate = __esm(() => {
|
|
|
54605
54624
|
init_schemas();
|
|
54606
54625
|
init_security();
|
|
54607
54626
|
init_url();
|
|
54608
|
-
|
|
54627
|
+
init_errors2();
|
|
54609
54628
|
init_operations();
|
|
54610
54629
|
init_async();
|
|
54611
54630
|
});
|
|
@@ -54719,7 +54738,7 @@ var init_domainsCreate = __esm(() => {
|
|
|
54719
54738
|
init_security();
|
|
54720
54739
|
init_url();
|
|
54721
54740
|
init_components();
|
|
54722
|
-
|
|
54741
|
+
init_errors2();
|
|
54723
54742
|
init_operations();
|
|
54724
54743
|
init_async();
|
|
54725
54744
|
});
|
|
@@ -54840,7 +54859,7 @@ var init_domainsDelete = __esm(() => {
|
|
|
54840
54859
|
init_schemas();
|
|
54841
54860
|
init_security();
|
|
54842
54861
|
init_url();
|
|
54843
|
-
|
|
54862
|
+
init_errors2();
|
|
54844
54863
|
init_operations();
|
|
54845
54864
|
init_async();
|
|
54846
54865
|
});
|
|
@@ -54848,7 +54867,7 @@ var init_domainsDelete = __esm(() => {
|
|
|
54848
54867
|
// src/mcp-server/tools/domainsDelete.ts
|
|
54849
54868
|
var args10, tool$domainsDelete;
|
|
54850
54869
|
var init_domainsDelete2 = __esm(() => {
|
|
54851
|
-
|
|
54870
|
+
init_esm();
|
|
54852
54871
|
init_domainsDelete();
|
|
54853
54872
|
init_tools();
|
|
54854
54873
|
args10 = {
|
|
@@ -55022,7 +55041,7 @@ var init_domainsList = __esm(() => {
|
|
|
55022
55041
|
init_schemas();
|
|
55023
55042
|
init_security();
|
|
55024
55043
|
init_url();
|
|
55025
|
-
|
|
55044
|
+
init_errors2();
|
|
55026
55045
|
init_operations();
|
|
55027
55046
|
init_async();
|
|
55028
55047
|
init_operations2();
|
|
@@ -55147,7 +55166,7 @@ var init_domainsUpdate = __esm(() => {
|
|
|
55147
55166
|
init_security();
|
|
55148
55167
|
init_url();
|
|
55149
55168
|
init_components();
|
|
55150
|
-
|
|
55169
|
+
init_errors2();
|
|
55151
55170
|
init_operations();
|
|
55152
55171
|
init_async();
|
|
55153
55172
|
});
|
|
@@ -55155,7 +55174,7 @@ var init_domainsUpdate = __esm(() => {
|
|
|
55155
55174
|
// src/mcp-server/tools/domainsUpdate.ts
|
|
55156
55175
|
var args12, tool$domainsUpdate;
|
|
55157
55176
|
var init_domainsUpdate2 = __esm(() => {
|
|
55158
|
-
|
|
55177
|
+
init_esm();
|
|
55159
55178
|
init_domainsUpdate();
|
|
55160
55179
|
init_operations();
|
|
55161
55180
|
init_tools();
|
|
@@ -55262,7 +55281,7 @@ var init_embedTokensReferrals = __esm(() => {
|
|
|
55262
55281
|
init_schemas();
|
|
55263
55282
|
init_security();
|
|
55264
55283
|
init_url();
|
|
55265
|
-
|
|
55284
|
+
init_errors2();
|
|
55266
55285
|
init_operations();
|
|
55267
55286
|
init_async();
|
|
55268
55287
|
});
|
|
@@ -55410,14 +55429,14 @@ async function $do14(client, request, options) {
|
|
|
55410
55429
|
return [result, { status: "complete", request: req, response }];
|
|
55411
55430
|
}
|
|
55412
55431
|
var init_eventsList = __esm(() => {
|
|
55413
|
-
|
|
55432
|
+
init_esm();
|
|
55414
55433
|
init_encodings();
|
|
55415
55434
|
init_matchers();
|
|
55416
55435
|
init_primitives();
|
|
55417
55436
|
init_schemas();
|
|
55418
55437
|
init_security();
|
|
55419
55438
|
init_url();
|
|
55420
|
-
|
|
55439
|
+
init_errors2();
|
|
55421
55440
|
init_operations();
|
|
55422
55441
|
init_async();
|
|
55423
55442
|
});
|
|
@@ -55531,7 +55550,7 @@ var init_foldersCreate = __esm(() => {
|
|
|
55531
55550
|
init_security();
|
|
55532
55551
|
init_url();
|
|
55533
55552
|
init_components();
|
|
55534
|
-
|
|
55553
|
+
init_errors2();
|
|
55535
55554
|
init_operations();
|
|
55536
55555
|
init_async();
|
|
55537
55556
|
});
|
|
@@ -55652,7 +55671,7 @@ var init_foldersDelete = __esm(() => {
|
|
|
55652
55671
|
init_schemas();
|
|
55653
55672
|
init_security();
|
|
55654
55673
|
init_url();
|
|
55655
|
-
|
|
55674
|
+
init_errors2();
|
|
55656
55675
|
init_operations();
|
|
55657
55676
|
init_async();
|
|
55658
55677
|
});
|
|
@@ -55660,7 +55679,7 @@ var init_foldersDelete = __esm(() => {
|
|
|
55660
55679
|
// src/mcp-server/tools/foldersDelete.ts
|
|
55661
55680
|
var args16, tool$foldersDelete;
|
|
55662
55681
|
var init_foldersDelete2 = __esm(() => {
|
|
55663
|
-
|
|
55682
|
+
init_esm();
|
|
55664
55683
|
init_foldersDelete();
|
|
55665
55684
|
init_tools();
|
|
55666
55685
|
args16 = {
|
|
@@ -55699,7 +55718,6 @@ async function $do17(client, request, options) {
|
|
|
55699
55718
|
const body = null;
|
|
55700
55719
|
const path = pathToFunc("/folders")();
|
|
55701
55720
|
const query = encodeFormQuery({
|
|
55702
|
-
includeLinkCount: payload?.includeLinkCount,
|
|
55703
55721
|
page: payload?.page,
|
|
55704
55722
|
pageSize: payload?.pageSize,
|
|
55705
55723
|
search: payload?.search
|
|
@@ -55765,7 +55783,7 @@ async function $do17(client, request, options) {
|
|
|
55765
55783
|
return [result, { status: "complete", request: req, response }];
|
|
55766
55784
|
}
|
|
55767
55785
|
var init_foldersList = __esm(() => {
|
|
55768
|
-
|
|
55786
|
+
init_esm();
|
|
55769
55787
|
init_encodings();
|
|
55770
55788
|
init_matchers();
|
|
55771
55789
|
init_primitives();
|
|
@@ -55773,7 +55791,7 @@ var init_foldersList = __esm(() => {
|
|
|
55773
55791
|
init_security();
|
|
55774
55792
|
init_url();
|
|
55775
55793
|
init_components();
|
|
55776
|
-
|
|
55794
|
+
init_errors2();
|
|
55777
55795
|
init_operations();
|
|
55778
55796
|
init_async();
|
|
55779
55797
|
});
|
|
@@ -55897,7 +55915,7 @@ var init_foldersUpdate = __esm(() => {
|
|
|
55897
55915
|
init_security();
|
|
55898
55916
|
init_url();
|
|
55899
55917
|
init_components();
|
|
55900
|
-
|
|
55918
|
+
init_errors2();
|
|
55901
55919
|
init_operations();
|
|
55902
55920
|
init_async();
|
|
55903
55921
|
});
|
|
@@ -55905,7 +55923,7 @@ var init_foldersUpdate = __esm(() => {
|
|
|
55905
55923
|
// src/mcp-server/tools/foldersUpdate.ts
|
|
55906
55924
|
var args18, tool$foldersUpdate;
|
|
55907
55925
|
var init_foldersUpdate2 = __esm(() => {
|
|
55908
|
-
|
|
55926
|
+
init_esm();
|
|
55909
55927
|
init_foldersUpdate();
|
|
55910
55928
|
init_operations();
|
|
55911
55929
|
init_tools();
|
|
@@ -56020,14 +56038,14 @@ async function $do19(client, request, options) {
|
|
|
56020
56038
|
return [result, { status: "complete", request: req, response }];
|
|
56021
56039
|
}
|
|
56022
56040
|
var init_linksCount = __esm(() => {
|
|
56023
|
-
|
|
56041
|
+
init_esm();
|
|
56024
56042
|
init_encodings();
|
|
56025
56043
|
init_matchers();
|
|
56026
56044
|
init_primitives();
|
|
56027
56045
|
init_schemas();
|
|
56028
56046
|
init_security();
|
|
56029
56047
|
init_url();
|
|
56030
|
-
|
|
56048
|
+
init_errors2();
|
|
56031
56049
|
init_operations();
|
|
56032
56050
|
init_async();
|
|
56033
56051
|
});
|
|
@@ -56141,7 +56159,7 @@ var init_linksCreate = __esm(() => {
|
|
|
56141
56159
|
init_security();
|
|
56142
56160
|
init_url();
|
|
56143
56161
|
init_components();
|
|
56144
|
-
|
|
56162
|
+
init_errors2();
|
|
56145
56163
|
init_operations();
|
|
56146
56164
|
init_async();
|
|
56147
56165
|
});
|
|
@@ -56248,14 +56266,14 @@ async function $do21(client, request, options) {
|
|
|
56248
56266
|
return [result, { status: "complete", request: req, response }];
|
|
56249
56267
|
}
|
|
56250
56268
|
var init_linksCreateMany = __esm(() => {
|
|
56251
|
-
|
|
56269
|
+
init_esm();
|
|
56252
56270
|
init_encodings();
|
|
56253
56271
|
init_matchers();
|
|
56254
56272
|
init_primitives();
|
|
56255
56273
|
init_schemas();
|
|
56256
56274
|
init_security();
|
|
56257
56275
|
init_url();
|
|
56258
|
-
|
|
56276
|
+
init_errors2();
|
|
56259
56277
|
init_operations();
|
|
56260
56278
|
init_async();
|
|
56261
56279
|
});
|
|
@@ -56263,7 +56281,7 @@ var init_linksCreateMany = __esm(() => {
|
|
|
56263
56281
|
// src/mcp-server/tools/linksCreateMany.ts
|
|
56264
56282
|
var args21, tool$linksCreateMany;
|
|
56265
56283
|
var init_linksCreateMany2 = __esm(() => {
|
|
56266
|
-
|
|
56284
|
+
init_esm();
|
|
56267
56285
|
init_linksCreateMany();
|
|
56268
56286
|
init_operations();
|
|
56269
56287
|
init_tools();
|
|
@@ -56377,7 +56395,7 @@ var init_linksDelete = __esm(() => {
|
|
|
56377
56395
|
init_schemas();
|
|
56378
56396
|
init_security();
|
|
56379
56397
|
init_url();
|
|
56380
|
-
|
|
56398
|
+
init_errors2();
|
|
56381
56399
|
init_operations();
|
|
56382
56400
|
init_async();
|
|
56383
56401
|
});
|
|
@@ -56385,7 +56403,7 @@ var init_linksDelete = __esm(() => {
|
|
|
56385
56403
|
// src/mcp-server/tools/linksDelete.ts
|
|
56386
56404
|
var args22, tool$linksDelete;
|
|
56387
56405
|
var init_linksDelete2 = __esm(() => {
|
|
56388
|
-
|
|
56406
|
+
init_esm();
|
|
56389
56407
|
init_linksDelete();
|
|
56390
56408
|
init_tools();
|
|
56391
56409
|
args22 = {
|
|
@@ -56493,7 +56511,7 @@ var init_linksDeleteMany = __esm(() => {
|
|
|
56493
56511
|
init_schemas();
|
|
56494
56512
|
init_security();
|
|
56495
56513
|
init_url();
|
|
56496
|
-
|
|
56514
|
+
init_errors2();
|
|
56497
56515
|
init_operations();
|
|
56498
56516
|
init_async();
|
|
56499
56517
|
});
|
|
@@ -56613,7 +56631,7 @@ var init_linksGet = __esm(() => {
|
|
|
56613
56631
|
init_security();
|
|
56614
56632
|
init_url();
|
|
56615
56633
|
init_components();
|
|
56616
|
-
|
|
56634
|
+
init_errors2();
|
|
56617
56635
|
init_operations();
|
|
56618
56636
|
init_async();
|
|
56619
56637
|
});
|
|
@@ -56773,7 +56791,7 @@ var init_linksList = __esm(() => {
|
|
|
56773
56791
|
init_schemas();
|
|
56774
56792
|
init_security();
|
|
56775
56793
|
init_url();
|
|
56776
|
-
|
|
56794
|
+
init_errors2();
|
|
56777
56795
|
init_operations();
|
|
56778
56796
|
init_async();
|
|
56779
56797
|
init_operations2();
|
|
@@ -56898,7 +56916,7 @@ var init_linksUpdate = __esm(() => {
|
|
|
56898
56916
|
init_security();
|
|
56899
56917
|
init_url();
|
|
56900
56918
|
init_components();
|
|
56901
|
-
|
|
56919
|
+
init_errors2();
|
|
56902
56920
|
init_operations();
|
|
56903
56921
|
init_async();
|
|
56904
56922
|
});
|
|
@@ -56906,7 +56924,7 @@ var init_linksUpdate = __esm(() => {
|
|
|
56906
56924
|
// src/mcp-server/tools/linksUpdate.ts
|
|
56907
56925
|
var args26, tool$linksUpdate;
|
|
56908
56926
|
var init_linksUpdate2 = __esm(() => {
|
|
56909
|
-
|
|
56927
|
+
init_esm();
|
|
56910
56928
|
init_linksUpdate();
|
|
56911
56929
|
init_operations();
|
|
56912
56930
|
init_tools();
|
|
@@ -57007,7 +57025,7 @@ async function $do27(client, request, options) {
|
|
|
57007
57025
|
return [result, { status: "complete", request: req, response }];
|
|
57008
57026
|
}
|
|
57009
57027
|
var init_linksUpdateMany = __esm(() => {
|
|
57010
|
-
|
|
57028
|
+
init_esm();
|
|
57011
57029
|
init_encodings();
|
|
57012
57030
|
init_matchers();
|
|
57013
57031
|
init_primitives();
|
|
@@ -57015,7 +57033,7 @@ var init_linksUpdateMany = __esm(() => {
|
|
|
57015
57033
|
init_security();
|
|
57016
57034
|
init_url();
|
|
57017
57035
|
init_components();
|
|
57018
|
-
|
|
57036
|
+
init_errors2();
|
|
57019
57037
|
init_operations();
|
|
57020
57038
|
init_async();
|
|
57021
57039
|
});
|
|
@@ -57129,7 +57147,7 @@ var init_linksUpsert = __esm(() => {
|
|
|
57129
57147
|
init_security();
|
|
57130
57148
|
init_url();
|
|
57131
57149
|
init_components();
|
|
57132
|
-
|
|
57150
|
+
init_errors2();
|
|
57133
57151
|
init_operations();
|
|
57134
57152
|
init_async();
|
|
57135
57153
|
});
|
|
@@ -57252,7 +57270,7 @@ var init_partnersAnalytics = __esm(() => {
|
|
|
57252
57270
|
init_schemas();
|
|
57253
57271
|
init_security();
|
|
57254
57272
|
init_url();
|
|
57255
|
-
|
|
57273
|
+
init_errors2();
|
|
57256
57274
|
init_operations();
|
|
57257
57275
|
init_async();
|
|
57258
57276
|
});
|
|
@@ -57365,7 +57383,7 @@ var init_partnersCreate = __esm(() => {
|
|
|
57365
57383
|
init_schemas();
|
|
57366
57384
|
init_security();
|
|
57367
57385
|
init_url();
|
|
57368
|
-
|
|
57386
|
+
init_errors2();
|
|
57369
57387
|
init_operations();
|
|
57370
57388
|
init_async();
|
|
57371
57389
|
});
|
|
@@ -57479,7 +57497,7 @@ var init_partnersCreateLink = __esm(() => {
|
|
|
57479
57497
|
init_security();
|
|
57480
57498
|
init_url();
|
|
57481
57499
|
init_components();
|
|
57482
|
-
|
|
57500
|
+
init_errors2();
|
|
57483
57501
|
init_operations();
|
|
57484
57502
|
init_async();
|
|
57485
57503
|
});
|
|
@@ -57591,14 +57609,14 @@ async function $do32(client, request, options) {
|
|
|
57591
57609
|
return [result, { status: "complete", request: req, response }];
|
|
57592
57610
|
}
|
|
57593
57611
|
var init_partnersRetrieveLinks = __esm(() => {
|
|
57594
|
-
|
|
57612
|
+
init_esm();
|
|
57595
57613
|
init_encodings();
|
|
57596
57614
|
init_matchers();
|
|
57597
57615
|
init_primitives();
|
|
57598
57616
|
init_schemas();
|
|
57599
57617
|
init_security();
|
|
57600
57618
|
init_url();
|
|
57601
|
-
|
|
57619
|
+
init_errors2();
|
|
57602
57620
|
init_operations();
|
|
57603
57621
|
init_async();
|
|
57604
57622
|
});
|
|
@@ -57712,7 +57730,7 @@ var init_partnersUpsertLink = __esm(() => {
|
|
|
57712
57730
|
init_security();
|
|
57713
57731
|
init_url();
|
|
57714
57732
|
init_components();
|
|
57715
|
-
|
|
57733
|
+
init_errors2();
|
|
57716
57734
|
init_operations();
|
|
57717
57735
|
init_async();
|
|
57718
57736
|
});
|
|
@@ -57830,14 +57848,14 @@ async function $do34(client, request, options) {
|
|
|
57830
57848
|
return [result, { status: "complete", request: req, response }];
|
|
57831
57849
|
}
|
|
57832
57850
|
var init_qrCodesGet = __esm(() => {
|
|
57833
|
-
|
|
57851
|
+
init_esm();
|
|
57834
57852
|
init_encodings();
|
|
57835
57853
|
init_matchers();
|
|
57836
57854
|
init_primitives();
|
|
57837
57855
|
init_schemas();
|
|
57838
57856
|
init_security();
|
|
57839
57857
|
init_url();
|
|
57840
|
-
|
|
57858
|
+
init_errors2();
|
|
57841
57859
|
init_operations();
|
|
57842
57860
|
init_async();
|
|
57843
57861
|
});
|
|
@@ -57951,7 +57969,7 @@ var init_tagsCreate = __esm(() => {
|
|
|
57951
57969
|
init_security();
|
|
57952
57970
|
init_url();
|
|
57953
57971
|
init_components();
|
|
57954
|
-
|
|
57972
|
+
init_errors2();
|
|
57955
57973
|
init_operations();
|
|
57956
57974
|
init_async();
|
|
57957
57975
|
});
|
|
@@ -58072,7 +58090,7 @@ var init_tagsDelete = __esm(() => {
|
|
|
58072
58090
|
init_schemas();
|
|
58073
58091
|
init_security();
|
|
58074
58092
|
init_url();
|
|
58075
|
-
|
|
58093
|
+
init_errors2();
|
|
58076
58094
|
init_operations();
|
|
58077
58095
|
init_async();
|
|
58078
58096
|
});
|
|
@@ -58080,7 +58098,7 @@ var init_tagsDelete = __esm(() => {
|
|
|
58080
58098
|
// src/mcp-server/tools/tagsDelete.ts
|
|
58081
58099
|
var args36, tool$tagsDelete;
|
|
58082
58100
|
var init_tagsDelete2 = __esm(() => {
|
|
58083
|
-
|
|
58101
|
+
init_esm();
|
|
58084
58102
|
init_tagsDelete();
|
|
58085
58103
|
init_tools();
|
|
58086
58104
|
args36 = {
|
|
@@ -58187,7 +58205,7 @@ async function $do37(client, request, options) {
|
|
|
58187
58205
|
return [result, { status: "complete", request: req, response }];
|
|
58188
58206
|
}
|
|
58189
58207
|
var init_tagsList = __esm(() => {
|
|
58190
|
-
|
|
58208
|
+
init_esm();
|
|
58191
58209
|
init_encodings();
|
|
58192
58210
|
init_matchers();
|
|
58193
58211
|
init_primitives();
|
|
@@ -58195,7 +58213,7 @@ var init_tagsList = __esm(() => {
|
|
|
58195
58213
|
init_security();
|
|
58196
58214
|
init_url();
|
|
58197
58215
|
init_components();
|
|
58198
|
-
|
|
58216
|
+
init_errors2();
|
|
58199
58217
|
init_operations();
|
|
58200
58218
|
init_async();
|
|
58201
58219
|
});
|
|
@@ -58319,7 +58337,7 @@ var init_tagsUpdate = __esm(() => {
|
|
|
58319
58337
|
init_security();
|
|
58320
58338
|
init_url();
|
|
58321
58339
|
init_components();
|
|
58322
|
-
|
|
58340
|
+
init_errors2();
|
|
58323
58341
|
init_operations();
|
|
58324
58342
|
init_async();
|
|
58325
58343
|
});
|
|
@@ -58327,7 +58345,7 @@ var init_tagsUpdate = __esm(() => {
|
|
|
58327
58345
|
// src/mcp-server/tools/tagsUpdate.ts
|
|
58328
58346
|
var args38, tool$tagsUpdate;
|
|
58329
58347
|
var init_tagsUpdate2 = __esm(() => {
|
|
58330
|
-
|
|
58348
|
+
init_esm();
|
|
58331
58349
|
init_tagsUpdate();
|
|
58332
58350
|
init_operations();
|
|
58333
58351
|
init_tools();
|
|
@@ -58434,7 +58452,7 @@ var init_trackLead = __esm(() => {
|
|
|
58434
58452
|
init_schemas();
|
|
58435
58453
|
init_security();
|
|
58436
58454
|
init_url();
|
|
58437
|
-
|
|
58455
|
+
init_errors2();
|
|
58438
58456
|
init_operations();
|
|
58439
58457
|
init_async();
|
|
58440
58458
|
});
|
|
@@ -58547,7 +58565,7 @@ var init_trackSale = __esm(() => {
|
|
|
58547
58565
|
init_schemas();
|
|
58548
58566
|
init_security();
|
|
58549
58567
|
init_url();
|
|
58550
|
-
|
|
58568
|
+
init_errors2();
|
|
58551
58569
|
init_operations();
|
|
58552
58570
|
init_async();
|
|
58553
58571
|
});
|
|
@@ -58666,7 +58684,7 @@ var init_workspacesGet = __esm(() => {
|
|
|
58666
58684
|
init_security();
|
|
58667
58685
|
init_url();
|
|
58668
58686
|
init_components();
|
|
58669
|
-
|
|
58687
|
+
init_errors2();
|
|
58670
58688
|
init_operations();
|
|
58671
58689
|
init_async();
|
|
58672
58690
|
});
|
|
@@ -58790,7 +58808,7 @@ var init_workspacesUpdate = __esm(() => {
|
|
|
58790
58808
|
init_security();
|
|
58791
58809
|
init_url();
|
|
58792
58810
|
init_components();
|
|
58793
|
-
|
|
58811
|
+
init_errors2();
|
|
58794
58812
|
init_operations();
|
|
58795
58813
|
init_async();
|
|
58796
58814
|
});
|
|
@@ -58798,7 +58816,7 @@ var init_workspacesUpdate = __esm(() => {
|
|
|
58798
58816
|
// src/mcp-server/tools/workspacesUpdate.ts
|
|
58799
58817
|
var args42, tool$workspacesUpdate;
|
|
58800
58818
|
var init_workspacesUpdate2 = __esm(() => {
|
|
58801
|
-
|
|
58819
|
+
init_esm();
|
|
58802
58820
|
init_workspacesUpdate();
|
|
58803
58821
|
init_operations();
|
|
58804
58822
|
init_tools();
|
|
@@ -58830,7 +58848,7 @@ Update a workspace by ID or slug.`,
|
|
|
58830
58848
|
function createMCPServer(deps) {
|
|
58831
58849
|
const server = new McpServer({
|
|
58832
58850
|
name: "Dub",
|
|
58833
|
-
version: "0.61.
|
|
58851
|
+
version: "0.61.15"
|
|
58834
58852
|
});
|
|
58835
58853
|
const client = new DubCore({
|
|
58836
58854
|
token: deps.token,
|
|
@@ -60017,7 +60035,7 @@ function buildContext(process2) {
|
|
|
60017
60035
|
}
|
|
60018
60036
|
|
|
60019
60037
|
// src/mcp-server/cli/start/command.ts
|
|
60020
|
-
|
|
60038
|
+
init_esm();
|
|
60021
60039
|
init_console_logger();
|
|
60022
60040
|
|
|
60023
60041
|
// src/mcp-server/scopes.ts
|
|
@@ -60128,7 +60146,7 @@ var routes = rn({
|
|
|
60128
60146
|
var app = Ve(routes, {
|
|
60129
60147
|
name: "mcp",
|
|
60130
60148
|
versionInfo: {
|
|
60131
|
-
currentVersion: "0.61.
|
|
60149
|
+
currentVersion: "0.61.15"
|
|
60132
60150
|
}
|
|
60133
60151
|
});
|
|
60134
60152
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -60136,5 +60154,5 @@ export {
|
|
|
60136
60154
|
app
|
|
60137
60155
|
};
|
|
60138
60156
|
|
|
60139
|
-
//# debugId=
|
|
60157
|
+
//# debugId=F23FD2D53C70D84264756E2164756E21
|
|
60140
60158
|
//# sourceMappingURL=mcp-server.js.map
|