@aws/nx-plugin-mcp 1.0.0-rc.7 → 1.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/aws-nx-mcp.js +977 -243
- package/docs/guides/py-mcp-server.mdx +5 -1
- package/docs/guides/ts-mcp-server.mdx +5 -1
- package/package.json +1 -1
package/bin/aws-nx-mcp.js
CHANGED
|
@@ -7,7 +7,7 @@ var __getOwnPropNames$1 = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
10
|
-
var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
10
|
+
var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
11
11
|
var __exportAll = (all, no_symbols) => {
|
|
12
12
|
let target = {};
|
|
13
13
|
for (var name in all) __defProp$1(target, name, {
|
|
@@ -135,7 +135,7 @@ function floatSafeRemainder$1(val, step) {
|
|
|
135
135
|
if (Math.abs(ratio - roundedRatio) < tolerance) return 0;
|
|
136
136
|
return ratio - roundedRatio;
|
|
137
137
|
}
|
|
138
|
-
const EVALUATING = /* @__PURE__
|
|
138
|
+
const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
|
|
139
139
|
function defineLazy(object, key, getter) {
|
|
140
140
|
let value = void 0;
|
|
141
141
|
Object.defineProperty(object, key, {
|
|
@@ -176,7 +176,7 @@ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace
|
|
|
176
176
|
function isObject(data) {
|
|
177
177
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
178
178
|
}
|
|
179
|
-
const allowsEval = /* @__PURE__
|
|
179
|
+
const allowsEval = /* @__PURE__*/ cached(() => {
|
|
180
180
|
if (globalConfig.jitless) return false;
|
|
181
181
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
|
|
182
182
|
try {
|
|
@@ -203,7 +203,7 @@ function shallowClone(o) {
|
|
|
203
203
|
if (o instanceof Set) return new Set(o);
|
|
204
204
|
return o;
|
|
205
205
|
}
|
|
206
|
-
const propertyKeyTypes = /* @__PURE__
|
|
206
|
+
const propertyKeyTypes = /* @__PURE__*/ new Set([
|
|
207
207
|
"string",
|
|
208
208
|
"number",
|
|
209
209
|
"symbol"
|
|
@@ -491,7 +491,7 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
491
491
|
}
|
|
492
492
|
return result.value;
|
|
493
493
|
};
|
|
494
|
-
const parse$2 = /* @__PURE__
|
|
494
|
+
const parse$2 = /* @__PURE__*/ _parse($ZodRealError);
|
|
495
495
|
const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
496
496
|
const ctx = _ctx ? {
|
|
497
497
|
..._ctx,
|
|
@@ -509,7 +509,7 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
|
509
509
|
}
|
|
510
510
|
return result.value;
|
|
511
511
|
};
|
|
512
|
-
const parseAsync$1 = /* @__PURE__
|
|
512
|
+
const parseAsync$1 = /* @__PURE__*/ _parseAsync($ZodRealError);
|
|
513
513
|
const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
514
514
|
const ctx = _ctx ? {
|
|
515
515
|
..._ctx,
|
|
@@ -528,7 +528,7 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
528
528
|
data: result.value
|
|
529
529
|
};
|
|
530
530
|
};
|
|
531
|
-
const safeParse$2 = /* @__PURE__
|
|
531
|
+
const safeParse$2 = /* @__PURE__*/ _safeParse($ZodRealError);
|
|
532
532
|
const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
533
533
|
const ctx = _ctx ? {
|
|
534
534
|
..._ctx,
|
|
@@ -547,7 +547,7 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
547
547
|
data: result.value
|
|
548
548
|
};
|
|
549
549
|
};
|
|
550
|
-
const safeParseAsync$2 = /* @__PURE__
|
|
550
|
+
const safeParseAsync$2 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
|
|
551
551
|
const _encode = (_Err) => (schema, value, _ctx) => {
|
|
552
552
|
const ctx = _ctx ? {
|
|
553
553
|
..._ctx,
|
|
@@ -627,7 +627,7 @@ const base64url = /^[A-Za-z0-9_-]*$/;
|
|
|
627
627
|
const httpProtocol = /^https?$/;
|
|
628
628
|
const e164 = /^\+[1-9]\d{6,14}$/;
|
|
629
629
|
const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
630
|
-
const date$1 =
|
|
630
|
+
const date$1 = /*@__PURE__*/ new RegExp(`^${dateSource}$`);
|
|
631
631
|
function timeSource(args) {
|
|
632
632
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
633
633
|
return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
@@ -655,7 +655,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
655
655
|
const uppercase = /^[^a-z]*$/;
|
|
656
656
|
//#endregion
|
|
657
657
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
658
|
-
const $ZodCheck =
|
|
658
|
+
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
659
659
|
var _a;
|
|
660
660
|
inst._zod ?? (inst._zod = {});
|
|
661
661
|
inst._zod.def = def;
|
|
@@ -666,7 +666,7 @@ const numericOriginMap = {
|
|
|
666
666
|
bigint: "bigint",
|
|
667
667
|
object: "date"
|
|
668
668
|
};
|
|
669
|
-
const $ZodCheckLessThan =
|
|
669
|
+
const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
|
|
670
670
|
$ZodCheck.init(inst, def);
|
|
671
671
|
const origin = numericOriginMap[typeof def.value];
|
|
672
672
|
inst._zod.onattach.push((inst) => {
|
|
@@ -688,7 +688,7 @@ const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (ins
|
|
|
688
688
|
});
|
|
689
689
|
};
|
|
690
690
|
});
|
|
691
|
-
const $ZodCheckGreaterThan =
|
|
691
|
+
const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
|
|
692
692
|
$ZodCheck.init(inst, def);
|
|
693
693
|
const origin = numericOriginMap[typeof def.value];
|
|
694
694
|
inst._zod.onattach.push((inst) => {
|
|
@@ -710,7 +710,7 @@ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan"
|
|
|
710
710
|
});
|
|
711
711
|
};
|
|
712
712
|
});
|
|
713
|
-
const $ZodCheckMultipleOf =
|
|
713
|
+
const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
714
714
|
$ZodCheck.init(inst, def);
|
|
715
715
|
inst._zod.onattach.push((inst) => {
|
|
716
716
|
var _a;
|
|
@@ -729,7 +729,7 @@ const $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf",
|
|
|
729
729
|
});
|
|
730
730
|
};
|
|
731
731
|
});
|
|
732
|
-
const $ZodCheckNumberFormat =
|
|
732
|
+
const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
|
|
733
733
|
$ZodCheck.init(inst, def);
|
|
734
734
|
def.format = def.format || "float64";
|
|
735
735
|
const isInt = def.format?.includes("int");
|
|
@@ -800,7 +800,7 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
|
|
|
800
800
|
});
|
|
801
801
|
};
|
|
802
802
|
});
|
|
803
|
-
const $ZodCheckMaxLength =
|
|
803
|
+
const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
804
804
|
var _a;
|
|
805
805
|
$ZodCheck.init(inst, def);
|
|
806
806
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -826,7 +826,7 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
826
826
|
});
|
|
827
827
|
};
|
|
828
828
|
});
|
|
829
|
-
const $ZodCheckMinLength =
|
|
829
|
+
const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
830
830
|
var _a;
|
|
831
831
|
$ZodCheck.init(inst, def);
|
|
832
832
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -852,7 +852,7 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
852
852
|
});
|
|
853
853
|
};
|
|
854
854
|
});
|
|
855
|
-
const $ZodCheckLengthEquals =
|
|
855
|
+
const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
856
856
|
var _a;
|
|
857
857
|
$ZodCheck.init(inst, def);
|
|
858
858
|
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
@@ -888,7 +888,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
888
888
|
});
|
|
889
889
|
};
|
|
890
890
|
});
|
|
891
|
-
const $ZodCheckStringFormat =
|
|
891
|
+
const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
892
892
|
var _a, _b;
|
|
893
893
|
$ZodCheck.init(inst, def);
|
|
894
894
|
inst._zod.onattach.push((inst) => {
|
|
@@ -914,7 +914,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
914
914
|
});
|
|
915
915
|
else (_b = inst._zod).check ?? (_b.check = () => {});
|
|
916
916
|
});
|
|
917
|
-
const $ZodCheckRegex =
|
|
917
|
+
const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
|
|
918
918
|
$ZodCheckStringFormat.init(inst, def);
|
|
919
919
|
inst._zod.check = (payload) => {
|
|
920
920
|
def.pattern.lastIndex = 0;
|
|
@@ -930,15 +930,15 @@ const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def
|
|
|
930
930
|
});
|
|
931
931
|
};
|
|
932
932
|
});
|
|
933
|
-
const $ZodCheckLowerCase =
|
|
933
|
+
const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
|
|
934
934
|
def.pattern ?? (def.pattern = lowercase);
|
|
935
935
|
$ZodCheckStringFormat.init(inst, def);
|
|
936
936
|
});
|
|
937
|
-
const $ZodCheckUpperCase =
|
|
937
|
+
const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
|
|
938
938
|
def.pattern ?? (def.pattern = uppercase);
|
|
939
939
|
$ZodCheckStringFormat.init(inst, def);
|
|
940
940
|
});
|
|
941
|
-
const $ZodCheckIncludes =
|
|
941
|
+
const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
|
|
942
942
|
$ZodCheck.init(inst, def);
|
|
943
943
|
const escapedRegex = escapeRegex(def.includes);
|
|
944
944
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
@@ -961,7 +961,7 @@ const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (ins
|
|
|
961
961
|
});
|
|
962
962
|
};
|
|
963
963
|
});
|
|
964
|
-
const $ZodCheckStartsWith =
|
|
964
|
+
const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
|
|
965
965
|
$ZodCheck.init(inst, def);
|
|
966
966
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
967
967
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -983,7 +983,7 @@ const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith",
|
|
|
983
983
|
});
|
|
984
984
|
};
|
|
985
985
|
});
|
|
986
|
-
const $ZodCheckEndsWith =
|
|
986
|
+
const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
|
|
987
987
|
$ZodCheck.init(inst, def);
|
|
988
988
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
989
989
|
def.pattern ?? (def.pattern = pattern);
|
|
@@ -1005,7 +1005,7 @@ const $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (ins
|
|
|
1005
1005
|
});
|
|
1006
1006
|
};
|
|
1007
1007
|
});
|
|
1008
|
-
const $ZodCheckOverwrite =
|
|
1008
|
+
const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
|
|
1009
1009
|
$ZodCheck.init(inst, def);
|
|
1010
1010
|
inst._zod.check = (payload) => {
|
|
1011
1011
|
payload.value = def.tx(payload.value);
|
|
@@ -1051,7 +1051,7 @@ const version$2 = {
|
|
|
1051
1051
|
};
|
|
1052
1052
|
//#endregion
|
|
1053
1053
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1054
|
-
const $ZodType =
|
|
1054
|
+
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1055
1055
|
var _a;
|
|
1056
1056
|
inst ?? (inst = {});
|
|
1057
1057
|
inst._zod.def = def;
|
|
@@ -1140,7 +1140,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
1140
1140
|
version: 1
|
|
1141
1141
|
}));
|
|
1142
1142
|
});
|
|
1143
|
-
const $ZodString =
|
|
1143
|
+
const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
|
|
1144
1144
|
$ZodType.init(inst, def);
|
|
1145
1145
|
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$3(inst._zod.bag);
|
|
1146
1146
|
inst._zod.parse = (payload, _) => {
|
|
@@ -1157,15 +1157,15 @@ const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
1157
1157
|
return payload;
|
|
1158
1158
|
};
|
|
1159
1159
|
});
|
|
1160
|
-
const $ZodStringFormat =
|
|
1160
|
+
const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
|
|
1161
1161
|
$ZodCheckStringFormat.init(inst, def);
|
|
1162
1162
|
$ZodString.init(inst, def);
|
|
1163
1163
|
});
|
|
1164
|
-
const $ZodGUID =
|
|
1164
|
+
const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
|
|
1165
1165
|
def.pattern ?? (def.pattern = guid);
|
|
1166
1166
|
$ZodStringFormat.init(inst, def);
|
|
1167
1167
|
});
|
|
1168
|
-
const $ZodUUID =
|
|
1168
|
+
const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
|
|
1169
1169
|
if (def.version) {
|
|
1170
1170
|
const v = {
|
|
1171
1171
|
v1: 1,
|
|
@@ -1182,11 +1182,11 @@ const $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
|
|
|
1182
1182
|
} else def.pattern ?? (def.pattern = uuid());
|
|
1183
1183
|
$ZodStringFormat.init(inst, def);
|
|
1184
1184
|
});
|
|
1185
|
-
const $ZodEmail =
|
|
1185
|
+
const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
|
|
1186
1186
|
def.pattern ?? (def.pattern = email);
|
|
1187
1187
|
$ZodStringFormat.init(inst, def);
|
|
1188
1188
|
});
|
|
1189
|
-
const $ZodURL =
|
|
1189
|
+
const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
|
|
1190
1190
|
$ZodStringFormat.init(inst, def);
|
|
1191
1191
|
inst._zod.check = (payload) => {
|
|
1192
1192
|
try {
|
|
@@ -1243,11 +1243,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
1245
|
});
|
|
1246
|
-
const $ZodEmoji =
|
|
1246
|
+
const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
|
|
1247
1247
|
def.pattern ?? (def.pattern = emoji());
|
|
1248
1248
|
$ZodStringFormat.init(inst, def);
|
|
1249
1249
|
});
|
|
1250
|
-
const $ZodNanoID =
|
|
1250
|
+
const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
|
|
1251
1251
|
def.pattern ?? (def.pattern = nanoid);
|
|
1252
1252
|
$ZodStringFormat.init(inst, def);
|
|
1253
1253
|
});
|
|
@@ -1256,48 +1256,48 @@ const $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
|
|
|
1256
1256
|
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
1257
1257
|
* See https://github.com/paralleldrive/cuid.
|
|
1258
1258
|
*/
|
|
1259
|
-
const $ZodCUID =
|
|
1259
|
+
const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
|
|
1260
1260
|
def.pattern ?? (def.pattern = cuid);
|
|
1261
1261
|
$ZodStringFormat.init(inst, def);
|
|
1262
1262
|
});
|
|
1263
|
-
const $ZodCUID2 =
|
|
1263
|
+
const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
|
|
1264
1264
|
def.pattern ?? (def.pattern = cuid2);
|
|
1265
1265
|
$ZodStringFormat.init(inst, def);
|
|
1266
1266
|
});
|
|
1267
|
-
const $ZodULID =
|
|
1267
|
+
const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
|
|
1268
1268
|
def.pattern ?? (def.pattern = ulid);
|
|
1269
1269
|
$ZodStringFormat.init(inst, def);
|
|
1270
1270
|
});
|
|
1271
|
-
const $ZodXID =
|
|
1271
|
+
const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
|
|
1272
1272
|
def.pattern ?? (def.pattern = xid);
|
|
1273
1273
|
$ZodStringFormat.init(inst, def);
|
|
1274
1274
|
});
|
|
1275
|
-
const $ZodKSUID =
|
|
1275
|
+
const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
|
|
1276
1276
|
def.pattern ?? (def.pattern = ksuid);
|
|
1277
1277
|
$ZodStringFormat.init(inst, def);
|
|
1278
1278
|
});
|
|
1279
|
-
const $ZodISODateTime =
|
|
1279
|
+
const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
|
|
1280
1280
|
def.pattern ?? (def.pattern = datetime$1(def));
|
|
1281
1281
|
$ZodStringFormat.init(inst, def);
|
|
1282
1282
|
});
|
|
1283
|
-
const $ZodISODate =
|
|
1283
|
+
const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
|
|
1284
1284
|
def.pattern ?? (def.pattern = date$1);
|
|
1285
1285
|
$ZodStringFormat.init(inst, def);
|
|
1286
1286
|
});
|
|
1287
|
-
const $ZodISOTime =
|
|
1287
|
+
const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
|
|
1288
1288
|
def.pattern ?? (def.pattern = time$1(def));
|
|
1289
1289
|
$ZodStringFormat.init(inst, def);
|
|
1290
1290
|
});
|
|
1291
|
-
const $ZodISODuration =
|
|
1291
|
+
const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
|
|
1292
1292
|
def.pattern ?? (def.pattern = duration$1);
|
|
1293
1293
|
$ZodStringFormat.init(inst, def);
|
|
1294
1294
|
});
|
|
1295
|
-
const $ZodIPv4 =
|
|
1295
|
+
const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
1296
1296
|
def.pattern ?? (def.pattern = ipv4);
|
|
1297
1297
|
$ZodStringFormat.init(inst, def);
|
|
1298
1298
|
inst._zod.bag.format = `ipv4`;
|
|
1299
1299
|
});
|
|
1300
|
-
const $ZodIPv6 =
|
|
1300
|
+
const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
1301
1301
|
def.pattern ?? (def.pattern = ipv6);
|
|
1302
1302
|
$ZodStringFormat.init(inst, def);
|
|
1303
1303
|
inst._zod.bag.format = `ipv6`;
|
|
@@ -1315,11 +1315,11 @@ const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
1317
|
});
|
|
1318
|
-
const $ZodCIDRv4 =
|
|
1318
|
+
const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
1319
1319
|
def.pattern ?? (def.pattern = cidrv4);
|
|
1320
1320
|
$ZodStringFormat.init(inst, def);
|
|
1321
1321
|
});
|
|
1322
|
-
const $ZodCIDRv6 =
|
|
1322
|
+
const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
1323
1323
|
def.pattern ?? (def.pattern = cidrv6);
|
|
1324
1324
|
$ZodStringFormat.init(inst, def);
|
|
1325
1325
|
inst._zod.check = (payload) => {
|
|
@@ -1354,7 +1354,7 @@ function isValidBase64(data) {
|
|
|
1354
1354
|
return false;
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
const $ZodBase64 =
|
|
1357
|
+
const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
|
|
1358
1358
|
def.pattern ?? (def.pattern = base64);
|
|
1359
1359
|
$ZodStringFormat.init(inst, def);
|
|
1360
1360
|
inst._zod.bag.contentEncoding = "base64";
|
|
@@ -1374,7 +1374,7 @@ function isValidBase64URL(data) {
|
|
|
1374
1374
|
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
1375
1375
|
return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
|
|
1376
1376
|
}
|
|
1377
|
-
const $ZodBase64URL =
|
|
1377
|
+
const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
|
|
1378
1378
|
def.pattern ?? (def.pattern = base64url);
|
|
1379
1379
|
$ZodStringFormat.init(inst, def);
|
|
1380
1380
|
inst._zod.bag.contentEncoding = "base64url";
|
|
@@ -1389,7 +1389,7 @@ const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def)
|
|
|
1389
1389
|
});
|
|
1390
1390
|
};
|
|
1391
1391
|
});
|
|
1392
|
-
const $ZodE164 =
|
|
1392
|
+
const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
|
|
1393
1393
|
def.pattern ?? (def.pattern = e164);
|
|
1394
1394
|
$ZodStringFormat.init(inst, def);
|
|
1395
1395
|
});
|
|
@@ -1408,7 +1408,7 @@ function isValidJWT$1(token, algorithm = null) {
|
|
|
1408
1408
|
return false;
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
const $ZodJWT =
|
|
1411
|
+
const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
|
|
1412
1412
|
$ZodStringFormat.init(inst, def);
|
|
1413
1413
|
inst._zod.check = (payload) => {
|
|
1414
1414
|
if (isValidJWT$1(payload.value, def.alg)) return;
|
|
@@ -1421,7 +1421,7 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
1421
1421
|
});
|
|
1422
1422
|
};
|
|
1423
1423
|
});
|
|
1424
|
-
const $ZodNumber =
|
|
1424
|
+
const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
|
|
1425
1425
|
$ZodType.init(inst, def);
|
|
1426
1426
|
inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
|
|
1427
1427
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -1441,11 +1441,11 @@ const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
1441
1441
|
return payload;
|
|
1442
1442
|
};
|
|
1443
1443
|
});
|
|
1444
|
-
const $ZodNumberFormat =
|
|
1444
|
+
const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
1445
1445
|
$ZodCheckNumberFormat.init(inst, def);
|
|
1446
1446
|
$ZodNumber.init(inst, def);
|
|
1447
1447
|
});
|
|
1448
|
-
const $ZodBoolean =
|
|
1448
|
+
const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
|
|
1449
1449
|
$ZodType.init(inst, def);
|
|
1450
1450
|
inst._zod.pattern = boolean$1;
|
|
1451
1451
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -1463,7 +1463,7 @@ const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
|
1463
1463
|
return payload;
|
|
1464
1464
|
};
|
|
1465
1465
|
});
|
|
1466
|
-
const $ZodNull =
|
|
1466
|
+
const $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => {
|
|
1467
1467
|
$ZodType.init(inst, def);
|
|
1468
1468
|
inst._zod.pattern = _null$2;
|
|
1469
1469
|
inst._zod.values = new Set([null]);
|
|
@@ -1479,11 +1479,11 @@ const $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {
|
|
|
1479
1479
|
return payload;
|
|
1480
1480
|
};
|
|
1481
1481
|
});
|
|
1482
|
-
const $ZodUnknown =
|
|
1482
|
+
const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
|
|
1483
1483
|
$ZodType.init(inst, def);
|
|
1484
1484
|
inst._zod.parse = (payload) => payload;
|
|
1485
1485
|
});
|
|
1486
|
-
const $ZodNever =
|
|
1486
|
+
const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
1487
1487
|
$ZodType.init(inst, def);
|
|
1488
1488
|
inst._zod.parse = (payload, _ctx) => {
|
|
1489
1489
|
payload.issues.push({
|
|
@@ -1499,7 +1499,7 @@ function handleArrayResult(result, final, index) {
|
|
|
1499
1499
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1500
1500
|
final.value[index] = result.value;
|
|
1501
1501
|
}
|
|
1502
|
-
const $ZodArray =
|
|
1502
|
+
const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
1503
1503
|
$ZodType.init(inst, def);
|
|
1504
1504
|
inst._zod.parse = (payload, ctx) => {
|
|
1505
1505
|
const input = payload.value;
|
|
@@ -1590,7 +1590,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1590
1590
|
return payload;
|
|
1591
1591
|
});
|
|
1592
1592
|
}
|
|
1593
|
-
const $ZodObject =
|
|
1593
|
+
const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
1594
1594
|
$ZodType.init(inst, def);
|
|
1595
1595
|
if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
|
|
1596
1596
|
const sh = def.shape;
|
|
@@ -1646,7 +1646,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
1646
1646
|
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
|
1647
1647
|
};
|
|
1648
1648
|
});
|
|
1649
|
-
const $ZodObjectJIT =
|
|
1649
|
+
const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
1650
1650
|
$ZodObject.init(inst, def);
|
|
1651
1651
|
const superParse = inst._zod.parse;
|
|
1652
1652
|
const _normalized = cached(() => normalizeDef(def));
|
|
@@ -1786,7 +1786,7 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
1786
1786
|
});
|
|
1787
1787
|
return final;
|
|
1788
1788
|
}
|
|
1789
|
-
const $ZodUnion =
|
|
1789
|
+
const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
|
|
1790
1790
|
$ZodType.init(inst, def);
|
|
1791
1791
|
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
1792
1792
|
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
@@ -1823,7 +1823,7 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
1823
1823
|
});
|
|
1824
1824
|
};
|
|
1825
1825
|
});
|
|
1826
|
-
const $ZodDiscriminatedUnion =
|
|
1826
|
+
const $ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
|
|
1827
1827
|
def.inclusive = false;
|
|
1828
1828
|
$ZodUnion.init(inst, def);
|
|
1829
1829
|
const _super = inst._zod.parse;
|
|
@@ -1879,7 +1879,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
|
|
|
1879
1879
|
return payload;
|
|
1880
1880
|
};
|
|
1881
1881
|
});
|
|
1882
|
-
const $ZodIntersection =
|
|
1882
|
+
const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
|
|
1883
1883
|
$ZodType.init(inst, def);
|
|
1884
1884
|
inst._zod.parse = (payload, ctx) => {
|
|
1885
1885
|
const input = payload.value;
|
|
@@ -1978,7 +1978,7 @@ function handleIntersectionResults(result, left, right) {
|
|
|
1978
1978
|
result.value = merged.data;
|
|
1979
1979
|
return result;
|
|
1980
1980
|
}
|
|
1981
|
-
const $ZodRecord =
|
|
1981
|
+
const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
|
|
1982
1982
|
$ZodType.init(inst, def);
|
|
1983
1983
|
inst._zod.parse = (payload, ctx) => {
|
|
1984
1984
|
const input = payload.value;
|
|
@@ -2087,7 +2087,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
2087
2087
|
return payload;
|
|
2088
2088
|
};
|
|
2089
2089
|
});
|
|
2090
|
-
const $ZodEnum =
|
|
2090
|
+
const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
2091
2091
|
$ZodType.init(inst, def);
|
|
2092
2092
|
const values = getEnumValues(def.entries);
|
|
2093
2093
|
const valuesSet = new Set(values);
|
|
@@ -2105,7 +2105,7 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
2105
2105
|
return payload;
|
|
2106
2106
|
};
|
|
2107
2107
|
});
|
|
2108
|
-
const $ZodLiteral =
|
|
2108
|
+
const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
|
|
2109
2109
|
$ZodType.init(inst, def);
|
|
2110
2110
|
if (def.values.length === 0) throw new Error("Cannot create literal schema with no valid values");
|
|
2111
2111
|
const values = new Set(def.values);
|
|
@@ -2123,7 +2123,7 @@ const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
2123
2123
|
return payload;
|
|
2124
2124
|
};
|
|
2125
2125
|
});
|
|
2126
|
-
const $ZodTransform =
|
|
2126
|
+
const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
|
|
2127
2127
|
$ZodType.init(inst, def);
|
|
2128
2128
|
inst._zod.optin = "optional";
|
|
2129
2129
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -2147,7 +2147,7 @@ function handleOptionalResult(result, input) {
|
|
|
2147
2147
|
};
|
|
2148
2148
|
return result;
|
|
2149
2149
|
}
|
|
2150
|
-
const $ZodOptional =
|
|
2150
|
+
const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
|
|
2151
2151
|
$ZodType.init(inst, def);
|
|
2152
2152
|
inst._zod.optin = "optional";
|
|
2153
2153
|
inst._zod.optout = "optional";
|
|
@@ -2169,7 +2169,7 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
|
|
|
2169
2169
|
return def.innerType._zod.run(payload, ctx);
|
|
2170
2170
|
};
|
|
2171
2171
|
});
|
|
2172
|
-
const $ZodExactOptional =
|
|
2172
|
+
const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
|
|
2173
2173
|
$ZodOptional.init(inst, def);
|
|
2174
2174
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
2175
2175
|
defineLazy(inst._zod, "pattern", () => def.innerType._zod.pattern);
|
|
@@ -2177,7 +2177,7 @@ const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (ins
|
|
|
2177
2177
|
return def.innerType._zod.run(payload, ctx);
|
|
2178
2178
|
};
|
|
2179
2179
|
});
|
|
2180
|
-
const $ZodNullable =
|
|
2180
|
+
const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
|
|
2181
2181
|
$ZodType.init(inst, def);
|
|
2182
2182
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
|
2183
2183
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2193,7 +2193,7 @@ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) =>
|
|
|
2193
2193
|
return def.innerType._zod.run(payload, ctx);
|
|
2194
2194
|
};
|
|
2195
2195
|
});
|
|
2196
|
-
const $ZodDefault =
|
|
2196
|
+
const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
|
|
2197
2197
|
$ZodType.init(inst, def);
|
|
2198
2198
|
inst._zod.optin = "optional";
|
|
2199
2199
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2215,7 +2215,7 @@ function handleDefaultResult(payload, def) {
|
|
|
2215
2215
|
if (payload.value === void 0) payload.value = def.defaultValue;
|
|
2216
2216
|
return payload;
|
|
2217
2217
|
}
|
|
2218
|
-
const $ZodPrefault =
|
|
2218
|
+
const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
|
|
2219
2219
|
$ZodType.init(inst, def);
|
|
2220
2220
|
inst._zod.optin = "optional";
|
|
2221
2221
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2225,7 +2225,7 @@ const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) =>
|
|
|
2225
2225
|
return def.innerType._zod.run(payload, ctx);
|
|
2226
2226
|
};
|
|
2227
2227
|
});
|
|
2228
|
-
const $ZodNonOptional =
|
|
2228
|
+
const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
|
|
2229
2229
|
$ZodType.init(inst, def);
|
|
2230
2230
|
defineLazy(inst._zod, "values", () => {
|
|
2231
2231
|
const v = def.innerType._zod.values;
|
|
@@ -2246,7 +2246,7 @@ function handleNonOptionalResult(payload, inst) {
|
|
|
2246
2246
|
});
|
|
2247
2247
|
return payload;
|
|
2248
2248
|
}
|
|
2249
|
-
const $ZodCatch =
|
|
2249
|
+
const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
|
|
2250
2250
|
$ZodType.init(inst, def);
|
|
2251
2251
|
inst._zod.optin = "optional";
|
|
2252
2252
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
@@ -2280,7 +2280,7 @@ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
2280
2280
|
return payload;
|
|
2281
2281
|
};
|
|
2282
2282
|
});
|
|
2283
|
-
const $ZodPipe =
|
|
2283
|
+
const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
|
|
2284
2284
|
$ZodType.init(inst, def);
|
|
2285
2285
|
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
|
2286
2286
|
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
|
@@ -2308,10 +2308,10 @@ function handlePipeResult(left, next, ctx) {
|
|
|
2308
2308
|
fallback: left.fallback
|
|
2309
2309
|
}, ctx);
|
|
2310
2310
|
}
|
|
2311
|
-
const $ZodPreprocess =
|
|
2311
|
+
const $ZodPreprocess = /*@__PURE__*/ $constructor("$ZodPreprocess", (inst, def) => {
|
|
2312
2312
|
$ZodPipe.init(inst, def);
|
|
2313
2313
|
});
|
|
2314
|
-
const $ZodReadonly =
|
|
2314
|
+
const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
|
|
2315
2315
|
$ZodType.init(inst, def);
|
|
2316
2316
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
2317
2317
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
@@ -2328,7 +2328,7 @@ function handleReadonlyResult(payload) {
|
|
|
2328
2328
|
payload.value = Object.freeze(payload.value);
|
|
2329
2329
|
return payload;
|
|
2330
2330
|
}
|
|
2331
|
-
const $ZodCustom =
|
|
2331
|
+
const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
|
|
2332
2332
|
$ZodCheck.init(inst, def);
|
|
2333
2333
|
$ZodType.init(inst, def);
|
|
2334
2334
|
inst._zod.parse = (payload, _) => {
|
|
@@ -2403,14 +2403,14 @@ function registry() {
|
|
|
2403
2403
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2404
2404
|
//#endregion
|
|
2405
2405
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2406
|
-
|
|
2406
|
+
// @__NO_SIDE_EFFECTS__
|
|
2407
2407
|
function _string(Class, params) {
|
|
2408
2408
|
return new Class({
|
|
2409
2409
|
type: "string",
|
|
2410
2410
|
...normalizeParams(params)
|
|
2411
2411
|
});
|
|
2412
2412
|
}
|
|
2413
|
-
|
|
2413
|
+
// @__NO_SIDE_EFFECTS__
|
|
2414
2414
|
function _email(Class, params) {
|
|
2415
2415
|
return new Class({
|
|
2416
2416
|
type: "string",
|
|
@@ -2420,7 +2420,7 @@ function _email(Class, params) {
|
|
|
2420
2420
|
...normalizeParams(params)
|
|
2421
2421
|
});
|
|
2422
2422
|
}
|
|
2423
|
-
|
|
2423
|
+
// @__NO_SIDE_EFFECTS__
|
|
2424
2424
|
function _guid(Class, params) {
|
|
2425
2425
|
return new Class({
|
|
2426
2426
|
type: "string",
|
|
@@ -2430,7 +2430,7 @@ function _guid(Class, params) {
|
|
|
2430
2430
|
...normalizeParams(params)
|
|
2431
2431
|
});
|
|
2432
2432
|
}
|
|
2433
|
-
|
|
2433
|
+
// @__NO_SIDE_EFFECTS__
|
|
2434
2434
|
function _uuid(Class, params) {
|
|
2435
2435
|
return new Class({
|
|
2436
2436
|
type: "string",
|
|
@@ -2440,7 +2440,7 @@ function _uuid(Class, params) {
|
|
|
2440
2440
|
...normalizeParams(params)
|
|
2441
2441
|
});
|
|
2442
2442
|
}
|
|
2443
|
-
|
|
2443
|
+
// @__NO_SIDE_EFFECTS__
|
|
2444
2444
|
function _uuidv4(Class, params) {
|
|
2445
2445
|
return new Class({
|
|
2446
2446
|
type: "string",
|
|
@@ -2451,7 +2451,7 @@ function _uuidv4(Class, params) {
|
|
|
2451
2451
|
...normalizeParams(params)
|
|
2452
2452
|
});
|
|
2453
2453
|
}
|
|
2454
|
-
|
|
2454
|
+
// @__NO_SIDE_EFFECTS__
|
|
2455
2455
|
function _uuidv6(Class, params) {
|
|
2456
2456
|
return new Class({
|
|
2457
2457
|
type: "string",
|
|
@@ -2462,7 +2462,7 @@ function _uuidv6(Class, params) {
|
|
|
2462
2462
|
...normalizeParams(params)
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
|
-
|
|
2465
|
+
// @__NO_SIDE_EFFECTS__
|
|
2466
2466
|
function _uuidv7(Class, params) {
|
|
2467
2467
|
return new Class({
|
|
2468
2468
|
type: "string",
|
|
@@ -2473,7 +2473,7 @@ function _uuidv7(Class, params) {
|
|
|
2473
2473
|
...normalizeParams(params)
|
|
2474
2474
|
});
|
|
2475
2475
|
}
|
|
2476
|
-
|
|
2476
|
+
// @__NO_SIDE_EFFECTS__
|
|
2477
2477
|
function _url(Class, params) {
|
|
2478
2478
|
return new Class({
|
|
2479
2479
|
type: "string",
|
|
@@ -2483,7 +2483,7 @@ function _url(Class, params) {
|
|
|
2483
2483
|
...normalizeParams(params)
|
|
2484
2484
|
});
|
|
2485
2485
|
}
|
|
2486
|
-
|
|
2486
|
+
// @__NO_SIDE_EFFECTS__
|
|
2487
2487
|
function _emoji(Class, params) {
|
|
2488
2488
|
return new Class({
|
|
2489
2489
|
type: "string",
|
|
@@ -2493,7 +2493,7 @@ function _emoji(Class, params) {
|
|
|
2493
2493
|
...normalizeParams(params)
|
|
2494
2494
|
});
|
|
2495
2495
|
}
|
|
2496
|
-
|
|
2496
|
+
// @__NO_SIDE_EFFECTS__
|
|
2497
2497
|
function _nanoid(Class, params) {
|
|
2498
2498
|
return new Class({
|
|
2499
2499
|
type: "string",
|
|
@@ -2508,7 +2508,7 @@ function _nanoid(Class, params) {
|
|
|
2508
2508
|
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
2509
2509
|
* See https://github.com/paralleldrive/cuid.
|
|
2510
2510
|
*/
|
|
2511
|
-
|
|
2511
|
+
// @__NO_SIDE_EFFECTS__
|
|
2512
2512
|
function _cuid(Class, params) {
|
|
2513
2513
|
return new Class({
|
|
2514
2514
|
type: "string",
|
|
@@ -2518,7 +2518,7 @@ function _cuid(Class, params) {
|
|
|
2518
2518
|
...normalizeParams(params)
|
|
2519
2519
|
});
|
|
2520
2520
|
}
|
|
2521
|
-
|
|
2521
|
+
// @__NO_SIDE_EFFECTS__
|
|
2522
2522
|
function _cuid2(Class, params) {
|
|
2523
2523
|
return new Class({
|
|
2524
2524
|
type: "string",
|
|
@@ -2528,7 +2528,7 @@ function _cuid2(Class, params) {
|
|
|
2528
2528
|
...normalizeParams(params)
|
|
2529
2529
|
});
|
|
2530
2530
|
}
|
|
2531
|
-
|
|
2531
|
+
// @__NO_SIDE_EFFECTS__
|
|
2532
2532
|
function _ulid(Class, params) {
|
|
2533
2533
|
return new Class({
|
|
2534
2534
|
type: "string",
|
|
@@ -2538,7 +2538,7 @@ function _ulid(Class, params) {
|
|
|
2538
2538
|
...normalizeParams(params)
|
|
2539
2539
|
});
|
|
2540
2540
|
}
|
|
2541
|
-
|
|
2541
|
+
// @__NO_SIDE_EFFECTS__
|
|
2542
2542
|
function _xid(Class, params) {
|
|
2543
2543
|
return new Class({
|
|
2544
2544
|
type: "string",
|
|
@@ -2548,7 +2548,7 @@ function _xid(Class, params) {
|
|
|
2548
2548
|
...normalizeParams(params)
|
|
2549
2549
|
});
|
|
2550
2550
|
}
|
|
2551
|
-
|
|
2551
|
+
// @__NO_SIDE_EFFECTS__
|
|
2552
2552
|
function _ksuid(Class, params) {
|
|
2553
2553
|
return new Class({
|
|
2554
2554
|
type: "string",
|
|
@@ -2558,7 +2558,7 @@ function _ksuid(Class, params) {
|
|
|
2558
2558
|
...normalizeParams(params)
|
|
2559
2559
|
});
|
|
2560
2560
|
}
|
|
2561
|
-
|
|
2561
|
+
// @__NO_SIDE_EFFECTS__
|
|
2562
2562
|
function _ipv4(Class, params) {
|
|
2563
2563
|
return new Class({
|
|
2564
2564
|
type: "string",
|
|
@@ -2568,7 +2568,7 @@ function _ipv4(Class, params) {
|
|
|
2568
2568
|
...normalizeParams(params)
|
|
2569
2569
|
});
|
|
2570
2570
|
}
|
|
2571
|
-
|
|
2571
|
+
// @__NO_SIDE_EFFECTS__
|
|
2572
2572
|
function _ipv6(Class, params) {
|
|
2573
2573
|
return new Class({
|
|
2574
2574
|
type: "string",
|
|
@@ -2578,7 +2578,7 @@ function _ipv6(Class, params) {
|
|
|
2578
2578
|
...normalizeParams(params)
|
|
2579
2579
|
});
|
|
2580
2580
|
}
|
|
2581
|
-
|
|
2581
|
+
// @__NO_SIDE_EFFECTS__
|
|
2582
2582
|
function _cidrv4(Class, params) {
|
|
2583
2583
|
return new Class({
|
|
2584
2584
|
type: "string",
|
|
@@ -2588,7 +2588,7 @@ function _cidrv4(Class, params) {
|
|
|
2588
2588
|
...normalizeParams(params)
|
|
2589
2589
|
});
|
|
2590
2590
|
}
|
|
2591
|
-
|
|
2591
|
+
// @__NO_SIDE_EFFECTS__
|
|
2592
2592
|
function _cidrv6(Class, params) {
|
|
2593
2593
|
return new Class({
|
|
2594
2594
|
type: "string",
|
|
@@ -2598,7 +2598,7 @@ function _cidrv6(Class, params) {
|
|
|
2598
2598
|
...normalizeParams(params)
|
|
2599
2599
|
});
|
|
2600
2600
|
}
|
|
2601
|
-
|
|
2601
|
+
// @__NO_SIDE_EFFECTS__
|
|
2602
2602
|
function _base64(Class, params) {
|
|
2603
2603
|
return new Class({
|
|
2604
2604
|
type: "string",
|
|
@@ -2608,7 +2608,7 @@ function _base64(Class, params) {
|
|
|
2608
2608
|
...normalizeParams(params)
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
|
-
|
|
2611
|
+
// @__NO_SIDE_EFFECTS__
|
|
2612
2612
|
function _base64url(Class, params) {
|
|
2613
2613
|
return new Class({
|
|
2614
2614
|
type: "string",
|
|
@@ -2618,7 +2618,7 @@ function _base64url(Class, params) {
|
|
|
2618
2618
|
...normalizeParams(params)
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
|
-
|
|
2621
|
+
// @__NO_SIDE_EFFECTS__
|
|
2622
2622
|
function _e164(Class, params) {
|
|
2623
2623
|
return new Class({
|
|
2624
2624
|
type: "string",
|
|
@@ -2628,7 +2628,7 @@ function _e164(Class, params) {
|
|
|
2628
2628
|
...normalizeParams(params)
|
|
2629
2629
|
});
|
|
2630
2630
|
}
|
|
2631
|
-
|
|
2631
|
+
// @__NO_SIDE_EFFECTS__
|
|
2632
2632
|
function _jwt(Class, params) {
|
|
2633
2633
|
return new Class({
|
|
2634
2634
|
type: "string",
|
|
@@ -2638,7 +2638,7 @@ function _jwt(Class, params) {
|
|
|
2638
2638
|
...normalizeParams(params)
|
|
2639
2639
|
});
|
|
2640
2640
|
}
|
|
2641
|
-
|
|
2641
|
+
// @__NO_SIDE_EFFECTS__
|
|
2642
2642
|
function _isoDateTime(Class, params) {
|
|
2643
2643
|
return new Class({
|
|
2644
2644
|
type: "string",
|
|
@@ -2650,7 +2650,7 @@ function _isoDateTime(Class, params) {
|
|
|
2650
2650
|
...normalizeParams(params)
|
|
2651
2651
|
});
|
|
2652
2652
|
}
|
|
2653
|
-
|
|
2653
|
+
// @__NO_SIDE_EFFECTS__
|
|
2654
2654
|
function _isoDate(Class, params) {
|
|
2655
2655
|
return new Class({
|
|
2656
2656
|
type: "string",
|
|
@@ -2659,7 +2659,7 @@ function _isoDate(Class, params) {
|
|
|
2659
2659
|
...normalizeParams(params)
|
|
2660
2660
|
});
|
|
2661
2661
|
}
|
|
2662
|
-
|
|
2662
|
+
// @__NO_SIDE_EFFECTS__
|
|
2663
2663
|
function _isoTime(Class, params) {
|
|
2664
2664
|
return new Class({
|
|
2665
2665
|
type: "string",
|
|
@@ -2669,7 +2669,7 @@ function _isoTime(Class, params) {
|
|
|
2669
2669
|
...normalizeParams(params)
|
|
2670
2670
|
});
|
|
2671
2671
|
}
|
|
2672
|
-
|
|
2672
|
+
// @__NO_SIDE_EFFECTS__
|
|
2673
2673
|
function _isoDuration(Class, params) {
|
|
2674
2674
|
return new Class({
|
|
2675
2675
|
type: "string",
|
|
@@ -2678,7 +2678,7 @@ function _isoDuration(Class, params) {
|
|
|
2678
2678
|
...normalizeParams(params)
|
|
2679
2679
|
});
|
|
2680
2680
|
}
|
|
2681
|
-
|
|
2681
|
+
// @__NO_SIDE_EFFECTS__
|
|
2682
2682
|
function _number(Class, params) {
|
|
2683
2683
|
return new Class({
|
|
2684
2684
|
type: "number",
|
|
@@ -2686,7 +2686,7 @@ function _number(Class, params) {
|
|
|
2686
2686
|
...normalizeParams(params)
|
|
2687
2687
|
});
|
|
2688
2688
|
}
|
|
2689
|
-
|
|
2689
|
+
// @__NO_SIDE_EFFECTS__
|
|
2690
2690
|
function _int(Class, params) {
|
|
2691
2691
|
return new Class({
|
|
2692
2692
|
type: "number",
|
|
@@ -2696,32 +2696,32 @@ function _int(Class, params) {
|
|
|
2696
2696
|
...normalizeParams(params)
|
|
2697
2697
|
});
|
|
2698
2698
|
}
|
|
2699
|
-
|
|
2699
|
+
// @__NO_SIDE_EFFECTS__
|
|
2700
2700
|
function _boolean(Class, params) {
|
|
2701
2701
|
return new Class({
|
|
2702
2702
|
type: "boolean",
|
|
2703
2703
|
...normalizeParams(params)
|
|
2704
2704
|
});
|
|
2705
2705
|
}
|
|
2706
|
-
|
|
2706
|
+
// @__NO_SIDE_EFFECTS__
|
|
2707
2707
|
function _null$1(Class, params) {
|
|
2708
2708
|
return new Class({
|
|
2709
2709
|
type: "null",
|
|
2710
2710
|
...normalizeParams(params)
|
|
2711
2711
|
});
|
|
2712
2712
|
}
|
|
2713
|
-
|
|
2713
|
+
// @__NO_SIDE_EFFECTS__
|
|
2714
2714
|
function _unknown(Class) {
|
|
2715
2715
|
return new Class({ type: "unknown" });
|
|
2716
2716
|
}
|
|
2717
|
-
|
|
2717
|
+
// @__NO_SIDE_EFFECTS__
|
|
2718
2718
|
function _never(Class, params) {
|
|
2719
2719
|
return new Class({
|
|
2720
2720
|
type: "never",
|
|
2721
2721
|
...normalizeParams(params)
|
|
2722
2722
|
});
|
|
2723
2723
|
}
|
|
2724
|
-
|
|
2724
|
+
// @__NO_SIDE_EFFECTS__
|
|
2725
2725
|
function _lt(value, params) {
|
|
2726
2726
|
return new $ZodCheckLessThan({
|
|
2727
2727
|
check: "less_than",
|
|
@@ -2730,7 +2730,7 @@ function _lt(value, params) {
|
|
|
2730
2730
|
inclusive: false
|
|
2731
2731
|
});
|
|
2732
2732
|
}
|
|
2733
|
-
|
|
2733
|
+
// @__NO_SIDE_EFFECTS__
|
|
2734
2734
|
function _lte(value, params) {
|
|
2735
2735
|
return new $ZodCheckLessThan({
|
|
2736
2736
|
check: "less_than",
|
|
@@ -2739,7 +2739,7 @@ function _lte(value, params) {
|
|
|
2739
2739
|
inclusive: true
|
|
2740
2740
|
});
|
|
2741
2741
|
}
|
|
2742
|
-
|
|
2742
|
+
// @__NO_SIDE_EFFECTS__
|
|
2743
2743
|
function _gt(value, params) {
|
|
2744
2744
|
return new $ZodCheckGreaterThan({
|
|
2745
2745
|
check: "greater_than",
|
|
@@ -2748,7 +2748,7 @@ function _gt(value, params) {
|
|
|
2748
2748
|
inclusive: false
|
|
2749
2749
|
});
|
|
2750
2750
|
}
|
|
2751
|
-
|
|
2751
|
+
// @__NO_SIDE_EFFECTS__
|
|
2752
2752
|
function _gte(value, params) {
|
|
2753
2753
|
return new $ZodCheckGreaterThan({
|
|
2754
2754
|
check: "greater_than",
|
|
@@ -2757,7 +2757,7 @@ function _gte(value, params) {
|
|
|
2757
2757
|
inclusive: true
|
|
2758
2758
|
});
|
|
2759
2759
|
}
|
|
2760
|
-
|
|
2760
|
+
// @__NO_SIDE_EFFECTS__
|
|
2761
2761
|
function _multipleOf(value, params) {
|
|
2762
2762
|
return new $ZodCheckMultipleOf({
|
|
2763
2763
|
check: "multiple_of",
|
|
@@ -2765,7 +2765,7 @@ function _multipleOf(value, params) {
|
|
|
2765
2765
|
value
|
|
2766
2766
|
});
|
|
2767
2767
|
}
|
|
2768
|
-
|
|
2768
|
+
// @__NO_SIDE_EFFECTS__
|
|
2769
2769
|
function _maxLength(maximum, params) {
|
|
2770
2770
|
return new $ZodCheckMaxLength({
|
|
2771
2771
|
check: "max_length",
|
|
@@ -2773,7 +2773,7 @@ function _maxLength(maximum, params) {
|
|
|
2773
2773
|
maximum
|
|
2774
2774
|
});
|
|
2775
2775
|
}
|
|
2776
|
-
|
|
2776
|
+
// @__NO_SIDE_EFFECTS__
|
|
2777
2777
|
function _minLength(minimum, params) {
|
|
2778
2778
|
return new $ZodCheckMinLength({
|
|
2779
2779
|
check: "min_length",
|
|
@@ -2781,7 +2781,7 @@ function _minLength(minimum, params) {
|
|
|
2781
2781
|
minimum
|
|
2782
2782
|
});
|
|
2783
2783
|
}
|
|
2784
|
-
|
|
2784
|
+
// @__NO_SIDE_EFFECTS__
|
|
2785
2785
|
function _length(length, params) {
|
|
2786
2786
|
return new $ZodCheckLengthEquals({
|
|
2787
2787
|
check: "length_equals",
|
|
@@ -2789,7 +2789,7 @@ function _length(length, params) {
|
|
|
2789
2789
|
length
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
|
-
|
|
2792
|
+
// @__NO_SIDE_EFFECTS__
|
|
2793
2793
|
function _regex(pattern, params) {
|
|
2794
2794
|
return new $ZodCheckRegex({
|
|
2795
2795
|
check: "string_format",
|
|
@@ -2798,7 +2798,7 @@ function _regex(pattern, params) {
|
|
|
2798
2798
|
pattern
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
|
-
|
|
2801
|
+
// @__NO_SIDE_EFFECTS__
|
|
2802
2802
|
function _lowercase(params) {
|
|
2803
2803
|
return new $ZodCheckLowerCase({
|
|
2804
2804
|
check: "string_format",
|
|
@@ -2806,7 +2806,7 @@ function _lowercase(params) {
|
|
|
2806
2806
|
...normalizeParams(params)
|
|
2807
2807
|
});
|
|
2808
2808
|
}
|
|
2809
|
-
|
|
2809
|
+
// @__NO_SIDE_EFFECTS__
|
|
2810
2810
|
function _uppercase(params) {
|
|
2811
2811
|
return new $ZodCheckUpperCase({
|
|
2812
2812
|
check: "string_format",
|
|
@@ -2814,7 +2814,7 @@ function _uppercase(params) {
|
|
|
2814
2814
|
...normalizeParams(params)
|
|
2815
2815
|
});
|
|
2816
2816
|
}
|
|
2817
|
-
|
|
2817
|
+
// @__NO_SIDE_EFFECTS__
|
|
2818
2818
|
function _includes(includes, params) {
|
|
2819
2819
|
return new $ZodCheckIncludes({
|
|
2820
2820
|
check: "string_format",
|
|
@@ -2823,7 +2823,7 @@ function _includes(includes, params) {
|
|
|
2823
2823
|
includes
|
|
2824
2824
|
});
|
|
2825
2825
|
}
|
|
2826
|
-
|
|
2826
|
+
// @__NO_SIDE_EFFECTS__
|
|
2827
2827
|
function _startsWith(prefix, params) {
|
|
2828
2828
|
return new $ZodCheckStartsWith({
|
|
2829
2829
|
check: "string_format",
|
|
@@ -2832,7 +2832,7 @@ function _startsWith(prefix, params) {
|
|
|
2832
2832
|
prefix
|
|
2833
2833
|
});
|
|
2834
2834
|
}
|
|
2835
|
-
|
|
2835
|
+
// @__NO_SIDE_EFFECTS__
|
|
2836
2836
|
function _endsWith(suffix, params) {
|
|
2837
2837
|
return new $ZodCheckEndsWith({
|
|
2838
2838
|
check: "string_format",
|
|
@@ -2841,34 +2841,34 @@ function _endsWith(suffix, params) {
|
|
|
2841
2841
|
suffix
|
|
2842
2842
|
});
|
|
2843
2843
|
}
|
|
2844
|
-
|
|
2844
|
+
// @__NO_SIDE_EFFECTS__
|
|
2845
2845
|
function _overwrite(tx) {
|
|
2846
2846
|
return new $ZodCheckOverwrite({
|
|
2847
2847
|
check: "overwrite",
|
|
2848
2848
|
tx
|
|
2849
2849
|
});
|
|
2850
2850
|
}
|
|
2851
|
-
|
|
2851
|
+
// @__NO_SIDE_EFFECTS__
|
|
2852
2852
|
function _normalize(form) {
|
|
2853
2853
|
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
2854
2854
|
}
|
|
2855
|
-
|
|
2855
|
+
// @__NO_SIDE_EFFECTS__
|
|
2856
2856
|
function _trim() {
|
|
2857
2857
|
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
2858
2858
|
}
|
|
2859
|
-
|
|
2859
|
+
// @__NO_SIDE_EFFECTS__
|
|
2860
2860
|
function _toLowerCase() {
|
|
2861
2861
|
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
2862
2862
|
}
|
|
2863
|
-
|
|
2863
|
+
// @__NO_SIDE_EFFECTS__
|
|
2864
2864
|
function _toUpperCase() {
|
|
2865
2865
|
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
2866
2866
|
}
|
|
2867
|
-
|
|
2867
|
+
// @__NO_SIDE_EFFECTS__
|
|
2868
2868
|
function _slugify() {
|
|
2869
2869
|
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
2870
2870
|
}
|
|
2871
|
-
|
|
2871
|
+
// @__NO_SIDE_EFFECTS__
|
|
2872
2872
|
function _array(Class, element, params) {
|
|
2873
2873
|
return new Class({
|
|
2874
2874
|
type: "array",
|
|
@@ -2876,7 +2876,7 @@ function _array(Class, element, params) {
|
|
|
2876
2876
|
...normalizeParams(params)
|
|
2877
2877
|
});
|
|
2878
2878
|
}
|
|
2879
|
-
|
|
2879
|
+
// @__NO_SIDE_EFFECTS__
|
|
2880
2880
|
function _custom(Class, fn, _params) {
|
|
2881
2881
|
const norm = normalizeParams(_params);
|
|
2882
2882
|
norm.abort ?? (norm.abort = true);
|
|
@@ -2887,7 +2887,7 @@ function _custom(Class, fn, _params) {
|
|
|
2887
2887
|
...norm
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2890
|
+
// @__NO_SIDE_EFFECTS__
|
|
2891
2891
|
function _refine(Class, fn, _params) {
|
|
2892
2892
|
return new Class({
|
|
2893
2893
|
type: "custom",
|
|
@@ -2896,7 +2896,7 @@ function _refine(Class, fn, _params) {
|
|
|
2896
2896
|
...normalizeParams(_params)
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
2899
|
-
|
|
2899
|
+
// @__NO_SIDE_EFFECTS__
|
|
2900
2900
|
function _superRefine(fn, params) {
|
|
2901
2901
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
2902
2902
|
payload.addIssue = (issue$2) => {
|
|
@@ -2915,7 +2915,7 @@ function _superRefine(fn, params) {
|
|
|
2915
2915
|
}, params);
|
|
2916
2916
|
return ch;
|
|
2917
2917
|
}
|
|
2918
|
-
|
|
2918
|
+
// @__NO_SIDE_EFFECTS__
|
|
2919
2919
|
function _check(fn, params) {
|
|
2920
2920
|
const ch = new $ZodCheck({
|
|
2921
2921
|
check: "custom",
|
|
@@ -3671,28 +3671,28 @@ function toJSONSchema(input, params) {
|
|
|
3671
3671
|
}
|
|
3672
3672
|
//#endregion
|
|
3673
3673
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3674
|
-
const ZodISODateTime =
|
|
3674
|
+
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
3675
3675
|
$ZodISODateTime.init(inst, def);
|
|
3676
3676
|
ZodStringFormat.init(inst, def);
|
|
3677
3677
|
});
|
|
3678
3678
|
function datetime(params) {
|
|
3679
3679
|
return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
|
|
3680
3680
|
}
|
|
3681
|
-
const ZodISODate =
|
|
3681
|
+
const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
|
|
3682
3682
|
$ZodISODate.init(inst, def);
|
|
3683
3683
|
ZodStringFormat.init(inst, def);
|
|
3684
3684
|
});
|
|
3685
3685
|
function date(params) {
|
|
3686
3686
|
return /* @__PURE__ */ _isoDate(ZodISODate, params);
|
|
3687
3687
|
}
|
|
3688
|
-
const ZodISOTime =
|
|
3688
|
+
const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
|
|
3689
3689
|
$ZodISOTime.init(inst, def);
|
|
3690
3690
|
ZodStringFormat.init(inst, def);
|
|
3691
3691
|
});
|
|
3692
3692
|
function time(params) {
|
|
3693
3693
|
return /* @__PURE__ */ _isoTime(ZodISOTime, params);
|
|
3694
3694
|
}
|
|
3695
|
-
const ZodISODuration =
|
|
3695
|
+
const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
|
|
3696
3696
|
$ZodISODuration.init(inst, def);
|
|
3697
3697
|
ZodStringFormat.init(inst, def);
|
|
3698
3698
|
});
|
|
@@ -3720,7 +3720,7 @@ const initializer = (inst, issues) => {
|
|
|
3720
3720
|
} }
|
|
3721
3721
|
});
|
|
3722
3722
|
};
|
|
3723
|
-
const ZodRealError =
|
|
3723
|
+
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3724
3724
|
//#endregion
|
|
3725
3725
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3726
3726
|
const parse$1 = /* @__PURE__ */ _parse(ZodRealError);
|
|
@@ -3773,7 +3773,7 @@ function _installLazyMethods(inst, group, methods) {
|
|
|
3773
3773
|
});
|
|
3774
3774
|
}
|
|
3775
3775
|
}
|
|
3776
|
-
const ZodType$1 =
|
|
3776
|
+
const ZodType$1 = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
3777
3777
|
$ZodType.init(inst, def);
|
|
3778
3778
|
Object.assign(inst["~standard"], { jsonSchema: {
|
|
3779
3779
|
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
@@ -3899,7 +3899,7 @@ const ZodType$1 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
3899
3899
|
return inst;
|
|
3900
3900
|
});
|
|
3901
3901
|
/** @internal */
|
|
3902
|
-
const _ZodString =
|
|
3902
|
+
const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
|
|
3903
3903
|
$ZodString.init(inst, def);
|
|
3904
3904
|
ZodType$1.init(inst, def);
|
|
3905
3905
|
inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
|
|
@@ -3955,7 +3955,7 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
});
|
|
3957
3957
|
});
|
|
3958
|
-
const ZodString$1 =
|
|
3958
|
+
const ZodString$1 = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
|
|
3959
3959
|
$ZodString.init(inst, def);
|
|
3960
3960
|
_ZodString.init(inst, def);
|
|
3961
3961
|
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
@@ -3989,31 +3989,31 @@ const ZodString$1 = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
|
3989
3989
|
function string$2(params) {
|
|
3990
3990
|
return /* @__PURE__ */ _string(ZodString$1, params);
|
|
3991
3991
|
}
|
|
3992
|
-
const ZodStringFormat =
|
|
3992
|
+
const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
|
|
3993
3993
|
$ZodStringFormat.init(inst, def);
|
|
3994
3994
|
_ZodString.init(inst, def);
|
|
3995
3995
|
});
|
|
3996
|
-
const ZodEmail =
|
|
3996
|
+
const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
|
|
3997
3997
|
$ZodEmail.init(inst, def);
|
|
3998
3998
|
ZodStringFormat.init(inst, def);
|
|
3999
3999
|
});
|
|
4000
|
-
const ZodGUID =
|
|
4000
|
+
const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
|
|
4001
4001
|
$ZodGUID.init(inst, def);
|
|
4002
4002
|
ZodStringFormat.init(inst, def);
|
|
4003
4003
|
});
|
|
4004
|
-
const ZodUUID =
|
|
4004
|
+
const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
|
|
4005
4005
|
$ZodUUID.init(inst, def);
|
|
4006
4006
|
ZodStringFormat.init(inst, def);
|
|
4007
4007
|
});
|
|
4008
|
-
const ZodURL =
|
|
4008
|
+
const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
|
|
4009
4009
|
$ZodURL.init(inst, def);
|
|
4010
4010
|
ZodStringFormat.init(inst, def);
|
|
4011
4011
|
});
|
|
4012
|
-
const ZodEmoji =
|
|
4012
|
+
const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
|
|
4013
4013
|
$ZodEmoji.init(inst, def);
|
|
4014
4014
|
ZodStringFormat.init(inst, def);
|
|
4015
4015
|
});
|
|
4016
|
-
const ZodNanoID =
|
|
4016
|
+
const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
|
|
4017
4017
|
$ZodNanoID.init(inst, def);
|
|
4018
4018
|
ZodStringFormat.init(inst, def);
|
|
4019
4019
|
});
|
|
@@ -4022,59 +4022,59 @@ const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
|
|
|
4022
4022
|
* (timestamps embedded in the id). Use {@link ZodCUID2} instead.
|
|
4023
4023
|
* See https://github.com/paralleldrive/cuid.
|
|
4024
4024
|
*/
|
|
4025
|
-
const ZodCUID =
|
|
4025
|
+
const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
|
|
4026
4026
|
$ZodCUID.init(inst, def);
|
|
4027
4027
|
ZodStringFormat.init(inst, def);
|
|
4028
4028
|
});
|
|
4029
|
-
const ZodCUID2 =
|
|
4029
|
+
const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
|
|
4030
4030
|
$ZodCUID2.init(inst, def);
|
|
4031
4031
|
ZodStringFormat.init(inst, def);
|
|
4032
4032
|
});
|
|
4033
|
-
const ZodULID =
|
|
4033
|
+
const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
|
|
4034
4034
|
$ZodULID.init(inst, def);
|
|
4035
4035
|
ZodStringFormat.init(inst, def);
|
|
4036
4036
|
});
|
|
4037
|
-
const ZodXID =
|
|
4037
|
+
const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
|
|
4038
4038
|
$ZodXID.init(inst, def);
|
|
4039
4039
|
ZodStringFormat.init(inst, def);
|
|
4040
4040
|
});
|
|
4041
|
-
const ZodKSUID =
|
|
4041
|
+
const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
|
|
4042
4042
|
$ZodKSUID.init(inst, def);
|
|
4043
4043
|
ZodStringFormat.init(inst, def);
|
|
4044
4044
|
});
|
|
4045
|
-
const ZodIPv4 =
|
|
4045
|
+
const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
4046
4046
|
$ZodIPv4.init(inst, def);
|
|
4047
4047
|
ZodStringFormat.init(inst, def);
|
|
4048
4048
|
});
|
|
4049
|
-
const ZodIPv6 =
|
|
4049
|
+
const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
4050
4050
|
$ZodIPv6.init(inst, def);
|
|
4051
4051
|
ZodStringFormat.init(inst, def);
|
|
4052
4052
|
});
|
|
4053
|
-
const ZodCIDRv4 =
|
|
4053
|
+
const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
4054
4054
|
$ZodCIDRv4.init(inst, def);
|
|
4055
4055
|
ZodStringFormat.init(inst, def);
|
|
4056
4056
|
});
|
|
4057
|
-
const ZodCIDRv6 =
|
|
4057
|
+
const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
|
|
4058
4058
|
$ZodCIDRv6.init(inst, def);
|
|
4059
4059
|
ZodStringFormat.init(inst, def);
|
|
4060
4060
|
});
|
|
4061
|
-
const ZodBase64 =
|
|
4061
|
+
const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
|
|
4062
4062
|
$ZodBase64.init(inst, def);
|
|
4063
4063
|
ZodStringFormat.init(inst, def);
|
|
4064
4064
|
});
|
|
4065
|
-
const ZodBase64URL =
|
|
4065
|
+
const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
|
|
4066
4066
|
$ZodBase64URL.init(inst, def);
|
|
4067
4067
|
ZodStringFormat.init(inst, def);
|
|
4068
4068
|
});
|
|
4069
|
-
const ZodE164 =
|
|
4069
|
+
const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
|
|
4070
4070
|
$ZodE164.init(inst, def);
|
|
4071
4071
|
ZodStringFormat.init(inst, def);
|
|
4072
4072
|
});
|
|
4073
|
-
const ZodJWT =
|
|
4073
|
+
const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
|
|
4074
4074
|
$ZodJWT.init(inst, def);
|
|
4075
4075
|
ZodStringFormat.init(inst, def);
|
|
4076
4076
|
});
|
|
4077
|
-
const ZodNumber$1 =
|
|
4077
|
+
const ZodNumber$1 = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
|
|
4078
4078
|
$ZodNumber.init(inst, def);
|
|
4079
4079
|
ZodType$1.init(inst, def);
|
|
4080
4080
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
@@ -4135,14 +4135,14 @@ const ZodNumber$1 = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
4135
4135
|
function number(params) {
|
|
4136
4136
|
return /* @__PURE__ */ _number(ZodNumber$1, params);
|
|
4137
4137
|
}
|
|
4138
|
-
const ZodNumberFormat =
|
|
4138
|
+
const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
|
|
4139
4139
|
$ZodNumberFormat.init(inst, def);
|
|
4140
4140
|
ZodNumber$1.init(inst, def);
|
|
4141
4141
|
});
|
|
4142
4142
|
function int(params) {
|
|
4143
4143
|
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
4144
4144
|
}
|
|
4145
|
-
const ZodBoolean$1 =
|
|
4145
|
+
const ZodBoolean$1 = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
|
|
4146
4146
|
$ZodBoolean.init(inst, def);
|
|
4147
4147
|
ZodType$1.init(inst, def);
|
|
4148
4148
|
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
@@ -4150,7 +4150,7 @@ const ZodBoolean$1 = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
4150
4150
|
function boolean(params) {
|
|
4151
4151
|
return /* @__PURE__ */ _boolean(ZodBoolean$1, params);
|
|
4152
4152
|
}
|
|
4153
|
-
const ZodNull$1 =
|
|
4153
|
+
const ZodNull$1 = /*@__PURE__*/ $constructor("ZodNull", (inst, def) => {
|
|
4154
4154
|
$ZodNull.init(inst, def);
|
|
4155
4155
|
ZodType$1.init(inst, def);
|
|
4156
4156
|
inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params);
|
|
@@ -4158,15 +4158,15 @@ const ZodNull$1 = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
|
4158
4158
|
function _null(params) {
|
|
4159
4159
|
return /* @__PURE__ */ _null$1(ZodNull$1, params);
|
|
4160
4160
|
}
|
|
4161
|
-
const ZodUnknown$1 =
|
|
4161
|
+
const ZodUnknown$1 = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
|
|
4162
4162
|
$ZodUnknown.init(inst, def);
|
|
4163
4163
|
ZodType$1.init(inst, def);
|
|
4164
|
-
inst._zod.processJSONSchema = (ctx, json, params) =>
|
|
4164
|
+
inst._zod.processJSONSchema = (ctx, json, params) => void 0;
|
|
4165
4165
|
});
|
|
4166
4166
|
function unknown$1() {
|
|
4167
4167
|
return /* @__PURE__ */ _unknown(ZodUnknown$1);
|
|
4168
4168
|
}
|
|
4169
|
-
const ZodNever$1 =
|
|
4169
|
+
const ZodNever$1 = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
|
|
4170
4170
|
$ZodNever.init(inst, def);
|
|
4171
4171
|
ZodType$1.init(inst, def);
|
|
4172
4172
|
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
@@ -4174,7 +4174,7 @@ const ZodNever$1 = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
|
4174
4174
|
function never(params) {
|
|
4175
4175
|
return /* @__PURE__ */ _never(ZodNever$1, params);
|
|
4176
4176
|
}
|
|
4177
|
-
const ZodArray$1 =
|
|
4177
|
+
const ZodArray$1 = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
|
|
4178
4178
|
$ZodArray.init(inst, def);
|
|
4179
4179
|
ZodType$1.init(inst, def);
|
|
4180
4180
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
@@ -4200,7 +4200,7 @@ const ZodArray$1 = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
4200
4200
|
function array(element, params) {
|
|
4201
4201
|
return /* @__PURE__ */ _array(ZodArray$1, element, params);
|
|
4202
4202
|
}
|
|
4203
|
-
const ZodObject$1 =
|
|
4203
|
+
const ZodObject$1 = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
|
|
4204
4204
|
$ZodObjectJIT.init(inst, def);
|
|
4205
4205
|
ZodType$1.init(inst, def);
|
|
4206
4206
|
inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
|
|
@@ -4279,7 +4279,7 @@ function looseObject(shape, params) {
|
|
|
4279
4279
|
...normalizeParams(params)
|
|
4280
4280
|
});
|
|
4281
4281
|
}
|
|
4282
|
-
const ZodUnion$1 =
|
|
4282
|
+
const ZodUnion$1 = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
|
|
4283
4283
|
$ZodUnion.init(inst, def);
|
|
4284
4284
|
ZodType$1.init(inst, def);
|
|
4285
4285
|
inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
|
|
@@ -4292,7 +4292,7 @@ function union(options, params) {
|
|
|
4292
4292
|
...normalizeParams(params)
|
|
4293
4293
|
});
|
|
4294
4294
|
}
|
|
4295
|
-
const ZodDiscriminatedUnion$1 =
|
|
4295
|
+
const ZodDiscriminatedUnion$1 = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (inst, def) => {
|
|
4296
4296
|
ZodUnion$1.init(inst, def);
|
|
4297
4297
|
$ZodDiscriminatedUnion.init(inst, def);
|
|
4298
4298
|
});
|
|
@@ -4304,7 +4304,7 @@ function discriminatedUnion(discriminator, options, params) {
|
|
|
4304
4304
|
...normalizeParams(params)
|
|
4305
4305
|
});
|
|
4306
4306
|
}
|
|
4307
|
-
const ZodIntersection$1 =
|
|
4307
|
+
const ZodIntersection$1 = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
|
|
4308
4308
|
$ZodIntersection.init(inst, def);
|
|
4309
4309
|
ZodType$1.init(inst, def);
|
|
4310
4310
|
inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
|
|
@@ -4316,7 +4316,7 @@ function intersection(left, right) {
|
|
|
4316
4316
|
right
|
|
4317
4317
|
});
|
|
4318
4318
|
}
|
|
4319
|
-
const ZodRecord$1 =
|
|
4319
|
+
const ZodRecord$1 = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
|
|
4320
4320
|
$ZodRecord.init(inst, def);
|
|
4321
4321
|
ZodType$1.init(inst, def);
|
|
4322
4322
|
inst._zod.processJSONSchema = (ctx, json, params) => recordProcessor(inst, ctx, json, params);
|
|
@@ -4337,7 +4337,7 @@ function record(keyType, valueType, params) {
|
|
|
4337
4337
|
...normalizeParams(params)
|
|
4338
4338
|
});
|
|
4339
4339
|
}
|
|
4340
|
-
const ZodEnum$1 =
|
|
4340
|
+
const ZodEnum$1 = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
4341
4341
|
$ZodEnum.init(inst, def);
|
|
4342
4342
|
ZodType$1.init(inst, def);
|
|
4343
4343
|
inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
|
|
@@ -4374,7 +4374,7 @@ function _enum(values, params) {
|
|
|
4374
4374
|
...normalizeParams(params)
|
|
4375
4375
|
});
|
|
4376
4376
|
}
|
|
4377
|
-
const ZodLiteral$1 =
|
|
4377
|
+
const ZodLiteral$1 = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
|
|
4378
4378
|
$ZodLiteral.init(inst, def);
|
|
4379
4379
|
ZodType$1.init(inst, def);
|
|
4380
4380
|
inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
|
|
@@ -4391,7 +4391,7 @@ function literal$1(value, params) {
|
|
|
4391
4391
|
...normalizeParams(params)
|
|
4392
4392
|
});
|
|
4393
4393
|
}
|
|
4394
|
-
const ZodTransform =
|
|
4394
|
+
const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
|
|
4395
4395
|
$ZodTransform.init(inst, def);
|
|
4396
4396
|
ZodType$1.init(inst, def);
|
|
4397
4397
|
inst._zod.processJSONSchema = (ctx, json, params) => transformProcessor(inst, ctx, json, params);
|
|
@@ -4425,7 +4425,7 @@ function transform(fn) {
|
|
|
4425
4425
|
transform: fn
|
|
4426
4426
|
});
|
|
4427
4427
|
}
|
|
4428
|
-
const ZodOptional$1 =
|
|
4428
|
+
const ZodOptional$1 = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
|
|
4429
4429
|
$ZodOptional.init(inst, def);
|
|
4430
4430
|
ZodType$1.init(inst, def);
|
|
4431
4431
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -4437,7 +4437,7 @@ function optional(innerType) {
|
|
|
4437
4437
|
innerType
|
|
4438
4438
|
});
|
|
4439
4439
|
}
|
|
4440
|
-
const ZodExactOptional =
|
|
4440
|
+
const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
|
|
4441
4441
|
$ZodExactOptional.init(inst, def);
|
|
4442
4442
|
ZodType$1.init(inst, def);
|
|
4443
4443
|
inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
|
|
@@ -4449,7 +4449,7 @@ function exactOptional(innerType) {
|
|
|
4449
4449
|
innerType
|
|
4450
4450
|
});
|
|
4451
4451
|
}
|
|
4452
|
-
const ZodNullable$1 =
|
|
4452
|
+
const ZodNullable$1 = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
|
|
4453
4453
|
$ZodNullable.init(inst, def);
|
|
4454
4454
|
ZodType$1.init(inst, def);
|
|
4455
4455
|
inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
|
|
@@ -4461,7 +4461,7 @@ function nullable(innerType) {
|
|
|
4461
4461
|
innerType
|
|
4462
4462
|
});
|
|
4463
4463
|
}
|
|
4464
|
-
const ZodDefault$1 =
|
|
4464
|
+
const ZodDefault$1 = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
|
|
4465
4465
|
$ZodDefault.init(inst, def);
|
|
4466
4466
|
ZodType$1.init(inst, def);
|
|
4467
4467
|
inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
|
|
@@ -4477,7 +4477,7 @@ function _default(innerType, defaultValue) {
|
|
|
4477
4477
|
}
|
|
4478
4478
|
});
|
|
4479
4479
|
}
|
|
4480
|
-
const ZodPrefault =
|
|
4480
|
+
const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
|
|
4481
4481
|
$ZodPrefault.init(inst, def);
|
|
4482
4482
|
ZodType$1.init(inst, def);
|
|
4483
4483
|
inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
|
|
@@ -4492,7 +4492,7 @@ function prefault(innerType, defaultValue) {
|
|
|
4492
4492
|
}
|
|
4493
4493
|
});
|
|
4494
4494
|
}
|
|
4495
|
-
const ZodNonOptional =
|
|
4495
|
+
const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
|
|
4496
4496
|
$ZodNonOptional.init(inst, def);
|
|
4497
4497
|
ZodType$1.init(inst, def);
|
|
4498
4498
|
inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
|
|
@@ -4505,7 +4505,7 @@ function nonoptional(innerType, params) {
|
|
|
4505
4505
|
...normalizeParams(params)
|
|
4506
4506
|
});
|
|
4507
4507
|
}
|
|
4508
|
-
const ZodCatch$1 =
|
|
4508
|
+
const ZodCatch$1 = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
|
|
4509
4509
|
$ZodCatch.init(inst, def);
|
|
4510
4510
|
ZodType$1.init(inst, def);
|
|
4511
4511
|
inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
|
|
@@ -4519,7 +4519,7 @@ function _catch(innerType, catchValue) {
|
|
|
4519
4519
|
catchValue: typeof catchValue === "function" ? catchValue : () => catchValue
|
|
4520
4520
|
});
|
|
4521
4521
|
}
|
|
4522
|
-
const ZodPipe =
|
|
4522
|
+
const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
|
|
4523
4523
|
$ZodPipe.init(inst, def);
|
|
4524
4524
|
ZodType$1.init(inst, def);
|
|
4525
4525
|
inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
|
|
@@ -4533,11 +4533,11 @@ function pipe(in_, out) {
|
|
|
4533
4533
|
out
|
|
4534
4534
|
});
|
|
4535
4535
|
}
|
|
4536
|
-
const ZodPreprocess =
|
|
4536
|
+
const ZodPreprocess = /*@__PURE__*/ $constructor("ZodPreprocess", (inst, def) => {
|
|
4537
4537
|
ZodPipe.init(inst, def);
|
|
4538
4538
|
$ZodPreprocess.init(inst, def);
|
|
4539
4539
|
});
|
|
4540
|
-
const ZodReadonly$1 =
|
|
4540
|
+
const ZodReadonly$1 = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
|
|
4541
4541
|
$ZodReadonly.init(inst, def);
|
|
4542
4542
|
ZodType$1.init(inst, def);
|
|
4543
4543
|
inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
|
|
@@ -4549,7 +4549,7 @@ function readonly(innerType) {
|
|
|
4549
4549
|
innerType
|
|
4550
4550
|
});
|
|
4551
4551
|
}
|
|
4552
|
-
const ZodCustom =
|
|
4552
|
+
const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
|
|
4553
4553
|
$ZodCustom.init(inst, def);
|
|
4554
4554
|
ZodType$1.init(inst, def);
|
|
4555
4555
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
@@ -4596,7 +4596,13 @@ const ProgressTokenSchema = union([string$2(), number().int()]);
|
|
|
4596
4596
|
*/
|
|
4597
4597
|
const CursorSchema = string$2();
|
|
4598
4598
|
looseObject({
|
|
4599
|
+
/**
|
|
4600
|
+
* Requested duration in milliseconds to retain task from creation.
|
|
4601
|
+
*/
|
|
4599
4602
|
ttl: number().optional(),
|
|
4603
|
+
/**
|
|
4604
|
+
* Time in milliseconds to wait between task status requests.
|
|
4605
|
+
*/
|
|
4600
4606
|
pollInterval: number().optional()
|
|
4601
4607
|
});
|
|
4602
4608
|
const TaskMetadataSchema = object$1({ ttl: number().optional() });
|
|
@@ -4606,17 +4612,36 @@ const TaskMetadataSchema = object$1({ ttl: number().optional() });
|
|
|
4606
4612
|
*/
|
|
4607
4613
|
const RelatedTaskMetadataSchema = object$1({ taskId: string$2() });
|
|
4608
4614
|
const RequestMetaSchema = looseObject({
|
|
4615
|
+
/**
|
|
4616
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
4617
|
+
*/
|
|
4609
4618
|
progressToken: ProgressTokenSchema.optional(),
|
|
4619
|
+
/**
|
|
4620
|
+
* If specified, this request is related to the provided task.
|
|
4621
|
+
*/
|
|
4610
4622
|
[RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
|
|
4611
4623
|
});
|
|
4612
4624
|
/**
|
|
4613
4625
|
* Common params for any request.
|
|
4614
4626
|
*/
|
|
4615
|
-
const BaseRequestParamsSchema = object$1({
|
|
4627
|
+
const BaseRequestParamsSchema = object$1({
|
|
4628
|
+
/**
|
|
4629
|
+
* See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
|
|
4630
|
+
*/
|
|
4631
|
+
_meta: RequestMetaSchema.optional() });
|
|
4616
4632
|
/**
|
|
4617
4633
|
* Common params for any task-augmented request.
|
|
4618
4634
|
*/
|
|
4619
|
-
const TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
4635
|
+
const TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
4636
|
+
/**
|
|
4637
|
+
* If specified, the caller is requesting task-augmented execution for this request.
|
|
4638
|
+
* The request will return a CreateTaskResult immediately, and the actual result can be
|
|
4639
|
+
* retrieved later via tasks/result.
|
|
4640
|
+
*
|
|
4641
|
+
* Task augmentation is subject to capability negotiation - receivers MUST declare support
|
|
4642
|
+
* for task augmentation of specific request types in their capabilities.
|
|
4643
|
+
*/
|
|
4644
|
+
task: TaskMetadataSchema.optional() });
|
|
4620
4645
|
/**
|
|
4621
4646
|
* Checks if a value is a valid TaskAugmentedRequestParams.
|
|
4622
4647
|
* @param value - The value to check.
|
|
@@ -4628,12 +4653,22 @@ const RequestSchema = object$1({
|
|
|
4628
4653
|
method: string$2(),
|
|
4629
4654
|
params: BaseRequestParamsSchema.loose().optional()
|
|
4630
4655
|
});
|
|
4631
|
-
const NotificationsParamsSchema = object$1({
|
|
4656
|
+
const NotificationsParamsSchema = object$1({
|
|
4657
|
+
/**
|
|
4658
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
4659
|
+
* for notes on _meta usage.
|
|
4660
|
+
*/
|
|
4661
|
+
_meta: RequestMetaSchema.optional() });
|
|
4632
4662
|
const NotificationSchema = object$1({
|
|
4633
4663
|
method: string$2(),
|
|
4634
4664
|
params: NotificationsParamsSchema.loose().optional()
|
|
4635
4665
|
});
|
|
4636
|
-
const ResultSchema = looseObject({
|
|
4666
|
+
const ResultSchema = looseObject({
|
|
4667
|
+
/**
|
|
4668
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
4669
|
+
* for notes on _meta usage.
|
|
4670
|
+
*/
|
|
4671
|
+
_meta: RequestMetaSchema.optional() });
|
|
4637
4672
|
/**
|
|
4638
4673
|
* A uniquely identifying ID for a request in JSON-RPC.
|
|
4639
4674
|
*/
|
|
@@ -4691,8 +4726,17 @@ const JSONRPCErrorResponseSchema = object$1({
|
|
|
4691
4726
|
jsonrpc: literal$1("2.0"),
|
|
4692
4727
|
id: RequestIdSchema.optional(),
|
|
4693
4728
|
error: object$1({
|
|
4729
|
+
/**
|
|
4730
|
+
* The error type that occurred.
|
|
4731
|
+
*/
|
|
4694
4732
|
code: number().int(),
|
|
4733
|
+
/**
|
|
4734
|
+
* A short description of the error. The message SHOULD be limited to a concise single sentence.
|
|
4735
|
+
*/
|
|
4695
4736
|
message: string$2(),
|
|
4737
|
+
/**
|
|
4738
|
+
* Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
|
|
4739
|
+
*/
|
|
4696
4740
|
data: unknown$1().optional()
|
|
4697
4741
|
})
|
|
4698
4742
|
}).strict();
|
|
@@ -4715,7 +4759,15 @@ union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]);
|
|
|
4715
4759
|
*/
|
|
4716
4760
|
const EmptyResultSchema = ResultSchema.strict();
|
|
4717
4761
|
const CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
4762
|
+
/**
|
|
4763
|
+
* The ID of the request to cancel.
|
|
4764
|
+
*
|
|
4765
|
+
* This MUST correspond to the ID of a request previously issued in the same direction.
|
|
4766
|
+
*/
|
|
4718
4767
|
requestId: RequestIdSchema.optional(),
|
|
4768
|
+
/**
|
|
4769
|
+
* An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
|
|
4770
|
+
*/
|
|
4719
4771
|
reason: string$2().optional()
|
|
4720
4772
|
});
|
|
4721
4773
|
/**
|
|
@@ -4735,17 +4787,57 @@ const CancelledNotificationSchema = NotificationSchema.extend({
|
|
|
4735
4787
|
* Base schema to add `icons` property.
|
|
4736
4788
|
*
|
|
4737
4789
|
*/
|
|
4738
|
-
const IconsSchema = object$1({
|
|
4790
|
+
const IconsSchema = object$1({
|
|
4791
|
+
/**
|
|
4792
|
+
* Optional set of sized icons that the client can display in a user interface.
|
|
4793
|
+
*
|
|
4794
|
+
* Clients that support rendering icons MUST support at least the following MIME types:
|
|
4795
|
+
* - `image/png` - PNG images (safe, universal compatibility)
|
|
4796
|
+
* - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
|
|
4797
|
+
*
|
|
4798
|
+
* Clients that support rendering icons SHOULD also support:
|
|
4799
|
+
* - `image/svg+xml` - SVG images (scalable but requires security precautions)
|
|
4800
|
+
* - `image/webp` - WebP images (modern, efficient format)
|
|
4801
|
+
*/
|
|
4802
|
+
icons: array(object$1({
|
|
4803
|
+
/**
|
|
4804
|
+
* URL or data URI for the icon.
|
|
4805
|
+
*/
|
|
4739
4806
|
src: string$2(),
|
|
4807
|
+
/**
|
|
4808
|
+
* Optional MIME type for the icon.
|
|
4809
|
+
*/
|
|
4740
4810
|
mimeType: string$2().optional(),
|
|
4811
|
+
/**
|
|
4812
|
+
* Optional array of strings that specify sizes at which the icon can be used.
|
|
4813
|
+
* Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
|
|
4814
|
+
*
|
|
4815
|
+
* If not provided, the client should assume that the icon can be used at any size.
|
|
4816
|
+
*/
|
|
4741
4817
|
sizes: array(string$2()).optional(),
|
|
4818
|
+
/**
|
|
4819
|
+
* Optional specifier for the theme this icon is designed for. `light` indicates
|
|
4820
|
+
* the icon is designed to be used with a light background, and `dark` indicates
|
|
4821
|
+
* the icon is designed to be used with a dark background.
|
|
4822
|
+
*
|
|
4823
|
+
* If not provided, the client should assume the icon can be used with any theme.
|
|
4824
|
+
*/
|
|
4742
4825
|
theme: _enum(["light", "dark"]).optional()
|
|
4743
4826
|
})).optional() });
|
|
4744
4827
|
/**
|
|
4745
4828
|
* Base metadata interface for common properties across resources, tools, prompts, and implementations.
|
|
4746
4829
|
*/
|
|
4747
4830
|
const BaseMetadataSchema = object$1({
|
|
4831
|
+
/** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
|
|
4748
4832
|
name: string$2(),
|
|
4833
|
+
/**
|
|
4834
|
+
* Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
|
|
4835
|
+
* even by those unfamiliar with domain-specific terminology.
|
|
4836
|
+
*
|
|
4837
|
+
* If not provided, the name should be used for display (except for Tool,
|
|
4838
|
+
* where `annotations.title` should be given precedence over using `name`,
|
|
4839
|
+
* if present).
|
|
4840
|
+
*/
|
|
4749
4841
|
title: string$2().optional()
|
|
4750
4842
|
});
|
|
4751
4843
|
/**
|
|
@@ -4755,7 +4847,17 @@ const ImplementationSchema = BaseMetadataSchema.extend({
|
|
|
4755
4847
|
...BaseMetadataSchema.shape,
|
|
4756
4848
|
...IconsSchema.shape,
|
|
4757
4849
|
version: string$2(),
|
|
4850
|
+
/**
|
|
4851
|
+
* An optional URL of the website for this implementation.
|
|
4852
|
+
*/
|
|
4758
4853
|
websiteUrl: string$2().optional(),
|
|
4854
|
+
/**
|
|
4855
|
+
* An optional human-readable description of what this implementation does.
|
|
4856
|
+
*
|
|
4857
|
+
* This can be used by clients or servers to provide context about their purpose
|
|
4858
|
+
* and capabilities. For example, a server might describe the types of resources
|
|
4859
|
+
* or tools it provides, while a client might describe its intended use case.
|
|
4860
|
+
*/
|
|
4759
4861
|
description: string$2().optional()
|
|
4760
4862
|
});
|
|
4761
4863
|
const ElicitationCapabilitySchema = preprocess$1((value) => {
|
|
@@ -4771,10 +4873,25 @@ const ElicitationCapabilitySchema = preprocess$1((value) => {
|
|
|
4771
4873
|
* Task capabilities for clients, indicating which request types support task creation.
|
|
4772
4874
|
*/
|
|
4773
4875
|
const ClientTasksCapabilitySchema = looseObject({
|
|
4876
|
+
/**
|
|
4877
|
+
* Present if the client supports listing tasks.
|
|
4878
|
+
*/
|
|
4774
4879
|
list: AssertObjectSchema.optional(),
|
|
4880
|
+
/**
|
|
4881
|
+
* Present if the client supports cancelling tasks.
|
|
4882
|
+
*/
|
|
4775
4883
|
cancel: AssertObjectSchema.optional(),
|
|
4884
|
+
/**
|
|
4885
|
+
* Capabilities for task creation on specific request types.
|
|
4886
|
+
*/
|
|
4776
4887
|
requests: looseObject({
|
|
4888
|
+
/**
|
|
4889
|
+
* Task support for sampling requests.
|
|
4890
|
+
*/
|
|
4777
4891
|
sampling: looseObject({ createMessage: AssertObjectSchema.optional() }).optional(),
|
|
4892
|
+
/**
|
|
4893
|
+
* Task support for elicitation requests.
|
|
4894
|
+
*/
|
|
4778
4895
|
elicitation: looseObject({ create: AssertObjectSchema.optional() }).optional()
|
|
4779
4896
|
}).optional()
|
|
4780
4897
|
});
|
|
@@ -4782,25 +4899,70 @@ const ClientTasksCapabilitySchema = looseObject({
|
|
|
4782
4899
|
* Task capabilities for servers, indicating which request types support task creation.
|
|
4783
4900
|
*/
|
|
4784
4901
|
const ServerTasksCapabilitySchema = looseObject({
|
|
4902
|
+
/**
|
|
4903
|
+
* Present if the server supports listing tasks.
|
|
4904
|
+
*/
|
|
4785
4905
|
list: AssertObjectSchema.optional(),
|
|
4906
|
+
/**
|
|
4907
|
+
* Present if the server supports cancelling tasks.
|
|
4908
|
+
*/
|
|
4786
4909
|
cancel: AssertObjectSchema.optional(),
|
|
4787
|
-
|
|
4910
|
+
/**
|
|
4911
|
+
* Capabilities for task creation on specific request types.
|
|
4912
|
+
*/
|
|
4913
|
+
requests: looseObject({
|
|
4914
|
+
/**
|
|
4915
|
+
* Task support for tool requests.
|
|
4916
|
+
*/
|
|
4917
|
+
tools: looseObject({ call: AssertObjectSchema.optional() }).optional() }).optional()
|
|
4788
4918
|
});
|
|
4789
4919
|
/**
|
|
4790
4920
|
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
|
4791
4921
|
*/
|
|
4792
4922
|
const ClientCapabilitiesSchema = object$1({
|
|
4923
|
+
/**
|
|
4924
|
+
* Experimental, non-standard capabilities that the client supports.
|
|
4925
|
+
*/
|
|
4793
4926
|
experimental: record(string$2(), AssertObjectSchema).optional(),
|
|
4927
|
+
/**
|
|
4928
|
+
* Present if the client supports sampling from an LLM.
|
|
4929
|
+
*/
|
|
4794
4930
|
sampling: object$1({
|
|
4931
|
+
/**
|
|
4932
|
+
* Present if the client supports context inclusion via includeContext parameter.
|
|
4933
|
+
* If not declared, servers SHOULD only use `includeContext: "none"` (or omit it).
|
|
4934
|
+
*/
|
|
4795
4935
|
context: AssertObjectSchema.optional(),
|
|
4936
|
+
/**
|
|
4937
|
+
* Present if the client supports tool use via tools and toolChoice parameters.
|
|
4938
|
+
*/
|
|
4796
4939
|
tools: AssertObjectSchema.optional()
|
|
4797
4940
|
}).optional(),
|
|
4941
|
+
/**
|
|
4942
|
+
* Present if the client supports eliciting user input.
|
|
4943
|
+
*/
|
|
4798
4944
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
4799
|
-
|
|
4945
|
+
/**
|
|
4946
|
+
* Present if the client supports listing roots.
|
|
4947
|
+
*/
|
|
4948
|
+
roots: object$1({
|
|
4949
|
+
/**
|
|
4950
|
+
* Whether the client supports issuing notifications for changes to the roots list.
|
|
4951
|
+
*/
|
|
4952
|
+
listChanged: boolean().optional() }).optional(),
|
|
4953
|
+
/**
|
|
4954
|
+
* Present if the client supports task creation.
|
|
4955
|
+
*/
|
|
4800
4956
|
tasks: ClientTasksCapabilitySchema.optional(),
|
|
4957
|
+
/**
|
|
4958
|
+
* Extensions that the client supports. Keys are extension identifiers (vendor-prefix/extension-name).
|
|
4959
|
+
*/
|
|
4801
4960
|
extensions: record(string$2(), AssertObjectSchema).optional()
|
|
4802
4961
|
});
|
|
4803
4962
|
const InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
4963
|
+
/**
|
|
4964
|
+
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
|
|
4965
|
+
*/
|
|
4804
4966
|
protocolVersion: string$2(),
|
|
4805
4967
|
capabilities: ClientCapabilitiesSchema,
|
|
4806
4968
|
clientInfo: ImplementationSchema
|
|
@@ -4816,25 +4978,71 @@ const InitializeRequestSchema = RequestSchema.extend({
|
|
|
4816
4978
|
* Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
|
|
4817
4979
|
*/
|
|
4818
4980
|
const ServerCapabilitiesSchema = object$1({
|
|
4981
|
+
/**
|
|
4982
|
+
* Experimental, non-standard capabilities that the server supports.
|
|
4983
|
+
*/
|
|
4819
4984
|
experimental: record(string$2(), AssertObjectSchema).optional(),
|
|
4985
|
+
/**
|
|
4986
|
+
* Present if the server supports sending log messages to the client.
|
|
4987
|
+
*/
|
|
4820
4988
|
logging: AssertObjectSchema.optional(),
|
|
4989
|
+
/**
|
|
4990
|
+
* Present if the server supports sending completions to the client.
|
|
4991
|
+
*/
|
|
4821
4992
|
completions: AssertObjectSchema.optional(),
|
|
4822
|
-
|
|
4993
|
+
/**
|
|
4994
|
+
* Present if the server offers any prompt templates.
|
|
4995
|
+
*/
|
|
4996
|
+
prompts: object$1({
|
|
4997
|
+
/**
|
|
4998
|
+
* Whether this server supports issuing notifications for changes to the prompt list.
|
|
4999
|
+
*/
|
|
5000
|
+
listChanged: boolean().optional() }).optional(),
|
|
5001
|
+
/**
|
|
5002
|
+
* Present if the server offers any resources to read.
|
|
5003
|
+
*/
|
|
4823
5004
|
resources: object$1({
|
|
5005
|
+
/**
|
|
5006
|
+
* Whether this server supports clients subscribing to resource updates.
|
|
5007
|
+
*/
|
|
4824
5008
|
subscribe: boolean().optional(),
|
|
5009
|
+
/**
|
|
5010
|
+
* Whether this server supports issuing notifications for changes to the resource list.
|
|
5011
|
+
*/
|
|
4825
5012
|
listChanged: boolean().optional()
|
|
4826
5013
|
}).optional(),
|
|
4827
|
-
|
|
5014
|
+
/**
|
|
5015
|
+
* Present if the server offers any tools to call.
|
|
5016
|
+
*/
|
|
5017
|
+
tools: object$1({
|
|
5018
|
+
/**
|
|
5019
|
+
* Whether this server supports issuing notifications for changes to the tool list.
|
|
5020
|
+
*/
|
|
5021
|
+
listChanged: boolean().optional() }).optional(),
|
|
5022
|
+
/**
|
|
5023
|
+
* Present if the server supports task creation.
|
|
5024
|
+
*/
|
|
4828
5025
|
tasks: ServerTasksCapabilitySchema.optional(),
|
|
5026
|
+
/**
|
|
5027
|
+
* Extensions that the server supports. Keys are extension identifiers (vendor-prefix/extension-name).
|
|
5028
|
+
*/
|
|
4829
5029
|
extensions: record(string$2(), AssertObjectSchema).optional()
|
|
4830
5030
|
});
|
|
4831
5031
|
/**
|
|
4832
5032
|
* After receiving an initialize request from the client, the server sends this response.
|
|
4833
5033
|
*/
|
|
4834
5034
|
const InitializeResultSchema = ResultSchema.extend({
|
|
5035
|
+
/**
|
|
5036
|
+
* The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
|
|
5037
|
+
*/
|
|
4835
5038
|
protocolVersion: string$2(),
|
|
4836
5039
|
capabilities: ServerCapabilitiesSchema,
|
|
4837
5040
|
serverInfo: ImplementationSchema,
|
|
5041
|
+
/**
|
|
5042
|
+
* Instructions describing how to use the server and its features.
|
|
5043
|
+
*
|
|
5044
|
+
* This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
|
|
5045
|
+
*/
|
|
4838
5046
|
instructions: string$2().optional()
|
|
4839
5047
|
});
|
|
4840
5048
|
/**
|
|
@@ -4852,13 +5060,25 @@ const PingRequestSchema = RequestSchema.extend({
|
|
|
4852
5060
|
params: BaseRequestParamsSchema.optional()
|
|
4853
5061
|
});
|
|
4854
5062
|
const ProgressSchema = object$1({
|
|
5063
|
+
/**
|
|
5064
|
+
* The progress thus far. This should increase every time progress is made, even if the total is unknown.
|
|
5065
|
+
*/
|
|
4855
5066
|
progress: number(),
|
|
5067
|
+
/**
|
|
5068
|
+
* Total number of items to process (or total progress required), if known.
|
|
5069
|
+
*/
|
|
4856
5070
|
total: optional(number()),
|
|
5071
|
+
/**
|
|
5072
|
+
* An optional message describing the current progress.
|
|
5073
|
+
*/
|
|
4857
5074
|
message: optional(string$2())
|
|
4858
5075
|
});
|
|
4859
5076
|
const ProgressNotificationParamsSchema = object$1({
|
|
4860
5077
|
...NotificationsParamsSchema.shape,
|
|
4861
5078
|
...ProgressSchema.shape,
|
|
5079
|
+
/**
|
|
5080
|
+
* The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
|
|
5081
|
+
*/
|
|
4862
5082
|
progressToken: ProgressTokenSchema
|
|
4863
5083
|
});
|
|
4864
5084
|
/**
|
|
@@ -4870,9 +5090,19 @@ const ProgressNotificationSchema = NotificationSchema.extend({
|
|
|
4870
5090
|
method: literal$1("notifications/progress"),
|
|
4871
5091
|
params: ProgressNotificationParamsSchema
|
|
4872
5092
|
});
|
|
4873
|
-
const PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
5093
|
+
const PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
5094
|
+
/**
|
|
5095
|
+
* An opaque token representing the current pagination position.
|
|
5096
|
+
* If provided, the server should return results starting after this cursor.
|
|
5097
|
+
*/
|
|
5098
|
+
cursor: CursorSchema.optional() });
|
|
4874
5099
|
const PaginatedRequestSchema = RequestSchema.extend({ params: PaginatedRequestParamsSchema.optional() });
|
|
4875
|
-
const PaginatedResultSchema = ResultSchema.extend({
|
|
5100
|
+
const PaginatedResultSchema = ResultSchema.extend({
|
|
5101
|
+
/**
|
|
5102
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
5103
|
+
* If present, there may be more results available.
|
|
5104
|
+
*/
|
|
5105
|
+
nextCursor: CursorSchema.optional() });
|
|
4876
5106
|
/**
|
|
4877
5107
|
* The status of a task.
|
|
4878
5108
|
* */
|
|
@@ -4889,10 +5119,23 @@ const TaskStatusSchema = _enum([
|
|
|
4889
5119
|
const TaskSchema = object$1({
|
|
4890
5120
|
taskId: string$2(),
|
|
4891
5121
|
status: TaskStatusSchema,
|
|
5122
|
+
/**
|
|
5123
|
+
* Time in milliseconds to keep task results available after completion.
|
|
5124
|
+
* If null, the task has unlimited lifetime until manually cleaned up.
|
|
5125
|
+
*/
|
|
4892
5126
|
ttl: union([number(), _null()]),
|
|
5127
|
+
/**
|
|
5128
|
+
* ISO 8601 timestamp when the task was created.
|
|
5129
|
+
*/
|
|
4893
5130
|
createdAt: string$2(),
|
|
5131
|
+
/**
|
|
5132
|
+
* ISO 8601 timestamp when the task was last updated.
|
|
5133
|
+
*/
|
|
4894
5134
|
lastUpdatedAt: string$2(),
|
|
4895
5135
|
pollInterval: optional(number()),
|
|
5136
|
+
/**
|
|
5137
|
+
* Optional diagnostic message for failed tasks or other status information.
|
|
5138
|
+
*/
|
|
4896
5139
|
statusMessage: optional(string$2())
|
|
4897
5140
|
});
|
|
4898
5141
|
/**
|
|
@@ -4952,11 +5195,25 @@ const CancelTaskResultSchema = ResultSchema.merge(TaskSchema);
|
|
|
4952
5195
|
* The contents of a specific resource or sub-resource.
|
|
4953
5196
|
*/
|
|
4954
5197
|
const ResourceContentsSchema = object$1({
|
|
5198
|
+
/**
|
|
5199
|
+
* The URI of this resource.
|
|
5200
|
+
*/
|
|
4955
5201
|
uri: string$2(),
|
|
5202
|
+
/**
|
|
5203
|
+
* The MIME type of this resource, if known.
|
|
5204
|
+
*/
|
|
4956
5205
|
mimeType: optional(string$2()),
|
|
5206
|
+
/**
|
|
5207
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5208
|
+
* for notes on _meta usage.
|
|
5209
|
+
*/
|
|
4957
5210
|
_meta: record(string$2(), unknown$1()).optional()
|
|
4958
5211
|
});
|
|
4959
|
-
const TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
5212
|
+
const TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
5213
|
+
/**
|
|
5214
|
+
* The text of the item. This must only be set if the item can actually be represented as text (not binary data).
|
|
5215
|
+
*/
|
|
5216
|
+
text: string$2() });
|
|
4960
5217
|
/**
|
|
4961
5218
|
* A Zod schema for validating Base64 strings that is more performant and
|
|
4962
5219
|
* robust for very large inputs than the default regex-based check. It avoids
|
|
@@ -4970,7 +5227,11 @@ const Base64Schema = string$2().refine((val) => {
|
|
|
4970
5227
|
return false;
|
|
4971
5228
|
}
|
|
4972
5229
|
}, { message: "Invalid Base64 string" });
|
|
4973
|
-
const BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
5230
|
+
const BlobResourceContentsSchema = ResourceContentsSchema.extend({
|
|
5231
|
+
/**
|
|
5232
|
+
* A base64-encoded string representing the binary data of the item.
|
|
5233
|
+
*/
|
|
5234
|
+
blob: Base64Schema });
|
|
4974
5235
|
/**
|
|
4975
5236
|
* The sender or recipient of messages and data in a conversation.
|
|
4976
5237
|
*/
|
|
@@ -4979,8 +5240,17 @@ const RoleSchema = _enum(["user", "assistant"]);
|
|
|
4979
5240
|
* Optional annotations providing clients additional context about a resource.
|
|
4980
5241
|
*/
|
|
4981
5242
|
const AnnotationsSchema = object$1({
|
|
5243
|
+
/**
|
|
5244
|
+
* Intended audience(s) for the resource.
|
|
5245
|
+
*/
|
|
4982
5246
|
audience: array(RoleSchema).optional(),
|
|
5247
|
+
/**
|
|
5248
|
+
* Importance hint for the resource, from 0 (least) to 1 (most).
|
|
5249
|
+
*/
|
|
4983
5250
|
priority: number().min(0).max(1).optional(),
|
|
5251
|
+
/**
|
|
5252
|
+
* ISO 8601 timestamp for the most recent modification.
|
|
5253
|
+
*/
|
|
4984
5254
|
lastModified: datetime({ offset: true }).optional()
|
|
4985
5255
|
});
|
|
4986
5256
|
/**
|
|
@@ -4989,11 +5259,34 @@ const AnnotationsSchema = object$1({
|
|
|
4989
5259
|
const ResourceSchema = object$1({
|
|
4990
5260
|
...BaseMetadataSchema.shape,
|
|
4991
5261
|
...IconsSchema.shape,
|
|
5262
|
+
/**
|
|
5263
|
+
* The URI of this resource.
|
|
5264
|
+
*/
|
|
4992
5265
|
uri: string$2(),
|
|
5266
|
+
/**
|
|
5267
|
+
* A description of what this resource represents.
|
|
5268
|
+
*
|
|
5269
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
5270
|
+
*/
|
|
4993
5271
|
description: optional(string$2()),
|
|
5272
|
+
/**
|
|
5273
|
+
* The MIME type of this resource, if known.
|
|
5274
|
+
*/
|
|
4994
5275
|
mimeType: optional(string$2()),
|
|
5276
|
+
/**
|
|
5277
|
+
* The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
|
|
5278
|
+
*
|
|
5279
|
+
* This can be used by Hosts to display file sizes and estimate context window usage.
|
|
5280
|
+
*/
|
|
4995
5281
|
size: optional(number()),
|
|
5282
|
+
/**
|
|
5283
|
+
* Optional annotations for the client.
|
|
5284
|
+
*/
|
|
4996
5285
|
annotations: AnnotationsSchema.optional(),
|
|
5286
|
+
/**
|
|
5287
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5288
|
+
* for notes on _meta usage.
|
|
5289
|
+
*/
|
|
4997
5290
|
_meta: optional(looseObject({}))
|
|
4998
5291
|
});
|
|
4999
5292
|
/**
|
|
@@ -5002,10 +5295,28 @@ const ResourceSchema = object$1({
|
|
|
5002
5295
|
const ResourceTemplateSchema = object$1({
|
|
5003
5296
|
...BaseMetadataSchema.shape,
|
|
5004
5297
|
...IconsSchema.shape,
|
|
5298
|
+
/**
|
|
5299
|
+
* A URI template (according to RFC 6570) that can be used to construct resource URIs.
|
|
5300
|
+
*/
|
|
5005
5301
|
uriTemplate: string$2(),
|
|
5302
|
+
/**
|
|
5303
|
+
* A description of what this template is for.
|
|
5304
|
+
*
|
|
5305
|
+
* This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
|
|
5306
|
+
*/
|
|
5006
5307
|
description: optional(string$2()),
|
|
5308
|
+
/**
|
|
5309
|
+
* The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
|
|
5310
|
+
*/
|
|
5007
5311
|
mimeType: optional(string$2()),
|
|
5312
|
+
/**
|
|
5313
|
+
* Optional annotations for the client.
|
|
5314
|
+
*/
|
|
5008
5315
|
annotations: AnnotationsSchema.optional(),
|
|
5316
|
+
/**
|
|
5317
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5318
|
+
* for notes on _meta usage.
|
|
5319
|
+
*/
|
|
5009
5320
|
_meta: optional(looseObject({}))
|
|
5010
5321
|
});
|
|
5011
5322
|
/**
|
|
@@ -5024,7 +5335,13 @@ const ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({ metho
|
|
|
5024
5335
|
* The server's response to a resources/templates/list request from the client.
|
|
5025
5336
|
*/
|
|
5026
5337
|
const ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({ resourceTemplates: array(ResourceTemplateSchema) });
|
|
5027
|
-
const ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
5338
|
+
const ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
5339
|
+
/**
|
|
5340
|
+
* The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
|
|
5341
|
+
*
|
|
5342
|
+
* @format uri
|
|
5343
|
+
*/
|
|
5344
|
+
uri: string$2() });
|
|
5028
5345
|
/**
|
|
5029
5346
|
* Parameters for a `resources/read` request.
|
|
5030
5347
|
*/
|
|
@@ -5066,7 +5383,11 @@ const UnsubscribeRequestSchema = RequestSchema.extend({
|
|
|
5066
5383
|
/**
|
|
5067
5384
|
* Parameters for a `notifications/resources/updated` notification.
|
|
5068
5385
|
*/
|
|
5069
|
-
const ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
5386
|
+
const ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
5387
|
+
/**
|
|
5388
|
+
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
|
5389
|
+
*/
|
|
5390
|
+
uri: string$2() });
|
|
5070
5391
|
/**
|
|
5071
5392
|
* A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.
|
|
5072
5393
|
*/
|
|
@@ -5078,8 +5399,17 @@ const ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
|
5078
5399
|
* Describes an argument that a prompt can accept.
|
|
5079
5400
|
*/
|
|
5080
5401
|
const PromptArgumentSchema = object$1({
|
|
5402
|
+
/**
|
|
5403
|
+
* The name of the argument.
|
|
5404
|
+
*/
|
|
5081
5405
|
name: string$2(),
|
|
5406
|
+
/**
|
|
5407
|
+
* A human-readable description of the argument.
|
|
5408
|
+
*/
|
|
5082
5409
|
description: optional(string$2()),
|
|
5410
|
+
/**
|
|
5411
|
+
* Whether this argument must be provided.
|
|
5412
|
+
*/
|
|
5083
5413
|
required: optional(boolean())
|
|
5084
5414
|
});
|
|
5085
5415
|
/**
|
|
@@ -5088,8 +5418,18 @@ const PromptArgumentSchema = object$1({
|
|
|
5088
5418
|
const PromptSchema = object$1({
|
|
5089
5419
|
...BaseMetadataSchema.shape,
|
|
5090
5420
|
...IconsSchema.shape,
|
|
5421
|
+
/**
|
|
5422
|
+
* An optional description of what this prompt provides
|
|
5423
|
+
*/
|
|
5091
5424
|
description: optional(string$2()),
|
|
5425
|
+
/**
|
|
5426
|
+
* A list of arguments to use for templating the prompt.
|
|
5427
|
+
*/
|
|
5092
5428
|
arguments: optional(array(PromptArgumentSchema)),
|
|
5429
|
+
/**
|
|
5430
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5431
|
+
* for notes on _meta usage.
|
|
5432
|
+
*/
|
|
5093
5433
|
_meta: optional(looseObject({}))
|
|
5094
5434
|
});
|
|
5095
5435
|
/**
|
|
@@ -5104,7 +5444,13 @@ const ListPromptsResultSchema = PaginatedResultSchema.extend({ prompts: array(Pr
|
|
|
5104
5444
|
* Parameters for a `prompts/get` request.
|
|
5105
5445
|
*/
|
|
5106
5446
|
const GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
5447
|
+
/**
|
|
5448
|
+
* The name of the prompt or prompt template.
|
|
5449
|
+
*/
|
|
5107
5450
|
name: string$2(),
|
|
5451
|
+
/**
|
|
5452
|
+
* Arguments to use for templating the prompt.
|
|
5453
|
+
*/
|
|
5108
5454
|
arguments: record(string$2(), string$2()).optional()
|
|
5109
5455
|
});
|
|
5110
5456
|
/**
|
|
@@ -5119,8 +5465,18 @@ const GetPromptRequestSchema = RequestSchema.extend({
|
|
|
5119
5465
|
*/
|
|
5120
5466
|
const TextContentSchema = object$1({
|
|
5121
5467
|
type: literal$1("text"),
|
|
5468
|
+
/**
|
|
5469
|
+
* The text content of the message.
|
|
5470
|
+
*/
|
|
5122
5471
|
text: string$2(),
|
|
5472
|
+
/**
|
|
5473
|
+
* Optional annotations for the client.
|
|
5474
|
+
*/
|
|
5123
5475
|
annotations: AnnotationsSchema.optional(),
|
|
5476
|
+
/**
|
|
5477
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5478
|
+
* for notes on _meta usage.
|
|
5479
|
+
*/
|
|
5124
5480
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5125
5481
|
});
|
|
5126
5482
|
/**
|
|
@@ -5128,9 +5484,22 @@ const TextContentSchema = object$1({
|
|
|
5128
5484
|
*/
|
|
5129
5485
|
const ImageContentSchema = object$1({
|
|
5130
5486
|
type: literal$1("image"),
|
|
5487
|
+
/**
|
|
5488
|
+
* The base64-encoded image data.
|
|
5489
|
+
*/
|
|
5131
5490
|
data: Base64Schema,
|
|
5491
|
+
/**
|
|
5492
|
+
* The MIME type of the image. Different providers may support different image types.
|
|
5493
|
+
*/
|
|
5132
5494
|
mimeType: string$2(),
|
|
5495
|
+
/**
|
|
5496
|
+
* Optional annotations for the client.
|
|
5497
|
+
*/
|
|
5133
5498
|
annotations: AnnotationsSchema.optional(),
|
|
5499
|
+
/**
|
|
5500
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5501
|
+
* for notes on _meta usage.
|
|
5502
|
+
*/
|
|
5134
5503
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5135
5504
|
});
|
|
5136
5505
|
/**
|
|
@@ -5138,9 +5507,22 @@ const ImageContentSchema = object$1({
|
|
|
5138
5507
|
*/
|
|
5139
5508
|
const AudioContentSchema = object$1({
|
|
5140
5509
|
type: literal$1("audio"),
|
|
5510
|
+
/**
|
|
5511
|
+
* The base64-encoded audio data.
|
|
5512
|
+
*/
|
|
5141
5513
|
data: Base64Schema,
|
|
5514
|
+
/**
|
|
5515
|
+
* The MIME type of the audio. Different providers may support different audio types.
|
|
5516
|
+
*/
|
|
5142
5517
|
mimeType: string$2(),
|
|
5518
|
+
/**
|
|
5519
|
+
* Optional annotations for the client.
|
|
5520
|
+
*/
|
|
5143
5521
|
annotations: AnnotationsSchema.optional(),
|
|
5522
|
+
/**
|
|
5523
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5524
|
+
* for notes on _meta usage.
|
|
5525
|
+
*/
|
|
5144
5526
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5145
5527
|
});
|
|
5146
5528
|
/**
|
|
@@ -5149,9 +5531,25 @@ const AudioContentSchema = object$1({
|
|
|
5149
5531
|
*/
|
|
5150
5532
|
const ToolUseContentSchema = object$1({
|
|
5151
5533
|
type: literal$1("tool_use"),
|
|
5534
|
+
/**
|
|
5535
|
+
* The name of the tool to invoke.
|
|
5536
|
+
* Must match a tool name from the request's tools array.
|
|
5537
|
+
*/
|
|
5152
5538
|
name: string$2(),
|
|
5539
|
+
/**
|
|
5540
|
+
* Unique identifier for this tool call.
|
|
5541
|
+
* Used to correlate with ToolResultContent in subsequent messages.
|
|
5542
|
+
*/
|
|
5153
5543
|
id: string$2(),
|
|
5544
|
+
/**
|
|
5545
|
+
* Arguments to pass to the tool.
|
|
5546
|
+
* Must conform to the tool's inputSchema.
|
|
5547
|
+
*/
|
|
5154
5548
|
input: record(string$2(), unknown$1()),
|
|
5549
|
+
/**
|
|
5550
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5551
|
+
* for notes on _meta usage.
|
|
5552
|
+
*/
|
|
5155
5553
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5156
5554
|
});
|
|
5157
5555
|
/**
|
|
@@ -5160,7 +5558,14 @@ const ToolUseContentSchema = object$1({
|
|
|
5160
5558
|
const EmbeddedResourceSchema = object$1({
|
|
5161
5559
|
type: literal$1("resource"),
|
|
5162
5560
|
resource: union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
5561
|
+
/**
|
|
5562
|
+
* Optional annotations for the client.
|
|
5563
|
+
*/
|
|
5163
5564
|
annotations: AnnotationsSchema.optional(),
|
|
5565
|
+
/**
|
|
5566
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5567
|
+
* for notes on _meta usage.
|
|
5568
|
+
*/
|
|
5164
5569
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5165
5570
|
});
|
|
5166
5571
|
/**
|
|
@@ -5184,6 +5589,9 @@ const PromptMessageSchema = object$1({
|
|
|
5184
5589
|
* The server's response to a prompts/get request from the client.
|
|
5185
5590
|
*/
|
|
5186
5591
|
const GetPromptResultSchema = ResultSchema.extend({
|
|
5592
|
+
/**
|
|
5593
|
+
* An optional description for the prompt.
|
|
5594
|
+
*/
|
|
5187
5595
|
description: string$2().optional(),
|
|
5188
5596
|
messages: array(PromptMessageSchema)
|
|
5189
5597
|
});
|
|
@@ -5205,16 +5613,57 @@ const PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
|
5205
5613
|
* received from untrusted servers.
|
|
5206
5614
|
*/
|
|
5207
5615
|
const ToolAnnotationsSchema = object$1({
|
|
5616
|
+
/**
|
|
5617
|
+
* A human-readable title for the tool.
|
|
5618
|
+
*/
|
|
5208
5619
|
title: string$2().optional(),
|
|
5620
|
+
/**
|
|
5621
|
+
* If true, the tool does not modify its environment.
|
|
5622
|
+
*
|
|
5623
|
+
* Default: false
|
|
5624
|
+
*/
|
|
5209
5625
|
readOnlyHint: boolean().optional(),
|
|
5626
|
+
/**
|
|
5627
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
5628
|
+
* If false, the tool performs only additive updates.
|
|
5629
|
+
*
|
|
5630
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
5631
|
+
*
|
|
5632
|
+
* Default: true
|
|
5633
|
+
*/
|
|
5210
5634
|
destructiveHint: boolean().optional(),
|
|
5635
|
+
/**
|
|
5636
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
5637
|
+
* will have no additional effect on the its environment.
|
|
5638
|
+
*
|
|
5639
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
5640
|
+
*
|
|
5641
|
+
* Default: false
|
|
5642
|
+
*/
|
|
5211
5643
|
idempotentHint: boolean().optional(),
|
|
5644
|
+
/**
|
|
5645
|
+
* If true, this tool may interact with an "open world" of external
|
|
5646
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
5647
|
+
* For example, the world of a web search tool is open, whereas that
|
|
5648
|
+
* of a memory tool is not.
|
|
5649
|
+
*
|
|
5650
|
+
* Default: true
|
|
5651
|
+
*/
|
|
5212
5652
|
openWorldHint: boolean().optional()
|
|
5213
5653
|
});
|
|
5214
5654
|
/**
|
|
5215
5655
|
* Execution-related properties for a tool.
|
|
5216
5656
|
*/
|
|
5217
|
-
const ToolExecutionSchema = object$1({
|
|
5657
|
+
const ToolExecutionSchema = object$1({
|
|
5658
|
+
/**
|
|
5659
|
+
* Indicates the tool's preference for task-augmented execution.
|
|
5660
|
+
* - "required": Clients MUST invoke the tool as a task
|
|
5661
|
+
* - "optional": Clients MAY invoke the tool as a task or normal request
|
|
5662
|
+
* - "forbidden": Clients MUST NOT attempt to invoke the tool as a task
|
|
5663
|
+
*
|
|
5664
|
+
* If not present, defaults to "forbidden".
|
|
5665
|
+
*/
|
|
5666
|
+
taskSupport: _enum([
|
|
5218
5667
|
"required",
|
|
5219
5668
|
"optional",
|
|
5220
5669
|
"forbidden"
|
|
@@ -5225,19 +5674,41 @@ const ToolExecutionSchema = object$1({ taskSupport: _enum([
|
|
|
5225
5674
|
const ToolSchema = object$1({
|
|
5226
5675
|
...BaseMetadataSchema.shape,
|
|
5227
5676
|
...IconsSchema.shape,
|
|
5677
|
+
/**
|
|
5678
|
+
* A human-readable description of the tool.
|
|
5679
|
+
*/
|
|
5228
5680
|
description: string$2().optional(),
|
|
5681
|
+
/**
|
|
5682
|
+
* A JSON Schema 2020-12 object defining the expected parameters for the tool.
|
|
5683
|
+
* Must have type: 'object' at the root level per MCP spec.
|
|
5684
|
+
*/
|
|
5229
5685
|
inputSchema: object$1({
|
|
5230
5686
|
type: literal$1("object"),
|
|
5231
5687
|
properties: record(string$2(), AssertObjectSchema).optional(),
|
|
5232
5688
|
required: array(string$2()).optional()
|
|
5233
5689
|
}).catchall(unknown$1()),
|
|
5690
|
+
/**
|
|
5691
|
+
* An optional JSON Schema 2020-12 object defining the structure of the tool's output
|
|
5692
|
+
* returned in the structuredContent field of a CallToolResult.
|
|
5693
|
+
* Must have type: 'object' at the root level per MCP spec.
|
|
5694
|
+
*/
|
|
5234
5695
|
outputSchema: object$1({
|
|
5235
5696
|
type: literal$1("object"),
|
|
5236
5697
|
properties: record(string$2(), AssertObjectSchema).optional(),
|
|
5237
5698
|
required: array(string$2()).optional()
|
|
5238
5699
|
}).catchall(unknown$1()).optional(),
|
|
5700
|
+
/**
|
|
5701
|
+
* Optional additional tool information.
|
|
5702
|
+
*/
|
|
5239
5703
|
annotations: ToolAnnotationsSchema.optional(),
|
|
5704
|
+
/**
|
|
5705
|
+
* Execution-related properties for this tool.
|
|
5706
|
+
*/
|
|
5240
5707
|
execution: ToolExecutionSchema.optional(),
|
|
5708
|
+
/**
|
|
5709
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5710
|
+
* for notes on _meta usage.
|
|
5711
|
+
*/
|
|
5241
5712
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5242
5713
|
});
|
|
5243
5714
|
/**
|
|
@@ -5252,8 +5723,33 @@ const ListToolsResultSchema = PaginatedResultSchema.extend({ tools: array(ToolSc
|
|
|
5252
5723
|
* The server's response to a tool call.
|
|
5253
5724
|
*/
|
|
5254
5725
|
const CallToolResultSchema = ResultSchema.extend({
|
|
5726
|
+
/**
|
|
5727
|
+
* A list of content objects that represent the result of the tool call.
|
|
5728
|
+
*
|
|
5729
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
5730
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
5731
|
+
*/
|
|
5255
5732
|
content: array(ContentBlockSchema).default([]),
|
|
5733
|
+
/**
|
|
5734
|
+
* An object containing structured tool output.
|
|
5735
|
+
*
|
|
5736
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
5737
|
+
*/
|
|
5256
5738
|
structuredContent: record(string$2(), unknown$1()).optional(),
|
|
5739
|
+
/**
|
|
5740
|
+
* Whether the tool call ended in an error.
|
|
5741
|
+
*
|
|
5742
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
5743
|
+
*
|
|
5744
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
5745
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
5746
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
5747
|
+
* and self-correct.
|
|
5748
|
+
*
|
|
5749
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
5750
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
5751
|
+
* should be reported as an MCP error response.
|
|
5752
|
+
*/
|
|
5257
5753
|
isError: boolean().optional()
|
|
5258
5754
|
});
|
|
5259
5755
|
CallToolResultSchema.or(ResultSchema.extend({ toolResult: unknown$1() }));
|
|
@@ -5261,7 +5757,13 @@ CallToolResultSchema.or(ResultSchema.extend({ toolResult: unknown$1() }));
|
|
|
5261
5757
|
* Parameters for a `tools/call` request.
|
|
5262
5758
|
*/
|
|
5263
5759
|
const CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
5760
|
+
/**
|
|
5761
|
+
* The name of the tool to call.
|
|
5762
|
+
*/
|
|
5264
5763
|
name: string$2(),
|
|
5764
|
+
/**
|
|
5765
|
+
* Arguments to pass to the tool.
|
|
5766
|
+
*/
|
|
5265
5767
|
arguments: record(string$2(), unknown$1()).optional()
|
|
5266
5768
|
});
|
|
5267
5769
|
/**
|
|
@@ -5279,7 +5781,23 @@ const ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
|
5279
5781
|
params: NotificationsParamsSchema.optional()
|
|
5280
5782
|
});
|
|
5281
5783
|
object$1({
|
|
5784
|
+
/**
|
|
5785
|
+
* If true, the list will be refreshed automatically when a list changed notification is received.
|
|
5786
|
+
* The callback will be called with the updated list.
|
|
5787
|
+
*
|
|
5788
|
+
* If false, the callback will be called with null items, allowing manual refresh.
|
|
5789
|
+
*
|
|
5790
|
+
* @default true
|
|
5791
|
+
*/
|
|
5282
5792
|
autoRefresh: boolean().default(true),
|
|
5793
|
+
/**
|
|
5794
|
+
* Debounce time in milliseconds for list changed notification processing.
|
|
5795
|
+
*
|
|
5796
|
+
* Multiple notifications received within this timeframe will only trigger one refresh.
|
|
5797
|
+
* Set to 0 to disable debouncing.
|
|
5798
|
+
*
|
|
5799
|
+
* @default 300
|
|
5800
|
+
*/
|
|
5283
5801
|
debounceMs: number().int().nonnegative().default(300)
|
|
5284
5802
|
});
|
|
5285
5803
|
/**
|
|
@@ -5298,7 +5816,11 @@ const LoggingLevelSchema = _enum([
|
|
|
5298
5816
|
/**
|
|
5299
5817
|
* Parameters for a `logging/setLevel` request.
|
|
5300
5818
|
*/
|
|
5301
|
-
const SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
5819
|
+
const SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
5820
|
+
/**
|
|
5821
|
+
* The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message.
|
|
5822
|
+
*/
|
|
5823
|
+
level: LoggingLevelSchema });
|
|
5302
5824
|
/**
|
|
5303
5825
|
* A request from the client to the server, to enable or adjust logging.
|
|
5304
5826
|
*/
|
|
@@ -5310,8 +5832,17 @@ const SetLevelRequestSchema = RequestSchema.extend({
|
|
|
5310
5832
|
* Parameters for a `notifications/message` notification.
|
|
5311
5833
|
*/
|
|
5312
5834
|
const LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
5835
|
+
/**
|
|
5836
|
+
* The severity of this log message.
|
|
5837
|
+
*/
|
|
5313
5838
|
level: LoggingLevelSchema,
|
|
5839
|
+
/**
|
|
5840
|
+
* An optional name of the logger issuing this message.
|
|
5841
|
+
*/
|
|
5314
5842
|
logger: string$2().optional(),
|
|
5843
|
+
/**
|
|
5844
|
+
* The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
|
|
5845
|
+
*/
|
|
5315
5846
|
data: unknown$1()
|
|
5316
5847
|
});
|
|
5317
5848
|
/**
|
|
@@ -5325,15 +5856,38 @@ const LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
|
5325
5856
|
* The server's preferences for model selection, requested of the client during sampling.
|
|
5326
5857
|
*/
|
|
5327
5858
|
const ModelPreferencesSchema = object$1({
|
|
5328
|
-
|
|
5859
|
+
/**
|
|
5860
|
+
* Optional hints to use for model selection.
|
|
5861
|
+
*/
|
|
5862
|
+
hints: array(object$1({
|
|
5863
|
+
/**
|
|
5864
|
+
* A hint for a model name.
|
|
5865
|
+
*/
|
|
5866
|
+
name: string$2().optional() })).optional(),
|
|
5867
|
+
/**
|
|
5868
|
+
* How much to prioritize cost when selecting a model.
|
|
5869
|
+
*/
|
|
5329
5870
|
costPriority: number().min(0).max(1).optional(),
|
|
5871
|
+
/**
|
|
5872
|
+
* How much to prioritize sampling speed (latency) when selecting a model.
|
|
5873
|
+
*/
|
|
5330
5874
|
speedPriority: number().min(0).max(1).optional(),
|
|
5875
|
+
/**
|
|
5876
|
+
* How much to prioritize intelligence and capabilities when selecting a model.
|
|
5877
|
+
*/
|
|
5331
5878
|
intelligencePriority: number().min(0).max(1).optional()
|
|
5332
5879
|
});
|
|
5333
5880
|
/**
|
|
5334
5881
|
* Controls tool usage behavior in sampling requests.
|
|
5335
5882
|
*/
|
|
5336
|
-
const ToolChoiceSchema = object$1({
|
|
5883
|
+
const ToolChoiceSchema = object$1({
|
|
5884
|
+
/**
|
|
5885
|
+
* Controls when tools are used:
|
|
5886
|
+
* - "auto": Model decides whether to use tools (default)
|
|
5887
|
+
* - "required": Model MUST use at least one tool before completing
|
|
5888
|
+
* - "none": Model MUST NOT use any tools
|
|
5889
|
+
*/
|
|
5890
|
+
mode: _enum([
|
|
5337
5891
|
"auto",
|
|
5338
5892
|
"required",
|
|
5339
5893
|
"none"
|
|
@@ -5348,6 +5902,10 @@ const ToolResultContentSchema = object$1({
|
|
|
5348
5902
|
content: array(ContentBlockSchema).default([]),
|
|
5349
5903
|
structuredContent: object$1({}).loose().optional(),
|
|
5350
5904
|
isError: boolean().optional(),
|
|
5905
|
+
/**
|
|
5906
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5907
|
+
* for notes on _meta usage.
|
|
5908
|
+
*/
|
|
5351
5909
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5352
5910
|
});
|
|
5353
5911
|
/**
|
|
@@ -5376,6 +5934,10 @@ const SamplingMessageContentBlockSchema = discriminatedUnion("type", [
|
|
|
5376
5934
|
const SamplingMessageSchema = object$1({
|
|
5377
5935
|
role: RoleSchema,
|
|
5378
5936
|
content: union([SamplingMessageContentBlockSchema, array(SamplingMessageContentBlockSchema)]),
|
|
5937
|
+
/**
|
|
5938
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
5939
|
+
* for notes on _meta usage.
|
|
5940
|
+
*/
|
|
5379
5941
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5380
5942
|
});
|
|
5381
5943
|
/**
|
|
@@ -5383,18 +5945,48 @@ const SamplingMessageSchema = object$1({
|
|
|
5383
5945
|
*/
|
|
5384
5946
|
const CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
|
|
5385
5947
|
messages: array(SamplingMessageSchema),
|
|
5948
|
+
/**
|
|
5949
|
+
* The server's preferences for which model to select. The client MAY modify or omit this request.
|
|
5950
|
+
*/
|
|
5386
5951
|
modelPreferences: ModelPreferencesSchema.optional(),
|
|
5952
|
+
/**
|
|
5953
|
+
* An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
|
|
5954
|
+
*/
|
|
5387
5955
|
systemPrompt: string$2().optional(),
|
|
5956
|
+
/**
|
|
5957
|
+
* A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.
|
|
5958
|
+
* The client MAY ignore this request.
|
|
5959
|
+
*
|
|
5960
|
+
* Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client
|
|
5961
|
+
* declares ClientCapabilities.sampling.context. These values may be removed in future spec releases.
|
|
5962
|
+
*/
|
|
5388
5963
|
includeContext: _enum([
|
|
5389
5964
|
"none",
|
|
5390
5965
|
"thisServer",
|
|
5391
5966
|
"allServers"
|
|
5392
5967
|
]).optional(),
|
|
5393
5968
|
temperature: number().optional(),
|
|
5969
|
+
/**
|
|
5970
|
+
* The requested maximum number of tokens to sample (to prevent runaway completions).
|
|
5971
|
+
*
|
|
5972
|
+
* The client MAY choose to sample fewer tokens than the requested maximum.
|
|
5973
|
+
*/
|
|
5394
5974
|
maxTokens: number().int(),
|
|
5395
5975
|
stopSequences: array(string$2()).optional(),
|
|
5976
|
+
/**
|
|
5977
|
+
* Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
|
|
5978
|
+
*/
|
|
5396
5979
|
metadata: AssertObjectSchema.optional(),
|
|
5980
|
+
/**
|
|
5981
|
+
* Tools that the model may use during generation.
|
|
5982
|
+
* The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
|
|
5983
|
+
*/
|
|
5397
5984
|
tools: array(ToolSchema).optional(),
|
|
5985
|
+
/**
|
|
5986
|
+
* Controls how the model uses tools.
|
|
5987
|
+
* The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
|
|
5988
|
+
* Default is `{ mode: "auto" }`.
|
|
5989
|
+
*/
|
|
5398
5990
|
toolChoice: ToolChoiceSchema.optional()
|
|
5399
5991
|
});
|
|
5400
5992
|
/**
|
|
@@ -5410,13 +6002,29 @@ const CreateMessageRequestSchema = RequestSchema.extend({
|
|
|
5410
6002
|
* Used when the request does not include tools.
|
|
5411
6003
|
*/
|
|
5412
6004
|
const CreateMessageResultSchema = ResultSchema.extend({
|
|
6005
|
+
/**
|
|
6006
|
+
* The name of the model that generated the message.
|
|
6007
|
+
*/
|
|
5413
6008
|
model: string$2(),
|
|
6009
|
+
/**
|
|
6010
|
+
* The reason why sampling stopped, if known.
|
|
6011
|
+
*
|
|
6012
|
+
* Standard values:
|
|
6013
|
+
* - "endTurn": Natural end of the assistant's turn
|
|
6014
|
+
* - "stopSequence": A stop sequence was encountered
|
|
6015
|
+
* - "maxTokens": Maximum token limit was reached
|
|
6016
|
+
*
|
|
6017
|
+
* This field is an open string to allow for provider-specific stop reasons.
|
|
6018
|
+
*/
|
|
5414
6019
|
stopReason: optional(_enum([
|
|
5415
6020
|
"endTurn",
|
|
5416
6021
|
"stopSequence",
|
|
5417
6022
|
"maxTokens"
|
|
5418
6023
|
]).or(string$2())),
|
|
5419
6024
|
role: RoleSchema,
|
|
6025
|
+
/**
|
|
6026
|
+
* Response content. Single content block (text, image, or audio).
|
|
6027
|
+
*/
|
|
5420
6028
|
content: SamplingContentSchema
|
|
5421
6029
|
});
|
|
5422
6030
|
/**
|
|
@@ -5424,7 +6032,21 @@ const CreateMessageResultSchema = ResultSchema.extend({
|
|
|
5424
6032
|
* This version supports array content for tool use flows.
|
|
5425
6033
|
*/
|
|
5426
6034
|
const CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
6035
|
+
/**
|
|
6036
|
+
* The name of the model that generated the message.
|
|
6037
|
+
*/
|
|
5427
6038
|
model: string$2(),
|
|
6039
|
+
/**
|
|
6040
|
+
* The reason why sampling stopped, if known.
|
|
6041
|
+
*
|
|
6042
|
+
* Standard values:
|
|
6043
|
+
* - "endTurn": Natural end of the assistant's turn
|
|
6044
|
+
* - "stopSequence": A stop sequence was encountered
|
|
6045
|
+
* - "maxTokens": Maximum token limit was reached
|
|
6046
|
+
* - "toolUse": The model wants to use one or more tools
|
|
6047
|
+
*
|
|
6048
|
+
* This field is an open string to allow for provider-specific stop reasons.
|
|
6049
|
+
*/
|
|
5428
6050
|
stopReason: optional(_enum([
|
|
5429
6051
|
"endTurn",
|
|
5430
6052
|
"stopSequence",
|
|
@@ -5432,6 +6054,9 @@ const CreateMessageResultWithToolsSchema = ResultSchema.extend({
|
|
|
5432
6054
|
"toolUse"
|
|
5433
6055
|
]).or(string$2())),
|
|
5434
6056
|
role: RoleSchema,
|
|
6057
|
+
/**
|
|
6058
|
+
* Response content. May be a single block or array. May include ToolUseContent if stopReason is "toolUse".
|
|
6059
|
+
*/
|
|
5435
6060
|
content: union([SamplingMessageContentBlockSchema, array(SamplingMessageContentBlockSchema)])
|
|
5436
6061
|
});
|
|
5437
6062
|
/**
|
|
@@ -5540,17 +6165,42 @@ const PrimitiveSchemaDefinitionSchema = union([
|
|
|
5540
6165
|
* The parameters for a request to elicit additional information from the user via the client.
|
|
5541
6166
|
*/
|
|
5542
6167
|
const ElicitRequestParamsSchema = union([TaskAugmentedRequestParamsSchema.extend({
|
|
6168
|
+
/**
|
|
6169
|
+
* The elicitation mode.
|
|
6170
|
+
*
|
|
6171
|
+
* Optional for backward compatibility. Clients MUST treat missing mode as "form".
|
|
6172
|
+
*/
|
|
5543
6173
|
mode: literal$1("form").optional(),
|
|
6174
|
+
/**
|
|
6175
|
+
* The message to present to the user describing what information is being requested.
|
|
6176
|
+
*/
|
|
5544
6177
|
message: string$2(),
|
|
6178
|
+
/**
|
|
6179
|
+
* A restricted subset of JSON Schema.
|
|
6180
|
+
* Only top-level properties are allowed, without nesting.
|
|
6181
|
+
*/
|
|
5545
6182
|
requestedSchema: object$1({
|
|
5546
6183
|
type: literal$1("object"),
|
|
5547
6184
|
properties: record(string$2(), PrimitiveSchemaDefinitionSchema),
|
|
5548
6185
|
required: array(string$2()).optional()
|
|
5549
6186
|
})
|
|
5550
6187
|
}), TaskAugmentedRequestParamsSchema.extend({
|
|
6188
|
+
/**
|
|
6189
|
+
* The elicitation mode.
|
|
6190
|
+
*/
|
|
5551
6191
|
mode: literal$1("url"),
|
|
6192
|
+
/**
|
|
6193
|
+
* The message to present to the user explaining why the interaction is needed.
|
|
6194
|
+
*/
|
|
5552
6195
|
message: string$2(),
|
|
6196
|
+
/**
|
|
6197
|
+
* The ID of the elicitation, which must be unique within the context of the server.
|
|
6198
|
+
* The client MUST treat this ID as an opaque value.
|
|
6199
|
+
*/
|
|
5553
6200
|
elicitationId: string$2(),
|
|
6201
|
+
/**
|
|
6202
|
+
* The URL that the user should navigate to.
|
|
6203
|
+
*/
|
|
5554
6204
|
url: string$2().url()
|
|
5555
6205
|
})]);
|
|
5556
6206
|
/**
|
|
@@ -5567,7 +6217,11 @@ const ElicitRequestSchema = RequestSchema.extend({
|
|
|
5567
6217
|
*
|
|
5568
6218
|
* @category notifications/elicitation/complete
|
|
5569
6219
|
*/
|
|
5570
|
-
const ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
6220
|
+
const ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
6221
|
+
/**
|
|
6222
|
+
* The ID of the elicitation that completed.
|
|
6223
|
+
*/
|
|
6224
|
+
elicitationId: string$2() });
|
|
5571
6225
|
/**
|
|
5572
6226
|
* A notification from the server to the client, informing it of a completion of an out-of-band elicitation request.
|
|
5573
6227
|
*
|
|
@@ -5581,11 +6235,23 @@ const ElicitationCompleteNotificationSchema = NotificationSchema.extend({
|
|
|
5581
6235
|
* The client's response to an elicitation/create request from the server.
|
|
5582
6236
|
*/
|
|
5583
6237
|
const ElicitResultSchema = ResultSchema.extend({
|
|
6238
|
+
/**
|
|
6239
|
+
* The user action in response to the elicitation.
|
|
6240
|
+
* - "accept": User submitted the form/confirmed the action
|
|
6241
|
+
* - "decline": User explicitly decline the action
|
|
6242
|
+
* - "cancel": User dismissed without making an explicit choice
|
|
6243
|
+
*/
|
|
5584
6244
|
action: _enum([
|
|
5585
6245
|
"accept",
|
|
5586
6246
|
"decline",
|
|
5587
6247
|
"cancel"
|
|
5588
6248
|
]),
|
|
6249
|
+
/**
|
|
6250
|
+
* The submitted form data, only present when action is "accept".
|
|
6251
|
+
* Contains values matching the requested schema.
|
|
6252
|
+
* Per MCP spec, content is "typically omitted" for decline/cancel actions.
|
|
6253
|
+
* We normalize null to undefined for leniency while maintaining type compatibility.
|
|
6254
|
+
*/
|
|
5589
6255
|
content: preprocess$1((val) => val === null ? void 0 : val, record(string$2(), union([
|
|
5590
6256
|
string$2(),
|
|
5591
6257
|
number(),
|
|
@@ -5598,6 +6264,9 @@ const ElicitResultSchema = ResultSchema.extend({
|
|
|
5598
6264
|
*/
|
|
5599
6265
|
const ResourceTemplateReferenceSchema = object$1({
|
|
5600
6266
|
type: literal$1("ref/resource"),
|
|
6267
|
+
/**
|
|
6268
|
+
* The URI or URI template of the resource.
|
|
6269
|
+
*/
|
|
5601
6270
|
uri: string$2()
|
|
5602
6271
|
});
|
|
5603
6272
|
/**
|
|
@@ -5605,6 +6274,9 @@ const ResourceTemplateReferenceSchema = object$1({
|
|
|
5605
6274
|
*/
|
|
5606
6275
|
const PromptReferenceSchema = object$1({
|
|
5607
6276
|
type: literal$1("ref/prompt"),
|
|
6277
|
+
/**
|
|
6278
|
+
* The name of the prompt or prompt template
|
|
6279
|
+
*/
|
|
5608
6280
|
name: string$2()
|
|
5609
6281
|
});
|
|
5610
6282
|
/**
|
|
@@ -5612,11 +6284,24 @@ const PromptReferenceSchema = object$1({
|
|
|
5612
6284
|
*/
|
|
5613
6285
|
const CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
5614
6286
|
ref: union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
6287
|
+
/**
|
|
6288
|
+
* The argument's information
|
|
6289
|
+
*/
|
|
5615
6290
|
argument: object$1({
|
|
6291
|
+
/**
|
|
6292
|
+
* The name of the argument
|
|
6293
|
+
*/
|
|
5616
6294
|
name: string$2(),
|
|
6295
|
+
/**
|
|
6296
|
+
* The value of the argument to use for completion matching.
|
|
6297
|
+
*/
|
|
5617
6298
|
value: string$2()
|
|
5618
6299
|
}),
|
|
5619
|
-
context: object$1({
|
|
6300
|
+
context: object$1({
|
|
6301
|
+
/**
|
|
6302
|
+
* Previously-resolved variables in a URI template or prompt.
|
|
6303
|
+
*/
|
|
6304
|
+
arguments: record(string$2(), string$2()).optional() }).optional()
|
|
5620
6305
|
});
|
|
5621
6306
|
/**
|
|
5622
6307
|
* A request from the client to the server, to ask for completion options.
|
|
@@ -5635,16 +6320,35 @@ function assertCompleteRequestResourceTemplate(request) {
|
|
|
5635
6320
|
* The server's response to a completion/complete request
|
|
5636
6321
|
*/
|
|
5637
6322
|
const CompleteResultSchema = ResultSchema.extend({ completion: looseObject({
|
|
6323
|
+
/**
|
|
6324
|
+
* An array of completion values. Must not exceed 100 items.
|
|
6325
|
+
*/
|
|
5638
6326
|
values: array(string$2()).max(100),
|
|
6327
|
+
/**
|
|
6328
|
+
* The total number of completion options available. This can exceed the number of values actually sent in the response.
|
|
6329
|
+
*/
|
|
5639
6330
|
total: optional(number().int()),
|
|
6331
|
+
/**
|
|
6332
|
+
* Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
|
|
6333
|
+
*/
|
|
5640
6334
|
hasMore: optional(boolean())
|
|
5641
6335
|
}) });
|
|
5642
6336
|
/**
|
|
5643
6337
|
* Represents a root directory or file that the server can operate on.
|
|
5644
6338
|
*/
|
|
5645
6339
|
const RootSchema = object$1({
|
|
6340
|
+
/**
|
|
6341
|
+
* The URI identifying the root. This *must* start with file:// for now.
|
|
6342
|
+
*/
|
|
5646
6343
|
uri: string$2().startsWith("file://"),
|
|
6344
|
+
/**
|
|
6345
|
+
* An optional name for the root.
|
|
6346
|
+
*/
|
|
5647
6347
|
name: string$2().optional(),
|
|
6348
|
+
/**
|
|
6349
|
+
* See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
|
|
6350
|
+
* for notes on _meta usage.
|
|
6351
|
+
*/
|
|
5648
6352
|
_meta: record(string$2(), unknown$1()).optional()
|
|
5649
6353
|
});
|
|
5650
6354
|
/**
|
|
@@ -6264,7 +6968,8 @@ const handleResult = (ctx, result) => {
|
|
|
6264
6968
|
success: false,
|
|
6265
6969
|
get error() {
|
|
6266
6970
|
if (this._error) return this._error;
|
|
6267
|
-
|
|
6971
|
+
const error = new ZodError(ctx.common.issues);
|
|
6972
|
+
this._error = error;
|
|
6268
6973
|
return this._error;
|
|
6269
6974
|
}
|
|
6270
6975
|
};
|
|
@@ -7952,9 +8657,10 @@ var ZodObject = class ZodObject extends ZodType {
|
|
|
7952
8657
|
_getCached() {
|
|
7953
8658
|
if (this._cached !== null) return this._cached;
|
|
7954
8659
|
const shape = this._def.shape();
|
|
8660
|
+
const keys = util.objectKeys(shape);
|
|
7955
8661
|
this._cached = {
|
|
7956
8662
|
shape,
|
|
7957
|
-
keys
|
|
8663
|
+
keys
|
|
7958
8664
|
};
|
|
7959
8665
|
return this._cached;
|
|
7960
8666
|
}
|
|
@@ -9389,7 +10095,7 @@ ZodEffects.createWithPreprocess;
|
|
|
9389
10095
|
ZodPipeline.create;
|
|
9390
10096
|
//#endregion
|
|
9391
10097
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
9392
|
-
const ZodMiniType =
|
|
10098
|
+
const ZodMiniType = /*@__PURE__*/ $constructor("ZodMiniType", (inst, def) => {
|
|
9393
10099
|
if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
|
|
9394
10100
|
$ZodType.init(inst, def);
|
|
9395
10101
|
inst.def = def;
|
|
@@ -9417,12 +10123,12 @@ const ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
9417
10123
|
});
|
|
9418
10124
|
inst.apply = (fn) => fn(inst);
|
|
9419
10125
|
});
|
|
9420
|
-
const ZodMiniObject =
|
|
10126
|
+
const ZodMiniObject = /*@__PURE__*/ $constructor("ZodMiniObject", (inst, def) => {
|
|
9421
10127
|
$ZodObject.init(inst, def);
|
|
9422
10128
|
ZodMiniType.init(inst, def);
|
|
9423
10129
|
defineLazy(inst, "shape", () => def.shape);
|
|
9424
10130
|
});
|
|
9425
|
-
|
|
10131
|
+
// @__NO_SIDE_EFFECTS__
|
|
9426
10132
|
function object(shape, params) {
|
|
9427
10133
|
return new ZodMiniObject({
|
|
9428
10134
|
type: "object",
|
|
@@ -9836,17 +10542,43 @@ let emojiRegex = void 0;
|
|
|
9836
10542
|
* Expressions with /i flag have been changed accordingly.
|
|
9837
10543
|
*/
|
|
9838
10544
|
const zodPatterns = {
|
|
10545
|
+
/**
|
|
10546
|
+
* `c` was changed to `[cC]` to replicate /i flag
|
|
10547
|
+
*/
|
|
9839
10548
|
cuid: /^[cC][^\s-]{8,}$/,
|
|
9840
10549
|
cuid2: /^[0-9a-z]+$/,
|
|
9841
10550
|
ulid: /^[0-9A-HJKMNP-TV-Z]{26}$/,
|
|
10551
|
+
/**
|
|
10552
|
+
* `a-z` was added to replicate /i flag
|
|
10553
|
+
*/
|
|
9842
10554
|
email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,
|
|
10555
|
+
/**
|
|
10556
|
+
* Constructed a valid Unicode RegExp
|
|
10557
|
+
*
|
|
10558
|
+
* Lazily instantiate since this type of regex isn't supported
|
|
10559
|
+
* in all envs (e.g. React Native).
|
|
10560
|
+
*
|
|
10561
|
+
* See:
|
|
10562
|
+
* https://github.com/colinhacks/zod/issues/2433
|
|
10563
|
+
* Fix in Zod:
|
|
10564
|
+
* https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b
|
|
10565
|
+
*/
|
|
9843
10566
|
emoji: () => {
|
|
9844
10567
|
if (emojiRegex === void 0) emojiRegex = RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u");
|
|
9845
10568
|
return emojiRegex;
|
|
9846
10569
|
},
|
|
10570
|
+
/**
|
|
10571
|
+
* Unused
|
|
10572
|
+
*/
|
|
9847
10573
|
uuid: /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,
|
|
10574
|
+
/**
|
|
10575
|
+
* Unused
|
|
10576
|
+
*/
|
|
9848
10577
|
ipv4: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,
|
|
9849
10578
|
ipv4Cidr: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,
|
|
10579
|
+
/**
|
|
10580
|
+
* Unused
|
|
10581
|
+
*/
|
|
9850
10582
|
ipv6: /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,
|
|
9851
10583
|
ipv6Cidr: /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,
|
|
9852
10584
|
base64: /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,
|
|
@@ -9953,7 +10685,7 @@ function parseStringDef(def, refs) {
|
|
|
9953
10685
|
case "toLowerCase":
|
|
9954
10686
|
case "toUpperCase":
|
|
9955
10687
|
case "trim": break;
|
|
9956
|
-
default:
|
|
10688
|
+
default:
|
|
9957
10689
|
}
|
|
9958
10690
|
return res;
|
|
9959
10691
|
}
|
|
@@ -24183,7 +24915,13 @@ var init_vfile = __esmMin((() => {
|
|
|
24183
24915
|
//#region ../../node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.js
|
|
24184
24916
|
var CallableInstance;
|
|
24185
24917
|
var init_callable_instance = __esmMin((() => {
|
|
24186
|
-
CallableInstance = (
|
|
24918
|
+
CallableInstance = (
|
|
24919
|
+
/**
|
|
24920
|
+
* @this {Function}
|
|
24921
|
+
* @param {string | symbol} property
|
|
24922
|
+
* @returns {(...parameters: Array<unknown>) => unknown}
|
|
24923
|
+
*/
|
|
24924
|
+
function(property) {
|
|
24187
24925
|
const proto = this.constructor.prototype;
|
|
24188
24926
|
const value = proto[property];
|
|
24189
24927
|
/** @type {(...parameters: Array<unknown>) => unknown} */
|
|
@@ -47827,7 +48565,7 @@ function factoryMdxExpression(effects, ok, type, markerType, chunkType, acorn, a
|
|
|
47827
48565
|
ruleId: "unexpected-eof",
|
|
47828
48566
|
source: "micromark-extension-mdx-expression"
|
|
47829
48567
|
});
|
|
47830
|
-
error.url =
|
|
48568
|
+
error.url = "https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-";
|
|
47831
48569
|
throw error;
|
|
47832
48570
|
}
|
|
47833
48571
|
if (markdownLineEnding(code)) {
|
|
@@ -47897,10 +48635,10 @@ function factoryMdxExpression(effects, ok, type, markerType, chunkType, acorn, a
|
|
|
47897
48635
|
ruleId: "unexpected-lazy",
|
|
47898
48636
|
source: "micromark-extension-mdx-expression"
|
|
47899
48637
|
});
|
|
47900
|
-
error.url =
|
|
48638
|
+
error.url = "https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed";
|
|
47901
48639
|
throw error;
|
|
47902
48640
|
}
|
|
47903
|
-
if (markdownSpace(code)) return factorySpace(effects, before, "linePrefix",
|
|
48641
|
+
if (markdownSpace(code)) return factorySpace(effects, before, "linePrefix", 3)(code);
|
|
47904
48642
|
return before(code);
|
|
47905
48643
|
}
|
|
47906
48644
|
}
|
|
@@ -47942,7 +48680,7 @@ function mdxExpressionParse(acorn, acornOptions, chunkType, eventStart, pointSta
|
|
|
47942
48680
|
ruleId: "non-spread",
|
|
47943
48681
|
source: "micromark-extension-mdx-expression"
|
|
47944
48682
|
});
|
|
47945
|
-
error.url =
|
|
48683
|
+
error.url = "https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression#unexpected-type-in-code-expected-an-object-spread-spread";
|
|
47946
48684
|
throw error;
|
|
47947
48685
|
}
|
|
47948
48686
|
if (head.expression.properties[1]) {
|
|
@@ -47951,7 +48689,7 @@ function mdxExpressionParse(acorn, acornOptions, chunkType, eventStart, pointSta
|
|
|
47951
48689
|
ruleId: "spread-extra",
|
|
47952
48690
|
source: "micromark-extension-mdx-expression"
|
|
47953
48691
|
});
|
|
47954
|
-
error.url =
|
|
48692
|
+
error.url = "https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression#unexpected-extra-content-in-spread-only-a-single-spread-is-supported";
|
|
47955
48693
|
throw error;
|
|
47956
48694
|
}
|
|
47957
48695
|
if (head.expression.properties[0] && head.expression.properties[0].type !== "SpreadElement") {
|
|
@@ -47961,7 +48699,7 @@ function mdxExpressionParse(acorn, acornOptions, chunkType, eventStart, pointSta
|
|
|
47961
48699
|
ruleId: "non-spread",
|
|
47962
48700
|
source: "micromark-extension-mdx-expression"
|
|
47963
48701
|
});
|
|
47964
|
-
error.url =
|
|
48702
|
+
error.url = "https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression#unexpected-type-in-code-expected-an-object-spread-spread";
|
|
47965
48703
|
throw error;
|
|
47966
48704
|
}
|
|
47967
48705
|
}
|
|
@@ -47976,7 +48714,7 @@ function mdxExpressionParse(acorn, acornOptions, chunkType, eventStart, pointSta
|
|
|
47976
48714
|
ruleId: "acorn",
|
|
47977
48715
|
source: "micromark-extension-mdx-expression"
|
|
47978
48716
|
});
|
|
47979
|
-
error.url =
|
|
48717
|
+
error.url = "https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression#could-not-parse-expression-with-acorn";
|
|
47980
48718
|
return {
|
|
47981
48719
|
type: "nok",
|
|
47982
48720
|
message: error
|
|
@@ -47987,20 +48725,12 @@ function mdxExpressionParse(acorn, acornOptions, chunkType, eventStart, pointSta
|
|
|
47987
48725
|
estree
|
|
47988
48726
|
};
|
|
47989
48727
|
}
|
|
47990
|
-
var indentSize, trouble$2, unexpectedEndOfFileHash, unexpectedLazyHash, nonSpreadHash, spreadExtraHash, acornHash;
|
|
47991
48728
|
var init_micromark_factory_mdx_expression = __esmMin((() => {
|
|
47992
48729
|
init_micromark_factory_space();
|
|
47993
48730
|
init_micromark_util_character();
|
|
47994
48731
|
init_micromark_util_events_to_acorn();
|
|
47995
48732
|
init_unist_util_position_from_estree();
|
|
47996
48733
|
init_vfile_message();
|
|
47997
|
-
indentSize = 2;
|
|
47998
|
-
trouble$2 = "https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression";
|
|
47999
|
-
unexpectedEndOfFileHash = "#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-";
|
|
48000
|
-
unexpectedLazyHash = "#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed";
|
|
48001
|
-
nonSpreadHash = "#unexpected-type-in-code-expected-an-object-spread-spread";
|
|
48002
|
-
spreadExtraHash = "#unexpected-extra-content-in-spread-only-a-single-spread-is-supported";
|
|
48003
|
-
acornHash = "#could-not-parse-expression-with-acorn";
|
|
48004
48734
|
}));
|
|
48005
48735
|
//#endregion
|
|
48006
48736
|
//#region ../../node_modules/.pnpm/micromark-extension-mdx-expression@3.0.1/node_modules/micromark-extension-mdx-expression/lib/syntax.js
|
|
@@ -48861,7 +49591,7 @@ function factoryTag(effects, ok, nok, acorn, acornOptions, addResult, allowLazy,
|
|
|
48861
49591
|
function esWhitespaceEolAfter(code) {
|
|
48862
49592
|
if (!allowLazy && self.parser.lazy[self.now().line]) {
|
|
48863
49593
|
const error = new VFileMessage("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc", self.now(), "micromark-extension-mdx-jsx:unexpected-lazy");
|
|
48864
|
-
error.url =
|
|
49594
|
+
error.url = "https://github.com/micromark/micromark-extension-mdx-jsx#unexpected-lazy-line-in-container-expected-line-to-be";
|
|
48865
49595
|
throw error;
|
|
48866
49596
|
}
|
|
48867
49597
|
return esWhitespaceStart(code);
|
|
@@ -48875,7 +49605,7 @@ function factoryTag(effects, ok, nok, acorn, acornOptions, addResult, allowLazy,
|
|
|
48875
49605
|
*/
|
|
48876
49606
|
function crash(code, at, expect) {
|
|
48877
49607
|
const error = new VFileMessage("Unexpected " + (code === null ? "end of file" : "character `" + (code === 96 ? "` ` `" : String.fromCodePoint(code)) + "` (" + serializeCharCode(code) + ")") + " " + at + ", expected " + expect, self.now(), "micromark-extension-mdx-jsx:unexpected-" + (code === null ? "eof" : "character"));
|
|
48878
|
-
error.url = trouble
|
|
49608
|
+
error.url = trouble + (code === null ? "#unexpected-end-of-file-at-expected-expect" : "#unexpected-character-at-expected-expect");
|
|
48879
49609
|
throw error;
|
|
48880
49610
|
}
|
|
48881
49611
|
}
|
|
@@ -48886,13 +49616,13 @@ function factoryTag(effects, ok, nok, acorn, acornOptions, addResult, allowLazy,
|
|
|
48886
49616
|
function serializeCharCode(code) {
|
|
48887
49617
|
return "U+" + code.toString(16).toUpperCase().padStart(4, "0");
|
|
48888
49618
|
}
|
|
48889
|
-
var trouble
|
|
49619
|
+
var trouble;
|
|
48890
49620
|
var init_factory_tag = __esmMin((() => {
|
|
48891
49621
|
init_estree_util_is_identifier_name();
|
|
48892
49622
|
init_micromark_factory_mdx_expression();
|
|
48893
49623
|
init_micromark_util_character();
|
|
48894
49624
|
init_vfile_message();
|
|
48895
|
-
trouble
|
|
49625
|
+
trouble = "https://github.com/micromark/micromark-extension-mdx-jsx";
|
|
48896
49626
|
}));
|
|
48897
49627
|
//#endregion
|
|
48898
49628
|
//#region ../../node_modules/.pnpm/micromark-extension-mdx-jsx@3.0.2/node_modules/micromark-extension-mdx-jsx/lib/jsx-text.js
|
|
@@ -49251,7 +49981,7 @@ function mdxjsEsm(options) {
|
|
|
49251
49981
|
ruleId: "acorn",
|
|
49252
49982
|
source: "micromark-extension-mdxjs-esm"
|
|
49253
49983
|
});
|
|
49254
|
-
error.url =
|
|
49984
|
+
error.url = "https://github.com/micromark/micromark-extension-mdxjs-esm#could-not-parse-importexports-with-acorn";
|
|
49255
49985
|
throw error;
|
|
49256
49986
|
}
|
|
49257
49987
|
if (definedModuleSpecifiers.length > 0) result.estree.body.shift();
|
|
@@ -49264,7 +49994,7 @@ function mdxjsEsm(options) {
|
|
|
49264
49994
|
ruleId: "non-esm",
|
|
49265
49995
|
source: "micromark-extension-mdxjs-esm"
|
|
49266
49996
|
});
|
|
49267
|
-
error.url =
|
|
49997
|
+
error.url = "https://github.com/micromark/micromark-extension-mdxjs-esm#unexpected-type-in-code-only-importexports-are-supported";
|
|
49268
49998
|
throw error;
|
|
49269
49999
|
}
|
|
49270
50000
|
if (node.type === "ImportDeclaration" && !self.interrupt) {
|
|
@@ -49293,7 +50023,7 @@ function tokenizeNextBlank(effects, ok, nok) {
|
|
|
49293
50023
|
return effects.attempt(blankLine, ok, nok);
|
|
49294
50024
|
}
|
|
49295
50025
|
}
|
|
49296
|
-
var blankLineBefore,
|
|
50026
|
+
var blankLineBefore, allowedAcornTypes;
|
|
49297
50027
|
var init_syntax$1 = __esmMin((() => {
|
|
49298
50028
|
init_micromark_core_commonmark();
|
|
49299
50029
|
init_micromark_util_character();
|
|
@@ -49304,7 +50034,6 @@ var init_syntax$1 = __esmMin((() => {
|
|
|
49304
50034
|
tokenize: tokenizeNextBlank,
|
|
49305
50035
|
partial: true
|
|
49306
50036
|
};
|
|
49307
|
-
trouble = "https://github.com/micromark/micromark-extension-mdxjs-esm";
|
|
49308
50037
|
allowedAcornTypes = new Set([
|
|
49309
50038
|
"ExportAllDeclaration",
|
|
49310
50039
|
"ExportDefaultDeclaration",
|
|
@@ -49998,7 +50727,12 @@ function looksLikeANode(value) {
|
|
|
49998
50727
|
}
|
|
49999
50728
|
var convert;
|
|
50000
50729
|
var init_lib$7 = __esmMin((() => {
|
|
50001
|
-
convert = (
|
|
50730
|
+
convert = (
|
|
50731
|
+
/**
|
|
50732
|
+
* @param {Test} [test]
|
|
50733
|
+
* @returns {Check}
|
|
50734
|
+
*/
|
|
50735
|
+
function(test) {
|
|
50002
50736
|
if (test === null || test === void 0) return ok;
|
|
50003
50737
|
if (typeof test === "function") return castFactory(test);
|
|
50004
50738
|
if (typeof test === "object") return Array.isArray(test) ? anyFactory(test) : propertiesFactory(test);
|