@s2-dev/streamstore 0.13.1 → 0.13.3
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/README.md +1 -1
- package/bin/mcp-server.js +1044 -999
- package/bin/mcp-server.js.map +20 -12
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.extras.d.ts +2 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -0
- package/dist/commonjs/index.extras.js +18 -0
- package/dist/commonjs/index.extras.js.map +1 -0
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/index.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/appendrecord.d.ts +2 -3
- package/dist/commonjs/models/components/appendrecord.d.ts.map +1 -1
- package/dist/commonjs/models/components/appendrecord.js +2 -3
- package/dist/commonjs/models/components/appendrecord.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/sequencedrecord.d.ts +2 -3
- package/dist/commonjs/models/components/sequencedrecord.d.ts.map +1 -1
- package/dist/commonjs/models/components/sequencedrecord.js +2 -3
- package/dist/commonjs/models/components/sequencedrecord.js.map +1 -1
- package/dist/commonjs/models/errors/appendconditionfailed.d.ts +36 -36
- package/dist/commonjs/models/errors/appendconditionfailed.d.ts.map +1 -1
- package/dist/commonjs/models/errors/appendconditionfailed.js +40 -40
- package/dist/commonjs/models/errors/appendconditionfailed.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.extras.d.ts +2 -0
- package/dist/esm/index.extras.d.ts.map +1 -0
- package/dist/esm/index.extras.js +2 -0
- package/dist/esm/index.extras.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.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/appendrecord.d.ts +2 -3
- package/dist/esm/models/components/appendrecord.d.ts.map +1 -1
- package/dist/esm/models/components/appendrecord.js +2 -3
- package/dist/esm/models/components/appendrecord.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/sequencedrecord.d.ts +2 -3
- package/dist/esm/models/components/sequencedrecord.d.ts.map +1 -1
- package/dist/esm/models/components/sequencedrecord.js +2 -3
- package/dist/esm/models/components/sequencedrecord.js.map +1 -1
- package/dist/esm/models/errors/appendconditionfailed.d.ts +36 -36
- package/dist/esm/models/errors/appendconditionfailed.d.ts.map +1 -1
- package/dist/esm/models/errors/appendconditionfailed.js +37 -37
- package/dist/esm/models/errors/appendconditionfailed.js.map +1 -1
- package/docs/sdks/records/README.md +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/index.extras.ts +1 -0
- package/src/index.ts +2 -0
- 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/appendrecord.ts +4 -10
- package/src/models/components/index.ts +0 -1
- package/src/models/components/sequencedrecord.ts +4 -10
- package/src/models/errors/appendconditionfailed.ts +67 -53
- package/dist/commonjs/models/components/header.d.ts +0 -43
- package/dist/commonjs/models/components/header.d.ts.map +0 -1
- package/dist/commonjs/models/components/header.js +0 -72
- package/dist/commonjs/models/components/header.js.map +0 -1
- package/dist/esm/models/components/header.d.ts +0 -43
- package/dist/esm/models/components/header.d.ts.map +0 -1
- package/dist/esm/models/components/header.js +0 -34
- package/dist/esm/models/components/header.js.map +0 -1
- package/src/models/components/header.ts +0 -75
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
|
+
};
|
|
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
|
+
});
|
|
125
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) {
|
|
@@ -588,184 +984,48 @@ function createZodEnum(values, params) {
|
|
|
588
984
|
...processCreateParams(params)
|
|
589
985
|
});
|
|
590
986
|
}
|
|
591
|
-
function
|
|
987
|
+
function cleanParams(params, data) {
|
|
988
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
989
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
990
|
+
return p2;
|
|
991
|
+
}
|
|
992
|
+
function custom(check, _params = {}, fatal) {
|
|
592
993
|
if (check)
|
|
593
994
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
594
|
-
|
|
595
|
-
if (
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
995
|
+
const r = check(data);
|
|
996
|
+
if (r instanceof Promise) {
|
|
997
|
+
return r.then((r2) => {
|
|
998
|
+
if (!r2) {
|
|
999
|
+
const params = cleanParams(_params, data);
|
|
1000
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
1001
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
600
1004
|
}
|
|
1005
|
+
if (!r) {
|
|
1006
|
+
const params = cleanParams(_params, data);
|
|
1007
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
1008
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
1009
|
+
}
|
|
1010
|
+
return;
|
|
601
1011
|
});
|
|
602
1012
|
return ZodAny.create();
|
|
603
1013
|
}
|
|
604
|
-
var
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
case "symbol":
|
|
620
|
-
return ZodParsedType.symbol;
|
|
621
|
-
case "object":
|
|
622
|
-
if (Array.isArray(data)) {
|
|
623
|
-
return ZodParsedType.array;
|
|
624
|
-
}
|
|
625
|
-
if (data === null) {
|
|
626
|
-
return ZodParsedType.null;
|
|
627
|
-
}
|
|
628
|
-
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
629
|
-
return ZodParsedType.promise;
|
|
630
|
-
}
|
|
631
|
-
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
632
|
-
return ZodParsedType.map;
|
|
633
|
-
}
|
|
634
|
-
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
635
|
-
return ZodParsedType.set;
|
|
636
|
-
}
|
|
637
|
-
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
638
|
-
return ZodParsedType.date;
|
|
639
|
-
}
|
|
640
|
-
return ZodParsedType.object;
|
|
641
|
-
default:
|
|
642
|
-
return ZodParsedType.unknown;
|
|
643
|
-
}
|
|
644
|
-
}, ZodIssueCode, quotelessJson = (obj) => {
|
|
645
|
-
const json = JSON.stringify(obj, null, 2);
|
|
646
|
-
return json.replace(/"([^"]+)":/g, "$1:");
|
|
647
|
-
}, ZodError, errorMap = (issue, _ctx) => {
|
|
648
|
-
let message;
|
|
649
|
-
switch (issue.code) {
|
|
650
|
-
case ZodIssueCode.invalid_type:
|
|
651
|
-
if (issue.received === ZodParsedType.undefined) {
|
|
652
|
-
message = "Required";
|
|
653
|
-
} else {
|
|
654
|
-
message = `Expected ${issue.expected}, received ${issue.received}`;
|
|
655
|
-
}
|
|
656
|
-
break;
|
|
657
|
-
case ZodIssueCode.invalid_literal:
|
|
658
|
-
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
|
|
659
|
-
break;
|
|
660
|
-
case ZodIssueCode.unrecognized_keys:
|
|
661
|
-
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
|
|
662
|
-
break;
|
|
663
|
-
case ZodIssueCode.invalid_union:
|
|
664
|
-
message = `Invalid input`;
|
|
665
|
-
break;
|
|
666
|
-
case ZodIssueCode.invalid_union_discriminator:
|
|
667
|
-
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
|
|
668
|
-
break;
|
|
669
|
-
case ZodIssueCode.invalid_enum_value:
|
|
670
|
-
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
|
|
671
|
-
break;
|
|
672
|
-
case ZodIssueCode.invalid_arguments:
|
|
673
|
-
message = `Invalid function arguments`;
|
|
674
|
-
break;
|
|
675
|
-
case ZodIssueCode.invalid_return_type:
|
|
676
|
-
message = `Invalid function return type`;
|
|
677
|
-
break;
|
|
678
|
-
case ZodIssueCode.invalid_date:
|
|
679
|
-
message = `Invalid date`;
|
|
680
|
-
break;
|
|
681
|
-
case ZodIssueCode.invalid_string:
|
|
682
|
-
if (typeof issue.validation === "object") {
|
|
683
|
-
if ("includes" in issue.validation) {
|
|
684
|
-
message = `Invalid input: must include "${issue.validation.includes}"`;
|
|
685
|
-
if (typeof issue.validation.position === "number") {
|
|
686
|
-
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
|
687
|
-
}
|
|
688
|
-
} else if ("startsWith" in issue.validation) {
|
|
689
|
-
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
|
690
|
-
} else if ("endsWith" in issue.validation) {
|
|
691
|
-
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
|
|
692
|
-
} else {
|
|
693
|
-
util.assertNever(issue.validation);
|
|
694
|
-
}
|
|
695
|
-
} else if (issue.validation !== "regex") {
|
|
696
|
-
message = `Invalid ${issue.validation}`;
|
|
697
|
-
} else {
|
|
698
|
-
message = "Invalid";
|
|
699
|
-
}
|
|
700
|
-
break;
|
|
701
|
-
case ZodIssueCode.too_small:
|
|
702
|
-
if (issue.type === "array")
|
|
703
|
-
message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
|
|
704
|
-
else if (issue.type === "string")
|
|
705
|
-
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
706
|
-
else if (issue.type === "number")
|
|
707
|
-
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
708
|
-
else if (issue.type === "date")
|
|
709
|
-
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
710
|
-
else
|
|
711
|
-
message = "Invalid input";
|
|
712
|
-
break;
|
|
713
|
-
case ZodIssueCode.too_big:
|
|
714
|
-
if (issue.type === "array")
|
|
715
|
-
message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
|
|
716
|
-
else if (issue.type === "string")
|
|
717
|
-
message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
|
|
718
|
-
else if (issue.type === "number")
|
|
719
|
-
message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
720
|
-
else if (issue.type === "bigint")
|
|
721
|
-
message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
722
|
-
else if (issue.type === "date")
|
|
723
|
-
message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
|
|
724
|
-
else
|
|
725
|
-
message = "Invalid input";
|
|
726
|
-
break;
|
|
727
|
-
case ZodIssueCode.custom:
|
|
728
|
-
message = `Invalid input`;
|
|
729
|
-
break;
|
|
730
|
-
case ZodIssueCode.invalid_intersection_types:
|
|
731
|
-
message = `Intersection results could not be merged`;
|
|
732
|
-
break;
|
|
733
|
-
case ZodIssueCode.not_multiple_of:
|
|
734
|
-
message = `Number must be a multiple of ${issue.multipleOf}`;
|
|
735
|
-
break;
|
|
736
|
-
case ZodIssueCode.not_finite:
|
|
737
|
-
message = "Number must be finite";
|
|
738
|
-
break;
|
|
739
|
-
default:
|
|
740
|
-
message = _ctx.defaultError;
|
|
741
|
-
util.assertNever(issue);
|
|
742
|
-
}
|
|
743
|
-
return { message };
|
|
744
|
-
}, overrideErrorMap, makeIssue = (params) => {
|
|
745
|
-
const { data, path, errorMaps, issueData } = params;
|
|
746
|
-
const fullPath = [...path, ...issueData.path || []];
|
|
747
|
-
const fullIssue = {
|
|
748
|
-
...issueData,
|
|
749
|
-
path: fullPath
|
|
750
|
-
};
|
|
751
|
-
if (issueData.message !== undefined) {
|
|
752
|
-
return {
|
|
753
|
-
...issueData,
|
|
754
|
-
path: fullPath,
|
|
755
|
-
message: issueData.message
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
let errorMessage = "";
|
|
759
|
-
const maps = errorMaps.filter((m) => !!m).slice().reverse();
|
|
760
|
-
for (const map of maps) {
|
|
761
|
-
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
762
|
-
}
|
|
763
|
-
return {
|
|
764
|
-
...issueData,
|
|
765
|
-
path: fullPath,
|
|
766
|
-
message: errorMessage
|
|
767
|
-
};
|
|
768
|
-
}, 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 __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
1015
|
+
if (kind === "a" && !f)
|
|
1016
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
1017
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1018
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1019
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1020
|
+
}, __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
1021
|
+
if (kind === "m")
|
|
1022
|
+
throw new TypeError("Private method is not writable");
|
|
1023
|
+
if (kind === "a" && !f)
|
|
1024
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
1025
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1026
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1027
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
1028
|
+
}, _ZodEnum_cache, _ZodNativeEnum_cache, handleResult = (ctx, result) => {
|
|
769
1029
|
if (isValid(result)) {
|
|
770
1030
|
return { success: true, data: result.value };
|
|
771
1031
|
} else {
|
|
@@ -815,215 +1075,13 @@ var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
|
815
1075
|
}
|
|
816
1076
|
}, 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 = {
|
|
817
1077
|
message: `Input not instance of ${cls.name}`
|
|
818
|
-
}) => 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
|
|
819
|
-
var
|
|
820
|
-
(
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
function assertNever(_x) {
|
|
826
|
-
throw new Error;
|
|
827
|
-
}
|
|
828
|
-
util2.assertNever = assertNever;
|
|
829
|
-
util2.arrayToEnum = (items) => {
|
|
830
|
-
const obj = {};
|
|
831
|
-
for (const item of items) {
|
|
832
|
-
obj[item] = item;
|
|
833
|
-
}
|
|
834
|
-
return obj;
|
|
835
|
-
};
|
|
836
|
-
util2.getValidEnumValues = (obj) => {
|
|
837
|
-
const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
|
|
838
|
-
const filtered = {};
|
|
839
|
-
for (const k2 of validKeys) {
|
|
840
|
-
filtered[k2] = obj[k2];
|
|
841
|
-
}
|
|
842
|
-
return util2.objectValues(filtered);
|
|
843
|
-
};
|
|
844
|
-
util2.objectValues = (obj) => {
|
|
845
|
-
return util2.objectKeys(obj).map(function(e) {
|
|
846
|
-
return obj[e];
|
|
847
|
-
});
|
|
848
|
-
};
|
|
849
|
-
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
850
|
-
const keys = [];
|
|
851
|
-
for (const key in object) {
|
|
852
|
-
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
853
|
-
keys.push(key);
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
return keys;
|
|
857
|
-
};
|
|
858
|
-
util2.find = (arr, checker) => {
|
|
859
|
-
for (const item of arr) {
|
|
860
|
-
if (checker(item))
|
|
861
|
-
return item;
|
|
862
|
-
}
|
|
863
|
-
return;
|
|
864
|
-
};
|
|
865
|
-
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
|
866
|
-
function joinValues(array, separator = " | ") {
|
|
867
|
-
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
868
|
-
}
|
|
869
|
-
util2.joinValues = joinValues;
|
|
870
|
-
util2.jsonStringifyReplacer = (_2, value) => {
|
|
871
|
-
if (typeof value === "bigint") {
|
|
872
|
-
return value.toString();
|
|
873
|
-
}
|
|
874
|
-
return value;
|
|
875
|
-
};
|
|
876
|
-
})(util || (util = {}));
|
|
877
|
-
(function(objectUtil2) {
|
|
878
|
-
objectUtil2.mergeShapes = (first, second) => {
|
|
879
|
-
return {
|
|
880
|
-
...first,
|
|
881
|
-
...second
|
|
882
|
-
};
|
|
883
|
-
};
|
|
884
|
-
})(objectUtil || (objectUtil = {}));
|
|
885
|
-
ZodParsedType = util.arrayToEnum([
|
|
886
|
-
"string",
|
|
887
|
-
"nan",
|
|
888
|
-
"number",
|
|
889
|
-
"integer",
|
|
890
|
-
"float",
|
|
891
|
-
"boolean",
|
|
892
|
-
"date",
|
|
893
|
-
"bigint",
|
|
894
|
-
"symbol",
|
|
895
|
-
"function",
|
|
896
|
-
"undefined",
|
|
897
|
-
"null",
|
|
898
|
-
"array",
|
|
899
|
-
"object",
|
|
900
|
-
"unknown",
|
|
901
|
-
"promise",
|
|
902
|
-
"void",
|
|
903
|
-
"never",
|
|
904
|
-
"map",
|
|
905
|
-
"set"
|
|
906
|
-
]);
|
|
907
|
-
ZodIssueCode = util.arrayToEnum([
|
|
908
|
-
"invalid_type",
|
|
909
|
-
"invalid_literal",
|
|
910
|
-
"custom",
|
|
911
|
-
"invalid_union",
|
|
912
|
-
"invalid_union_discriminator",
|
|
913
|
-
"invalid_enum_value",
|
|
914
|
-
"unrecognized_keys",
|
|
915
|
-
"invalid_arguments",
|
|
916
|
-
"invalid_return_type",
|
|
917
|
-
"invalid_date",
|
|
918
|
-
"invalid_string",
|
|
919
|
-
"too_small",
|
|
920
|
-
"too_big",
|
|
921
|
-
"invalid_intersection_types",
|
|
922
|
-
"not_multiple_of",
|
|
923
|
-
"not_finite"
|
|
924
|
-
]);
|
|
925
|
-
ZodError = class ZodError extends Error {
|
|
926
|
-
get errors() {
|
|
927
|
-
return this.issues;
|
|
928
|
-
}
|
|
929
|
-
constructor(issues) {
|
|
930
|
-
super();
|
|
931
|
-
this.issues = [];
|
|
932
|
-
this.addIssue = (sub) => {
|
|
933
|
-
this.issues = [...this.issues, sub];
|
|
934
|
-
};
|
|
935
|
-
this.addIssues = (subs = []) => {
|
|
936
|
-
this.issues = [...this.issues, ...subs];
|
|
937
|
-
};
|
|
938
|
-
const actualProto = new.target.prototype;
|
|
939
|
-
if (Object.setPrototypeOf) {
|
|
940
|
-
Object.setPrototypeOf(this, actualProto);
|
|
941
|
-
} else {
|
|
942
|
-
this.__proto__ = actualProto;
|
|
943
|
-
}
|
|
944
|
-
this.name = "ZodError";
|
|
945
|
-
this.issues = issues;
|
|
946
|
-
}
|
|
947
|
-
format(_mapper) {
|
|
948
|
-
const mapper = _mapper || function(issue) {
|
|
949
|
-
return issue.message;
|
|
950
|
-
};
|
|
951
|
-
const fieldErrors = { _errors: [] };
|
|
952
|
-
const processError = (error) => {
|
|
953
|
-
for (const issue of error.issues) {
|
|
954
|
-
if (issue.code === "invalid_union") {
|
|
955
|
-
issue.unionErrors.map(processError);
|
|
956
|
-
} else if (issue.code === "invalid_return_type") {
|
|
957
|
-
processError(issue.returnTypeError);
|
|
958
|
-
} else if (issue.code === "invalid_arguments") {
|
|
959
|
-
processError(issue.argumentsError);
|
|
960
|
-
} else if (issue.path.length === 0) {
|
|
961
|
-
fieldErrors._errors.push(mapper(issue));
|
|
962
|
-
} else {
|
|
963
|
-
let curr = fieldErrors;
|
|
964
|
-
let i = 0;
|
|
965
|
-
while (i < issue.path.length) {
|
|
966
|
-
const el = issue.path[i];
|
|
967
|
-
const terminal = i === issue.path.length - 1;
|
|
968
|
-
if (!terminal) {
|
|
969
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
970
|
-
} else {
|
|
971
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
972
|
-
curr[el]._errors.push(mapper(issue));
|
|
973
|
-
}
|
|
974
|
-
curr = curr[el];
|
|
975
|
-
i++;
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
|
-
processError(this);
|
|
981
|
-
return fieldErrors;
|
|
982
|
-
}
|
|
983
|
-
static assert(value) {
|
|
984
|
-
if (!(value instanceof ZodError)) {
|
|
985
|
-
throw new Error(`Not a ZodError: ${value}`);
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
toString() {
|
|
989
|
-
return this.message;
|
|
990
|
-
}
|
|
991
|
-
get message() {
|
|
992
|
-
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
993
|
-
}
|
|
994
|
-
get isEmpty() {
|
|
995
|
-
return this.issues.length === 0;
|
|
996
|
-
}
|
|
997
|
-
flatten(mapper = (issue) => issue.message) {
|
|
998
|
-
const fieldErrors = {};
|
|
999
|
-
const formErrors = [];
|
|
1000
|
-
for (const sub of this.issues) {
|
|
1001
|
-
if (sub.path.length > 0) {
|
|
1002
|
-
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1003
|
-
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
1004
|
-
} else {
|
|
1005
|
-
formErrors.push(mapper(sub));
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
return { formErrors, fieldErrors };
|
|
1009
|
-
}
|
|
1010
|
-
get formErrors() {
|
|
1011
|
-
return this.flatten();
|
|
1012
|
-
}
|
|
1013
|
-
};
|
|
1014
|
-
ZodError.create = (issues) => {
|
|
1015
|
-
const error = new ZodError(issues);
|
|
1016
|
-
return error;
|
|
1017
|
-
};
|
|
1018
|
-
overrideErrorMap = errorMap;
|
|
1019
|
-
EMPTY_PATH = [];
|
|
1020
|
-
INVALID = Object.freeze({
|
|
1021
|
-
status: "aborted"
|
|
1022
|
-
});
|
|
1023
|
-
(function(errorUtil2) {
|
|
1024
|
-
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
1025
|
-
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === undefined ? undefined : message.message;
|
|
1026
|
-
})(errorUtil || (errorUtil = {}));
|
|
1078
|
+
}) => 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;
|
|
1079
|
+
var init_types = __esm(() => {
|
|
1080
|
+
init_ZodError();
|
|
1081
|
+
init_errors();
|
|
1082
|
+
init_errorUtil();
|
|
1083
|
+
init_parseUtil();
|
|
1084
|
+
init_util();
|
|
1027
1085
|
cuidRegex = /^c[^\s-]{8,}$/i;
|
|
1028
1086
|
cuid2Regex = /^[0-9a-z]+$/;
|
|
1029
1087
|
ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
@@ -1185,7 +1243,7 @@ var init_lib = __esm(() => {
|
|
|
1185
1243
|
} else if (check.kind === "url") {
|
|
1186
1244
|
try {
|
|
1187
1245
|
new URL(input.data);
|
|
1188
|
-
} catch
|
|
1246
|
+
} catch {
|
|
1189
1247
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1190
1248
|
addIssueToContext(ctx, {
|
|
1191
1249
|
validation: "url",
|
|
@@ -1397,7 +1455,6 @@ var init_lib = __esm(() => {
|
|
|
1397
1455
|
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
1398
1456
|
}
|
|
1399
1457
|
datetime(options) {
|
|
1400
|
-
var _a, _b;
|
|
1401
1458
|
if (typeof options === "string") {
|
|
1402
1459
|
return this._addCheck({
|
|
1403
1460
|
kind: "datetime",
|
|
@@ -1409,10 +1466,10 @@ var init_lib = __esm(() => {
|
|
|
1409
1466
|
}
|
|
1410
1467
|
return this._addCheck({
|
|
1411
1468
|
kind: "datetime",
|
|
1412
|
-
precision: typeof
|
|
1413
|
-
offset:
|
|
1414
|
-
local:
|
|
1415
|
-
...errorUtil.errToObj(options
|
|
1469
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
1470
|
+
offset: options?.offset ?? false,
|
|
1471
|
+
local: options?.local ?? false,
|
|
1472
|
+
...errorUtil.errToObj(options?.message)
|
|
1416
1473
|
});
|
|
1417
1474
|
}
|
|
1418
1475
|
date(message) {
|
|
@@ -1428,8 +1485,8 @@ var init_lib = __esm(() => {
|
|
|
1428
1485
|
}
|
|
1429
1486
|
return this._addCheck({
|
|
1430
1487
|
kind: "time",
|
|
1431
|
-
precision: typeof
|
|
1432
|
-
...errorUtil.errToObj(options
|
|
1488
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
1489
|
+
...errorUtil.errToObj(options?.message)
|
|
1433
1490
|
});
|
|
1434
1491
|
}
|
|
1435
1492
|
duration(message) {
|
|
@@ -1446,8 +1503,8 @@ var init_lib = __esm(() => {
|
|
|
1446
1503
|
return this._addCheck({
|
|
1447
1504
|
kind: "includes",
|
|
1448
1505
|
value,
|
|
1449
|
-
position: options
|
|
1450
|
-
...errorUtil.errToObj(options
|
|
1506
|
+
position: options?.position,
|
|
1507
|
+
...errorUtil.errToObj(options?.message)
|
|
1451
1508
|
});
|
|
1452
1509
|
}
|
|
1453
1510
|
startsWith(value, message) {
|
|
@@ -1576,11 +1633,10 @@ var init_lib = __esm(() => {
|
|
|
1576
1633
|
}
|
|
1577
1634
|
};
|
|
1578
1635
|
ZodString.create = (params) => {
|
|
1579
|
-
var _a;
|
|
1580
1636
|
return new ZodString({
|
|
1581
1637
|
checks: [],
|
|
1582
1638
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
1583
|
-
coerce:
|
|
1639
|
+
coerce: params?.coerce ?? false,
|
|
1584
1640
|
...processCreateParams(params)
|
|
1585
1641
|
});
|
|
1586
1642
|
};
|
|
@@ -1792,7 +1848,8 @@ var init_lib = __esm(() => {
|
|
|
1792
1848
|
return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
|
|
1793
1849
|
}
|
|
1794
1850
|
get isFinite() {
|
|
1795
|
-
let max = null
|
|
1851
|
+
let max = null;
|
|
1852
|
+
let min = null;
|
|
1796
1853
|
for (const ch of this._def.checks) {
|
|
1797
1854
|
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
1798
1855
|
return true;
|
|
@@ -1811,7 +1868,7 @@ var init_lib = __esm(() => {
|
|
|
1811
1868
|
return new ZodNumber({
|
|
1812
1869
|
checks: [],
|
|
1813
1870
|
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
1814
|
-
coerce:
|
|
1871
|
+
coerce: params?.coerce || false,
|
|
1815
1872
|
...processCreateParams(params)
|
|
1816
1873
|
});
|
|
1817
1874
|
};
|
|
@@ -1825,7 +1882,7 @@ var init_lib = __esm(() => {
|
|
|
1825
1882
|
if (this._def.coerce) {
|
|
1826
1883
|
try {
|
|
1827
1884
|
input.data = BigInt(input.data);
|
|
1828
|
-
} catch
|
|
1885
|
+
} catch {
|
|
1829
1886
|
return this._getInvalidInput(input);
|
|
1830
1887
|
}
|
|
1831
1888
|
}
|
|
@@ -1980,11 +2037,10 @@ var init_lib = __esm(() => {
|
|
|
1980
2037
|
}
|
|
1981
2038
|
};
|
|
1982
2039
|
ZodBigInt.create = (params) => {
|
|
1983
|
-
var _a;
|
|
1984
2040
|
return new ZodBigInt({
|
|
1985
2041
|
checks: [],
|
|
1986
2042
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
1987
|
-
coerce:
|
|
2043
|
+
coerce: params?.coerce ?? false,
|
|
1988
2044
|
...processCreateParams(params)
|
|
1989
2045
|
});
|
|
1990
2046
|
};
|
|
@@ -2009,7 +2065,7 @@ var init_lib = __esm(() => {
|
|
|
2009
2065
|
ZodBoolean.create = (params) => {
|
|
2010
2066
|
return new ZodBoolean({
|
|
2011
2067
|
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
2012
|
-
coerce:
|
|
2068
|
+
coerce: params?.coerce || false,
|
|
2013
2069
|
...processCreateParams(params)
|
|
2014
2070
|
});
|
|
2015
2071
|
};
|
|
@@ -2028,7 +2084,7 @@ var init_lib = __esm(() => {
|
|
|
2028
2084
|
});
|
|
2029
2085
|
return INVALID;
|
|
2030
2086
|
}
|
|
2031
|
-
if (isNaN(input.data.getTime())) {
|
|
2087
|
+
if (Number.isNaN(input.data.getTime())) {
|
|
2032
2088
|
const ctx2 = this._getOrReturnCtx(input);
|
|
2033
2089
|
addIssueToContext(ctx2, {
|
|
2034
2090
|
code: ZodIssueCode.invalid_date
|
|
@@ -2117,7 +2173,7 @@ var init_lib = __esm(() => {
|
|
|
2117
2173
|
ZodDate.create = (params) => {
|
|
2118
2174
|
return new ZodDate({
|
|
2119
2175
|
checks: [],
|
|
2120
|
-
coerce:
|
|
2176
|
+
coerce: params?.coerce || false,
|
|
2121
2177
|
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
2122
2178
|
...processCreateParams(params)
|
|
2123
2179
|
});
|
|
@@ -2366,7 +2422,8 @@ var init_lib = __esm(() => {
|
|
|
2366
2422
|
return this._cached;
|
|
2367
2423
|
const shape = this._def.shape();
|
|
2368
2424
|
const keys = util.objectKeys(shape);
|
|
2369
|
-
|
|
2425
|
+
this._cached = { shape, keys };
|
|
2426
|
+
return this._cached;
|
|
2370
2427
|
}
|
|
2371
2428
|
_parse(input) {
|
|
2372
2429
|
const parsedType = this._getType(input);
|
|
@@ -2416,9 +2473,8 @@ var init_lib = __esm(() => {
|
|
|
2416
2473
|
});
|
|
2417
2474
|
status.dirty();
|
|
2418
2475
|
}
|
|
2419
|
-
} else if (unknownKeys === "strip")
|
|
2420
|
-
|
|
2421
|
-
else {
|
|
2476
|
+
} else if (unknownKeys === "strip") {
|
|
2477
|
+
} else {
|
|
2422
2478
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2423
2479
|
}
|
|
2424
2480
|
} else {
|
|
@@ -2462,11 +2518,10 @@ var init_lib = __esm(() => {
|
|
|
2462
2518
|
unknownKeys: "strict",
|
|
2463
2519
|
...message !== undefined ? {
|
|
2464
2520
|
errorMap: (issue, ctx) => {
|
|
2465
|
-
|
|
2466
|
-
const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === undefined ? undefined : _b.call(_a, issue, ctx).message) !== null && _c !== undefined ? _c : ctx.defaultError;
|
|
2521
|
+
const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
|
|
2467
2522
|
if (issue.code === "unrecognized_keys")
|
|
2468
2523
|
return {
|
|
2469
|
-
message:
|
|
2524
|
+
message: errorUtil.errToObj(message).message ?? defaultError
|
|
2470
2525
|
};
|
|
2471
2526
|
return {
|
|
2472
2527
|
message: defaultError
|
|
@@ -2519,11 +2574,11 @@ var init_lib = __esm(() => {
|
|
|
2519
2574
|
}
|
|
2520
2575
|
pick(mask) {
|
|
2521
2576
|
const shape = {};
|
|
2522
|
-
util.objectKeys(mask)
|
|
2577
|
+
for (const key of util.objectKeys(mask)) {
|
|
2523
2578
|
if (mask[key] && this.shape[key]) {
|
|
2524
2579
|
shape[key] = this.shape[key];
|
|
2525
2580
|
}
|
|
2526
|
-
}
|
|
2581
|
+
}
|
|
2527
2582
|
return new ZodObject({
|
|
2528
2583
|
...this._def,
|
|
2529
2584
|
shape: () => shape
|
|
@@ -2531,11 +2586,11 @@ var init_lib = __esm(() => {
|
|
|
2531
2586
|
}
|
|
2532
2587
|
omit(mask) {
|
|
2533
2588
|
const shape = {};
|
|
2534
|
-
util.objectKeys(this.shape)
|
|
2589
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2535
2590
|
if (!mask[key]) {
|
|
2536
2591
|
shape[key] = this.shape[key];
|
|
2537
2592
|
}
|
|
2538
|
-
}
|
|
2593
|
+
}
|
|
2539
2594
|
return new ZodObject({
|
|
2540
2595
|
...this._def,
|
|
2541
2596
|
shape: () => shape
|
|
@@ -2546,14 +2601,14 @@ var init_lib = __esm(() => {
|
|
|
2546
2601
|
}
|
|
2547
2602
|
partial(mask) {
|
|
2548
2603
|
const newShape = {};
|
|
2549
|
-
util.objectKeys(this.shape)
|
|
2604
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2550
2605
|
const fieldSchema = this.shape[key];
|
|
2551
2606
|
if (mask && !mask[key]) {
|
|
2552
2607
|
newShape[key] = fieldSchema;
|
|
2553
2608
|
} else {
|
|
2554
2609
|
newShape[key] = fieldSchema.optional();
|
|
2555
2610
|
}
|
|
2556
|
-
}
|
|
2611
|
+
}
|
|
2557
2612
|
return new ZodObject({
|
|
2558
2613
|
...this._def,
|
|
2559
2614
|
shape: () => newShape
|
|
@@ -2561,7 +2616,7 @@ var init_lib = __esm(() => {
|
|
|
2561
2616
|
}
|
|
2562
2617
|
required(mask) {
|
|
2563
2618
|
const newShape = {};
|
|
2564
|
-
util.objectKeys(this.shape)
|
|
2619
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2565
2620
|
if (mask && !mask[key]) {
|
|
2566
2621
|
newShape[key] = this.shape[key];
|
|
2567
2622
|
} else {
|
|
@@ -2572,7 +2627,7 @@ var init_lib = __esm(() => {
|
|
|
2572
2627
|
}
|
|
2573
2628
|
newShape[key] = newField;
|
|
2574
2629
|
}
|
|
2575
|
-
}
|
|
2630
|
+
}
|
|
2576
2631
|
return new ZodObject({
|
|
2577
2632
|
...this._def,
|
|
2578
2633
|
shape: () => newShape
|
|
@@ -3111,12 +3166,7 @@ var init_lib = __esm(() => {
|
|
|
3111
3166
|
return makeIssue({
|
|
3112
3167
|
data: args,
|
|
3113
3168
|
path: ctx.path,
|
|
3114
|
-
errorMaps: [
|
|
3115
|
-
ctx.common.contextualErrorMap,
|
|
3116
|
-
ctx.schemaErrorMap,
|
|
3117
|
-
getErrorMap(),
|
|
3118
|
-
errorMap
|
|
3119
|
-
].filter((x2) => !!x2),
|
|
3169
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x2) => !!x2),
|
|
3120
3170
|
issueData: {
|
|
3121
3171
|
code: ZodIssueCode.invalid_arguments,
|
|
3122
3172
|
argumentsError: error
|
|
@@ -3127,12 +3177,7 @@ var init_lib = __esm(() => {
|
|
|
3127
3177
|
return makeIssue({
|
|
3128
3178
|
data: returns,
|
|
3129
3179
|
path: ctx.path,
|
|
3130
|
-
errorMaps: [
|
|
3131
|
-
ctx.common.contextualErrorMap,
|
|
3132
|
-
ctx.schemaErrorMap,
|
|
3133
|
-
getErrorMap(),
|
|
3134
|
-
errorMap
|
|
3135
|
-
].filter((x2) => !!x2),
|
|
3180
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x2) => !!x2),
|
|
3136
3181
|
issueData: {
|
|
3137
3182
|
code: ZodIssueCode.invalid_return_type,
|
|
3138
3183
|
returnTypeError: error
|
|
@@ -3504,7 +3549,10 @@ var init_lib = __esm(() => {
|
|
|
3504
3549
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3505
3550
|
if (!isValid(base))
|
|
3506
3551
|
return base;
|
|
3507
|
-
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3552
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3553
|
+
status: status.value,
|
|
3554
|
+
value: result
|
|
3555
|
+
}));
|
|
3508
3556
|
});
|
|
3509
3557
|
}
|
|
3510
3558
|
}
|
|
@@ -3842,122 +3890,137 @@ var init_lib = __esm(() => {
|
|
|
3842
3890
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
3843
3891
|
};
|
|
3844
3892
|
NEVER = INVALID;
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
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
|
-
|
|
3893
|
+
});
|
|
3894
|
+
|
|
3895
|
+
// node_modules/zod/dist/esm/v3/external.js
|
|
3896
|
+
var exports_external = {};
|
|
3897
|
+
__export(exports_external, {
|
|
3898
|
+
void: () => voidType,
|
|
3899
|
+
util: () => util,
|
|
3900
|
+
unknown: () => unknownType,
|
|
3901
|
+
union: () => unionType,
|
|
3902
|
+
undefined: () => undefinedType,
|
|
3903
|
+
tuple: () => tupleType,
|
|
3904
|
+
transformer: () => effectsType,
|
|
3905
|
+
symbol: () => symbolType,
|
|
3906
|
+
string: () => stringType,
|
|
3907
|
+
strictObject: () => strictObjectType,
|
|
3908
|
+
setErrorMap: () => setErrorMap,
|
|
3909
|
+
set: () => setType,
|
|
3910
|
+
record: () => recordType,
|
|
3911
|
+
quotelessJson: () => quotelessJson,
|
|
3912
|
+
promise: () => promiseType,
|
|
3913
|
+
preprocess: () => preprocessType,
|
|
3914
|
+
pipeline: () => pipelineType,
|
|
3915
|
+
ostring: () => ostring,
|
|
3916
|
+
optional: () => optionalType,
|
|
3917
|
+
onumber: () => onumber,
|
|
3918
|
+
oboolean: () => oboolean,
|
|
3919
|
+
objectUtil: () => objectUtil,
|
|
3920
|
+
object: () => objectType,
|
|
3921
|
+
number: () => numberType,
|
|
3922
|
+
nullable: () => nullableType,
|
|
3923
|
+
null: () => nullType,
|
|
3924
|
+
never: () => neverType,
|
|
3925
|
+
nativeEnum: () => nativeEnumType,
|
|
3926
|
+
nan: () => nanType,
|
|
3927
|
+
map: () => mapType,
|
|
3928
|
+
makeIssue: () => makeIssue,
|
|
3929
|
+
literal: () => literalType,
|
|
3930
|
+
lazy: () => lazyType,
|
|
3931
|
+
late: () => late,
|
|
3932
|
+
isValid: () => isValid,
|
|
3933
|
+
isDirty: () => isDirty,
|
|
3934
|
+
isAsync: () => isAsync,
|
|
3935
|
+
isAborted: () => isAborted,
|
|
3936
|
+
intersection: () => intersectionType,
|
|
3937
|
+
instanceof: () => instanceOfType,
|
|
3938
|
+
getParsedType: () => getParsedType,
|
|
3939
|
+
getErrorMap: () => getErrorMap,
|
|
3940
|
+
function: () => functionType,
|
|
3941
|
+
enum: () => enumType,
|
|
3942
|
+
effect: () => effectsType,
|
|
3943
|
+
discriminatedUnion: () => discriminatedUnionType,
|
|
3944
|
+
defaultErrorMap: () => en_default,
|
|
3945
|
+
datetimeRegex: () => datetimeRegex,
|
|
3946
|
+
date: () => dateType,
|
|
3947
|
+
custom: () => custom,
|
|
3948
|
+
coerce: () => coerce,
|
|
3949
|
+
boolean: () => booleanType,
|
|
3950
|
+
bigint: () => bigIntType,
|
|
3951
|
+
array: () => arrayType,
|
|
3952
|
+
any: () => anyType,
|
|
3953
|
+
addIssueToContext: () => addIssueToContext,
|
|
3954
|
+
ZodVoid: () => ZodVoid,
|
|
3955
|
+
ZodUnknown: () => ZodUnknown,
|
|
3956
|
+
ZodUnion: () => ZodUnion,
|
|
3957
|
+
ZodUndefined: () => ZodUndefined,
|
|
3958
|
+
ZodType: () => ZodType,
|
|
3959
|
+
ZodTuple: () => ZodTuple,
|
|
3960
|
+
ZodTransformer: () => ZodEffects,
|
|
3961
|
+
ZodSymbol: () => ZodSymbol,
|
|
3962
|
+
ZodString: () => ZodString,
|
|
3963
|
+
ZodSet: () => ZodSet,
|
|
3964
|
+
ZodSchema: () => ZodType,
|
|
3965
|
+
ZodRecord: () => ZodRecord,
|
|
3966
|
+
ZodReadonly: () => ZodReadonly,
|
|
3967
|
+
ZodPromise: () => ZodPromise,
|
|
3968
|
+
ZodPipeline: () => ZodPipeline,
|
|
3969
|
+
ZodParsedType: () => ZodParsedType,
|
|
3970
|
+
ZodOptional: () => ZodOptional,
|
|
3971
|
+
ZodObject: () => ZodObject,
|
|
3972
|
+
ZodNumber: () => ZodNumber,
|
|
3973
|
+
ZodNullable: () => ZodNullable,
|
|
3974
|
+
ZodNull: () => ZodNull,
|
|
3975
|
+
ZodNever: () => ZodNever,
|
|
3976
|
+
ZodNativeEnum: () => ZodNativeEnum,
|
|
3977
|
+
ZodNaN: () => ZodNaN,
|
|
3978
|
+
ZodMap: () => ZodMap,
|
|
3979
|
+
ZodLiteral: () => ZodLiteral,
|
|
3980
|
+
ZodLazy: () => ZodLazy,
|
|
3981
|
+
ZodIssueCode: () => ZodIssueCode,
|
|
3982
|
+
ZodIntersection: () => ZodIntersection,
|
|
3983
|
+
ZodFunction: () => ZodFunction,
|
|
3984
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
3985
|
+
ZodError: () => ZodError,
|
|
3986
|
+
ZodEnum: () => ZodEnum,
|
|
3987
|
+
ZodEffects: () => ZodEffects,
|
|
3988
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
3989
|
+
ZodDefault: () => ZodDefault,
|
|
3990
|
+
ZodDate: () => ZodDate,
|
|
3991
|
+
ZodCatch: () => ZodCatch,
|
|
3992
|
+
ZodBranded: () => ZodBranded,
|
|
3993
|
+
ZodBoolean: () => ZodBoolean,
|
|
3994
|
+
ZodBigInt: () => ZodBigInt,
|
|
3995
|
+
ZodArray: () => ZodArray,
|
|
3996
|
+
ZodAny: () => ZodAny,
|
|
3997
|
+
Schema: () => ZodType,
|
|
3998
|
+
ParseStatus: () => ParseStatus,
|
|
3999
|
+
OK: () => OK,
|
|
4000
|
+
NEVER: () => NEVER,
|
|
4001
|
+
INVALID: () => INVALID,
|
|
4002
|
+
EMPTY_PATH: () => EMPTY_PATH,
|
|
4003
|
+
DIRTY: () => DIRTY,
|
|
4004
|
+
BRAND: () => BRAND
|
|
4005
|
+
});
|
|
4006
|
+
var init_external = __esm(() => {
|
|
4007
|
+
init_errors();
|
|
4008
|
+
init_parseUtil();
|
|
4009
|
+
init_typeAliases();
|
|
4010
|
+
init_util();
|
|
4011
|
+
init_types();
|
|
4012
|
+
init_ZodError();
|
|
4013
|
+
});
|
|
4014
|
+
|
|
4015
|
+
// node_modules/zod/dist/esm/v3/index.js
|
|
4016
|
+
var init_v3 = __esm(() => {
|
|
4017
|
+
init_external();
|
|
4018
|
+
init_external();
|
|
4019
|
+
});
|
|
4020
|
+
|
|
4021
|
+
// node_modules/zod/dist/esm/index.js
|
|
4022
|
+
var init_esm = __esm(() => {
|
|
4023
|
+
init_v3();
|
|
3961
4024
|
});
|
|
3962
4025
|
|
|
3963
4026
|
// src/mcp-server/console-logger.ts
|
|
@@ -4014,43 +4077,43 @@ var init_console_logger = __esm(() => {
|
|
|
4014
4077
|
|
|
4015
4078
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
4016
4079
|
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;
|
|
4017
|
-
var
|
|
4018
|
-
|
|
4080
|
+
var init_types2 = __esm(() => {
|
|
4081
|
+
init_esm();
|
|
4019
4082
|
SUPPORTED_PROTOCOL_VERSIONS = [
|
|
4020
4083
|
LATEST_PROTOCOL_VERSION,
|
|
4021
4084
|
"2024-10-07"
|
|
4022
4085
|
];
|
|
4023
|
-
ProgressTokenSchema =
|
|
4024
|
-
CursorSchema =
|
|
4025
|
-
BaseRequestParamsSchema =
|
|
4026
|
-
_meta:
|
|
4027
|
-
progressToken:
|
|
4086
|
+
ProgressTokenSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
4087
|
+
CursorSchema = exports_external.string();
|
|
4088
|
+
BaseRequestParamsSchema = exports_external.object({
|
|
4089
|
+
_meta: exports_external.optional(exports_external.object({
|
|
4090
|
+
progressToken: exports_external.optional(ProgressTokenSchema)
|
|
4028
4091
|
}).passthrough())
|
|
4029
4092
|
}).passthrough();
|
|
4030
|
-
RequestSchema =
|
|
4031
|
-
method:
|
|
4032
|
-
params:
|
|
4093
|
+
RequestSchema = exports_external.object({
|
|
4094
|
+
method: exports_external.string(),
|
|
4095
|
+
params: exports_external.optional(BaseRequestParamsSchema)
|
|
4033
4096
|
});
|
|
4034
|
-
BaseNotificationParamsSchema =
|
|
4035
|
-
_meta:
|
|
4097
|
+
BaseNotificationParamsSchema = exports_external.object({
|
|
4098
|
+
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
4036
4099
|
}).passthrough();
|
|
4037
|
-
NotificationSchema =
|
|
4038
|
-
method:
|
|
4039
|
-
params:
|
|
4100
|
+
NotificationSchema = exports_external.object({
|
|
4101
|
+
method: exports_external.string(),
|
|
4102
|
+
params: exports_external.optional(BaseNotificationParamsSchema)
|
|
4040
4103
|
});
|
|
4041
|
-
ResultSchema =
|
|
4042
|
-
_meta:
|
|
4104
|
+
ResultSchema = exports_external.object({
|
|
4105
|
+
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
4043
4106
|
}).passthrough();
|
|
4044
|
-
RequestIdSchema =
|
|
4045
|
-
JSONRPCRequestSchema =
|
|
4046
|
-
jsonrpc:
|
|
4107
|
+
RequestIdSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
4108
|
+
JSONRPCRequestSchema = exports_external.object({
|
|
4109
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4047
4110
|
id: RequestIdSchema
|
|
4048
4111
|
}).merge(RequestSchema).strict();
|
|
4049
|
-
JSONRPCNotificationSchema =
|
|
4050
|
-
jsonrpc:
|
|
4112
|
+
JSONRPCNotificationSchema = exports_external.object({
|
|
4113
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION)
|
|
4051
4114
|
}).merge(NotificationSchema).strict();
|
|
4052
|
-
JSONRPCResponseSchema =
|
|
4053
|
-
jsonrpc:
|
|
4115
|
+
JSONRPCResponseSchema = exports_external.object({
|
|
4116
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4054
4117
|
id: RequestIdSchema,
|
|
4055
4118
|
result: ResultSchema
|
|
4056
4119
|
}).strict();
|
|
@@ -4063,16 +4126,16 @@ var init_types = __esm(() => {
|
|
|
4063
4126
|
ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams";
|
|
4064
4127
|
ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
|
|
4065
4128
|
})(ErrorCode || (ErrorCode = {}));
|
|
4066
|
-
JSONRPCErrorSchema =
|
|
4067
|
-
jsonrpc:
|
|
4129
|
+
JSONRPCErrorSchema = exports_external.object({
|
|
4130
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4068
4131
|
id: RequestIdSchema,
|
|
4069
|
-
error:
|
|
4070
|
-
code:
|
|
4071
|
-
message:
|
|
4072
|
-
data:
|
|
4132
|
+
error: exports_external.object({
|
|
4133
|
+
code: exports_external.number().int(),
|
|
4134
|
+
message: exports_external.string(),
|
|
4135
|
+
data: exports_external.optional(exports_external.unknown())
|
|
4073
4136
|
})
|
|
4074
4137
|
}).strict();
|
|
4075
|
-
JSONRPCMessageSchema =
|
|
4138
|
+
JSONRPCMessageSchema = exports_external.union([
|
|
4076
4139
|
JSONRPCRequestSchema,
|
|
4077
4140
|
JSONRPCNotificationSchema,
|
|
4078
4141
|
JSONRPCResponseSchema,
|
|
@@ -4080,222 +4143,222 @@ var init_types = __esm(() => {
|
|
|
4080
4143
|
]);
|
|
4081
4144
|
EmptyResultSchema = ResultSchema.strict();
|
|
4082
4145
|
CancelledNotificationSchema = NotificationSchema.extend({
|
|
4083
|
-
method:
|
|
4146
|
+
method: exports_external.literal("notifications/cancelled"),
|
|
4084
4147
|
params: BaseNotificationParamsSchema.extend({
|
|
4085
4148
|
requestId: RequestIdSchema,
|
|
4086
|
-
reason:
|
|
4149
|
+
reason: exports_external.string().optional()
|
|
4087
4150
|
})
|
|
4088
4151
|
});
|
|
4089
|
-
ImplementationSchema =
|
|
4090
|
-
name:
|
|
4091
|
-
version:
|
|
4152
|
+
ImplementationSchema = exports_external.object({
|
|
4153
|
+
name: exports_external.string(),
|
|
4154
|
+
version: exports_external.string()
|
|
4092
4155
|
}).passthrough();
|
|
4093
|
-
ClientCapabilitiesSchema =
|
|
4094
|
-
experimental:
|
|
4095
|
-
sampling:
|
|
4096
|
-
roots:
|
|
4097
|
-
listChanged:
|
|
4156
|
+
ClientCapabilitiesSchema = exports_external.object({
|
|
4157
|
+
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4158
|
+
sampling: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4159
|
+
roots: exports_external.optional(exports_external.object({
|
|
4160
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4098
4161
|
}).passthrough())
|
|
4099
4162
|
}).passthrough();
|
|
4100
4163
|
InitializeRequestSchema = RequestSchema.extend({
|
|
4101
|
-
method:
|
|
4164
|
+
method: exports_external.literal("initialize"),
|
|
4102
4165
|
params: BaseRequestParamsSchema.extend({
|
|
4103
|
-
protocolVersion:
|
|
4166
|
+
protocolVersion: exports_external.string(),
|
|
4104
4167
|
capabilities: ClientCapabilitiesSchema,
|
|
4105
4168
|
clientInfo: ImplementationSchema
|
|
4106
4169
|
})
|
|
4107
4170
|
});
|
|
4108
|
-
ServerCapabilitiesSchema =
|
|
4109
|
-
experimental:
|
|
4110
|
-
logging:
|
|
4111
|
-
prompts:
|
|
4112
|
-
listChanged:
|
|
4171
|
+
ServerCapabilitiesSchema = exports_external.object({
|
|
4172
|
+
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4173
|
+
logging: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4174
|
+
prompts: exports_external.optional(exports_external.object({
|
|
4175
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4113
4176
|
}).passthrough()),
|
|
4114
|
-
resources:
|
|
4115
|
-
subscribe:
|
|
4116
|
-
listChanged:
|
|
4177
|
+
resources: exports_external.optional(exports_external.object({
|
|
4178
|
+
subscribe: exports_external.optional(exports_external.boolean()),
|
|
4179
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4117
4180
|
}).passthrough()),
|
|
4118
|
-
tools:
|
|
4119
|
-
listChanged:
|
|
4181
|
+
tools: exports_external.optional(exports_external.object({
|
|
4182
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4120
4183
|
}).passthrough())
|
|
4121
4184
|
}).passthrough();
|
|
4122
4185
|
InitializeResultSchema = ResultSchema.extend({
|
|
4123
|
-
protocolVersion:
|
|
4186
|
+
protocolVersion: exports_external.string(),
|
|
4124
4187
|
capabilities: ServerCapabilitiesSchema,
|
|
4125
4188
|
serverInfo: ImplementationSchema,
|
|
4126
|
-
instructions:
|
|
4189
|
+
instructions: exports_external.optional(exports_external.string())
|
|
4127
4190
|
});
|
|
4128
4191
|
InitializedNotificationSchema = NotificationSchema.extend({
|
|
4129
|
-
method:
|
|
4192
|
+
method: exports_external.literal("notifications/initialized")
|
|
4130
4193
|
});
|
|
4131
4194
|
PingRequestSchema = RequestSchema.extend({
|
|
4132
|
-
method:
|
|
4195
|
+
method: exports_external.literal("ping")
|
|
4133
4196
|
});
|
|
4134
|
-
ProgressSchema =
|
|
4135
|
-
progress:
|
|
4136
|
-
total:
|
|
4197
|
+
ProgressSchema = exports_external.object({
|
|
4198
|
+
progress: exports_external.number(),
|
|
4199
|
+
total: exports_external.optional(exports_external.number())
|
|
4137
4200
|
}).passthrough();
|
|
4138
4201
|
ProgressNotificationSchema = NotificationSchema.extend({
|
|
4139
|
-
method:
|
|
4202
|
+
method: exports_external.literal("notifications/progress"),
|
|
4140
4203
|
params: BaseNotificationParamsSchema.merge(ProgressSchema).extend({
|
|
4141
4204
|
progressToken: ProgressTokenSchema
|
|
4142
4205
|
})
|
|
4143
4206
|
});
|
|
4144
4207
|
PaginatedRequestSchema = RequestSchema.extend({
|
|
4145
4208
|
params: BaseRequestParamsSchema.extend({
|
|
4146
|
-
cursor:
|
|
4209
|
+
cursor: exports_external.optional(CursorSchema)
|
|
4147
4210
|
}).optional()
|
|
4148
4211
|
});
|
|
4149
4212
|
PaginatedResultSchema = ResultSchema.extend({
|
|
4150
|
-
nextCursor:
|
|
4213
|
+
nextCursor: exports_external.optional(CursorSchema)
|
|
4151
4214
|
});
|
|
4152
|
-
ResourceContentsSchema =
|
|
4153
|
-
uri:
|
|
4154
|
-
mimeType:
|
|
4215
|
+
ResourceContentsSchema = exports_external.object({
|
|
4216
|
+
uri: exports_external.string(),
|
|
4217
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4155
4218
|
}).passthrough();
|
|
4156
4219
|
TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
4157
|
-
text:
|
|
4220
|
+
text: exports_external.string()
|
|
4158
4221
|
});
|
|
4159
4222
|
BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
4160
|
-
blob:
|
|
4223
|
+
blob: exports_external.string().base64()
|
|
4161
4224
|
});
|
|
4162
|
-
ResourceSchema =
|
|
4163
|
-
uri:
|
|
4164
|
-
name:
|
|
4165
|
-
description:
|
|
4166
|
-
mimeType:
|
|
4225
|
+
ResourceSchema = exports_external.object({
|
|
4226
|
+
uri: exports_external.string(),
|
|
4227
|
+
name: exports_external.string(),
|
|
4228
|
+
description: exports_external.optional(exports_external.string()),
|
|
4229
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4167
4230
|
}).passthrough();
|
|
4168
|
-
ResourceTemplateSchema =
|
|
4169
|
-
uriTemplate:
|
|
4170
|
-
name:
|
|
4171
|
-
description:
|
|
4172
|
-
mimeType:
|
|
4231
|
+
ResourceTemplateSchema = exports_external.object({
|
|
4232
|
+
uriTemplate: exports_external.string(),
|
|
4233
|
+
name: exports_external.string(),
|
|
4234
|
+
description: exports_external.optional(exports_external.string()),
|
|
4235
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4173
4236
|
}).passthrough();
|
|
4174
4237
|
ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
4175
|
-
method:
|
|
4238
|
+
method: exports_external.literal("resources/list")
|
|
4176
4239
|
});
|
|
4177
4240
|
ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
4178
|
-
resources:
|
|
4241
|
+
resources: exports_external.array(ResourceSchema)
|
|
4179
4242
|
});
|
|
4180
4243
|
ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
4181
|
-
method:
|
|
4244
|
+
method: exports_external.literal("resources/templates/list")
|
|
4182
4245
|
});
|
|
4183
4246
|
ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
4184
|
-
resourceTemplates:
|
|
4247
|
+
resourceTemplates: exports_external.array(ResourceTemplateSchema)
|
|
4185
4248
|
});
|
|
4186
4249
|
ReadResourceRequestSchema = RequestSchema.extend({
|
|
4187
|
-
method:
|
|
4250
|
+
method: exports_external.literal("resources/read"),
|
|
4188
4251
|
params: BaseRequestParamsSchema.extend({
|
|
4189
|
-
uri:
|
|
4252
|
+
uri: exports_external.string()
|
|
4190
4253
|
})
|
|
4191
4254
|
});
|
|
4192
4255
|
ReadResourceResultSchema = ResultSchema.extend({
|
|
4193
|
-
contents:
|
|
4256
|
+
contents: exports_external.array(exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
4194
4257
|
});
|
|
4195
4258
|
ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
4196
|
-
method:
|
|
4259
|
+
method: exports_external.literal("notifications/resources/list_changed")
|
|
4197
4260
|
});
|
|
4198
4261
|
SubscribeRequestSchema = RequestSchema.extend({
|
|
4199
|
-
method:
|
|
4262
|
+
method: exports_external.literal("resources/subscribe"),
|
|
4200
4263
|
params: BaseRequestParamsSchema.extend({
|
|
4201
|
-
uri:
|
|
4264
|
+
uri: exports_external.string()
|
|
4202
4265
|
})
|
|
4203
4266
|
});
|
|
4204
4267
|
UnsubscribeRequestSchema = RequestSchema.extend({
|
|
4205
|
-
method:
|
|
4268
|
+
method: exports_external.literal("resources/unsubscribe"),
|
|
4206
4269
|
params: BaseRequestParamsSchema.extend({
|
|
4207
|
-
uri:
|
|
4270
|
+
uri: exports_external.string()
|
|
4208
4271
|
})
|
|
4209
4272
|
});
|
|
4210
4273
|
ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
4211
|
-
method:
|
|
4274
|
+
method: exports_external.literal("notifications/resources/updated"),
|
|
4212
4275
|
params: BaseNotificationParamsSchema.extend({
|
|
4213
|
-
uri:
|
|
4276
|
+
uri: exports_external.string()
|
|
4214
4277
|
})
|
|
4215
4278
|
});
|
|
4216
|
-
PromptArgumentSchema =
|
|
4217
|
-
name:
|
|
4218
|
-
description:
|
|
4219
|
-
required:
|
|
4279
|
+
PromptArgumentSchema = exports_external.object({
|
|
4280
|
+
name: exports_external.string(),
|
|
4281
|
+
description: exports_external.optional(exports_external.string()),
|
|
4282
|
+
required: exports_external.optional(exports_external.boolean())
|
|
4220
4283
|
}).passthrough();
|
|
4221
|
-
PromptSchema =
|
|
4222
|
-
name:
|
|
4223
|
-
description:
|
|
4224
|
-
arguments:
|
|
4284
|
+
PromptSchema = exports_external.object({
|
|
4285
|
+
name: exports_external.string(),
|
|
4286
|
+
description: exports_external.optional(exports_external.string()),
|
|
4287
|
+
arguments: exports_external.optional(exports_external.array(PromptArgumentSchema))
|
|
4225
4288
|
}).passthrough();
|
|
4226
4289
|
ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
4227
|
-
method:
|
|
4290
|
+
method: exports_external.literal("prompts/list")
|
|
4228
4291
|
});
|
|
4229
4292
|
ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
4230
|
-
prompts:
|
|
4293
|
+
prompts: exports_external.array(PromptSchema)
|
|
4231
4294
|
});
|
|
4232
4295
|
GetPromptRequestSchema = RequestSchema.extend({
|
|
4233
|
-
method:
|
|
4296
|
+
method: exports_external.literal("prompts/get"),
|
|
4234
4297
|
params: BaseRequestParamsSchema.extend({
|
|
4235
|
-
name:
|
|
4236
|
-
arguments:
|
|
4298
|
+
name: exports_external.string(),
|
|
4299
|
+
arguments: exports_external.optional(exports_external.record(exports_external.string()))
|
|
4237
4300
|
})
|
|
4238
4301
|
});
|
|
4239
|
-
TextContentSchema =
|
|
4240
|
-
type:
|
|
4241
|
-
text:
|
|
4302
|
+
TextContentSchema = exports_external.object({
|
|
4303
|
+
type: exports_external.literal("text"),
|
|
4304
|
+
text: exports_external.string()
|
|
4242
4305
|
}).passthrough();
|
|
4243
|
-
ImageContentSchema =
|
|
4244
|
-
type:
|
|
4245
|
-
data:
|
|
4246
|
-
mimeType:
|
|
4306
|
+
ImageContentSchema = exports_external.object({
|
|
4307
|
+
type: exports_external.literal("image"),
|
|
4308
|
+
data: exports_external.string().base64(),
|
|
4309
|
+
mimeType: exports_external.string()
|
|
4247
4310
|
}).passthrough();
|
|
4248
|
-
EmbeddedResourceSchema =
|
|
4249
|
-
type:
|
|
4250
|
-
resource:
|
|
4311
|
+
EmbeddedResourceSchema = exports_external.object({
|
|
4312
|
+
type: exports_external.literal("resource"),
|
|
4313
|
+
resource: exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema])
|
|
4251
4314
|
}).passthrough();
|
|
4252
|
-
PromptMessageSchema =
|
|
4253
|
-
role:
|
|
4254
|
-
content:
|
|
4315
|
+
PromptMessageSchema = exports_external.object({
|
|
4316
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4317
|
+
content: exports_external.union([
|
|
4255
4318
|
TextContentSchema,
|
|
4256
4319
|
ImageContentSchema,
|
|
4257
4320
|
EmbeddedResourceSchema
|
|
4258
4321
|
])
|
|
4259
4322
|
}).passthrough();
|
|
4260
4323
|
GetPromptResultSchema = ResultSchema.extend({
|
|
4261
|
-
description:
|
|
4262
|
-
messages:
|
|
4324
|
+
description: exports_external.optional(exports_external.string()),
|
|
4325
|
+
messages: exports_external.array(PromptMessageSchema)
|
|
4263
4326
|
});
|
|
4264
4327
|
PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
4265
|
-
method:
|
|
4328
|
+
method: exports_external.literal("notifications/prompts/list_changed")
|
|
4266
4329
|
});
|
|
4267
|
-
ToolSchema =
|
|
4268
|
-
name:
|
|
4269
|
-
description:
|
|
4270
|
-
inputSchema:
|
|
4271
|
-
type:
|
|
4272
|
-
properties:
|
|
4330
|
+
ToolSchema = exports_external.object({
|
|
4331
|
+
name: exports_external.string(),
|
|
4332
|
+
description: exports_external.optional(exports_external.string()),
|
|
4333
|
+
inputSchema: exports_external.object({
|
|
4334
|
+
type: exports_external.literal("object"),
|
|
4335
|
+
properties: exports_external.optional(exports_external.object({}).passthrough())
|
|
4273
4336
|
}).passthrough()
|
|
4274
4337
|
}).passthrough();
|
|
4275
4338
|
ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
4276
|
-
method:
|
|
4339
|
+
method: exports_external.literal("tools/list")
|
|
4277
4340
|
});
|
|
4278
4341
|
ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
4279
|
-
tools:
|
|
4342
|
+
tools: exports_external.array(ToolSchema)
|
|
4280
4343
|
});
|
|
4281
4344
|
CallToolResultSchema = ResultSchema.extend({
|
|
4282
|
-
content:
|
|
4283
|
-
isError:
|
|
4345
|
+
content: exports_external.array(exports_external.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema])),
|
|
4346
|
+
isError: exports_external.boolean().default(false).optional()
|
|
4284
4347
|
});
|
|
4285
4348
|
CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
4286
|
-
toolResult:
|
|
4349
|
+
toolResult: exports_external.unknown()
|
|
4287
4350
|
}));
|
|
4288
4351
|
CallToolRequestSchema = RequestSchema.extend({
|
|
4289
|
-
method:
|
|
4352
|
+
method: exports_external.literal("tools/call"),
|
|
4290
4353
|
params: BaseRequestParamsSchema.extend({
|
|
4291
|
-
name:
|
|
4292
|
-
arguments:
|
|
4354
|
+
name: exports_external.string(),
|
|
4355
|
+
arguments: exports_external.optional(exports_external.record(exports_external.unknown()))
|
|
4293
4356
|
})
|
|
4294
4357
|
});
|
|
4295
4358
|
ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
4296
|
-
method:
|
|
4359
|
+
method: exports_external.literal("notifications/tools/list_changed")
|
|
4297
4360
|
});
|
|
4298
|
-
LoggingLevelSchema =
|
|
4361
|
+
LoggingLevelSchema = exports_external.enum([
|
|
4299
4362
|
"debug",
|
|
4300
4363
|
"info",
|
|
4301
4364
|
"notice",
|
|
@@ -4306,93 +4369,93 @@ var init_types = __esm(() => {
|
|
|
4306
4369
|
"emergency"
|
|
4307
4370
|
]);
|
|
4308
4371
|
SetLevelRequestSchema = RequestSchema.extend({
|
|
4309
|
-
method:
|
|
4372
|
+
method: exports_external.literal("logging/setLevel"),
|
|
4310
4373
|
params: BaseRequestParamsSchema.extend({
|
|
4311
4374
|
level: LoggingLevelSchema
|
|
4312
4375
|
})
|
|
4313
4376
|
});
|
|
4314
4377
|
LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
4315
|
-
method:
|
|
4378
|
+
method: exports_external.literal("notifications/message"),
|
|
4316
4379
|
params: BaseNotificationParamsSchema.extend({
|
|
4317
4380
|
level: LoggingLevelSchema,
|
|
4318
|
-
logger:
|
|
4319
|
-
data:
|
|
4381
|
+
logger: exports_external.optional(exports_external.string()),
|
|
4382
|
+
data: exports_external.unknown()
|
|
4320
4383
|
})
|
|
4321
4384
|
});
|
|
4322
|
-
ModelHintSchema =
|
|
4323
|
-
name:
|
|
4385
|
+
ModelHintSchema = exports_external.object({
|
|
4386
|
+
name: exports_external.string().optional()
|
|
4324
4387
|
}).passthrough();
|
|
4325
|
-
ModelPreferencesSchema =
|
|
4326
|
-
hints:
|
|
4327
|
-
costPriority:
|
|
4328
|
-
speedPriority:
|
|
4329
|
-
intelligencePriority:
|
|
4388
|
+
ModelPreferencesSchema = exports_external.object({
|
|
4389
|
+
hints: exports_external.optional(exports_external.array(ModelHintSchema)),
|
|
4390
|
+
costPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
4391
|
+
speedPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
4392
|
+
intelligencePriority: exports_external.optional(exports_external.number().min(0).max(1))
|
|
4330
4393
|
}).passthrough();
|
|
4331
|
-
SamplingMessageSchema =
|
|
4332
|
-
role:
|
|
4333
|
-
content:
|
|
4394
|
+
SamplingMessageSchema = exports_external.object({
|
|
4395
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4396
|
+
content: exports_external.union([TextContentSchema, ImageContentSchema])
|
|
4334
4397
|
}).passthrough();
|
|
4335
4398
|
CreateMessageRequestSchema = RequestSchema.extend({
|
|
4336
|
-
method:
|
|
4399
|
+
method: exports_external.literal("sampling/createMessage"),
|
|
4337
4400
|
params: BaseRequestParamsSchema.extend({
|
|
4338
|
-
messages:
|
|
4339
|
-
systemPrompt:
|
|
4340
|
-
includeContext:
|
|
4341
|
-
temperature:
|
|
4342
|
-
maxTokens:
|
|
4343
|
-
stopSequences:
|
|
4344
|
-
metadata:
|
|
4345
|
-
modelPreferences:
|
|
4401
|
+
messages: exports_external.array(SamplingMessageSchema),
|
|
4402
|
+
systemPrompt: exports_external.optional(exports_external.string()),
|
|
4403
|
+
includeContext: exports_external.optional(exports_external.enum(["none", "thisServer", "allServers"])),
|
|
4404
|
+
temperature: exports_external.optional(exports_external.number()),
|
|
4405
|
+
maxTokens: exports_external.number().int(),
|
|
4406
|
+
stopSequences: exports_external.optional(exports_external.array(exports_external.string())),
|
|
4407
|
+
metadata: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4408
|
+
modelPreferences: exports_external.optional(ModelPreferencesSchema)
|
|
4346
4409
|
})
|
|
4347
4410
|
});
|
|
4348
4411
|
CreateMessageResultSchema = ResultSchema.extend({
|
|
4349
|
-
model:
|
|
4350
|
-
stopReason:
|
|
4351
|
-
role:
|
|
4352
|
-
content:
|
|
4412
|
+
model: exports_external.string(),
|
|
4413
|
+
stopReason: exports_external.optional(exports_external.enum(["endTurn", "stopSequence", "maxTokens"]).or(exports_external.string())),
|
|
4414
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4415
|
+
content: exports_external.discriminatedUnion("type", [
|
|
4353
4416
|
TextContentSchema,
|
|
4354
4417
|
ImageContentSchema
|
|
4355
4418
|
])
|
|
4356
4419
|
});
|
|
4357
|
-
ResourceReferenceSchema =
|
|
4358
|
-
type:
|
|
4359
|
-
uri:
|
|
4420
|
+
ResourceReferenceSchema = exports_external.object({
|
|
4421
|
+
type: exports_external.literal("ref/resource"),
|
|
4422
|
+
uri: exports_external.string()
|
|
4360
4423
|
}).passthrough();
|
|
4361
|
-
PromptReferenceSchema =
|
|
4362
|
-
type:
|
|
4363
|
-
name:
|
|
4424
|
+
PromptReferenceSchema = exports_external.object({
|
|
4425
|
+
type: exports_external.literal("ref/prompt"),
|
|
4426
|
+
name: exports_external.string()
|
|
4364
4427
|
}).passthrough();
|
|
4365
4428
|
CompleteRequestSchema = RequestSchema.extend({
|
|
4366
|
-
method:
|
|
4429
|
+
method: exports_external.literal("completion/complete"),
|
|
4367
4430
|
params: BaseRequestParamsSchema.extend({
|
|
4368
|
-
ref:
|
|
4369
|
-
argument:
|
|
4370
|
-
name:
|
|
4371
|
-
value:
|
|
4431
|
+
ref: exports_external.union([PromptReferenceSchema, ResourceReferenceSchema]),
|
|
4432
|
+
argument: exports_external.object({
|
|
4433
|
+
name: exports_external.string(),
|
|
4434
|
+
value: exports_external.string()
|
|
4372
4435
|
}).passthrough()
|
|
4373
4436
|
})
|
|
4374
4437
|
});
|
|
4375
4438
|
CompleteResultSchema = ResultSchema.extend({
|
|
4376
|
-
completion:
|
|
4377
|
-
values:
|
|
4378
|
-
total:
|
|
4379
|
-
hasMore:
|
|
4439
|
+
completion: exports_external.object({
|
|
4440
|
+
values: exports_external.array(exports_external.string()).max(100),
|
|
4441
|
+
total: exports_external.optional(exports_external.number().int()),
|
|
4442
|
+
hasMore: exports_external.optional(exports_external.boolean())
|
|
4380
4443
|
}).passthrough()
|
|
4381
4444
|
});
|
|
4382
|
-
RootSchema =
|
|
4383
|
-
uri:
|
|
4384
|
-
name:
|
|
4445
|
+
RootSchema = exports_external.object({
|
|
4446
|
+
uri: exports_external.string().startsWith("file://"),
|
|
4447
|
+
name: exports_external.optional(exports_external.string())
|
|
4385
4448
|
}).passthrough();
|
|
4386
4449
|
ListRootsRequestSchema = RequestSchema.extend({
|
|
4387
|
-
method:
|
|
4450
|
+
method: exports_external.literal("roots/list")
|
|
4388
4451
|
});
|
|
4389
4452
|
ListRootsResultSchema = ResultSchema.extend({
|
|
4390
|
-
roots:
|
|
4453
|
+
roots: exports_external.array(RootSchema)
|
|
4391
4454
|
});
|
|
4392
4455
|
RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
4393
|
-
method:
|
|
4456
|
+
method: exports_external.literal("notifications/roots/list_changed")
|
|
4394
4457
|
});
|
|
4395
|
-
ClientRequestSchema =
|
|
4458
|
+
ClientRequestSchema = exports_external.union([
|
|
4396
4459
|
PingRequestSchema,
|
|
4397
4460
|
InitializeRequestSchema,
|
|
4398
4461
|
CompleteRequestSchema,
|
|
@@ -4407,23 +4470,23 @@ var init_types = __esm(() => {
|
|
|
4407
4470
|
CallToolRequestSchema,
|
|
4408
4471
|
ListToolsRequestSchema
|
|
4409
4472
|
]);
|
|
4410
|
-
ClientNotificationSchema =
|
|
4473
|
+
ClientNotificationSchema = exports_external.union([
|
|
4411
4474
|
CancelledNotificationSchema,
|
|
4412
4475
|
ProgressNotificationSchema,
|
|
4413
4476
|
InitializedNotificationSchema,
|
|
4414
4477
|
RootsListChangedNotificationSchema
|
|
4415
4478
|
]);
|
|
4416
|
-
ClientResultSchema =
|
|
4479
|
+
ClientResultSchema = exports_external.union([
|
|
4417
4480
|
EmptyResultSchema,
|
|
4418
4481
|
CreateMessageResultSchema,
|
|
4419
4482
|
ListRootsResultSchema
|
|
4420
4483
|
]);
|
|
4421
|
-
ServerRequestSchema =
|
|
4484
|
+
ServerRequestSchema = exports_external.union([
|
|
4422
4485
|
PingRequestSchema,
|
|
4423
4486
|
CreateMessageRequestSchema,
|
|
4424
4487
|
ListRootsRequestSchema
|
|
4425
4488
|
]);
|
|
4426
|
-
ServerNotificationSchema =
|
|
4489
|
+
ServerNotificationSchema = exports_external.union([
|
|
4427
4490
|
CancelledNotificationSchema,
|
|
4428
4491
|
ProgressNotificationSchema,
|
|
4429
4492
|
LoggingMessageNotificationSchema,
|
|
@@ -4432,7 +4495,7 @@ var init_types = __esm(() => {
|
|
|
4432
4495
|
ToolListChangedNotificationSchema,
|
|
4433
4496
|
PromptListChangedNotificationSchema
|
|
4434
4497
|
]);
|
|
4435
|
-
ServerResultSchema =
|
|
4498
|
+
ServerResultSchema = exports_external.union([
|
|
4436
4499
|
EmptyResultSchema,
|
|
4437
4500
|
InitializeResultSchema,
|
|
4438
4501
|
CompleteResultSchema,
|
|
@@ -5048,14 +5111,14 @@ var require_inherits_browser = __commonJS((exports, module) => {
|
|
|
5048
5111
|
// node_modules/inherits/inherits.js
|
|
5049
5112
|
var require_inherits = __commonJS((exports, module) => {
|
|
5050
5113
|
try {
|
|
5051
|
-
|
|
5052
|
-
if (typeof
|
|
5114
|
+
util3 = __require("util");
|
|
5115
|
+
if (typeof util3.inherits !== "function")
|
|
5053
5116
|
throw "";
|
|
5054
|
-
module.exports =
|
|
5117
|
+
module.exports = util3.inherits;
|
|
5055
5118
|
} catch (e) {
|
|
5056
5119
|
module.exports = require_inherits_browser();
|
|
5057
5120
|
}
|
|
5058
|
-
var
|
|
5121
|
+
var util3;
|
|
5059
5122
|
});
|
|
5060
5123
|
|
|
5061
5124
|
// node_modules/toidentifier/index.js
|
|
@@ -9205,7 +9268,7 @@ data: ${JSON.stringify(message)}
|
|
|
9205
9268
|
}
|
|
9206
9269
|
var import_raw_body, import_content_type, MAXIMUM_MESSAGE_SIZE = "4mb";
|
|
9207
9270
|
var init_sse = __esm(() => {
|
|
9208
|
-
|
|
9271
|
+
init_types2();
|
|
9209
9272
|
import_raw_body = __toESM(require_raw_body(), 1);
|
|
9210
9273
|
import_content_type = __toESM(require_content_type(), 1);
|
|
9211
9274
|
});
|
|
@@ -9240,7 +9303,7 @@ function serializeMessage(message) {
|
|
|
9240
9303
|
`;
|
|
9241
9304
|
}
|
|
9242
9305
|
var init_stdio = __esm(() => {
|
|
9243
|
-
|
|
9306
|
+
init_types2();
|
|
9244
9307
|
});
|
|
9245
9308
|
|
|
9246
9309
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
@@ -9597,7 +9660,7 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
9597
9660
|
// node_modules/body-parser/node_modules/debug/src/node.js
|
|
9598
9661
|
var require_node = __commonJS((exports, module) => {
|
|
9599
9662
|
var tty = __require("tty");
|
|
9600
|
-
var
|
|
9663
|
+
var util3 = __require("util");
|
|
9601
9664
|
exports = module.exports = require_debug();
|
|
9602
9665
|
exports.init = init;
|
|
9603
9666
|
exports.log = log2;
|
|
@@ -9626,7 +9689,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9626
9689
|
}, {});
|
|
9627
9690
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
9628
9691
|
if (fd !== 1 && fd !== 2) {
|
|
9629
|
-
|
|
9692
|
+
util3.deprecate(function() {
|
|
9630
9693
|
}, "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)")();
|
|
9631
9694
|
}
|
|
9632
9695
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -9635,14 +9698,14 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9635
9698
|
}
|
|
9636
9699
|
exports.formatters.o = function(v2) {
|
|
9637
9700
|
this.inspectOpts.colors = this.useColors;
|
|
9638
|
-
return
|
|
9701
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
9639
9702
|
`).map(function(str) {
|
|
9640
9703
|
return str.trim();
|
|
9641
9704
|
}).join(" ");
|
|
9642
9705
|
};
|
|
9643
9706
|
exports.formatters.O = function(v2) {
|
|
9644
9707
|
this.inspectOpts.colors = this.useColors;
|
|
9645
|
-
return
|
|
9708
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
9646
9709
|
};
|
|
9647
9710
|
function formatArgs(args) {
|
|
9648
9711
|
var name = this.namespace;
|
|
@@ -9659,7 +9722,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9659
9722
|
}
|
|
9660
9723
|
}
|
|
9661
9724
|
function log2() {
|
|
9662
|
-
return stream.write(
|
|
9725
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
9663
9726
|
`);
|
|
9664
9727
|
}
|
|
9665
9728
|
function save(namespaces) {
|
|
@@ -22301,7 +22364,7 @@ var require_mime_types = __commonJS((exports) => {
|
|
|
22301
22364
|
}
|
|
22302
22365
|
return exports.types[extension2] || false;
|
|
22303
22366
|
}
|
|
22304
|
-
function populateMaps(extensions,
|
|
22367
|
+
function populateMaps(extensions, types2) {
|
|
22305
22368
|
var preference = ["nginx", "apache", undefined, "iana"];
|
|
22306
22369
|
Object.keys(db).forEach(function forEachMimeType(type) {
|
|
22307
22370
|
var mime = db[type];
|
|
@@ -22312,14 +22375,14 @@ var require_mime_types = __commonJS((exports) => {
|
|
|
22312
22375
|
extensions[type] = exts;
|
|
22313
22376
|
for (var i = 0;i < exts.length; i++) {
|
|
22314
22377
|
var extension2 = exts[i];
|
|
22315
|
-
if (
|
|
22316
|
-
var from = preference.indexOf(db[
|
|
22378
|
+
if (types2[extension2]) {
|
|
22379
|
+
var from = preference.indexOf(db[types2[extension2]].source);
|
|
22317
22380
|
var to = preference.indexOf(mime.source);
|
|
22318
|
-
if (
|
|
22381
|
+
if (types2[extension2] !== "application/octet-stream" && (from > to || from === to && types2[extension2].substr(0, 12) === "application/")) {
|
|
22319
22382
|
continue;
|
|
22320
22383
|
}
|
|
22321
22384
|
}
|
|
22322
|
-
|
|
22385
|
+
types2[extension2] = type;
|
|
22323
22386
|
}
|
|
22324
22387
|
});
|
|
22325
22388
|
}
|
|
@@ -22342,23 +22405,23 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
22342
22405
|
module.exports.match = mimeMatch;
|
|
22343
22406
|
function typeis(value, types_) {
|
|
22344
22407
|
var i;
|
|
22345
|
-
var
|
|
22408
|
+
var types2 = types_;
|
|
22346
22409
|
var val = tryNormalizeType(value);
|
|
22347
22410
|
if (!val) {
|
|
22348
22411
|
return false;
|
|
22349
22412
|
}
|
|
22350
|
-
if (
|
|
22351
|
-
|
|
22352
|
-
for (i = 0;i <
|
|
22353
|
-
|
|
22413
|
+
if (types2 && !Array.isArray(types2)) {
|
|
22414
|
+
types2 = new Array(arguments.length - 1);
|
|
22415
|
+
for (i = 0;i < types2.length; i++) {
|
|
22416
|
+
types2[i] = arguments[i + 1];
|
|
22354
22417
|
}
|
|
22355
22418
|
}
|
|
22356
|
-
if (!
|
|
22419
|
+
if (!types2 || !types2.length) {
|
|
22357
22420
|
return val;
|
|
22358
22421
|
}
|
|
22359
22422
|
var type;
|
|
22360
|
-
for (i = 0;i <
|
|
22361
|
-
if (mimeMatch(normalize(type =
|
|
22423
|
+
for (i = 0;i < types2.length; i++) {
|
|
22424
|
+
if (mimeMatch(normalize(type = types2[i]), val)) {
|
|
22362
22425
|
return type[0] === "+" || type.indexOf("*") !== -1 ? val : type;
|
|
22363
22426
|
}
|
|
22364
22427
|
}
|
|
@@ -22368,18 +22431,18 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
22368
22431
|
return req.headers["transfer-encoding"] !== undefined || !isNaN(req.headers["content-length"]);
|
|
22369
22432
|
}
|
|
22370
22433
|
function typeofrequest(req, types_) {
|
|
22371
|
-
var
|
|
22434
|
+
var types2 = types_;
|
|
22372
22435
|
if (!hasbody(req)) {
|
|
22373
22436
|
return null;
|
|
22374
22437
|
}
|
|
22375
22438
|
if (arguments.length > 2) {
|
|
22376
|
-
|
|
22377
|
-
for (var i = 0;i <
|
|
22378
|
-
|
|
22439
|
+
types2 = new Array(arguments.length - 1);
|
|
22440
|
+
for (var i = 0;i < types2.length; i++) {
|
|
22441
|
+
types2[i] = arguments[i + 1];
|
|
22379
22442
|
}
|
|
22380
22443
|
}
|
|
22381
22444
|
var value = req.headers["content-type"];
|
|
22382
|
-
return typeis(value,
|
|
22445
|
+
return typeis(value, types2);
|
|
22383
22446
|
}
|
|
22384
22447
|
function normalize(type) {
|
|
22385
22448
|
if (typeof type !== "string") {
|
|
@@ -25437,7 +25500,7 @@ var require_browser2 = __commonJS((exports, module) => {
|
|
|
25437
25500
|
// node_modules/finalhandler/node_modules/debug/src/node.js
|
|
25438
25501
|
var require_node2 = __commonJS((exports, module) => {
|
|
25439
25502
|
var tty = __require("tty");
|
|
25440
|
-
var
|
|
25503
|
+
var util3 = __require("util");
|
|
25441
25504
|
exports = module.exports = require_debug2();
|
|
25442
25505
|
exports.init = init;
|
|
25443
25506
|
exports.log = log2;
|
|
@@ -25466,7 +25529,7 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25466
25529
|
}, {});
|
|
25467
25530
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
25468
25531
|
if (fd !== 1 && fd !== 2) {
|
|
25469
|
-
|
|
25532
|
+
util3.deprecate(function() {
|
|
25470
25533
|
}, "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)")();
|
|
25471
25534
|
}
|
|
25472
25535
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -25475,14 +25538,14 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25475
25538
|
}
|
|
25476
25539
|
exports.formatters.o = function(v2) {
|
|
25477
25540
|
this.inspectOpts.colors = this.useColors;
|
|
25478
|
-
return
|
|
25541
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
25479
25542
|
`).map(function(str) {
|
|
25480
25543
|
return str.trim();
|
|
25481
25544
|
}).join(" ");
|
|
25482
25545
|
};
|
|
25483
25546
|
exports.formatters.O = function(v2) {
|
|
25484
25547
|
this.inspectOpts.colors = this.useColors;
|
|
25485
|
-
return
|
|
25548
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
25486
25549
|
};
|
|
25487
25550
|
function formatArgs(args) {
|
|
25488
25551
|
var name = this.namespace;
|
|
@@ -25499,7 +25562,7 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25499
25562
|
}
|
|
25500
25563
|
}
|
|
25501
25564
|
function log2() {
|
|
25502
|
-
return stream.write(
|
|
25565
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
25503
25566
|
`);
|
|
25504
25567
|
}
|
|
25505
25568
|
function save(namespaces) {
|
|
@@ -26167,7 +26230,7 @@ var require_browser3 = __commonJS((exports, module) => {
|
|
|
26167
26230
|
// node_modules/express/node_modules/debug/src/node.js
|
|
26168
26231
|
var require_node3 = __commonJS((exports, module) => {
|
|
26169
26232
|
var tty = __require("tty");
|
|
26170
|
-
var
|
|
26233
|
+
var util3 = __require("util");
|
|
26171
26234
|
exports = module.exports = require_debug3();
|
|
26172
26235
|
exports.init = init;
|
|
26173
26236
|
exports.log = log2;
|
|
@@ -26196,7 +26259,7 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26196
26259
|
}, {});
|
|
26197
26260
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
26198
26261
|
if (fd !== 1 && fd !== 2) {
|
|
26199
|
-
|
|
26262
|
+
util3.deprecate(function() {
|
|
26200
26263
|
}, "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)")();
|
|
26201
26264
|
}
|
|
26202
26265
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -26205,14 +26268,14 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26205
26268
|
}
|
|
26206
26269
|
exports.formatters.o = function(v2) {
|
|
26207
26270
|
this.inspectOpts.colors = this.useColors;
|
|
26208
|
-
return
|
|
26271
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
26209
26272
|
`).map(function(str) {
|
|
26210
26273
|
return str.trim();
|
|
26211
26274
|
}).join(" ");
|
|
26212
26275
|
};
|
|
26213
26276
|
exports.formatters.O = function(v2) {
|
|
26214
26277
|
this.inspectOpts.colors = this.useColors;
|
|
26215
|
-
return
|
|
26278
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
26216
26279
|
};
|
|
26217
26280
|
function formatArgs(args) {
|
|
26218
26281
|
var name = this.namespace;
|
|
@@ -26229,7 +26292,7 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26229
26292
|
}
|
|
26230
26293
|
}
|
|
26231
26294
|
function log2() {
|
|
26232
|
-
return stream.write(
|
|
26295
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
26233
26296
|
`);
|
|
26234
26297
|
}
|
|
26235
26298
|
function save(namespaces) {
|
|
@@ -27750,7 +27813,7 @@ var require_browser4 = __commonJS((exports, module) => {
|
|
|
27750
27813
|
// node_modules/send/node_modules/debug/src/node.js
|
|
27751
27814
|
var require_node4 = __commonJS((exports, module) => {
|
|
27752
27815
|
var tty = __require("tty");
|
|
27753
|
-
var
|
|
27816
|
+
var util3 = __require("util");
|
|
27754
27817
|
exports = module.exports = require_debug4();
|
|
27755
27818
|
exports.init = init;
|
|
27756
27819
|
exports.log = log2;
|
|
@@ -27779,7 +27842,7 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27779
27842
|
}, {});
|
|
27780
27843
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
27781
27844
|
if (fd !== 1 && fd !== 2) {
|
|
27782
|
-
|
|
27845
|
+
util3.deprecate(function() {
|
|
27783
27846
|
}, "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)")();
|
|
27784
27847
|
}
|
|
27785
27848
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -27788,14 +27851,14 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27788
27851
|
}
|
|
27789
27852
|
exports.formatters.o = function(v2) {
|
|
27790
27853
|
this.inspectOpts.colors = this.useColors;
|
|
27791
|
-
return
|
|
27854
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
27792
27855
|
`).map(function(str) {
|
|
27793
27856
|
return str.trim();
|
|
27794
27857
|
}).join(" ");
|
|
27795
27858
|
};
|
|
27796
27859
|
exports.formatters.O = function(v2) {
|
|
27797
27860
|
this.inspectOpts.colors = this.useColors;
|
|
27798
|
-
return
|
|
27861
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
27799
27862
|
};
|
|
27800
27863
|
function formatArgs(args) {
|
|
27801
27864
|
var name = this.namespace;
|
|
@@ -27812,7 +27875,7 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27812
27875
|
}
|
|
27813
27876
|
}
|
|
27814
27877
|
function log2() {
|
|
27815
|
-
return stream.write(
|
|
27878
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
27816
27879
|
`);
|
|
27817
27880
|
}
|
|
27818
27881
|
function save(namespaces) {
|
|
@@ -28293,7 +28356,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
28293
28356
|
var path = __require("path");
|
|
28294
28357
|
var statuses = require_statuses();
|
|
28295
28358
|
var Stream = __require("stream");
|
|
28296
|
-
var
|
|
28359
|
+
var util3 = __require("util");
|
|
28297
28360
|
var extname = path.extname;
|
|
28298
28361
|
var join = path.join;
|
|
28299
28362
|
var normalize = path.normalize;
|
|
@@ -28339,7 +28402,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
28339
28402
|
this.from(opts.from);
|
|
28340
28403
|
}
|
|
28341
28404
|
}
|
|
28342
|
-
|
|
28405
|
+
util3.inherits(SendStream, Stream);
|
|
28343
28406
|
SendStream.prototype.etag = deprecate.function(function etag(val) {
|
|
28344
28407
|
this._etag = Boolean(val);
|
|
28345
28408
|
debug("etag %s", this._etag);
|
|
@@ -29695,10 +29758,10 @@ var require_utils2 = __commonJS((exports) => {
|
|
|
29695
29758
|
exports.normalizeType = function(type) {
|
|
29696
29759
|
return ~type.indexOf("/") ? acceptParams(type) : { value: mime.lookup(type), params: {} };
|
|
29697
29760
|
};
|
|
29698
|
-
exports.normalizeTypes = function(
|
|
29761
|
+
exports.normalizeTypes = function(types2) {
|
|
29699
29762
|
var ret = [];
|
|
29700
|
-
for (var i = 0;i <
|
|
29701
|
-
ret.push(exports.normalizeType(
|
|
29763
|
+
for (var i = 0;i < types2.length; ++i) {
|
|
29764
|
+
ret.push(exports.normalizeType(types2[i]));
|
|
29702
29765
|
}
|
|
29703
29766
|
return ret;
|
|
29704
29767
|
};
|
|
@@ -30598,23 +30661,23 @@ var require_accepts = __commonJS((exports, module) => {
|
|
|
30598
30661
|
this.negotiator = new Negotiator(req);
|
|
30599
30662
|
}
|
|
30600
30663
|
Accepts.prototype.type = Accepts.prototype.types = function(types_) {
|
|
30601
|
-
var
|
|
30602
|
-
if (
|
|
30603
|
-
|
|
30604
|
-
for (var i = 0;i <
|
|
30605
|
-
|
|
30664
|
+
var types2 = types_;
|
|
30665
|
+
if (types2 && !Array.isArray(types2)) {
|
|
30666
|
+
types2 = new Array(arguments.length);
|
|
30667
|
+
for (var i = 0;i < types2.length; i++) {
|
|
30668
|
+
types2[i] = arguments[i];
|
|
30606
30669
|
}
|
|
30607
30670
|
}
|
|
30608
|
-
if (!
|
|
30671
|
+
if (!types2 || types2.length === 0) {
|
|
30609
30672
|
return this.negotiator.mediaTypes();
|
|
30610
30673
|
}
|
|
30611
30674
|
if (!this.headers.accept) {
|
|
30612
|
-
return
|
|
30675
|
+
return types2[0];
|
|
30613
30676
|
}
|
|
30614
|
-
var mimes =
|
|
30677
|
+
var mimes = types2.map(extToMime);
|
|
30615
30678
|
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime));
|
|
30616
30679
|
var first = accepts[0];
|
|
30617
|
-
return first ?
|
|
30680
|
+
return first ? types2[mimes.indexOf(first)] : false;
|
|
30618
30681
|
};
|
|
30619
30682
|
Accepts.prototype.encoding = Accepts.prototype.encodings = function(encodings_) {
|
|
30620
30683
|
var encodings = encodings_;
|
|
@@ -30738,9 +30801,9 @@ var require_request = __commonJS((exports, module) => {
|
|
|
30738
30801
|
return query[name];
|
|
30739
30802
|
return defaultValue;
|
|
30740
30803
|
};
|
|
30741
|
-
req.is = function is(
|
|
30742
|
-
var arr =
|
|
30743
|
-
if (!Array.isArray(
|
|
30804
|
+
req.is = function is(types2) {
|
|
30805
|
+
var arr = types2;
|
|
30806
|
+
if (!Array.isArray(types2)) {
|
|
30744
30807
|
arr = new Array(arguments.length);
|
|
30745
30808
|
for (var i = 0;i < arr.length; i++) {
|
|
30746
30809
|
arr[i] = arguments[i];
|
|
@@ -32116,14 +32179,14 @@ function mergeCapabilities(base, additional) {
|
|
|
32116
32179
|
}
|
|
32117
32180
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
32118
32181
|
var init_protocol = __esm(() => {
|
|
32119
|
-
|
|
32182
|
+
init_types2();
|
|
32120
32183
|
});
|
|
32121
32184
|
|
|
32122
32185
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
32123
32186
|
var Server;
|
|
32124
32187
|
var init_server = __esm(() => {
|
|
32125
32188
|
init_protocol();
|
|
32126
|
-
|
|
32189
|
+
init_types2();
|
|
32127
32190
|
Server = class Server extends Protocol {
|
|
32128
32191
|
constructor(_serverInfo, options) {
|
|
32129
32192
|
var _a;
|
|
@@ -32377,7 +32440,7 @@ function parseArrayDef(def, refs) {
|
|
|
32377
32440
|
return res;
|
|
32378
32441
|
}
|
|
32379
32442
|
var init_array = __esm(() => {
|
|
32380
|
-
|
|
32443
|
+
init_esm();
|
|
32381
32444
|
init_parseDef();
|
|
32382
32445
|
});
|
|
32383
32446
|
|
|
@@ -32943,7 +33006,7 @@ function parseRecordDef(def, refs) {
|
|
|
32943
33006
|
return schema;
|
|
32944
33007
|
}
|
|
32945
33008
|
var init_record = __esm(() => {
|
|
32946
|
-
|
|
33009
|
+
init_esm();
|
|
32947
33010
|
init_parseDef();
|
|
32948
33011
|
init_string();
|
|
32949
33012
|
init_branded();
|
|
@@ -33015,15 +33078,15 @@ function parseUnionDef(def, refs) {
|
|
|
33015
33078
|
return asAnyOf(def, refs);
|
|
33016
33079
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
33017
33080
|
if (options.every((x2) => (x2._def.typeName in primitiveMappings) && (!x2._def.checks || !x2._def.checks.length))) {
|
|
33018
|
-
const
|
|
33081
|
+
const types2 = options.reduce((types3, x2) => {
|
|
33019
33082
|
const type = primitiveMappings[x2._def.typeName];
|
|
33020
|
-
return type && !
|
|
33083
|
+
return type && !types3.includes(type) ? [...types3, type] : types3;
|
|
33021
33084
|
}, []);
|
|
33022
33085
|
return {
|
|
33023
|
-
type:
|
|
33086
|
+
type: types2.length > 1 ? types2 : types2[0]
|
|
33024
33087
|
};
|
|
33025
33088
|
} else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
|
|
33026
|
-
const
|
|
33089
|
+
const types2 = options.reduce((acc, x2) => {
|
|
33027
33090
|
const type = typeof x2._def.value;
|
|
33028
33091
|
switch (type) {
|
|
33029
33092
|
case "string":
|
|
@@ -33042,8 +33105,8 @@ function parseUnionDef(def, refs) {
|
|
|
33042
33105
|
return acc;
|
|
33043
33106
|
}
|
|
33044
33107
|
}, []);
|
|
33045
|
-
if (
|
|
33046
|
-
const uniqueTypes =
|
|
33108
|
+
if (types2.length === options.length) {
|
|
33109
|
+
const uniqueTypes = types2.filter((x2, i, a) => a.indexOf(x2) === i);
|
|
33047
33110
|
return {
|
|
33048
33111
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
33049
33112
|
enum: options.reduce((acc, x2) => {
|
|
@@ -33217,7 +33280,7 @@ function parseObjectDef(def, refs) {
|
|
|
33217
33280
|
return result;
|
|
33218
33281
|
}
|
|
33219
33282
|
var init_object = __esm(() => {
|
|
33220
|
-
|
|
33283
|
+
init_esm();
|
|
33221
33284
|
init_parseDef();
|
|
33222
33285
|
});
|
|
33223
33286
|
|
|
@@ -33426,7 +33489,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
33426
33489
|
}
|
|
33427
33490
|
};
|
|
33428
33491
|
var init_selectParser = __esm(() => {
|
|
33429
|
-
|
|
33492
|
+
init_esm();
|
|
33430
33493
|
init_array();
|
|
33431
33494
|
init_bigint();
|
|
33432
33495
|
init_branded();
|
|
@@ -33569,7 +33632,7 @@ var init_zodToJsonSchema = __esm(() => {
|
|
|
33569
33632
|
});
|
|
33570
33633
|
|
|
33571
33634
|
// node_modules/zod-to-json-schema/dist/esm/index.js
|
|
33572
|
-
var
|
|
33635
|
+
var init_esm2 = __esm(() => {
|
|
33573
33636
|
init_Options();
|
|
33574
33637
|
init_Refs();
|
|
33575
33638
|
init_parseDef();
|
|
@@ -33627,7 +33690,7 @@ function processCreateParams2(params) {
|
|
|
33627
33690
|
}
|
|
33628
33691
|
var McpZodTypeKind, Completable;
|
|
33629
33692
|
var init_completable = __esm(() => {
|
|
33630
|
-
|
|
33693
|
+
init_esm();
|
|
33631
33694
|
(function(McpZodTypeKind2) {
|
|
33632
33695
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
33633
33696
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
@@ -33922,7 +33985,7 @@ class McpServer {
|
|
|
33922
33985
|
const cb = rest[0];
|
|
33923
33986
|
this._registeredTools[name] = {
|
|
33924
33987
|
description,
|
|
33925
|
-
inputSchema: paramsSchema === undefined ? undefined :
|
|
33988
|
+
inputSchema: paramsSchema === undefined ? undefined : exports_external.object(paramsSchema),
|
|
33926
33989
|
callback: cb
|
|
33927
33990
|
};
|
|
33928
33991
|
this.setToolRequestHandlers();
|
|
@@ -33942,7 +34005,7 @@ class McpServer {
|
|
|
33942
34005
|
const cb = rest[0];
|
|
33943
34006
|
this._registeredPrompts[name] = {
|
|
33944
34007
|
description,
|
|
33945
|
-
argsSchema: argsSchema === undefined ? undefined :
|
|
34008
|
+
argsSchema: argsSchema === undefined ? undefined : exports_external.object(argsSchema),
|
|
33946
34009
|
callback: cb
|
|
33947
34010
|
};
|
|
33948
34011
|
this.setPromptRequestHandlers();
|
|
@@ -33967,9 +34030,9 @@ function createCompletionResult(suggestions) {
|
|
|
33967
34030
|
var EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT;
|
|
33968
34031
|
var init_mcp = __esm(() => {
|
|
33969
34032
|
init_server();
|
|
34033
|
+
init_esm2();
|
|
33970
34034
|
init_esm();
|
|
33971
|
-
|
|
33972
|
-
init_types();
|
|
34035
|
+
init_types2();
|
|
33973
34036
|
init_completable();
|
|
33974
34037
|
EMPTY_OBJECT_JSON_SCHEMA = {
|
|
33975
34038
|
type: "object"
|
|
@@ -34153,7 +34216,7 @@ function stringToBase64(str) {
|
|
|
34153
34216
|
}
|
|
34154
34217
|
var zodOutbound, zodInbound;
|
|
34155
34218
|
var init_base64 = __esm(() => {
|
|
34156
|
-
|
|
34219
|
+
init_esm();
|
|
34157
34220
|
zodOutbound = instanceOfType(Uint8Array).or(stringType().transform(stringToBytes));
|
|
34158
34221
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
34159
34222
|
});
|
|
@@ -34202,9 +34265,9 @@ var init_config = __esm(() => {
|
|
|
34202
34265
|
SDK_METADATA = {
|
|
34203
34266
|
language: "typescript",
|
|
34204
34267
|
openapiDocVersion: "1.0.0",
|
|
34205
|
-
sdkVersion: "0.13.
|
|
34206
|
-
genVersion: "2.
|
|
34207
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
34268
|
+
sdkVersion: "0.13.3",
|
|
34269
|
+
genVersion: "2.610.0",
|
|
34270
|
+
userAgent: "speakeasy-sdk/typescript 0.13.3 2.610.0 1.0.0 @s2-dev/streamstore"
|
|
34208
34271
|
};
|
|
34209
34272
|
});
|
|
34210
34273
|
|
|
@@ -34445,7 +34508,7 @@ function env() {
|
|
|
34445
34508
|
}
|
|
34446
34509
|
var envSchema, envMemo = undefined;
|
|
34447
34510
|
var init_env = __esm(() => {
|
|
34448
|
-
|
|
34511
|
+
init_esm();
|
|
34449
34512
|
envSchema = objectType({
|
|
34450
34513
|
S2_ACCESS_TOKEN: stringType().optional(),
|
|
34451
34514
|
S2_DEBUG: coerce.boolean().optional()
|
|
@@ -35074,7 +35137,7 @@ async function valueToBase64(value) {
|
|
|
35074
35137
|
}
|
|
35075
35138
|
var base64Schema;
|
|
35076
35139
|
var init_shared = __esm(() => {
|
|
35077
|
-
|
|
35140
|
+
init_esm();
|
|
35078
35141
|
init_base64();
|
|
35079
35142
|
base64Schema = stringType().base64();
|
|
35080
35143
|
});
|
|
@@ -35463,7 +35526,7 @@ ${pre}${str}`;
|
|
|
35463
35526
|
}
|
|
35464
35527
|
var SDKValidationError;
|
|
35465
35528
|
var init_sdkvalidationerror = __esm(() => {
|
|
35466
|
-
|
|
35529
|
+
init_esm();
|
|
35467
35530
|
SDKValidationError = class SDKValidationError extends Error {
|
|
35468
35531
|
rawValue;
|
|
35469
35532
|
rawMessage;
|
|
@@ -35802,7 +35865,7 @@ var init_security = __esm(() => {
|
|
|
35802
35865
|
// src/models/components/operation.ts
|
|
35803
35866
|
var Operation, Operation$inboundSchema, Operation$outboundSchema, Operation$;
|
|
35804
35867
|
var init_operation = __esm(() => {
|
|
35805
|
-
|
|
35868
|
+
init_esm();
|
|
35806
35869
|
Operation = {
|
|
35807
35870
|
ListBasins: "list-basins",
|
|
35808
35871
|
CreateBasin: "create-basin",
|
|
@@ -35834,7 +35897,7 @@ var init_operation = __esm(() => {
|
|
|
35834
35897
|
// src/models/components/readwritepermissions.ts
|
|
35835
35898
|
var ReadWritePermissions$inboundSchema, ReadWritePermissions$outboundSchema, ReadWritePermissions$;
|
|
35836
35899
|
var init_readwritepermissions = __esm(() => {
|
|
35837
|
-
|
|
35900
|
+
init_esm();
|
|
35838
35901
|
ReadWritePermissions$inboundSchema = objectType({
|
|
35839
35902
|
read: booleanType().default(false),
|
|
35840
35903
|
write: booleanType().default(false)
|
|
@@ -35852,7 +35915,7 @@ var init_readwritepermissions = __esm(() => {
|
|
|
35852
35915
|
// src/models/components/permittedoperationgroups.ts
|
|
35853
35916
|
var PermittedOperationGroups$inboundSchema, PermittedOperationGroups$outboundSchema, PermittedOperationGroups$;
|
|
35854
35917
|
var init_permittedoperationgroups = __esm(() => {
|
|
35855
|
-
|
|
35918
|
+
init_esm();
|
|
35856
35919
|
init_readwritepermissions();
|
|
35857
35920
|
PermittedOperationGroups$inboundSchema = objectType({
|
|
35858
35921
|
account: nullableType(ReadWritePermissions$inboundSchema).optional(),
|
|
@@ -35873,7 +35936,7 @@ var init_permittedoperationgroups = __esm(() => {
|
|
|
35873
35936
|
// src/models/components/resourceset.ts
|
|
35874
35937
|
var Prefix$inboundSchema, Prefix$outboundSchema, Prefix$, Exact$inboundSchema, Exact$outboundSchema, Exact$, ResourceSet$inboundSchema, ResourceSet$outboundSchema, ResourceSet$;
|
|
35875
35938
|
var init_resourceset = __esm(() => {
|
|
35876
|
-
|
|
35939
|
+
init_esm();
|
|
35877
35940
|
Prefix$inboundSchema = objectType({
|
|
35878
35941
|
prefix: stringType()
|
|
35879
35942
|
});
|
|
@@ -35911,7 +35974,7 @@ var init_resourceset = __esm(() => {
|
|
|
35911
35974
|
// src/models/components/accesstokenscope.ts
|
|
35912
35975
|
var AccessTokenScope$inboundSchema, AccessTokenScope$outboundSchema, AccessTokenScope$;
|
|
35913
35976
|
var init_accesstokenscope = __esm(() => {
|
|
35914
|
-
|
|
35977
|
+
init_esm();
|
|
35915
35978
|
init_primitives();
|
|
35916
35979
|
init_operation();
|
|
35917
35980
|
init_permittedoperationgroups();
|
|
@@ -35949,7 +36012,7 @@ var init_accesstokenscope = __esm(() => {
|
|
|
35949
36012
|
// src/models/components/accesstokeninfo.ts
|
|
35950
36013
|
var AccessTokenInfo$inboundSchema, AccessTokenInfo$outboundSchema, AccessTokenInfo$;
|
|
35951
36014
|
var init_accesstokeninfo = __esm(() => {
|
|
35952
|
-
|
|
36015
|
+
init_esm();
|
|
35953
36016
|
init_primitives();
|
|
35954
36017
|
init_accesstokenscope();
|
|
35955
36018
|
AccessTokenInfo$inboundSchema = objectType({
|
|
@@ -35983,7 +36046,7 @@ var init_accesstokeninfo = __esm(() => {
|
|
|
35983
36046
|
// src/models/components/streamposition.ts
|
|
35984
36047
|
var StreamPosition$inboundSchema, StreamPosition$outboundSchema, StreamPosition$;
|
|
35985
36048
|
var init_streamposition = __esm(() => {
|
|
35986
|
-
|
|
36049
|
+
init_esm();
|
|
35987
36050
|
init_primitives();
|
|
35988
36051
|
StreamPosition$inboundSchema = objectType({
|
|
35989
36052
|
seq_num: numberType().int(),
|
|
@@ -36010,7 +36073,7 @@ var init_streamposition = __esm(() => {
|
|
|
36010
36073
|
// src/models/components/appendack.ts
|
|
36011
36074
|
var AppendAck$inboundSchema, AppendAck$outboundSchema, AppendAck$;
|
|
36012
36075
|
var init_appendack = __esm(() => {
|
|
36013
|
-
|
|
36076
|
+
init_esm();
|
|
36014
36077
|
init_streamposition();
|
|
36015
36078
|
AppendAck$inboundSchema = objectType({
|
|
36016
36079
|
end: StreamPosition$inboundSchema,
|
|
@@ -36028,37 +36091,18 @@ var init_appendack = __esm(() => {
|
|
|
36028
36091
|
})(AppendAck$ ||= {});
|
|
36029
36092
|
});
|
|
36030
36093
|
|
|
36031
|
-
// src/models/components/header.ts
|
|
36032
|
-
var Header$inboundSchema, Header$outboundSchema, Header$;
|
|
36033
|
-
var init_header = __esm(() => {
|
|
36034
|
-
init_lib();
|
|
36035
|
-
Header$inboundSchema = objectType({
|
|
36036
|
-
name: stringType(),
|
|
36037
|
-
value: stringType()
|
|
36038
|
-
});
|
|
36039
|
-
Header$outboundSchema = objectType({
|
|
36040
|
-
name: stringType(),
|
|
36041
|
-
value: stringType()
|
|
36042
|
-
});
|
|
36043
|
-
((Header$) => {
|
|
36044
|
-
Header$.inboundSchema = Header$inboundSchema;
|
|
36045
|
-
Header$.outboundSchema = Header$outboundSchema;
|
|
36046
|
-
})(Header$ ||= {});
|
|
36047
|
-
});
|
|
36048
|
-
|
|
36049
36094
|
// src/models/components/appendrecord.ts
|
|
36050
36095
|
var AppendRecord$inboundSchema, AppendRecord$outboundSchema, AppendRecord$;
|
|
36051
36096
|
var init_appendrecord = __esm(() => {
|
|
36052
|
-
|
|
36053
|
-
init_header();
|
|
36097
|
+
init_esm();
|
|
36054
36098
|
AppendRecord$inboundSchema = objectType({
|
|
36055
36099
|
body: stringType().optional(),
|
|
36056
|
-
headers: arrayType(
|
|
36100
|
+
headers: arrayType(arrayType(stringType())).optional(),
|
|
36057
36101
|
timestamp: nullableType(numberType().int()).optional()
|
|
36058
36102
|
});
|
|
36059
36103
|
AppendRecord$outboundSchema = objectType({
|
|
36060
36104
|
body: stringType().optional(),
|
|
36061
|
-
headers: arrayType(
|
|
36105
|
+
headers: arrayType(arrayType(stringType())).optional(),
|
|
36062
36106
|
timestamp: nullableType(numberType().int()).optional()
|
|
36063
36107
|
});
|
|
36064
36108
|
((AppendRecord$) => {
|
|
@@ -36070,7 +36114,7 @@ var init_appendrecord = __esm(() => {
|
|
|
36070
36114
|
// src/models/components/appendinput.ts
|
|
36071
36115
|
var AppendInput$inboundSchema, AppendInput$outboundSchema, AppendInput$;
|
|
36072
36116
|
var init_appendinput = __esm(() => {
|
|
36073
|
-
|
|
36117
|
+
init_esm();
|
|
36074
36118
|
init_primitives();
|
|
36075
36119
|
init_appendrecord();
|
|
36076
36120
|
AppendInput$inboundSchema = objectType({
|
|
@@ -36102,7 +36146,7 @@ var init_appendinput = __esm(() => {
|
|
|
36102
36146
|
// src/models/components/retentionpolicy.ts
|
|
36103
36147
|
var One$inboundSchema, One$outboundSchema, One$, RetentionPolicy$inboundSchema, RetentionPolicy$outboundSchema, RetentionPolicy$;
|
|
36104
36148
|
var init_retentionpolicy = __esm(() => {
|
|
36105
|
-
|
|
36149
|
+
init_esm();
|
|
36106
36150
|
One$inboundSchema = objectType({
|
|
36107
36151
|
age: numberType().int()
|
|
36108
36152
|
});
|
|
@@ -36124,7 +36168,7 @@ var init_retentionpolicy = __esm(() => {
|
|
|
36124
36168
|
// src/models/components/storageclass.ts
|
|
36125
36169
|
var StorageClass, StorageClass$inboundSchema, StorageClass$outboundSchema, StorageClass$;
|
|
36126
36170
|
var init_storageclass = __esm(() => {
|
|
36127
|
-
|
|
36171
|
+
init_esm();
|
|
36128
36172
|
StorageClass = {
|
|
36129
36173
|
Standard: "standard",
|
|
36130
36174
|
Express: "express"
|
|
@@ -36140,7 +36184,7 @@ var init_storageclass = __esm(() => {
|
|
|
36140
36184
|
// src/models/components/timestampingmode.ts
|
|
36141
36185
|
var TimestampingMode, TimestampingMode$inboundSchema, TimestampingMode$outboundSchema, TimestampingMode$;
|
|
36142
36186
|
var init_timestampingmode = __esm(() => {
|
|
36143
|
-
|
|
36187
|
+
init_esm();
|
|
36144
36188
|
TimestampingMode = {
|
|
36145
36189
|
ClientPrefer: "client-prefer",
|
|
36146
36190
|
ClientRequire: "client-require",
|
|
@@ -36157,7 +36201,7 @@ var init_timestampingmode = __esm(() => {
|
|
|
36157
36201
|
// src/models/components/timestampingconfig.ts
|
|
36158
36202
|
var TimestampingConfig$inboundSchema, TimestampingConfig$outboundSchema, TimestampingConfig$;
|
|
36159
36203
|
var init_timestampingconfig = __esm(() => {
|
|
36160
|
-
|
|
36204
|
+
init_esm();
|
|
36161
36205
|
init_timestampingmode();
|
|
36162
36206
|
TimestampingConfig$inboundSchema = objectType({
|
|
36163
36207
|
mode: nullableType(TimestampingMode$inboundSchema).optional(),
|
|
@@ -36176,7 +36220,7 @@ var init_timestampingconfig = __esm(() => {
|
|
|
36176
36220
|
// src/models/components/streamconfig.ts
|
|
36177
36221
|
var StreamConfig$inboundSchema, StreamConfig$outboundSchema, StreamConfig$;
|
|
36178
36222
|
var init_streamconfig = __esm(() => {
|
|
36179
|
-
|
|
36223
|
+
init_esm();
|
|
36180
36224
|
init_primitives();
|
|
36181
36225
|
init_retentionpolicy();
|
|
36182
36226
|
init_storageclass();
|
|
@@ -36210,7 +36254,7 @@ var init_streamconfig = __esm(() => {
|
|
|
36210
36254
|
// src/models/components/basinconfig.ts
|
|
36211
36255
|
var BasinConfig$inboundSchema, BasinConfig$outboundSchema, BasinConfig$;
|
|
36212
36256
|
var init_basinconfig = __esm(() => {
|
|
36213
|
-
|
|
36257
|
+
init_esm();
|
|
36214
36258
|
init_primitives();
|
|
36215
36259
|
init_streamconfig();
|
|
36216
36260
|
BasinConfig$inboundSchema = objectType({
|
|
@@ -36244,7 +36288,7 @@ var init_basinconfig = __esm(() => {
|
|
|
36244
36288
|
// src/models/components/basinscope.ts
|
|
36245
36289
|
var BasinScope, BasinScope$inboundSchema, BasinScope$outboundSchema, BasinScope$;
|
|
36246
36290
|
var init_basinscope = __esm(() => {
|
|
36247
|
-
|
|
36291
|
+
init_esm();
|
|
36248
36292
|
BasinScope = {
|
|
36249
36293
|
AwsUsEast1: "aws:us-east-1"
|
|
36250
36294
|
};
|
|
@@ -36259,7 +36303,7 @@ var init_basinscope = __esm(() => {
|
|
|
36259
36303
|
// src/models/components/basinstate.ts
|
|
36260
36304
|
var BasinState, BasinState$inboundSchema, BasinState$outboundSchema, BasinState$;
|
|
36261
36305
|
var init_basinstate = __esm(() => {
|
|
36262
|
-
|
|
36306
|
+
init_esm();
|
|
36263
36307
|
BasinState = {
|
|
36264
36308
|
Active: "active",
|
|
36265
36309
|
Creating: "creating",
|
|
@@ -36276,7 +36320,7 @@ var init_basinstate = __esm(() => {
|
|
|
36276
36320
|
// src/models/components/basininfo.ts
|
|
36277
36321
|
var BasinInfo$inboundSchema, BasinInfo$outboundSchema, BasinInfo$;
|
|
36278
36322
|
var init_basininfo = __esm(() => {
|
|
36279
|
-
|
|
36323
|
+
init_esm();
|
|
36280
36324
|
init_basinscope();
|
|
36281
36325
|
init_basinstate();
|
|
36282
36326
|
BasinInfo$inboundSchema = objectType({
|
|
@@ -36298,7 +36342,7 @@ var init_basininfo = __esm(() => {
|
|
|
36298
36342
|
// src/models/components/timestampingreconfiguration.ts
|
|
36299
36343
|
var TimestampingReconfiguration$inboundSchema, TimestampingReconfiguration$outboundSchema, TimestampingReconfiguration$;
|
|
36300
36344
|
var init_timestampingreconfiguration = __esm(() => {
|
|
36301
|
-
|
|
36345
|
+
init_esm();
|
|
36302
36346
|
init_timestampingmode();
|
|
36303
36347
|
TimestampingReconfiguration$inboundSchema = objectType({
|
|
36304
36348
|
mode: nullableType(TimestampingMode$inboundSchema).optional(),
|
|
@@ -36317,7 +36361,7 @@ var init_timestampingreconfiguration = __esm(() => {
|
|
|
36317
36361
|
// src/models/components/streamreconfiguration.ts
|
|
36318
36362
|
var StreamReconfiguration$inboundSchema, StreamReconfiguration$outboundSchema, StreamReconfiguration$;
|
|
36319
36363
|
var init_streamreconfiguration = __esm(() => {
|
|
36320
|
-
|
|
36364
|
+
init_esm();
|
|
36321
36365
|
init_primitives();
|
|
36322
36366
|
init_retentionpolicy();
|
|
36323
36367
|
init_storageclass();
|
|
@@ -36351,7 +36395,7 @@ var init_streamreconfiguration = __esm(() => {
|
|
|
36351
36395
|
// src/models/components/basinreconfiguration.ts
|
|
36352
36396
|
var BasinReconfiguration$inboundSchema, BasinReconfiguration$outboundSchema, BasinReconfiguration$;
|
|
36353
36397
|
var init_basinreconfiguration = __esm(() => {
|
|
36354
|
-
|
|
36398
|
+
init_esm();
|
|
36355
36399
|
init_primitives();
|
|
36356
36400
|
init_streamreconfiguration();
|
|
36357
36401
|
BasinReconfiguration$inboundSchema = objectType({
|
|
@@ -36385,7 +36429,7 @@ var init_basinreconfiguration = __esm(() => {
|
|
|
36385
36429
|
// src/models/components/createbasinrequest.ts
|
|
36386
36430
|
var Scope$inboundSchema, Scope$outboundSchema, Scope$, CreateBasinRequest$inboundSchema, CreateBasinRequest$outboundSchema, CreateBasinRequest$;
|
|
36387
36431
|
var init_createbasinrequest = __esm(() => {
|
|
36388
|
-
|
|
36432
|
+
init_esm();
|
|
36389
36433
|
init_basinconfig();
|
|
36390
36434
|
init_basinscope();
|
|
36391
36435
|
Scope$inboundSchema = BasinScope$inboundSchema;
|
|
@@ -36413,7 +36457,7 @@ var init_createbasinrequest = __esm(() => {
|
|
|
36413
36457
|
// src/models/components/createorreconfigurebasinrequest.ts
|
|
36414
36458
|
var CreateOrReconfigureBasinRequestScope$inboundSchema, CreateOrReconfigureBasinRequestScope$outboundSchema, CreateOrReconfigureBasinRequestScope$, CreateOrReconfigureBasinRequest$inboundSchema, CreateOrReconfigureBasinRequest$outboundSchema, CreateOrReconfigureBasinRequest$;
|
|
36415
36459
|
var init_createorreconfigurebasinrequest = __esm(() => {
|
|
36416
|
-
|
|
36460
|
+
init_esm();
|
|
36417
36461
|
init_basinconfig();
|
|
36418
36462
|
init_basinscope();
|
|
36419
36463
|
CreateOrReconfigureBasinRequestScope$inboundSchema = BasinScope$inboundSchema;
|
|
@@ -36439,7 +36483,7 @@ var init_createorreconfigurebasinrequest = __esm(() => {
|
|
|
36439
36483
|
// src/models/components/createstreamrequest.ts
|
|
36440
36484
|
var CreateStreamRequest$inboundSchema, CreateStreamRequest$outboundSchema, CreateStreamRequest$;
|
|
36441
36485
|
var init_createstreamrequest = __esm(() => {
|
|
36442
|
-
|
|
36486
|
+
init_esm();
|
|
36443
36487
|
init_streamconfig();
|
|
36444
36488
|
CreateStreamRequest$inboundSchema = objectType({
|
|
36445
36489
|
config: nullableType(StreamConfig$inboundSchema).optional(),
|
|
@@ -36458,7 +36502,7 @@ var init_createstreamrequest = __esm(() => {
|
|
|
36458
36502
|
// src/models/components/issueaccesstokenresponse.ts
|
|
36459
36503
|
var IssueAccessTokenResponse$inboundSchema, IssueAccessTokenResponse$outboundSchema, IssueAccessTokenResponse$;
|
|
36460
36504
|
var init_issueaccesstokenresponse = __esm(() => {
|
|
36461
|
-
|
|
36505
|
+
init_esm();
|
|
36462
36506
|
init_primitives();
|
|
36463
36507
|
IssueAccessTokenResponse$inboundSchema = objectType({
|
|
36464
36508
|
access_token: stringType()
|
|
@@ -36483,7 +36527,7 @@ var init_issueaccesstokenresponse = __esm(() => {
|
|
|
36483
36527
|
// src/models/components/listaccesstokensresponse.ts
|
|
36484
36528
|
var ListAccessTokensResponse$inboundSchema, ListAccessTokensResponse$outboundSchema, ListAccessTokensResponse$;
|
|
36485
36529
|
var init_listaccesstokensresponse = __esm(() => {
|
|
36486
|
-
|
|
36530
|
+
init_esm();
|
|
36487
36531
|
init_primitives();
|
|
36488
36532
|
init_accesstokeninfo();
|
|
36489
36533
|
ListAccessTokensResponse$inboundSchema = objectType({
|
|
@@ -36513,7 +36557,7 @@ var init_listaccesstokensresponse = __esm(() => {
|
|
|
36513
36557
|
// src/models/components/listbasinsresponse.ts
|
|
36514
36558
|
var ListBasinsResponse$inboundSchema, ListBasinsResponse$outboundSchema, ListBasinsResponse$;
|
|
36515
36559
|
var init_listbasinsresponse = __esm(() => {
|
|
36516
|
-
|
|
36560
|
+
init_esm();
|
|
36517
36561
|
init_primitives();
|
|
36518
36562
|
init_basininfo();
|
|
36519
36563
|
ListBasinsResponse$inboundSchema = objectType({
|
|
@@ -36541,7 +36585,7 @@ var init_listbasinsresponse = __esm(() => {
|
|
|
36541
36585
|
// src/models/components/streaminfo.ts
|
|
36542
36586
|
var StreamInfo$inboundSchema, StreamInfo$outboundSchema, StreamInfo$;
|
|
36543
36587
|
var init_streaminfo = __esm(() => {
|
|
36544
|
-
|
|
36588
|
+
init_esm();
|
|
36545
36589
|
init_primitives();
|
|
36546
36590
|
StreamInfo$inboundSchema = objectType({
|
|
36547
36591
|
created_at: stringType(),
|
|
@@ -36572,7 +36616,7 @@ var init_streaminfo = __esm(() => {
|
|
|
36572
36616
|
// src/models/components/liststreamsresponse.ts
|
|
36573
36617
|
var ListStreamsResponse$inboundSchema, ListStreamsResponse$outboundSchema, ListStreamsResponse$;
|
|
36574
36618
|
var init_liststreamsresponse = __esm(() => {
|
|
36575
|
-
|
|
36619
|
+
init_esm();
|
|
36576
36620
|
init_primitives();
|
|
36577
36621
|
init_streaminfo();
|
|
36578
36622
|
ListStreamsResponse$inboundSchema = objectType({
|
|
@@ -36600,12 +36644,11 @@ var init_liststreamsresponse = __esm(() => {
|
|
|
36600
36644
|
// src/models/components/sequencedrecord.ts
|
|
36601
36645
|
var SequencedRecord$inboundSchema, SequencedRecord$outboundSchema, SequencedRecord$;
|
|
36602
36646
|
var init_sequencedrecord = __esm(() => {
|
|
36603
|
-
|
|
36647
|
+
init_esm();
|
|
36604
36648
|
init_primitives();
|
|
36605
|
-
init_header();
|
|
36606
36649
|
SequencedRecord$inboundSchema = objectType({
|
|
36607
36650
|
body: stringType().optional(),
|
|
36608
|
-
headers: arrayType(
|
|
36651
|
+
headers: arrayType(arrayType(stringType())).optional(),
|
|
36609
36652
|
seq_num: numberType().int(),
|
|
36610
36653
|
timestamp: numberType().int()
|
|
36611
36654
|
}).transform((v2) => {
|
|
@@ -36615,7 +36658,7 @@ var init_sequencedrecord = __esm(() => {
|
|
|
36615
36658
|
});
|
|
36616
36659
|
SequencedRecord$outboundSchema = objectType({
|
|
36617
36660
|
body: stringType().optional(),
|
|
36618
|
-
headers: arrayType(
|
|
36661
|
+
headers: arrayType(arrayType(stringType())).optional(),
|
|
36619
36662
|
seqNum: numberType().int(),
|
|
36620
36663
|
timestamp: numberType().int()
|
|
36621
36664
|
}).transform((v2) => {
|
|
@@ -36632,7 +36675,7 @@ var init_sequencedrecord = __esm(() => {
|
|
|
36632
36675
|
// src/models/components/readbatch.ts
|
|
36633
36676
|
var ReadBatch$inboundSchema, ReadBatch$outboundSchema, ReadBatch$;
|
|
36634
36677
|
var init_readbatch = __esm(() => {
|
|
36635
|
-
|
|
36678
|
+
init_esm();
|
|
36636
36679
|
init_sequencedrecord();
|
|
36637
36680
|
ReadBatch$inboundSchema = objectType({
|
|
36638
36681
|
records: arrayType(SequencedRecord$inboundSchema)
|
|
@@ -36649,7 +36692,7 @@ var init_readbatch = __esm(() => {
|
|
|
36649
36692
|
// src/models/components/readevent.ts
|
|
36650
36693
|
var Ping$inboundSchema, Ping$outboundSchema, Ping$, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$, Batch$inboundSchema, Batch$outboundSchema, Batch$, ReadEvent$inboundSchema, ReadEvent$outboundSchema, ReadEvent$;
|
|
36651
36694
|
var init_readevent = __esm(() => {
|
|
36652
|
-
|
|
36695
|
+
init_esm();
|
|
36653
36696
|
init_readbatch();
|
|
36654
36697
|
Ping$inboundSchema = objectType({
|
|
36655
36698
|
data: stringType(),
|
|
@@ -36716,7 +36759,7 @@ var init_readevent = __esm(() => {
|
|
|
36716
36759
|
// src/models/components/s2format.ts
|
|
36717
36760
|
var S2Format, S2Format$inboundSchema, S2Format$outboundSchema, S2Format$;
|
|
36718
36761
|
var init_s2format = __esm(() => {
|
|
36719
|
-
|
|
36762
|
+
init_esm();
|
|
36720
36763
|
S2Format = {
|
|
36721
36764
|
Json: "json",
|
|
36722
36765
|
JsonBinsafe: "json-binsafe"
|
|
@@ -36732,7 +36775,7 @@ var init_s2format = __esm(() => {
|
|
|
36732
36775
|
// src/models/components/security.ts
|
|
36733
36776
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
36734
36777
|
var init_security2 = __esm(() => {
|
|
36735
|
-
|
|
36778
|
+
init_esm();
|
|
36736
36779
|
init_primitives();
|
|
36737
36780
|
Security$inboundSchema = objectType({
|
|
36738
36781
|
access_token: stringType().optional()
|
|
@@ -36757,7 +36800,7 @@ var init_security2 = __esm(() => {
|
|
|
36757
36800
|
// src/models/components/tailresponse.ts
|
|
36758
36801
|
var TailResponse$inboundSchema, TailResponse$outboundSchema, TailResponse$;
|
|
36759
36802
|
var init_tailresponse = __esm(() => {
|
|
36760
|
-
|
|
36803
|
+
init_esm();
|
|
36761
36804
|
init_streamposition();
|
|
36762
36805
|
TailResponse$inboundSchema = objectType({
|
|
36763
36806
|
tail: StreamPosition$inboundSchema
|
|
@@ -36786,7 +36829,6 @@ var init_components = __esm(() => {
|
|
|
36786
36829
|
init_createbasinrequest();
|
|
36787
36830
|
init_createorreconfigurebasinrequest();
|
|
36788
36831
|
init_createstreamrequest();
|
|
36789
|
-
init_header();
|
|
36790
36832
|
init_issueaccesstokenresponse();
|
|
36791
36833
|
init_listaccesstokensresponse();
|
|
36792
36834
|
init_listbasinsresponse();
|
|
@@ -36813,11 +36855,11 @@ var init_components = __esm(() => {
|
|
|
36813
36855
|
});
|
|
36814
36856
|
|
|
36815
36857
|
// src/models/errors/appendconditionfailed.ts
|
|
36816
|
-
var
|
|
36858
|
+
var SeqNum, FencingToken, SeqNum$inboundSchema, SeqNum$outboundSchema, SeqNum$, FencingToken$inboundSchema, FencingToken$outboundSchema, FencingToken$, AppendConditionFailed$inboundSchema, AppendConditionFailed$outboundSchema, AppendConditionFailed$;
|
|
36817
36859
|
var init_appendconditionfailed = __esm(() => {
|
|
36818
|
-
|
|
36860
|
+
init_esm();
|
|
36819
36861
|
init_primitives();
|
|
36820
|
-
|
|
36862
|
+
SeqNum = class SeqNum extends Error {
|
|
36821
36863
|
seqNumMismatch;
|
|
36822
36864
|
data$;
|
|
36823
36865
|
constructor(err) {
|
|
@@ -36825,10 +36867,10 @@ var init_appendconditionfailed = __esm(() => {
|
|
|
36825
36867
|
super(message);
|
|
36826
36868
|
this.data$ = err;
|
|
36827
36869
|
this.seqNumMismatch = err.seqNumMismatch;
|
|
36828
|
-
this.name = "
|
|
36870
|
+
this.name = "SeqNum";
|
|
36829
36871
|
}
|
|
36830
36872
|
};
|
|
36831
|
-
|
|
36873
|
+
FencingToken = class FencingToken extends Error {
|
|
36832
36874
|
fencingTokenMismatch;
|
|
36833
36875
|
data$;
|
|
36834
36876
|
constructor(err) {
|
|
@@ -36836,51 +36878,54 @@ var init_appendconditionfailed = __esm(() => {
|
|
|
36836
36878
|
super(message);
|
|
36837
36879
|
this.data$ = err;
|
|
36838
36880
|
this.fencingTokenMismatch = err.fencingTokenMismatch;
|
|
36839
|
-
this.name = "
|
|
36881
|
+
this.name = "FencingToken";
|
|
36840
36882
|
}
|
|
36841
36883
|
};
|
|
36842
|
-
|
|
36843
|
-
|
|
36884
|
+
SeqNum$inboundSchema = objectType({
|
|
36885
|
+
seq_num_mismatch: numberType().int()
|
|
36844
36886
|
}).transform((v2) => {
|
|
36845
36887
|
const remapped = remap(v2, {
|
|
36846
|
-
|
|
36888
|
+
seq_num_mismatch: "seqNumMismatch"
|
|
36847
36889
|
});
|
|
36848
|
-
return new
|
|
36890
|
+
return new SeqNum(remapped);
|
|
36849
36891
|
});
|
|
36850
|
-
|
|
36892
|
+
SeqNum$outboundSchema = instanceOfType(SeqNum).transform((v2) => v2.data$).pipe(objectType({
|
|
36851
36893
|
seqNumMismatch: numberType().int()
|
|
36852
36894
|
}).transform((v2) => {
|
|
36853
36895
|
return remap(v2, {
|
|
36854
|
-
seqNumMismatch: "
|
|
36896
|
+
seqNumMismatch: "seq_num_mismatch"
|
|
36855
36897
|
});
|
|
36856
36898
|
}));
|
|
36857
|
-
((
|
|
36858
|
-
|
|
36859
|
-
|
|
36860
|
-
})(
|
|
36861
|
-
|
|
36862
|
-
|
|
36899
|
+
((SeqNum$) => {
|
|
36900
|
+
SeqNum$.inboundSchema = SeqNum$inboundSchema;
|
|
36901
|
+
SeqNum$.outboundSchema = SeqNum$outboundSchema;
|
|
36902
|
+
})(SeqNum$ ||= {});
|
|
36903
|
+
FencingToken$inboundSchema = objectType({
|
|
36904
|
+
fencing_token_mismatch: stringType()
|
|
36863
36905
|
}).transform((v2) => {
|
|
36864
36906
|
const remapped = remap(v2, {
|
|
36865
|
-
|
|
36907
|
+
fencing_token_mismatch: "fencingTokenMismatch"
|
|
36866
36908
|
});
|
|
36867
|
-
return new
|
|
36909
|
+
return new FencingToken(remapped);
|
|
36868
36910
|
});
|
|
36869
|
-
|
|
36911
|
+
FencingToken$outboundSchema = instanceOfType(FencingToken).transform((v2) => v2.data$).pipe(objectType({
|
|
36870
36912
|
fencingTokenMismatch: stringType()
|
|
36871
36913
|
}).transform((v2) => {
|
|
36872
36914
|
return remap(v2, {
|
|
36873
|
-
fencingTokenMismatch: "
|
|
36915
|
+
fencingTokenMismatch: "fencing_token_mismatch"
|
|
36874
36916
|
});
|
|
36875
36917
|
}));
|
|
36876
|
-
((
|
|
36877
|
-
|
|
36878
|
-
|
|
36879
|
-
})(
|
|
36880
|
-
AppendConditionFailed$inboundSchema = unionType([
|
|
36918
|
+
((FencingToken$) => {
|
|
36919
|
+
FencingToken$.inboundSchema = FencingToken$inboundSchema;
|
|
36920
|
+
FencingToken$.outboundSchema = FencingToken$outboundSchema;
|
|
36921
|
+
})(FencingToken$ ||= {});
|
|
36922
|
+
AppendConditionFailed$inboundSchema = unionType([
|
|
36923
|
+
lazyType(() => FencingToken$inboundSchema),
|
|
36924
|
+
lazyType(() => SeqNum$inboundSchema)
|
|
36925
|
+
]);
|
|
36881
36926
|
AppendConditionFailed$outboundSchema = unionType([
|
|
36882
|
-
lazyType(() =>
|
|
36883
|
-
lazyType(() =>
|
|
36927
|
+
lazyType(() => FencingToken$outboundSchema),
|
|
36928
|
+
lazyType(() => SeqNum$outboundSchema)
|
|
36884
36929
|
]);
|
|
36885
36930
|
((AppendConditionFailed$) => {
|
|
36886
36931
|
AppendConditionFailed$.inboundSchema = AppendConditionFailed$inboundSchema;
|
|
@@ -36891,7 +36936,7 @@ var init_appendconditionfailed = __esm(() => {
|
|
|
36891
36936
|
// src/models/errors/errorresponse.ts
|
|
36892
36937
|
var ErrorResponse, ErrorResponse$inboundSchema, ErrorResponse$outboundSchema, ErrorResponse$;
|
|
36893
36938
|
var init_errorresponse = __esm(() => {
|
|
36894
|
-
|
|
36939
|
+
init_esm();
|
|
36895
36940
|
ErrorResponse = class ErrorResponse extends Error {
|
|
36896
36941
|
code;
|
|
36897
36942
|
data$;
|
|
@@ -36923,7 +36968,7 @@ var init_errorresponse = __esm(() => {
|
|
|
36923
36968
|
// src/models/errors/tailresponse.ts
|
|
36924
36969
|
var TailResponse, TailResponse$inboundSchema2, TailResponse$outboundSchema2, TailResponse$2;
|
|
36925
36970
|
var init_tailresponse2 = __esm(() => {
|
|
36926
|
-
|
|
36971
|
+
init_esm();
|
|
36927
36972
|
init_components();
|
|
36928
36973
|
TailResponse = class TailResponse extends Error {
|
|
36929
36974
|
tail;
|
|
@@ -36951,7 +36996,7 @@ var init_tailresponse2 = __esm(() => {
|
|
|
36951
36996
|
});
|
|
36952
36997
|
|
|
36953
36998
|
// src/models/errors/index.ts
|
|
36954
|
-
var
|
|
36999
|
+
var init_errors2 = __esm(() => {
|
|
36955
37000
|
init_apierror();
|
|
36956
37001
|
init_appendconditionfailed();
|
|
36957
37002
|
init_errorresponse();
|
|
@@ -37054,7 +37099,7 @@ var init_accessTokensIssueAccessToken = __esm(() => {
|
|
|
37054
37099
|
init_security();
|
|
37055
37100
|
init_url();
|
|
37056
37101
|
init_components();
|
|
37057
|
-
|
|
37102
|
+
init_errors2();
|
|
37058
37103
|
init_async();
|
|
37059
37104
|
});
|
|
37060
37105
|
|
|
@@ -37089,7 +37134,7 @@ var init_accessTokensIssueAccessToken2 = __esm(() => {
|
|
|
37089
37134
|
// src/models/operations/append.ts
|
|
37090
37135
|
var AppendServerList, AppendRequest$inboundSchema, AppendRequest$outboundSchema, AppendRequest$;
|
|
37091
37136
|
var init_append = __esm(() => {
|
|
37092
|
-
|
|
37137
|
+
init_esm();
|
|
37093
37138
|
init_primitives();
|
|
37094
37139
|
init_components();
|
|
37095
37140
|
AppendServerList = [
|
|
@@ -37128,7 +37173,7 @@ var init_append = __esm(() => {
|
|
|
37128
37173
|
// src/models/operations/checktail.ts
|
|
37129
37174
|
var CheckTailServerList, CheckTailRequest$inboundSchema, CheckTailRequest$outboundSchema, CheckTailRequest$;
|
|
37130
37175
|
var init_checktail = __esm(() => {
|
|
37131
|
-
|
|
37176
|
+
init_esm();
|
|
37132
37177
|
init_primitives();
|
|
37133
37178
|
CheckTailServerList = [
|
|
37134
37179
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
@@ -37158,7 +37203,7 @@ var init_checktail = __esm(() => {
|
|
|
37158
37203
|
// src/models/operations/createorreconfigurebasin.ts
|
|
37159
37204
|
var CreateOrReconfigureBasinRequest$inboundSchema2, CreateOrReconfigureBasinRequest$outboundSchema2, CreateOrReconfigureBasinRequest$2;
|
|
37160
37205
|
var init_createorreconfigurebasin = __esm(() => {
|
|
37161
|
-
|
|
37206
|
+
init_esm();
|
|
37162
37207
|
init_primitives();
|
|
37163
37208
|
init_components();
|
|
37164
37209
|
CreateOrReconfigureBasinRequest$inboundSchema2 = objectType({
|
|
@@ -37190,7 +37235,7 @@ var init_createorreconfigurebasin = __esm(() => {
|
|
|
37190
37235
|
// src/models/operations/createorreconfigurestream.ts
|
|
37191
37236
|
var CreateOrReconfigureStreamServerList, CreateOrReconfigureStreamRequest$inboundSchema, CreateOrReconfigureStreamRequest$outboundSchema, CreateOrReconfigureStreamRequest$;
|
|
37192
37237
|
var init_createorreconfigurestream = __esm(() => {
|
|
37193
|
-
|
|
37238
|
+
init_esm();
|
|
37194
37239
|
init_primitives();
|
|
37195
37240
|
init_components();
|
|
37196
37241
|
CreateOrReconfigureStreamServerList = [
|
|
@@ -37229,7 +37274,7 @@ var init_createorreconfigurestream = __esm(() => {
|
|
|
37229
37274
|
// src/models/operations/createstream.ts
|
|
37230
37275
|
var CreateStreamServerList, CreateStreamRequest$inboundSchema2, CreateStreamRequest$outboundSchema2, CreateStreamRequest$2;
|
|
37231
37276
|
var init_createstream = __esm(() => {
|
|
37232
|
-
|
|
37277
|
+
init_esm();
|
|
37233
37278
|
init_primitives();
|
|
37234
37279
|
init_components();
|
|
37235
37280
|
CreateStreamServerList = [
|
|
@@ -37262,7 +37307,7 @@ var init_createstream = __esm(() => {
|
|
|
37262
37307
|
// src/models/operations/deletebasin.ts
|
|
37263
37308
|
var DeleteBasinRequest$inboundSchema, DeleteBasinRequest$outboundSchema, DeleteBasinRequest$;
|
|
37264
37309
|
var init_deletebasin = __esm(() => {
|
|
37265
|
-
|
|
37310
|
+
init_esm();
|
|
37266
37311
|
DeleteBasinRequest$inboundSchema = objectType({
|
|
37267
37312
|
basin: stringType()
|
|
37268
37313
|
});
|
|
@@ -37278,7 +37323,7 @@ var init_deletebasin = __esm(() => {
|
|
|
37278
37323
|
// src/models/operations/deletestream.ts
|
|
37279
37324
|
var DeleteStreamServerList, DeleteStreamRequest$inboundSchema, DeleteStreamRequest$outboundSchema, DeleteStreamRequest$;
|
|
37280
37325
|
var init_deletestream = __esm(() => {
|
|
37281
|
-
|
|
37326
|
+
init_esm();
|
|
37282
37327
|
init_primitives();
|
|
37283
37328
|
DeleteStreamServerList = [
|
|
37284
37329
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
@@ -37308,7 +37353,7 @@ var init_deletestream = __esm(() => {
|
|
|
37308
37353
|
// src/models/operations/getbasinconfig.ts
|
|
37309
37354
|
var GetBasinConfigRequest$inboundSchema, GetBasinConfigRequest$outboundSchema, GetBasinConfigRequest$;
|
|
37310
37355
|
var init_getbasinconfig = __esm(() => {
|
|
37311
|
-
|
|
37356
|
+
init_esm();
|
|
37312
37357
|
GetBasinConfigRequest$inboundSchema = objectType({
|
|
37313
37358
|
basin: stringType()
|
|
37314
37359
|
});
|
|
@@ -37324,7 +37369,7 @@ var init_getbasinconfig = __esm(() => {
|
|
|
37324
37369
|
// src/models/operations/getstreamconfig.ts
|
|
37325
37370
|
var GetStreamConfigServerList, GetStreamConfigRequest$inboundSchema, GetStreamConfigRequest$outboundSchema, GetStreamConfigRequest$;
|
|
37326
37371
|
var init_getstreamconfig = __esm(() => {
|
|
37327
|
-
|
|
37372
|
+
init_esm();
|
|
37328
37373
|
init_primitives();
|
|
37329
37374
|
GetStreamConfigServerList = [
|
|
37330
37375
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
@@ -37354,7 +37399,7 @@ var init_getstreamconfig = __esm(() => {
|
|
|
37354
37399
|
// src/models/operations/listaccesstokens.ts
|
|
37355
37400
|
var ListAccessTokensRequest$inboundSchema, ListAccessTokensRequest$outboundSchema, ListAccessTokensRequest$;
|
|
37356
37401
|
var init_listaccesstokens = __esm(() => {
|
|
37357
|
-
|
|
37402
|
+
init_esm();
|
|
37358
37403
|
init_primitives();
|
|
37359
37404
|
ListAccessTokensRequest$inboundSchema = objectType({
|
|
37360
37405
|
prefix: stringType().default(""),
|
|
@@ -37383,7 +37428,7 @@ var init_listaccesstokens = __esm(() => {
|
|
|
37383
37428
|
// src/models/operations/listbasins.ts
|
|
37384
37429
|
var ListBasinsRequest$inboundSchema, ListBasinsRequest$outboundSchema, ListBasinsRequest$, ListBasinsResponse$inboundSchema2, ListBasinsResponse$outboundSchema2, ListBasinsResponse$2;
|
|
37385
37430
|
var init_listbasins = __esm(() => {
|
|
37386
|
-
|
|
37431
|
+
init_esm();
|
|
37387
37432
|
init_primitives();
|
|
37388
37433
|
init_components();
|
|
37389
37434
|
ListBasinsRequest$inboundSchema = objectType({
|
|
@@ -37431,7 +37476,7 @@ var init_listbasins = __esm(() => {
|
|
|
37431
37476
|
// src/models/operations/liststreams.ts
|
|
37432
37477
|
var ListStreamsServerList, ListStreamsRequest$inboundSchema, ListStreamsRequest$outboundSchema, ListStreamsRequest$, ListStreamsResponse$inboundSchema2, ListStreamsResponse$outboundSchema2, ListStreamsResponse$2;
|
|
37433
37478
|
var init_liststreams = __esm(() => {
|
|
37434
|
-
|
|
37479
|
+
init_esm();
|
|
37435
37480
|
init_primitives();
|
|
37436
37481
|
init_components();
|
|
37437
37482
|
ListStreamsServerList = [
|
|
@@ -37486,7 +37531,7 @@ var init_liststreams = __esm(() => {
|
|
|
37486
37531
|
// src/models/operations/read.ts
|
|
37487
37532
|
var ReadServerList, ReadRequest$inboundSchema, ReadRequest$outboundSchema, ReadRequest$, ReadResponse$inboundSchema, ReadResponse$outboundSchema, ReadResponse$;
|
|
37488
37533
|
var init_read = __esm(() => {
|
|
37489
|
-
|
|
37534
|
+
init_esm();
|
|
37490
37535
|
init_event_streams();
|
|
37491
37536
|
init_primitives();
|
|
37492
37537
|
init_components();
|
|
@@ -37553,7 +37598,7 @@ var init_read = __esm(() => {
|
|
|
37553
37598
|
// src/models/operations/reconfigurebasin.ts
|
|
37554
37599
|
var ReconfigureBasinRequest$inboundSchema, ReconfigureBasinRequest$outboundSchema, ReconfigureBasinRequest$;
|
|
37555
37600
|
var init_reconfigurebasin = __esm(() => {
|
|
37556
|
-
|
|
37601
|
+
init_esm();
|
|
37557
37602
|
init_primitives();
|
|
37558
37603
|
init_components();
|
|
37559
37604
|
ReconfigureBasinRequest$inboundSchema = objectType({
|
|
@@ -37581,7 +37626,7 @@ var init_reconfigurebasin = __esm(() => {
|
|
|
37581
37626
|
// src/models/operations/reconfigurestream.ts
|
|
37582
37627
|
var ReconfigureStreamServerList, ReconfigureStreamRequest$inboundSchema, ReconfigureStreamRequest$outboundSchema, ReconfigureStreamRequest$;
|
|
37583
37628
|
var init_reconfigurestream = __esm(() => {
|
|
37584
|
-
|
|
37629
|
+
init_esm();
|
|
37585
37630
|
init_primitives();
|
|
37586
37631
|
init_components();
|
|
37587
37632
|
ReconfigureStreamServerList = [
|
|
@@ -37616,7 +37661,7 @@ var init_reconfigurestream = __esm(() => {
|
|
|
37616
37661
|
// src/models/operations/revokeaccesstoken.ts
|
|
37617
37662
|
var RevokeAccessTokenRequest$inboundSchema, RevokeAccessTokenRequest$outboundSchema, RevokeAccessTokenRequest$;
|
|
37618
37663
|
var init_revokeaccesstoken = __esm(() => {
|
|
37619
|
-
|
|
37664
|
+
init_esm();
|
|
37620
37665
|
RevokeAccessTokenRequest$inboundSchema = objectType({
|
|
37621
37666
|
id: stringType()
|
|
37622
37667
|
});
|
|
@@ -37722,7 +37767,7 @@ var init_accessTokensListAccessTokens = __esm(() => {
|
|
|
37722
37767
|
init_security();
|
|
37723
37768
|
init_url();
|
|
37724
37769
|
init_components();
|
|
37725
|
-
|
|
37770
|
+
init_errors2();
|
|
37726
37771
|
init_operations();
|
|
37727
37772
|
init_async();
|
|
37728
37773
|
});
|
|
@@ -37821,14 +37866,14 @@ async function $do3(client, request, options) {
|
|
|
37821
37866
|
return [result, { status: "complete", request: req, response }];
|
|
37822
37867
|
}
|
|
37823
37868
|
var init_accessTokensRevokeAccessToken = __esm(() => {
|
|
37824
|
-
|
|
37869
|
+
init_esm();
|
|
37825
37870
|
init_encodings();
|
|
37826
37871
|
init_matchers();
|
|
37827
37872
|
init_primitives();
|
|
37828
37873
|
init_schemas();
|
|
37829
37874
|
init_security();
|
|
37830
37875
|
init_url();
|
|
37831
|
-
|
|
37876
|
+
init_errors2();
|
|
37832
37877
|
init_operations();
|
|
37833
37878
|
init_async();
|
|
37834
37879
|
});
|
|
@@ -37928,7 +37973,7 @@ var init_basinsCreateBasin = __esm(() => {
|
|
|
37928
37973
|
init_security();
|
|
37929
37974
|
init_url();
|
|
37930
37975
|
init_components();
|
|
37931
|
-
|
|
37976
|
+
init_errors2();
|
|
37932
37977
|
init_async();
|
|
37933
37978
|
});
|
|
37934
37979
|
|
|
@@ -38037,7 +38082,7 @@ var init_basinsCreateOrReconfigureBasin = __esm(() => {
|
|
|
38037
38082
|
init_security();
|
|
38038
38083
|
init_url();
|
|
38039
38084
|
init_components();
|
|
38040
|
-
|
|
38085
|
+
init_errors2();
|
|
38041
38086
|
init_operations();
|
|
38042
38087
|
init_async();
|
|
38043
38088
|
});
|
|
@@ -38136,14 +38181,14 @@ async function $do6(client, request, options) {
|
|
|
38136
38181
|
return [result, { status: "complete", request: req, response }];
|
|
38137
38182
|
}
|
|
38138
38183
|
var init_basinsDeleteBasin = __esm(() => {
|
|
38139
|
-
|
|
38184
|
+
init_esm();
|
|
38140
38185
|
init_encodings();
|
|
38141
38186
|
init_matchers();
|
|
38142
38187
|
init_primitives();
|
|
38143
38188
|
init_schemas();
|
|
38144
38189
|
init_security();
|
|
38145
38190
|
init_url();
|
|
38146
|
-
|
|
38191
|
+
init_errors2();
|
|
38147
38192
|
init_operations();
|
|
38148
38193
|
init_async();
|
|
38149
38194
|
});
|
|
@@ -38248,7 +38293,7 @@ var init_basinsGetBasinConfig = __esm(() => {
|
|
|
38248
38293
|
init_security();
|
|
38249
38294
|
init_url();
|
|
38250
38295
|
init_components();
|
|
38251
|
-
|
|
38296
|
+
init_errors2();
|
|
38252
38297
|
init_operations();
|
|
38253
38298
|
init_async();
|
|
38254
38299
|
});
|
|
@@ -42064,7 +42109,7 @@ function query(input, expression) {
|
|
|
42064
42109
|
});
|
|
42065
42110
|
return values;
|
|
42066
42111
|
}
|
|
42067
|
-
var
|
|
42112
|
+
var init_esm3 = __esm(() => {
|
|
42068
42113
|
init_exec();
|
|
42069
42114
|
});
|
|
42070
42115
|
|
|
@@ -42186,14 +42231,14 @@ async function $do8(client, request, options) {
|
|
|
42186
42231
|
}];
|
|
42187
42232
|
}
|
|
42188
42233
|
var init_basinsListBasins = __esm(() => {
|
|
42189
|
-
|
|
42234
|
+
init_esm3();
|
|
42190
42235
|
init_encodings();
|
|
42191
42236
|
init_matchers();
|
|
42192
42237
|
init_primitives();
|
|
42193
42238
|
init_schemas();
|
|
42194
42239
|
init_security();
|
|
42195
42240
|
init_url();
|
|
42196
|
-
|
|
42241
|
+
init_errors2();
|
|
42197
42242
|
init_operations();
|
|
42198
42243
|
init_async();
|
|
42199
42244
|
init_operations2();
|
|
@@ -42303,7 +42348,7 @@ var init_basinsReconfigureBasin = __esm(() => {
|
|
|
42303
42348
|
init_security();
|
|
42304
42349
|
init_url();
|
|
42305
42350
|
init_components();
|
|
42306
|
-
|
|
42351
|
+
init_errors2();
|
|
42307
42352
|
init_operations();
|
|
42308
42353
|
init_async();
|
|
42309
42354
|
});
|
|
@@ -42421,7 +42466,7 @@ var init_recordsAppend = __esm(() => {
|
|
|
42421
42466
|
init_security();
|
|
42422
42467
|
init_url();
|
|
42423
42468
|
init_components();
|
|
42424
|
-
|
|
42469
|
+
init_errors2();
|
|
42425
42470
|
init_append();
|
|
42426
42471
|
init_operations();
|
|
42427
42472
|
init_async();
|
|
@@ -42537,7 +42582,7 @@ var init_recordsCheckTail = __esm(() => {
|
|
|
42537
42582
|
init_security();
|
|
42538
42583
|
init_url();
|
|
42539
42584
|
init_components();
|
|
42540
|
-
|
|
42585
|
+
init_errors2();
|
|
42541
42586
|
init_checktail();
|
|
42542
42587
|
init_operations();
|
|
42543
42588
|
init_async();
|
|
@@ -42664,7 +42709,7 @@ var init_recordsRead = __esm(() => {
|
|
|
42664
42709
|
init_schemas();
|
|
42665
42710
|
init_security();
|
|
42666
42711
|
init_url();
|
|
42667
|
-
|
|
42712
|
+
init_errors2();
|
|
42668
42713
|
init_operations();
|
|
42669
42714
|
init_read();
|
|
42670
42715
|
init_async();
|
|
@@ -42784,7 +42829,7 @@ var init_streamsCreateOrReconfigureStream = __esm(() => {
|
|
|
42784
42829
|
init_security();
|
|
42785
42830
|
init_url();
|
|
42786
42831
|
init_components();
|
|
42787
|
-
|
|
42832
|
+
init_errors2();
|
|
42788
42833
|
init_createorreconfigurestream();
|
|
42789
42834
|
init_operations();
|
|
42790
42835
|
init_async();
|
|
@@ -42895,7 +42940,7 @@ var init_streamsCreateStream = __esm(() => {
|
|
|
42895
42940
|
init_security();
|
|
42896
42941
|
init_url();
|
|
42897
42942
|
init_components();
|
|
42898
|
-
|
|
42943
|
+
init_errors2();
|
|
42899
42944
|
init_createstream();
|
|
42900
42945
|
init_operations();
|
|
42901
42946
|
init_async();
|
|
@@ -43002,14 +43047,14 @@ async function $do15(client, request, options) {
|
|
|
43002
43047
|
return [result, { status: "complete", request: req, response }];
|
|
43003
43048
|
}
|
|
43004
43049
|
var init_streamsDeleteStream = __esm(() => {
|
|
43005
|
-
|
|
43050
|
+
init_esm();
|
|
43006
43051
|
init_encodings();
|
|
43007
43052
|
init_matchers();
|
|
43008
43053
|
init_primitives();
|
|
43009
43054
|
init_schemas();
|
|
43010
43055
|
init_security();
|
|
43011
43056
|
init_url();
|
|
43012
|
-
|
|
43057
|
+
init_errors2();
|
|
43013
43058
|
init_deletestream();
|
|
43014
43059
|
init_operations();
|
|
43015
43060
|
init_async();
|
|
@@ -43122,7 +43167,7 @@ var init_streamsGetStreamConfig = __esm(() => {
|
|
|
43122
43167
|
init_security();
|
|
43123
43168
|
init_url();
|
|
43124
43169
|
init_components();
|
|
43125
|
-
|
|
43170
|
+
init_errors2();
|
|
43126
43171
|
init_getstreamconfig();
|
|
43127
43172
|
init_operations();
|
|
43128
43173
|
init_async();
|
|
@@ -43251,14 +43296,14 @@ async function $do17(client, request, options) {
|
|
|
43251
43296
|
}];
|
|
43252
43297
|
}
|
|
43253
43298
|
var init_streamsListStreams = __esm(() => {
|
|
43254
|
-
|
|
43299
|
+
init_esm3();
|
|
43255
43300
|
init_encodings();
|
|
43256
43301
|
init_matchers();
|
|
43257
43302
|
init_primitives();
|
|
43258
43303
|
init_schemas();
|
|
43259
43304
|
init_security();
|
|
43260
43305
|
init_url();
|
|
43261
|
-
|
|
43306
|
+
init_errors2();
|
|
43262
43307
|
init_operations();
|
|
43263
43308
|
init_liststreams();
|
|
43264
43309
|
init_async();
|
|
@@ -43376,7 +43421,7 @@ var init_streamsReconfigureStream = __esm(() => {
|
|
|
43376
43421
|
init_security();
|
|
43377
43422
|
init_url();
|
|
43378
43423
|
init_components();
|
|
43379
|
-
|
|
43424
|
+
init_errors2();
|
|
43380
43425
|
init_operations();
|
|
43381
43426
|
init_reconfigurestream();
|
|
43382
43427
|
init_async();
|
|
@@ -43414,7 +43459,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
|
|
|
43414
43459
|
function createMCPServer(deps) {
|
|
43415
43460
|
const server = new McpServer({
|
|
43416
43461
|
name: "S2",
|
|
43417
|
-
version: "0.13.
|
|
43462
|
+
version: "0.13.3"
|
|
43418
43463
|
});
|
|
43419
43464
|
const client = new S2Core({
|
|
43420
43465
|
accessToken: deps.accessToken,
|
|
@@ -44553,7 +44598,7 @@ function buildContext(process2) {
|
|
|
44553
44598
|
}
|
|
44554
44599
|
|
|
44555
44600
|
// src/mcp-server/cli/start/command.ts
|
|
44556
|
-
|
|
44601
|
+
init_esm();
|
|
44557
44602
|
init_console_logger();
|
|
44558
44603
|
|
|
44559
44604
|
// src/mcp-server/scopes.ts
|
|
@@ -44667,7 +44712,7 @@ var routes = rn({
|
|
|
44667
44712
|
var app = Ve(routes, {
|
|
44668
44713
|
name: "mcp",
|
|
44669
44714
|
versionInfo: {
|
|
44670
|
-
currentVersion: "0.13.
|
|
44715
|
+
currentVersion: "0.13.3"
|
|
44671
44716
|
}
|
|
44672
44717
|
});
|
|
44673
44718
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -44675,5 +44720,5 @@ export {
|
|
|
44675
44720
|
app
|
|
44676
44721
|
};
|
|
44677
44722
|
|
|
44678
|
-
//# debugId=
|
|
44723
|
+
//# debugId=5B199AFA93E2FE7964756E2164756E21
|
|
44679
44724
|
//# sourceMappingURL=mcp-server.js.map
|