@greensecurity/javascript-sdk 0.31.3 → 0.31.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/bin/mcp-server.js +1278 -1072
- package/bin/mcp-server.js.map +24 -12
- package/dist/commonjs/__tests__/vendors.test.js +22 -6
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +8 -8
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.js +119 -0
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +2 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsSubmitVendorCredential.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsSubmitVendorCredential.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/commonjs/models/components/expand.d.ts +3 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +1 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +2 -0
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +4 -0
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/submitvendorcredential.d.ts +61 -0
- package/dist/commonjs/models/operations/submitvendorcredential.d.ts.map +1 -0
- package/dist/commonjs/models/operations/submitvendorcredential.js +119 -0
- package/dist/commonjs/models/operations/submitvendorcredential.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsSubmitVendorCredential.d.ts +23 -0
- package/dist/commonjs/react-query/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsSubmitVendorCredential.js +47 -0
- package/dist/commonjs/react-query/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/commonjs/sdk/vendors.d.ts +8 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +11 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +22 -6
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +8 -8
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsSubmitVendorCredential.d.ts +17 -0
- package/dist/esm/funcs/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsSubmitVendorCredential.js +83 -0
- package/dist/esm/funcs/vendorsSubmitVendorCredential.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +2 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsSubmitVendorCredential.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsSubmitVendorCredential.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/esm/models/components/expand.d.ts +3 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +1 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +2 -0
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +4 -0
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/submitvendorcredential.d.ts +61 -0
- package/dist/esm/models/operations/submitvendorcredential.d.ts.map +1 -0
- package/dist/esm/models/operations/submitvendorcredential.js +79 -0
- package/dist/esm/models/operations/submitvendorcredential.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/react-query/vendorsSubmitVendorCredential.d.ts +23 -0
- package/dist/esm/react-query/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsSubmitVendorCredential.js +42 -0
- package/dist/esm/react-query/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/esm/sdk/vendors.d.ts +8 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +11 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/__tests__/vendors.test.ts +25 -6
- package/src/__tests__/zones.test.ts +8 -8
- package/src/funcs/vendorsGetVendorsDetails.ts +1 -0
- package/src/funcs/vendorsSubmitVendorCredential.ts +178 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +2 -1
- package/src/mcp-server/tools/vendorsSubmitVendorCredential.ts +37 -0
- package/src/models/components/expand.ts +1 -0
- package/src/models/components/vendor.ts +6 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/submitvendorcredential.ts +159 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +2 -0
- package/src/react-query/vendorsSubmitVendorCredential.ts +88 -0
- package/src/sdk/vendors.ts +19 -0
package/bin/mcp-server.js
CHANGED
|
@@ -29,13 +29,376 @@ 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
|
+
function assertIs(_arg) {}
|
|
78
|
+
util2.assertIs = assertIs;
|
|
79
|
+
function assertNever(_x) {
|
|
80
|
+
throw new Error;
|
|
81
|
+
}
|
|
82
|
+
util2.assertNever = assertNever;
|
|
83
|
+
util2.arrayToEnum = (items) => {
|
|
84
|
+
const obj = {};
|
|
85
|
+
for (const item of items) {
|
|
86
|
+
obj[item] = item;
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
};
|
|
90
|
+
util2.getValidEnumValues = (obj) => {
|
|
91
|
+
const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
|
|
92
|
+
const filtered = {};
|
|
93
|
+
for (const k2 of validKeys) {
|
|
94
|
+
filtered[k2] = obj[k2];
|
|
95
|
+
}
|
|
96
|
+
return util2.objectValues(filtered);
|
|
97
|
+
};
|
|
98
|
+
util2.objectValues = (obj) => {
|
|
99
|
+
return util2.objectKeys(obj).map(function(e) {
|
|
100
|
+
return obj[e];
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
104
|
+
const keys = [];
|
|
105
|
+
for (const key in object) {
|
|
106
|
+
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
107
|
+
keys.push(key);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return keys;
|
|
111
|
+
};
|
|
112
|
+
util2.find = (arr, checker) => {
|
|
113
|
+
for (const item of arr) {
|
|
114
|
+
if (checker(item))
|
|
115
|
+
return item;
|
|
116
|
+
}
|
|
117
|
+
return;
|
|
118
|
+
};
|
|
119
|
+
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
120
|
+
function joinValues(array, separator = " | ") {
|
|
121
|
+
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
122
|
+
}
|
|
123
|
+
util2.joinValues = joinValues;
|
|
124
|
+
util2.jsonStringifyReplacer = (_2, value) => {
|
|
125
|
+
if (typeof value === "bigint") {
|
|
126
|
+
return value.toString();
|
|
127
|
+
}
|
|
128
|
+
return value;
|
|
129
|
+
};
|
|
130
|
+
})(util || (util = {}));
|
|
131
|
+
(function(objectUtil2) {
|
|
132
|
+
objectUtil2.mergeShapes = (first, second) => {
|
|
133
|
+
return {
|
|
134
|
+
...first,
|
|
135
|
+
...second
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
})(objectUtil || (objectUtil = {}));
|
|
139
|
+
ZodParsedType = util.arrayToEnum([
|
|
140
|
+
"string",
|
|
141
|
+
"nan",
|
|
142
|
+
"number",
|
|
143
|
+
"integer",
|
|
144
|
+
"float",
|
|
145
|
+
"boolean",
|
|
146
|
+
"date",
|
|
147
|
+
"bigint",
|
|
148
|
+
"symbol",
|
|
149
|
+
"function",
|
|
150
|
+
"undefined",
|
|
151
|
+
"null",
|
|
152
|
+
"array",
|
|
153
|
+
"object",
|
|
154
|
+
"unknown",
|
|
155
|
+
"promise",
|
|
156
|
+
"void",
|
|
157
|
+
"never",
|
|
158
|
+
"map",
|
|
159
|
+
"set"
|
|
160
|
+
]);
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// node_modules/zod/dist/esm/v3/ZodError.js
|
|
164
|
+
var ZodIssueCode, quotelessJson = (obj) => {
|
|
165
|
+
const json = JSON.stringify(obj, null, 2);
|
|
166
|
+
return json.replace(/"([^"]+)":/g, "$1:");
|
|
167
|
+
}, ZodError;
|
|
168
|
+
var init_ZodError = __esm(() => {
|
|
169
|
+
init_util();
|
|
170
|
+
ZodIssueCode = util.arrayToEnum([
|
|
171
|
+
"invalid_type",
|
|
172
|
+
"invalid_literal",
|
|
173
|
+
"custom",
|
|
174
|
+
"invalid_union",
|
|
175
|
+
"invalid_union_discriminator",
|
|
176
|
+
"invalid_enum_value",
|
|
177
|
+
"unrecognized_keys",
|
|
178
|
+
"invalid_arguments",
|
|
179
|
+
"invalid_return_type",
|
|
180
|
+
"invalid_date",
|
|
181
|
+
"invalid_string",
|
|
182
|
+
"too_small",
|
|
183
|
+
"too_big",
|
|
184
|
+
"invalid_intersection_types",
|
|
185
|
+
"not_multiple_of",
|
|
186
|
+
"not_finite"
|
|
187
|
+
]);
|
|
188
|
+
ZodError = class ZodError extends Error {
|
|
189
|
+
get errors() {
|
|
190
|
+
return this.issues;
|
|
191
|
+
}
|
|
192
|
+
constructor(issues) {
|
|
193
|
+
super();
|
|
194
|
+
this.issues = [];
|
|
195
|
+
this.addIssue = (sub) => {
|
|
196
|
+
this.issues = [...this.issues, sub];
|
|
197
|
+
};
|
|
198
|
+
this.addIssues = (subs = []) => {
|
|
199
|
+
this.issues = [...this.issues, ...subs];
|
|
200
|
+
};
|
|
201
|
+
const actualProto = new.target.prototype;
|
|
202
|
+
if (Object.setPrototypeOf) {
|
|
203
|
+
Object.setPrototypeOf(this, actualProto);
|
|
204
|
+
} else {
|
|
205
|
+
this.__proto__ = actualProto;
|
|
206
|
+
}
|
|
207
|
+
this.name = "ZodError";
|
|
208
|
+
this.issues = issues;
|
|
209
|
+
}
|
|
210
|
+
format(_mapper) {
|
|
211
|
+
const mapper = _mapper || function(issue) {
|
|
212
|
+
return issue.message;
|
|
213
|
+
};
|
|
214
|
+
const fieldErrors = { _errors: [] };
|
|
215
|
+
const processError = (error) => {
|
|
216
|
+
for (const issue of error.issues) {
|
|
217
|
+
if (issue.code === "invalid_union") {
|
|
218
|
+
issue.unionErrors.map(processError);
|
|
219
|
+
} else if (issue.code === "invalid_return_type") {
|
|
220
|
+
processError(issue.returnTypeError);
|
|
221
|
+
} else if (issue.code === "invalid_arguments") {
|
|
222
|
+
processError(issue.argumentsError);
|
|
223
|
+
} else if (issue.path.length === 0) {
|
|
224
|
+
fieldErrors._errors.push(mapper(issue));
|
|
225
|
+
} else {
|
|
226
|
+
let curr = fieldErrors;
|
|
227
|
+
let i = 0;
|
|
228
|
+
while (i < issue.path.length) {
|
|
229
|
+
const el = issue.path[i];
|
|
230
|
+
const terminal = i === issue.path.length - 1;
|
|
231
|
+
if (!terminal) {
|
|
232
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
233
|
+
} else {
|
|
234
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
235
|
+
curr[el]._errors.push(mapper(issue));
|
|
236
|
+
}
|
|
237
|
+
curr = curr[el];
|
|
238
|
+
i++;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
processError(this);
|
|
244
|
+
return fieldErrors;
|
|
245
|
+
}
|
|
246
|
+
static assert(value) {
|
|
247
|
+
if (!(value instanceof ZodError)) {
|
|
248
|
+
throw new Error(`Not a ZodError: ${value}`);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
toString() {
|
|
252
|
+
return this.message;
|
|
253
|
+
}
|
|
254
|
+
get message() {
|
|
255
|
+
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
256
|
+
}
|
|
257
|
+
get isEmpty() {
|
|
258
|
+
return this.issues.length === 0;
|
|
259
|
+
}
|
|
260
|
+
flatten(mapper = (issue) => issue.message) {
|
|
261
|
+
const fieldErrors = {};
|
|
262
|
+
const formErrors = [];
|
|
263
|
+
for (const sub of this.issues) {
|
|
264
|
+
if (sub.path.length > 0) {
|
|
265
|
+
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
266
|
+
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
267
|
+
} else {
|
|
268
|
+
formErrors.push(mapper(sub));
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return { formErrors, fieldErrors };
|
|
272
|
+
}
|
|
273
|
+
get formErrors() {
|
|
274
|
+
return this.flatten();
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
ZodError.create = (issues) => {
|
|
278
|
+
const error = new ZodError(issues);
|
|
279
|
+
return error;
|
|
280
|
+
};
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
// node_modules/zod/dist/esm/v3/locales/en.js
|
|
284
|
+
var errorMap = (issue, _ctx) => {
|
|
285
|
+
let message;
|
|
286
|
+
switch (issue.code) {
|
|
287
|
+
case ZodIssueCode.invalid_type:
|
|
288
|
+
if (issue.received === ZodParsedType.undefined) {
|
|
289
|
+
message = "Required";
|
|
290
|
+
} else {
|
|
291
|
+
message = `Expected ${issue.expected}, received ${issue.received}`;
|
|
292
|
+
}
|
|
293
|
+
break;
|
|
294
|
+
case ZodIssueCode.invalid_literal:
|
|
295
|
+
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
|
|
296
|
+
break;
|
|
297
|
+
case ZodIssueCode.unrecognized_keys:
|
|
298
|
+
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
|
|
299
|
+
break;
|
|
300
|
+
case ZodIssueCode.invalid_union:
|
|
301
|
+
message = `Invalid input`;
|
|
302
|
+
break;
|
|
303
|
+
case ZodIssueCode.invalid_union_discriminator:
|
|
304
|
+
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
|
|
305
|
+
break;
|
|
306
|
+
case ZodIssueCode.invalid_enum_value:
|
|
307
|
+
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
|
|
308
|
+
break;
|
|
309
|
+
case ZodIssueCode.invalid_arguments:
|
|
310
|
+
message = `Invalid function arguments`;
|
|
311
|
+
break;
|
|
312
|
+
case ZodIssueCode.invalid_return_type:
|
|
313
|
+
message = `Invalid function return type`;
|
|
314
|
+
break;
|
|
315
|
+
case ZodIssueCode.invalid_date:
|
|
316
|
+
message = `Invalid date`;
|
|
317
|
+
break;
|
|
318
|
+
case ZodIssueCode.invalid_string:
|
|
319
|
+
if (typeof issue.validation === "object") {
|
|
320
|
+
if ("includes" in issue.validation) {
|
|
321
|
+
message = `Invalid input: must include "${issue.validation.includes}"`;
|
|
322
|
+
if (typeof issue.validation.position === "number") {
|
|
323
|
+
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
|
324
|
+
}
|
|
325
|
+
} else if ("startsWith" in issue.validation) {
|
|
326
|
+
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
|
327
|
+
} else if ("endsWith" in issue.validation) {
|
|
328
|
+
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
|
|
329
|
+
} else {
|
|
330
|
+
util.assertNever(issue.validation);
|
|
331
|
+
}
|
|
332
|
+
} else if (issue.validation !== "regex") {
|
|
333
|
+
message = `Invalid ${issue.validation}`;
|
|
334
|
+
} else {
|
|
335
|
+
message = "Invalid";
|
|
336
|
+
}
|
|
337
|
+
break;
|
|
338
|
+
case ZodIssueCode.too_small:
|
|
339
|
+
if (issue.type === "array")
|
|
340
|
+
message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
|
|
341
|
+
else if (issue.type === "string")
|
|
342
|
+
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
343
|
+
else if (issue.type === "number")
|
|
344
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
345
|
+
else if (issue.type === "date")
|
|
346
|
+
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
347
|
+
else
|
|
348
|
+
message = "Invalid input";
|
|
349
|
+
break;
|
|
350
|
+
case ZodIssueCode.too_big:
|
|
351
|
+
if (issue.type === "array")
|
|
352
|
+
message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
|
|
353
|
+
else if (issue.type === "string")
|
|
354
|
+
message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
|
|
355
|
+
else if (issue.type === "number")
|
|
356
|
+
message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
357
|
+
else if (issue.type === "bigint")
|
|
358
|
+
message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
359
|
+
else if (issue.type === "date")
|
|
360
|
+
message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
|
|
361
|
+
else
|
|
362
|
+
message = "Invalid input";
|
|
363
|
+
break;
|
|
364
|
+
case ZodIssueCode.custom:
|
|
365
|
+
message = `Invalid input`;
|
|
366
|
+
break;
|
|
367
|
+
case ZodIssueCode.invalid_intersection_types:
|
|
368
|
+
message = `Intersection results could not be merged`;
|
|
369
|
+
break;
|
|
370
|
+
case ZodIssueCode.not_multiple_of:
|
|
371
|
+
message = `Number must be a multiple of ${issue.multipleOf}`;
|
|
372
|
+
break;
|
|
373
|
+
case ZodIssueCode.not_finite:
|
|
374
|
+
message = "Number must be finite";
|
|
375
|
+
break;
|
|
376
|
+
default:
|
|
377
|
+
message = _ctx.defaultError;
|
|
378
|
+
util.assertNever(issue);
|
|
379
|
+
}
|
|
380
|
+
return { message };
|
|
381
|
+
}, en_default;
|
|
382
|
+
var init_en = __esm(() => {
|
|
383
|
+
init_ZodError();
|
|
384
|
+
init_util();
|
|
385
|
+
en_default = errorMap;
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
// node_modules/zod/dist/esm/v3/errors.js
|
|
33
389
|
function setErrorMap(map) {
|
|
34
390
|
overrideErrorMap = map;
|
|
35
391
|
}
|
|
36
392
|
function getErrorMap() {
|
|
37
393
|
return overrideErrorMap;
|
|
38
394
|
}
|
|
395
|
+
var overrideErrorMap;
|
|
396
|
+
var init_errors = __esm(() => {
|
|
397
|
+
init_en();
|
|
398
|
+
overrideErrorMap = en_default;
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
// node_modules/zod/dist/esm/v3/helpers/parseUtil.js
|
|
39
402
|
function addIssueToContext(ctx, issueData) {
|
|
40
403
|
const overrideMap = getErrorMap();
|
|
41
404
|
const issue = makeIssue({
|
|
@@ -46,7 +409,7 @@ function addIssueToContext(ctx, issueData) {
|
|
|
46
409
|
ctx.common.contextualErrorMap,
|
|
47
410
|
ctx.schemaErrorMap,
|
|
48
411
|
overrideMap,
|
|
49
|
-
overrideMap ===
|
|
412
|
+
overrideMap === en_default ? undefined : en_default
|
|
50
413
|
].filter((x2) => !!x2)
|
|
51
414
|
});
|
|
52
415
|
ctx.common.issues.push(issue);
|
|
@@ -106,23 +469,53 @@ class ParseStatus {
|
|
|
106
469
|
return { status: status.value, value: finalObject };
|
|
107
470
|
}
|
|
108
471
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
472
|
+
var makeIssue = (params) => {
|
|
473
|
+
const { data, path, errorMaps, issueData } = params;
|
|
474
|
+
const fullPath = [...path, ...issueData.path || []];
|
|
475
|
+
const fullIssue = {
|
|
476
|
+
...issueData,
|
|
477
|
+
path: fullPath
|
|
478
|
+
};
|
|
479
|
+
if (issueData.message !== undefined) {
|
|
480
|
+
return {
|
|
481
|
+
...issueData,
|
|
482
|
+
path: fullPath,
|
|
483
|
+
message: issueData.message
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
let errorMessage = "";
|
|
487
|
+
const maps = errorMaps.filter((m) => !!m).slice().reverse();
|
|
488
|
+
for (const map of maps) {
|
|
489
|
+
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
490
|
+
}
|
|
491
|
+
return {
|
|
492
|
+
...issueData,
|
|
493
|
+
path: fullPath,
|
|
494
|
+
message: errorMessage
|
|
495
|
+
};
|
|
496
|
+
}, 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;
|
|
497
|
+
var init_parseUtil = __esm(() => {
|
|
498
|
+
init_errors();
|
|
499
|
+
init_en();
|
|
500
|
+
EMPTY_PATH = [];
|
|
501
|
+
INVALID = Object.freeze({
|
|
502
|
+
status: "aborted"
|
|
503
|
+
});
|
|
504
|
+
});
|
|
125
505
|
|
|
506
|
+
// node_modules/zod/dist/esm/v3/helpers/typeAliases.js
|
|
507
|
+
var init_typeAliases = () => {};
|
|
508
|
+
|
|
509
|
+
// node_modules/zod/dist/esm/v3/helpers/errorUtil.js
|
|
510
|
+
var errorUtil;
|
|
511
|
+
var init_errorUtil = __esm(() => {
|
|
512
|
+
(function(errorUtil2) {
|
|
513
|
+
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
514
|
+
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
515
|
+
})(errorUtil || (errorUtil = {}));
|
|
516
|
+
});
|
|
517
|
+
|
|
518
|
+
// node_modules/zod/dist/esm/v3/types.js
|
|
126
519
|
class ParseInputLazyPath {
|
|
127
520
|
constructor(parent, value, path, key) {
|
|
128
521
|
this._cachedPath = [];
|
|
@@ -133,7 +526,7 @@ class ParseInputLazyPath {
|
|
|
133
526
|
}
|
|
134
527
|
get path() {
|
|
135
528
|
if (!this._cachedPath.length) {
|
|
136
|
-
if (this._key
|
|
529
|
+
if (Array.isArray(this._key)) {
|
|
137
530
|
this._cachedPath.push(...this._path, ...this._key);
|
|
138
531
|
} else {
|
|
139
532
|
this._cachedPath.push(...this._path, this._key);
|
|
@@ -152,17 +545,16 @@ function processCreateParams(params) {
|
|
|
152
545
|
if (errorMap2)
|
|
153
546
|
return { errorMap: errorMap2, description };
|
|
154
547
|
const customMap = (iss, ctx) => {
|
|
155
|
-
var _a, _b;
|
|
156
548
|
const { message } = params;
|
|
157
549
|
if (iss.code === "invalid_enum_value") {
|
|
158
|
-
return { message: message
|
|
550
|
+
return { message: message ?? ctx.defaultError };
|
|
159
551
|
}
|
|
160
552
|
if (typeof ctx.data === "undefined") {
|
|
161
|
-
return { message:
|
|
553
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
162
554
|
}
|
|
163
555
|
if (iss.code !== "invalid_type")
|
|
164
556
|
return { message: ctx.defaultError };
|
|
165
|
-
return { message:
|
|
557
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
166
558
|
};
|
|
167
559
|
return { errorMap: customMap, description };
|
|
168
560
|
}
|
|
@@ -215,14 +607,13 @@ class ZodType {
|
|
|
215
607
|
throw result.error;
|
|
216
608
|
}
|
|
217
609
|
safeParse(data, params) {
|
|
218
|
-
var _a;
|
|
219
610
|
const ctx = {
|
|
220
611
|
common: {
|
|
221
612
|
issues: [],
|
|
222
|
-
async:
|
|
223
|
-
contextualErrorMap: params
|
|
613
|
+
async: params?.async ?? false,
|
|
614
|
+
contextualErrorMap: params?.errorMap
|
|
224
615
|
},
|
|
225
|
-
path:
|
|
616
|
+
path: params?.path || [],
|
|
226
617
|
schemaErrorMap: this._def.errorMap,
|
|
227
618
|
parent: null,
|
|
228
619
|
data,
|
|
@@ -232,7 +623,6 @@ class ZodType {
|
|
|
232
623
|
return handleResult(ctx, result);
|
|
233
624
|
}
|
|
234
625
|
"~validate"(data) {
|
|
235
|
-
var _a, _b;
|
|
236
626
|
const ctx = {
|
|
237
627
|
common: {
|
|
238
628
|
issues: [],
|
|
@@ -253,7 +643,7 @@ class ZodType {
|
|
|
253
643
|
issues: ctx.common.issues
|
|
254
644
|
};
|
|
255
645
|
} catch (err) {
|
|
256
|
-
if (
|
|
646
|
+
if (err?.message?.toLowerCase()?.includes("encountered")) {
|
|
257
647
|
this["~standard"].async = true;
|
|
258
648
|
}
|
|
259
649
|
ctx.common = {
|
|
@@ -278,10 +668,10 @@ class ZodType {
|
|
|
278
668
|
const ctx = {
|
|
279
669
|
common: {
|
|
280
670
|
issues: [],
|
|
281
|
-
contextualErrorMap: params
|
|
671
|
+
contextualErrorMap: params?.errorMap,
|
|
282
672
|
async: true
|
|
283
673
|
},
|
|
284
|
-
path:
|
|
674
|
+
path: params?.path || [],
|
|
285
675
|
schemaErrorMap: this._def.errorMap,
|
|
286
676
|
parent: null,
|
|
287
677
|
data,
|
|
@@ -453,13 +843,14 @@ class ZodType {
|
|
|
453
843
|
}
|
|
454
844
|
}
|
|
455
845
|
function timeRegexSource(args) {
|
|
456
|
-
let
|
|
846
|
+
let secondsRegexSource = `[0-5]\\d`;
|
|
457
847
|
if (args.precision) {
|
|
458
|
-
|
|
848
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
|
459
849
|
} else if (args.precision == null) {
|
|
460
|
-
|
|
850
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
|
461
851
|
}
|
|
462
|
-
|
|
852
|
+
const secondsQuantifier = args.precision ? "+" : "?";
|
|
853
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
463
854
|
}
|
|
464
855
|
function timeRegex(args) {
|
|
465
856
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
@@ -491,12 +882,14 @@ function isValidJWT(jwt, alg) {
|
|
|
491
882
|
const decoded = JSON.parse(atob(base64));
|
|
492
883
|
if (typeof decoded !== "object" || decoded === null)
|
|
493
884
|
return false;
|
|
494
|
-
if (
|
|
885
|
+
if ("typ" in decoded && decoded?.typ !== "JWT")
|
|
886
|
+
return false;
|
|
887
|
+
if (!decoded.alg)
|
|
495
888
|
return false;
|
|
496
889
|
if (alg && decoded.alg !== alg)
|
|
497
890
|
return false;
|
|
498
891
|
return true;
|
|
499
|
-
} catch
|
|
892
|
+
} catch {
|
|
500
893
|
return false;
|
|
501
894
|
}
|
|
502
895
|
}
|
|
@@ -513,9 +906,9 @@ function floatSafeRemainder(val, step) {
|
|
|
513
906
|
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
514
907
|
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
515
908
|
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 /
|
|
909
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
910
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
911
|
+
return valInt % stepInt / 10 ** decCount;
|
|
519
912
|
}
|
|
520
913
|
function deepPartialify(schema) {
|
|
521
914
|
if (schema instanceof ZodObject) {
|
|
@@ -596,192 +989,40 @@ function cleanParams(params, data) {
|
|
|
596
989
|
function custom(check, _params = {}, fatal) {
|
|
597
990
|
if (check)
|
|
598
991
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
599
|
-
var _a, _b;
|
|
600
992
|
const r = check(data);
|
|
601
993
|
if (r instanceof Promise) {
|
|
602
994
|
return r.then((r2) => {
|
|
603
|
-
var _a2, _b2;
|
|
604
995
|
if (!r2) {
|
|
605
996
|
const params = cleanParams(_params, data);
|
|
606
|
-
const _fatal =
|
|
997
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
607
998
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
608
999
|
}
|
|
609
1000
|
});
|
|
610
1001
|
}
|
|
611
1002
|
if (!r) {
|
|
612
1003
|
const params = cleanParams(_params, data);
|
|
613
|
-
const _fatal =
|
|
1004
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
614
1005
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
615
1006
|
}
|
|
616
1007
|
return;
|
|
617
1008
|
});
|
|
618
1009
|
return ZodAny.create();
|
|
619
1010
|
}
|
|
620
|
-
var
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
case "symbol":
|
|
636
|
-
return ZodParsedType.symbol;
|
|
637
|
-
case "object":
|
|
638
|
-
if (Array.isArray(data)) {
|
|
639
|
-
return ZodParsedType.array;
|
|
640
|
-
}
|
|
641
|
-
if (data === null) {
|
|
642
|
-
return ZodParsedType.null;
|
|
643
|
-
}
|
|
644
|
-
if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
|
|
645
|
-
return ZodParsedType.promise;
|
|
646
|
-
}
|
|
647
|
-
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
648
|
-
return ZodParsedType.map;
|
|
649
|
-
}
|
|
650
|
-
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
651
|
-
return ZodParsedType.set;
|
|
652
|
-
}
|
|
653
|
-
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
654
|
-
return ZodParsedType.date;
|
|
655
|
-
}
|
|
656
|
-
return ZodParsedType.object;
|
|
657
|
-
default:
|
|
658
|
-
return ZodParsedType.unknown;
|
|
659
|
-
}
|
|
660
|
-
}, ZodIssueCode, quotelessJson = (obj) => {
|
|
661
|
-
const json = JSON.stringify(obj, null, 2);
|
|
662
|
-
return json.replace(/"([^"]+)":/g, "$1:");
|
|
663
|
-
}, ZodError, errorMap = (issue, _ctx) => {
|
|
664
|
-
let message;
|
|
665
|
-
switch (issue.code) {
|
|
666
|
-
case ZodIssueCode.invalid_type:
|
|
667
|
-
if (issue.received === ZodParsedType.undefined) {
|
|
668
|
-
message = "Required";
|
|
669
|
-
} else {
|
|
670
|
-
message = `Expected ${issue.expected}, received ${issue.received}`;
|
|
671
|
-
}
|
|
672
|
-
break;
|
|
673
|
-
case ZodIssueCode.invalid_literal:
|
|
674
|
-
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
|
|
675
|
-
break;
|
|
676
|
-
case ZodIssueCode.unrecognized_keys:
|
|
677
|
-
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
|
|
678
|
-
break;
|
|
679
|
-
case ZodIssueCode.invalid_union:
|
|
680
|
-
message = `Invalid input`;
|
|
681
|
-
break;
|
|
682
|
-
case ZodIssueCode.invalid_union_discriminator:
|
|
683
|
-
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
|
|
684
|
-
break;
|
|
685
|
-
case ZodIssueCode.invalid_enum_value:
|
|
686
|
-
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
|
|
687
|
-
break;
|
|
688
|
-
case ZodIssueCode.invalid_arguments:
|
|
689
|
-
message = `Invalid function arguments`;
|
|
690
|
-
break;
|
|
691
|
-
case ZodIssueCode.invalid_return_type:
|
|
692
|
-
message = `Invalid function return type`;
|
|
693
|
-
break;
|
|
694
|
-
case ZodIssueCode.invalid_date:
|
|
695
|
-
message = `Invalid date`;
|
|
696
|
-
break;
|
|
697
|
-
case ZodIssueCode.invalid_string:
|
|
698
|
-
if (typeof issue.validation === "object") {
|
|
699
|
-
if ("includes" in issue.validation) {
|
|
700
|
-
message = `Invalid input: must include "${issue.validation.includes}"`;
|
|
701
|
-
if (typeof issue.validation.position === "number") {
|
|
702
|
-
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
|
703
|
-
}
|
|
704
|
-
} else if ("startsWith" in issue.validation) {
|
|
705
|
-
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
|
706
|
-
} else if ("endsWith" in issue.validation) {
|
|
707
|
-
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
|
|
708
|
-
} else {
|
|
709
|
-
util.assertNever(issue.validation);
|
|
710
|
-
}
|
|
711
|
-
} else if (issue.validation !== "regex") {
|
|
712
|
-
message = `Invalid ${issue.validation}`;
|
|
713
|
-
} else {
|
|
714
|
-
message = "Invalid";
|
|
715
|
-
}
|
|
716
|
-
break;
|
|
717
|
-
case ZodIssueCode.too_small:
|
|
718
|
-
if (issue.type === "array")
|
|
719
|
-
message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
|
|
720
|
-
else if (issue.type === "string")
|
|
721
|
-
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
722
|
-
else if (issue.type === "number")
|
|
723
|
-
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
724
|
-
else if (issue.type === "date")
|
|
725
|
-
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
726
|
-
else
|
|
727
|
-
message = "Invalid input";
|
|
728
|
-
break;
|
|
729
|
-
case ZodIssueCode.too_big:
|
|
730
|
-
if (issue.type === "array")
|
|
731
|
-
message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
|
|
732
|
-
else if (issue.type === "string")
|
|
733
|
-
message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
|
|
734
|
-
else if (issue.type === "number")
|
|
735
|
-
message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
736
|
-
else if (issue.type === "bigint")
|
|
737
|
-
message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
|
|
738
|
-
else if (issue.type === "date")
|
|
739
|
-
message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
|
|
740
|
-
else
|
|
741
|
-
message = "Invalid input";
|
|
742
|
-
break;
|
|
743
|
-
case ZodIssueCode.custom:
|
|
744
|
-
message = `Invalid input`;
|
|
745
|
-
break;
|
|
746
|
-
case ZodIssueCode.invalid_intersection_types:
|
|
747
|
-
message = `Intersection results could not be merged`;
|
|
748
|
-
break;
|
|
749
|
-
case ZodIssueCode.not_multiple_of:
|
|
750
|
-
message = `Number must be a multiple of ${issue.multipleOf}`;
|
|
751
|
-
break;
|
|
752
|
-
case ZodIssueCode.not_finite:
|
|
753
|
-
message = "Number must be finite";
|
|
754
|
-
break;
|
|
755
|
-
default:
|
|
756
|
-
message = _ctx.defaultError;
|
|
757
|
-
util.assertNever(issue);
|
|
758
|
-
}
|
|
759
|
-
return { message };
|
|
760
|
-
}, overrideErrorMap, makeIssue = (params) => {
|
|
761
|
-
const { data, path, errorMaps, issueData } = params;
|
|
762
|
-
const fullPath = [...path, ...issueData.path || []];
|
|
763
|
-
const fullIssue = {
|
|
764
|
-
...issueData,
|
|
765
|
-
path: fullPath
|
|
766
|
-
};
|
|
767
|
-
if (issueData.message !== undefined) {
|
|
768
|
-
return {
|
|
769
|
-
...issueData,
|
|
770
|
-
path: fullPath,
|
|
771
|
-
message: issueData.message
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
let errorMessage = "";
|
|
775
|
-
const maps = errorMaps.filter((m) => !!m).slice().reverse();
|
|
776
|
-
for (const map of maps) {
|
|
777
|
-
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
778
|
-
}
|
|
779
|
-
return {
|
|
780
|
-
...issueData,
|
|
781
|
-
path: fullPath,
|
|
782
|
-
message: errorMessage
|
|
783
|
-
};
|
|
784
|
-
}, EMPTY_PATH, INVALID, DIRTY = (value) => ({ status: "dirty", value }), OK = (value) => ({ status: "valid", value }), isAborted = (x2) => x2.status === "aborted", isDirty = (x2) => x2.status === "dirty", isValid = (x2) => x2.status === "valid", isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise, errorUtil, _ZodEnum_cache, _ZodNativeEnum_cache, handleResult = (ctx, result) => {
|
|
1011
|
+
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
1012
|
+
if (kind === "a" && !f)
|
|
1013
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
1014
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1015
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1016
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1017
|
+
}, __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
1018
|
+
if (kind === "m")
|
|
1019
|
+
throw new TypeError("Private method is not writable");
|
|
1020
|
+
if (kind === "a" && !f)
|
|
1021
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
1022
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1023
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1024
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
1025
|
+
}, _ZodEnum_cache, _ZodNativeEnum_cache, handleResult = (ctx, result) => {
|
|
785
1026
|
if (isValid(result)) {
|
|
786
1027
|
return { success: true, data: result.value };
|
|
787
1028
|
} else {
|
|
@@ -831,214 +1072,13 @@ var util, objectUtil, ZodParsedType, getParsedType = (data) => {
|
|
|
831
1072
|
}
|
|
832
1073
|
}, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, BRAND, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, instanceOfType = (cls, params = {
|
|
833
1074
|
message: `Input not instance of ${cls.name}`
|
|
834
|
-
}) => custom((data) => data instanceof cls, params), stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, ostring = () => stringType().optional(), onumber = () => numberType().optional(), oboolean = () => booleanType().optional(), coerce, NEVER
|
|
835
|
-
var
|
|
836
|
-
(
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
throw new Error;
|
|
842
|
-
}
|
|
843
|
-
util2.assertNever = assertNever;
|
|
844
|
-
util2.arrayToEnum = (items) => {
|
|
845
|
-
const obj = {};
|
|
846
|
-
for (const item of items) {
|
|
847
|
-
obj[item] = item;
|
|
848
|
-
}
|
|
849
|
-
return obj;
|
|
850
|
-
};
|
|
851
|
-
util2.getValidEnumValues = (obj) => {
|
|
852
|
-
const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
|
|
853
|
-
const filtered = {};
|
|
854
|
-
for (const k2 of validKeys) {
|
|
855
|
-
filtered[k2] = obj[k2];
|
|
856
|
-
}
|
|
857
|
-
return util2.objectValues(filtered);
|
|
858
|
-
};
|
|
859
|
-
util2.objectValues = (obj) => {
|
|
860
|
-
return util2.objectKeys(obj).map(function(e) {
|
|
861
|
-
return obj[e];
|
|
862
|
-
});
|
|
863
|
-
};
|
|
864
|
-
util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
|
|
865
|
-
const keys = [];
|
|
866
|
-
for (const key in object) {
|
|
867
|
-
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
868
|
-
keys.push(key);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
return keys;
|
|
872
|
-
};
|
|
873
|
-
util2.find = (arr, checker) => {
|
|
874
|
-
for (const item of arr) {
|
|
875
|
-
if (checker(item))
|
|
876
|
-
return item;
|
|
877
|
-
}
|
|
878
|
-
return;
|
|
879
|
-
};
|
|
880
|
-
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
|
881
|
-
function joinValues(array, separator = " | ") {
|
|
882
|
-
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
883
|
-
}
|
|
884
|
-
util2.joinValues = joinValues;
|
|
885
|
-
util2.jsonStringifyReplacer = (_2, value) => {
|
|
886
|
-
if (typeof value === "bigint") {
|
|
887
|
-
return value.toString();
|
|
888
|
-
}
|
|
889
|
-
return value;
|
|
890
|
-
};
|
|
891
|
-
})(util || (util = {}));
|
|
892
|
-
(function(objectUtil2) {
|
|
893
|
-
objectUtil2.mergeShapes = (first, second) => {
|
|
894
|
-
return {
|
|
895
|
-
...first,
|
|
896
|
-
...second
|
|
897
|
-
};
|
|
898
|
-
};
|
|
899
|
-
})(objectUtil || (objectUtil = {}));
|
|
900
|
-
ZodParsedType = util.arrayToEnum([
|
|
901
|
-
"string",
|
|
902
|
-
"nan",
|
|
903
|
-
"number",
|
|
904
|
-
"integer",
|
|
905
|
-
"float",
|
|
906
|
-
"boolean",
|
|
907
|
-
"date",
|
|
908
|
-
"bigint",
|
|
909
|
-
"symbol",
|
|
910
|
-
"function",
|
|
911
|
-
"undefined",
|
|
912
|
-
"null",
|
|
913
|
-
"array",
|
|
914
|
-
"object",
|
|
915
|
-
"unknown",
|
|
916
|
-
"promise",
|
|
917
|
-
"void",
|
|
918
|
-
"never",
|
|
919
|
-
"map",
|
|
920
|
-
"set"
|
|
921
|
-
]);
|
|
922
|
-
ZodIssueCode = util.arrayToEnum([
|
|
923
|
-
"invalid_type",
|
|
924
|
-
"invalid_literal",
|
|
925
|
-
"custom",
|
|
926
|
-
"invalid_union",
|
|
927
|
-
"invalid_union_discriminator",
|
|
928
|
-
"invalid_enum_value",
|
|
929
|
-
"unrecognized_keys",
|
|
930
|
-
"invalid_arguments",
|
|
931
|
-
"invalid_return_type",
|
|
932
|
-
"invalid_date",
|
|
933
|
-
"invalid_string",
|
|
934
|
-
"too_small",
|
|
935
|
-
"too_big",
|
|
936
|
-
"invalid_intersection_types",
|
|
937
|
-
"not_multiple_of",
|
|
938
|
-
"not_finite"
|
|
939
|
-
]);
|
|
940
|
-
ZodError = class ZodError extends Error {
|
|
941
|
-
get errors() {
|
|
942
|
-
return this.issues;
|
|
943
|
-
}
|
|
944
|
-
constructor(issues) {
|
|
945
|
-
super();
|
|
946
|
-
this.issues = [];
|
|
947
|
-
this.addIssue = (sub) => {
|
|
948
|
-
this.issues = [...this.issues, sub];
|
|
949
|
-
};
|
|
950
|
-
this.addIssues = (subs = []) => {
|
|
951
|
-
this.issues = [...this.issues, ...subs];
|
|
952
|
-
};
|
|
953
|
-
const actualProto = new.target.prototype;
|
|
954
|
-
if (Object.setPrototypeOf) {
|
|
955
|
-
Object.setPrototypeOf(this, actualProto);
|
|
956
|
-
} else {
|
|
957
|
-
this.__proto__ = actualProto;
|
|
958
|
-
}
|
|
959
|
-
this.name = "ZodError";
|
|
960
|
-
this.issues = issues;
|
|
961
|
-
}
|
|
962
|
-
format(_mapper) {
|
|
963
|
-
const mapper = _mapper || function(issue) {
|
|
964
|
-
return issue.message;
|
|
965
|
-
};
|
|
966
|
-
const fieldErrors = { _errors: [] };
|
|
967
|
-
const processError = (error) => {
|
|
968
|
-
for (const issue of error.issues) {
|
|
969
|
-
if (issue.code === "invalid_union") {
|
|
970
|
-
issue.unionErrors.map(processError);
|
|
971
|
-
} else if (issue.code === "invalid_return_type") {
|
|
972
|
-
processError(issue.returnTypeError);
|
|
973
|
-
} else if (issue.code === "invalid_arguments") {
|
|
974
|
-
processError(issue.argumentsError);
|
|
975
|
-
} else if (issue.path.length === 0) {
|
|
976
|
-
fieldErrors._errors.push(mapper(issue));
|
|
977
|
-
} else {
|
|
978
|
-
let curr = fieldErrors;
|
|
979
|
-
let i = 0;
|
|
980
|
-
while (i < issue.path.length) {
|
|
981
|
-
const el = issue.path[i];
|
|
982
|
-
const terminal = i === issue.path.length - 1;
|
|
983
|
-
if (!terminal) {
|
|
984
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
985
|
-
} else {
|
|
986
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
987
|
-
curr[el]._errors.push(mapper(issue));
|
|
988
|
-
}
|
|
989
|
-
curr = curr[el];
|
|
990
|
-
i++;
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
};
|
|
995
|
-
processError(this);
|
|
996
|
-
return fieldErrors;
|
|
997
|
-
}
|
|
998
|
-
static assert(value) {
|
|
999
|
-
if (!(value instanceof ZodError)) {
|
|
1000
|
-
throw new Error(`Not a ZodError: ${value}`);
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
toString() {
|
|
1004
|
-
return this.message;
|
|
1005
|
-
}
|
|
1006
|
-
get message() {
|
|
1007
|
-
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
1008
|
-
}
|
|
1009
|
-
get isEmpty() {
|
|
1010
|
-
return this.issues.length === 0;
|
|
1011
|
-
}
|
|
1012
|
-
flatten(mapper = (issue) => issue.message) {
|
|
1013
|
-
const fieldErrors = {};
|
|
1014
|
-
const formErrors = [];
|
|
1015
|
-
for (const sub of this.issues) {
|
|
1016
|
-
if (sub.path.length > 0) {
|
|
1017
|
-
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1018
|
-
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
1019
|
-
} else {
|
|
1020
|
-
formErrors.push(mapper(sub));
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
return { formErrors, fieldErrors };
|
|
1024
|
-
}
|
|
1025
|
-
get formErrors() {
|
|
1026
|
-
return this.flatten();
|
|
1027
|
-
}
|
|
1028
|
-
};
|
|
1029
|
-
ZodError.create = (issues) => {
|
|
1030
|
-
const error = new ZodError(issues);
|
|
1031
|
-
return error;
|
|
1032
|
-
};
|
|
1033
|
-
overrideErrorMap = errorMap;
|
|
1034
|
-
EMPTY_PATH = [];
|
|
1035
|
-
INVALID = Object.freeze({
|
|
1036
|
-
status: "aborted"
|
|
1037
|
-
});
|
|
1038
|
-
(function(errorUtil2) {
|
|
1039
|
-
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
1040
|
-
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === undefined ? undefined : message.message;
|
|
1041
|
-
})(errorUtil || (errorUtil = {}));
|
|
1075
|
+
}) => 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;
|
|
1076
|
+
var init_types = __esm(() => {
|
|
1077
|
+
init_ZodError();
|
|
1078
|
+
init_errors();
|
|
1079
|
+
init_errorUtil();
|
|
1080
|
+
init_parseUtil();
|
|
1081
|
+
init_util();
|
|
1042
1082
|
cuidRegex = /^c[^\s-]{8,}$/i;
|
|
1043
1083
|
cuid2Regex = /^[0-9a-z]+$/;
|
|
1044
1084
|
ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
@@ -1200,7 +1240,7 @@ var init_lib = __esm(() => {
|
|
|
1200
1240
|
} else if (check.kind === "url") {
|
|
1201
1241
|
try {
|
|
1202
1242
|
new URL(input.data);
|
|
1203
|
-
} catch
|
|
1243
|
+
} catch {
|
|
1204
1244
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1205
1245
|
addIssueToContext(ctx, {
|
|
1206
1246
|
validation: "url",
|
|
@@ -1412,7 +1452,6 @@ var init_lib = __esm(() => {
|
|
|
1412
1452
|
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
1413
1453
|
}
|
|
1414
1454
|
datetime(options) {
|
|
1415
|
-
var _a, _b;
|
|
1416
1455
|
if (typeof options === "string") {
|
|
1417
1456
|
return this._addCheck({
|
|
1418
1457
|
kind: "datetime",
|
|
@@ -1424,10 +1463,10 @@ var init_lib = __esm(() => {
|
|
|
1424
1463
|
}
|
|
1425
1464
|
return this._addCheck({
|
|
1426
1465
|
kind: "datetime",
|
|
1427
|
-
precision: typeof
|
|
1428
|
-
offset:
|
|
1429
|
-
local:
|
|
1430
|
-
...errorUtil.errToObj(options
|
|
1466
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
1467
|
+
offset: options?.offset ?? false,
|
|
1468
|
+
local: options?.local ?? false,
|
|
1469
|
+
...errorUtil.errToObj(options?.message)
|
|
1431
1470
|
});
|
|
1432
1471
|
}
|
|
1433
1472
|
date(message) {
|
|
@@ -1443,8 +1482,8 @@ var init_lib = __esm(() => {
|
|
|
1443
1482
|
}
|
|
1444
1483
|
return this._addCheck({
|
|
1445
1484
|
kind: "time",
|
|
1446
|
-
precision: typeof
|
|
1447
|
-
...errorUtil.errToObj(options
|
|
1485
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
1486
|
+
...errorUtil.errToObj(options?.message)
|
|
1448
1487
|
});
|
|
1449
1488
|
}
|
|
1450
1489
|
duration(message) {
|
|
@@ -1461,8 +1500,8 @@ var init_lib = __esm(() => {
|
|
|
1461
1500
|
return this._addCheck({
|
|
1462
1501
|
kind: "includes",
|
|
1463
1502
|
value,
|
|
1464
|
-
position: options
|
|
1465
|
-
...errorUtil.errToObj(options
|
|
1503
|
+
position: options?.position,
|
|
1504
|
+
...errorUtil.errToObj(options?.message)
|
|
1466
1505
|
});
|
|
1467
1506
|
}
|
|
1468
1507
|
startsWith(value, message) {
|
|
@@ -1591,11 +1630,10 @@ var init_lib = __esm(() => {
|
|
|
1591
1630
|
}
|
|
1592
1631
|
};
|
|
1593
1632
|
ZodString.create = (params) => {
|
|
1594
|
-
var _a;
|
|
1595
1633
|
return new ZodString({
|
|
1596
1634
|
checks: [],
|
|
1597
1635
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
1598
|
-
coerce:
|
|
1636
|
+
coerce: params?.coerce ?? false,
|
|
1599
1637
|
...processCreateParams(params)
|
|
1600
1638
|
});
|
|
1601
1639
|
};
|
|
@@ -1807,7 +1845,8 @@ var init_lib = __esm(() => {
|
|
|
1807
1845
|
return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
|
|
1808
1846
|
}
|
|
1809
1847
|
get isFinite() {
|
|
1810
|
-
let max = null
|
|
1848
|
+
let max = null;
|
|
1849
|
+
let min = null;
|
|
1811
1850
|
for (const ch of this._def.checks) {
|
|
1812
1851
|
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
1813
1852
|
return true;
|
|
@@ -1826,7 +1865,7 @@ var init_lib = __esm(() => {
|
|
|
1826
1865
|
return new ZodNumber({
|
|
1827
1866
|
checks: [],
|
|
1828
1867
|
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
1829
|
-
coerce:
|
|
1868
|
+
coerce: params?.coerce || false,
|
|
1830
1869
|
...processCreateParams(params)
|
|
1831
1870
|
});
|
|
1832
1871
|
};
|
|
@@ -1840,7 +1879,7 @@ var init_lib = __esm(() => {
|
|
|
1840
1879
|
if (this._def.coerce) {
|
|
1841
1880
|
try {
|
|
1842
1881
|
input.data = BigInt(input.data);
|
|
1843
|
-
} catch
|
|
1882
|
+
} catch {
|
|
1844
1883
|
return this._getInvalidInput(input);
|
|
1845
1884
|
}
|
|
1846
1885
|
}
|
|
@@ -1995,11 +2034,10 @@ var init_lib = __esm(() => {
|
|
|
1995
2034
|
}
|
|
1996
2035
|
};
|
|
1997
2036
|
ZodBigInt.create = (params) => {
|
|
1998
|
-
var _a;
|
|
1999
2037
|
return new ZodBigInt({
|
|
2000
2038
|
checks: [],
|
|
2001
2039
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
2002
|
-
coerce:
|
|
2040
|
+
coerce: params?.coerce ?? false,
|
|
2003
2041
|
...processCreateParams(params)
|
|
2004
2042
|
});
|
|
2005
2043
|
};
|
|
@@ -2024,7 +2062,7 @@ var init_lib = __esm(() => {
|
|
|
2024
2062
|
ZodBoolean.create = (params) => {
|
|
2025
2063
|
return new ZodBoolean({
|
|
2026
2064
|
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
2027
|
-
coerce:
|
|
2065
|
+
coerce: params?.coerce || false,
|
|
2028
2066
|
...processCreateParams(params)
|
|
2029
2067
|
});
|
|
2030
2068
|
};
|
|
@@ -2043,7 +2081,7 @@ var init_lib = __esm(() => {
|
|
|
2043
2081
|
});
|
|
2044
2082
|
return INVALID;
|
|
2045
2083
|
}
|
|
2046
|
-
if (isNaN(input.data.getTime())) {
|
|
2084
|
+
if (Number.isNaN(input.data.getTime())) {
|
|
2047
2085
|
const ctx2 = this._getOrReturnCtx(input);
|
|
2048
2086
|
addIssueToContext(ctx2, {
|
|
2049
2087
|
code: ZodIssueCode.invalid_date
|
|
@@ -2132,7 +2170,7 @@ var init_lib = __esm(() => {
|
|
|
2132
2170
|
ZodDate.create = (params) => {
|
|
2133
2171
|
return new ZodDate({
|
|
2134
2172
|
checks: [],
|
|
2135
|
-
coerce:
|
|
2173
|
+
coerce: params?.coerce || false,
|
|
2136
2174
|
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
2137
2175
|
...processCreateParams(params)
|
|
2138
2176
|
});
|
|
@@ -2381,7 +2419,8 @@ var init_lib = __esm(() => {
|
|
|
2381
2419
|
return this._cached;
|
|
2382
2420
|
const shape = this._def.shape();
|
|
2383
2421
|
const keys = util.objectKeys(shape);
|
|
2384
|
-
|
|
2422
|
+
this._cached = { shape, keys };
|
|
2423
|
+
return this._cached;
|
|
2385
2424
|
}
|
|
2386
2425
|
_parse(input) {
|
|
2387
2426
|
const parsedType = this._getType(input);
|
|
@@ -2431,9 +2470,7 @@ var init_lib = __esm(() => {
|
|
|
2431
2470
|
});
|
|
2432
2471
|
status.dirty();
|
|
2433
2472
|
}
|
|
2434
|
-
} else if (unknownKeys === "strip")
|
|
2435
|
-
;
|
|
2436
|
-
else {
|
|
2473
|
+
} else if (unknownKeys === "strip") {} else {
|
|
2437
2474
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2438
2475
|
}
|
|
2439
2476
|
} else {
|
|
@@ -2477,11 +2514,10 @@ var init_lib = __esm(() => {
|
|
|
2477
2514
|
unknownKeys: "strict",
|
|
2478
2515
|
...message !== undefined ? {
|
|
2479
2516
|
errorMap: (issue, ctx) => {
|
|
2480
|
-
|
|
2481
|
-
const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === undefined ? undefined : _b.call(_a, issue, ctx).message) !== null && _c !== undefined ? _c : ctx.defaultError;
|
|
2517
|
+
const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
|
|
2482
2518
|
if (issue.code === "unrecognized_keys")
|
|
2483
2519
|
return {
|
|
2484
|
-
message:
|
|
2520
|
+
message: errorUtil.errToObj(message).message ?? defaultError
|
|
2485
2521
|
};
|
|
2486
2522
|
return {
|
|
2487
2523
|
message: defaultError
|
|
@@ -2534,11 +2570,11 @@ var init_lib = __esm(() => {
|
|
|
2534
2570
|
}
|
|
2535
2571
|
pick(mask) {
|
|
2536
2572
|
const shape = {};
|
|
2537
|
-
util.objectKeys(mask)
|
|
2573
|
+
for (const key of util.objectKeys(mask)) {
|
|
2538
2574
|
if (mask[key] && this.shape[key]) {
|
|
2539
2575
|
shape[key] = this.shape[key];
|
|
2540
2576
|
}
|
|
2541
|
-
}
|
|
2577
|
+
}
|
|
2542
2578
|
return new ZodObject({
|
|
2543
2579
|
...this._def,
|
|
2544
2580
|
shape: () => shape
|
|
@@ -2546,11 +2582,11 @@ var init_lib = __esm(() => {
|
|
|
2546
2582
|
}
|
|
2547
2583
|
omit(mask) {
|
|
2548
2584
|
const shape = {};
|
|
2549
|
-
util.objectKeys(this.shape)
|
|
2585
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2550
2586
|
if (!mask[key]) {
|
|
2551
2587
|
shape[key] = this.shape[key];
|
|
2552
2588
|
}
|
|
2553
|
-
}
|
|
2589
|
+
}
|
|
2554
2590
|
return new ZodObject({
|
|
2555
2591
|
...this._def,
|
|
2556
2592
|
shape: () => shape
|
|
@@ -2561,14 +2597,14 @@ var init_lib = __esm(() => {
|
|
|
2561
2597
|
}
|
|
2562
2598
|
partial(mask) {
|
|
2563
2599
|
const newShape = {};
|
|
2564
|
-
util.objectKeys(this.shape)
|
|
2600
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2565
2601
|
const fieldSchema = this.shape[key];
|
|
2566
2602
|
if (mask && !mask[key]) {
|
|
2567
2603
|
newShape[key] = fieldSchema;
|
|
2568
2604
|
} else {
|
|
2569
2605
|
newShape[key] = fieldSchema.optional();
|
|
2570
2606
|
}
|
|
2571
|
-
}
|
|
2607
|
+
}
|
|
2572
2608
|
return new ZodObject({
|
|
2573
2609
|
...this._def,
|
|
2574
2610
|
shape: () => newShape
|
|
@@ -2576,7 +2612,7 @@ var init_lib = __esm(() => {
|
|
|
2576
2612
|
}
|
|
2577
2613
|
required(mask) {
|
|
2578
2614
|
const newShape = {};
|
|
2579
|
-
util.objectKeys(this.shape)
|
|
2615
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2580
2616
|
if (mask && !mask[key]) {
|
|
2581
2617
|
newShape[key] = this.shape[key];
|
|
2582
2618
|
} else {
|
|
@@ -2587,7 +2623,7 @@ var init_lib = __esm(() => {
|
|
|
2587
2623
|
}
|
|
2588
2624
|
newShape[key] = newField;
|
|
2589
2625
|
}
|
|
2590
|
-
}
|
|
2626
|
+
}
|
|
2591
2627
|
return new ZodObject({
|
|
2592
2628
|
...this._def,
|
|
2593
2629
|
shape: () => newShape
|
|
@@ -3126,12 +3162,7 @@ var init_lib = __esm(() => {
|
|
|
3126
3162
|
return makeIssue({
|
|
3127
3163
|
data: args,
|
|
3128
3164
|
path: ctx.path,
|
|
3129
|
-
errorMaps: [
|
|
3130
|
-
ctx.common.contextualErrorMap,
|
|
3131
|
-
ctx.schemaErrorMap,
|
|
3132
|
-
getErrorMap(),
|
|
3133
|
-
errorMap
|
|
3134
|
-
].filter((x2) => !!x2),
|
|
3165
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x2) => !!x2),
|
|
3135
3166
|
issueData: {
|
|
3136
3167
|
code: ZodIssueCode.invalid_arguments,
|
|
3137
3168
|
argumentsError: error
|
|
@@ -3142,12 +3173,7 @@ var init_lib = __esm(() => {
|
|
|
3142
3173
|
return makeIssue({
|
|
3143
3174
|
data: returns,
|
|
3144
3175
|
path: ctx.path,
|
|
3145
|
-
errorMaps: [
|
|
3146
|
-
ctx.common.contextualErrorMap,
|
|
3147
|
-
ctx.schemaErrorMap,
|
|
3148
|
-
getErrorMap(),
|
|
3149
|
-
errorMap
|
|
3150
|
-
].filter((x2) => !!x2),
|
|
3176
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x2) => !!x2),
|
|
3151
3177
|
issueData: {
|
|
3152
3178
|
code: ZodIssueCode.invalid_return_type,
|
|
3153
3179
|
returnTypeError: error
|
|
@@ -3519,7 +3545,10 @@ var init_lib = __esm(() => {
|
|
|
3519
3545
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3520
3546
|
if (!isValid(base))
|
|
3521
3547
|
return base;
|
|
3522
|
-
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3548
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3549
|
+
status: status.value,
|
|
3550
|
+
value: result
|
|
3551
|
+
}));
|
|
3523
3552
|
});
|
|
3524
3553
|
}
|
|
3525
3554
|
}
|
|
@@ -3857,122 +3886,137 @@ var init_lib = __esm(() => {
|
|
|
3857
3886
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
3858
3887
|
};
|
|
3859
3888
|
NEVER = INVALID;
|
|
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
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3889
|
+
});
|
|
3890
|
+
|
|
3891
|
+
// node_modules/zod/dist/esm/v3/external.js
|
|
3892
|
+
var exports_external = {};
|
|
3893
|
+
__export(exports_external, {
|
|
3894
|
+
void: () => voidType,
|
|
3895
|
+
util: () => util,
|
|
3896
|
+
unknown: () => unknownType,
|
|
3897
|
+
union: () => unionType,
|
|
3898
|
+
undefined: () => undefinedType,
|
|
3899
|
+
tuple: () => tupleType,
|
|
3900
|
+
transformer: () => effectsType,
|
|
3901
|
+
symbol: () => symbolType,
|
|
3902
|
+
string: () => stringType,
|
|
3903
|
+
strictObject: () => strictObjectType,
|
|
3904
|
+
setErrorMap: () => setErrorMap,
|
|
3905
|
+
set: () => setType,
|
|
3906
|
+
record: () => recordType,
|
|
3907
|
+
quotelessJson: () => quotelessJson,
|
|
3908
|
+
promise: () => promiseType,
|
|
3909
|
+
preprocess: () => preprocessType,
|
|
3910
|
+
pipeline: () => pipelineType,
|
|
3911
|
+
ostring: () => ostring,
|
|
3912
|
+
optional: () => optionalType,
|
|
3913
|
+
onumber: () => onumber,
|
|
3914
|
+
oboolean: () => oboolean,
|
|
3915
|
+
objectUtil: () => objectUtil,
|
|
3916
|
+
object: () => objectType,
|
|
3917
|
+
number: () => numberType,
|
|
3918
|
+
nullable: () => nullableType,
|
|
3919
|
+
null: () => nullType,
|
|
3920
|
+
never: () => neverType,
|
|
3921
|
+
nativeEnum: () => nativeEnumType,
|
|
3922
|
+
nan: () => nanType,
|
|
3923
|
+
map: () => mapType,
|
|
3924
|
+
makeIssue: () => makeIssue,
|
|
3925
|
+
literal: () => literalType,
|
|
3926
|
+
lazy: () => lazyType,
|
|
3927
|
+
late: () => late,
|
|
3928
|
+
isValid: () => isValid,
|
|
3929
|
+
isDirty: () => isDirty,
|
|
3930
|
+
isAsync: () => isAsync,
|
|
3931
|
+
isAborted: () => isAborted,
|
|
3932
|
+
intersection: () => intersectionType,
|
|
3933
|
+
instanceof: () => instanceOfType,
|
|
3934
|
+
getParsedType: () => getParsedType,
|
|
3935
|
+
getErrorMap: () => getErrorMap,
|
|
3936
|
+
function: () => functionType,
|
|
3937
|
+
enum: () => enumType,
|
|
3938
|
+
effect: () => effectsType,
|
|
3939
|
+
discriminatedUnion: () => discriminatedUnionType,
|
|
3940
|
+
defaultErrorMap: () => en_default,
|
|
3941
|
+
datetimeRegex: () => datetimeRegex,
|
|
3942
|
+
date: () => dateType,
|
|
3943
|
+
custom: () => custom,
|
|
3944
|
+
coerce: () => coerce,
|
|
3945
|
+
boolean: () => booleanType,
|
|
3946
|
+
bigint: () => bigIntType,
|
|
3947
|
+
array: () => arrayType,
|
|
3948
|
+
any: () => anyType,
|
|
3949
|
+
addIssueToContext: () => addIssueToContext,
|
|
3950
|
+
ZodVoid: () => ZodVoid,
|
|
3951
|
+
ZodUnknown: () => ZodUnknown,
|
|
3952
|
+
ZodUnion: () => ZodUnion,
|
|
3953
|
+
ZodUndefined: () => ZodUndefined,
|
|
3954
|
+
ZodType: () => ZodType,
|
|
3955
|
+
ZodTuple: () => ZodTuple,
|
|
3956
|
+
ZodTransformer: () => ZodEffects,
|
|
3957
|
+
ZodSymbol: () => ZodSymbol,
|
|
3958
|
+
ZodString: () => ZodString,
|
|
3959
|
+
ZodSet: () => ZodSet,
|
|
3960
|
+
ZodSchema: () => ZodType,
|
|
3961
|
+
ZodRecord: () => ZodRecord,
|
|
3962
|
+
ZodReadonly: () => ZodReadonly,
|
|
3963
|
+
ZodPromise: () => ZodPromise,
|
|
3964
|
+
ZodPipeline: () => ZodPipeline,
|
|
3965
|
+
ZodParsedType: () => ZodParsedType,
|
|
3966
|
+
ZodOptional: () => ZodOptional,
|
|
3967
|
+
ZodObject: () => ZodObject,
|
|
3968
|
+
ZodNumber: () => ZodNumber,
|
|
3969
|
+
ZodNullable: () => ZodNullable,
|
|
3970
|
+
ZodNull: () => ZodNull,
|
|
3971
|
+
ZodNever: () => ZodNever,
|
|
3972
|
+
ZodNativeEnum: () => ZodNativeEnum,
|
|
3973
|
+
ZodNaN: () => ZodNaN,
|
|
3974
|
+
ZodMap: () => ZodMap,
|
|
3975
|
+
ZodLiteral: () => ZodLiteral,
|
|
3976
|
+
ZodLazy: () => ZodLazy,
|
|
3977
|
+
ZodIssueCode: () => ZodIssueCode,
|
|
3978
|
+
ZodIntersection: () => ZodIntersection,
|
|
3979
|
+
ZodFunction: () => ZodFunction,
|
|
3980
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
3981
|
+
ZodError: () => ZodError,
|
|
3982
|
+
ZodEnum: () => ZodEnum,
|
|
3983
|
+
ZodEffects: () => ZodEffects,
|
|
3984
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
3985
|
+
ZodDefault: () => ZodDefault,
|
|
3986
|
+
ZodDate: () => ZodDate,
|
|
3987
|
+
ZodCatch: () => ZodCatch,
|
|
3988
|
+
ZodBranded: () => ZodBranded,
|
|
3989
|
+
ZodBoolean: () => ZodBoolean,
|
|
3990
|
+
ZodBigInt: () => ZodBigInt,
|
|
3991
|
+
ZodArray: () => ZodArray,
|
|
3992
|
+
ZodAny: () => ZodAny,
|
|
3993
|
+
Schema: () => ZodType,
|
|
3994
|
+
ParseStatus: () => ParseStatus,
|
|
3995
|
+
OK: () => OK,
|
|
3996
|
+
NEVER: () => NEVER,
|
|
3997
|
+
INVALID: () => INVALID,
|
|
3998
|
+
EMPTY_PATH: () => EMPTY_PATH,
|
|
3999
|
+
DIRTY: () => DIRTY,
|
|
4000
|
+
BRAND: () => BRAND
|
|
4001
|
+
});
|
|
4002
|
+
var init_external = __esm(() => {
|
|
4003
|
+
init_errors();
|
|
4004
|
+
init_parseUtil();
|
|
4005
|
+
init_typeAliases();
|
|
4006
|
+
init_util();
|
|
4007
|
+
init_types();
|
|
4008
|
+
init_ZodError();
|
|
4009
|
+
});
|
|
4010
|
+
|
|
4011
|
+
// node_modules/zod/dist/esm/v3/index.js
|
|
4012
|
+
var init_v3 = __esm(() => {
|
|
4013
|
+
init_external();
|
|
4014
|
+
init_external();
|
|
4015
|
+
});
|
|
4016
|
+
|
|
4017
|
+
// node_modules/zod/dist/esm/index.js
|
|
4018
|
+
var init_esm = __esm(() => {
|
|
4019
|
+
init_v3();
|
|
3976
4020
|
});
|
|
3977
4021
|
|
|
3978
4022
|
// src/mcp-server/console-logger.ts
|
|
@@ -4028,43 +4072,43 @@ var init_console_logger = __esm(() => {
|
|
|
4028
4072
|
|
|
4029
4073
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
4030
4074
|
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, AudioContentSchema, 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;
|
|
4031
|
-
var
|
|
4032
|
-
|
|
4075
|
+
var init_types2 = __esm(() => {
|
|
4076
|
+
init_esm();
|
|
4033
4077
|
SUPPORTED_PROTOCOL_VERSIONS = [
|
|
4034
4078
|
LATEST_PROTOCOL_VERSION,
|
|
4035
4079
|
"2024-10-07"
|
|
4036
4080
|
];
|
|
4037
|
-
ProgressTokenSchema =
|
|
4038
|
-
CursorSchema =
|
|
4039
|
-
BaseRequestParamsSchema =
|
|
4040
|
-
_meta:
|
|
4041
|
-
progressToken:
|
|
4081
|
+
ProgressTokenSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
4082
|
+
CursorSchema = exports_external.string();
|
|
4083
|
+
BaseRequestParamsSchema = exports_external.object({
|
|
4084
|
+
_meta: exports_external.optional(exports_external.object({
|
|
4085
|
+
progressToken: exports_external.optional(ProgressTokenSchema)
|
|
4042
4086
|
}).passthrough())
|
|
4043
4087
|
}).passthrough();
|
|
4044
|
-
RequestSchema =
|
|
4045
|
-
method:
|
|
4046
|
-
params:
|
|
4088
|
+
RequestSchema = exports_external.object({
|
|
4089
|
+
method: exports_external.string(),
|
|
4090
|
+
params: exports_external.optional(BaseRequestParamsSchema)
|
|
4047
4091
|
});
|
|
4048
|
-
BaseNotificationParamsSchema =
|
|
4049
|
-
_meta:
|
|
4092
|
+
BaseNotificationParamsSchema = exports_external.object({
|
|
4093
|
+
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
4050
4094
|
}).passthrough();
|
|
4051
|
-
NotificationSchema =
|
|
4052
|
-
method:
|
|
4053
|
-
params:
|
|
4095
|
+
NotificationSchema = exports_external.object({
|
|
4096
|
+
method: exports_external.string(),
|
|
4097
|
+
params: exports_external.optional(BaseNotificationParamsSchema)
|
|
4054
4098
|
});
|
|
4055
|
-
ResultSchema =
|
|
4056
|
-
_meta:
|
|
4099
|
+
ResultSchema = exports_external.object({
|
|
4100
|
+
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
4057
4101
|
}).passthrough();
|
|
4058
|
-
RequestIdSchema =
|
|
4059
|
-
JSONRPCRequestSchema =
|
|
4060
|
-
jsonrpc:
|
|
4102
|
+
RequestIdSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
4103
|
+
JSONRPCRequestSchema = exports_external.object({
|
|
4104
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4061
4105
|
id: RequestIdSchema
|
|
4062
4106
|
}).merge(RequestSchema).strict();
|
|
4063
|
-
JSONRPCNotificationSchema =
|
|
4064
|
-
jsonrpc:
|
|
4107
|
+
JSONRPCNotificationSchema = exports_external.object({
|
|
4108
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION)
|
|
4065
4109
|
}).merge(NotificationSchema).strict();
|
|
4066
|
-
JSONRPCResponseSchema =
|
|
4067
|
-
jsonrpc:
|
|
4110
|
+
JSONRPCResponseSchema = exports_external.object({
|
|
4111
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4068
4112
|
id: RequestIdSchema,
|
|
4069
4113
|
result: ResultSchema
|
|
4070
4114
|
}).strict();
|
|
@@ -4077,16 +4121,16 @@ var init_types = __esm(() => {
|
|
|
4077
4121
|
ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams";
|
|
4078
4122
|
ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
|
|
4079
4123
|
})(ErrorCode || (ErrorCode = {}));
|
|
4080
|
-
JSONRPCErrorSchema =
|
|
4081
|
-
jsonrpc:
|
|
4124
|
+
JSONRPCErrorSchema = exports_external.object({
|
|
4125
|
+
jsonrpc: exports_external.literal(JSONRPC_VERSION),
|
|
4082
4126
|
id: RequestIdSchema,
|
|
4083
|
-
error:
|
|
4084
|
-
code:
|
|
4085
|
-
message:
|
|
4086
|
-
data:
|
|
4127
|
+
error: exports_external.object({
|
|
4128
|
+
code: exports_external.number().int(),
|
|
4129
|
+
message: exports_external.string(),
|
|
4130
|
+
data: exports_external.optional(exports_external.unknown())
|
|
4087
4131
|
})
|
|
4088
4132
|
}).strict();
|
|
4089
|
-
JSONRPCMessageSchema =
|
|
4133
|
+
JSONRPCMessageSchema = exports_external.union([
|
|
4090
4134
|
JSONRPCRequestSchema,
|
|
4091
4135
|
JSONRPCNotificationSchema,
|
|
4092
4136
|
JSONRPCResponseSchema,
|
|
@@ -4094,184 +4138,184 @@ var init_types = __esm(() => {
|
|
|
4094
4138
|
]);
|
|
4095
4139
|
EmptyResultSchema = ResultSchema.strict();
|
|
4096
4140
|
CancelledNotificationSchema = NotificationSchema.extend({
|
|
4097
|
-
method:
|
|
4141
|
+
method: exports_external.literal("notifications/cancelled"),
|
|
4098
4142
|
params: BaseNotificationParamsSchema.extend({
|
|
4099
4143
|
requestId: RequestIdSchema,
|
|
4100
|
-
reason:
|
|
4144
|
+
reason: exports_external.string().optional()
|
|
4101
4145
|
})
|
|
4102
4146
|
});
|
|
4103
|
-
ImplementationSchema =
|
|
4104
|
-
name:
|
|
4105
|
-
version:
|
|
4147
|
+
ImplementationSchema = exports_external.object({
|
|
4148
|
+
name: exports_external.string(),
|
|
4149
|
+
version: exports_external.string()
|
|
4106
4150
|
}).passthrough();
|
|
4107
|
-
ClientCapabilitiesSchema =
|
|
4108
|
-
experimental:
|
|
4109
|
-
sampling:
|
|
4110
|
-
roots:
|
|
4111
|
-
listChanged:
|
|
4151
|
+
ClientCapabilitiesSchema = exports_external.object({
|
|
4152
|
+
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4153
|
+
sampling: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4154
|
+
roots: exports_external.optional(exports_external.object({
|
|
4155
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4112
4156
|
}).passthrough())
|
|
4113
4157
|
}).passthrough();
|
|
4114
4158
|
InitializeRequestSchema = RequestSchema.extend({
|
|
4115
|
-
method:
|
|
4159
|
+
method: exports_external.literal("initialize"),
|
|
4116
4160
|
params: BaseRequestParamsSchema.extend({
|
|
4117
|
-
protocolVersion:
|
|
4161
|
+
protocolVersion: exports_external.string(),
|
|
4118
4162
|
capabilities: ClientCapabilitiesSchema,
|
|
4119
4163
|
clientInfo: ImplementationSchema
|
|
4120
4164
|
})
|
|
4121
4165
|
});
|
|
4122
|
-
ServerCapabilitiesSchema =
|
|
4123
|
-
experimental:
|
|
4124
|
-
logging:
|
|
4125
|
-
completions:
|
|
4126
|
-
prompts:
|
|
4127
|
-
listChanged:
|
|
4166
|
+
ServerCapabilitiesSchema = exports_external.object({
|
|
4167
|
+
experimental: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4168
|
+
logging: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4169
|
+
completions: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4170
|
+
prompts: exports_external.optional(exports_external.object({
|
|
4171
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4128
4172
|
}).passthrough()),
|
|
4129
|
-
resources:
|
|
4130
|
-
subscribe:
|
|
4131
|
-
listChanged:
|
|
4173
|
+
resources: exports_external.optional(exports_external.object({
|
|
4174
|
+
subscribe: exports_external.optional(exports_external.boolean()),
|
|
4175
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4132
4176
|
}).passthrough()),
|
|
4133
|
-
tools:
|
|
4134
|
-
listChanged:
|
|
4177
|
+
tools: exports_external.optional(exports_external.object({
|
|
4178
|
+
listChanged: exports_external.optional(exports_external.boolean())
|
|
4135
4179
|
}).passthrough())
|
|
4136
4180
|
}).passthrough();
|
|
4137
4181
|
InitializeResultSchema = ResultSchema.extend({
|
|
4138
|
-
protocolVersion:
|
|
4182
|
+
protocolVersion: exports_external.string(),
|
|
4139
4183
|
capabilities: ServerCapabilitiesSchema,
|
|
4140
4184
|
serverInfo: ImplementationSchema,
|
|
4141
|
-
instructions:
|
|
4185
|
+
instructions: exports_external.optional(exports_external.string())
|
|
4142
4186
|
});
|
|
4143
4187
|
InitializedNotificationSchema = NotificationSchema.extend({
|
|
4144
|
-
method:
|
|
4188
|
+
method: exports_external.literal("notifications/initialized")
|
|
4145
4189
|
});
|
|
4146
4190
|
PingRequestSchema = RequestSchema.extend({
|
|
4147
|
-
method:
|
|
4191
|
+
method: exports_external.literal("ping")
|
|
4148
4192
|
});
|
|
4149
|
-
ProgressSchema =
|
|
4150
|
-
progress:
|
|
4151
|
-
total:
|
|
4193
|
+
ProgressSchema = exports_external.object({
|
|
4194
|
+
progress: exports_external.number(),
|
|
4195
|
+
total: exports_external.optional(exports_external.number())
|
|
4152
4196
|
}).passthrough();
|
|
4153
4197
|
ProgressNotificationSchema = NotificationSchema.extend({
|
|
4154
|
-
method:
|
|
4198
|
+
method: exports_external.literal("notifications/progress"),
|
|
4155
4199
|
params: BaseNotificationParamsSchema.merge(ProgressSchema).extend({
|
|
4156
4200
|
progressToken: ProgressTokenSchema
|
|
4157
4201
|
})
|
|
4158
4202
|
});
|
|
4159
4203
|
PaginatedRequestSchema = RequestSchema.extend({
|
|
4160
4204
|
params: BaseRequestParamsSchema.extend({
|
|
4161
|
-
cursor:
|
|
4205
|
+
cursor: exports_external.optional(CursorSchema)
|
|
4162
4206
|
}).optional()
|
|
4163
4207
|
});
|
|
4164
4208
|
PaginatedResultSchema = ResultSchema.extend({
|
|
4165
|
-
nextCursor:
|
|
4209
|
+
nextCursor: exports_external.optional(CursorSchema)
|
|
4166
4210
|
});
|
|
4167
|
-
ResourceContentsSchema =
|
|
4168
|
-
uri:
|
|
4169
|
-
mimeType:
|
|
4211
|
+
ResourceContentsSchema = exports_external.object({
|
|
4212
|
+
uri: exports_external.string(),
|
|
4213
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4170
4214
|
}).passthrough();
|
|
4171
4215
|
TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
4172
|
-
text:
|
|
4216
|
+
text: exports_external.string()
|
|
4173
4217
|
});
|
|
4174
4218
|
BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
4175
|
-
blob:
|
|
4219
|
+
blob: exports_external.string().base64()
|
|
4176
4220
|
});
|
|
4177
|
-
ResourceSchema =
|
|
4178
|
-
uri:
|
|
4179
|
-
name:
|
|
4180
|
-
description:
|
|
4181
|
-
mimeType:
|
|
4221
|
+
ResourceSchema = exports_external.object({
|
|
4222
|
+
uri: exports_external.string(),
|
|
4223
|
+
name: exports_external.string(),
|
|
4224
|
+
description: exports_external.optional(exports_external.string()),
|
|
4225
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4182
4226
|
}).passthrough();
|
|
4183
|
-
ResourceTemplateSchema =
|
|
4184
|
-
uriTemplate:
|
|
4185
|
-
name:
|
|
4186
|
-
description:
|
|
4187
|
-
mimeType:
|
|
4227
|
+
ResourceTemplateSchema = exports_external.object({
|
|
4228
|
+
uriTemplate: exports_external.string(),
|
|
4229
|
+
name: exports_external.string(),
|
|
4230
|
+
description: exports_external.optional(exports_external.string()),
|
|
4231
|
+
mimeType: exports_external.optional(exports_external.string())
|
|
4188
4232
|
}).passthrough();
|
|
4189
4233
|
ListResourcesRequestSchema = PaginatedRequestSchema.extend({
|
|
4190
|
-
method:
|
|
4234
|
+
method: exports_external.literal("resources/list")
|
|
4191
4235
|
});
|
|
4192
4236
|
ListResourcesResultSchema = PaginatedResultSchema.extend({
|
|
4193
|
-
resources:
|
|
4237
|
+
resources: exports_external.array(ResourceSchema)
|
|
4194
4238
|
});
|
|
4195
4239
|
ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
4196
|
-
method:
|
|
4240
|
+
method: exports_external.literal("resources/templates/list")
|
|
4197
4241
|
});
|
|
4198
4242
|
ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
4199
|
-
resourceTemplates:
|
|
4243
|
+
resourceTemplates: exports_external.array(ResourceTemplateSchema)
|
|
4200
4244
|
});
|
|
4201
4245
|
ReadResourceRequestSchema = RequestSchema.extend({
|
|
4202
|
-
method:
|
|
4246
|
+
method: exports_external.literal("resources/read"),
|
|
4203
4247
|
params: BaseRequestParamsSchema.extend({
|
|
4204
|
-
uri:
|
|
4248
|
+
uri: exports_external.string()
|
|
4205
4249
|
})
|
|
4206
4250
|
});
|
|
4207
4251
|
ReadResourceResultSchema = ResultSchema.extend({
|
|
4208
|
-
contents:
|
|
4252
|
+
contents: exports_external.array(exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
4209
4253
|
});
|
|
4210
4254
|
ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
4211
|
-
method:
|
|
4255
|
+
method: exports_external.literal("notifications/resources/list_changed")
|
|
4212
4256
|
});
|
|
4213
4257
|
SubscribeRequestSchema = RequestSchema.extend({
|
|
4214
|
-
method:
|
|
4258
|
+
method: exports_external.literal("resources/subscribe"),
|
|
4215
4259
|
params: BaseRequestParamsSchema.extend({
|
|
4216
|
-
uri:
|
|
4260
|
+
uri: exports_external.string()
|
|
4217
4261
|
})
|
|
4218
4262
|
});
|
|
4219
4263
|
UnsubscribeRequestSchema = RequestSchema.extend({
|
|
4220
|
-
method:
|
|
4264
|
+
method: exports_external.literal("resources/unsubscribe"),
|
|
4221
4265
|
params: BaseRequestParamsSchema.extend({
|
|
4222
|
-
uri:
|
|
4266
|
+
uri: exports_external.string()
|
|
4223
4267
|
})
|
|
4224
4268
|
});
|
|
4225
4269
|
ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
4226
|
-
method:
|
|
4270
|
+
method: exports_external.literal("notifications/resources/updated"),
|
|
4227
4271
|
params: BaseNotificationParamsSchema.extend({
|
|
4228
|
-
uri:
|
|
4272
|
+
uri: exports_external.string()
|
|
4229
4273
|
})
|
|
4230
4274
|
});
|
|
4231
|
-
PromptArgumentSchema =
|
|
4232
|
-
name:
|
|
4233
|
-
description:
|
|
4234
|
-
required:
|
|
4275
|
+
PromptArgumentSchema = exports_external.object({
|
|
4276
|
+
name: exports_external.string(),
|
|
4277
|
+
description: exports_external.optional(exports_external.string()),
|
|
4278
|
+
required: exports_external.optional(exports_external.boolean())
|
|
4235
4279
|
}).passthrough();
|
|
4236
|
-
PromptSchema =
|
|
4237
|
-
name:
|
|
4238
|
-
description:
|
|
4239
|
-
arguments:
|
|
4280
|
+
PromptSchema = exports_external.object({
|
|
4281
|
+
name: exports_external.string(),
|
|
4282
|
+
description: exports_external.optional(exports_external.string()),
|
|
4283
|
+
arguments: exports_external.optional(exports_external.array(PromptArgumentSchema))
|
|
4240
4284
|
}).passthrough();
|
|
4241
4285
|
ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
4242
|
-
method:
|
|
4286
|
+
method: exports_external.literal("prompts/list")
|
|
4243
4287
|
});
|
|
4244
4288
|
ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
4245
|
-
prompts:
|
|
4289
|
+
prompts: exports_external.array(PromptSchema)
|
|
4246
4290
|
});
|
|
4247
4291
|
GetPromptRequestSchema = RequestSchema.extend({
|
|
4248
|
-
method:
|
|
4292
|
+
method: exports_external.literal("prompts/get"),
|
|
4249
4293
|
params: BaseRequestParamsSchema.extend({
|
|
4250
|
-
name:
|
|
4251
|
-
arguments:
|
|
4294
|
+
name: exports_external.string(),
|
|
4295
|
+
arguments: exports_external.optional(exports_external.record(exports_external.string()))
|
|
4252
4296
|
})
|
|
4253
4297
|
});
|
|
4254
|
-
TextContentSchema =
|
|
4255
|
-
type:
|
|
4256
|
-
text:
|
|
4298
|
+
TextContentSchema = exports_external.object({
|
|
4299
|
+
type: exports_external.literal("text"),
|
|
4300
|
+
text: exports_external.string()
|
|
4257
4301
|
}).passthrough();
|
|
4258
|
-
ImageContentSchema =
|
|
4259
|
-
type:
|
|
4260
|
-
data:
|
|
4261
|
-
mimeType:
|
|
4302
|
+
ImageContentSchema = exports_external.object({
|
|
4303
|
+
type: exports_external.literal("image"),
|
|
4304
|
+
data: exports_external.string().base64(),
|
|
4305
|
+
mimeType: exports_external.string()
|
|
4262
4306
|
}).passthrough();
|
|
4263
|
-
AudioContentSchema =
|
|
4264
|
-
type:
|
|
4265
|
-
data:
|
|
4266
|
-
mimeType:
|
|
4307
|
+
AudioContentSchema = exports_external.object({
|
|
4308
|
+
type: exports_external.literal("audio"),
|
|
4309
|
+
data: exports_external.string().base64(),
|
|
4310
|
+
mimeType: exports_external.string()
|
|
4267
4311
|
}).passthrough();
|
|
4268
|
-
EmbeddedResourceSchema =
|
|
4269
|
-
type:
|
|
4270
|
-
resource:
|
|
4312
|
+
EmbeddedResourceSchema = exports_external.object({
|
|
4313
|
+
type: exports_external.literal("resource"),
|
|
4314
|
+
resource: exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema])
|
|
4271
4315
|
}).passthrough();
|
|
4272
|
-
PromptMessageSchema =
|
|
4273
|
-
role:
|
|
4274
|
-
content:
|
|
4316
|
+
PromptMessageSchema = exports_external.object({
|
|
4317
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4318
|
+
content: exports_external.union([
|
|
4275
4319
|
TextContentSchema,
|
|
4276
4320
|
ImageContentSchema,
|
|
4277
4321
|
AudioContentSchema,
|
|
@@ -4279,44 +4323,44 @@ var init_types = __esm(() => {
|
|
|
4279
4323
|
])
|
|
4280
4324
|
}).passthrough();
|
|
4281
4325
|
GetPromptResultSchema = ResultSchema.extend({
|
|
4282
|
-
description:
|
|
4283
|
-
messages:
|
|
4326
|
+
description: exports_external.optional(exports_external.string()),
|
|
4327
|
+
messages: exports_external.array(PromptMessageSchema)
|
|
4284
4328
|
});
|
|
4285
4329
|
PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
4286
|
-
method:
|
|
4287
|
-
});
|
|
4288
|
-
ToolSchema =
|
|
4289
|
-
name:
|
|
4290
|
-
description:
|
|
4291
|
-
inputSchema:
|
|
4292
|
-
type:
|
|
4293
|
-
properties:
|
|
4330
|
+
method: exports_external.literal("notifications/prompts/list_changed")
|
|
4331
|
+
});
|
|
4332
|
+
ToolSchema = exports_external.object({
|
|
4333
|
+
name: exports_external.string(),
|
|
4334
|
+
description: exports_external.optional(exports_external.string()),
|
|
4335
|
+
inputSchema: exports_external.object({
|
|
4336
|
+
type: exports_external.literal("object"),
|
|
4337
|
+
properties: exports_external.optional(exports_external.object({}).passthrough())
|
|
4294
4338
|
}).passthrough()
|
|
4295
4339
|
}).passthrough();
|
|
4296
4340
|
ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
4297
|
-
method:
|
|
4341
|
+
method: exports_external.literal("tools/list")
|
|
4298
4342
|
});
|
|
4299
4343
|
ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
4300
|
-
tools:
|
|
4344
|
+
tools: exports_external.array(ToolSchema)
|
|
4301
4345
|
});
|
|
4302
4346
|
CallToolResultSchema = ResultSchema.extend({
|
|
4303
|
-
content:
|
|
4304
|
-
isError:
|
|
4347
|
+
content: exports_external.array(exports_external.union([TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema])),
|
|
4348
|
+
isError: exports_external.boolean().default(false).optional()
|
|
4305
4349
|
});
|
|
4306
4350
|
CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
4307
|
-
toolResult:
|
|
4351
|
+
toolResult: exports_external.unknown()
|
|
4308
4352
|
}));
|
|
4309
4353
|
CallToolRequestSchema = RequestSchema.extend({
|
|
4310
|
-
method:
|
|
4354
|
+
method: exports_external.literal("tools/call"),
|
|
4311
4355
|
params: BaseRequestParamsSchema.extend({
|
|
4312
|
-
name:
|
|
4313
|
-
arguments:
|
|
4356
|
+
name: exports_external.string(),
|
|
4357
|
+
arguments: exports_external.optional(exports_external.record(exports_external.unknown()))
|
|
4314
4358
|
})
|
|
4315
4359
|
});
|
|
4316
4360
|
ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
4317
|
-
method:
|
|
4361
|
+
method: exports_external.literal("notifications/tools/list_changed")
|
|
4318
4362
|
});
|
|
4319
|
-
LoggingLevelSchema =
|
|
4363
|
+
LoggingLevelSchema = exports_external.enum([
|
|
4320
4364
|
"debug",
|
|
4321
4365
|
"info",
|
|
4322
4366
|
"notice",
|
|
@@ -4327,94 +4371,94 @@ var init_types = __esm(() => {
|
|
|
4327
4371
|
"emergency"
|
|
4328
4372
|
]);
|
|
4329
4373
|
SetLevelRequestSchema = RequestSchema.extend({
|
|
4330
|
-
method:
|
|
4374
|
+
method: exports_external.literal("logging/setLevel"),
|
|
4331
4375
|
params: BaseRequestParamsSchema.extend({
|
|
4332
4376
|
level: LoggingLevelSchema
|
|
4333
4377
|
})
|
|
4334
4378
|
});
|
|
4335
4379
|
LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
4336
|
-
method:
|
|
4380
|
+
method: exports_external.literal("notifications/message"),
|
|
4337
4381
|
params: BaseNotificationParamsSchema.extend({
|
|
4338
4382
|
level: LoggingLevelSchema,
|
|
4339
|
-
logger:
|
|
4340
|
-
data:
|
|
4383
|
+
logger: exports_external.optional(exports_external.string()),
|
|
4384
|
+
data: exports_external.unknown()
|
|
4341
4385
|
})
|
|
4342
4386
|
});
|
|
4343
|
-
ModelHintSchema =
|
|
4344
|
-
name:
|
|
4387
|
+
ModelHintSchema = exports_external.object({
|
|
4388
|
+
name: exports_external.string().optional()
|
|
4345
4389
|
}).passthrough();
|
|
4346
|
-
ModelPreferencesSchema =
|
|
4347
|
-
hints:
|
|
4348
|
-
costPriority:
|
|
4349
|
-
speedPriority:
|
|
4350
|
-
intelligencePriority:
|
|
4390
|
+
ModelPreferencesSchema = exports_external.object({
|
|
4391
|
+
hints: exports_external.optional(exports_external.array(ModelHintSchema)),
|
|
4392
|
+
costPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
4393
|
+
speedPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
4394
|
+
intelligencePriority: exports_external.optional(exports_external.number().min(0).max(1))
|
|
4351
4395
|
}).passthrough();
|
|
4352
|
-
SamplingMessageSchema =
|
|
4353
|
-
role:
|
|
4354
|
-
content:
|
|
4396
|
+
SamplingMessageSchema = exports_external.object({
|
|
4397
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4398
|
+
content: exports_external.union([TextContentSchema, ImageContentSchema, AudioContentSchema])
|
|
4355
4399
|
}).passthrough();
|
|
4356
4400
|
CreateMessageRequestSchema = RequestSchema.extend({
|
|
4357
|
-
method:
|
|
4401
|
+
method: exports_external.literal("sampling/createMessage"),
|
|
4358
4402
|
params: BaseRequestParamsSchema.extend({
|
|
4359
|
-
messages:
|
|
4360
|
-
systemPrompt:
|
|
4361
|
-
includeContext:
|
|
4362
|
-
temperature:
|
|
4363
|
-
maxTokens:
|
|
4364
|
-
stopSequences:
|
|
4365
|
-
metadata:
|
|
4366
|
-
modelPreferences:
|
|
4403
|
+
messages: exports_external.array(SamplingMessageSchema),
|
|
4404
|
+
systemPrompt: exports_external.optional(exports_external.string()),
|
|
4405
|
+
includeContext: exports_external.optional(exports_external.enum(["none", "thisServer", "allServers"])),
|
|
4406
|
+
temperature: exports_external.optional(exports_external.number()),
|
|
4407
|
+
maxTokens: exports_external.number().int(),
|
|
4408
|
+
stopSequences: exports_external.optional(exports_external.array(exports_external.string())),
|
|
4409
|
+
metadata: exports_external.optional(exports_external.object({}).passthrough()),
|
|
4410
|
+
modelPreferences: exports_external.optional(ModelPreferencesSchema)
|
|
4367
4411
|
})
|
|
4368
4412
|
});
|
|
4369
4413
|
CreateMessageResultSchema = ResultSchema.extend({
|
|
4370
|
-
model:
|
|
4371
|
-
stopReason:
|
|
4372
|
-
role:
|
|
4373
|
-
content:
|
|
4414
|
+
model: exports_external.string(),
|
|
4415
|
+
stopReason: exports_external.optional(exports_external.enum(["endTurn", "stopSequence", "maxTokens"]).or(exports_external.string())),
|
|
4416
|
+
role: exports_external.enum(["user", "assistant"]),
|
|
4417
|
+
content: exports_external.discriminatedUnion("type", [
|
|
4374
4418
|
TextContentSchema,
|
|
4375
4419
|
ImageContentSchema,
|
|
4376
4420
|
AudioContentSchema
|
|
4377
4421
|
])
|
|
4378
4422
|
});
|
|
4379
|
-
ResourceReferenceSchema =
|
|
4380
|
-
type:
|
|
4381
|
-
uri:
|
|
4423
|
+
ResourceReferenceSchema = exports_external.object({
|
|
4424
|
+
type: exports_external.literal("ref/resource"),
|
|
4425
|
+
uri: exports_external.string()
|
|
4382
4426
|
}).passthrough();
|
|
4383
|
-
PromptReferenceSchema =
|
|
4384
|
-
type:
|
|
4385
|
-
name:
|
|
4427
|
+
PromptReferenceSchema = exports_external.object({
|
|
4428
|
+
type: exports_external.literal("ref/prompt"),
|
|
4429
|
+
name: exports_external.string()
|
|
4386
4430
|
}).passthrough();
|
|
4387
4431
|
CompleteRequestSchema = RequestSchema.extend({
|
|
4388
|
-
method:
|
|
4432
|
+
method: exports_external.literal("completion/complete"),
|
|
4389
4433
|
params: BaseRequestParamsSchema.extend({
|
|
4390
|
-
ref:
|
|
4391
|
-
argument:
|
|
4392
|
-
name:
|
|
4393
|
-
value:
|
|
4434
|
+
ref: exports_external.union([PromptReferenceSchema, ResourceReferenceSchema]),
|
|
4435
|
+
argument: exports_external.object({
|
|
4436
|
+
name: exports_external.string(),
|
|
4437
|
+
value: exports_external.string()
|
|
4394
4438
|
}).passthrough()
|
|
4395
4439
|
})
|
|
4396
4440
|
});
|
|
4397
4441
|
CompleteResultSchema = ResultSchema.extend({
|
|
4398
|
-
completion:
|
|
4399
|
-
values:
|
|
4400
|
-
total:
|
|
4401
|
-
hasMore:
|
|
4442
|
+
completion: exports_external.object({
|
|
4443
|
+
values: exports_external.array(exports_external.string()).max(100),
|
|
4444
|
+
total: exports_external.optional(exports_external.number().int()),
|
|
4445
|
+
hasMore: exports_external.optional(exports_external.boolean())
|
|
4402
4446
|
}).passthrough()
|
|
4403
4447
|
});
|
|
4404
|
-
RootSchema =
|
|
4405
|
-
uri:
|
|
4406
|
-
name:
|
|
4448
|
+
RootSchema = exports_external.object({
|
|
4449
|
+
uri: exports_external.string().startsWith("file://"),
|
|
4450
|
+
name: exports_external.optional(exports_external.string())
|
|
4407
4451
|
}).passthrough();
|
|
4408
4452
|
ListRootsRequestSchema = RequestSchema.extend({
|
|
4409
|
-
method:
|
|
4453
|
+
method: exports_external.literal("roots/list")
|
|
4410
4454
|
});
|
|
4411
4455
|
ListRootsResultSchema = ResultSchema.extend({
|
|
4412
|
-
roots:
|
|
4456
|
+
roots: exports_external.array(RootSchema)
|
|
4413
4457
|
});
|
|
4414
4458
|
RootsListChangedNotificationSchema = NotificationSchema.extend({
|
|
4415
|
-
method:
|
|
4459
|
+
method: exports_external.literal("notifications/roots/list_changed")
|
|
4416
4460
|
});
|
|
4417
|
-
ClientRequestSchema =
|
|
4461
|
+
ClientRequestSchema = exports_external.union([
|
|
4418
4462
|
PingRequestSchema,
|
|
4419
4463
|
InitializeRequestSchema,
|
|
4420
4464
|
CompleteRequestSchema,
|
|
@@ -4429,23 +4473,23 @@ var init_types = __esm(() => {
|
|
|
4429
4473
|
CallToolRequestSchema,
|
|
4430
4474
|
ListToolsRequestSchema
|
|
4431
4475
|
]);
|
|
4432
|
-
ClientNotificationSchema =
|
|
4476
|
+
ClientNotificationSchema = exports_external.union([
|
|
4433
4477
|
CancelledNotificationSchema,
|
|
4434
4478
|
ProgressNotificationSchema,
|
|
4435
4479
|
InitializedNotificationSchema,
|
|
4436
4480
|
RootsListChangedNotificationSchema
|
|
4437
4481
|
]);
|
|
4438
|
-
ClientResultSchema =
|
|
4482
|
+
ClientResultSchema = exports_external.union([
|
|
4439
4483
|
EmptyResultSchema,
|
|
4440
4484
|
CreateMessageResultSchema,
|
|
4441
4485
|
ListRootsResultSchema
|
|
4442
4486
|
]);
|
|
4443
|
-
ServerRequestSchema =
|
|
4487
|
+
ServerRequestSchema = exports_external.union([
|
|
4444
4488
|
PingRequestSchema,
|
|
4445
4489
|
CreateMessageRequestSchema,
|
|
4446
4490
|
ListRootsRequestSchema
|
|
4447
4491
|
]);
|
|
4448
|
-
ServerNotificationSchema =
|
|
4492
|
+
ServerNotificationSchema = exports_external.union([
|
|
4449
4493
|
CancelledNotificationSchema,
|
|
4450
4494
|
ProgressNotificationSchema,
|
|
4451
4495
|
LoggingMessageNotificationSchema,
|
|
@@ -4454,7 +4498,7 @@ var init_types = __esm(() => {
|
|
|
4454
4498
|
ToolListChangedNotificationSchema,
|
|
4455
4499
|
PromptListChangedNotificationSchema
|
|
4456
4500
|
]);
|
|
4457
|
-
ServerResultSchema =
|
|
4501
|
+
ServerResultSchema = exports_external.union([
|
|
4458
4502
|
EmptyResultSchema,
|
|
4459
4503
|
InitializeResultSchema,
|
|
4460
4504
|
CompleteResultSchema,
|
|
@@ -5069,14 +5113,14 @@ var require_inherits_browser = __commonJS((exports, module) => {
|
|
|
5069
5113
|
// node_modules/inherits/inherits.js
|
|
5070
5114
|
var require_inherits = __commonJS((exports, module) => {
|
|
5071
5115
|
try {
|
|
5072
|
-
|
|
5073
|
-
if (typeof
|
|
5116
|
+
util3 = __require("util");
|
|
5117
|
+
if (typeof util3.inherits !== "function")
|
|
5074
5118
|
throw "";
|
|
5075
|
-
module.exports =
|
|
5119
|
+
module.exports = util3.inherits;
|
|
5076
5120
|
} catch (e) {
|
|
5077
5121
|
module.exports = require_inherits_browser();
|
|
5078
5122
|
}
|
|
5079
|
-
var
|
|
5123
|
+
var util3;
|
|
5080
5124
|
});
|
|
5081
5125
|
|
|
5082
5126
|
// node_modules/toidentifier/index.js
|
|
@@ -9210,7 +9254,7 @@ data: ${JSON.stringify(message)}
|
|
|
9210
9254
|
}
|
|
9211
9255
|
var import_raw_body, import_content_type, MAXIMUM_MESSAGE_SIZE = "4mb";
|
|
9212
9256
|
var init_sse = __esm(() => {
|
|
9213
|
-
|
|
9257
|
+
init_types2();
|
|
9214
9258
|
import_raw_body = __toESM(require_raw_body(), 1);
|
|
9215
9259
|
import_content_type = __toESM(require_content_type(), 1);
|
|
9216
9260
|
});
|
|
@@ -9245,7 +9289,7 @@ function serializeMessage(message) {
|
|
|
9245
9289
|
`;
|
|
9246
9290
|
}
|
|
9247
9291
|
var init_stdio = __esm(() => {
|
|
9248
|
-
|
|
9292
|
+
init_types2();
|
|
9249
9293
|
});
|
|
9250
9294
|
|
|
9251
9295
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
@@ -9599,7 +9643,7 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
9599
9643
|
// node_modules/body-parser/node_modules/debug/src/node.js
|
|
9600
9644
|
var require_node = __commonJS((exports, module) => {
|
|
9601
9645
|
var tty = __require("tty");
|
|
9602
|
-
var
|
|
9646
|
+
var util3 = __require("util");
|
|
9603
9647
|
exports = module.exports = require_debug();
|
|
9604
9648
|
exports.init = init;
|
|
9605
9649
|
exports.log = log2;
|
|
@@ -9628,7 +9672,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9628
9672
|
}, {});
|
|
9629
9673
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
9630
9674
|
if (fd !== 1 && fd !== 2) {
|
|
9631
|
-
|
|
9675
|
+
util3.deprecate(function() {}, "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)")();
|
|
9632
9676
|
}
|
|
9633
9677
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
9634
9678
|
function useColors() {
|
|
@@ -9636,14 +9680,14 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9636
9680
|
}
|
|
9637
9681
|
exports.formatters.o = function(v2) {
|
|
9638
9682
|
this.inspectOpts.colors = this.useColors;
|
|
9639
|
-
return
|
|
9683
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
9640
9684
|
`).map(function(str) {
|
|
9641
9685
|
return str.trim();
|
|
9642
9686
|
}).join(" ");
|
|
9643
9687
|
};
|
|
9644
9688
|
exports.formatters.O = function(v2) {
|
|
9645
9689
|
this.inspectOpts.colors = this.useColors;
|
|
9646
|
-
return
|
|
9690
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
9647
9691
|
};
|
|
9648
9692
|
function formatArgs(args) {
|
|
9649
9693
|
var name = this.namespace;
|
|
@@ -9660,7 +9704,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
9660
9704
|
}
|
|
9661
9705
|
}
|
|
9662
9706
|
function log2() {
|
|
9663
|
-
return stream.write(
|
|
9707
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
9664
9708
|
`);
|
|
9665
9709
|
}
|
|
9666
9710
|
function save(namespaces) {
|
|
@@ -22286,7 +22330,7 @@ var require_mime_types = __commonJS((exports) => {
|
|
|
22286
22330
|
}
|
|
22287
22331
|
return exports.types[extension2] || false;
|
|
22288
22332
|
}
|
|
22289
|
-
function populateMaps(extensions,
|
|
22333
|
+
function populateMaps(extensions, types2) {
|
|
22290
22334
|
var preference = ["nginx", "apache", undefined, "iana"];
|
|
22291
22335
|
Object.keys(db).forEach(function forEachMimeType(type) {
|
|
22292
22336
|
var mime = db[type];
|
|
@@ -22297,14 +22341,14 @@ var require_mime_types = __commonJS((exports) => {
|
|
|
22297
22341
|
extensions[type] = exts;
|
|
22298
22342
|
for (var i = 0;i < exts.length; i++) {
|
|
22299
22343
|
var extension2 = exts[i];
|
|
22300
|
-
if (
|
|
22301
|
-
var from = preference.indexOf(db[
|
|
22344
|
+
if (types2[extension2]) {
|
|
22345
|
+
var from = preference.indexOf(db[types2[extension2]].source);
|
|
22302
22346
|
var to = preference.indexOf(mime.source);
|
|
22303
|
-
if (
|
|
22347
|
+
if (types2[extension2] !== "application/octet-stream" && (from > to || from === to && types2[extension2].substr(0, 12) === "application/")) {
|
|
22304
22348
|
continue;
|
|
22305
22349
|
}
|
|
22306
22350
|
}
|
|
22307
|
-
|
|
22351
|
+
types2[extension2] = type;
|
|
22308
22352
|
}
|
|
22309
22353
|
});
|
|
22310
22354
|
}
|
|
@@ -22327,23 +22371,23 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
22327
22371
|
module.exports.match = mimeMatch;
|
|
22328
22372
|
function typeis(value, types_) {
|
|
22329
22373
|
var i;
|
|
22330
|
-
var
|
|
22374
|
+
var types2 = types_;
|
|
22331
22375
|
var val = tryNormalizeType(value);
|
|
22332
22376
|
if (!val) {
|
|
22333
22377
|
return false;
|
|
22334
22378
|
}
|
|
22335
|
-
if (
|
|
22336
|
-
|
|
22337
|
-
for (i = 0;i <
|
|
22338
|
-
|
|
22379
|
+
if (types2 && !Array.isArray(types2)) {
|
|
22380
|
+
types2 = new Array(arguments.length - 1);
|
|
22381
|
+
for (i = 0;i < types2.length; i++) {
|
|
22382
|
+
types2[i] = arguments[i + 1];
|
|
22339
22383
|
}
|
|
22340
22384
|
}
|
|
22341
|
-
if (!
|
|
22385
|
+
if (!types2 || !types2.length) {
|
|
22342
22386
|
return val;
|
|
22343
22387
|
}
|
|
22344
22388
|
var type;
|
|
22345
|
-
for (i = 0;i <
|
|
22346
|
-
if (mimeMatch(normalize(type =
|
|
22389
|
+
for (i = 0;i < types2.length; i++) {
|
|
22390
|
+
if (mimeMatch(normalize(type = types2[i]), val)) {
|
|
22347
22391
|
return type[0] === "+" || type.indexOf("*") !== -1 ? val : type;
|
|
22348
22392
|
}
|
|
22349
22393
|
}
|
|
@@ -22353,18 +22397,18 @@ var require_type_is = __commonJS((exports, module) => {
|
|
|
22353
22397
|
return req.headers["transfer-encoding"] !== undefined || !isNaN(req.headers["content-length"]);
|
|
22354
22398
|
}
|
|
22355
22399
|
function typeofrequest(req, types_) {
|
|
22356
|
-
var
|
|
22400
|
+
var types2 = types_;
|
|
22357
22401
|
if (!hasbody(req)) {
|
|
22358
22402
|
return null;
|
|
22359
22403
|
}
|
|
22360
22404
|
if (arguments.length > 2) {
|
|
22361
|
-
|
|
22362
|
-
for (var i = 0;i <
|
|
22363
|
-
|
|
22405
|
+
types2 = new Array(arguments.length - 1);
|
|
22406
|
+
for (var i = 0;i < types2.length; i++) {
|
|
22407
|
+
types2[i] = arguments[i + 1];
|
|
22364
22408
|
}
|
|
22365
22409
|
}
|
|
22366
22410
|
var value = req.headers["content-type"];
|
|
22367
|
-
return typeis(value,
|
|
22411
|
+
return typeis(value, types2);
|
|
22368
22412
|
}
|
|
22369
22413
|
function normalize(type) {
|
|
22370
22414
|
if (typeof type !== "string") {
|
|
@@ -25410,7 +25454,7 @@ var require_browser2 = __commonJS((exports, module) => {
|
|
|
25410
25454
|
// node_modules/finalhandler/node_modules/debug/src/node.js
|
|
25411
25455
|
var require_node2 = __commonJS((exports, module) => {
|
|
25412
25456
|
var tty = __require("tty");
|
|
25413
|
-
var
|
|
25457
|
+
var util3 = __require("util");
|
|
25414
25458
|
exports = module.exports = require_debug2();
|
|
25415
25459
|
exports.init = init;
|
|
25416
25460
|
exports.log = log2;
|
|
@@ -25439,7 +25483,7 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25439
25483
|
}, {});
|
|
25440
25484
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
25441
25485
|
if (fd !== 1 && fd !== 2) {
|
|
25442
|
-
|
|
25486
|
+
util3.deprecate(function() {}, "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)")();
|
|
25443
25487
|
}
|
|
25444
25488
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
25445
25489
|
function useColors() {
|
|
@@ -25447,14 +25491,14 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25447
25491
|
}
|
|
25448
25492
|
exports.formatters.o = function(v2) {
|
|
25449
25493
|
this.inspectOpts.colors = this.useColors;
|
|
25450
|
-
return
|
|
25494
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
25451
25495
|
`).map(function(str) {
|
|
25452
25496
|
return str.trim();
|
|
25453
25497
|
}).join(" ");
|
|
25454
25498
|
};
|
|
25455
25499
|
exports.formatters.O = function(v2) {
|
|
25456
25500
|
this.inspectOpts.colors = this.useColors;
|
|
25457
|
-
return
|
|
25501
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
25458
25502
|
};
|
|
25459
25503
|
function formatArgs(args) {
|
|
25460
25504
|
var name = this.namespace;
|
|
@@ -25471,7 +25515,7 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
25471
25515
|
}
|
|
25472
25516
|
}
|
|
25473
25517
|
function log2() {
|
|
25474
|
-
return stream.write(
|
|
25518
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
25475
25519
|
`);
|
|
25476
25520
|
}
|
|
25477
25521
|
function save(namespaces) {
|
|
@@ -26136,7 +26180,7 @@ var require_browser3 = __commonJS((exports, module) => {
|
|
|
26136
26180
|
// node_modules/express/node_modules/debug/src/node.js
|
|
26137
26181
|
var require_node3 = __commonJS((exports, module) => {
|
|
26138
26182
|
var tty = __require("tty");
|
|
26139
|
-
var
|
|
26183
|
+
var util3 = __require("util");
|
|
26140
26184
|
exports = module.exports = require_debug3();
|
|
26141
26185
|
exports.init = init;
|
|
26142
26186
|
exports.log = log2;
|
|
@@ -26165,7 +26209,7 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26165
26209
|
}, {});
|
|
26166
26210
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
26167
26211
|
if (fd !== 1 && fd !== 2) {
|
|
26168
|
-
|
|
26212
|
+
util3.deprecate(function() {}, "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)")();
|
|
26169
26213
|
}
|
|
26170
26214
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
26171
26215
|
function useColors() {
|
|
@@ -26173,14 +26217,14 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26173
26217
|
}
|
|
26174
26218
|
exports.formatters.o = function(v2) {
|
|
26175
26219
|
this.inspectOpts.colors = this.useColors;
|
|
26176
|
-
return
|
|
26220
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
26177
26221
|
`).map(function(str) {
|
|
26178
26222
|
return str.trim();
|
|
26179
26223
|
}).join(" ");
|
|
26180
26224
|
};
|
|
26181
26225
|
exports.formatters.O = function(v2) {
|
|
26182
26226
|
this.inspectOpts.colors = this.useColors;
|
|
26183
|
-
return
|
|
26227
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
26184
26228
|
};
|
|
26185
26229
|
function formatArgs(args) {
|
|
26186
26230
|
var name = this.namespace;
|
|
@@ -26197,7 +26241,7 @@ var require_node3 = __commonJS((exports, module) => {
|
|
|
26197
26241
|
}
|
|
26198
26242
|
}
|
|
26199
26243
|
function log2() {
|
|
26200
|
-
return stream.write(
|
|
26244
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
26201
26245
|
`);
|
|
26202
26246
|
}
|
|
26203
26247
|
function save(namespaces) {
|
|
@@ -27715,7 +27759,7 @@ var require_browser4 = __commonJS((exports, module) => {
|
|
|
27715
27759
|
// node_modules/send/node_modules/debug/src/node.js
|
|
27716
27760
|
var require_node4 = __commonJS((exports, module) => {
|
|
27717
27761
|
var tty = __require("tty");
|
|
27718
|
-
var
|
|
27762
|
+
var util3 = __require("util");
|
|
27719
27763
|
exports = module.exports = require_debug4();
|
|
27720
27764
|
exports.init = init;
|
|
27721
27765
|
exports.log = log2;
|
|
@@ -27744,7 +27788,7 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27744
27788
|
}, {});
|
|
27745
27789
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
27746
27790
|
if (fd !== 1 && fd !== 2) {
|
|
27747
|
-
|
|
27791
|
+
util3.deprecate(function() {}, "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)")();
|
|
27748
27792
|
}
|
|
27749
27793
|
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
27750
27794
|
function useColors() {
|
|
@@ -27752,14 +27796,14 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27752
27796
|
}
|
|
27753
27797
|
exports.formatters.o = function(v2) {
|
|
27754
27798
|
this.inspectOpts.colors = this.useColors;
|
|
27755
|
-
return
|
|
27799
|
+
return util3.inspect(v2, this.inspectOpts).split(`
|
|
27756
27800
|
`).map(function(str) {
|
|
27757
27801
|
return str.trim();
|
|
27758
27802
|
}).join(" ");
|
|
27759
27803
|
};
|
|
27760
27804
|
exports.formatters.O = function(v2) {
|
|
27761
27805
|
this.inspectOpts.colors = this.useColors;
|
|
27762
|
-
return
|
|
27806
|
+
return util3.inspect(v2, this.inspectOpts);
|
|
27763
27807
|
};
|
|
27764
27808
|
function formatArgs(args) {
|
|
27765
27809
|
var name = this.namespace;
|
|
@@ -27776,7 +27820,7 @@ var require_node4 = __commonJS((exports, module) => {
|
|
|
27776
27820
|
}
|
|
27777
27821
|
}
|
|
27778
27822
|
function log2() {
|
|
27779
|
-
return stream.write(
|
|
27823
|
+
return stream.write(util3.format.apply(util3, arguments) + `
|
|
27780
27824
|
`);
|
|
27781
27825
|
}
|
|
27782
27826
|
function save(namespaces) {
|
|
@@ -28257,7 +28301,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
28257
28301
|
var path = __require("path");
|
|
28258
28302
|
var statuses = require_statuses();
|
|
28259
28303
|
var Stream = __require("stream");
|
|
28260
|
-
var
|
|
28304
|
+
var util3 = __require("util");
|
|
28261
28305
|
var extname = path.extname;
|
|
28262
28306
|
var join = path.join;
|
|
28263
28307
|
var normalize = path.normalize;
|
|
@@ -28303,7 +28347,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
28303
28347
|
this.from(opts.from);
|
|
28304
28348
|
}
|
|
28305
28349
|
}
|
|
28306
|
-
|
|
28350
|
+
util3.inherits(SendStream, Stream);
|
|
28307
28351
|
SendStream.prototype.etag = deprecate.function(function etag(val) {
|
|
28308
28352
|
this._etag = Boolean(val);
|
|
28309
28353
|
debug("etag %s", this._etag);
|
|
@@ -29659,10 +29703,10 @@ var require_utils2 = __commonJS((exports) => {
|
|
|
29659
29703
|
exports.normalizeType = function(type) {
|
|
29660
29704
|
return ~type.indexOf("/") ? acceptParams(type) : { value: mime.lookup(type), params: {} };
|
|
29661
29705
|
};
|
|
29662
|
-
exports.normalizeTypes = function(
|
|
29706
|
+
exports.normalizeTypes = function(types2) {
|
|
29663
29707
|
var ret = [];
|
|
29664
|
-
for (var i = 0;i <
|
|
29665
|
-
ret.push(exports.normalizeType(
|
|
29708
|
+
for (var i = 0;i < types2.length; ++i) {
|
|
29709
|
+
ret.push(exports.normalizeType(types2[i]));
|
|
29666
29710
|
}
|
|
29667
29711
|
return ret;
|
|
29668
29712
|
};
|
|
@@ -30562,23 +30606,23 @@ var require_accepts = __commonJS((exports, module) => {
|
|
|
30562
30606
|
this.negotiator = new Negotiator(req);
|
|
30563
30607
|
}
|
|
30564
30608
|
Accepts.prototype.type = Accepts.prototype.types = function(types_) {
|
|
30565
|
-
var
|
|
30566
|
-
if (
|
|
30567
|
-
|
|
30568
|
-
for (var i = 0;i <
|
|
30569
|
-
|
|
30609
|
+
var types2 = types_;
|
|
30610
|
+
if (types2 && !Array.isArray(types2)) {
|
|
30611
|
+
types2 = new Array(arguments.length);
|
|
30612
|
+
for (var i = 0;i < types2.length; i++) {
|
|
30613
|
+
types2[i] = arguments[i];
|
|
30570
30614
|
}
|
|
30571
30615
|
}
|
|
30572
|
-
if (!
|
|
30616
|
+
if (!types2 || types2.length === 0) {
|
|
30573
30617
|
return this.negotiator.mediaTypes();
|
|
30574
30618
|
}
|
|
30575
30619
|
if (!this.headers.accept) {
|
|
30576
|
-
return
|
|
30620
|
+
return types2[0];
|
|
30577
30621
|
}
|
|
30578
|
-
var mimes =
|
|
30622
|
+
var mimes = types2.map(extToMime);
|
|
30579
30623
|
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime));
|
|
30580
30624
|
var first = accepts[0];
|
|
30581
|
-
return first ?
|
|
30625
|
+
return first ? types2[mimes.indexOf(first)] : false;
|
|
30582
30626
|
};
|
|
30583
30627
|
Accepts.prototype.encoding = Accepts.prototype.encodings = function(encodings_) {
|
|
30584
30628
|
var encodings = encodings_;
|
|
@@ -30702,9 +30746,9 @@ var require_request = __commonJS((exports, module) => {
|
|
|
30702
30746
|
return query[name];
|
|
30703
30747
|
return defaultValue;
|
|
30704
30748
|
};
|
|
30705
|
-
req.is = function is(
|
|
30706
|
-
var arr =
|
|
30707
|
-
if (!Array.isArray(
|
|
30749
|
+
req.is = function is(types2) {
|
|
30750
|
+
var arr = types2;
|
|
30751
|
+
if (!Array.isArray(types2)) {
|
|
30708
30752
|
arr = new Array(arguments.length);
|
|
30709
30753
|
for (var i = 0;i < arr.length; i++) {
|
|
30710
30754
|
arr[i] = arguments[i];
|
|
@@ -32118,14 +32162,14 @@ function mergeCapabilities(base, additional) {
|
|
|
32118
32162
|
}
|
|
32119
32163
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
32120
32164
|
var init_protocol = __esm(() => {
|
|
32121
|
-
|
|
32165
|
+
init_types2();
|
|
32122
32166
|
});
|
|
32123
32167
|
|
|
32124
32168
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
32125
32169
|
var Server;
|
|
32126
32170
|
var init_server = __esm(() => {
|
|
32127
32171
|
init_protocol();
|
|
32128
|
-
|
|
32172
|
+
init_types2();
|
|
32129
32173
|
Server = class Server extends Protocol {
|
|
32130
32174
|
constructor(_serverInfo, options) {
|
|
32131
32175
|
var _a;
|
|
@@ -32381,7 +32425,7 @@ function parseArrayDef(def, refs) {
|
|
|
32381
32425
|
return res;
|
|
32382
32426
|
}
|
|
32383
32427
|
var init_array = __esm(() => {
|
|
32384
|
-
|
|
32428
|
+
init_esm();
|
|
32385
32429
|
init_parseDef();
|
|
32386
32430
|
});
|
|
32387
32431
|
|
|
@@ -32944,7 +32988,7 @@ function parseRecordDef(def, refs) {
|
|
|
32944
32988
|
return schema;
|
|
32945
32989
|
}
|
|
32946
32990
|
var init_record = __esm(() => {
|
|
32947
|
-
|
|
32991
|
+
init_esm();
|
|
32948
32992
|
init_parseDef();
|
|
32949
32993
|
init_string();
|
|
32950
32994
|
init_branded();
|
|
@@ -33016,15 +33060,15 @@ function parseUnionDef(def, refs) {
|
|
|
33016
33060
|
return asAnyOf(def, refs);
|
|
33017
33061
|
const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
|
|
33018
33062
|
if (options.every((x2) => (x2._def.typeName in primitiveMappings) && (!x2._def.checks || !x2._def.checks.length))) {
|
|
33019
|
-
const
|
|
33063
|
+
const types2 = options.reduce((types3, x2) => {
|
|
33020
33064
|
const type = primitiveMappings[x2._def.typeName];
|
|
33021
|
-
return type && !
|
|
33065
|
+
return type && !types3.includes(type) ? [...types3, type] : types3;
|
|
33022
33066
|
}, []);
|
|
33023
33067
|
return {
|
|
33024
|
-
type:
|
|
33068
|
+
type: types2.length > 1 ? types2 : types2[0]
|
|
33025
33069
|
};
|
|
33026
33070
|
} else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
|
|
33027
|
-
const
|
|
33071
|
+
const types2 = options.reduce((acc, x2) => {
|
|
33028
33072
|
const type = typeof x2._def.value;
|
|
33029
33073
|
switch (type) {
|
|
33030
33074
|
case "string":
|
|
@@ -33043,8 +33087,8 @@ function parseUnionDef(def, refs) {
|
|
|
33043
33087
|
return acc;
|
|
33044
33088
|
}
|
|
33045
33089
|
}, []);
|
|
33046
|
-
if (
|
|
33047
|
-
const uniqueTypes =
|
|
33090
|
+
if (types2.length === options.length) {
|
|
33091
|
+
const uniqueTypes = types2.filter((x2, i, a) => a.indexOf(x2) === i);
|
|
33048
33092
|
return {
|
|
33049
33093
|
type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
|
|
33050
33094
|
enum: options.reduce((acc, x2) => {
|
|
@@ -33237,7 +33281,7 @@ function safeIsOptional(schema) {
|
|
|
33237
33281
|
}
|
|
33238
33282
|
}
|
|
33239
33283
|
var init_object = __esm(() => {
|
|
33240
|
-
|
|
33284
|
+
init_esm();
|
|
33241
33285
|
init_parseDef();
|
|
33242
33286
|
});
|
|
33243
33287
|
|
|
@@ -33446,7 +33490,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
33446
33490
|
}
|
|
33447
33491
|
};
|
|
33448
33492
|
var init_selectParser = __esm(() => {
|
|
33449
|
-
|
|
33493
|
+
init_esm();
|
|
33450
33494
|
init_array();
|
|
33451
33495
|
init_bigint();
|
|
33452
33496
|
init_branded();
|
|
@@ -33588,7 +33632,7 @@ var init_zodToJsonSchema = __esm(() => {
|
|
|
33588
33632
|
});
|
|
33589
33633
|
|
|
33590
33634
|
// node_modules/zod-to-json-schema/dist/esm/index.js
|
|
33591
|
-
var
|
|
33635
|
+
var init_esm2 = __esm(() => {
|
|
33592
33636
|
init_Options();
|
|
33593
33637
|
init_Refs();
|
|
33594
33638
|
init_parseDef();
|
|
@@ -33646,7 +33690,7 @@ function processCreateParams2(params) {
|
|
|
33646
33690
|
}
|
|
33647
33691
|
var McpZodTypeKind, Completable;
|
|
33648
33692
|
var init_completable = __esm(() => {
|
|
33649
|
-
|
|
33693
|
+
init_esm();
|
|
33650
33694
|
(function(McpZodTypeKind2) {
|
|
33651
33695
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
33652
33696
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
@@ -33941,7 +33985,7 @@ class McpServer {
|
|
|
33941
33985
|
const cb = rest[0];
|
|
33942
33986
|
this._registeredTools[name] = {
|
|
33943
33987
|
description,
|
|
33944
|
-
inputSchema: paramsSchema === undefined ? undefined :
|
|
33988
|
+
inputSchema: paramsSchema === undefined ? undefined : exports_external.object(paramsSchema),
|
|
33945
33989
|
callback: cb
|
|
33946
33990
|
};
|
|
33947
33991
|
this.setToolRequestHandlers();
|
|
@@ -33961,7 +34005,7 @@ class McpServer {
|
|
|
33961
34005
|
const cb = rest[0];
|
|
33962
34006
|
this._registeredPrompts[name] = {
|
|
33963
34007
|
description,
|
|
33964
|
-
argsSchema: argsSchema === undefined ? undefined :
|
|
34008
|
+
argsSchema: argsSchema === undefined ? undefined : exports_external.object(argsSchema),
|
|
33965
34009
|
callback: cb
|
|
33966
34010
|
};
|
|
33967
34011
|
this.setPromptRequestHandlers();
|
|
@@ -33986,9 +34030,9 @@ function createCompletionResult(suggestions) {
|
|
|
33986
34030
|
var EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT;
|
|
33987
34031
|
var init_mcp = __esm(() => {
|
|
33988
34032
|
init_server();
|
|
34033
|
+
init_esm2();
|
|
33989
34034
|
init_esm();
|
|
33990
|
-
|
|
33991
|
-
init_types();
|
|
34035
|
+
init_types2();
|
|
33992
34036
|
init_completable();
|
|
33993
34037
|
EMPTY_OBJECT_JSON_SCHEMA = {
|
|
33994
34038
|
type: "object"
|
|
@@ -34141,7 +34185,7 @@ function stringToBase64(str) {
|
|
|
34141
34185
|
}
|
|
34142
34186
|
var zodOutbound, zodInbound;
|
|
34143
34187
|
var init_base64 = __esm(() => {
|
|
34144
|
-
|
|
34188
|
+
init_esm();
|
|
34145
34189
|
zodOutbound = instanceOfType(Uint8Array).or(stringType().transform(stringToBytes));
|
|
34146
34190
|
zodInbound = instanceOfType(Uint8Array).or(stringType().transform(bytesFromBase64));
|
|
34147
34191
|
});
|
|
@@ -34192,9 +34236,9 @@ var init_config = __esm(() => {
|
|
|
34192
34236
|
SDK_METADATA = {
|
|
34193
34237
|
language: "typescript",
|
|
34194
34238
|
openapiDocVersion: "0.0.3",
|
|
34195
|
-
sdkVersion: "0.31.
|
|
34196
|
-
genVersion: "2.
|
|
34197
|
-
userAgent: "speakeasy-sdk/typescript 0.31.
|
|
34239
|
+
sdkVersion: "0.31.4",
|
|
34240
|
+
genVersion: "2.610.0",
|
|
34241
|
+
userAgent: "speakeasy-sdk/typescript 0.31.4 2.610.0 0.0.3 @greensecurity/javascript-sdk"
|
|
34198
34242
|
};
|
|
34199
34243
|
});
|
|
34200
34244
|
|
|
@@ -34435,7 +34479,7 @@ function env() {
|
|
|
34435
34479
|
}
|
|
34436
34480
|
var envSchema, envMemo = undefined;
|
|
34437
34481
|
var init_env = __esm(() => {
|
|
34438
|
-
|
|
34482
|
+
init_esm();
|
|
34439
34483
|
envSchema = objectType({
|
|
34440
34484
|
GREEN_SECURITY_TOKEN: stringType().optional(),
|
|
34441
34485
|
GREEN_SECURITY_BEARER_JWT: stringType().optional(),
|
|
@@ -35065,7 +35109,7 @@ async function valueToBase64(value) {
|
|
|
35065
35109
|
}
|
|
35066
35110
|
var base64Schema;
|
|
35067
35111
|
var init_shared = __esm(() => {
|
|
35068
|
-
|
|
35112
|
+
init_esm();
|
|
35069
35113
|
init_base64();
|
|
35070
35114
|
base64Schema = stringType().base64();
|
|
35071
35115
|
});
|
|
@@ -35251,7 +35295,7 @@ ${pre}${str}`;
|
|
|
35251
35295
|
}
|
|
35252
35296
|
var SDKValidationError;
|
|
35253
35297
|
var init_sdkvalidationerror = __esm(() => {
|
|
35254
|
-
|
|
35298
|
+
init_esm();
|
|
35255
35299
|
SDKValidationError = class SDKValidationError extends Error {
|
|
35256
35300
|
rawValue;
|
|
35257
35301
|
rawMessage;
|
|
@@ -35588,7 +35632,7 @@ var init_security = __esm(() => {
|
|
|
35588
35632
|
// src/models/errors/apierrorresponse.ts
|
|
35589
35633
|
var ApiErrorResponse, ApiErrorResponse$inboundSchema, ApiErrorResponse$outboundSchema, ApiErrorResponse$;
|
|
35590
35634
|
var init_apierrorresponse = __esm(() => {
|
|
35591
|
-
|
|
35635
|
+
init_esm();
|
|
35592
35636
|
ApiErrorResponse = class ApiErrorResponse extends Error {
|
|
35593
35637
|
error;
|
|
35594
35638
|
success;
|
|
@@ -35624,7 +35668,7 @@ var init_apierrorresponse = __esm(() => {
|
|
|
35624
35668
|
});
|
|
35625
35669
|
|
|
35626
35670
|
// src/models/errors/index.ts
|
|
35627
|
-
var
|
|
35671
|
+
var init_errors2 = __esm(() => {
|
|
35628
35672
|
init_apierror();
|
|
35629
35673
|
init_apierrorresponse();
|
|
35630
35674
|
init_httpclienterrors();
|
|
@@ -35634,7 +35678,7 @@ var init_errors = __esm(() => {
|
|
|
35634
35678
|
// src/models/operations/addvendormanagedbycompany.ts
|
|
35635
35679
|
var AddVendorManagedByCompanyRequestBody$inboundSchema, AddVendorManagedByCompanyRequestBody$outboundSchema, AddVendorManagedByCompanyRequestBody$, AddVendorManagedByCompanyRequest$inboundSchema, AddVendorManagedByCompanyRequest$outboundSchema, AddVendorManagedByCompanyRequest$, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$inboundSchema, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$outboundSchema, AddVendorManagedByCompanyAddVendorManagedByCompanyOk$;
|
|
35636
35680
|
var init_addvendormanagedbycompany = __esm(() => {
|
|
35637
|
-
|
|
35681
|
+
init_esm();
|
|
35638
35682
|
init_primitives();
|
|
35639
35683
|
AddVendorManagedByCompanyRequestBody$inboundSchema = objectType({
|
|
35640
35684
|
company_id: numberType().int()
|
|
@@ -35691,7 +35735,7 @@ var init_addvendormanagedbycompany = __esm(() => {
|
|
|
35691
35735
|
// src/models/operations/changepassword.ts
|
|
35692
35736
|
var ChangePasswordRequestBody$inboundSchema, ChangePasswordRequestBody$outboundSchema, ChangePasswordRequestBody$, ChangePasswordRequest$inboundSchema, ChangePasswordRequest$outboundSchema, ChangePasswordRequest$, ChangePasswordChangePasswordOk$inboundSchema, ChangePasswordChangePasswordOk$outboundSchema, ChangePasswordChangePasswordOk$;
|
|
35693
35737
|
var init_changepassword = __esm(() => {
|
|
35694
|
-
|
|
35738
|
+
init_esm();
|
|
35695
35739
|
init_primitives();
|
|
35696
35740
|
ChangePasswordRequestBody$inboundSchema = objectType({
|
|
35697
35741
|
old_password: stringType(),
|
|
@@ -35752,7 +35796,7 @@ var init_changepassword = __esm(() => {
|
|
|
35752
35796
|
// src/models/components/activestatus.ts
|
|
35753
35797
|
var ActiveStatus, ActiveStatus$inboundSchema, ActiveStatus$outboundSchema, ActiveStatus$;
|
|
35754
35798
|
var init_activestatus = __esm(() => {
|
|
35755
|
-
|
|
35799
|
+
init_esm();
|
|
35756
35800
|
ActiveStatus = {
|
|
35757
35801
|
Active: "Active",
|
|
35758
35802
|
Inactive: "Inactive",
|
|
@@ -35769,7 +35813,7 @@ var init_activestatus = __esm(() => {
|
|
|
35769
35813
|
// src/models/components/product.ts
|
|
35770
35814
|
var Product$inboundSchema, Product$outboundSchema, Product$;
|
|
35771
35815
|
var init_product = __esm(() => {
|
|
35772
|
-
|
|
35816
|
+
init_esm();
|
|
35773
35817
|
Product$inboundSchema = objectType({
|
|
35774
35818
|
id: numberType().int().optional(),
|
|
35775
35819
|
title: nullableType(stringType()).optional(),
|
|
@@ -35789,7 +35833,7 @@ var init_product = __esm(() => {
|
|
|
35789
35833
|
// src/models/components/productvariant.ts
|
|
35790
35834
|
var ProductVariant$inboundSchema, ProductVariant$outboundSchema, ProductVariant$;
|
|
35791
35835
|
var init_productvariant = __esm(() => {
|
|
35792
|
-
|
|
35836
|
+
init_esm();
|
|
35793
35837
|
ProductVariant$inboundSchema = objectType({
|
|
35794
35838
|
id: numberType().int().optional(),
|
|
35795
35839
|
amount: numberType().int().optional(),
|
|
@@ -35809,7 +35853,7 @@ var init_productvariant = __esm(() => {
|
|
|
35809
35853
|
// src/models/components/invoiceitem.ts
|
|
35810
35854
|
var Variant$inboundSchema, Variant$outboundSchema, Variant$, InvoiceItemProduct$inboundSchema, InvoiceItemProduct$outboundSchema, InvoiceItemProduct$, InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
|
|
35811
35855
|
var init_invoiceitem = __esm(() => {
|
|
35812
|
-
|
|
35856
|
+
init_esm();
|
|
35813
35857
|
init_primitives();
|
|
35814
35858
|
init_product();
|
|
35815
35859
|
init_productvariant();
|
|
@@ -35876,7 +35920,7 @@ var init_invoiceitem = __esm(() => {
|
|
|
35876
35920
|
// src/models/components/invoicetransaction.ts
|
|
35877
35921
|
var InvoiceTransaction$inboundSchema, InvoiceTransaction$outboundSchema, InvoiceTransaction$;
|
|
35878
35922
|
var init_invoicetransaction = __esm(() => {
|
|
35879
|
-
|
|
35923
|
+
init_esm();
|
|
35880
35924
|
init_primitives();
|
|
35881
35925
|
InvoiceTransaction$inboundSchema = objectType({
|
|
35882
35926
|
date_processed: nullableType(stringType()).optional(),
|
|
@@ -35919,7 +35963,7 @@ var init_invoicetransaction = __esm(() => {
|
|
|
35919
35963
|
// src/models/components/invoice.ts
|
|
35920
35964
|
var Invoice$inboundSchema, Invoice$outboundSchema, Invoice$;
|
|
35921
35965
|
var init_invoice = __esm(() => {
|
|
35922
|
-
|
|
35966
|
+
init_esm();
|
|
35923
35967
|
init_primitives();
|
|
35924
35968
|
init_invoiceitem();
|
|
35925
35969
|
init_invoicetransaction();
|
|
@@ -35978,7 +36022,7 @@ var init_invoice = __esm(() => {
|
|
|
35978
36022
|
// src/models/components/backgroundcheckresult.ts
|
|
35979
36023
|
var BackgroundCheckResultStatus, DeliveryMethod, BackgroundCheckResultStatus$inboundSchema, BackgroundCheckResultStatus$outboundSchema, BackgroundCheckResultStatus$, DeliveryMethod$inboundSchema, DeliveryMethod$outboundSchema, DeliveryMethod$, BackgroundCheckResultInvoice$inboundSchema, BackgroundCheckResultInvoice$outboundSchema, BackgroundCheckResultInvoice$, Bcp$inboundSchema, Bcp$outboundSchema, Bcp$, BackgroundCheckResultLocation$inboundSchema, BackgroundCheckResultLocation$outboundSchema, BackgroundCheckResultLocation$, BackgroundCheckResult$inboundSchema, BackgroundCheckResult$outboundSchema, BackgroundCheckResult$;
|
|
35980
36024
|
var init_backgroundcheckresult = __esm(() => {
|
|
35981
|
-
|
|
36025
|
+
init_esm();
|
|
35982
36026
|
init_primitives();
|
|
35983
36027
|
init_invoice();
|
|
35984
36028
|
BackgroundCheckResultStatus = {
|
|
@@ -36124,7 +36168,7 @@ var init_rfcdate = __esm(() => {
|
|
|
36124
36168
|
// src/models/components/company.ts
|
|
36125
36169
|
var CompanyLocation$inboundSchema, CompanyLocation$outboundSchema, CompanyLocation$, CompanyContact$inboundSchema, CompanyContact$outboundSchema, CompanyContact$, Tax$inboundSchema, Tax$outboundSchema, Tax$, Stats$inboundSchema, Stats$outboundSchema, Stats$, Company$inboundSchema, Company$outboundSchema, Company$;
|
|
36126
36170
|
var init_company = __esm(() => {
|
|
36127
|
-
|
|
36171
|
+
init_esm();
|
|
36128
36172
|
init_primitives();
|
|
36129
36173
|
init_rfcdate();
|
|
36130
36174
|
CompanyLocation$inboundSchema = objectType({
|
|
@@ -36268,7 +36312,7 @@ var init_company = __esm(() => {
|
|
|
36268
36312
|
// src/models/components/departmentsummary.ts
|
|
36269
36313
|
var DepartmentSummary$inboundSchema, DepartmentSummary$outboundSchema, DepartmentSummary$;
|
|
36270
36314
|
var init_departmentsummary = __esm(() => {
|
|
36271
|
-
|
|
36315
|
+
init_esm();
|
|
36272
36316
|
DepartmentSummary$inboundSchema = objectType({
|
|
36273
36317
|
id: numberType().int(),
|
|
36274
36318
|
name: stringType()
|
|
@@ -36286,7 +36330,7 @@ var init_departmentsummary = __esm(() => {
|
|
|
36286
36330
|
// src/models/components/facilitysummary.ts
|
|
36287
36331
|
var FacilitySummary$inboundSchema, FacilitySummary$outboundSchema, FacilitySummary$;
|
|
36288
36332
|
var init_facilitysummary = __esm(() => {
|
|
36289
|
-
|
|
36333
|
+
init_esm();
|
|
36290
36334
|
FacilitySummary$inboundSchema = objectType({
|
|
36291
36335
|
id: numberType().int().optional(),
|
|
36292
36336
|
name: stringType().optional()
|
|
@@ -36304,7 +36348,7 @@ var init_facilitysummary = __esm(() => {
|
|
|
36304
36348
|
// src/models/components/systemsummary.ts
|
|
36305
36349
|
var SystemSummary$inboundSchema, SystemSummary$outboundSchema, SystemSummary$;
|
|
36306
36350
|
var init_systemsummary = __esm(() => {
|
|
36307
|
-
|
|
36351
|
+
init_esm();
|
|
36308
36352
|
SystemSummary$inboundSchema = objectType({
|
|
36309
36353
|
id: numberType().int(),
|
|
36310
36354
|
name: stringType()
|
|
@@ -36322,7 +36366,7 @@ var init_systemsummary = __esm(() => {
|
|
|
36322
36366
|
// src/models/components/contact.ts
|
|
36323
36367
|
var Status, ContactFacility$inboundSchema, ContactFacility$outboundSchema, ContactFacility$, System$inboundSchema, System$outboundSchema, System$, Status$inboundSchema, Status$outboundSchema, Status$, ContactDepartment$inboundSchema, ContactDepartment$outboundSchema, ContactDepartment$, Contact$inboundSchema, Contact$outboundSchema, Contact$;
|
|
36324
36368
|
var init_contact = __esm(() => {
|
|
36325
|
-
|
|
36369
|
+
init_esm();
|
|
36326
36370
|
init_departmentsummary();
|
|
36327
36371
|
init_facilitysummary();
|
|
36328
36372
|
init_systemsummary();
|
|
@@ -36378,7 +36422,7 @@ var init_contact = __esm(() => {
|
|
|
36378
36422
|
// src/models/components/credentialdocument.ts
|
|
36379
36423
|
var CredentialDocumentCredential$inboundSchema, CredentialDocumentCredential$outboundSchema, CredentialDocumentCredential$, FileT$inboundSchema, FileT$outboundSchema, FileT$, CredentialDocument$inboundSchema, CredentialDocument$outboundSchema, CredentialDocument$;
|
|
36380
36424
|
var init_credentialdocument = __esm(() => {
|
|
36381
|
-
|
|
36425
|
+
init_esm();
|
|
36382
36426
|
init_primitives();
|
|
36383
36427
|
init_credential();
|
|
36384
36428
|
CredentialDocumentCredential$inboundSchema = unionType([lazyType(() => Credential$inboundSchema), numberType().int()]);
|
|
@@ -36442,7 +36486,7 @@ var init_credentialdocument = __esm(() => {
|
|
|
36442
36486
|
// src/models/components/credential.ts
|
|
36443
36487
|
var CredentialType, ValidFor, CredentialStatus1, CredentialType$inboundSchema, CredentialType$outboundSchema, CredentialType$, ValidFor$inboundSchema, ValidFor$outboundSchema, ValidFor$, CredentialStatus1$inboundSchema, CredentialStatus1$outboundSchema, CredentialStatus1$, Credential$inboundSchema, Credential$outboundSchema, Credential$;
|
|
36444
36488
|
var init_credential = __esm(() => {
|
|
36445
|
-
|
|
36489
|
+
init_esm();
|
|
36446
36490
|
init_primitives();
|
|
36447
36491
|
init_credentialdocument();
|
|
36448
36492
|
CredentialType = {
|
|
@@ -36563,7 +36607,7 @@ var init_credential = __esm(() => {
|
|
|
36563
36607
|
// src/models/components/credentialstatus.ts
|
|
36564
36608
|
var CredentialStatus, CredentialStatus$inboundSchema, CredentialStatus$outboundSchema, CredentialStatus$;
|
|
36565
36609
|
var init_credentialstatus = __esm(() => {
|
|
36566
|
-
|
|
36610
|
+
init_esm();
|
|
36567
36611
|
CredentialStatus = {
|
|
36568
36612
|
PendingApproval: "Pending Approval",
|
|
36569
36613
|
PendingVendor: "Pending Vendor",
|
|
@@ -36585,7 +36629,7 @@ var init_credentialstatus = __esm(() => {
|
|
|
36585
36629
|
// src/models/components/credit.ts
|
|
36586
36630
|
var Action, Action$inboundSchema, Action$outboundSchema, Action$, Credit$inboundSchema, Credit$outboundSchema, Credit$;
|
|
36587
36631
|
var init_credit = __esm(() => {
|
|
36588
|
-
|
|
36632
|
+
init_esm();
|
|
36589
36633
|
init_primitives();
|
|
36590
36634
|
Action = {
|
|
36591
36635
|
Credit: "credit",
|
|
@@ -36635,7 +36679,7 @@ var init_credit = __esm(() => {
|
|
|
36635
36679
|
// src/models/components/datarequest.ts
|
|
36636
36680
|
var DataType, DataType$inboundSchema, DataType$outboundSchema, DataType$, Url$inboundSchema, Url$outboundSchema, Url$, DataRequestFile$inboundSchema, DataRequestFile$outboundSchema, DataRequestFile$, DataRequest$inboundSchema, DataRequest$outboundSchema, DataRequest$;
|
|
36637
36681
|
var init_datarequest = __esm(() => {
|
|
36638
|
-
|
|
36682
|
+
init_esm();
|
|
36639
36683
|
init_primitives();
|
|
36640
36684
|
DataType = {
|
|
36641
36685
|
File: "File",
|
|
@@ -36739,7 +36783,7 @@ var init_datarequest = __esm(() => {
|
|
|
36739
36783
|
// src/models/components/department.ts
|
|
36740
36784
|
var Department$inboundSchema, Department$outboundSchema, Department$;
|
|
36741
36785
|
var init_department = __esm(() => {
|
|
36742
|
-
|
|
36786
|
+
init_esm();
|
|
36743
36787
|
Department$inboundSchema = objectType({
|
|
36744
36788
|
id: numberType().int(),
|
|
36745
36789
|
name: stringType()
|
|
@@ -36757,7 +36801,7 @@ var init_department = __esm(() => {
|
|
|
36757
36801
|
// src/models/components/desc.ts
|
|
36758
36802
|
var Desc$inboundSchema, Desc$outboundSchema, Desc$;
|
|
36759
36803
|
var init_desc = __esm(() => {
|
|
36760
|
-
|
|
36804
|
+
init_esm();
|
|
36761
36805
|
Desc$inboundSchema = unionType([booleanType(), numberType().int()]);
|
|
36762
36806
|
Desc$outboundSchema = unionType([booleanType(), numberType().int()]);
|
|
36763
36807
|
((Desc$) => {
|
|
@@ -36769,7 +36813,7 @@ var init_desc = __esm(() => {
|
|
|
36769
36813
|
// src/models/components/expand.ts
|
|
36770
36814
|
var Expand, Expand$inboundSchema, Expand$outboundSchema, Expand$;
|
|
36771
36815
|
var init_expand = __esm(() => {
|
|
36772
|
-
|
|
36816
|
+
init_esm();
|
|
36773
36817
|
Expand = {
|
|
36774
36818
|
User: "user",
|
|
36775
36819
|
ContactFacility: "contact.facility",
|
|
@@ -36798,6 +36842,7 @@ var init_expand = __esm(() => {
|
|
|
36798
36842
|
VendorPaymentResponsibility: "vendor.payment_responsibility",
|
|
36799
36843
|
VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires",
|
|
36800
36844
|
VendorRegistrationData: "vendor.registration_data",
|
|
36845
|
+
VendorRegistrationFinished: "vendor.registration_finished",
|
|
36801
36846
|
SupportArticleDescription: "support_article.description",
|
|
36802
36847
|
SupportArticlePublished: "support_article.published",
|
|
36803
36848
|
SupportArticleNotes: "support_article.notes",
|
|
@@ -36833,7 +36878,7 @@ var init_expand = __esm(() => {
|
|
|
36833
36878
|
// src/models/components/imageset.ts
|
|
36834
36879
|
var ImageSet$inboundSchema, ImageSet$outboundSchema, ImageSet$;
|
|
36835
36880
|
var init_imageset = __esm(() => {
|
|
36836
|
-
|
|
36881
|
+
init_esm();
|
|
36837
36882
|
ImageSet$inboundSchema = objectType({
|
|
36838
36883
|
tiny: stringType().optional(),
|
|
36839
36884
|
thumb: stringType().optional(),
|
|
@@ -36855,7 +36900,7 @@ var init_imageset = __esm(() => {
|
|
|
36855
36900
|
// src/models/components/vendortype.ts
|
|
36856
36901
|
var VendorType$inboundSchema, VendorType$outboundSchema, VendorType$;
|
|
36857
36902
|
var init_vendortype = __esm(() => {
|
|
36858
|
-
|
|
36903
|
+
init_esm();
|
|
36859
36904
|
VendorType$inboundSchema = objectType({
|
|
36860
36905
|
id: numberType().int().optional(),
|
|
36861
36906
|
name: stringType().optional()
|
|
@@ -36873,7 +36918,7 @@ var init_vendortype = __esm(() => {
|
|
|
36873
36918
|
// src/models/components/facility.ts
|
|
36874
36919
|
var VendorGuestLimitAndOr, AppointmentPolicy$inboundSchema, AppointmentPolicy$outboundSchema, AppointmentPolicy$, Contacts$inboundSchema, Contacts$outboundSchema, Contacts$, VendorCounts$inboundSchema, VendorCounts$outboundSchema, VendorCounts$, FacilityFluCredential$inboundSchema, FacilityFluCredential$outboundSchema, FacilityFluCredential$, FluCredential$inboundSchema, FluCredential$outboundSchema, FluCredential$, Location$inboundSchema, Location$outboundSchema, Location$, ScrubsPolicy$inboundSchema, ScrubsPolicy$outboundSchema, ScrubsPolicy$, FacilitySystem$inboundSchema, FacilitySystem$outboundSchema, FacilitySystem$, Uses$inboundSchema, Uses$outboundSchema, Uses$, VendorGuestLimitAndOr$inboundSchema, VendorGuestLimitAndOr$outboundSchema, VendorGuestLimitAndOr$, VendorGuestPolicy$inboundSchema, VendorGuestPolicy$outboundSchema, VendorGuestPolicy$, VendorPolicy$inboundSchema, VendorPolicy$outboundSchema, VendorPolicy$, VisitorPolicy$inboundSchema, VisitorPolicy$outboundSchema, VisitorPolicy$, WorkflowPolicy$inboundSchema, WorkflowPolicy$outboundSchema, WorkflowPolicy$, Facility$inboundSchema, Facility$outboundSchema, Facility$;
|
|
36875
36920
|
var init_facility = __esm(() => {
|
|
36876
|
-
|
|
36921
|
+
init_esm();
|
|
36877
36922
|
init_primitives();
|
|
36878
36923
|
init_rfcdate();
|
|
36879
36924
|
init_contact();
|
|
@@ -37363,7 +37408,7 @@ var init_facility = __esm(() => {
|
|
|
37363
37408
|
// src/models/components/financialstatus.ts
|
|
37364
37409
|
var FinancialStatus, FinancialStatus$inboundSchema, FinancialStatus$outboundSchema, FinancialStatus$;
|
|
37365
37410
|
var init_financialstatus = __esm(() => {
|
|
37366
|
-
|
|
37411
|
+
init_esm();
|
|
37367
37412
|
FinancialStatus = {
|
|
37368
37413
|
Pending: "pending",
|
|
37369
37414
|
Authorized: "authorized",
|
|
@@ -37393,7 +37438,7 @@ var init_financialstatus = __esm(() => {
|
|
|
37393
37438
|
// src/models/components/zoneconfig.ts
|
|
37394
37439
|
var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, AppliesTo$inboundSchema, AppliesTo$outboundSchema, AppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
|
|
37395
37440
|
var init_zoneconfig = __esm(() => {
|
|
37396
|
-
|
|
37441
|
+
init_esm();
|
|
37397
37442
|
init_primitives();
|
|
37398
37443
|
VendorGroupId1$inboundSchema = objectType({
|
|
37399
37444
|
id: numberType().int().optional(),
|
|
@@ -37662,7 +37707,7 @@ var init_zoneconfig = __esm(() => {
|
|
|
37662
37707
|
// src/models/components/zone.ts
|
|
37663
37708
|
var Two$inboundSchema, Two$outboundSchema, Two$, ZoneFacility$inboundSchema, ZoneFacility$outboundSchema, ZoneFacility$, ZoneDepartment$inboundSchema, ZoneDepartment$outboundSchema, ZoneDepartment$, ZoneLocation$inboundSchema, ZoneLocation$outboundSchema, ZoneLocation$, KioskOfflineNotification$inboundSchema, KioskOfflineNotification$outboundSchema, KioskOfflineNotification$, ZoneVendorPolicy$inboundSchema, ZoneVendorPolicy$outboundSchema, ZoneVendorPolicy$, ZoneVisitorCheckinPolicy$inboundSchema, ZoneVisitorCheckinPolicy$outboundSchema, ZoneVisitorCheckinPolicy$, ZoneVisitRequestPolicy$inboundSchema, ZoneVisitRequestPolicy$outboundSchema, ZoneVisitRequestPolicy$, PrinterConfig$inboundSchema, PrinterConfig$outboundSchema, PrinterConfig$, GpsCheckinPolicy$inboundSchema, GpsCheckinPolicy$outboundSchema, GpsCheckinPolicy$, Zone$inboundSchema, Zone$outboundSchema, Zone$;
|
|
37664
37709
|
var init_zone = __esm(() => {
|
|
37665
|
-
|
|
37710
|
+
init_esm();
|
|
37666
37711
|
init_primitives();
|
|
37667
37712
|
init_department();
|
|
37668
37713
|
init_facility();
|
|
@@ -37998,7 +38043,7 @@ var init_zone = __esm(() => {
|
|
|
37998
38043
|
// src/models/components/handoff.ts
|
|
37999
38044
|
var Handoff$inboundSchema, Handoff$outboundSchema, Handoff$;
|
|
38000
38045
|
var init_handoff = __esm(() => {
|
|
38001
|
-
|
|
38046
|
+
init_esm();
|
|
38002
38047
|
init_primitives();
|
|
38003
38048
|
init_zone();
|
|
38004
38049
|
Handoff$inboundSchema = objectType({
|
|
@@ -38046,7 +38091,7 @@ var init_handoff = __esm(() => {
|
|
|
38046
38091
|
// src/models/components/loginemailandpassword.ts
|
|
38047
38092
|
var LoginEmailAndPassword$inboundSchema, LoginEmailAndPassword$outboundSchema, LoginEmailAndPassword$;
|
|
38048
38093
|
var init_loginemailandpassword = __esm(() => {
|
|
38049
|
-
|
|
38094
|
+
init_esm();
|
|
38050
38095
|
init_primitives();
|
|
38051
38096
|
LoginEmailAndPassword$inboundSchema = objectType({
|
|
38052
38097
|
email: stringType(),
|
|
@@ -38075,7 +38120,7 @@ var init_loginemailandpassword = __esm(() => {
|
|
|
38075
38120
|
// src/models/components/loginrequirementsfromemail.ts
|
|
38076
38121
|
var LoginRequirementsFromEmail$inboundSchema, LoginRequirementsFromEmail$outboundSchema, LoginRequirementsFromEmail$;
|
|
38077
38122
|
var init_loginrequirementsfromemail = __esm(() => {
|
|
38078
|
-
|
|
38123
|
+
init_esm();
|
|
38079
38124
|
init_primitives();
|
|
38080
38125
|
LoginRequirementsFromEmail$inboundSchema = objectType({
|
|
38081
38126
|
email: stringType(),
|
|
@@ -38102,7 +38147,7 @@ var init_loginrequirementsfromemail = __esm(() => {
|
|
|
38102
38147
|
// src/models/components/mfarequiredresponse.ts
|
|
38103
38148
|
var MfaRequiredResponseRequires, MfaMethod, MfaRequiredResponseRequires$inboundSchema, MfaRequiredResponseRequires$outboundSchema, MfaRequiredResponseRequires$, MfaMethod$inboundSchema, MfaMethod$outboundSchema, MfaMethod$, MfaRequiredResponse$inboundSchema, MfaRequiredResponse$outboundSchema, MfaRequiredResponse$;
|
|
38104
38149
|
var init_mfarequiredresponse = __esm(() => {
|
|
38105
|
-
|
|
38150
|
+
init_esm();
|
|
38106
38151
|
init_primitives();
|
|
38107
38152
|
MfaRequiredResponseRequires = {
|
|
38108
38153
|
MfaCode: "mfa_code"
|
|
@@ -38156,7 +38201,7 @@ var init_mfarequiredresponse = __esm(() => {
|
|
|
38156
38201
|
// src/models/components/pager.ts
|
|
38157
38202
|
var Pager$inboundSchema, Pager$outboundSchema, Pager$;
|
|
38158
38203
|
var init_pager = __esm(() => {
|
|
38159
|
-
|
|
38204
|
+
init_esm();
|
|
38160
38205
|
init_primitives();
|
|
38161
38206
|
Pager$inboundSchema = objectType({
|
|
38162
38207
|
base_url: stringType(),
|
|
@@ -38199,7 +38244,7 @@ var init_pager = __esm(() => {
|
|
|
38199
38244
|
// src/models/components/passwordrequiredresponse.ts
|
|
38200
38245
|
var Requires, Requires$inboundSchema, Requires$outboundSchema, Requires$, PasswordRequiredResponse$inboundSchema, PasswordRequiredResponse$outboundSchema, PasswordRequiredResponse$;
|
|
38201
38246
|
var init_passwordrequiredresponse = __esm(() => {
|
|
38202
|
-
|
|
38247
|
+
init_esm();
|
|
38203
38248
|
Requires = {
|
|
38204
38249
|
Password: "password"
|
|
38205
38250
|
};
|
|
@@ -38228,7 +38273,7 @@ var init_passwordrequiredresponse = __esm(() => {
|
|
|
38228
38273
|
// src/models/components/samlloginrequiredresponse.ts
|
|
38229
38274
|
var SamlLoginRequiredResponseRequires, SamlLoginRequiredResponseRequires$inboundSchema, SamlLoginRequiredResponseRequires$outboundSchema, SamlLoginRequiredResponseRequires$, SamlLoginRequiredResponse$inboundSchema, SamlLoginRequiredResponse$outboundSchema, SamlLoginRequiredResponse$;
|
|
38230
38275
|
var init_samlloginrequiredresponse = __esm(() => {
|
|
38231
|
-
|
|
38276
|
+
init_esm();
|
|
38232
38277
|
init_primitives();
|
|
38233
38278
|
SamlLoginRequiredResponseRequires = {
|
|
38234
38279
|
SamlLogin: "saml_login"
|
|
@@ -38272,7 +38317,7 @@ var init_samlloginrequiredresponse = __esm(() => {
|
|
|
38272
38317
|
// src/models/components/scantype.ts
|
|
38273
38318
|
var ScanType, ScanType$inboundSchema, ScanType$outboundSchema, ScanType$;
|
|
38274
38319
|
var init_scantype = __esm(() => {
|
|
38275
|
-
|
|
38320
|
+
init_esm();
|
|
38276
38321
|
ScanType = {
|
|
38277
38322
|
In: "In",
|
|
38278
38323
|
Out: "Out",
|
|
@@ -38289,7 +38334,7 @@ var init_scantype = __esm(() => {
|
|
|
38289
38334
|
// src/models/components/screeningresponse.ts
|
|
38290
38335
|
var ScreeningResponse$inboundSchema, ScreeningResponse$outboundSchema, ScreeningResponse$;
|
|
38291
38336
|
var init_screeningresponse = __esm(() => {
|
|
38292
|
-
|
|
38337
|
+
init_esm();
|
|
38293
38338
|
init_primitives();
|
|
38294
38339
|
ScreeningResponse$inboundSchema = objectType({
|
|
38295
38340
|
id: numberType().int().optional(),
|
|
@@ -38352,7 +38397,7 @@ var init_screeningresponse = __esm(() => {
|
|
|
38352
38397
|
// src/models/components/security.ts
|
|
38353
38398
|
var Security$inboundSchema, Security$outboundSchema, Security$;
|
|
38354
38399
|
var init_security2 = __esm(() => {
|
|
38355
|
-
|
|
38400
|
+
init_esm();
|
|
38356
38401
|
init_primitives();
|
|
38357
38402
|
Security$inboundSchema = objectType({
|
|
38358
38403
|
token: stringType().optional(),
|
|
@@ -38379,7 +38424,7 @@ var init_security2 = __esm(() => {
|
|
|
38379
38424
|
// src/models/components/state.ts
|
|
38380
38425
|
var State, State$inboundSchema, State$outboundSchema, State$;
|
|
38381
38426
|
var init_state = __esm(() => {
|
|
38382
|
-
|
|
38427
|
+
init_esm();
|
|
38383
38428
|
State = {
|
|
38384
38429
|
Al: "AL",
|
|
38385
38430
|
Ak: "AK",
|
|
@@ -38444,7 +38489,7 @@ var init_state = __esm(() => {
|
|
|
38444
38489
|
// src/models/components/subscription.ts
|
|
38445
38490
|
var Subscription$inboundSchema, Subscription$outboundSchema, Subscription$;
|
|
38446
38491
|
var init_subscription = __esm(() => {
|
|
38447
|
-
|
|
38492
|
+
init_esm();
|
|
38448
38493
|
init_primitives();
|
|
38449
38494
|
init_financialstatus();
|
|
38450
38495
|
init_invoiceitem();
|
|
@@ -38501,7 +38546,7 @@ var init_subscription = __esm(() => {
|
|
|
38501
38546
|
// src/models/components/supervisor.ts
|
|
38502
38547
|
var Supervisor$inboundSchema, Supervisor$outboundSchema, Supervisor$;
|
|
38503
38548
|
var init_supervisor = __esm(() => {
|
|
38504
|
-
|
|
38549
|
+
init_esm();
|
|
38505
38550
|
Supervisor$inboundSchema = objectType({
|
|
38506
38551
|
name: nullableType(stringType()).optional(),
|
|
38507
38552
|
email: anyType().optional(),
|
|
@@ -38521,7 +38566,7 @@ var init_supervisor = __esm(() => {
|
|
|
38521
38566
|
// src/models/components/supportarticle.ts
|
|
38522
38567
|
var SupportArticle$inboundSchema, SupportArticle$outboundSchema, SupportArticle$;
|
|
38523
38568
|
var init_supportarticle = __esm(() => {
|
|
38524
|
-
|
|
38569
|
+
init_esm();
|
|
38525
38570
|
init_primitives();
|
|
38526
38571
|
SupportArticle$inboundSchema = objectType({
|
|
38527
38572
|
id: numberType().int(),
|
|
@@ -38560,7 +38605,7 @@ var init_supportarticle = __esm(() => {
|
|
|
38560
38605
|
// src/models/components/userlocation.ts
|
|
38561
38606
|
var Timezone, Timezone$inboundSchema, Timezone$outboundSchema, Timezone$, UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
|
|
38562
38607
|
var init_userlocation = __esm(() => {
|
|
38563
|
-
|
|
38608
|
+
init_esm();
|
|
38564
38609
|
init_primitives();
|
|
38565
38610
|
init_state();
|
|
38566
38611
|
Timezone = {
|
|
@@ -38765,7 +38810,7 @@ var init_userlocation = __esm(() => {
|
|
|
38765
38810
|
// src/models/components/vendorjobtitle.ts
|
|
38766
38811
|
var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
|
|
38767
38812
|
var init_vendorjobtitle = __esm(() => {
|
|
38768
|
-
|
|
38813
|
+
init_esm();
|
|
38769
38814
|
VendorJobTitle$inboundSchema = objectType({
|
|
38770
38815
|
id: numberType().int(),
|
|
38771
38816
|
job: stringType()
|
|
@@ -38783,7 +38828,7 @@ var init_vendorjobtitle = __esm(() => {
|
|
|
38783
38828
|
// src/models/components/vendor.ts
|
|
38784
38829
|
var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorJob$inboundSchema, VendorJob$outboundSchema, VendorJob$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Two2$inboundSchema, Two2$outboundSchema, Two2$, PaymentProfile2$inboundSchema, PaymentProfile2$outboundSchema, PaymentProfile2$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
|
|
38785
38830
|
var init_vendor = __esm(() => {
|
|
38786
|
-
|
|
38831
|
+
init_esm();
|
|
38787
38832
|
init_primitives();
|
|
38788
38833
|
init_company();
|
|
38789
38834
|
init_department();
|
|
@@ -39023,6 +39068,7 @@ var init_vendor = __esm(() => {
|
|
|
39023
39068
|
title: nullableType(stringType()).optional(),
|
|
39024
39069
|
user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
|
|
39025
39070
|
registration_data: nullableType(recordType(anyType())).optional(),
|
|
39071
|
+
registration_finished: nullableType(booleanType()).optional(),
|
|
39026
39072
|
vendor_job: nullableType(unionType([VendorJobTitle$inboundSchema, numberType().int()])).optional(),
|
|
39027
39073
|
vendor_type: nullableType(unionType([VendorType$inboundSchema, numberType().int()])).optional(),
|
|
39028
39074
|
supervisor: nullableType(Supervisor$inboundSchema).optional(),
|
|
@@ -39049,6 +39095,7 @@ var init_vendor = __esm(() => {
|
|
|
39049
39095
|
email_recepient: "emailRecepient",
|
|
39050
39096
|
send_weekly_summary_email: "sendWeeklySummaryEmail",
|
|
39051
39097
|
registration_data: "registrationData",
|
|
39098
|
+
registration_finished: "registrationFinished",
|
|
39052
39099
|
vendor_job: "vendorJob",
|
|
39053
39100
|
vendor_type: "vendorType",
|
|
39054
39101
|
qr_code: "qrCode",
|
|
@@ -39071,6 +39118,7 @@ var init_vendor = __esm(() => {
|
|
|
39071
39118
|
title: nullableType(stringType()).optional(),
|
|
39072
39119
|
user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
|
|
39073
39120
|
registrationData: nullableType(recordType(anyType())).optional(),
|
|
39121
|
+
registrationFinished: nullableType(booleanType()).optional(),
|
|
39074
39122
|
vendorJob: nullableType(unionType([VendorJobTitle$outboundSchema, numberType().int()])).optional(),
|
|
39075
39123
|
vendorType: nullableType(unionType([VendorType$outboundSchema, numberType().int()])).optional(),
|
|
39076
39124
|
supervisor: nullableType(Supervisor$outboundSchema).optional(),
|
|
@@ -39097,6 +39145,7 @@ var init_vendor = __esm(() => {
|
|
|
39097
39145
|
emailRecepient: "email_recepient",
|
|
39098
39146
|
sendWeeklySummaryEmail: "send_weekly_summary_email",
|
|
39099
39147
|
registrationData: "registration_data",
|
|
39148
|
+
registrationFinished: "registration_finished",
|
|
39100
39149
|
vendorJob: "vendor_job",
|
|
39101
39150
|
vendorType: "vendor_type",
|
|
39102
39151
|
qrCode: "qr_code",
|
|
@@ -39121,7 +39170,7 @@ var init_vendor = __esm(() => {
|
|
|
39121
39170
|
// src/models/components/user.ts
|
|
39122
39171
|
var UserType, TokenType, UserType$inboundSchema, UserType$outboundSchema, UserType$, UserUser$inboundSchema, UserUser$outboundSchema, UserUser$, TokenType$inboundSchema, TokenType$outboundSchema, TokenType$, UserToken$inboundSchema, UserToken$outboundSchema, UserToken$, InventoryManager$inboundSchema, InventoryManager$outboundSchema, InventoryManager$, User$inboundSchema, User$outboundSchema, User$;
|
|
39123
39172
|
var init_user = __esm(() => {
|
|
39124
|
-
|
|
39173
|
+
init_esm();
|
|
39125
39174
|
init_primitives();
|
|
39126
39175
|
init_company();
|
|
39127
39176
|
init_contact();
|
|
@@ -39268,7 +39317,7 @@ var init_user = __esm(() => {
|
|
|
39268
39317
|
// src/models/components/vendoradditionalfacilityfields.ts
|
|
39269
39318
|
var VendorAdditionalFacilityFields$inboundSchema, VendorAdditionalFacilityFields$outboundSchema, VendorAdditionalFacilityFields$;
|
|
39270
39319
|
var init_vendoradditionalfacilityfields = __esm(() => {
|
|
39271
|
-
|
|
39320
|
+
init_esm();
|
|
39272
39321
|
VendorAdditionalFacilityFields$inboundSchema = objectType({
|
|
39273
39322
|
id: numberType().int().optional(),
|
|
39274
39323
|
system: nullableType(stringType()).optional(),
|
|
@@ -39292,7 +39341,7 @@ var init_vendoradditionalfacilityfields = __esm(() => {
|
|
|
39292
39341
|
// src/models/components/vendorcredentialfile.ts
|
|
39293
39342
|
var VendorCredential$inboundSchema, VendorCredential$outboundSchema, VendorCredential$, VendorCredentialFileFile$inboundSchema, VendorCredentialFileFile$outboundSchema, VendorCredentialFileFile$, VendorCredentialFileCredentialDocument$inboundSchema, VendorCredentialFileCredentialDocument$outboundSchema, VendorCredentialFileCredentialDocument$, VendorCredentialFile$inboundSchema, VendorCredentialFile$outboundSchema, VendorCredentialFile$;
|
|
39294
39343
|
var init_vendorcredentialfile = __esm(() => {
|
|
39295
|
-
|
|
39344
|
+
init_esm();
|
|
39296
39345
|
init_primitives();
|
|
39297
39346
|
init_credentialdocument();
|
|
39298
39347
|
init_vendorcredentialsummary();
|
|
@@ -39395,7 +39444,7 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39395
39444
|
// src/models/components/vendorcredentialsummary.ts
|
|
39396
39445
|
var VendorCredentialSummaryCredential$inboundSchema, VendorCredentialSummaryCredential$outboundSchema, VendorCredentialSummaryCredential$, VendorCredentialSummaryVendor$inboundSchema, VendorCredentialSummaryVendor$outboundSchema, VendorCredentialSummaryVendor$, VendorCredentialSummaryInvoice$inboundSchema, VendorCredentialSummaryInvoice$outboundSchema, VendorCredentialSummaryInvoice$, UnsatisfiedDependencies$inboundSchema, UnsatisfiedDependencies$outboundSchema, UnsatisfiedDependencies$, ExpeditedOffers$inboundSchema, ExpeditedOffers$outboundSchema, ExpeditedOffers$, VendorCredentialSummary$inboundSchema, VendorCredentialSummary$outboundSchema, VendorCredentialSummary$;
|
|
39397
39446
|
var init_vendorcredentialsummary = __esm(() => {
|
|
39398
|
-
|
|
39447
|
+
init_esm();
|
|
39399
39448
|
init_primitives();
|
|
39400
39449
|
init_backgroundcheckresult();
|
|
39401
39450
|
init_company();
|
|
@@ -39587,7 +39636,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39587
39636
|
// src/models/components/vendorcredentialdatarequest.ts
|
|
39588
39637
|
var VendorCredentialDataRequestStatus, VendorCredentialDataRequestVendorCredential$inboundSchema, VendorCredentialDataRequestVendorCredential$outboundSchema, VendorCredentialDataRequestVendorCredential$, VendorCredentialDataRequestDataRequest$inboundSchema, VendorCredentialDataRequestDataRequest$outboundSchema, VendorCredentialDataRequestDataRequest$, VendorCredentialDataRequestStatus$inboundSchema, VendorCredentialDataRequestStatus$outboundSchema, VendorCredentialDataRequestStatus$, VendorCredentialDataRequestFile$inboundSchema, VendorCredentialDataRequestFile$outboundSchema, VendorCredentialDataRequestFile$, VendorCredentialDataRequest$inboundSchema, VendorCredentialDataRequest$outboundSchema, VendorCredentialDataRequest$;
|
|
39589
39638
|
var init_vendorcredentialdatarequest = __esm(() => {
|
|
39590
|
-
|
|
39639
|
+
init_esm();
|
|
39591
39640
|
init_primitives();
|
|
39592
39641
|
init_datarequest();
|
|
39593
39642
|
init_vendorcredentialsummary();
|
|
@@ -39702,7 +39751,7 @@ var init_vendorcredentialdatarequest = __esm(() => {
|
|
|
39702
39751
|
// src/models/components/vendorcredentialscontainer.ts
|
|
39703
39752
|
var VendorCredentialsContainer$inboundSchema, VendorCredentialsContainer$outboundSchema, VendorCredentialsContainer$;
|
|
39704
39753
|
var init_vendorcredentialscontainer = __esm(() => {
|
|
39705
|
-
|
|
39754
|
+
init_esm();
|
|
39706
39755
|
init_primitives();
|
|
39707
39756
|
init_vendorcredentialsummary();
|
|
39708
39757
|
VendorCredentialsContainer$inboundSchema = objectType({
|
|
@@ -39730,7 +39779,7 @@ var init_vendorcredentialscontainer = __esm(() => {
|
|
|
39730
39779
|
// src/models/components/vendorfacilitystatusview.ts
|
|
39731
39780
|
var VendorFacilityStatusView$inboundSchema, VendorFacilityStatusView$outboundSchema, VendorFacilityStatusView$;
|
|
39732
39781
|
var init_vendorfacilitystatusview = __esm(() => {
|
|
39733
|
-
|
|
39782
|
+
init_esm();
|
|
39734
39783
|
init_primitives();
|
|
39735
39784
|
VendorFacilityStatusView$inboundSchema = objectType({
|
|
39736
39785
|
vendor_id: numberType().int().optional(),
|
|
@@ -39775,7 +39824,7 @@ var init_vendorfacilitystatusview = __esm(() => {
|
|
|
39775
39824
|
// src/models/components/vendormanagedbycompany.ts
|
|
39776
39825
|
var VendorManagedByCompanyCompany$inboundSchema, VendorManagedByCompanyCompany$outboundSchema, VendorManagedByCompanyCompany$, VendorManagedByCompany$inboundSchema, VendorManagedByCompany$outboundSchema, VendorManagedByCompany$;
|
|
39777
39826
|
var init_vendormanagedbycompany = __esm(() => {
|
|
39778
|
-
|
|
39827
|
+
init_esm();
|
|
39779
39828
|
init_primitives();
|
|
39780
39829
|
VendorManagedByCompanyCompany$inboundSchema = objectType({
|
|
39781
39830
|
id: nullableType(numberType().int()).optional(),
|
|
@@ -39840,7 +39889,7 @@ var init_vendormanagedbycompany = __esm(() => {
|
|
|
39840
39889
|
// src/models/components/vendorrequiredcredential.ts
|
|
39841
39890
|
var VendorRequiredCredential$inboundSchema, VendorRequiredCredential$outboundSchema, VendorRequiredCredential$;
|
|
39842
39891
|
var init_vendorrequiredcredential = __esm(() => {
|
|
39843
|
-
|
|
39892
|
+
init_esm();
|
|
39844
39893
|
init_primitives();
|
|
39845
39894
|
VendorRequiredCredential$inboundSchema = objectType({
|
|
39846
39895
|
id: numberType().int().optional(),
|
|
@@ -39883,7 +39932,7 @@ var init_vendorrequiredcredential = __esm(() => {
|
|
|
39883
39932
|
// src/models/components/vendorscan.ts
|
|
39884
39933
|
var VendorScanDepartment$inboundSchema, VendorScanDepartment$outboundSchema, VendorScanDepartment$, VendorScan$inboundSchema, VendorScan$outboundSchema, VendorScan$;
|
|
39885
39934
|
var init_vendorscan = __esm(() => {
|
|
39886
|
-
|
|
39935
|
+
init_esm();
|
|
39887
39936
|
init_primitives();
|
|
39888
39937
|
init_department();
|
|
39889
39938
|
VendorScanDepartment$inboundSchema = unionType([Department$inboundSchema, numberType().int()]);
|
|
@@ -39955,7 +40004,7 @@ var init_vendorscan = __esm(() => {
|
|
|
39955
40004
|
// src/models/components/vendorscrubdetails.ts
|
|
39956
40005
|
var VendorScrubDetails$inboundSchema, VendorScrubDetails$outboundSchema, VendorScrubDetails$;
|
|
39957
40006
|
var init_vendorscrubdetails = __esm(() => {
|
|
39958
|
-
|
|
40007
|
+
init_esm();
|
|
39959
40008
|
init_primitives();
|
|
39960
40009
|
VendorScrubDetails$inboundSchema = objectType({
|
|
39961
40010
|
scrub_top_size: nullableType(stringType()).optional(),
|
|
@@ -40000,7 +40049,7 @@ var init_vendorscrubdetails = __esm(() => {
|
|
|
40000
40049
|
// src/models/components/vendorscrubpurchase.ts
|
|
40001
40050
|
var VendorScrubPurchase$inboundSchema, VendorScrubPurchase$outboundSchema, VendorScrubPurchase$;
|
|
40002
40051
|
var init_vendorscrubpurchase = __esm(() => {
|
|
40003
|
-
|
|
40052
|
+
init_esm();
|
|
40004
40053
|
init_primitives();
|
|
40005
40054
|
VendorScrubPurchase$inboundSchema = objectType({
|
|
40006
40055
|
id: numberType().int().optional(),
|
|
@@ -40031,7 +40080,7 @@ var init_vendorscrubpurchase = __esm(() => {
|
|
|
40031
40080
|
// src/models/components/webhookendpoint.ts
|
|
40032
40081
|
var SignatureAlgo, SignatureAlgo$inboundSchema, SignatureAlgo$outboundSchema, SignatureAlgo$, Consumers$inboundSchema, Consumers$outboundSchema, Consumers$, WebhookEndpoint$inboundSchema, WebhookEndpoint$outboundSchema, WebhookEndpoint$;
|
|
40033
40082
|
var init_webhookendpoint = __esm(() => {
|
|
40034
|
-
|
|
40083
|
+
init_esm();
|
|
40035
40084
|
init_primitives();
|
|
40036
40085
|
SignatureAlgo = {
|
|
40037
40086
|
SigHmacSha256: "sig_hmac_sha256"
|
|
@@ -40167,7 +40216,7 @@ var init_components = __esm(() => {
|
|
|
40167
40216
|
// src/models/operations/createvendorcompany.ts
|
|
40168
40217
|
var CreateVendorCompanyRequestBody$inboundSchema, CreateVendorCompanyRequestBody$outboundSchema, CreateVendorCompanyRequestBody$, CreateVendorCompanyRequest$inboundSchema, CreateVendorCompanyRequest$outboundSchema, CreateVendorCompanyRequest$, CreateVendorCompanyResponseBody$inboundSchema, CreateVendorCompanyResponseBody$outboundSchema, CreateVendorCompanyResponseBody$;
|
|
40169
40218
|
var init_createvendorcompany = __esm(() => {
|
|
40170
|
-
|
|
40219
|
+
init_esm();
|
|
40171
40220
|
init_primitives();
|
|
40172
40221
|
init_components();
|
|
40173
40222
|
CreateVendorCompanyRequestBody$inboundSchema = objectType({
|
|
@@ -40243,7 +40292,7 @@ var init_createvendorcompany = __esm(() => {
|
|
|
40243
40292
|
// src/models/operations/createvendorregistration.ts
|
|
40244
40293
|
var CreateVendorRegistrationRequestBody$inboundSchema, CreateVendorRegistrationRequestBody$outboundSchema, CreateVendorRegistrationRequestBody$;
|
|
40245
40294
|
var init_createvendorregistration = __esm(() => {
|
|
40246
|
-
|
|
40295
|
+
init_esm();
|
|
40247
40296
|
init_primitives();
|
|
40248
40297
|
CreateVendorRegistrationRequestBody$inboundSchema = objectType({
|
|
40249
40298
|
email: stringType(),
|
|
@@ -40282,7 +40331,7 @@ var init_createvendorregistration = __esm(() => {
|
|
|
40282
40331
|
// src/models/operations/declinevendorcredential.ts
|
|
40283
40332
|
var DeclineVendorCredentialRequest$inboundSchema, DeclineVendorCredentialRequest$outboundSchema, DeclineVendorCredentialRequest$;
|
|
40284
40333
|
var init_declinevendorcredential = __esm(() => {
|
|
40285
|
-
|
|
40334
|
+
init_esm();
|
|
40286
40335
|
init_primitives();
|
|
40287
40336
|
DeclineVendorCredentialRequest$inboundSchema = objectType({
|
|
40288
40337
|
vendor_credential_id: numberType().int()
|
|
@@ -40307,7 +40356,7 @@ var init_declinevendorcredential = __esm(() => {
|
|
|
40307
40356
|
// src/models/operations/deletevendormanagedbycompany.ts
|
|
40308
40357
|
var DeleteVendorManagedByCompanyRequestBody$inboundSchema, DeleteVendorManagedByCompanyRequestBody$outboundSchema, DeleteVendorManagedByCompanyRequestBody$, DeleteVendorManagedByCompanyRequest$inboundSchema, DeleteVendorManagedByCompanyRequest$outboundSchema, DeleteVendorManagedByCompanyRequest$, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$inboundSchema, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$outboundSchema, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$;
|
|
40309
40358
|
var init_deletevendormanagedbycompany = __esm(() => {
|
|
40310
|
-
|
|
40359
|
+
init_esm();
|
|
40311
40360
|
init_primitives();
|
|
40312
40361
|
DeleteVendorManagedByCompanyRequestBody$inboundSchema = objectType({
|
|
40313
40362
|
managed_vendor_id: numberType().int()
|
|
@@ -40364,7 +40413,7 @@ var init_deletevendormanagedbycompany = __esm(() => {
|
|
|
40364
40413
|
// src/models/operations/expeditetimeremaining.ts
|
|
40365
40414
|
var ExpediteTimeRemainingRequest$inboundSchema, ExpediteTimeRemainingRequest$outboundSchema, ExpediteTimeRemainingRequest$, ExpediteTimeRemainingGetExpediteTimeRemainingOk$inboundSchema, ExpediteTimeRemainingGetExpediteTimeRemainingOk$outboundSchema, ExpediteTimeRemainingGetExpediteTimeRemainingOk$;
|
|
40366
40415
|
var init_expeditetimeremaining = __esm(() => {
|
|
40367
|
-
|
|
40416
|
+
init_esm();
|
|
40368
40417
|
init_primitives();
|
|
40369
40418
|
ExpediteTimeRemainingRequest$inboundSchema = objectType({
|
|
40370
40419
|
vendor_id_or_me: stringType()
|
|
@@ -40407,7 +40456,7 @@ var init_expeditetimeremaining = __esm(() => {
|
|
|
40407
40456
|
// src/models/operations/getfacility.ts
|
|
40408
40457
|
var GetFacilityRequest$inboundSchema, GetFacilityRequest$outboundSchema, GetFacilityRequest$;
|
|
40409
40458
|
var init_getfacility = __esm(() => {
|
|
40410
|
-
|
|
40459
|
+
init_esm();
|
|
40411
40460
|
GetFacilityRequest$inboundSchema = objectType({
|
|
40412
40461
|
id: numberType().int()
|
|
40413
40462
|
});
|
|
@@ -40423,7 +40472,7 @@ var init_getfacility = __esm(() => {
|
|
|
40423
40472
|
// src/models/operations/getsupportarticle.ts
|
|
40424
40473
|
var GetSupportArticleRequest$inboundSchema, GetSupportArticleRequest$outboundSchema, GetSupportArticleRequest$;
|
|
40425
40474
|
var init_getsupportarticle = __esm(() => {
|
|
40426
|
-
|
|
40475
|
+
init_esm();
|
|
40427
40476
|
init_components();
|
|
40428
40477
|
GetSupportArticleRequest$inboundSchema = objectType({
|
|
40429
40478
|
id: numberType().int(),
|
|
@@ -40442,7 +40491,7 @@ var init_getsupportarticle = __esm(() => {
|
|
|
40442
40491
|
// src/models/operations/getuserbyid.ts
|
|
40443
40492
|
var GetUserByIdRequest$inboundSchema, GetUserByIdRequest$outboundSchema, GetUserByIdRequest$;
|
|
40444
40493
|
var init_getuserbyid = __esm(() => {
|
|
40445
|
-
|
|
40494
|
+
init_esm();
|
|
40446
40495
|
GetUserByIdRequest$inboundSchema = objectType({
|
|
40447
40496
|
id: numberType().int()
|
|
40448
40497
|
});
|
|
@@ -40458,7 +40507,7 @@ var init_getuserbyid = __esm(() => {
|
|
|
40458
40507
|
// src/models/operations/getvendorcredentialdetails.ts
|
|
40459
40508
|
var GetVendorCredentialDetailsRequest$inboundSchema, GetVendorCredentialDetailsRequest$outboundSchema, GetVendorCredentialDetailsRequest$, GetVendorCredentialDetailsResponseBody$inboundSchema, GetVendorCredentialDetailsResponseBody$outboundSchema, GetVendorCredentialDetailsResponseBody$;
|
|
40460
40509
|
var init_getvendorcredentialdetails = __esm(() => {
|
|
40461
|
-
|
|
40510
|
+
init_esm();
|
|
40462
40511
|
init_primitives();
|
|
40463
40512
|
init_components();
|
|
40464
40513
|
GetVendorCredentialDetailsRequest$inboundSchema = objectType({
|
|
@@ -40506,7 +40555,7 @@ var init_getvendorcredentialdetails = __esm(() => {
|
|
|
40506
40555
|
// src/models/operations/getvendorcredentialfile.ts
|
|
40507
40556
|
var GetVendorCredentialFileRequest$inboundSchema, GetVendorCredentialFileRequest$outboundSchema, GetVendorCredentialFileRequest$;
|
|
40508
40557
|
var init_getvendorcredentialfile = __esm(() => {
|
|
40509
|
-
|
|
40558
|
+
init_esm();
|
|
40510
40559
|
init_primitives();
|
|
40511
40560
|
init_components();
|
|
40512
40561
|
GetVendorCredentialFileRequest$inboundSchema = objectType({
|
|
@@ -40536,7 +40585,7 @@ var init_getvendorcredentialfile = __esm(() => {
|
|
|
40536
40585
|
// src/models/operations/getvendorinvoicedetails.ts
|
|
40537
40586
|
var GetVendorInvoiceDetailsRequest$inboundSchema, GetVendorInvoiceDetailsRequest$outboundSchema, GetVendorInvoiceDetailsRequest$;
|
|
40538
40587
|
var init_getvendorinvoicedetails = __esm(() => {
|
|
40539
|
-
|
|
40588
|
+
init_esm();
|
|
40540
40589
|
init_components();
|
|
40541
40590
|
GetVendorInvoiceDetailsRequest$inboundSchema = objectType({
|
|
40542
40591
|
id: numberType().int(),
|
|
@@ -40555,7 +40604,7 @@ var init_getvendorinvoicedetails = __esm(() => {
|
|
|
40555
40604
|
// src/models/operations/getvendorsdetails.ts
|
|
40556
40605
|
var GetVendorsDetailsRequest$inboundSchema, GetVendorsDetailsRequest$outboundSchema, GetVendorsDetailsRequest$;
|
|
40557
40606
|
var init_getvendorsdetails = __esm(() => {
|
|
40558
|
-
|
|
40607
|
+
init_esm();
|
|
40559
40608
|
init_primitives();
|
|
40560
40609
|
init_components();
|
|
40561
40610
|
GetVendorsDetailsRequest$inboundSchema = objectType({
|
|
@@ -40583,7 +40632,7 @@ var init_getvendorsdetails = __esm(() => {
|
|
|
40583
40632
|
// src/models/operations/getwebhookendpoint.ts
|
|
40584
40633
|
var GetWebhookEndpointRequest$inboundSchema, GetWebhookEndpointRequest$outboundSchema, GetWebhookEndpointRequest$;
|
|
40585
40634
|
var init_getwebhookendpoint = __esm(() => {
|
|
40586
|
-
|
|
40635
|
+
init_esm();
|
|
40587
40636
|
GetWebhookEndpointRequest$inboundSchema = objectType({
|
|
40588
40637
|
id: numberType().int()
|
|
40589
40638
|
});
|
|
@@ -40599,7 +40648,7 @@ var init_getwebhookendpoint = __esm(() => {
|
|
|
40599
40648
|
// src/models/operations/listallwebhookendpoints.ts
|
|
40600
40649
|
var ListAllWebhookEndpointsRequest$inboundSchema, ListAllWebhookEndpointsRequest$outboundSchema, ListAllWebhookEndpointsRequest$, ListAllWebhookEndpointsListAllWebhookEndpointsOk$inboundSchema, ListAllWebhookEndpointsListAllWebhookEndpointsOk$outboundSchema, ListAllWebhookEndpointsListAllWebhookEndpointsOk$;
|
|
40601
40650
|
var init_listallwebhookendpoints = __esm(() => {
|
|
40602
|
-
|
|
40651
|
+
init_esm();
|
|
40603
40652
|
init_primitives();
|
|
40604
40653
|
init_components();
|
|
40605
40654
|
ListAllWebhookEndpointsRequest$inboundSchema = objectType({
|
|
@@ -40643,7 +40692,7 @@ var init_listallwebhookendpoints = __esm(() => {
|
|
|
40643
40692
|
// src/models/operations/listorsearchcompanies.ts
|
|
40644
40693
|
var ListOrSearchCompaniesRequest$inboundSchema, ListOrSearchCompaniesRequest$outboundSchema, ListOrSearchCompaniesRequest$, ListOrSearchCompaniesListOrSearchCompaniesOK$inboundSchema, ListOrSearchCompaniesListOrSearchCompaniesOK$outboundSchema, ListOrSearchCompaniesListOrSearchCompaniesOK$, ListOrSearchCompaniesResponse$inboundSchema, ListOrSearchCompaniesResponse$outboundSchema, ListOrSearchCompaniesResponse$;
|
|
40645
40694
|
var init_listorsearchcompanies = __esm(() => {
|
|
40646
|
-
|
|
40695
|
+
init_esm();
|
|
40647
40696
|
init_primitives();
|
|
40648
40697
|
init_components();
|
|
40649
40698
|
ListOrSearchCompaniesRequest$inboundSchema = objectType({
|
|
@@ -40709,7 +40758,7 @@ var init_listorsearchcompanies = __esm(() => {
|
|
|
40709
40758
|
// src/models/operations/listorsearchfacilities.ts
|
|
40710
40759
|
var ListOrSearchFacilitiesRequest$inboundSchema, ListOrSearchFacilitiesRequest$outboundSchema, ListOrSearchFacilitiesRequest$, ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$, ListOrSearchFacilitiesResponse$inboundSchema, ListOrSearchFacilitiesResponse$outboundSchema, ListOrSearchFacilitiesResponse$;
|
|
40711
40760
|
var init_listorsearchfacilities = __esm(() => {
|
|
40712
|
-
|
|
40761
|
+
init_esm();
|
|
40713
40762
|
init_primitives();
|
|
40714
40763
|
init_components();
|
|
40715
40764
|
ListOrSearchFacilitiesRequest$inboundSchema = objectType({
|
|
@@ -40793,7 +40842,7 @@ var init_listorsearchfacilities = __esm(() => {
|
|
|
40793
40842
|
// src/models/operations/listorsearchsecurityzones.ts
|
|
40794
40843
|
var ListOrSearchSecurityZonesRequest$inboundSchema, ListOrSearchSecurityZonesRequest$outboundSchema, ListOrSearchSecurityZonesRequest$, ListOrSearchSecurityZonesResponseBody$inboundSchema, ListOrSearchSecurityZonesResponseBody$outboundSchema, ListOrSearchSecurityZonesResponseBody$, ListOrSearchSecurityZonesResponse$inboundSchema, ListOrSearchSecurityZonesResponse$outboundSchema, ListOrSearchSecurityZonesResponse$;
|
|
40795
40844
|
var init_listorsearchsecurityzones = __esm(() => {
|
|
40796
|
-
|
|
40845
|
+
init_esm();
|
|
40797
40846
|
init_primitives();
|
|
40798
40847
|
init_components();
|
|
40799
40848
|
ListOrSearchSecurityZonesRequest$inboundSchema = objectType({
|
|
@@ -40875,7 +40924,7 @@ var init_listorsearchsecurityzones = __esm(() => {
|
|
|
40875
40924
|
// src/models/operations/listorsearchsupportarticles.ts
|
|
40876
40925
|
var ListOrSearchSupportArticlesRequest$inboundSchema, ListOrSearchSupportArticlesRequest$outboundSchema, ListOrSearchSupportArticlesRequest$, ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema, ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema, ListOrSearchSupportArticlesListOrSearchArticlesOk$, ListOrSearchSupportArticlesResponse$inboundSchema, ListOrSearchSupportArticlesResponse$outboundSchema, ListOrSearchSupportArticlesResponse$;
|
|
40877
40926
|
var init_listorsearchsupportarticles = __esm(() => {
|
|
40878
|
-
|
|
40927
|
+
init_esm();
|
|
40879
40928
|
init_primitives();
|
|
40880
40929
|
init_components();
|
|
40881
40930
|
ListOrSearchSupportArticlesRequest$inboundSchema = objectType({
|
|
@@ -40941,7 +40990,7 @@ var init_listorsearchsupportarticles = __esm(() => {
|
|
|
40941
40990
|
// src/models/operations/listvendoradditionalfacilityfields.ts
|
|
40942
40991
|
var ListVendorAdditionalFacilityFieldsRequest$inboundSchema, ListVendorAdditionalFacilityFieldsRequest$outboundSchema, ListVendorAdditionalFacilityFieldsRequest$, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$inboundSchema, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$outboundSchema, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$, ListVendorAdditionalFacilityFieldsResponse$inboundSchema, ListVendorAdditionalFacilityFieldsResponse$outboundSchema, ListVendorAdditionalFacilityFieldsResponse$;
|
|
40943
40992
|
var init_listvendoradditionalfacilityfields = __esm(() => {
|
|
40944
|
-
|
|
40993
|
+
init_esm();
|
|
40945
40994
|
init_primitives();
|
|
40946
40995
|
init_components();
|
|
40947
40996
|
ListVendorAdditionalFacilityFieldsRequest$inboundSchema = objectType({
|
|
@@ -41007,7 +41056,7 @@ var init_listvendoradditionalfacilityfields = __esm(() => {
|
|
|
41007
41056
|
// src/models/operations/listvendorcredentialfiles.ts
|
|
41008
41057
|
var ListVendorCredentialFilesRequest$inboundSchema, ListVendorCredentialFilesRequest$outboundSchema, ListVendorCredentialFilesRequest$;
|
|
41009
41058
|
var init_listvendorcredentialfiles = __esm(() => {
|
|
41010
|
-
|
|
41059
|
+
init_esm();
|
|
41011
41060
|
init_primitives();
|
|
41012
41061
|
init_components();
|
|
41013
41062
|
ListVendorCredentialFilesRequest$inboundSchema = objectType({
|
|
@@ -41045,7 +41094,7 @@ var init_listvendorcredentialfiles = __esm(() => {
|
|
|
41045
41094
|
// src/models/operations/listvendorcredentials.ts
|
|
41046
41095
|
var ListVendorCredentialsRequest$inboundSchema, ListVendorCredentialsRequest$outboundSchema, ListVendorCredentialsRequest$, Credentials$inboundSchema, Credentials$outboundSchema, Credentials$, Pager$inboundSchema2, Pager$outboundSchema2, Pager$2, ListVendorCredentialsGetCredentialsOk$inboundSchema, ListVendorCredentialsGetCredentialsOk$outboundSchema, ListVendorCredentialsGetCredentialsOk$, ListVendorCredentialsResponse$inboundSchema, ListVendorCredentialsResponse$outboundSchema, ListVendorCredentialsResponse$;
|
|
41047
41096
|
var init_listvendorcredentials = __esm(() => {
|
|
41048
|
-
|
|
41097
|
+
init_esm();
|
|
41049
41098
|
init_primitives();
|
|
41050
41099
|
init_components();
|
|
41051
41100
|
ListVendorCredentialsRequest$inboundSchema = objectType({
|
|
@@ -41169,7 +41218,7 @@ var init_listvendorcredentials = __esm(() => {
|
|
|
41169
41218
|
// src/models/operations/listvendorcredits.ts
|
|
41170
41219
|
var ListVendorCreditsRequest$inboundSchema, ListVendorCreditsRequest$outboundSchema, ListVendorCreditsRequest$, ListVendorCreditsListVendorCreditsOk$inboundSchema, ListVendorCreditsListVendorCreditsOk$outboundSchema, ListVendorCreditsListVendorCreditsOk$, ListVendorCreditsResponse$inboundSchema, ListVendorCreditsResponse$outboundSchema, ListVendorCreditsResponse$;
|
|
41171
41220
|
var init_listvendorcredits = __esm(() => {
|
|
41172
|
-
|
|
41221
|
+
init_esm();
|
|
41173
41222
|
init_primitives();
|
|
41174
41223
|
init_components();
|
|
41175
41224
|
ListVendorCreditsRequest$inboundSchema = objectType({
|
|
@@ -41235,7 +41284,7 @@ var init_listvendorcredits = __esm(() => {
|
|
|
41235
41284
|
// src/models/operations/listvendorfacilitystatuses.ts
|
|
41236
41285
|
var ListVendorFacilityStatusesRequest$inboundSchema, ListVendorFacilityStatusesRequest$outboundSchema, ListVendorFacilityStatusesRequest$, ListVendorFacilityStatusesListVendorFacilityStatusesOk$inboundSchema, ListVendorFacilityStatusesListVendorFacilityStatusesOk$outboundSchema, ListVendorFacilityStatusesListVendorFacilityStatusesOk$, ListVendorFacilityStatusesResponse$inboundSchema, ListVendorFacilityStatusesResponse$outboundSchema, ListVendorFacilityStatusesResponse$;
|
|
41237
41286
|
var init_listvendorfacilitystatuses = __esm(() => {
|
|
41238
|
-
|
|
41287
|
+
init_esm();
|
|
41239
41288
|
init_primitives();
|
|
41240
41289
|
init_components();
|
|
41241
41290
|
ListVendorFacilityStatusesRequest$inboundSchema = objectType({
|
|
@@ -41305,7 +41354,7 @@ var init_listvendorfacilitystatuses = __esm(() => {
|
|
|
41305
41354
|
// src/models/operations/listvendorinvoices.ts
|
|
41306
41355
|
var InvoiceFinancialStatus, InvoiceFinancialStatus$inboundSchema, InvoiceFinancialStatus$outboundSchema, InvoiceFinancialStatus$, ListVendorInvoicesRequest$inboundSchema, ListVendorInvoicesRequest$outboundSchema, ListVendorInvoicesRequest$, ListVendorInvoicesListVendorInvoicesOk$inboundSchema, ListVendorInvoicesListVendorInvoicesOk$outboundSchema, ListVendorInvoicesListVendorInvoicesOk$, ListVendorInvoicesResponse$inboundSchema, ListVendorInvoicesResponse$outboundSchema, ListVendorInvoicesResponse$;
|
|
41307
41356
|
var init_listvendorinvoices = __esm(() => {
|
|
41308
|
-
|
|
41357
|
+
init_esm();
|
|
41309
41358
|
init_primitives();
|
|
41310
41359
|
init_components();
|
|
41311
41360
|
InvoiceFinancialStatus = {
|
|
@@ -41391,7 +41440,7 @@ var init_listvendorinvoices = __esm(() => {
|
|
|
41391
41440
|
// src/models/operations/listvendorjobtitles.ts
|
|
41392
41441
|
var ListVendorJobTitlesRequest$inboundSchema, ListVendorJobTitlesRequest$outboundSchema, ListVendorJobTitlesRequest$, ListVendorJobTitlesListVendorJobTitlesOk$inboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$outboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$, ListVendorJobTitlesResponse$inboundSchema, ListVendorJobTitlesResponse$outboundSchema, ListVendorJobTitlesResponse$;
|
|
41393
41442
|
var init_listvendorjobtitles = __esm(() => {
|
|
41394
|
-
|
|
41443
|
+
init_esm();
|
|
41395
41444
|
init_primitives();
|
|
41396
41445
|
init_components();
|
|
41397
41446
|
ListVendorJobTitlesRequest$inboundSchema = objectType({
|
|
@@ -41457,7 +41506,7 @@ var init_listvendorjobtitles = __esm(() => {
|
|
|
41457
41506
|
// src/models/operations/listvendormanagedbycompanies.ts
|
|
41458
41507
|
var ListVendorManagedByCompaniesRequest$inboundSchema, ListVendorManagedByCompaniesRequest$outboundSchema, ListVendorManagedByCompaniesRequest$, ListVendorManagedByCompaniesListVendorManagedByCompaniesOk$inboundSchema, ListVendorManagedByCompaniesListVendorManagedByCompaniesOk$outboundSchema, ListVendorManagedByCompaniesListVendorManagedByCompaniesOk$, ListVendorManagedByCompaniesResponse$inboundSchema, ListVendorManagedByCompaniesResponse$outboundSchema, ListVendorManagedByCompaniesResponse$;
|
|
41459
41508
|
var init_listvendormanagedbycompanies = __esm(() => {
|
|
41460
|
-
|
|
41509
|
+
init_esm();
|
|
41461
41510
|
init_primitives();
|
|
41462
41511
|
init_components();
|
|
41463
41512
|
ListVendorManagedByCompaniesRequest$inboundSchema = objectType({
|
|
@@ -41523,7 +41572,7 @@ var init_listvendormanagedbycompanies = __esm(() => {
|
|
|
41523
41572
|
// src/models/operations/listvendorscrubdetails.ts
|
|
41524
41573
|
var ListVendorScrubDetailsRequest$inboundSchema, ListVendorScrubDetailsRequest$outboundSchema, ListVendorScrubDetailsRequest$;
|
|
41525
41574
|
var init_listvendorscrubdetails = __esm(() => {
|
|
41526
|
-
|
|
41575
|
+
init_esm();
|
|
41527
41576
|
init_primitives();
|
|
41528
41577
|
ListVendorScrubDetailsRequest$inboundSchema = objectType({
|
|
41529
41578
|
vendor_id_or_me: stringType()
|
|
@@ -41548,7 +41597,7 @@ var init_listvendorscrubdetails = __esm(() => {
|
|
|
41548
41597
|
// src/models/operations/listvendorscrubpackages.ts
|
|
41549
41598
|
var ListVendorScrubPackagesRequest$inboundSchema, ListVendorScrubPackagesRequest$outboundSchema, ListVendorScrubPackagesRequest$, ListVendorScrubPackagesResponseBody$inboundSchema, ListVendorScrubPackagesResponseBody$outboundSchema, ListVendorScrubPackagesResponseBody$, ListVendorScrubPackagesResponse$inboundSchema, ListVendorScrubPackagesResponse$outboundSchema, ListVendorScrubPackagesResponse$;
|
|
41550
41599
|
var init_listvendorscrubpackages = __esm(() => {
|
|
41551
|
-
|
|
41600
|
+
init_esm();
|
|
41552
41601
|
init_primitives();
|
|
41553
41602
|
init_components();
|
|
41554
41603
|
ListVendorScrubPackagesRequest$inboundSchema = objectType({
|
|
@@ -41614,7 +41663,7 @@ var init_listvendorscrubpackages = __esm(() => {
|
|
|
41614
41663
|
// src/models/operations/listvendorscrubpurchases.ts
|
|
41615
41664
|
var ListVendorScrubPurchasesRequest$inboundSchema, ListVendorScrubPurchasesRequest$outboundSchema, ListVendorScrubPurchasesRequest$, ListVendorScrubPurchasesListVendorScrubPurchasesOk$inboundSchema, ListVendorScrubPurchasesListVendorScrubPurchasesOk$outboundSchema, ListVendorScrubPurchasesListVendorScrubPurchasesOk$, ListVendorScrubPurchasesResponse$inboundSchema, ListVendorScrubPurchasesResponse$outboundSchema, ListVendorScrubPurchasesResponse$;
|
|
41616
41665
|
var init_listvendorscrubpurchases = __esm(() => {
|
|
41617
|
-
|
|
41666
|
+
init_esm();
|
|
41618
41667
|
init_primitives();
|
|
41619
41668
|
init_components();
|
|
41620
41669
|
ListVendorScrubPurchasesRequest$inboundSchema = objectType({
|
|
@@ -41680,7 +41729,7 @@ var init_listvendorscrubpurchases = __esm(() => {
|
|
|
41680
41729
|
// src/models/operations/magiclink.ts
|
|
41681
41730
|
var MagiclinkRequestBody$inboundSchema, MagiclinkRequestBody$outboundSchema, MagiclinkRequestBody$, MagiclinkMagiclinkOk$inboundSchema, MagiclinkMagiclinkOk$outboundSchema, MagiclinkMagiclinkOk$;
|
|
41682
41731
|
var init_magiclink = __esm(() => {
|
|
41683
|
-
|
|
41732
|
+
init_esm();
|
|
41684
41733
|
MagiclinkRequestBody$inboundSchema = objectType({
|
|
41685
41734
|
email: stringType()
|
|
41686
41735
|
});
|
|
@@ -41706,7 +41755,7 @@ var init_magiclink = __esm(() => {
|
|
|
41706
41755
|
// src/models/operations/password.ts
|
|
41707
41756
|
var PasswordRequestBody$inboundSchema, PasswordRequestBody$outboundSchema, PasswordRequestBody$, PasswordPasswordOk$inboundSchema, PasswordPasswordOk$outboundSchema, PasswordPasswordOk$;
|
|
41708
41757
|
var init_password = __esm(() => {
|
|
41709
|
-
|
|
41758
|
+
init_esm();
|
|
41710
41759
|
init_primitives();
|
|
41711
41760
|
PasswordRequestBody$inboundSchema = objectType({
|
|
41712
41761
|
pasword_reset_token: stringType(),
|
|
@@ -41743,7 +41792,7 @@ var init_password = __esm(() => {
|
|
|
41743
41792
|
// src/models/operations/passwordresetrequest.ts
|
|
41744
41793
|
var PasswordResetRequestRequestBody$inboundSchema, PasswordResetRequestRequestBody$outboundSchema, PasswordResetRequestRequestBody$, PasswordResetRequestPasswordResetRequestOk$inboundSchema, PasswordResetRequestPasswordResetRequestOk$outboundSchema, PasswordResetRequestPasswordResetRequestOk$;
|
|
41745
41794
|
var init_passwordresetrequest = __esm(() => {
|
|
41746
|
-
|
|
41795
|
+
init_esm();
|
|
41747
41796
|
PasswordResetRequestRequestBody$inboundSchema = objectType({
|
|
41748
41797
|
email: stringType()
|
|
41749
41798
|
});
|
|
@@ -41769,7 +41818,7 @@ var init_passwordresetrequest = __esm(() => {
|
|
|
41769
41818
|
// src/models/operations/postauthenticate.ts
|
|
41770
41819
|
var PostAuthenticateRequestBody$inboundSchema, PostAuthenticateRequestBody$outboundSchema, PostAuthenticateRequestBody$, PostAuthenticateResponseBody$inboundSchema, PostAuthenticateResponseBody$outboundSchema, PostAuthenticateResponseBody$, PostAuthenticateResponse$inboundSchema, PostAuthenticateResponse$outboundSchema, PostAuthenticateResponse$;
|
|
41771
41820
|
var init_postauthenticate = __esm(() => {
|
|
41772
|
-
|
|
41821
|
+
init_esm();
|
|
41773
41822
|
init_components();
|
|
41774
41823
|
PostAuthenticateRequestBody$inboundSchema = unionType([
|
|
41775
41824
|
LoginRequirementsFromEmail$inboundSchema,
|
|
@@ -41846,7 +41895,7 @@ var init_postauthenticate = __esm(() => {
|
|
|
41846
41895
|
// src/models/operations/purchasescrubcredits.ts
|
|
41847
41896
|
var PurchaseScrubCreditsRequestBody$inboundSchema, PurchaseScrubCreditsRequestBody$outboundSchema, PurchaseScrubCreditsRequestBody$, PurchaseScrubCreditsRequest$inboundSchema, PurchaseScrubCreditsRequest$outboundSchema, PurchaseScrubCreditsRequest$, PurchaseScrubCreditsResponseBody$inboundSchema, PurchaseScrubCreditsResponseBody$outboundSchema, PurchaseScrubCreditsResponseBody$;
|
|
41848
41897
|
var init_purchasescrubcredits = __esm(() => {
|
|
41849
|
-
|
|
41898
|
+
init_esm();
|
|
41850
41899
|
init_primitives();
|
|
41851
41900
|
PurchaseScrubCreditsRequestBody$inboundSchema = objectType({
|
|
41852
41901
|
pay_later: booleanType(),
|
|
@@ -41919,7 +41968,7 @@ var init_purchasescrubcredits = __esm(() => {
|
|
|
41919
41968
|
// src/models/operations/securityzonecheckin.ts
|
|
41920
41969
|
var Requires2, Two$inboundSchema2, Two$outboundSchema2, Two$2, One$inboundSchema2, One$outboundSchema2, One$2, SecurityZoneCheckinRequestBody$inboundSchema, SecurityZoneCheckinRequestBody$outboundSchema, SecurityZoneCheckinRequestBody$, Requires$inboundSchema2, Requires$outboundSchema2, Requires$2, Results$inboundSchema, Results$outboundSchema, Results$, SecurityZoneCheckinResponseBody$inboundSchema, SecurityZoneCheckinResponseBody$outboundSchema, SecurityZoneCheckinResponseBody$;
|
|
41921
41970
|
var init_securityzonecheckin = __esm(() => {
|
|
41922
|
-
|
|
41971
|
+
init_esm();
|
|
41923
41972
|
init_primitives();
|
|
41924
41973
|
init_components();
|
|
41925
41974
|
Requires2 = {
|
|
@@ -42170,10 +42219,59 @@ var init_securityzonecheckin = __esm(() => {
|
|
|
42170
42219
|
})(SecurityZoneCheckinResponseBody$ ||= {});
|
|
42171
42220
|
});
|
|
42172
42221
|
|
|
42222
|
+
// src/models/operations/submitvendorcredential.ts
|
|
42223
|
+
var SubmitVendorCredentialRequestBody$inboundSchema, SubmitVendorCredentialRequestBody$outboundSchema, SubmitVendorCredentialRequestBody$, SubmitVendorCredentialRequest$inboundSchema, SubmitVendorCredentialRequest$outboundSchema, SubmitVendorCredentialRequest$;
|
|
42224
|
+
var init_submitvendorcredential = __esm(() => {
|
|
42225
|
+
init_esm();
|
|
42226
|
+
init_primitives();
|
|
42227
|
+
SubmitVendorCredentialRequestBody$inboundSchema = objectType({
|
|
42228
|
+
notes: stringType().optional(),
|
|
42229
|
+
json_data: stringType().optional()
|
|
42230
|
+
}).transform((v2) => {
|
|
42231
|
+
return remap(v2, {
|
|
42232
|
+
json_data: "jsonData"
|
|
42233
|
+
});
|
|
42234
|
+
});
|
|
42235
|
+
SubmitVendorCredentialRequestBody$outboundSchema = objectType({
|
|
42236
|
+
notes: stringType().optional(),
|
|
42237
|
+
jsonData: stringType().optional()
|
|
42238
|
+
}).transform((v2) => {
|
|
42239
|
+
return remap(v2, {
|
|
42240
|
+
jsonData: "json_data"
|
|
42241
|
+
});
|
|
42242
|
+
});
|
|
42243
|
+
((SubmitVendorCredentialRequestBody$) => {
|
|
42244
|
+
SubmitVendorCredentialRequestBody$.inboundSchema = SubmitVendorCredentialRequestBody$inboundSchema;
|
|
42245
|
+
SubmitVendorCredentialRequestBody$.outboundSchema = SubmitVendorCredentialRequestBody$outboundSchema;
|
|
42246
|
+
})(SubmitVendorCredentialRequestBody$ ||= {});
|
|
42247
|
+
SubmitVendorCredentialRequest$inboundSchema = objectType({
|
|
42248
|
+
vendor_credential_id: numberType().int(),
|
|
42249
|
+
RequestBody: lazyType(() => SubmitVendorCredentialRequestBody$inboundSchema)
|
|
42250
|
+
}).transform((v2) => {
|
|
42251
|
+
return remap(v2, {
|
|
42252
|
+
vendor_credential_id: "vendorCredentialId",
|
|
42253
|
+
RequestBody: "requestBody"
|
|
42254
|
+
});
|
|
42255
|
+
});
|
|
42256
|
+
SubmitVendorCredentialRequest$outboundSchema = objectType({
|
|
42257
|
+
vendorCredentialId: numberType().int(),
|
|
42258
|
+
requestBody: lazyType(() => SubmitVendorCredentialRequestBody$outboundSchema)
|
|
42259
|
+
}).transform((v2) => {
|
|
42260
|
+
return remap(v2, {
|
|
42261
|
+
vendorCredentialId: "vendor_credential_id",
|
|
42262
|
+
requestBody: "RequestBody"
|
|
42263
|
+
});
|
|
42264
|
+
});
|
|
42265
|
+
((SubmitVendorCredentialRequest$) => {
|
|
42266
|
+
SubmitVendorCredentialRequest$.inboundSchema = SubmitVendorCredentialRequest$inboundSchema;
|
|
42267
|
+
SubmitVendorCredentialRequest$.outboundSchema = SubmitVendorCredentialRequest$outboundSchema;
|
|
42268
|
+
})(SubmitVendorCredentialRequest$ ||= {});
|
|
42269
|
+
});
|
|
42270
|
+
|
|
42173
42271
|
// src/models/operations/updatesthewebhookendpointwiththegivenid.ts
|
|
42174
42272
|
var UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema, UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema, UpdatesTheWebhookEndpointWithTheGivenIdRequest$;
|
|
42175
42273
|
var init_updatesthewebhookendpointwiththegivenid = __esm(() => {
|
|
42176
|
-
|
|
42274
|
+
init_esm();
|
|
42177
42275
|
init_primitives();
|
|
42178
42276
|
init_components();
|
|
42179
42277
|
UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema = objectType({
|
|
@@ -42201,7 +42299,7 @@ var init_updatesthewebhookendpointwiththegivenid = __esm(() => {
|
|
|
42201
42299
|
// src/models/operations/updatevendordetails.ts
|
|
42202
42300
|
var EmailRecepient, EmailRecepient$inboundSchema, EmailRecepient$outboundSchema, EmailRecepient$, UpdateVendorDetailsRequestBody$inboundSchema, UpdateVendorDetailsRequestBody$outboundSchema, UpdateVendorDetailsRequestBody$, UpdateVendorDetailsRequest$inboundSchema, UpdateVendorDetailsRequest$outboundSchema, UpdateVendorDetailsRequest$;
|
|
42203
42301
|
var init_updatevendordetails = __esm(() => {
|
|
42204
|
-
|
|
42302
|
+
init_esm();
|
|
42205
42303
|
init_primitives();
|
|
42206
42304
|
init_components();
|
|
42207
42305
|
EmailRecepient = {
|
|
@@ -42275,7 +42373,7 @@ var init_updatevendordetails = __esm(() => {
|
|
|
42275
42373
|
// src/models/operations/updatevendormanagedbycompany.ts
|
|
42276
42374
|
var UpdateVendorManagedByCompanyRequestBody$inboundSchema, UpdateVendorManagedByCompanyRequestBody$outboundSchema, UpdateVendorManagedByCompanyRequestBody$, UpdateVendorManagedByCompanyRequest$inboundSchema, UpdateVendorManagedByCompanyRequest$outboundSchema, UpdateVendorManagedByCompanyRequest$, UpdateVendorManagedByCompanyUpdateVendorManagedByCompanyOk$inboundSchema, UpdateVendorManagedByCompanyUpdateVendorManagedByCompanyOk$outboundSchema, UpdateVendorManagedByCompanyUpdateVendorManagedByCompanyOk$;
|
|
42277
42375
|
var init_updatevendormanagedbycompany = __esm(() => {
|
|
42278
|
-
|
|
42376
|
+
init_esm();
|
|
42279
42377
|
init_primitives();
|
|
42280
42378
|
UpdateVendorManagedByCompanyRequestBody$inboundSchema = objectType({
|
|
42281
42379
|
managed_vendor_id: numberType().int().optional(),
|
|
@@ -42360,7 +42458,7 @@ var init_updatevendormanagedbycompany = __esm(() => {
|
|
|
42360
42458
|
// src/models/operations/updatevendorscrubdetails.ts
|
|
42361
42459
|
var ScrubTopSize, ScrubBottomSize, ScrubColor, ScrubTopSize$inboundSchema, ScrubTopSize$outboundSchema, ScrubTopSize$, ScrubBottomSize$inboundSchema, ScrubBottomSize$outboundSchema, ScrubBottomSize$, ScrubColor$inboundSchema, ScrubColor$outboundSchema, ScrubColor$, UpdateVendorScrubDetailsRequestBody$inboundSchema, UpdateVendorScrubDetailsRequestBody$outboundSchema, UpdateVendorScrubDetailsRequestBody$, UpdateVendorScrubDetailsRequest$inboundSchema, UpdateVendorScrubDetailsRequest$outboundSchema, UpdateVendorScrubDetailsRequest$;
|
|
42362
42460
|
var init_updatevendorscrubdetails = __esm(() => {
|
|
42363
|
-
|
|
42461
|
+
init_esm();
|
|
42364
42462
|
init_primitives();
|
|
42365
42463
|
ScrubTopSize = {
|
|
42366
42464
|
S: "S",
|
|
@@ -42450,7 +42548,7 @@ var init_updatevendorscrubdetails = __esm(() => {
|
|
|
42450
42548
|
// src/models/operations/vendorscanout.ts
|
|
42451
42549
|
var VendorScanOutRequest$inboundSchema, VendorScanOutRequest$outboundSchema, VendorScanOutRequest$, VendorScanOutVendorScanOutOk$inboundSchema, VendorScanOutVendorScanOutOk$outboundSchema, VendorScanOutVendorScanOutOk$;
|
|
42452
42550
|
var init_vendorscanout = __esm(() => {
|
|
42453
|
-
|
|
42551
|
+
init_esm();
|
|
42454
42552
|
VendorScanOutRequest$inboundSchema = objectType({
|
|
42455
42553
|
id: numberType().int()
|
|
42456
42554
|
});
|
|
@@ -42516,6 +42614,7 @@ var init_operations = __esm(() => {
|
|
|
42516
42614
|
init_postauthenticate();
|
|
42517
42615
|
init_purchasescrubcredits();
|
|
42518
42616
|
init_securityzonecheckin();
|
|
42617
|
+
init_submitvendorcredential();
|
|
42519
42618
|
init_updatesthewebhookendpointwiththegivenid();
|
|
42520
42619
|
init_updatevendordetails();
|
|
42521
42620
|
init_updatevendormanagedbycompany();
|
|
@@ -42685,7 +42784,7 @@ var init_companiesListOrSearchCompanies = __esm(() => {
|
|
|
42685
42784
|
init_schemas();
|
|
42686
42785
|
init_security();
|
|
42687
42786
|
init_url();
|
|
42688
|
-
|
|
42787
|
+
init_errors2();
|
|
42689
42788
|
init_operations();
|
|
42690
42789
|
init_async();
|
|
42691
42790
|
init_operations2();
|
|
@@ -42792,7 +42891,7 @@ var init_organizationsGetFacility = __esm(() => {
|
|
|
42792
42891
|
init_security();
|
|
42793
42892
|
init_url();
|
|
42794
42893
|
init_components();
|
|
42795
|
-
|
|
42894
|
+
init_errors2();
|
|
42796
42895
|
init_operations();
|
|
42797
42896
|
init_async();
|
|
42798
42897
|
});
|
|
@@ -42937,7 +43036,7 @@ var init_organizationsListOrSearchFacilities = __esm(() => {
|
|
|
42937
43036
|
init_schemas();
|
|
42938
43037
|
init_security();
|
|
42939
43038
|
init_url();
|
|
42940
|
-
|
|
43039
|
+
init_errors2();
|
|
42941
43040
|
init_operations();
|
|
42942
43041
|
init_async();
|
|
42943
43042
|
init_operations2();
|
|
@@ -43061,7 +43160,7 @@ var init_supportArticlesGetSupportArticle = __esm(() => {
|
|
|
43061
43160
|
init_security();
|
|
43062
43161
|
init_url();
|
|
43063
43162
|
init_components();
|
|
43064
|
-
|
|
43163
|
+
init_errors2();
|
|
43065
43164
|
init_operations();
|
|
43066
43165
|
init_async();
|
|
43067
43166
|
});
|
|
@@ -43207,7 +43306,7 @@ var init_supportArticlesListOrSearchSupportArticles = __esm(() => {
|
|
|
43207
43306
|
init_schemas();
|
|
43208
43307
|
init_security();
|
|
43209
43308
|
init_url();
|
|
43210
|
-
|
|
43309
|
+
init_errors2();
|
|
43211
43310
|
init_operations();
|
|
43212
43311
|
init_async();
|
|
43213
43312
|
init_operations2();
|
|
@@ -43314,7 +43413,7 @@ var init_usersChangePassword = __esm(() => {
|
|
|
43314
43413
|
init_schemas();
|
|
43315
43414
|
init_security();
|
|
43316
43415
|
init_url();
|
|
43317
|
-
|
|
43416
|
+
init_errors2();
|
|
43318
43417
|
init_operations();
|
|
43319
43418
|
init_async();
|
|
43320
43419
|
});
|
|
@@ -43405,7 +43504,7 @@ var init_usersGetCurrentUser = __esm(() => {
|
|
|
43405
43504
|
init_security();
|
|
43406
43505
|
init_url();
|
|
43407
43506
|
init_components();
|
|
43408
|
-
|
|
43507
|
+
init_errors2();
|
|
43409
43508
|
init_async();
|
|
43410
43509
|
});
|
|
43411
43510
|
|
|
@@ -43505,7 +43604,7 @@ var init_usersGetUserById = __esm(() => {
|
|
|
43505
43604
|
init_security();
|
|
43506
43605
|
init_url();
|
|
43507
43606
|
init_components();
|
|
43508
|
-
|
|
43607
|
+
init_errors2();
|
|
43509
43608
|
init_operations();
|
|
43510
43609
|
init_async();
|
|
43511
43610
|
});
|
|
@@ -43605,7 +43704,7 @@ var init_usersMagiclink = __esm(() => {
|
|
|
43605
43704
|
init_schemas();
|
|
43606
43705
|
init_security();
|
|
43607
43706
|
init_url();
|
|
43608
|
-
|
|
43707
|
+
init_errors2();
|
|
43609
43708
|
init_operations();
|
|
43610
43709
|
init_async();
|
|
43611
43710
|
});
|
|
@@ -43705,7 +43804,7 @@ var init_usersPassword = __esm(() => {
|
|
|
43705
43804
|
init_schemas();
|
|
43706
43805
|
init_security();
|
|
43707
43806
|
init_url();
|
|
43708
|
-
|
|
43807
|
+
init_errors2();
|
|
43709
43808
|
init_operations();
|
|
43710
43809
|
init_async();
|
|
43711
43810
|
});
|
|
@@ -43806,7 +43905,7 @@ var init_usersPasswordResetRequest = __esm(() => {
|
|
|
43806
43905
|
init_schemas();
|
|
43807
43906
|
init_security();
|
|
43808
43907
|
init_url();
|
|
43809
|
-
|
|
43908
|
+
init_errors2();
|
|
43810
43909
|
init_operations();
|
|
43811
43910
|
init_async();
|
|
43812
43911
|
});
|
|
@@ -43902,7 +44001,7 @@ var init_usersPostAuthenticate = __esm(() => {
|
|
|
43902
44001
|
init_primitives();
|
|
43903
44002
|
init_schemas();
|
|
43904
44003
|
init_url();
|
|
43905
|
-
|
|
44004
|
+
init_errors2();
|
|
43906
44005
|
init_operations();
|
|
43907
44006
|
init_async();
|
|
43908
44007
|
});
|
|
@@ -44038,7 +44137,7 @@ var init_vendorsAddVendorManagedByCompany = __esm(() => {
|
|
|
44038
44137
|
init_schemas();
|
|
44039
44138
|
init_security();
|
|
44040
44139
|
init_url();
|
|
44041
|
-
|
|
44140
|
+
init_errors2();
|
|
44042
44141
|
init_operations();
|
|
44043
44142
|
init_async();
|
|
44044
44143
|
});
|
|
@@ -44143,7 +44242,7 @@ var init_vendorScansVendorScanOut = __esm(() => {
|
|
|
44143
44242
|
init_schemas();
|
|
44144
44243
|
init_security();
|
|
44145
44244
|
init_url();
|
|
44146
|
-
|
|
44245
|
+
init_errors2();
|
|
44147
44246
|
init_operations();
|
|
44148
44247
|
init_async();
|
|
44149
44248
|
});
|
|
@@ -44249,7 +44348,7 @@ var init_vendorsCreateVendorCompany = __esm(() => {
|
|
|
44249
44348
|
init_schemas();
|
|
44250
44349
|
init_security();
|
|
44251
44350
|
init_url();
|
|
44252
|
-
|
|
44351
|
+
init_errors2();
|
|
44253
44352
|
init_operations();
|
|
44254
44353
|
init_async();
|
|
44255
44354
|
});
|
|
@@ -44346,7 +44445,7 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
|
|
|
44346
44445
|
init_schemas();
|
|
44347
44446
|
init_url();
|
|
44348
44447
|
init_components();
|
|
44349
|
-
|
|
44448
|
+
init_errors2();
|
|
44350
44449
|
init_operations();
|
|
44351
44450
|
init_async();
|
|
44352
44451
|
});
|
|
@@ -44442,14 +44541,14 @@ async function $do17(client, request, options) {
|
|
|
44442
44541
|
return [result, { status: "complete", request: req, response }];
|
|
44443
44542
|
}
|
|
44444
44543
|
var init_vendorsDeclineVendorCredential = __esm(() => {
|
|
44445
|
-
|
|
44544
|
+
init_esm();
|
|
44446
44545
|
init_encodings();
|
|
44447
44546
|
init_matchers();
|
|
44448
44547
|
init_primitives();
|
|
44449
44548
|
init_schemas();
|
|
44450
44549
|
init_security();
|
|
44451
44550
|
init_url();
|
|
44452
|
-
|
|
44551
|
+
init_errors2();
|
|
44453
44552
|
init_operations();
|
|
44454
44553
|
init_async();
|
|
44455
44554
|
});
|
|
@@ -44555,7 +44654,7 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
|
|
|
44555
44654
|
init_schemas();
|
|
44556
44655
|
init_security();
|
|
44557
44656
|
init_url();
|
|
44558
|
-
|
|
44657
|
+
init_errors2();
|
|
44559
44658
|
init_operations();
|
|
44560
44659
|
init_async();
|
|
44561
44660
|
});
|
|
@@ -44660,7 +44759,7 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
|
|
|
44660
44759
|
init_schemas();
|
|
44661
44760
|
init_security();
|
|
44662
44761
|
init_url();
|
|
44663
|
-
|
|
44762
|
+
init_errors2();
|
|
44664
44763
|
init_operations();
|
|
44665
44764
|
init_async();
|
|
44666
44765
|
});
|
|
@@ -44773,7 +44872,7 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
|
|
|
44773
44872
|
init_schemas();
|
|
44774
44873
|
init_security();
|
|
44775
44874
|
init_url();
|
|
44776
|
-
|
|
44875
|
+
init_errors2();
|
|
44777
44876
|
init_operations();
|
|
44778
44877
|
init_async();
|
|
44779
44878
|
});
|
|
@@ -44901,7 +45000,7 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
|
|
|
44901
45000
|
init_security();
|
|
44902
45001
|
init_url();
|
|
44903
45002
|
init_components();
|
|
44904
|
-
|
|
45003
|
+
init_errors2();
|
|
44905
45004
|
init_operations();
|
|
44906
45005
|
init_async();
|
|
44907
45006
|
});
|
|
@@ -45016,7 +45115,7 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
|
|
|
45016
45115
|
init_security();
|
|
45017
45116
|
init_url();
|
|
45018
45117
|
init_components();
|
|
45019
|
-
|
|
45118
|
+
init_errors2();
|
|
45020
45119
|
init_operations();
|
|
45021
45120
|
init_async();
|
|
45022
45121
|
});
|
|
@@ -45131,7 +45230,7 @@ var init_vendorsGetVendorsDetails = __esm(() => {
|
|
|
45131
45230
|
init_security();
|
|
45132
45231
|
init_url();
|
|
45133
45232
|
init_components();
|
|
45134
|
-
|
|
45233
|
+
init_errors2();
|
|
45135
45234
|
init_operations();
|
|
45136
45235
|
init_async();
|
|
45137
45236
|
});
|
|
@@ -45165,7 +45264,8 @@ vendor.credentialing_subscription
|
|
|
45165
45264
|
vendor.scrubs_subscription
|
|
45166
45265
|
vendor.payment_responsibility
|
|
45167
45266
|
vendor.background_check_date_expires
|
|
45168
|
-
vendor.registration_data
|
|
45267
|
+
vendor.registration_data
|
|
45268
|
+
vendor.registration_finished`,
|
|
45169
45269
|
args: args22,
|
|
45170
45270
|
tool: async (client, args23, ctx) => {
|
|
45171
45271
|
const [result, apiCall] = await vendorsGetVendorsDetails(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -45288,7 +45388,7 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
|
|
|
45288
45388
|
init_schemas();
|
|
45289
45389
|
init_security();
|
|
45290
45390
|
init_url();
|
|
45291
|
-
|
|
45391
|
+
init_errors2();
|
|
45292
45392
|
init_operations();
|
|
45293
45393
|
init_async();
|
|
45294
45394
|
init_operations2();
|
|
@@ -45394,7 +45494,7 @@ async function $do25(client, request, options) {
|
|
|
45394
45494
|
return [result, { status: "complete", request: req, response }];
|
|
45395
45495
|
}
|
|
45396
45496
|
var init_vendorsListVendorCredentialFiles = __esm(() => {
|
|
45397
|
-
|
|
45497
|
+
init_esm();
|
|
45398
45498
|
init_encodings();
|
|
45399
45499
|
init_matchers();
|
|
45400
45500
|
init_primitives();
|
|
@@ -45402,7 +45502,7 @@ var init_vendorsListVendorCredentialFiles = __esm(() => {
|
|
|
45402
45502
|
init_security();
|
|
45403
45503
|
init_url();
|
|
45404
45504
|
init_components();
|
|
45405
|
-
|
|
45505
|
+
init_errors2();
|
|
45406
45506
|
init_operations();
|
|
45407
45507
|
init_async();
|
|
45408
45508
|
});
|
|
@@ -45556,7 +45656,7 @@ var init_vendorsListVendorCredentials = __esm(() => {
|
|
|
45556
45656
|
init_schemas();
|
|
45557
45657
|
init_security();
|
|
45558
45658
|
init_url();
|
|
45559
|
-
|
|
45659
|
+
init_errors2();
|
|
45560
45660
|
init_operations();
|
|
45561
45661
|
init_async();
|
|
45562
45662
|
init_operations2();
|
|
@@ -45700,7 +45800,7 @@ var init_vendorsListVendorCredits = __esm(() => {
|
|
|
45700
45800
|
init_schemas();
|
|
45701
45801
|
init_security();
|
|
45702
45802
|
init_url();
|
|
45703
|
-
|
|
45803
|
+
init_errors2();
|
|
45704
45804
|
init_operations();
|
|
45705
45805
|
init_async();
|
|
45706
45806
|
init_operations2();
|
|
@@ -45840,7 +45940,7 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
|
45840
45940
|
init_schemas();
|
|
45841
45941
|
init_security();
|
|
45842
45942
|
init_url();
|
|
45843
|
-
|
|
45943
|
+
init_errors2();
|
|
45844
45944
|
init_operations();
|
|
45845
45945
|
init_async();
|
|
45846
45946
|
init_operations2();
|
|
@@ -45988,7 +46088,7 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
45988
46088
|
init_schemas();
|
|
45989
46089
|
init_security();
|
|
45990
46090
|
init_url();
|
|
45991
|
-
|
|
46091
|
+
init_errors2();
|
|
45992
46092
|
init_operations();
|
|
45993
46093
|
init_async();
|
|
45994
46094
|
init_operations2();
|
|
@@ -46131,7 +46231,7 @@ var init_vendorsListVendorJobTitles = __esm(() => {
|
|
|
46131
46231
|
init_schemas();
|
|
46132
46232
|
init_security();
|
|
46133
46233
|
init_url();
|
|
46134
|
-
|
|
46234
|
+
init_errors2();
|
|
46135
46235
|
init_operations();
|
|
46136
46236
|
init_async();
|
|
46137
46237
|
init_operations2();
|
|
@@ -46275,7 +46375,7 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
|
|
|
46275
46375
|
init_schemas();
|
|
46276
46376
|
init_security();
|
|
46277
46377
|
init_url();
|
|
46278
|
-
|
|
46378
|
+
init_errors2();
|
|
46279
46379
|
init_operations();
|
|
46280
46380
|
init_async();
|
|
46281
46381
|
init_operations2();
|
|
@@ -46382,7 +46482,7 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
|
46382
46482
|
init_security();
|
|
46383
46483
|
init_url();
|
|
46384
46484
|
init_components();
|
|
46385
|
-
|
|
46485
|
+
init_errors2();
|
|
46386
46486
|
init_operations();
|
|
46387
46487
|
init_async();
|
|
46388
46488
|
});
|
|
@@ -46525,7 +46625,7 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
|
|
|
46525
46625
|
init_schemas();
|
|
46526
46626
|
init_security();
|
|
46527
46627
|
init_url();
|
|
46528
|
-
|
|
46628
|
+
init_errors2();
|
|
46529
46629
|
init_operations();
|
|
46530
46630
|
init_async();
|
|
46531
46631
|
init_operations2();
|
|
@@ -46669,7 +46769,7 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
|
46669
46769
|
init_schemas();
|
|
46670
46770
|
init_security();
|
|
46671
46771
|
init_url();
|
|
46672
|
-
|
|
46772
|
+
init_errors2();
|
|
46673
46773
|
init_operations();
|
|
46674
46774
|
init_async();
|
|
46675
46775
|
init_operations2();
|
|
@@ -46776,7 +46876,7 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
|
|
|
46776
46876
|
init_schemas();
|
|
46777
46877
|
init_security();
|
|
46778
46878
|
init_url();
|
|
46779
|
-
|
|
46879
|
+
init_errors2();
|
|
46780
46880
|
init_operations();
|
|
46781
46881
|
init_async();
|
|
46782
46882
|
});
|
|
@@ -46810,11 +46910,115 @@ Purchase scrub credits`,
|
|
|
46810
46910
|
};
|
|
46811
46911
|
});
|
|
46812
46912
|
|
|
46813
|
-
// src/funcs/
|
|
46814
|
-
function
|
|
46913
|
+
// src/funcs/vendorsSubmitVendorCredential.ts
|
|
46914
|
+
function vendorsSubmitVendorCredential(client, request, options) {
|
|
46815
46915
|
return new APIPromise($do36(client, request, options));
|
|
46816
46916
|
}
|
|
46817
46917
|
async function $do36(client, request, options) {
|
|
46918
|
+
const parsed = safeParse(request, (value) => SubmitVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46919
|
+
if (!parsed.ok) {
|
|
46920
|
+
return [parsed, { status: "invalid" }];
|
|
46921
|
+
}
|
|
46922
|
+
const payload = parsed.value;
|
|
46923
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
46924
|
+
const pathParams = {
|
|
46925
|
+
vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
|
|
46926
|
+
};
|
|
46927
|
+
const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/submission")(pathParams);
|
|
46928
|
+
const headers = new Headers(compactMap({
|
|
46929
|
+
"Content-Type": "application/json",
|
|
46930
|
+
Accept: "application/json"
|
|
46931
|
+
}));
|
|
46932
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
46933
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
46934
|
+
const context = {
|
|
46935
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
46936
|
+
operationID: "submitVendorCredential",
|
|
46937
|
+
oAuth2Scopes: [],
|
|
46938
|
+
resolvedSecurity: requestSecurity,
|
|
46939
|
+
securitySource: client._options.security,
|
|
46940
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
46941
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
46942
|
+
};
|
|
46943
|
+
const requestRes = client._createRequest(context, {
|
|
46944
|
+
security: requestSecurity,
|
|
46945
|
+
method: "PUT",
|
|
46946
|
+
baseURL: options?.serverURL,
|
|
46947
|
+
path,
|
|
46948
|
+
headers,
|
|
46949
|
+
body,
|
|
46950
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
46951
|
+
}, options);
|
|
46952
|
+
if (!requestRes.ok) {
|
|
46953
|
+
return [requestRes, { status: "invalid" }];
|
|
46954
|
+
}
|
|
46955
|
+
const req = requestRes.value;
|
|
46956
|
+
const doResult = await client._do(req, {
|
|
46957
|
+
context,
|
|
46958
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
46959
|
+
retryConfig: context.retryConfig,
|
|
46960
|
+
retryCodes: context.retryCodes
|
|
46961
|
+
});
|
|
46962
|
+
if (!doResult.ok) {
|
|
46963
|
+
return [doResult, { status: "request-error", request: req }];
|
|
46964
|
+
}
|
|
46965
|
+
const response = doResult.value;
|
|
46966
|
+
const responseFields = {
|
|
46967
|
+
HttpMeta: { Response: response, Request: req }
|
|
46968
|
+
};
|
|
46969
|
+
const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
46970
|
+
if (!result.ok) {
|
|
46971
|
+
return [result, { status: "complete", request: req, response }];
|
|
46972
|
+
}
|
|
46973
|
+
return [result, { status: "complete", request: req, response }];
|
|
46974
|
+
}
|
|
46975
|
+
var init_vendorsSubmitVendorCredential = __esm(() => {
|
|
46976
|
+
init_esm();
|
|
46977
|
+
init_encodings();
|
|
46978
|
+
init_matchers();
|
|
46979
|
+
init_primitives();
|
|
46980
|
+
init_schemas();
|
|
46981
|
+
init_security();
|
|
46982
|
+
init_url();
|
|
46983
|
+
init_errors2();
|
|
46984
|
+
init_operations();
|
|
46985
|
+
init_async();
|
|
46986
|
+
});
|
|
46987
|
+
|
|
46988
|
+
// src/mcp-server/tools/vendorsSubmitVendorCredential.ts
|
|
46989
|
+
var args35, tool$vendorsSubmitVendorCredential;
|
|
46990
|
+
var init_vendorsSubmitVendorCredential2 = __esm(() => {
|
|
46991
|
+
init_vendorsSubmitVendorCredential();
|
|
46992
|
+
init_operations();
|
|
46993
|
+
init_tools();
|
|
46994
|
+
args35 = {
|
|
46995
|
+
request: SubmitVendorCredentialRequest$inboundSchema
|
|
46996
|
+
};
|
|
46997
|
+
tool$vendorsSubmitVendorCredential = {
|
|
46998
|
+
name: "vendors-submit-vendor-credential",
|
|
46999
|
+
description: `Submit vendor credential
|
|
47000
|
+
|
|
47001
|
+
It will submit vendor credential`,
|
|
47002
|
+
args: args35,
|
|
47003
|
+
tool: async (client, args36, ctx) => {
|
|
47004
|
+
const [result, apiCall] = await vendorsSubmitVendorCredential(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47005
|
+
if (!result.ok) {
|
|
47006
|
+
return {
|
|
47007
|
+
content: [{ type: "text", text: result.error.message }],
|
|
47008
|
+
isError: true
|
|
47009
|
+
};
|
|
47010
|
+
}
|
|
47011
|
+
const value = result.value;
|
|
47012
|
+
return formatResult(value, apiCall);
|
|
47013
|
+
}
|
|
47014
|
+
};
|
|
47015
|
+
});
|
|
47016
|
+
|
|
47017
|
+
// src/funcs/vendorsUpdateVendorDetails.ts
|
|
47018
|
+
function vendorsUpdateVendorDetails(client, request, options) {
|
|
47019
|
+
return new APIPromise($do37(client, request, options));
|
|
47020
|
+
}
|
|
47021
|
+
async function $do37(client, request, options) {
|
|
46818
47022
|
const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46819
47023
|
if (!parsed.ok) {
|
|
46820
47024
|
return [parsed, { status: "invalid" }];
|
|
@@ -46876,25 +47080,25 @@ async function $do36(client, request, options) {
|
|
|
46876
47080
|
return [result, { status: "complete", request: req, response }];
|
|
46877
47081
|
}
|
|
46878
47082
|
var init_vendorsUpdateVendorDetails = __esm(() => {
|
|
46879
|
-
|
|
47083
|
+
init_esm();
|
|
46880
47084
|
init_encodings();
|
|
46881
47085
|
init_matchers();
|
|
46882
47086
|
init_primitives();
|
|
46883
47087
|
init_schemas();
|
|
46884
47088
|
init_security();
|
|
46885
47089
|
init_url();
|
|
46886
|
-
|
|
47090
|
+
init_errors2();
|
|
46887
47091
|
init_operations();
|
|
46888
47092
|
init_async();
|
|
46889
47093
|
});
|
|
46890
47094
|
|
|
46891
47095
|
// src/mcp-server/tools/vendorsUpdateVendorDetails.ts
|
|
46892
|
-
var
|
|
47096
|
+
var args36, tool$vendorsUpdateVendorDetails;
|
|
46893
47097
|
var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
46894
47098
|
init_vendorsUpdateVendorDetails();
|
|
46895
47099
|
init_operations();
|
|
46896
47100
|
init_tools();
|
|
46897
|
-
|
|
47101
|
+
args36 = {
|
|
46898
47102
|
request: UpdateVendorDetailsRequest$inboundSchema
|
|
46899
47103
|
};
|
|
46900
47104
|
tool$vendorsUpdateVendorDetails = {
|
|
@@ -46902,9 +47106,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
|
46902
47106
|
description: `Update vendor details
|
|
46903
47107
|
|
|
46904
47108
|
It will update the vendor details`,
|
|
46905
|
-
args:
|
|
46906
|
-
tool: async (client,
|
|
46907
|
-
const [result, apiCall] = await vendorsUpdateVendorDetails(client,
|
|
47109
|
+
args: args36,
|
|
47110
|
+
tool: async (client, args37, ctx) => {
|
|
47111
|
+
const [result, apiCall] = await vendorsUpdateVendorDetails(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46908
47112
|
if (!result.ok) {
|
|
46909
47113
|
return {
|
|
46910
47114
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46919,9 +47123,9 @@ It will update the vendor details`,
|
|
|
46919
47123
|
|
|
46920
47124
|
// src/funcs/vendorsUpdateVendorManagedByCompany.ts
|
|
46921
47125
|
function vendorsUpdateVendorManagedByCompany(client, request, options) {
|
|
46922
|
-
return new APIPromise($
|
|
47126
|
+
return new APIPromise($do38(client, request, options));
|
|
46923
47127
|
}
|
|
46924
|
-
async function $
|
|
47128
|
+
async function $do38(client, request, options) {
|
|
46925
47129
|
const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46926
47130
|
if (!parsed.ok) {
|
|
46927
47131
|
return [parsed, { status: "invalid" }];
|
|
@@ -46989,18 +47193,18 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
|
|
|
46989
47193
|
init_schemas();
|
|
46990
47194
|
init_security();
|
|
46991
47195
|
init_url();
|
|
46992
|
-
|
|
47196
|
+
init_errors2();
|
|
46993
47197
|
init_operations();
|
|
46994
47198
|
init_async();
|
|
46995
47199
|
});
|
|
46996
47200
|
|
|
46997
47201
|
// src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
|
|
46998
|
-
var
|
|
47202
|
+
var args37, tool$vendorsUpdateVendorManagedByCompany;
|
|
46999
47203
|
var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
47000
47204
|
init_vendorsUpdateVendorManagedByCompany();
|
|
47001
47205
|
init_operations();
|
|
47002
47206
|
init_tools();
|
|
47003
|
-
|
|
47207
|
+
args37 = {
|
|
47004
47208
|
request: UpdateVendorManagedByCompanyRequest$inboundSchema
|
|
47005
47209
|
};
|
|
47006
47210
|
tool$vendorsUpdateVendorManagedByCompany = {
|
|
@@ -47008,9 +47212,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
|
47008
47212
|
description: `Update vendor managed by company access rights
|
|
47009
47213
|
|
|
47010
47214
|
It will update the vendor managed by company access rights`,
|
|
47011
|
-
args:
|
|
47012
|
-
tool: async (client,
|
|
47013
|
-
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client,
|
|
47215
|
+
args: args37,
|
|
47216
|
+
tool: async (client, args38, ctx) => {
|
|
47217
|
+
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47014
47218
|
if (!result.ok) {
|
|
47015
47219
|
return {
|
|
47016
47220
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47025,9 +47229,9 @@ It will update the vendor managed by company access rights`,
|
|
|
47025
47229
|
|
|
47026
47230
|
// src/funcs/vendorsUpdateVendorScrubDetails.ts
|
|
47027
47231
|
function vendorsUpdateVendorScrubDetails(client, request, options) {
|
|
47028
|
-
return new APIPromise($
|
|
47232
|
+
return new APIPromise($do39(client, request, options));
|
|
47029
47233
|
}
|
|
47030
|
-
async function $
|
|
47234
|
+
async function $do39(client, request, options) {
|
|
47031
47235
|
const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47032
47236
|
if (!parsed.ok) {
|
|
47033
47237
|
return [parsed, { status: "invalid" }];
|
|
@@ -47089,25 +47293,25 @@ async function $do38(client, request, options) {
|
|
|
47089
47293
|
return [result, { status: "complete", request: req, response }];
|
|
47090
47294
|
}
|
|
47091
47295
|
var init_vendorsUpdateVendorScrubDetails = __esm(() => {
|
|
47092
|
-
|
|
47296
|
+
init_esm();
|
|
47093
47297
|
init_encodings();
|
|
47094
47298
|
init_matchers();
|
|
47095
47299
|
init_primitives();
|
|
47096
47300
|
init_schemas();
|
|
47097
47301
|
init_security();
|
|
47098
47302
|
init_url();
|
|
47099
|
-
|
|
47303
|
+
init_errors2();
|
|
47100
47304
|
init_operations();
|
|
47101
47305
|
init_async();
|
|
47102
47306
|
});
|
|
47103
47307
|
|
|
47104
47308
|
// src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
|
|
47105
|
-
var
|
|
47309
|
+
var args38, tool$vendorsUpdateVendorScrubDetails;
|
|
47106
47310
|
var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
47107
47311
|
init_vendorsUpdateVendorScrubDetails();
|
|
47108
47312
|
init_operations();
|
|
47109
47313
|
init_tools();
|
|
47110
|
-
|
|
47314
|
+
args38 = {
|
|
47111
47315
|
request: UpdateVendorScrubDetailsRequest$inboundSchema
|
|
47112
47316
|
};
|
|
47113
47317
|
tool$vendorsUpdateVendorScrubDetails = {
|
|
@@ -47115,9 +47319,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
|
47115
47319
|
description: `Update vendor scrub details
|
|
47116
47320
|
|
|
47117
47321
|
Update vendor scrub details`,
|
|
47118
|
-
args:
|
|
47119
|
-
tool: async (client,
|
|
47120
|
-
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client,
|
|
47322
|
+
args: args38,
|
|
47323
|
+
tool: async (client, args39, ctx) => {
|
|
47324
|
+
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47121
47325
|
if (!result.ok) {
|
|
47122
47326
|
return {
|
|
47123
47327
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47132,9 +47336,9 @@ Update vendor scrub details`,
|
|
|
47132
47336
|
|
|
47133
47337
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
47134
47338
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
47135
|
-
return new APIPromise($
|
|
47339
|
+
return new APIPromise($do40(client, request, options));
|
|
47136
47340
|
}
|
|
47137
|
-
async function $
|
|
47341
|
+
async function $do40(client, request, options) {
|
|
47138
47342
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47139
47343
|
if (!parsed.ok) {
|
|
47140
47344
|
return [parsed, { status: "invalid" }];
|
|
@@ -47202,18 +47406,18 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
47202
47406
|
init_security();
|
|
47203
47407
|
init_url();
|
|
47204
47408
|
init_components();
|
|
47205
|
-
|
|
47409
|
+
init_errors2();
|
|
47206
47410
|
init_operations();
|
|
47207
47411
|
init_async();
|
|
47208
47412
|
});
|
|
47209
47413
|
|
|
47210
47414
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
47211
|
-
var
|
|
47415
|
+
var args39, tool$webhooksGetWebhookEndpoint;
|
|
47212
47416
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
47213
47417
|
init_webhooksGetWebhookEndpoint();
|
|
47214
47418
|
init_operations();
|
|
47215
47419
|
init_tools();
|
|
47216
|
-
|
|
47420
|
+
args39 = {
|
|
47217
47421
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
47218
47422
|
};
|
|
47219
47423
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -47221,9 +47425,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
47221
47425
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
47222
47426
|
|
|
47223
47427
|
Returns the definition of a webhook endpoint by ID.`,
|
|
47224
|
-
args:
|
|
47225
|
-
tool: async (client,
|
|
47226
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
47428
|
+
args: args39,
|
|
47429
|
+
tool: async (client, args40, ctx) => {
|
|
47430
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47227
47431
|
if (!result.ok) {
|
|
47228
47432
|
return {
|
|
47229
47433
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47238,9 +47442,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
47238
47442
|
|
|
47239
47443
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
47240
47444
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
47241
|
-
return new APIPromise($
|
|
47445
|
+
return new APIPromise($do41(client, request, options));
|
|
47242
47446
|
}
|
|
47243
|
-
async function $
|
|
47447
|
+
async function $do41(client, request, options) {
|
|
47244
47448
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47245
47449
|
if (!parsed.ok) {
|
|
47246
47450
|
return [parsed, { status: "invalid" }];
|
|
@@ -47308,18 +47512,18 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
47308
47512
|
init_schemas();
|
|
47309
47513
|
init_security();
|
|
47310
47514
|
init_url();
|
|
47311
|
-
|
|
47515
|
+
init_errors2();
|
|
47312
47516
|
init_operations();
|
|
47313
47517
|
init_async();
|
|
47314
47518
|
});
|
|
47315
47519
|
|
|
47316
47520
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
47317
|
-
var
|
|
47521
|
+
var args40, tool$webhooksListAllWebhookEndpoints;
|
|
47318
47522
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
47319
47523
|
init_webhooksListAllWebhookEndpoints();
|
|
47320
47524
|
init_operations();
|
|
47321
47525
|
init_tools();
|
|
47322
|
-
|
|
47526
|
+
args40 = {
|
|
47323
47527
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
47324
47528
|
};
|
|
47325
47529
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -47327,9 +47531,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
47327
47531
|
description: `List all webhook endpoints
|
|
47328
47532
|
|
|
47329
47533
|
Returns a list of your webhook endpoints.`,
|
|
47330
|
-
args:
|
|
47331
|
-
tool: async (client,
|
|
47332
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
47534
|
+
args: args40,
|
|
47535
|
+
tool: async (client, args41, ctx) => {
|
|
47536
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47333
47537
|
if (!result.ok) {
|
|
47334
47538
|
return {
|
|
47335
47539
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47344,9 +47548,9 @@ Returns a list of your webhook endpoints.`,
|
|
|
47344
47548
|
|
|
47345
47549
|
// src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
47346
47550
|
function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
|
|
47347
|
-
return new APIPromise($
|
|
47551
|
+
return new APIPromise($do42(client, request, options));
|
|
47348
47552
|
}
|
|
47349
|
-
async function $
|
|
47553
|
+
async function $do42(client, request, options) {
|
|
47350
47554
|
const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47351
47555
|
if (!parsed.ok) {
|
|
47352
47556
|
return [parsed, { status: "invalid" }];
|
|
@@ -47415,18 +47619,18 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
|
|
|
47415
47619
|
init_security();
|
|
47416
47620
|
init_url();
|
|
47417
47621
|
init_components();
|
|
47418
|
-
|
|
47622
|
+
init_errors2();
|
|
47419
47623
|
init_operations();
|
|
47420
47624
|
init_async();
|
|
47421
47625
|
});
|
|
47422
47626
|
|
|
47423
47627
|
// src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
47424
|
-
var
|
|
47628
|
+
var args41, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
|
|
47425
47629
|
var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
47426
47630
|
init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
|
|
47427
47631
|
init_operations();
|
|
47428
47632
|
init_tools();
|
|
47429
|
-
|
|
47633
|
+
args41 = {
|
|
47430
47634
|
request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
|
|
47431
47635
|
};
|
|
47432
47636
|
tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
|
|
@@ -47434,9 +47638,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
|
47434
47638
|
description: `Updates the webhook endpoint with the given ID.
|
|
47435
47639
|
|
|
47436
47640
|
Updates the webhook endpoint with the given ID.`,
|
|
47437
|
-
args:
|
|
47438
|
-
tool: async (client,
|
|
47439
|
-
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client,
|
|
47641
|
+
args: args41,
|
|
47642
|
+
tool: async (client, args42, ctx) => {
|
|
47643
|
+
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47440
47644
|
if (!result.ok) {
|
|
47441
47645
|
return {
|
|
47442
47646
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47451,9 +47655,9 @@ Updates the webhook endpoint with the given ID.`,
|
|
|
47451
47655
|
|
|
47452
47656
|
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
47453
47657
|
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
47454
|
-
return new APIPromise($
|
|
47658
|
+
return new APIPromise($do43(client, request, options));
|
|
47455
47659
|
}
|
|
47456
|
-
async function $
|
|
47660
|
+
async function $do43(client, request, options) {
|
|
47457
47661
|
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47458
47662
|
if (!parsed.ok) {
|
|
47459
47663
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -47558,19 +47762,19 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
|
47558
47762
|
init_schemas();
|
|
47559
47763
|
init_security();
|
|
47560
47764
|
init_url();
|
|
47561
|
-
|
|
47765
|
+
init_errors2();
|
|
47562
47766
|
init_operations();
|
|
47563
47767
|
init_async();
|
|
47564
47768
|
init_operations2();
|
|
47565
47769
|
});
|
|
47566
47770
|
|
|
47567
47771
|
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
47568
|
-
var
|
|
47772
|
+
var args42, tool$zonesListOrSearchSecurityZones;
|
|
47569
47773
|
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
47570
47774
|
init_zonesListOrSearchSecurityZones();
|
|
47571
47775
|
init_operations();
|
|
47572
47776
|
init_tools();
|
|
47573
|
-
|
|
47777
|
+
args42 = {
|
|
47574
47778
|
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
47575
47779
|
};
|
|
47576
47780
|
tool$zonesListOrSearchSecurityZones = {
|
|
@@ -47578,9 +47782,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
|
47578
47782
|
description: `List or search security zones
|
|
47579
47783
|
|
|
47580
47784
|
List or search security zones`,
|
|
47581
|
-
args:
|
|
47582
|
-
tool: async (client,
|
|
47583
|
-
const [result, apiCall] = await zonesListOrSearchSecurityZones(client,
|
|
47785
|
+
args: args42,
|
|
47786
|
+
tool: async (client, args43, ctx) => {
|
|
47787
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47584
47788
|
if (!result.ok) {
|
|
47585
47789
|
return {
|
|
47586
47790
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47595,9 +47799,9 @@ List or search security zones`,
|
|
|
47595
47799
|
|
|
47596
47800
|
// src/funcs/zonesSecurityZoneCheckin.ts
|
|
47597
47801
|
function zonesSecurityZoneCheckin(client, request, options) {
|
|
47598
|
-
return new APIPromise($
|
|
47802
|
+
return new APIPromise($do44(client, request, options));
|
|
47599
47803
|
}
|
|
47600
|
-
async function $
|
|
47804
|
+
async function $do44(client, request, options) {
|
|
47601
47805
|
const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
47602
47806
|
if (!parsed.ok) {
|
|
47603
47807
|
return [parsed, { status: "invalid" }];
|
|
@@ -47659,18 +47863,18 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
|
|
|
47659
47863
|
init_schemas();
|
|
47660
47864
|
init_security();
|
|
47661
47865
|
init_url();
|
|
47662
|
-
|
|
47866
|
+
init_errors2();
|
|
47663
47867
|
init_operations();
|
|
47664
47868
|
init_async();
|
|
47665
47869
|
});
|
|
47666
47870
|
|
|
47667
47871
|
// src/mcp-server/tools/zonesSecurityZoneCheckin.ts
|
|
47668
|
-
var
|
|
47872
|
+
var args43, tool$zonesSecurityZoneCheckin;
|
|
47669
47873
|
var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
47670
47874
|
init_zonesSecurityZoneCheckin();
|
|
47671
47875
|
init_operations();
|
|
47672
47876
|
init_tools();
|
|
47673
|
-
|
|
47877
|
+
args43 = {
|
|
47674
47878
|
request: SecurityZoneCheckinRequestBody$inboundSchema
|
|
47675
47879
|
};
|
|
47676
47880
|
tool$zonesSecurityZoneCheckin = {
|
|
@@ -47678,9 +47882,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
|
47678
47882
|
description: `Security zone checkin request
|
|
47679
47883
|
|
|
47680
47884
|
Security zone checkin request`,
|
|
47681
|
-
args:
|
|
47682
|
-
tool: async (client,
|
|
47683
|
-
const [result, apiCall] = await zonesSecurityZoneCheckin(client,
|
|
47885
|
+
args: args43,
|
|
47886
|
+
tool: async (client, args44, ctx) => {
|
|
47887
|
+
const [result, apiCall] = await zonesSecurityZoneCheckin(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47684
47888
|
if (!result.ok) {
|
|
47685
47889
|
return {
|
|
47686
47890
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47697,7 +47901,7 @@ Security zone checkin request`,
|
|
|
47697
47901
|
function createMCPServer(deps) {
|
|
47698
47902
|
const server = new McpServer({
|
|
47699
47903
|
name: "GreenSecurity",
|
|
47700
|
-
version: "0.31.
|
|
47904
|
+
version: "0.31.4"
|
|
47701
47905
|
});
|
|
47702
47906
|
const client = new GreenSecurityCore({
|
|
47703
47907
|
security: deps.security,
|
|
@@ -47718,6 +47922,7 @@ function createMCPServer(deps) {
|
|
|
47718
47922
|
tool(tool$vendorsGetVendorCredentialFile);
|
|
47719
47923
|
tool(tool$vendorsDeclineVendorCredential);
|
|
47720
47924
|
tool(tool$vendorsListVendorCredentialFiles);
|
|
47925
|
+
tool(tool$vendorsSubmitVendorCredential);
|
|
47721
47926
|
tool(tool$vendorsExpediteTimeRemaining);
|
|
47722
47927
|
tool(tool$vendorsListVendorInvoices);
|
|
47723
47928
|
tool(tool$vendorsGetVendorInvoiceDetails);
|
|
@@ -47796,6 +48001,7 @@ var init_server2 = __esm(() => {
|
|
|
47796
48001
|
init_vendorsListVendorScrubPackages2();
|
|
47797
48002
|
init_vendorsListVendorScrubPurchases2();
|
|
47798
48003
|
init_vendorsPurchaseScrubCredits2();
|
|
48004
|
+
init_vendorsSubmitVendorCredential2();
|
|
47799
48005
|
init_vendorsUpdateVendorDetails2();
|
|
47800
48006
|
init_vendorsUpdateVendorManagedByCompany2();
|
|
47801
48007
|
init_vendorsUpdateVendorScrubDetails2();
|
|
@@ -48889,7 +49095,7 @@ function buildContext(process2) {
|
|
|
48889
49095
|
}
|
|
48890
49096
|
|
|
48891
49097
|
// src/mcp-server/cli/start/command.ts
|
|
48892
|
-
|
|
49098
|
+
init_esm();
|
|
48893
49099
|
init_console_logger();
|
|
48894
49100
|
|
|
48895
49101
|
// src/mcp-server/scopes.ts
|
|
@@ -49008,7 +49214,7 @@ var routes = an({
|
|
|
49008
49214
|
var app = He(routes, {
|
|
49009
49215
|
name: "mcp",
|
|
49010
49216
|
versionInfo: {
|
|
49011
|
-
currentVersion: "0.31.
|
|
49217
|
+
currentVersion: "0.31.4"
|
|
49012
49218
|
}
|
|
49013
49219
|
});
|
|
49014
49220
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49016,5 +49222,5 @@ export {
|
|
|
49016
49222
|
app
|
|
49017
49223
|
};
|
|
49018
49224
|
|
|
49019
|
-
//# debugId=
|
|
49225
|
+
//# debugId=8C605A9E060DFFFF64756E2164756E21
|
|
49020
49226
|
//# sourceMappingURL=mcp-server.js.map
|