@s2-dev/streamstore 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +1115 -990
- package/bin/mcp-server.js.map +37 -27
- package/dist/commonjs/funcs/recordsRead.js +3 -1
- package/dist/commonjs/funcs/recordsRead.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/accesstokeninfo.d.ts +1 -1
- package/dist/commonjs/models/components/createbasinrequest.d.ts +6 -1
- package/dist/commonjs/models/components/createbasinrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createbasinrequest.js.map +1 -1
- package/dist/commonjs/models/components/createstreamrequest.d.ts +4 -1
- package/dist/commonjs/models/components/createstreamrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createstreamrequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pingeventdata.d.ts +29 -0
- package/dist/commonjs/models/components/pingeventdata.d.ts.map +1 -0
- package/dist/commonjs/models/components/pingeventdata.js +69 -0
- package/dist/commonjs/models/components/pingeventdata.js.map +1 -0
- package/dist/commonjs/models/components/readevent.d.ts +77 -7
- package/dist/commonjs/models/components/readevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/readevent.js +79 -11
- package/dist/commonjs/models/components/readevent.js.map +1 -1
- package/dist/commonjs/models/components/s2format.d.ts +6 -6
- package/dist/commonjs/models/components/s2format.js +2 -2
- package/dist/commonjs/models/components/s2format.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/commonjs/models/operations/append.d.ts +3 -7
- package/dist/commonjs/models/operations/append.d.ts.map +1 -1
- package/dist/commonjs/models/operations/append.js.map +1 -1
- package/dist/commonjs/models/operations/checktail.d.ts +1 -4
- package/dist/commonjs/models/operations/checktail.d.ts.map +1 -1
- package/dist/commonjs/models/operations/checktail.js.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts +1 -5
- package/dist/commonjs/models/operations/createorreconfigurebasin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurebasin.js.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurestream.d.ts +1 -4
- package/dist/commonjs/models/operations/createorreconfigurestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createorreconfigurestream.js.map +1 -1
- package/dist/commonjs/models/operations/deletebasin.d.ts +1 -5
- package/dist/commonjs/models/operations/deletebasin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletebasin.js.map +1 -1
- package/dist/commonjs/models/operations/deletestream.d.ts +1 -4
- package/dist/commonjs/models/operations/deletestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletestream.js.map +1 -1
- package/dist/commonjs/models/operations/getbasinconfig.d.ts +1 -5
- package/dist/commonjs/models/operations/getbasinconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getbasinconfig.js.map +1 -1
- package/dist/commonjs/models/operations/getstreamconfig.d.ts +1 -4
- package/dist/commonjs/models/operations/getstreamconfig.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getstreamconfig.js.map +1 -1
- package/dist/commonjs/models/operations/read.d.ts +3 -7
- package/dist/commonjs/models/operations/read.d.ts.map +1 -1
- package/dist/commonjs/models/operations/read.js.map +1 -1
- package/dist/commonjs/models/operations/reconfigurebasin.d.ts +1 -5
- package/dist/commonjs/models/operations/reconfigurebasin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/reconfigurebasin.js.map +1 -1
- package/dist/commonjs/models/operations/reconfigurestream.d.ts +1 -4
- package/dist/commonjs/models/operations/reconfigurestream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/reconfigurestream.js.map +1 -1
- package/dist/commonjs/models/operations/revokeaccesstoken.d.ts +0 -3
- package/dist/commonjs/models/operations/revokeaccesstoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/revokeaccesstoken.js.map +1 -1
- package/dist/esm/funcs/recordsRead.js +3 -1
- package/dist/esm/funcs/recordsRead.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/accesstokeninfo.d.ts +1 -1
- package/dist/esm/models/components/createbasinrequest.d.ts +6 -1
- package/dist/esm/models/components/createbasinrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createbasinrequest.js.map +1 -1
- package/dist/esm/models/components/createstreamrequest.d.ts +4 -1
- package/dist/esm/models/components/createstreamrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createstreamrequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pingeventdata.d.ts +29 -0
- package/dist/esm/models/components/pingeventdata.d.ts.map +1 -0
- package/dist/esm/models/components/pingeventdata.js +31 -0
- package/dist/esm/models/components/pingeventdata.js.map +1 -0
- package/dist/esm/models/components/readevent.d.ts +77 -7
- package/dist/esm/models/components/readevent.d.ts.map +1 -1
- package/dist/esm/models/components/readevent.js +78 -10
- package/dist/esm/models/components/readevent.js.map +1 -1
- package/dist/esm/models/components/s2format.d.ts +6 -6
- package/dist/esm/models/components/s2format.js +2 -2
- package/dist/esm/models/components/s2format.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/dist/esm/models/operations/append.d.ts +3 -7
- package/dist/esm/models/operations/append.d.ts.map +1 -1
- package/dist/esm/models/operations/append.js.map +1 -1
- package/dist/esm/models/operations/checktail.d.ts +1 -4
- package/dist/esm/models/operations/checktail.d.ts.map +1 -1
- package/dist/esm/models/operations/checktail.js.map +1 -1
- package/dist/esm/models/operations/createorreconfigurebasin.d.ts +1 -5
- package/dist/esm/models/operations/createorreconfigurebasin.d.ts.map +1 -1
- package/dist/esm/models/operations/createorreconfigurebasin.js.map +1 -1
- package/dist/esm/models/operations/createorreconfigurestream.d.ts +1 -4
- package/dist/esm/models/operations/createorreconfigurestream.d.ts.map +1 -1
- package/dist/esm/models/operations/createorreconfigurestream.js.map +1 -1
- package/dist/esm/models/operations/deletebasin.d.ts +1 -5
- package/dist/esm/models/operations/deletebasin.d.ts.map +1 -1
- package/dist/esm/models/operations/deletebasin.js.map +1 -1
- package/dist/esm/models/operations/deletestream.d.ts +1 -4
- package/dist/esm/models/operations/deletestream.d.ts.map +1 -1
- package/dist/esm/models/operations/deletestream.js.map +1 -1
- package/dist/esm/models/operations/getbasinconfig.d.ts +1 -5
- package/dist/esm/models/operations/getbasinconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/getbasinconfig.js.map +1 -1
- package/dist/esm/models/operations/getstreamconfig.d.ts +1 -4
- package/dist/esm/models/operations/getstreamconfig.d.ts.map +1 -1
- package/dist/esm/models/operations/getstreamconfig.js.map +1 -1
- package/dist/esm/models/operations/read.d.ts +3 -7
- package/dist/esm/models/operations/read.d.ts.map +1 -1
- package/dist/esm/models/operations/read.js.map +1 -1
- package/dist/esm/models/operations/reconfigurebasin.d.ts +1 -5
- package/dist/esm/models/operations/reconfigurebasin.d.ts.map +1 -1
- package/dist/esm/models/operations/reconfigurebasin.js.map +1 -1
- package/dist/esm/models/operations/reconfigurestream.d.ts +1 -4
- package/dist/esm/models/operations/reconfigurestream.d.ts.map +1 -1
- package/dist/esm/models/operations/reconfigurestream.js.map +1 -1
- package/dist/esm/models/operations/revokeaccesstoken.d.ts +0 -3
- package/dist/esm/models/operations/revokeaccesstoken.d.ts.map +1 -1
- package/dist/esm/models/operations/revokeaccesstoken.js.map +1 -1
- package/docs/sdks/records/README.md +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/recordsRead.ts +3 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/accesstokeninfo.ts +1 -1
- package/src/models/components/createbasinrequest.ts +6 -1
- package/src/models/components/createstreamrequest.ts +4 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/pingeventdata.ts +62 -0
- package/src/models/components/readevent.ts +116 -18
- package/src/models/components/s2format.ts +2 -2
- package/src/models/errors/appendconditionfailed.ts +67 -53
- package/src/models/operations/append.ts +3 -7
- package/src/models/operations/checktail.ts +1 -4
- package/src/models/operations/createorreconfigurebasin.ts +1 -5
- package/src/models/operations/createorreconfigurestream.ts +1 -4
- package/src/models/operations/deletebasin.ts +1 -5
- package/src/models/operations/deletestream.ts +1 -4
- package/src/models/operations/getbasinconfig.ts +1 -5
- package/src/models/operations/getstreamconfig.ts +1 -4
- package/src/models/operations/read.ts +3 -7
- package/src/models/operations/reconfigurebasin.ts +1 -5
- package/src/models/operations/reconfigurestream.ts +1 -4
- package/src/models/operations/revokeaccesstoken.ts +0 -3
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.
|
|
34206
|
-
genVersion: "2.
|
|
34207
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34268
|
+
sdkVersion: "0.14.0",
|
|
34269
|
+
genVersion: "2.610.0",
|
|
34270
|
+
userAgent: "speakeasy-sdk/typescript 0.14.0 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,
|
|
@@ -36031,7 +36094,7 @@ var init_appendack = __esm(() => {
|
|
|
36031
36094
|
// src/models/components/appendrecord.ts
|
|
36032
36095
|
var AppendRecord$inboundSchema, AppendRecord$outboundSchema, AppendRecord$;
|
|
36033
36096
|
var init_appendrecord = __esm(() => {
|
|
36034
|
-
|
|
36097
|
+
init_esm();
|
|
36035
36098
|
AppendRecord$inboundSchema = objectType({
|
|
36036
36099
|
body: stringType().optional(),
|
|
36037
36100
|
headers: arrayType(arrayType(stringType())).optional(),
|
|
@@ -36051,7 +36114,7 @@ var init_appendrecord = __esm(() => {
|
|
|
36051
36114
|
// src/models/components/appendinput.ts
|
|
36052
36115
|
var AppendInput$inboundSchema, AppendInput$outboundSchema, AppendInput$;
|
|
36053
36116
|
var init_appendinput = __esm(() => {
|
|
36054
|
-
|
|
36117
|
+
init_esm();
|
|
36055
36118
|
init_primitives();
|
|
36056
36119
|
init_appendrecord();
|
|
36057
36120
|
AppendInput$inboundSchema = objectType({
|
|
@@ -36083,7 +36146,7 @@ var init_appendinput = __esm(() => {
|
|
|
36083
36146
|
// src/models/components/retentionpolicy.ts
|
|
36084
36147
|
var One$inboundSchema, One$outboundSchema, One$, RetentionPolicy$inboundSchema, RetentionPolicy$outboundSchema, RetentionPolicy$;
|
|
36085
36148
|
var init_retentionpolicy = __esm(() => {
|
|
36086
|
-
|
|
36149
|
+
init_esm();
|
|
36087
36150
|
One$inboundSchema = objectType({
|
|
36088
36151
|
age: numberType().int()
|
|
36089
36152
|
});
|
|
@@ -36105,7 +36168,7 @@ var init_retentionpolicy = __esm(() => {
|
|
|
36105
36168
|
// src/models/components/storageclass.ts
|
|
36106
36169
|
var StorageClass, StorageClass$inboundSchema, StorageClass$outboundSchema, StorageClass$;
|
|
36107
36170
|
var init_storageclass = __esm(() => {
|
|
36108
|
-
|
|
36171
|
+
init_esm();
|
|
36109
36172
|
StorageClass = {
|
|
36110
36173
|
Standard: "standard",
|
|
36111
36174
|
Express: "express"
|
|
@@ -36121,7 +36184,7 @@ var init_storageclass = __esm(() => {
|
|
|
36121
36184
|
// src/models/components/timestampingmode.ts
|
|
36122
36185
|
var TimestampingMode, TimestampingMode$inboundSchema, TimestampingMode$outboundSchema, TimestampingMode$;
|
|
36123
36186
|
var init_timestampingmode = __esm(() => {
|
|
36124
|
-
|
|
36187
|
+
init_esm();
|
|
36125
36188
|
TimestampingMode = {
|
|
36126
36189
|
ClientPrefer: "client-prefer",
|
|
36127
36190
|
ClientRequire: "client-require",
|
|
@@ -36138,7 +36201,7 @@ var init_timestampingmode = __esm(() => {
|
|
|
36138
36201
|
// src/models/components/timestampingconfig.ts
|
|
36139
36202
|
var TimestampingConfig$inboundSchema, TimestampingConfig$outboundSchema, TimestampingConfig$;
|
|
36140
36203
|
var init_timestampingconfig = __esm(() => {
|
|
36141
|
-
|
|
36204
|
+
init_esm();
|
|
36142
36205
|
init_timestampingmode();
|
|
36143
36206
|
TimestampingConfig$inboundSchema = objectType({
|
|
36144
36207
|
mode: nullableType(TimestampingMode$inboundSchema).optional(),
|
|
@@ -36157,7 +36220,7 @@ var init_timestampingconfig = __esm(() => {
|
|
|
36157
36220
|
// src/models/components/streamconfig.ts
|
|
36158
36221
|
var StreamConfig$inboundSchema, StreamConfig$outboundSchema, StreamConfig$;
|
|
36159
36222
|
var init_streamconfig = __esm(() => {
|
|
36160
|
-
|
|
36223
|
+
init_esm();
|
|
36161
36224
|
init_primitives();
|
|
36162
36225
|
init_retentionpolicy();
|
|
36163
36226
|
init_storageclass();
|
|
@@ -36191,7 +36254,7 @@ var init_streamconfig = __esm(() => {
|
|
|
36191
36254
|
// src/models/components/basinconfig.ts
|
|
36192
36255
|
var BasinConfig$inboundSchema, BasinConfig$outboundSchema, BasinConfig$;
|
|
36193
36256
|
var init_basinconfig = __esm(() => {
|
|
36194
|
-
|
|
36257
|
+
init_esm();
|
|
36195
36258
|
init_primitives();
|
|
36196
36259
|
init_streamconfig();
|
|
36197
36260
|
BasinConfig$inboundSchema = objectType({
|
|
@@ -36225,7 +36288,7 @@ var init_basinconfig = __esm(() => {
|
|
|
36225
36288
|
// src/models/components/basinscope.ts
|
|
36226
36289
|
var BasinScope, BasinScope$inboundSchema, BasinScope$outboundSchema, BasinScope$;
|
|
36227
36290
|
var init_basinscope = __esm(() => {
|
|
36228
|
-
|
|
36291
|
+
init_esm();
|
|
36229
36292
|
BasinScope = {
|
|
36230
36293
|
AwsUsEast1: "aws:us-east-1"
|
|
36231
36294
|
};
|
|
@@ -36240,7 +36303,7 @@ var init_basinscope = __esm(() => {
|
|
|
36240
36303
|
// src/models/components/basinstate.ts
|
|
36241
36304
|
var BasinState, BasinState$inboundSchema, BasinState$outboundSchema, BasinState$;
|
|
36242
36305
|
var init_basinstate = __esm(() => {
|
|
36243
|
-
|
|
36306
|
+
init_esm();
|
|
36244
36307
|
BasinState = {
|
|
36245
36308
|
Active: "active",
|
|
36246
36309
|
Creating: "creating",
|
|
@@ -36257,7 +36320,7 @@ var init_basinstate = __esm(() => {
|
|
|
36257
36320
|
// src/models/components/basininfo.ts
|
|
36258
36321
|
var BasinInfo$inboundSchema, BasinInfo$outboundSchema, BasinInfo$;
|
|
36259
36322
|
var init_basininfo = __esm(() => {
|
|
36260
|
-
|
|
36323
|
+
init_esm();
|
|
36261
36324
|
init_basinscope();
|
|
36262
36325
|
init_basinstate();
|
|
36263
36326
|
BasinInfo$inboundSchema = objectType({
|
|
@@ -36279,7 +36342,7 @@ var init_basininfo = __esm(() => {
|
|
|
36279
36342
|
// src/models/components/timestampingreconfiguration.ts
|
|
36280
36343
|
var TimestampingReconfiguration$inboundSchema, TimestampingReconfiguration$outboundSchema, TimestampingReconfiguration$;
|
|
36281
36344
|
var init_timestampingreconfiguration = __esm(() => {
|
|
36282
|
-
|
|
36345
|
+
init_esm();
|
|
36283
36346
|
init_timestampingmode();
|
|
36284
36347
|
TimestampingReconfiguration$inboundSchema = objectType({
|
|
36285
36348
|
mode: nullableType(TimestampingMode$inboundSchema).optional(),
|
|
@@ -36298,7 +36361,7 @@ var init_timestampingreconfiguration = __esm(() => {
|
|
|
36298
36361
|
// src/models/components/streamreconfiguration.ts
|
|
36299
36362
|
var StreamReconfiguration$inboundSchema, StreamReconfiguration$outboundSchema, StreamReconfiguration$;
|
|
36300
36363
|
var init_streamreconfiguration = __esm(() => {
|
|
36301
|
-
|
|
36364
|
+
init_esm();
|
|
36302
36365
|
init_primitives();
|
|
36303
36366
|
init_retentionpolicy();
|
|
36304
36367
|
init_storageclass();
|
|
@@ -36332,7 +36395,7 @@ var init_streamreconfiguration = __esm(() => {
|
|
|
36332
36395
|
// src/models/components/basinreconfiguration.ts
|
|
36333
36396
|
var BasinReconfiguration$inboundSchema, BasinReconfiguration$outboundSchema, BasinReconfiguration$;
|
|
36334
36397
|
var init_basinreconfiguration = __esm(() => {
|
|
36335
|
-
|
|
36398
|
+
init_esm();
|
|
36336
36399
|
init_primitives();
|
|
36337
36400
|
init_streamreconfiguration();
|
|
36338
36401
|
BasinReconfiguration$inboundSchema = objectType({
|
|
@@ -36366,7 +36429,7 @@ var init_basinreconfiguration = __esm(() => {
|
|
|
36366
36429
|
// src/models/components/createbasinrequest.ts
|
|
36367
36430
|
var Scope$inboundSchema, Scope$outboundSchema, Scope$, CreateBasinRequest$inboundSchema, CreateBasinRequest$outboundSchema, CreateBasinRequest$;
|
|
36368
36431
|
var init_createbasinrequest = __esm(() => {
|
|
36369
|
-
|
|
36432
|
+
init_esm();
|
|
36370
36433
|
init_basinconfig();
|
|
36371
36434
|
init_basinscope();
|
|
36372
36435
|
Scope$inboundSchema = BasinScope$inboundSchema;
|
|
@@ -36394,7 +36457,7 @@ var init_createbasinrequest = __esm(() => {
|
|
|
36394
36457
|
// src/models/components/createorreconfigurebasinrequest.ts
|
|
36395
36458
|
var CreateOrReconfigureBasinRequestScope$inboundSchema, CreateOrReconfigureBasinRequestScope$outboundSchema, CreateOrReconfigureBasinRequestScope$, CreateOrReconfigureBasinRequest$inboundSchema, CreateOrReconfigureBasinRequest$outboundSchema, CreateOrReconfigureBasinRequest$;
|
|
36396
36459
|
var init_createorreconfigurebasinrequest = __esm(() => {
|
|
36397
|
-
|
|
36460
|
+
init_esm();
|
|
36398
36461
|
init_basinconfig();
|
|
36399
36462
|
init_basinscope();
|
|
36400
36463
|
CreateOrReconfigureBasinRequestScope$inboundSchema = BasinScope$inboundSchema;
|
|
@@ -36420,7 +36483,7 @@ var init_createorreconfigurebasinrequest = __esm(() => {
|
|
|
36420
36483
|
// src/models/components/createstreamrequest.ts
|
|
36421
36484
|
var CreateStreamRequest$inboundSchema, CreateStreamRequest$outboundSchema, CreateStreamRequest$;
|
|
36422
36485
|
var init_createstreamrequest = __esm(() => {
|
|
36423
|
-
|
|
36486
|
+
init_esm();
|
|
36424
36487
|
init_streamconfig();
|
|
36425
36488
|
CreateStreamRequest$inboundSchema = objectType({
|
|
36426
36489
|
config: nullableType(StreamConfig$inboundSchema).optional(),
|
|
@@ -36439,7 +36502,7 @@ var init_createstreamrequest = __esm(() => {
|
|
|
36439
36502
|
// src/models/components/issueaccesstokenresponse.ts
|
|
36440
36503
|
var IssueAccessTokenResponse$inboundSchema, IssueAccessTokenResponse$outboundSchema, IssueAccessTokenResponse$;
|
|
36441
36504
|
var init_issueaccesstokenresponse = __esm(() => {
|
|
36442
|
-
|
|
36505
|
+
init_esm();
|
|
36443
36506
|
init_primitives();
|
|
36444
36507
|
IssueAccessTokenResponse$inboundSchema = objectType({
|
|
36445
36508
|
access_token: stringType()
|
|
@@ -36464,7 +36527,7 @@ var init_issueaccesstokenresponse = __esm(() => {
|
|
|
36464
36527
|
// src/models/components/listaccesstokensresponse.ts
|
|
36465
36528
|
var ListAccessTokensResponse$inboundSchema, ListAccessTokensResponse$outboundSchema, ListAccessTokensResponse$;
|
|
36466
36529
|
var init_listaccesstokensresponse = __esm(() => {
|
|
36467
|
-
|
|
36530
|
+
init_esm();
|
|
36468
36531
|
init_primitives();
|
|
36469
36532
|
init_accesstokeninfo();
|
|
36470
36533
|
ListAccessTokensResponse$inboundSchema = objectType({
|
|
@@ -36494,7 +36557,7 @@ var init_listaccesstokensresponse = __esm(() => {
|
|
|
36494
36557
|
// src/models/components/listbasinsresponse.ts
|
|
36495
36558
|
var ListBasinsResponse$inboundSchema, ListBasinsResponse$outboundSchema, ListBasinsResponse$;
|
|
36496
36559
|
var init_listbasinsresponse = __esm(() => {
|
|
36497
|
-
|
|
36560
|
+
init_esm();
|
|
36498
36561
|
init_primitives();
|
|
36499
36562
|
init_basininfo();
|
|
36500
36563
|
ListBasinsResponse$inboundSchema = objectType({
|
|
@@ -36522,7 +36585,7 @@ var init_listbasinsresponse = __esm(() => {
|
|
|
36522
36585
|
// src/models/components/streaminfo.ts
|
|
36523
36586
|
var StreamInfo$inboundSchema, StreamInfo$outboundSchema, StreamInfo$;
|
|
36524
36587
|
var init_streaminfo = __esm(() => {
|
|
36525
|
-
|
|
36588
|
+
init_esm();
|
|
36526
36589
|
init_primitives();
|
|
36527
36590
|
StreamInfo$inboundSchema = objectType({
|
|
36528
36591
|
created_at: stringType(),
|
|
@@ -36553,7 +36616,7 @@ var init_streaminfo = __esm(() => {
|
|
|
36553
36616
|
// src/models/components/liststreamsresponse.ts
|
|
36554
36617
|
var ListStreamsResponse$inboundSchema, ListStreamsResponse$outboundSchema, ListStreamsResponse$;
|
|
36555
36618
|
var init_liststreamsresponse = __esm(() => {
|
|
36556
|
-
|
|
36619
|
+
init_esm();
|
|
36557
36620
|
init_primitives();
|
|
36558
36621
|
init_streaminfo();
|
|
36559
36622
|
ListStreamsResponse$inboundSchema = objectType({
|
|
@@ -36578,10 +36641,26 @@ var init_liststreamsresponse = __esm(() => {
|
|
|
36578
36641
|
})(ListStreamsResponse$ ||= {});
|
|
36579
36642
|
});
|
|
36580
36643
|
|
|
36644
|
+
// src/models/components/pingeventdata.ts
|
|
36645
|
+
var PingEventData$inboundSchema, PingEventData$outboundSchema, PingEventData$;
|
|
36646
|
+
var init_pingeventdata = __esm(() => {
|
|
36647
|
+
init_esm();
|
|
36648
|
+
PingEventData$inboundSchema = objectType({
|
|
36649
|
+
timestamp: numberType().int()
|
|
36650
|
+
});
|
|
36651
|
+
PingEventData$outboundSchema = objectType({
|
|
36652
|
+
timestamp: numberType().int()
|
|
36653
|
+
});
|
|
36654
|
+
((PingEventData$) => {
|
|
36655
|
+
PingEventData$.inboundSchema = PingEventData$inboundSchema;
|
|
36656
|
+
PingEventData$.outboundSchema = PingEventData$outboundSchema;
|
|
36657
|
+
})(PingEventData$ ||= {});
|
|
36658
|
+
});
|
|
36659
|
+
|
|
36581
36660
|
// src/models/components/sequencedrecord.ts
|
|
36582
36661
|
var SequencedRecord$inboundSchema, SequencedRecord$outboundSchema, SequencedRecord$;
|
|
36583
36662
|
var init_sequencedrecord = __esm(() => {
|
|
36584
|
-
|
|
36663
|
+
init_esm();
|
|
36585
36664
|
init_primitives();
|
|
36586
36665
|
SequencedRecord$inboundSchema = objectType({
|
|
36587
36666
|
body: stringType().optional(),
|
|
@@ -36612,7 +36691,7 @@ var init_sequencedrecord = __esm(() => {
|
|
|
36612
36691
|
// src/models/components/readbatch.ts
|
|
36613
36692
|
var ReadBatch$inboundSchema, ReadBatch$outboundSchema, ReadBatch$;
|
|
36614
36693
|
var init_readbatch = __esm(() => {
|
|
36615
|
-
|
|
36694
|
+
init_esm();
|
|
36616
36695
|
init_sequencedrecord();
|
|
36617
36696
|
ReadBatch$inboundSchema = objectType({
|
|
36618
36697
|
records: arrayType(SequencedRecord$inboundSchema)
|
|
@@ -36627,34 +36706,72 @@ var init_readbatch = __esm(() => {
|
|
|
36627
36706
|
});
|
|
36628
36707
|
|
|
36629
36708
|
// src/models/components/readevent.ts
|
|
36630
|
-
var Ping$inboundSchema, Ping$outboundSchema, Ping$, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$, Batch$inboundSchema, Batch$outboundSchema, Batch$, ReadEvent$inboundSchema, ReadEvent$outboundSchema, ReadEvent$;
|
|
36709
|
+
var ReadEvent3Event, ReadEventEvent, Event, ReadEvent3Event$inboundSchema, ReadEvent3Event$outboundSchema, ReadEvent3Event$, Ping$inboundSchema, Ping$outboundSchema, Ping$, ReadEventEvent$inboundSchema, ReadEventEvent$outboundSchema, ReadEventEvent$, ErrorT$inboundSchema, ErrorT$outboundSchema, ErrorT$, Event$inboundSchema, Event$outboundSchema, Event$, Batch$inboundSchema, Batch$outboundSchema, Batch$, ReadEvent$inboundSchema, ReadEvent$outboundSchema, ReadEvent$;
|
|
36631
36710
|
var init_readevent = __esm(() => {
|
|
36632
|
-
|
|
36711
|
+
init_esm();
|
|
36712
|
+
init_pingeventdata();
|
|
36633
36713
|
init_readbatch();
|
|
36714
|
+
ReadEvent3Event = {
|
|
36715
|
+
Ping: "ping"
|
|
36716
|
+
};
|
|
36717
|
+
ReadEventEvent = {
|
|
36718
|
+
Error: "error"
|
|
36719
|
+
};
|
|
36720
|
+
Event = {
|
|
36721
|
+
Batch: "batch"
|
|
36722
|
+
};
|
|
36723
|
+
ReadEvent3Event$inboundSchema = nativeEnumType(ReadEvent3Event);
|
|
36724
|
+
ReadEvent3Event$outboundSchema = ReadEvent3Event$inboundSchema;
|
|
36725
|
+
((ReadEvent3Event$) => {
|
|
36726
|
+
ReadEvent3Event$.inboundSchema = ReadEvent3Event$inboundSchema;
|
|
36727
|
+
ReadEvent3Event$.outboundSchema = ReadEvent3Event$outboundSchema;
|
|
36728
|
+
})(ReadEvent3Event$ ||= {});
|
|
36634
36729
|
Ping$inboundSchema = objectType({
|
|
36635
|
-
data: stringType(),
|
|
36636
|
-
|
|
36730
|
+
data: stringType().transform((v2, ctx) => {
|
|
36731
|
+
try {
|
|
36732
|
+
return JSON.parse(v2);
|
|
36733
|
+
} catch (err) {
|
|
36734
|
+
ctx.addIssue({
|
|
36735
|
+
code: ZodIssueCode.custom,
|
|
36736
|
+
message: `malformed json: ${err}`
|
|
36737
|
+
});
|
|
36738
|
+
return NEVER;
|
|
36739
|
+
}
|
|
36740
|
+
}).pipe(PingEventData$inboundSchema),
|
|
36741
|
+
event: ReadEvent3Event$inboundSchema
|
|
36637
36742
|
});
|
|
36638
36743
|
Ping$outboundSchema = objectType({
|
|
36639
|
-
data:
|
|
36640
|
-
event:
|
|
36744
|
+
data: PingEventData$outboundSchema,
|
|
36745
|
+
event: ReadEvent3Event$outboundSchema
|
|
36641
36746
|
});
|
|
36642
36747
|
((Ping$) => {
|
|
36643
36748
|
Ping$.inboundSchema = Ping$inboundSchema;
|
|
36644
36749
|
Ping$.outboundSchema = Ping$outboundSchema;
|
|
36645
36750
|
})(Ping$ ||= {});
|
|
36751
|
+
ReadEventEvent$inboundSchema = nativeEnumType(ReadEventEvent);
|
|
36752
|
+
ReadEventEvent$outboundSchema = ReadEventEvent$inboundSchema;
|
|
36753
|
+
((ReadEventEvent$) => {
|
|
36754
|
+
ReadEventEvent$.inboundSchema = ReadEventEvent$inboundSchema;
|
|
36755
|
+
ReadEventEvent$.outboundSchema = ReadEventEvent$outboundSchema;
|
|
36756
|
+
})(ReadEventEvent$ ||= {});
|
|
36646
36757
|
ErrorT$inboundSchema = objectType({
|
|
36647
36758
|
data: stringType(),
|
|
36648
|
-
event:
|
|
36759
|
+
event: ReadEventEvent$inboundSchema
|
|
36649
36760
|
});
|
|
36650
36761
|
ErrorT$outboundSchema = objectType({
|
|
36651
36762
|
data: stringType(),
|
|
36652
|
-
event:
|
|
36763
|
+
event: ReadEventEvent$outboundSchema
|
|
36653
36764
|
});
|
|
36654
36765
|
((ErrorT$) => {
|
|
36655
36766
|
ErrorT$.inboundSchema = ErrorT$inboundSchema;
|
|
36656
36767
|
ErrorT$.outboundSchema = ErrorT$outboundSchema;
|
|
36657
36768
|
})(ErrorT$ ||= {});
|
|
36769
|
+
Event$inboundSchema = nativeEnumType(Event);
|
|
36770
|
+
Event$outboundSchema = Event$inboundSchema;
|
|
36771
|
+
((Event$) => {
|
|
36772
|
+
Event$.inboundSchema = Event$inboundSchema;
|
|
36773
|
+
Event$.outboundSchema = Event$outboundSchema;
|
|
36774
|
+
})(Event$ ||= {});
|
|
36658
36775
|
Batch$inboundSchema = objectType({
|
|
36659
36776
|
data: stringType().transform((v2, ctx) => {
|
|
36660
36777
|
try {
|
|
@@ -36667,25 +36784,27 @@ var init_readevent = __esm(() => {
|
|
|
36667
36784
|
return NEVER;
|
|
36668
36785
|
}
|
|
36669
36786
|
}).pipe(ReadBatch$inboundSchema),
|
|
36670
|
-
event:
|
|
36787
|
+
event: Event$inboundSchema,
|
|
36788
|
+
id: stringType()
|
|
36671
36789
|
});
|
|
36672
36790
|
Batch$outboundSchema = objectType({
|
|
36673
36791
|
data: ReadBatch$outboundSchema,
|
|
36674
|
-
event:
|
|
36792
|
+
event: Event$outboundSchema,
|
|
36793
|
+
id: stringType()
|
|
36675
36794
|
});
|
|
36676
36795
|
((Batch$) => {
|
|
36677
36796
|
Batch$.inboundSchema = Batch$inboundSchema;
|
|
36678
36797
|
Batch$.outboundSchema = Batch$outboundSchema;
|
|
36679
36798
|
})(Batch$ ||= {});
|
|
36680
36799
|
ReadEvent$inboundSchema = unionType([
|
|
36681
|
-
lazyType(() => Batch$inboundSchema),
|
|
36682
36800
|
lazyType(() => ErrorT$inboundSchema),
|
|
36683
|
-
lazyType(() => Ping$inboundSchema)
|
|
36801
|
+
lazyType(() => Ping$inboundSchema),
|
|
36802
|
+
lazyType(() => Batch$inboundSchema)
|
|
36684
36803
|
]);
|
|
36685
36804
|
ReadEvent$outboundSchema = unionType([
|
|
36686
|
-
lazyType(() => Batch$outboundSchema),
|
|
36687
36805
|
lazyType(() => ErrorT$outboundSchema),
|
|
36688
|
-
lazyType(() => Ping$outboundSchema)
|
|
36806
|
+
lazyType(() => Ping$outboundSchema),
|
|
36807
|
+
lazyType(() => Batch$outboundSchema)
|
|
36689
36808
|
]);
|
|
36690
36809
|
((ReadEvent$) => {
|
|
36691
36810
|
ReadEvent$.inboundSchema = ReadEvent$inboundSchema;
|
|
@@ -36696,10 +36815,10 @@ var init_readevent = __esm(() => {
|
|
|
36696
36815
|
// src/models/components/s2format.ts
|
|
36697
36816
|
var S2Format, S2Format$inboundSchema, S2Format$outboundSchema, S2Format$;
|
|
36698
36817
|
var init_s2format = __esm(() => {
|
|
36699
|
-
|
|
36818
|
+
init_esm();
|
|
36700
36819
|
S2Format = {
|
|
36701
|
-
|
|
36702
|
-
|
|
36820
|
+
Raw: "raw",
|
|
36821
|
+
Base64: "base64"
|
|
36703
36822
|
};
|
|
36704
36823
|
S2Format$inboundSchema = nativeEnumType(S2Format);
|
|
36705
36824
|
S2Format$outboundSchema = S2Format$inboundSchema;
|
|
@@ -36712,7 +36831,7 @@ var init_s2format = __esm(() => {
|
|
|
36712
36831
|
// src/models/components/security.ts
|
|
36713
36832
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
36714
36833
|
var init_security2 = __esm(() => {
|
|
36715
|
-
|
|
36834
|
+
init_esm();
|
|
36716
36835
|
init_primitives();
|
|
36717
36836
|
Security$inboundSchema = objectType({
|
|
36718
36837
|
access_token: stringType().optional()
|
|
@@ -36737,7 +36856,7 @@ var init_security2 = __esm(() => {
|
|
|
36737
36856
|
// src/models/components/tailresponse.ts
|
|
36738
36857
|
var TailResponse$inboundSchema, TailResponse$outboundSchema, TailResponse$;
|
|
36739
36858
|
var init_tailresponse = __esm(() => {
|
|
36740
|
-
|
|
36859
|
+
init_esm();
|
|
36741
36860
|
init_streamposition();
|
|
36742
36861
|
TailResponse$inboundSchema = objectType({
|
|
36743
36862
|
tail: StreamPosition$inboundSchema
|
|
@@ -36772,6 +36891,7 @@ var init_components = __esm(() => {
|
|
|
36772
36891
|
init_liststreamsresponse();
|
|
36773
36892
|
init_operation();
|
|
36774
36893
|
init_permittedoperationgroups();
|
|
36894
|
+
init_pingeventdata();
|
|
36775
36895
|
init_readbatch();
|
|
36776
36896
|
init_readevent();
|
|
36777
36897
|
init_readwritepermissions();
|
|
@@ -36792,11 +36912,11 @@ var init_components = __esm(() => {
|
|
|
36792
36912
|
});
|
|
36793
36913
|
|
|
36794
36914
|
// src/models/errors/appendconditionfailed.ts
|
|
36795
|
-
var
|
|
36915
|
+
var SeqNum, FencingToken, SeqNum$inboundSchema, SeqNum$outboundSchema, SeqNum$, FencingToken$inboundSchema, FencingToken$outboundSchema, FencingToken$, AppendConditionFailed$inboundSchema, AppendConditionFailed$outboundSchema, AppendConditionFailed$;
|
|
36796
36916
|
var init_appendconditionfailed = __esm(() => {
|
|
36797
|
-
|
|
36917
|
+
init_esm();
|
|
36798
36918
|
init_primitives();
|
|
36799
|
-
|
|
36919
|
+
SeqNum = class SeqNum extends Error {
|
|
36800
36920
|
seqNumMismatch;
|
|
36801
36921
|
data$;
|
|
36802
36922
|
constructor(err) {
|
|
@@ -36804,10 +36924,10 @@ var init_appendconditionfailed = __esm(() => {
|
|
|
36804
36924
|
super(message);
|
|
36805
36925
|
this.data$ = err;
|
|
36806
36926
|
this.seqNumMismatch = err.seqNumMismatch;
|
|
36807
|
-
this.name = "
|
|
36927
|
+
this.name = "SeqNum";
|
|
36808
36928
|
}
|
|
36809
36929
|
};
|
|
36810
|
-
|
|
36930
|
+
FencingToken = class FencingToken extends Error {
|
|
36811
36931
|
fencingTokenMismatch;
|
|
36812
36932
|
data$;
|
|
36813
36933
|
constructor(err) {
|
|
@@ -36815,51 +36935,54 @@ var init_appendconditionfailed = __esm(() => {
|
|
|
36815
36935
|
super(message);
|
|
36816
36936
|
this.data$ = err;
|
|
36817
36937
|
this.fencingTokenMismatch = err.fencingTokenMismatch;
|
|
36818
|
-
this.name = "
|
|
36938
|
+
this.name = "FencingToken";
|
|
36819
36939
|
}
|
|
36820
36940
|
};
|
|
36821
|
-
|
|
36822
|
-
|
|
36941
|
+
SeqNum$inboundSchema = objectType({
|
|
36942
|
+
seq_num_mismatch: numberType().int()
|
|
36823
36943
|
}).transform((v2) => {
|
|
36824
36944
|
const remapped = remap(v2, {
|
|
36825
|
-
|
|
36945
|
+
seq_num_mismatch: "seqNumMismatch"
|
|
36826
36946
|
});
|
|
36827
|
-
return new
|
|
36947
|
+
return new SeqNum(remapped);
|
|
36828
36948
|
});
|
|
36829
|
-
|
|
36949
|
+
SeqNum$outboundSchema = instanceOfType(SeqNum).transform((v2) => v2.data$).pipe(objectType({
|
|
36830
36950
|
seqNumMismatch: numberType().int()
|
|
36831
36951
|
}).transform((v2) => {
|
|
36832
36952
|
return remap(v2, {
|
|
36833
|
-
seqNumMismatch: "
|
|
36953
|
+
seqNumMismatch: "seq_num_mismatch"
|
|
36834
36954
|
});
|
|
36835
36955
|
}));
|
|
36836
|
-
((
|
|
36837
|
-
|
|
36838
|
-
|
|
36839
|
-
})(
|
|
36840
|
-
|
|
36841
|
-
|
|
36956
|
+
((SeqNum$) => {
|
|
36957
|
+
SeqNum$.inboundSchema = SeqNum$inboundSchema;
|
|
36958
|
+
SeqNum$.outboundSchema = SeqNum$outboundSchema;
|
|
36959
|
+
})(SeqNum$ ||= {});
|
|
36960
|
+
FencingToken$inboundSchema = objectType({
|
|
36961
|
+
fencing_token_mismatch: stringType()
|
|
36842
36962
|
}).transform((v2) => {
|
|
36843
36963
|
const remapped = remap(v2, {
|
|
36844
|
-
|
|
36964
|
+
fencing_token_mismatch: "fencingTokenMismatch"
|
|
36845
36965
|
});
|
|
36846
|
-
return new
|
|
36966
|
+
return new FencingToken(remapped);
|
|
36847
36967
|
});
|
|
36848
|
-
|
|
36968
|
+
FencingToken$outboundSchema = instanceOfType(FencingToken).transform((v2) => v2.data$).pipe(objectType({
|
|
36849
36969
|
fencingTokenMismatch: stringType()
|
|
36850
36970
|
}).transform((v2) => {
|
|
36851
36971
|
return remap(v2, {
|
|
36852
|
-
fencingTokenMismatch: "
|
|
36972
|
+
fencingTokenMismatch: "fencing_token_mismatch"
|
|
36853
36973
|
});
|
|
36854
36974
|
}));
|
|
36855
|
-
((
|
|
36856
|
-
|
|
36857
|
-
|
|
36858
|
-
})(
|
|
36859
|
-
AppendConditionFailed$inboundSchema = unionType([
|
|
36975
|
+
((FencingToken$) => {
|
|
36976
|
+
FencingToken$.inboundSchema = FencingToken$inboundSchema;
|
|
36977
|
+
FencingToken$.outboundSchema = FencingToken$outboundSchema;
|
|
36978
|
+
})(FencingToken$ ||= {});
|
|
36979
|
+
AppendConditionFailed$inboundSchema = unionType([
|
|
36980
|
+
lazyType(() => FencingToken$inboundSchema),
|
|
36981
|
+
lazyType(() => SeqNum$inboundSchema)
|
|
36982
|
+
]);
|
|
36860
36983
|
AppendConditionFailed$outboundSchema = unionType([
|
|
36861
|
-
lazyType(() =>
|
|
36862
|
-
lazyType(() =>
|
|
36984
|
+
lazyType(() => FencingToken$outboundSchema),
|
|
36985
|
+
lazyType(() => SeqNum$outboundSchema)
|
|
36863
36986
|
]);
|
|
36864
36987
|
((AppendConditionFailed$) => {
|
|
36865
36988
|
AppendConditionFailed$.inboundSchema = AppendConditionFailed$inboundSchema;
|
|
@@ -36870,7 +36993,7 @@ var init_appendconditionfailed = __esm(() => {
|
|
|
36870
36993
|
// src/models/errors/errorresponse.ts
|
|
36871
36994
|
var ErrorResponse, ErrorResponse$inboundSchema, ErrorResponse$outboundSchema, ErrorResponse$;
|
|
36872
36995
|
var init_errorresponse = __esm(() => {
|
|
36873
|
-
|
|
36996
|
+
init_esm();
|
|
36874
36997
|
ErrorResponse = class ErrorResponse extends Error {
|
|
36875
36998
|
code;
|
|
36876
36999
|
data$;
|
|
@@ -36902,7 +37025,7 @@ var init_errorresponse = __esm(() => {
|
|
|
36902
37025
|
// src/models/errors/tailresponse.ts
|
|
36903
37026
|
var TailResponse, TailResponse$inboundSchema2, TailResponse$outboundSchema2, TailResponse$2;
|
|
36904
37027
|
var init_tailresponse2 = __esm(() => {
|
|
36905
|
-
|
|
37028
|
+
init_esm();
|
|
36906
37029
|
init_components();
|
|
36907
37030
|
TailResponse = class TailResponse extends Error {
|
|
36908
37031
|
tail;
|
|
@@ -36930,7 +37053,7 @@ var init_tailresponse2 = __esm(() => {
|
|
|
36930
37053
|
});
|
|
36931
37054
|
|
|
36932
37055
|
// src/models/errors/index.ts
|
|
36933
|
-
var
|
|
37056
|
+
var init_errors2 = __esm(() => {
|
|
36934
37057
|
init_apierror();
|
|
36935
37058
|
init_appendconditionfailed();
|
|
36936
37059
|
init_errorresponse();
|
|
@@ -37033,7 +37156,7 @@ var init_accessTokensIssueAccessToken = __esm(() => {
|
|
|
37033
37156
|
init_security();
|
|
37034
37157
|
init_url();
|
|
37035
37158
|
init_components();
|
|
37036
|
-
|
|
37159
|
+
init_errors2();
|
|
37037
37160
|
init_async();
|
|
37038
37161
|
});
|
|
37039
37162
|
|
|
@@ -37068,7 +37191,7 @@ var init_accessTokensIssueAccessToken2 = __esm(() => {
|
|
|
37068
37191
|
// src/models/operations/append.ts
|
|
37069
37192
|
var AppendServerList, AppendRequest$inboundSchema, AppendRequest$outboundSchema, AppendRequest$;
|
|
37070
37193
|
var init_append = __esm(() => {
|
|
37071
|
-
|
|
37194
|
+
init_esm();
|
|
37072
37195
|
init_primitives();
|
|
37073
37196
|
init_components();
|
|
37074
37197
|
AppendServerList = [
|
|
@@ -37107,7 +37230,7 @@ var init_append = __esm(() => {
|
|
|
37107
37230
|
// src/models/operations/checktail.ts
|
|
37108
37231
|
var CheckTailServerList, CheckTailRequest$inboundSchema, CheckTailRequest$outboundSchema, CheckTailRequest$;
|
|
37109
37232
|
var init_checktail = __esm(() => {
|
|
37110
|
-
|
|
37233
|
+
init_esm();
|
|
37111
37234
|
init_primitives();
|
|
37112
37235
|
CheckTailServerList = [
|
|
37113
37236
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
@@ -37137,7 +37260,7 @@ var init_checktail = __esm(() => {
|
|
|
37137
37260
|
// src/models/operations/createorreconfigurebasin.ts
|
|
37138
37261
|
var CreateOrReconfigureBasinRequest$inboundSchema2, CreateOrReconfigureBasinRequest$outboundSchema2, CreateOrReconfigureBasinRequest$2;
|
|
37139
37262
|
var init_createorreconfigurebasin = __esm(() => {
|
|
37140
|
-
|
|
37263
|
+
init_esm();
|
|
37141
37264
|
init_primitives();
|
|
37142
37265
|
init_components();
|
|
37143
37266
|
CreateOrReconfigureBasinRequest$inboundSchema2 = objectType({
|
|
@@ -37169,7 +37292,7 @@ var init_createorreconfigurebasin = __esm(() => {
|
|
|
37169
37292
|
// src/models/operations/createorreconfigurestream.ts
|
|
37170
37293
|
var CreateOrReconfigureStreamServerList, CreateOrReconfigureStreamRequest$inboundSchema, CreateOrReconfigureStreamRequest$outboundSchema, CreateOrReconfigureStreamRequest$;
|
|
37171
37294
|
var init_createorreconfigurestream = __esm(() => {
|
|
37172
|
-
|
|
37295
|
+
init_esm();
|
|
37173
37296
|
init_primitives();
|
|
37174
37297
|
init_components();
|
|
37175
37298
|
CreateOrReconfigureStreamServerList = [
|
|
@@ -37208,7 +37331,7 @@ var init_createorreconfigurestream = __esm(() => {
|
|
|
37208
37331
|
// src/models/operations/createstream.ts
|
|
37209
37332
|
var CreateStreamServerList, CreateStreamRequest$inboundSchema2, CreateStreamRequest$outboundSchema2, CreateStreamRequest$2;
|
|
37210
37333
|
var init_createstream = __esm(() => {
|
|
37211
|
-
|
|
37334
|
+
init_esm();
|
|
37212
37335
|
init_primitives();
|
|
37213
37336
|
init_components();
|
|
37214
37337
|
CreateStreamServerList = [
|
|
@@ -37241,7 +37364,7 @@ var init_createstream = __esm(() => {
|
|
|
37241
37364
|
// src/models/operations/deletebasin.ts
|
|
37242
37365
|
var DeleteBasinRequest$inboundSchema, DeleteBasinRequest$outboundSchema, DeleteBasinRequest$;
|
|
37243
37366
|
var init_deletebasin = __esm(() => {
|
|
37244
|
-
|
|
37367
|
+
init_esm();
|
|
37245
37368
|
DeleteBasinRequest$inboundSchema = objectType({
|
|
37246
37369
|
basin: stringType()
|
|
37247
37370
|
});
|
|
@@ -37257,7 +37380,7 @@ var init_deletebasin = __esm(() => {
|
|
|
37257
37380
|
// src/models/operations/deletestream.ts
|
|
37258
37381
|
var DeleteStreamServerList, DeleteStreamRequest$inboundSchema, DeleteStreamRequest$outboundSchema, DeleteStreamRequest$;
|
|
37259
37382
|
var init_deletestream = __esm(() => {
|
|
37260
|
-
|
|
37383
|
+
init_esm();
|
|
37261
37384
|
init_primitives();
|
|
37262
37385
|
DeleteStreamServerList = [
|
|
37263
37386
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
@@ -37287,7 +37410,7 @@ var init_deletestream = __esm(() => {
|
|
|
37287
37410
|
// src/models/operations/getbasinconfig.ts
|
|
37288
37411
|
var GetBasinConfigRequest$inboundSchema, GetBasinConfigRequest$outboundSchema, GetBasinConfigRequest$;
|
|
37289
37412
|
var init_getbasinconfig = __esm(() => {
|
|
37290
|
-
|
|
37413
|
+
init_esm();
|
|
37291
37414
|
GetBasinConfigRequest$inboundSchema = objectType({
|
|
37292
37415
|
basin: stringType()
|
|
37293
37416
|
});
|
|
@@ -37303,7 +37426,7 @@ var init_getbasinconfig = __esm(() => {
|
|
|
37303
37426
|
// src/models/operations/getstreamconfig.ts
|
|
37304
37427
|
var GetStreamConfigServerList, GetStreamConfigRequest$inboundSchema, GetStreamConfigRequest$outboundSchema, GetStreamConfigRequest$;
|
|
37305
37428
|
var init_getstreamconfig = __esm(() => {
|
|
37306
|
-
|
|
37429
|
+
init_esm();
|
|
37307
37430
|
init_primitives();
|
|
37308
37431
|
GetStreamConfigServerList = [
|
|
37309
37432
|
"https://{basin}.b.aws.s2.dev/v1"
|
|
@@ -37333,7 +37456,7 @@ var init_getstreamconfig = __esm(() => {
|
|
|
37333
37456
|
// src/models/operations/listaccesstokens.ts
|
|
37334
37457
|
var ListAccessTokensRequest$inboundSchema, ListAccessTokensRequest$outboundSchema, ListAccessTokensRequest$;
|
|
37335
37458
|
var init_listaccesstokens = __esm(() => {
|
|
37336
|
-
|
|
37459
|
+
init_esm();
|
|
37337
37460
|
init_primitives();
|
|
37338
37461
|
ListAccessTokensRequest$inboundSchema = objectType({
|
|
37339
37462
|
prefix: stringType().default(""),
|
|
@@ -37362,7 +37485,7 @@ var init_listaccesstokens = __esm(() => {
|
|
|
37362
37485
|
// src/models/operations/listbasins.ts
|
|
37363
37486
|
var ListBasinsRequest$inboundSchema, ListBasinsRequest$outboundSchema, ListBasinsRequest$, ListBasinsResponse$inboundSchema2, ListBasinsResponse$outboundSchema2, ListBasinsResponse$2;
|
|
37364
37487
|
var init_listbasins = __esm(() => {
|
|
37365
|
-
|
|
37488
|
+
init_esm();
|
|
37366
37489
|
init_primitives();
|
|
37367
37490
|
init_components();
|
|
37368
37491
|
ListBasinsRequest$inboundSchema = objectType({
|
|
@@ -37410,7 +37533,7 @@ var init_listbasins = __esm(() => {
|
|
|
37410
37533
|
// src/models/operations/liststreams.ts
|
|
37411
37534
|
var ListStreamsServerList, ListStreamsRequest$inboundSchema, ListStreamsRequest$outboundSchema, ListStreamsRequest$, ListStreamsResponse$inboundSchema2, ListStreamsResponse$outboundSchema2, ListStreamsResponse$2;
|
|
37412
37535
|
var init_liststreams = __esm(() => {
|
|
37413
|
-
|
|
37536
|
+
init_esm();
|
|
37414
37537
|
init_primitives();
|
|
37415
37538
|
init_components();
|
|
37416
37539
|
ListStreamsServerList = [
|
|
@@ -37465,7 +37588,7 @@ var init_liststreams = __esm(() => {
|
|
|
37465
37588
|
// src/models/operations/read.ts
|
|
37466
37589
|
var ReadServerList, ReadRequest$inboundSchema, ReadRequest$outboundSchema, ReadRequest$, ReadResponse$inboundSchema, ReadResponse$outboundSchema, ReadResponse$;
|
|
37467
37590
|
var init_read = __esm(() => {
|
|
37468
|
-
|
|
37591
|
+
init_esm();
|
|
37469
37592
|
init_event_streams();
|
|
37470
37593
|
init_primitives();
|
|
37471
37594
|
init_components();
|
|
@@ -37532,7 +37655,7 @@ var init_read = __esm(() => {
|
|
|
37532
37655
|
// src/models/operations/reconfigurebasin.ts
|
|
37533
37656
|
var ReconfigureBasinRequest$inboundSchema, ReconfigureBasinRequest$outboundSchema, ReconfigureBasinRequest$;
|
|
37534
37657
|
var init_reconfigurebasin = __esm(() => {
|
|
37535
|
-
|
|
37658
|
+
init_esm();
|
|
37536
37659
|
init_primitives();
|
|
37537
37660
|
init_components();
|
|
37538
37661
|
ReconfigureBasinRequest$inboundSchema = objectType({
|
|
@@ -37560,7 +37683,7 @@ var init_reconfigurebasin = __esm(() => {
|
|
|
37560
37683
|
// src/models/operations/reconfigurestream.ts
|
|
37561
37684
|
var ReconfigureStreamServerList, ReconfigureStreamRequest$inboundSchema, ReconfigureStreamRequest$outboundSchema, ReconfigureStreamRequest$;
|
|
37562
37685
|
var init_reconfigurestream = __esm(() => {
|
|
37563
|
-
|
|
37686
|
+
init_esm();
|
|
37564
37687
|
init_primitives();
|
|
37565
37688
|
init_components();
|
|
37566
37689
|
ReconfigureStreamServerList = [
|
|
@@ -37595,7 +37718,7 @@ var init_reconfigurestream = __esm(() => {
|
|
|
37595
37718
|
// src/models/operations/revokeaccesstoken.ts
|
|
37596
37719
|
var RevokeAccessTokenRequest$inboundSchema, RevokeAccessTokenRequest$outboundSchema, RevokeAccessTokenRequest$;
|
|
37597
37720
|
var init_revokeaccesstoken = __esm(() => {
|
|
37598
|
-
|
|
37721
|
+
init_esm();
|
|
37599
37722
|
RevokeAccessTokenRequest$inboundSchema = objectType({
|
|
37600
37723
|
id: stringType()
|
|
37601
37724
|
});
|
|
@@ -37701,7 +37824,7 @@ var init_accessTokensListAccessTokens = __esm(() => {
|
|
|
37701
37824
|
init_security();
|
|
37702
37825
|
init_url();
|
|
37703
37826
|
init_components();
|
|
37704
|
-
|
|
37827
|
+
init_errors2();
|
|
37705
37828
|
init_operations();
|
|
37706
37829
|
init_async();
|
|
37707
37830
|
});
|
|
@@ -37800,14 +37923,14 @@ async function $do3(client, request, options) {
|
|
|
37800
37923
|
return [result, { status: "complete", request: req, response }];
|
|
37801
37924
|
}
|
|
37802
37925
|
var init_accessTokensRevokeAccessToken = __esm(() => {
|
|
37803
|
-
|
|
37926
|
+
init_esm();
|
|
37804
37927
|
init_encodings();
|
|
37805
37928
|
init_matchers();
|
|
37806
37929
|
init_primitives();
|
|
37807
37930
|
init_schemas();
|
|
37808
37931
|
init_security();
|
|
37809
37932
|
init_url();
|
|
37810
|
-
|
|
37933
|
+
init_errors2();
|
|
37811
37934
|
init_operations();
|
|
37812
37935
|
init_async();
|
|
37813
37936
|
});
|
|
@@ -37907,7 +38030,7 @@ var init_basinsCreateBasin = __esm(() => {
|
|
|
37907
38030
|
init_security();
|
|
37908
38031
|
init_url();
|
|
37909
38032
|
init_components();
|
|
37910
|
-
|
|
38033
|
+
init_errors2();
|
|
37911
38034
|
init_async();
|
|
37912
38035
|
});
|
|
37913
38036
|
|
|
@@ -38016,7 +38139,7 @@ var init_basinsCreateOrReconfigureBasin = __esm(() => {
|
|
|
38016
38139
|
init_security();
|
|
38017
38140
|
init_url();
|
|
38018
38141
|
init_components();
|
|
38019
|
-
|
|
38142
|
+
init_errors2();
|
|
38020
38143
|
init_operations();
|
|
38021
38144
|
init_async();
|
|
38022
38145
|
});
|
|
@@ -38115,14 +38238,14 @@ async function $do6(client, request, options) {
|
|
|
38115
38238
|
return [result, { status: "complete", request: req, response }];
|
|
38116
38239
|
}
|
|
38117
38240
|
var init_basinsDeleteBasin = __esm(() => {
|
|
38118
|
-
|
|
38241
|
+
init_esm();
|
|
38119
38242
|
init_encodings();
|
|
38120
38243
|
init_matchers();
|
|
38121
38244
|
init_primitives();
|
|
38122
38245
|
init_schemas();
|
|
38123
38246
|
init_security();
|
|
38124
38247
|
init_url();
|
|
38125
|
-
|
|
38248
|
+
init_errors2();
|
|
38126
38249
|
init_operations();
|
|
38127
38250
|
init_async();
|
|
38128
38251
|
});
|
|
@@ -38227,7 +38350,7 @@ var init_basinsGetBasinConfig = __esm(() => {
|
|
|
38227
38350
|
init_security();
|
|
38228
38351
|
init_url();
|
|
38229
38352
|
init_components();
|
|
38230
|
-
|
|
38353
|
+
init_errors2();
|
|
38231
38354
|
init_operations();
|
|
38232
38355
|
init_async();
|
|
38233
38356
|
});
|
|
@@ -42043,7 +42166,7 @@ function query(input, expression) {
|
|
|
42043
42166
|
});
|
|
42044
42167
|
return values;
|
|
42045
42168
|
}
|
|
42046
|
-
var
|
|
42169
|
+
var init_esm3 = __esm(() => {
|
|
42047
42170
|
init_exec();
|
|
42048
42171
|
});
|
|
42049
42172
|
|
|
@@ -42165,14 +42288,14 @@ async function $do8(client, request, options) {
|
|
|
42165
42288
|
}];
|
|
42166
42289
|
}
|
|
42167
42290
|
var init_basinsListBasins = __esm(() => {
|
|
42168
|
-
|
|
42291
|
+
init_esm3();
|
|
42169
42292
|
init_encodings();
|
|
42170
42293
|
init_matchers();
|
|
42171
42294
|
init_primitives();
|
|
42172
42295
|
init_schemas();
|
|
42173
42296
|
init_security();
|
|
42174
42297
|
init_url();
|
|
42175
|
-
|
|
42298
|
+
init_errors2();
|
|
42176
42299
|
init_operations();
|
|
42177
42300
|
init_async();
|
|
42178
42301
|
init_operations2();
|
|
@@ -42282,7 +42405,7 @@ var init_basinsReconfigureBasin = __esm(() => {
|
|
|
42282
42405
|
init_security();
|
|
42283
42406
|
init_url();
|
|
42284
42407
|
init_components();
|
|
42285
|
-
|
|
42408
|
+
init_errors2();
|
|
42286
42409
|
init_operations();
|
|
42287
42410
|
init_async();
|
|
42288
42411
|
});
|
|
@@ -42400,7 +42523,7 @@ var init_recordsAppend = __esm(() => {
|
|
|
42400
42523
|
init_security();
|
|
42401
42524
|
init_url();
|
|
42402
42525
|
init_components();
|
|
42403
|
-
|
|
42526
|
+
init_errors2();
|
|
42404
42527
|
init_append();
|
|
42405
42528
|
init_operations();
|
|
42406
42529
|
init_async();
|
|
@@ -42516,7 +42639,7 @@ var init_recordsCheckTail = __esm(() => {
|
|
|
42516
42639
|
init_security();
|
|
42517
42640
|
init_url();
|
|
42518
42641
|
init_components();
|
|
42519
|
-
|
|
42642
|
+
init_errors2();
|
|
42520
42643
|
init_checktail();
|
|
42521
42644
|
init_operations();
|
|
42522
42645
|
init_async();
|
|
@@ -42630,7 +42753,9 @@ async function $do12(client, request, options) {
|
|
|
42630
42753
|
const responseFields = {
|
|
42631
42754
|
HttpMeta: { Response: response, Request: req }
|
|
42632
42755
|
};
|
|
42633
|
-
const [result] = await match(json(200, ReadResponse$inboundSchema), sse(200, ReadResponse$inboundSchema
|
|
42756
|
+
const [result] = await match(json(200, ReadResponse$inboundSchema), sse(200, ReadResponse$inboundSchema, {
|
|
42757
|
+
sseSentinel: "[DONE]"
|
|
42758
|
+
}), jsonErr([400, 401, 404, 409], ErrorResponse$inboundSchema), jsonErr(416, TailResponse$inboundSchema2), jsonErr(500, ErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
42634
42759
|
if (!result.ok) {
|
|
42635
42760
|
return [result, { status: "complete", request: req, response }];
|
|
42636
42761
|
}
|
|
@@ -42643,7 +42768,7 @@ var init_recordsRead = __esm(() => {
|
|
|
42643
42768
|
init_schemas();
|
|
42644
42769
|
init_security();
|
|
42645
42770
|
init_url();
|
|
42646
|
-
|
|
42771
|
+
init_errors2();
|
|
42647
42772
|
init_operations();
|
|
42648
42773
|
init_read();
|
|
42649
42774
|
init_async();
|
|
@@ -42763,7 +42888,7 @@ var init_streamsCreateOrReconfigureStream = __esm(() => {
|
|
|
42763
42888
|
init_security();
|
|
42764
42889
|
init_url();
|
|
42765
42890
|
init_components();
|
|
42766
|
-
|
|
42891
|
+
init_errors2();
|
|
42767
42892
|
init_createorreconfigurestream();
|
|
42768
42893
|
init_operations();
|
|
42769
42894
|
init_async();
|
|
@@ -42874,7 +42999,7 @@ var init_streamsCreateStream = __esm(() => {
|
|
|
42874
42999
|
init_security();
|
|
42875
43000
|
init_url();
|
|
42876
43001
|
init_components();
|
|
42877
|
-
|
|
43002
|
+
init_errors2();
|
|
42878
43003
|
init_createstream();
|
|
42879
43004
|
init_operations();
|
|
42880
43005
|
init_async();
|
|
@@ -42981,14 +43106,14 @@ async function $do15(client, request, options) {
|
|
|
42981
43106
|
return [result, { status: "complete", request: req, response }];
|
|
42982
43107
|
}
|
|
42983
43108
|
var init_streamsDeleteStream = __esm(() => {
|
|
42984
|
-
|
|
43109
|
+
init_esm();
|
|
42985
43110
|
init_encodings();
|
|
42986
43111
|
init_matchers();
|
|
42987
43112
|
init_primitives();
|
|
42988
43113
|
init_schemas();
|
|
42989
43114
|
init_security();
|
|
42990
43115
|
init_url();
|
|
42991
|
-
|
|
43116
|
+
init_errors2();
|
|
42992
43117
|
init_deletestream();
|
|
42993
43118
|
init_operations();
|
|
42994
43119
|
init_async();
|
|
@@ -43101,7 +43226,7 @@ var init_streamsGetStreamConfig = __esm(() => {
|
|
|
43101
43226
|
init_security();
|
|
43102
43227
|
init_url();
|
|
43103
43228
|
init_components();
|
|
43104
|
-
|
|
43229
|
+
init_errors2();
|
|
43105
43230
|
init_getstreamconfig();
|
|
43106
43231
|
init_operations();
|
|
43107
43232
|
init_async();
|
|
@@ -43230,14 +43355,14 @@ async function $do17(client, request, options) {
|
|
|
43230
43355
|
}];
|
|
43231
43356
|
}
|
|
43232
43357
|
var init_streamsListStreams = __esm(() => {
|
|
43233
|
-
|
|
43358
|
+
init_esm3();
|
|
43234
43359
|
init_encodings();
|
|
43235
43360
|
init_matchers();
|
|
43236
43361
|
init_primitives();
|
|
43237
43362
|
init_schemas();
|
|
43238
43363
|
init_security();
|
|
43239
43364
|
init_url();
|
|
43240
|
-
|
|
43365
|
+
init_errors2();
|
|
43241
43366
|
init_operations();
|
|
43242
43367
|
init_liststreams();
|
|
43243
43368
|
init_async();
|
|
@@ -43355,7 +43480,7 @@ var init_streamsReconfigureStream = __esm(() => {
|
|
|
43355
43480
|
init_security();
|
|
43356
43481
|
init_url();
|
|
43357
43482
|
init_components();
|
|
43358
|
-
|
|
43483
|
+
init_errors2();
|
|
43359
43484
|
init_operations();
|
|
43360
43485
|
init_reconfigurestream();
|
|
43361
43486
|
init_async();
|
|
@@ -43393,7 +43518,7 @@ var init_streamsReconfigureStream2 = __esm(() => {
|
|
|
43393
43518
|
function createMCPServer(deps) {
|
|
43394
43519
|
const server = new McpServer({
|
|
43395
43520
|
name: "S2",
|
|
43396
|
-
version: "0.
|
|
43521
|
+
version: "0.14.0"
|
|
43397
43522
|
});
|
|
43398
43523
|
const client = new S2Core({
|
|
43399
43524
|
accessToken: deps.accessToken,
|
|
@@ -44532,7 +44657,7 @@ function buildContext(process2) {
|
|
|
44532
44657
|
}
|
|
44533
44658
|
|
|
44534
44659
|
// src/mcp-server/cli/start/command.ts
|
|
44535
|
-
|
|
44660
|
+
init_esm();
|
|
44536
44661
|
init_console_logger();
|
|
44537
44662
|
|
|
44538
44663
|
// src/mcp-server/scopes.ts
|
|
@@ -44646,7 +44771,7 @@ var routes = rn({
|
|
|
44646
44771
|
var app = Ve(routes, {
|
|
44647
44772
|
name: "mcp",
|
|
44648
44773
|
versionInfo: {
|
|
44649
|
-
currentVersion: "0.
|
|
44774
|
+
currentVersion: "0.14.0"
|
|
44650
44775
|
}
|
|
44651
44776
|
});
|
|
44652
44777
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -44654,5 +44779,5 @@ export {
|
|
|
44654
44779
|
app
|
|
44655
44780
|
};
|
|
44656
44781
|
|
|
44657
|
-
//# debugId=
|
|
44782
|
+
//# debugId=FBE343C91ADA849A64756E2164756E21
|
|
44658
44783
|
//# sourceMappingURL=mcp-server.js.map
|