@learncard/render-method-plugin 4.0.3 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/render-method-plugin.cjs.development.cjs +762 -261
- package/dist/render-method-plugin.cjs.development.cjs.map +3 -3
- package/dist/render-method-plugin.cjs.production.min.cjs +14 -14
- package/dist/render-method-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/render-method-plugin.esm.js +756 -255
- package/dist/render-method-plugin.esm.js.map +3 -3
- package/package.json +13 -18
|
@@ -13,6 +13,7 @@ var NOTHING = Symbol.for("immer-nothing");
|
|
|
13
13
|
var DRAFTABLE = Symbol.for("immer-draftable");
|
|
14
14
|
var DRAFT_STATE = Symbol.for("immer-state");
|
|
15
15
|
var errors = true ? [
|
|
16
|
+
// All error codes, starting by 0:
|
|
16
17
|
function(plugin) {
|
|
17
18
|
return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`;
|
|
18
19
|
},
|
|
@@ -39,6 +40,8 @@ var errors = true ? [
|
|
|
39
40
|
function(thing) {
|
|
40
41
|
return `'original' expects a draft, got: ${thing}`;
|
|
41
42
|
}
|
|
43
|
+
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
44
|
+
// See Patches.ts for additional errors
|
|
42
45
|
] : [];
|
|
43
46
|
function die(error51, ...args) {
|
|
44
47
|
if (true) {
|
|
@@ -158,6 +161,7 @@ function shallowCopy(base, strict) {
|
|
|
158
161
|
descriptors[key] = {
|
|
159
162
|
configurable: true,
|
|
160
163
|
writable: true,
|
|
164
|
+
// could live with !!desc.set as well here...
|
|
161
165
|
enumerable: desc.enumerable,
|
|
162
166
|
value: base[key]
|
|
163
167
|
};
|
|
@@ -222,6 +226,8 @@ function createScope(parent_, immer_) {
|
|
|
222
226
|
drafts_: [],
|
|
223
227
|
parent_,
|
|
224
228
|
immer_,
|
|
229
|
+
// Whenever the modified draft contains a draft from another scope, we
|
|
230
|
+
// need to prevent auto-freezing so the unowned draft can be finalized.
|
|
225
231
|
canAutoFreeze_: true,
|
|
226
232
|
unfinalizedDrafts_: 0
|
|
227
233
|
};
|
|
@@ -362,7 +368,8 @@ function finalizeProperty(rootScope, parentState, targetObject, prop, childValue
|
|
|
362
368
|
if (childValue === targetObject)
|
|
363
369
|
die(5);
|
|
364
370
|
if (isDraft(childValue)) {
|
|
365
|
-
const path = rootPath && parentState && parentState.type_ !== 3 &&
|
|
371
|
+
const path = rootPath && parentState && parentState.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
372
|
+
!has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
|
|
366
373
|
const res = finalize(rootScope, childValue, path);
|
|
367
374
|
set(targetObject, prop, res);
|
|
368
375
|
if (isDraft(res)) {
|
|
@@ -395,14 +402,24 @@ function createProxyProxy(base, parent) {
|
|
|
395
402
|
const isArray = Array.isArray(base);
|
|
396
403
|
const state = {
|
|
397
404
|
type_: isArray ? 1 : 0,
|
|
405
|
+
// Track which produce call this is associated with.
|
|
398
406
|
scope_: parent ? parent.scope_ : getCurrentScope(),
|
|
407
|
+
// True for both shallow and deep changes.
|
|
399
408
|
modified_: false,
|
|
409
|
+
// Used during finalization.
|
|
400
410
|
finalized_: false,
|
|
411
|
+
// Track which properties have been assigned (true) or deleted (false).
|
|
401
412
|
assigned_: {},
|
|
413
|
+
// The parent draft state.
|
|
402
414
|
parent_: parent,
|
|
415
|
+
// The base state.
|
|
403
416
|
base_: base,
|
|
417
|
+
// The base proxy.
|
|
404
418
|
draft_: null,
|
|
419
|
+
// set below
|
|
420
|
+
// The base copy with any updated values.
|
|
405
421
|
copy_: null,
|
|
422
|
+
// Called by the `produce` function.
|
|
406
423
|
revoke_: null,
|
|
407
424
|
isManual_: false
|
|
408
425
|
};
|
|
@@ -461,7 +478,9 @@ var objectTraps = {
|
|
|
461
478
|
prepareCopy(state);
|
|
462
479
|
markChanged(state);
|
|
463
480
|
}
|
|
464
|
-
if (state.copy_[prop] === value &&
|
|
481
|
+
if (state.copy_[prop] === value && // special case: handle new props with value 'undefined'
|
|
482
|
+
(value !== void 0 || prop in state.copy_) || // special case: NaN
|
|
483
|
+
Number.isNaN(value) && Number.isNaN(state.copy_[prop]))
|
|
465
484
|
return true;
|
|
466
485
|
state.copy_[prop] = value;
|
|
467
486
|
state.assigned_[prop] = true;
|
|
@@ -480,6 +499,8 @@ var objectTraps = {
|
|
|
480
499
|
}
|
|
481
500
|
return true;
|
|
482
501
|
},
|
|
502
|
+
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
503
|
+
// the same guarantee in ES5 mode.
|
|
483
504
|
getOwnPropertyDescriptor(state, prop) {
|
|
484
505
|
const owner = latest(state);
|
|
485
506
|
const desc = Reflect.getOwnPropertyDescriptor(owner, prop);
|
|
@@ -527,7 +548,11 @@ function peek(draft, prop) {
|
|
|
527
548
|
__name(peek, "peek");
|
|
528
549
|
function readPropFromProto(state, source, prop) {
|
|
529
550
|
const desc = getDescriptorFromProto(source, prop);
|
|
530
|
-
return desc ? `value` in desc ? desc.value :
|
|
551
|
+
return desc ? `value` in desc ? desc.value : (
|
|
552
|
+
// This is a very special case, if the prop is a getter defined by the
|
|
553
|
+
// prototype, we should invoke it with the draft as context!
|
|
554
|
+
desc.get?.call(state.draft_)
|
|
555
|
+
) : void 0;
|
|
531
556
|
}
|
|
532
557
|
__name(readPropFromProto, "readPropFromProto");
|
|
533
558
|
function getDescriptorFromProto(source, prop) {
|
|
@@ -561,7 +586,8 @@ function prepareCopy(state) {
|
|
|
561
586
|
}
|
|
562
587
|
}
|
|
563
588
|
__name(prepareCopy, "prepareCopy");
|
|
564
|
-
var
|
|
589
|
+
var _a;
|
|
590
|
+
var Immer2 = (_a = class {
|
|
565
591
|
constructor(config2) {
|
|
566
592
|
this.autoFreeze_ = true;
|
|
567
593
|
this.useStrictShallowCopy_ = false;
|
|
@@ -650,12 +676,28 @@ var Immer2 = /* @__PURE__ */ __name(class {
|
|
|
650
676
|
usePatchesInScope(scope, patchListener);
|
|
651
677
|
return processResult(void 0, scope);
|
|
652
678
|
}
|
|
679
|
+
/**
|
|
680
|
+
* Pass true to automatically freeze all copies created by Immer.
|
|
681
|
+
*
|
|
682
|
+
* By default, auto-freezing is enabled.
|
|
683
|
+
*/
|
|
653
684
|
setAutoFreeze(value) {
|
|
654
685
|
this.autoFreeze_ = value;
|
|
655
686
|
}
|
|
687
|
+
/**
|
|
688
|
+
* Pass true to enable strict shallow copy.
|
|
689
|
+
*
|
|
690
|
+
* By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
|
|
691
|
+
*/
|
|
656
692
|
setUseStrictShallowCopy(value) {
|
|
657
693
|
this.useStrictShallowCopy_ = value;
|
|
658
694
|
}
|
|
695
|
+
/**
|
|
696
|
+
* Pass false to use faster iteration that skips non-enumerable properties
|
|
697
|
+
* but still handles symbols for compatibility.
|
|
698
|
+
*
|
|
699
|
+
* By default, strict iteration is enabled (includes all own properties).
|
|
700
|
+
*/
|
|
659
701
|
setUseStrictIteration(value) {
|
|
660
702
|
this.useStrictIteration_ = value;
|
|
661
703
|
}
|
|
@@ -683,7 +725,7 @@ var Immer2 = /* @__PURE__ */ __name(class {
|
|
|
683
725
|
(draft) => applyPatchesImpl(draft, patches)
|
|
684
726
|
);
|
|
685
727
|
}
|
|
686
|
-
}, "Immer2");
|
|
728
|
+
}, __name(_a, "Immer2"), _a);
|
|
687
729
|
function createProxy(value, parent) {
|
|
688
730
|
const draft = isMap(value) ? getPlugin("MapSet").proxyMap_(value, parent) : isSet(value) ? getPlugin("MapSet").proxySet_(value, parent) : createProxyProxy(value, parent);
|
|
689
731
|
const scope = parent ? parent.scope_ : getCurrentScope();
|
|
@@ -1251,10 +1293,11 @@ __export(core_exports2, {
|
|
|
1251
1293
|
});
|
|
1252
1294
|
|
|
1253
1295
|
// ../../../node_modules/zod/v4/core/core.js
|
|
1254
|
-
var
|
|
1296
|
+
var _a2;
|
|
1255
1297
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
1256
1298
|
status: "aborted"
|
|
1257
1299
|
});
|
|
1300
|
+
// @__NO_SIDE_EFFECTS__
|
|
1258
1301
|
function $constructor(name, initializer3, params) {
|
|
1259
1302
|
function init(inst, def) {
|
|
1260
1303
|
if (!inst._zod) {
|
|
@@ -1283,15 +1326,16 @@ function $constructor(name, initializer3, params) {
|
|
|
1283
1326
|
}
|
|
1284
1327
|
__name(init, "init");
|
|
1285
1328
|
const Parent = params?.Parent ?? Object;
|
|
1286
|
-
class
|
|
1287
|
-
}
|
|
1288
|
-
__name(
|
|
1329
|
+
const _Definition = class _Definition extends Parent {
|
|
1330
|
+
};
|
|
1331
|
+
__name(_Definition, "Definition");
|
|
1332
|
+
let Definition = _Definition;
|
|
1289
1333
|
Object.defineProperty(Definition, "name", { value: name });
|
|
1290
1334
|
function _(def) {
|
|
1291
|
-
var
|
|
1335
|
+
var _a5;
|
|
1292
1336
|
const inst = params?.Parent ? new Definition() : this;
|
|
1293
1337
|
init(inst, def);
|
|
1294
|
-
(
|
|
1338
|
+
(_a5 = inst._zod).deferred ?? (_a5.deferred = []);
|
|
1295
1339
|
for (const fn of inst._zod.deferred) {
|
|
1296
1340
|
fn();
|
|
1297
1341
|
}
|
|
@@ -1300,31 +1344,33 @@ function $constructor(name, initializer3, params) {
|
|
|
1300
1344
|
__name(_, "_");
|
|
1301
1345
|
Object.defineProperty(_, "init", { value: init });
|
|
1302
1346
|
Object.defineProperty(_, Symbol.hasInstance, {
|
|
1303
|
-
value: (inst) => {
|
|
1347
|
+
value: /* @__PURE__ */ __name((inst) => {
|
|
1304
1348
|
if (params?.Parent && inst instanceof params.Parent)
|
|
1305
1349
|
return true;
|
|
1306
1350
|
return inst?._zod?.traits?.has(name);
|
|
1307
|
-
}
|
|
1351
|
+
}, "value")
|
|
1308
1352
|
});
|
|
1309
1353
|
Object.defineProperty(_, "name", { value: name });
|
|
1310
1354
|
return _;
|
|
1311
1355
|
}
|
|
1312
1356
|
__name($constructor, "$constructor");
|
|
1313
1357
|
var $brand = Symbol("zod_brand");
|
|
1314
|
-
var $ZodAsyncError = class extends Error {
|
|
1358
|
+
var _$ZodAsyncError = class _$ZodAsyncError extends Error {
|
|
1315
1359
|
constructor() {
|
|
1316
1360
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
1317
1361
|
}
|
|
1318
1362
|
};
|
|
1319
|
-
__name($ZodAsyncError, "$ZodAsyncError");
|
|
1320
|
-
var $
|
|
1363
|
+
__name(_$ZodAsyncError, "$ZodAsyncError");
|
|
1364
|
+
var $ZodAsyncError = _$ZodAsyncError;
|
|
1365
|
+
var _$ZodEncodeError = class _$ZodEncodeError extends Error {
|
|
1321
1366
|
constructor(name) {
|
|
1322
1367
|
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
1323
1368
|
this.name = "ZodEncodeError";
|
|
1324
1369
|
}
|
|
1325
1370
|
};
|
|
1326
|
-
__name($ZodEncodeError, "$ZodEncodeError");
|
|
1327
|
-
|
|
1371
|
+
__name(_$ZodEncodeError, "$ZodEncodeError");
|
|
1372
|
+
var $ZodEncodeError = _$ZodEncodeError;
|
|
1373
|
+
(_a2 = globalThis).__zod_globalConfig ?? (_a2.__zod_globalConfig = {});
|
|
1328
1374
|
var globalConfig = globalThis.__zod_globalConfig;
|
|
1329
1375
|
function config(newConfig) {
|
|
1330
1376
|
if (newConfig)
|
|
@@ -1484,6 +1530,7 @@ function defineLazy(object2, key, getter) {
|
|
|
1484
1530
|
set(v) {
|
|
1485
1531
|
Object.defineProperty(object2, key, {
|
|
1486
1532
|
value: v
|
|
1533
|
+
// configurable: true,
|
|
1487
1534
|
});
|
|
1488
1535
|
},
|
|
1489
1536
|
configurable: true
|
|
@@ -1680,7 +1727,7 @@ function normalizeParams(_params) {
|
|
|
1680
1727
|
if (!params)
|
|
1681
1728
|
return {};
|
|
1682
1729
|
if (typeof params === "string")
|
|
1683
|
-
return { error: () => params };
|
|
1730
|
+
return { error: /* @__PURE__ */ __name(() => params, "error") };
|
|
1684
1731
|
if (params?.message !== void 0) {
|
|
1685
1732
|
if (params?.error !== void 0)
|
|
1686
1733
|
throw new Error("Cannot specify both `message` and `error` params");
|
|
@@ -1688,7 +1735,7 @@ function normalizeParams(_params) {
|
|
|
1688
1735
|
}
|
|
1689
1736
|
delete params.message;
|
|
1690
1737
|
if (typeof params.error === "string")
|
|
1691
|
-
return { ...params, error: () => params.error };
|
|
1738
|
+
return { ...params, error: /* @__PURE__ */ __name(() => params.error, "error") };
|
|
1692
1739
|
return params;
|
|
1693
1740
|
}
|
|
1694
1741
|
__name(normalizeParams, "normalizeParams");
|
|
@@ -1954,8 +2001,8 @@ function explicitlyAborted(x, startIndex = 0) {
|
|
|
1954
2001
|
__name(explicitlyAborted, "explicitlyAborted");
|
|
1955
2002
|
function prefixIssues(path, issues) {
|
|
1956
2003
|
return issues.map((iss) => {
|
|
1957
|
-
var
|
|
1958
|
-
(
|
|
2004
|
+
var _a5;
|
|
2005
|
+
(_a5 = iss).path ?? (_a5.path = []);
|
|
1959
2006
|
iss.path.unshift(path);
|
|
1960
2007
|
return iss;
|
|
1961
2008
|
});
|
|
@@ -2078,11 +2125,12 @@ function uint8ArrayToHex(bytes) {
|
|
|
2078
2125
|
return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
2079
2126
|
}
|
|
2080
2127
|
__name(uint8ArrayToHex, "uint8ArrayToHex");
|
|
2081
|
-
var
|
|
2128
|
+
var _Class = class _Class {
|
|
2082
2129
|
constructor(..._args) {
|
|
2083
2130
|
}
|
|
2084
2131
|
};
|
|
2085
|
-
__name(
|
|
2132
|
+
__name(_Class, "Class");
|
|
2133
|
+
var Class = _Class;
|
|
2086
2134
|
|
|
2087
2135
|
// ../../../node_modules/zod/v4/core/errors.js
|
|
2088
2136
|
var initializer = /* @__PURE__ */ __name((inst, def) => {
|
|
@@ -2097,7 +2145,7 @@ var initializer = /* @__PURE__ */ __name((inst, def) => {
|
|
|
2097
2145
|
});
|
|
2098
2146
|
inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
|
|
2099
2147
|
Object.defineProperty(inst, "toString", {
|
|
2100
|
-
value: () => inst.message,
|
|
2148
|
+
value: /* @__PURE__ */ __name(() => inst.message, "value"),
|
|
2101
2149
|
enumerable: false
|
|
2102
2150
|
});
|
|
2103
2151
|
}, "initializer");
|
|
@@ -2157,7 +2205,7 @@ __name(formatError, "formatError");
|
|
|
2157
2205
|
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
2158
2206
|
const result = { errors: [] };
|
|
2159
2207
|
const processError = /* @__PURE__ */ __name((error52, path = []) => {
|
|
2160
|
-
var
|
|
2208
|
+
var _a5, _b;
|
|
2161
2209
|
for (const issue2 of error52.issues) {
|
|
2162
2210
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
2163
2211
|
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
@@ -2178,7 +2226,7 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
|
2178
2226
|
const terminal = i === fullpath.length - 1;
|
|
2179
2227
|
if (typeof el === "string") {
|
|
2180
2228
|
curr.properties ?? (curr.properties = {});
|
|
2181
|
-
(
|
|
2229
|
+
(_a5 = curr.properties)[el] ?? (_a5[el] = { errors: [] });
|
|
2182
2230
|
curr = curr.properties[el];
|
|
2183
2231
|
} else {
|
|
2184
2232
|
curr.items ?? (curr.items = []);
|
|
@@ -2483,10 +2531,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
|
2483
2531
|
|
|
2484
2532
|
// ../../../node_modules/zod/v4/core/checks.js
|
|
2485
2533
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2486
|
-
var
|
|
2534
|
+
var _a5;
|
|
2487
2535
|
inst._zod ?? (inst._zod = {});
|
|
2488
2536
|
inst._zod.def = def;
|
|
2489
|
-
(
|
|
2537
|
+
(_a5 = inst._zod).onattach ?? (_a5.onattach = []);
|
|
2490
2538
|
});
|
|
2491
2539
|
var numericOriginMap = {
|
|
2492
2540
|
number: "number",
|
|
@@ -2552,8 +2600,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
2552
2600
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
2553
2601
|
$ZodCheck.init(inst, def);
|
|
2554
2602
|
inst._zod.onattach.push((inst2) => {
|
|
2555
|
-
var
|
|
2556
|
-
(
|
|
2603
|
+
var _a5;
|
|
2604
|
+
(_a5 = inst2._zod.bag).multipleOf ?? (_a5.multipleOf = def.value);
|
|
2557
2605
|
});
|
|
2558
2606
|
inst._zod.check = (payload) => {
|
|
2559
2607
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -2686,9 +2734,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
2686
2734
|
};
|
|
2687
2735
|
});
|
|
2688
2736
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
2689
|
-
var
|
|
2737
|
+
var _a5;
|
|
2690
2738
|
$ZodCheck.init(inst, def);
|
|
2691
|
-
(
|
|
2739
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
2692
2740
|
const val = payload.value;
|
|
2693
2741
|
return !nullish(val) && val.size !== void 0;
|
|
2694
2742
|
});
|
|
@@ -2714,9 +2762,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
2714
2762
|
};
|
|
2715
2763
|
});
|
|
2716
2764
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
2717
|
-
var
|
|
2765
|
+
var _a5;
|
|
2718
2766
|
$ZodCheck.init(inst, def);
|
|
2719
|
-
(
|
|
2767
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
2720
2768
|
const val = payload.value;
|
|
2721
2769
|
return !nullish(val) && val.size !== void 0;
|
|
2722
2770
|
});
|
|
@@ -2742,9 +2790,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
2742
2790
|
};
|
|
2743
2791
|
});
|
|
2744
2792
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
2745
|
-
var
|
|
2793
|
+
var _a5;
|
|
2746
2794
|
$ZodCheck.init(inst, def);
|
|
2747
|
-
(
|
|
2795
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
2748
2796
|
const val = payload.value;
|
|
2749
2797
|
return !nullish(val) && val.size !== void 0;
|
|
2750
2798
|
});
|
|
@@ -2772,9 +2820,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
2772
2820
|
};
|
|
2773
2821
|
});
|
|
2774
2822
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
2775
|
-
var
|
|
2823
|
+
var _a5;
|
|
2776
2824
|
$ZodCheck.init(inst, def);
|
|
2777
|
-
(
|
|
2825
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
2778
2826
|
const val = payload.value;
|
|
2779
2827
|
return !nullish(val) && val.length !== void 0;
|
|
2780
2828
|
});
|
|
@@ -2801,9 +2849,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
2801
2849
|
};
|
|
2802
2850
|
});
|
|
2803
2851
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2804
|
-
var
|
|
2852
|
+
var _a5;
|
|
2805
2853
|
$ZodCheck.init(inst, def);
|
|
2806
|
-
(
|
|
2854
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
2807
2855
|
const val = payload.value;
|
|
2808
2856
|
return !nullish(val) && val.length !== void 0;
|
|
2809
2857
|
});
|
|
@@ -2830,9 +2878,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2830
2878
|
};
|
|
2831
2879
|
});
|
|
2832
2880
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2833
|
-
var
|
|
2881
|
+
var _a5;
|
|
2834
2882
|
$ZodCheck.init(inst, def);
|
|
2835
|
-
(
|
|
2883
|
+
(_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
|
|
2836
2884
|
const val = payload.value;
|
|
2837
2885
|
return !nullish(val) && val.length !== void 0;
|
|
2838
2886
|
});
|
|
@@ -2861,7 +2909,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2861
2909
|
};
|
|
2862
2910
|
});
|
|
2863
2911
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2864
|
-
var
|
|
2912
|
+
var _a5, _b;
|
|
2865
2913
|
$ZodCheck.init(inst, def);
|
|
2866
2914
|
inst._zod.onattach.push((inst2) => {
|
|
2867
2915
|
const bag = inst2._zod.bag;
|
|
@@ -2872,7 +2920,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2872
2920
|
}
|
|
2873
2921
|
});
|
|
2874
2922
|
if (def.pattern)
|
|
2875
|
-
(
|
|
2923
|
+
(_a5 = inst._zod).check ?? (_a5.check = (payload) => {
|
|
2876
2924
|
def.pattern.lastIndex = 0;
|
|
2877
2925
|
if (def.pattern.test(payload.value))
|
|
2878
2926
|
return;
|
|
@@ -3031,7 +3079,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
3031
3079
|
});
|
|
3032
3080
|
|
|
3033
3081
|
// ../../../node_modules/zod/v4/core/doc.js
|
|
3034
|
-
var
|
|
3082
|
+
var _Doc = class _Doc {
|
|
3035
3083
|
constructor(args = []) {
|
|
3036
3084
|
this.content = [];
|
|
3037
3085
|
this.indent = 0;
|
|
@@ -3065,7 +3113,8 @@ var Doc = class {
|
|
|
3065
3113
|
return new F(...args, lines.join("\n"));
|
|
3066
3114
|
}
|
|
3067
3115
|
};
|
|
3068
|
-
__name(
|
|
3116
|
+
__name(_Doc, "Doc");
|
|
3117
|
+
var Doc = _Doc;
|
|
3069
3118
|
|
|
3070
3119
|
// ../../../node_modules/zod/v4/core/versions.js
|
|
3071
3120
|
var version = {
|
|
@@ -3076,7 +3125,7 @@ var version = {
|
|
|
3076
3125
|
|
|
3077
3126
|
// ../../../node_modules/zod/v4/core/schemas.js
|
|
3078
3127
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
3079
|
-
var
|
|
3128
|
+
var _a5;
|
|
3080
3129
|
inst ?? (inst = {});
|
|
3081
3130
|
inst._zod.def = def;
|
|
3082
3131
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -3091,7 +3140,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
3091
3140
|
}
|
|
3092
3141
|
}
|
|
3093
3142
|
if (checks.length === 0) {
|
|
3094
|
-
(
|
|
3143
|
+
(_a5 = inst._zod).deferred ?? (_a5.deferred = []);
|
|
3095
3144
|
inst._zod.deferred?.push(() => {
|
|
3096
3145
|
inst._zod.run = inst._zod.parse;
|
|
3097
3146
|
});
|
|
@@ -3174,14 +3223,14 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
3174
3223
|
};
|
|
3175
3224
|
}
|
|
3176
3225
|
defineLazy(inst, "~standard", () => ({
|
|
3177
|
-
validate: (value) => {
|
|
3226
|
+
validate: /* @__PURE__ */ __name((value) => {
|
|
3178
3227
|
try {
|
|
3179
3228
|
const r = safeParse(inst, value);
|
|
3180
3229
|
return r.success ? { value: r.data } : { issues: r.error?.issues };
|
|
3181
3230
|
} catch (_) {
|
|
3182
3231
|
return safeParseAsync(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
|
|
3183
3232
|
}
|
|
3184
|
-
},
|
|
3233
|
+
}, "validate"),
|
|
3185
3234
|
vendor: "zod",
|
|
3186
3235
|
version: 1
|
|
3187
3236
|
}));
|
|
@@ -3824,13 +3873,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3824
3873
|
if (!desc?.get) {
|
|
3825
3874
|
const sh = def.shape;
|
|
3826
3875
|
Object.defineProperty(def, "shape", {
|
|
3827
|
-
get: () => {
|
|
3876
|
+
get: /* @__PURE__ */ __name(() => {
|
|
3828
3877
|
const newSh = { ...sh };
|
|
3829
3878
|
Object.defineProperty(def, "shape", {
|
|
3830
3879
|
value: newSh
|
|
3831
3880
|
});
|
|
3832
3881
|
return newSh;
|
|
3833
|
-
}
|
|
3882
|
+
}, "get")
|
|
3834
3883
|
});
|
|
3835
3884
|
}
|
|
3836
3885
|
const _normalized = cached(() => normalizeDef(def));
|
|
@@ -5178,8 +5227,11 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
5178
5227
|
code: "custom",
|
|
5179
5228
|
input,
|
|
5180
5229
|
inst,
|
|
5230
|
+
// incorporates params.error into issue reporting
|
|
5181
5231
|
path: [...inst._zod.def.path ?? []],
|
|
5232
|
+
// incorporates params.error into issue reporting
|
|
5182
5233
|
continue: !inst._zod.def.abort
|
|
5234
|
+
// params: inst._zod.def.params,
|
|
5183
5235
|
};
|
|
5184
5236
|
if (inst._zod.def.params)
|
|
5185
5237
|
_iss.params = inst._zod.def.params;
|
|
@@ -5841,6 +5893,7 @@ var error5 = /* @__PURE__ */ __name(() => {
|
|
|
5841
5893
|
return `Clau inv\xE0lida a ${issue2.origin}`;
|
|
5842
5894
|
case "invalid_union":
|
|
5843
5895
|
return "Entrada inv\xE0lida";
|
|
5896
|
+
// Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general
|
|
5844
5897
|
case "invalid_element":
|
|
5845
5898
|
return `Element inv\xE0lid a ${issue2.origin}`;
|
|
5846
5899
|
default:
|
|
@@ -6355,7 +6408,9 @@ var error10 = /* @__PURE__ */ __name(() => {
|
|
|
6355
6408
|
template_literal: "input"
|
|
6356
6409
|
};
|
|
6357
6410
|
const TypeDictionary = {
|
|
6411
|
+
// Compatibility: "nan" -> "NaN" for display
|
|
6358
6412
|
nan: "NaN"
|
|
6413
|
+
// All other type names omitted - they fall back to raw values via ?? operator
|
|
6359
6414
|
};
|
|
6360
6415
|
return (issue2) => {
|
|
6361
6416
|
switch (issue2.code) {
|
|
@@ -7168,6 +7223,7 @@ var error17 = /* @__PURE__ */ __name(() => {
|
|
|
7168
7223
|
array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
7169
7224
|
set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
7170
7225
|
number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
|
|
7226
|
+
// no unit
|
|
7171
7227
|
};
|
|
7172
7228
|
const typeEntry = /* @__PURE__ */ __name((t) => t ? TypeNames[t] : void 0, "typeEntry");
|
|
7173
7229
|
const typeLabel = /* @__PURE__ */ __name((t) => {
|
|
@@ -11246,10 +11302,10 @@ function yo_default() {
|
|
|
11246
11302
|
__name(yo_default, "default");
|
|
11247
11303
|
|
|
11248
11304
|
// ../../../node_modules/zod/v4/core/registries.js
|
|
11249
|
-
var
|
|
11305
|
+
var _a3;
|
|
11250
11306
|
var $output = Symbol("ZodOutput");
|
|
11251
11307
|
var $input = Symbol("ZodInput");
|
|
11252
|
-
var $ZodRegistry = class {
|
|
11308
|
+
var _$ZodRegistry = class _$ZodRegistry {
|
|
11253
11309
|
constructor() {
|
|
11254
11310
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
11255
11311
|
this._idmap = /* @__PURE__ */ new Map();
|
|
@@ -11289,15 +11345,17 @@ var $ZodRegistry = class {
|
|
|
11289
11345
|
return this._map.has(schema);
|
|
11290
11346
|
}
|
|
11291
11347
|
};
|
|
11292
|
-
__name($ZodRegistry, "$ZodRegistry");
|
|
11348
|
+
__name(_$ZodRegistry, "$ZodRegistry");
|
|
11349
|
+
var $ZodRegistry = _$ZodRegistry;
|
|
11293
11350
|
function registry() {
|
|
11294
11351
|
return new $ZodRegistry();
|
|
11295
11352
|
}
|
|
11296
11353
|
__name(registry, "registry");
|
|
11297
|
-
(
|
|
11354
|
+
(_a3 = globalThis).__zod_globalRegistry ?? (_a3.__zod_globalRegistry = registry());
|
|
11298
11355
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
11299
11356
|
|
|
11300
11357
|
// ../../../node_modules/zod/v4/core/api.js
|
|
11358
|
+
// @__NO_SIDE_EFFECTS__
|
|
11301
11359
|
function _string(Class2, params) {
|
|
11302
11360
|
return new Class2({
|
|
11303
11361
|
type: "string",
|
|
@@ -11305,6 +11363,7 @@ function _string(Class2, params) {
|
|
|
11305
11363
|
});
|
|
11306
11364
|
}
|
|
11307
11365
|
__name(_string, "_string");
|
|
11366
|
+
// @__NO_SIDE_EFFECTS__
|
|
11308
11367
|
function _coercedString(Class2, params) {
|
|
11309
11368
|
return new Class2({
|
|
11310
11369
|
type: "string",
|
|
@@ -11313,6 +11372,7 @@ function _coercedString(Class2, params) {
|
|
|
11313
11372
|
});
|
|
11314
11373
|
}
|
|
11315
11374
|
__name(_coercedString, "_coercedString");
|
|
11375
|
+
// @__NO_SIDE_EFFECTS__
|
|
11316
11376
|
function _email(Class2, params) {
|
|
11317
11377
|
return new Class2({
|
|
11318
11378
|
type: "string",
|
|
@@ -11323,6 +11383,7 @@ function _email(Class2, params) {
|
|
|
11323
11383
|
});
|
|
11324
11384
|
}
|
|
11325
11385
|
__name(_email, "_email");
|
|
11386
|
+
// @__NO_SIDE_EFFECTS__
|
|
11326
11387
|
function _guid(Class2, params) {
|
|
11327
11388
|
return new Class2({
|
|
11328
11389
|
type: "string",
|
|
@@ -11333,6 +11394,7 @@ function _guid(Class2, params) {
|
|
|
11333
11394
|
});
|
|
11334
11395
|
}
|
|
11335
11396
|
__name(_guid, "_guid");
|
|
11397
|
+
// @__NO_SIDE_EFFECTS__
|
|
11336
11398
|
function _uuid(Class2, params) {
|
|
11337
11399
|
return new Class2({
|
|
11338
11400
|
type: "string",
|
|
@@ -11343,6 +11405,7 @@ function _uuid(Class2, params) {
|
|
|
11343
11405
|
});
|
|
11344
11406
|
}
|
|
11345
11407
|
__name(_uuid, "_uuid");
|
|
11408
|
+
// @__NO_SIDE_EFFECTS__
|
|
11346
11409
|
function _uuidv4(Class2, params) {
|
|
11347
11410
|
return new Class2({
|
|
11348
11411
|
type: "string",
|
|
@@ -11354,6 +11417,7 @@ function _uuidv4(Class2, params) {
|
|
|
11354
11417
|
});
|
|
11355
11418
|
}
|
|
11356
11419
|
__name(_uuidv4, "_uuidv4");
|
|
11420
|
+
// @__NO_SIDE_EFFECTS__
|
|
11357
11421
|
function _uuidv6(Class2, params) {
|
|
11358
11422
|
return new Class2({
|
|
11359
11423
|
type: "string",
|
|
@@ -11365,6 +11429,7 @@ function _uuidv6(Class2, params) {
|
|
|
11365
11429
|
});
|
|
11366
11430
|
}
|
|
11367
11431
|
__name(_uuidv6, "_uuidv6");
|
|
11432
|
+
// @__NO_SIDE_EFFECTS__
|
|
11368
11433
|
function _uuidv7(Class2, params) {
|
|
11369
11434
|
return new Class2({
|
|
11370
11435
|
type: "string",
|
|
@@ -11376,6 +11441,7 @@ function _uuidv7(Class2, params) {
|
|
|
11376
11441
|
});
|
|
11377
11442
|
}
|
|
11378
11443
|
__name(_uuidv7, "_uuidv7");
|
|
11444
|
+
// @__NO_SIDE_EFFECTS__
|
|
11379
11445
|
function _url(Class2, params) {
|
|
11380
11446
|
return new Class2({
|
|
11381
11447
|
type: "string",
|
|
@@ -11386,6 +11452,7 @@ function _url(Class2, params) {
|
|
|
11386
11452
|
});
|
|
11387
11453
|
}
|
|
11388
11454
|
__name(_url, "_url");
|
|
11455
|
+
// @__NO_SIDE_EFFECTS__
|
|
11389
11456
|
function _emoji2(Class2, params) {
|
|
11390
11457
|
return new Class2({
|
|
11391
11458
|
type: "string",
|
|
@@ -11396,6 +11463,7 @@ function _emoji2(Class2, params) {
|
|
|
11396
11463
|
});
|
|
11397
11464
|
}
|
|
11398
11465
|
__name(_emoji2, "_emoji");
|
|
11466
|
+
// @__NO_SIDE_EFFECTS__
|
|
11399
11467
|
function _nanoid(Class2, params) {
|
|
11400
11468
|
return new Class2({
|
|
11401
11469
|
type: "string",
|
|
@@ -11406,6 +11474,7 @@ function _nanoid(Class2, params) {
|
|
|
11406
11474
|
});
|
|
11407
11475
|
}
|
|
11408
11476
|
__name(_nanoid, "_nanoid");
|
|
11477
|
+
// @__NO_SIDE_EFFECTS__
|
|
11409
11478
|
function _cuid(Class2, params) {
|
|
11410
11479
|
return new Class2({
|
|
11411
11480
|
type: "string",
|
|
@@ -11416,6 +11485,7 @@ function _cuid(Class2, params) {
|
|
|
11416
11485
|
});
|
|
11417
11486
|
}
|
|
11418
11487
|
__name(_cuid, "_cuid");
|
|
11488
|
+
// @__NO_SIDE_EFFECTS__
|
|
11419
11489
|
function _cuid2(Class2, params) {
|
|
11420
11490
|
return new Class2({
|
|
11421
11491
|
type: "string",
|
|
@@ -11426,6 +11496,7 @@ function _cuid2(Class2, params) {
|
|
|
11426
11496
|
});
|
|
11427
11497
|
}
|
|
11428
11498
|
__name(_cuid2, "_cuid2");
|
|
11499
|
+
// @__NO_SIDE_EFFECTS__
|
|
11429
11500
|
function _ulid(Class2, params) {
|
|
11430
11501
|
return new Class2({
|
|
11431
11502
|
type: "string",
|
|
@@ -11436,6 +11507,7 @@ function _ulid(Class2, params) {
|
|
|
11436
11507
|
});
|
|
11437
11508
|
}
|
|
11438
11509
|
__name(_ulid, "_ulid");
|
|
11510
|
+
// @__NO_SIDE_EFFECTS__
|
|
11439
11511
|
function _xid(Class2, params) {
|
|
11440
11512
|
return new Class2({
|
|
11441
11513
|
type: "string",
|
|
@@ -11446,6 +11518,7 @@ function _xid(Class2, params) {
|
|
|
11446
11518
|
});
|
|
11447
11519
|
}
|
|
11448
11520
|
__name(_xid, "_xid");
|
|
11521
|
+
// @__NO_SIDE_EFFECTS__
|
|
11449
11522
|
function _ksuid(Class2, params) {
|
|
11450
11523
|
return new Class2({
|
|
11451
11524
|
type: "string",
|
|
@@ -11456,6 +11529,7 @@ function _ksuid(Class2, params) {
|
|
|
11456
11529
|
});
|
|
11457
11530
|
}
|
|
11458
11531
|
__name(_ksuid, "_ksuid");
|
|
11532
|
+
// @__NO_SIDE_EFFECTS__
|
|
11459
11533
|
function _ipv4(Class2, params) {
|
|
11460
11534
|
return new Class2({
|
|
11461
11535
|
type: "string",
|
|
@@ -11466,6 +11540,7 @@ function _ipv4(Class2, params) {
|
|
|
11466
11540
|
});
|
|
11467
11541
|
}
|
|
11468
11542
|
__name(_ipv4, "_ipv4");
|
|
11543
|
+
// @__NO_SIDE_EFFECTS__
|
|
11469
11544
|
function _ipv6(Class2, params) {
|
|
11470
11545
|
return new Class2({
|
|
11471
11546
|
type: "string",
|
|
@@ -11476,6 +11551,7 @@ function _ipv6(Class2, params) {
|
|
|
11476
11551
|
});
|
|
11477
11552
|
}
|
|
11478
11553
|
__name(_ipv6, "_ipv6");
|
|
11554
|
+
// @__NO_SIDE_EFFECTS__
|
|
11479
11555
|
function _mac(Class2, params) {
|
|
11480
11556
|
return new Class2({
|
|
11481
11557
|
type: "string",
|
|
@@ -11486,6 +11562,7 @@ function _mac(Class2, params) {
|
|
|
11486
11562
|
});
|
|
11487
11563
|
}
|
|
11488
11564
|
__name(_mac, "_mac");
|
|
11565
|
+
// @__NO_SIDE_EFFECTS__
|
|
11489
11566
|
function _cidrv4(Class2, params) {
|
|
11490
11567
|
return new Class2({
|
|
11491
11568
|
type: "string",
|
|
@@ -11496,6 +11573,7 @@ function _cidrv4(Class2, params) {
|
|
|
11496
11573
|
});
|
|
11497
11574
|
}
|
|
11498
11575
|
__name(_cidrv4, "_cidrv4");
|
|
11576
|
+
// @__NO_SIDE_EFFECTS__
|
|
11499
11577
|
function _cidrv6(Class2, params) {
|
|
11500
11578
|
return new Class2({
|
|
11501
11579
|
type: "string",
|
|
@@ -11506,6 +11584,7 @@ function _cidrv6(Class2, params) {
|
|
|
11506
11584
|
});
|
|
11507
11585
|
}
|
|
11508
11586
|
__name(_cidrv6, "_cidrv6");
|
|
11587
|
+
// @__NO_SIDE_EFFECTS__
|
|
11509
11588
|
function _base64(Class2, params) {
|
|
11510
11589
|
return new Class2({
|
|
11511
11590
|
type: "string",
|
|
@@ -11516,6 +11595,7 @@ function _base64(Class2, params) {
|
|
|
11516
11595
|
});
|
|
11517
11596
|
}
|
|
11518
11597
|
__name(_base64, "_base64");
|
|
11598
|
+
// @__NO_SIDE_EFFECTS__
|
|
11519
11599
|
function _base64url(Class2, params) {
|
|
11520
11600
|
return new Class2({
|
|
11521
11601
|
type: "string",
|
|
@@ -11526,6 +11606,7 @@ function _base64url(Class2, params) {
|
|
|
11526
11606
|
});
|
|
11527
11607
|
}
|
|
11528
11608
|
__name(_base64url, "_base64url");
|
|
11609
|
+
// @__NO_SIDE_EFFECTS__
|
|
11529
11610
|
function _e164(Class2, params) {
|
|
11530
11611
|
return new Class2({
|
|
11531
11612
|
type: "string",
|
|
@@ -11536,6 +11617,7 @@ function _e164(Class2, params) {
|
|
|
11536
11617
|
});
|
|
11537
11618
|
}
|
|
11538
11619
|
__name(_e164, "_e164");
|
|
11620
|
+
// @__NO_SIDE_EFFECTS__
|
|
11539
11621
|
function _jwt(Class2, params) {
|
|
11540
11622
|
return new Class2({
|
|
11541
11623
|
type: "string",
|
|
@@ -11553,6 +11635,7 @@ var TimePrecision = {
|
|
|
11553
11635
|
Millisecond: 3,
|
|
11554
11636
|
Microsecond: 6
|
|
11555
11637
|
};
|
|
11638
|
+
// @__NO_SIDE_EFFECTS__
|
|
11556
11639
|
function _isoDateTime(Class2, params) {
|
|
11557
11640
|
return new Class2({
|
|
11558
11641
|
type: "string",
|
|
@@ -11565,6 +11648,7 @@ function _isoDateTime(Class2, params) {
|
|
|
11565
11648
|
});
|
|
11566
11649
|
}
|
|
11567
11650
|
__name(_isoDateTime, "_isoDateTime");
|
|
11651
|
+
// @__NO_SIDE_EFFECTS__
|
|
11568
11652
|
function _isoDate(Class2, params) {
|
|
11569
11653
|
return new Class2({
|
|
11570
11654
|
type: "string",
|
|
@@ -11574,6 +11658,7 @@ function _isoDate(Class2, params) {
|
|
|
11574
11658
|
});
|
|
11575
11659
|
}
|
|
11576
11660
|
__name(_isoDate, "_isoDate");
|
|
11661
|
+
// @__NO_SIDE_EFFECTS__
|
|
11577
11662
|
function _isoTime(Class2, params) {
|
|
11578
11663
|
return new Class2({
|
|
11579
11664
|
type: "string",
|
|
@@ -11584,6 +11669,7 @@ function _isoTime(Class2, params) {
|
|
|
11584
11669
|
});
|
|
11585
11670
|
}
|
|
11586
11671
|
__name(_isoTime, "_isoTime");
|
|
11672
|
+
// @__NO_SIDE_EFFECTS__
|
|
11587
11673
|
function _isoDuration(Class2, params) {
|
|
11588
11674
|
return new Class2({
|
|
11589
11675
|
type: "string",
|
|
@@ -11593,6 +11679,7 @@ function _isoDuration(Class2, params) {
|
|
|
11593
11679
|
});
|
|
11594
11680
|
}
|
|
11595
11681
|
__name(_isoDuration, "_isoDuration");
|
|
11682
|
+
// @__NO_SIDE_EFFECTS__
|
|
11596
11683
|
function _number(Class2, params) {
|
|
11597
11684
|
return new Class2({
|
|
11598
11685
|
type: "number",
|
|
@@ -11601,6 +11688,7 @@ function _number(Class2, params) {
|
|
|
11601
11688
|
});
|
|
11602
11689
|
}
|
|
11603
11690
|
__name(_number, "_number");
|
|
11691
|
+
// @__NO_SIDE_EFFECTS__
|
|
11604
11692
|
function _coercedNumber(Class2, params) {
|
|
11605
11693
|
return new Class2({
|
|
11606
11694
|
type: "number",
|
|
@@ -11610,6 +11698,7 @@ function _coercedNumber(Class2, params) {
|
|
|
11610
11698
|
});
|
|
11611
11699
|
}
|
|
11612
11700
|
__name(_coercedNumber, "_coercedNumber");
|
|
11701
|
+
// @__NO_SIDE_EFFECTS__
|
|
11613
11702
|
function _int(Class2, params) {
|
|
11614
11703
|
return new Class2({
|
|
11615
11704
|
type: "number",
|
|
@@ -11620,6 +11709,7 @@ function _int(Class2, params) {
|
|
|
11620
11709
|
});
|
|
11621
11710
|
}
|
|
11622
11711
|
__name(_int, "_int");
|
|
11712
|
+
// @__NO_SIDE_EFFECTS__
|
|
11623
11713
|
function _float32(Class2, params) {
|
|
11624
11714
|
return new Class2({
|
|
11625
11715
|
type: "number",
|
|
@@ -11630,6 +11720,7 @@ function _float32(Class2, params) {
|
|
|
11630
11720
|
});
|
|
11631
11721
|
}
|
|
11632
11722
|
__name(_float32, "_float32");
|
|
11723
|
+
// @__NO_SIDE_EFFECTS__
|
|
11633
11724
|
function _float64(Class2, params) {
|
|
11634
11725
|
return new Class2({
|
|
11635
11726
|
type: "number",
|
|
@@ -11640,6 +11731,7 @@ function _float64(Class2, params) {
|
|
|
11640
11731
|
});
|
|
11641
11732
|
}
|
|
11642
11733
|
__name(_float64, "_float64");
|
|
11734
|
+
// @__NO_SIDE_EFFECTS__
|
|
11643
11735
|
function _int32(Class2, params) {
|
|
11644
11736
|
return new Class2({
|
|
11645
11737
|
type: "number",
|
|
@@ -11650,6 +11742,7 @@ function _int32(Class2, params) {
|
|
|
11650
11742
|
});
|
|
11651
11743
|
}
|
|
11652
11744
|
__name(_int32, "_int32");
|
|
11745
|
+
// @__NO_SIDE_EFFECTS__
|
|
11653
11746
|
function _uint32(Class2, params) {
|
|
11654
11747
|
return new Class2({
|
|
11655
11748
|
type: "number",
|
|
@@ -11660,6 +11753,7 @@ function _uint32(Class2, params) {
|
|
|
11660
11753
|
});
|
|
11661
11754
|
}
|
|
11662
11755
|
__name(_uint32, "_uint32");
|
|
11756
|
+
// @__NO_SIDE_EFFECTS__
|
|
11663
11757
|
function _boolean(Class2, params) {
|
|
11664
11758
|
return new Class2({
|
|
11665
11759
|
type: "boolean",
|
|
@@ -11667,6 +11761,7 @@ function _boolean(Class2, params) {
|
|
|
11667
11761
|
});
|
|
11668
11762
|
}
|
|
11669
11763
|
__name(_boolean, "_boolean");
|
|
11764
|
+
// @__NO_SIDE_EFFECTS__
|
|
11670
11765
|
function _coercedBoolean(Class2, params) {
|
|
11671
11766
|
return new Class2({
|
|
11672
11767
|
type: "boolean",
|
|
@@ -11675,6 +11770,7 @@ function _coercedBoolean(Class2, params) {
|
|
|
11675
11770
|
});
|
|
11676
11771
|
}
|
|
11677
11772
|
__name(_coercedBoolean, "_coercedBoolean");
|
|
11773
|
+
// @__NO_SIDE_EFFECTS__
|
|
11678
11774
|
function _bigint(Class2, params) {
|
|
11679
11775
|
return new Class2({
|
|
11680
11776
|
type: "bigint",
|
|
@@ -11682,6 +11778,7 @@ function _bigint(Class2, params) {
|
|
|
11682
11778
|
});
|
|
11683
11779
|
}
|
|
11684
11780
|
__name(_bigint, "_bigint");
|
|
11781
|
+
// @__NO_SIDE_EFFECTS__
|
|
11685
11782
|
function _coercedBigint(Class2, params) {
|
|
11686
11783
|
return new Class2({
|
|
11687
11784
|
type: "bigint",
|
|
@@ -11690,6 +11787,7 @@ function _coercedBigint(Class2, params) {
|
|
|
11690
11787
|
});
|
|
11691
11788
|
}
|
|
11692
11789
|
__name(_coercedBigint, "_coercedBigint");
|
|
11790
|
+
// @__NO_SIDE_EFFECTS__
|
|
11693
11791
|
function _int64(Class2, params) {
|
|
11694
11792
|
return new Class2({
|
|
11695
11793
|
type: "bigint",
|
|
@@ -11700,6 +11798,7 @@ function _int64(Class2, params) {
|
|
|
11700
11798
|
});
|
|
11701
11799
|
}
|
|
11702
11800
|
__name(_int64, "_int64");
|
|
11801
|
+
// @__NO_SIDE_EFFECTS__
|
|
11703
11802
|
function _uint64(Class2, params) {
|
|
11704
11803
|
return new Class2({
|
|
11705
11804
|
type: "bigint",
|
|
@@ -11710,6 +11809,7 @@ function _uint64(Class2, params) {
|
|
|
11710
11809
|
});
|
|
11711
11810
|
}
|
|
11712
11811
|
__name(_uint64, "_uint64");
|
|
11812
|
+
// @__NO_SIDE_EFFECTS__
|
|
11713
11813
|
function _symbol(Class2, params) {
|
|
11714
11814
|
return new Class2({
|
|
11715
11815
|
type: "symbol",
|
|
@@ -11717,6 +11817,7 @@ function _symbol(Class2, params) {
|
|
|
11717
11817
|
});
|
|
11718
11818
|
}
|
|
11719
11819
|
__name(_symbol, "_symbol");
|
|
11820
|
+
// @__NO_SIDE_EFFECTS__
|
|
11720
11821
|
function _undefined2(Class2, params) {
|
|
11721
11822
|
return new Class2({
|
|
11722
11823
|
type: "undefined",
|
|
@@ -11724,6 +11825,7 @@ function _undefined2(Class2, params) {
|
|
|
11724
11825
|
});
|
|
11725
11826
|
}
|
|
11726
11827
|
__name(_undefined2, "_undefined");
|
|
11828
|
+
// @__NO_SIDE_EFFECTS__
|
|
11727
11829
|
function _null2(Class2, params) {
|
|
11728
11830
|
return new Class2({
|
|
11729
11831
|
type: "null",
|
|
@@ -11731,18 +11833,21 @@ function _null2(Class2, params) {
|
|
|
11731
11833
|
});
|
|
11732
11834
|
}
|
|
11733
11835
|
__name(_null2, "_null");
|
|
11836
|
+
// @__NO_SIDE_EFFECTS__
|
|
11734
11837
|
function _any(Class2) {
|
|
11735
11838
|
return new Class2({
|
|
11736
11839
|
type: "any"
|
|
11737
11840
|
});
|
|
11738
11841
|
}
|
|
11739
11842
|
__name(_any, "_any");
|
|
11843
|
+
// @__NO_SIDE_EFFECTS__
|
|
11740
11844
|
function _unknown(Class2) {
|
|
11741
11845
|
return new Class2({
|
|
11742
11846
|
type: "unknown"
|
|
11743
11847
|
});
|
|
11744
11848
|
}
|
|
11745
11849
|
__name(_unknown, "_unknown");
|
|
11850
|
+
// @__NO_SIDE_EFFECTS__
|
|
11746
11851
|
function _never(Class2, params) {
|
|
11747
11852
|
return new Class2({
|
|
11748
11853
|
type: "never",
|
|
@@ -11750,6 +11855,7 @@ function _never(Class2, params) {
|
|
|
11750
11855
|
});
|
|
11751
11856
|
}
|
|
11752
11857
|
__name(_never, "_never");
|
|
11858
|
+
// @__NO_SIDE_EFFECTS__
|
|
11753
11859
|
function _void(Class2, params) {
|
|
11754
11860
|
return new Class2({
|
|
11755
11861
|
type: "void",
|
|
@@ -11757,6 +11863,7 @@ function _void(Class2, params) {
|
|
|
11757
11863
|
});
|
|
11758
11864
|
}
|
|
11759
11865
|
__name(_void, "_void");
|
|
11866
|
+
// @__NO_SIDE_EFFECTS__
|
|
11760
11867
|
function _date(Class2, params) {
|
|
11761
11868
|
return new Class2({
|
|
11762
11869
|
type: "date",
|
|
@@ -11764,6 +11871,7 @@ function _date(Class2, params) {
|
|
|
11764
11871
|
});
|
|
11765
11872
|
}
|
|
11766
11873
|
__name(_date, "_date");
|
|
11874
|
+
// @__NO_SIDE_EFFECTS__
|
|
11767
11875
|
function _coercedDate(Class2, params) {
|
|
11768
11876
|
return new Class2({
|
|
11769
11877
|
type: "date",
|
|
@@ -11772,6 +11880,7 @@ function _coercedDate(Class2, params) {
|
|
|
11772
11880
|
});
|
|
11773
11881
|
}
|
|
11774
11882
|
__name(_coercedDate, "_coercedDate");
|
|
11883
|
+
// @__NO_SIDE_EFFECTS__
|
|
11775
11884
|
function _nan(Class2, params) {
|
|
11776
11885
|
return new Class2({
|
|
11777
11886
|
type: "nan",
|
|
@@ -11779,6 +11888,7 @@ function _nan(Class2, params) {
|
|
|
11779
11888
|
});
|
|
11780
11889
|
}
|
|
11781
11890
|
__name(_nan, "_nan");
|
|
11891
|
+
// @__NO_SIDE_EFFECTS__
|
|
11782
11892
|
function _lt(value, params) {
|
|
11783
11893
|
return new $ZodCheckLessThan({
|
|
11784
11894
|
check: "less_than",
|
|
@@ -11788,6 +11898,7 @@ function _lt(value, params) {
|
|
|
11788
11898
|
});
|
|
11789
11899
|
}
|
|
11790
11900
|
__name(_lt, "_lt");
|
|
11901
|
+
// @__NO_SIDE_EFFECTS__
|
|
11791
11902
|
function _lte(value, params) {
|
|
11792
11903
|
return new $ZodCheckLessThan({
|
|
11793
11904
|
check: "less_than",
|
|
@@ -11797,6 +11908,7 @@ function _lte(value, params) {
|
|
|
11797
11908
|
});
|
|
11798
11909
|
}
|
|
11799
11910
|
__name(_lte, "_lte");
|
|
11911
|
+
// @__NO_SIDE_EFFECTS__
|
|
11800
11912
|
function _gt(value, params) {
|
|
11801
11913
|
return new $ZodCheckGreaterThan({
|
|
11802
11914
|
check: "greater_than",
|
|
@@ -11806,6 +11918,7 @@ function _gt(value, params) {
|
|
|
11806
11918
|
});
|
|
11807
11919
|
}
|
|
11808
11920
|
__name(_gt, "_gt");
|
|
11921
|
+
// @__NO_SIDE_EFFECTS__
|
|
11809
11922
|
function _gte(value, params) {
|
|
11810
11923
|
return new $ZodCheckGreaterThan({
|
|
11811
11924
|
check: "greater_than",
|
|
@@ -11815,22 +11928,27 @@ function _gte(value, params) {
|
|
|
11815
11928
|
});
|
|
11816
11929
|
}
|
|
11817
11930
|
__name(_gte, "_gte");
|
|
11931
|
+
// @__NO_SIDE_EFFECTS__
|
|
11818
11932
|
function _positive(params) {
|
|
11819
|
-
return _gt(0, params);
|
|
11933
|
+
return /* @__PURE__ */ _gt(0, params);
|
|
11820
11934
|
}
|
|
11821
11935
|
__name(_positive, "_positive");
|
|
11936
|
+
// @__NO_SIDE_EFFECTS__
|
|
11822
11937
|
function _negative(params) {
|
|
11823
|
-
return _lt(0, params);
|
|
11938
|
+
return /* @__PURE__ */ _lt(0, params);
|
|
11824
11939
|
}
|
|
11825
11940
|
__name(_negative, "_negative");
|
|
11941
|
+
// @__NO_SIDE_EFFECTS__
|
|
11826
11942
|
function _nonpositive(params) {
|
|
11827
|
-
return _lte(0, params);
|
|
11943
|
+
return /* @__PURE__ */ _lte(0, params);
|
|
11828
11944
|
}
|
|
11829
11945
|
__name(_nonpositive, "_nonpositive");
|
|
11946
|
+
// @__NO_SIDE_EFFECTS__
|
|
11830
11947
|
function _nonnegative(params) {
|
|
11831
|
-
return _gte(0, params);
|
|
11948
|
+
return /* @__PURE__ */ _gte(0, params);
|
|
11832
11949
|
}
|
|
11833
11950
|
__name(_nonnegative, "_nonnegative");
|
|
11951
|
+
// @__NO_SIDE_EFFECTS__
|
|
11834
11952
|
function _multipleOf(value, params) {
|
|
11835
11953
|
return new $ZodCheckMultipleOf({
|
|
11836
11954
|
check: "multiple_of",
|
|
@@ -11839,6 +11957,7 @@ function _multipleOf(value, params) {
|
|
|
11839
11957
|
});
|
|
11840
11958
|
}
|
|
11841
11959
|
__name(_multipleOf, "_multipleOf");
|
|
11960
|
+
// @__NO_SIDE_EFFECTS__
|
|
11842
11961
|
function _maxSize(maximum, params) {
|
|
11843
11962
|
return new $ZodCheckMaxSize({
|
|
11844
11963
|
check: "max_size",
|
|
@@ -11847,6 +11966,7 @@ function _maxSize(maximum, params) {
|
|
|
11847
11966
|
});
|
|
11848
11967
|
}
|
|
11849
11968
|
__name(_maxSize, "_maxSize");
|
|
11969
|
+
// @__NO_SIDE_EFFECTS__
|
|
11850
11970
|
function _minSize(minimum, params) {
|
|
11851
11971
|
return new $ZodCheckMinSize({
|
|
11852
11972
|
check: "min_size",
|
|
@@ -11855,6 +11975,7 @@ function _minSize(minimum, params) {
|
|
|
11855
11975
|
});
|
|
11856
11976
|
}
|
|
11857
11977
|
__name(_minSize, "_minSize");
|
|
11978
|
+
// @__NO_SIDE_EFFECTS__
|
|
11858
11979
|
function _size(size, params) {
|
|
11859
11980
|
return new $ZodCheckSizeEquals({
|
|
11860
11981
|
check: "size_equals",
|
|
@@ -11863,6 +11984,7 @@ function _size(size, params) {
|
|
|
11863
11984
|
});
|
|
11864
11985
|
}
|
|
11865
11986
|
__name(_size, "_size");
|
|
11987
|
+
// @__NO_SIDE_EFFECTS__
|
|
11866
11988
|
function _maxLength(maximum, params) {
|
|
11867
11989
|
const ch = new $ZodCheckMaxLength({
|
|
11868
11990
|
check: "max_length",
|
|
@@ -11872,6 +11994,7 @@ function _maxLength(maximum, params) {
|
|
|
11872
11994
|
return ch;
|
|
11873
11995
|
}
|
|
11874
11996
|
__name(_maxLength, "_maxLength");
|
|
11997
|
+
// @__NO_SIDE_EFFECTS__
|
|
11875
11998
|
function _minLength(minimum, params) {
|
|
11876
11999
|
return new $ZodCheckMinLength({
|
|
11877
12000
|
check: "min_length",
|
|
@@ -11880,6 +12003,7 @@ function _minLength(minimum, params) {
|
|
|
11880
12003
|
});
|
|
11881
12004
|
}
|
|
11882
12005
|
__name(_minLength, "_minLength");
|
|
12006
|
+
// @__NO_SIDE_EFFECTS__
|
|
11883
12007
|
function _length(length, params) {
|
|
11884
12008
|
return new $ZodCheckLengthEquals({
|
|
11885
12009
|
check: "length_equals",
|
|
@@ -11888,6 +12012,7 @@ function _length(length, params) {
|
|
|
11888
12012
|
});
|
|
11889
12013
|
}
|
|
11890
12014
|
__name(_length, "_length");
|
|
12015
|
+
// @__NO_SIDE_EFFECTS__
|
|
11891
12016
|
function _regex(pattern, params) {
|
|
11892
12017
|
return new $ZodCheckRegex({
|
|
11893
12018
|
check: "string_format",
|
|
@@ -11897,6 +12022,7 @@ function _regex(pattern, params) {
|
|
|
11897
12022
|
});
|
|
11898
12023
|
}
|
|
11899
12024
|
__name(_regex, "_regex");
|
|
12025
|
+
// @__NO_SIDE_EFFECTS__
|
|
11900
12026
|
function _lowercase(params) {
|
|
11901
12027
|
return new $ZodCheckLowerCase({
|
|
11902
12028
|
check: "string_format",
|
|
@@ -11905,6 +12031,7 @@ function _lowercase(params) {
|
|
|
11905
12031
|
});
|
|
11906
12032
|
}
|
|
11907
12033
|
__name(_lowercase, "_lowercase");
|
|
12034
|
+
// @__NO_SIDE_EFFECTS__
|
|
11908
12035
|
function _uppercase(params) {
|
|
11909
12036
|
return new $ZodCheckUpperCase({
|
|
11910
12037
|
check: "string_format",
|
|
@@ -11913,6 +12040,7 @@ function _uppercase(params) {
|
|
|
11913
12040
|
});
|
|
11914
12041
|
}
|
|
11915
12042
|
__name(_uppercase, "_uppercase");
|
|
12043
|
+
// @__NO_SIDE_EFFECTS__
|
|
11916
12044
|
function _includes(includes, params) {
|
|
11917
12045
|
return new $ZodCheckIncludes({
|
|
11918
12046
|
check: "string_format",
|
|
@@ -11922,6 +12050,7 @@ function _includes(includes, params) {
|
|
|
11922
12050
|
});
|
|
11923
12051
|
}
|
|
11924
12052
|
__name(_includes, "_includes");
|
|
12053
|
+
// @__NO_SIDE_EFFECTS__
|
|
11925
12054
|
function _startsWith(prefix, params) {
|
|
11926
12055
|
return new $ZodCheckStartsWith({
|
|
11927
12056
|
check: "string_format",
|
|
@@ -11931,6 +12060,7 @@ function _startsWith(prefix, params) {
|
|
|
11931
12060
|
});
|
|
11932
12061
|
}
|
|
11933
12062
|
__name(_startsWith, "_startsWith");
|
|
12063
|
+
// @__NO_SIDE_EFFECTS__
|
|
11934
12064
|
function _endsWith(suffix, params) {
|
|
11935
12065
|
return new $ZodCheckEndsWith({
|
|
11936
12066
|
check: "string_format",
|
|
@@ -11940,6 +12070,7 @@ function _endsWith(suffix, params) {
|
|
|
11940
12070
|
});
|
|
11941
12071
|
}
|
|
11942
12072
|
__name(_endsWith, "_endsWith");
|
|
12073
|
+
// @__NO_SIDE_EFFECTS__
|
|
11943
12074
|
function _property(property, schema, params) {
|
|
11944
12075
|
return new $ZodCheckProperty({
|
|
11945
12076
|
check: "property",
|
|
@@ -11949,6 +12080,7 @@ function _property(property, schema, params) {
|
|
|
11949
12080
|
});
|
|
11950
12081
|
}
|
|
11951
12082
|
__name(_property, "_property");
|
|
12083
|
+
// @__NO_SIDE_EFFECTS__
|
|
11952
12084
|
function _mime(types, params) {
|
|
11953
12085
|
return new $ZodCheckMimeType({
|
|
11954
12086
|
check: "mime_type",
|
|
@@ -11957,6 +12089,7 @@ function _mime(types, params) {
|
|
|
11957
12089
|
});
|
|
11958
12090
|
}
|
|
11959
12091
|
__name(_mime, "_mime");
|
|
12092
|
+
// @__NO_SIDE_EFFECTS__
|
|
11960
12093
|
function _overwrite(tx) {
|
|
11961
12094
|
return new $ZodCheckOverwrite({
|
|
11962
12095
|
check: "overwrite",
|
|
@@ -11964,34 +12097,44 @@ function _overwrite(tx) {
|
|
|
11964
12097
|
});
|
|
11965
12098
|
}
|
|
11966
12099
|
__name(_overwrite, "_overwrite");
|
|
12100
|
+
// @__NO_SIDE_EFFECTS__
|
|
11967
12101
|
function _normalize(form) {
|
|
11968
|
-
return _overwrite((input) => input.normalize(form));
|
|
12102
|
+
return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
|
|
11969
12103
|
}
|
|
11970
12104
|
__name(_normalize, "_normalize");
|
|
12105
|
+
// @__NO_SIDE_EFFECTS__
|
|
11971
12106
|
function _trim() {
|
|
11972
|
-
return _overwrite((input) => input.trim());
|
|
12107
|
+
return /* @__PURE__ */ _overwrite((input) => input.trim());
|
|
11973
12108
|
}
|
|
11974
12109
|
__name(_trim, "_trim");
|
|
12110
|
+
// @__NO_SIDE_EFFECTS__
|
|
11975
12111
|
function _toLowerCase() {
|
|
11976
|
-
return _overwrite((input) => input.toLowerCase());
|
|
12112
|
+
return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
|
|
11977
12113
|
}
|
|
11978
12114
|
__name(_toLowerCase, "_toLowerCase");
|
|
12115
|
+
// @__NO_SIDE_EFFECTS__
|
|
11979
12116
|
function _toUpperCase() {
|
|
11980
|
-
return _overwrite((input) => input.toUpperCase());
|
|
12117
|
+
return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
|
|
11981
12118
|
}
|
|
11982
12119
|
__name(_toUpperCase, "_toUpperCase");
|
|
12120
|
+
// @__NO_SIDE_EFFECTS__
|
|
11983
12121
|
function _slugify() {
|
|
11984
|
-
return _overwrite((input) => slugify(input));
|
|
12122
|
+
return /* @__PURE__ */ _overwrite((input) => slugify(input));
|
|
11985
12123
|
}
|
|
11986
12124
|
__name(_slugify, "_slugify");
|
|
12125
|
+
// @__NO_SIDE_EFFECTS__
|
|
11987
12126
|
function _array(Class2, element, params) {
|
|
11988
12127
|
return new Class2({
|
|
11989
12128
|
type: "array",
|
|
11990
12129
|
element,
|
|
12130
|
+
// get element() {
|
|
12131
|
+
// return element;
|
|
12132
|
+
// },
|
|
11991
12133
|
...normalizeParams(params)
|
|
11992
12134
|
});
|
|
11993
12135
|
}
|
|
11994
12136
|
__name(_array, "_array");
|
|
12137
|
+
// @__NO_SIDE_EFFECTS__
|
|
11995
12138
|
function _union(Class2, options, params) {
|
|
11996
12139
|
return new Class2({
|
|
11997
12140
|
type: "union",
|
|
@@ -12009,6 +12152,7 @@ function _xor(Class2, options, params) {
|
|
|
12009
12152
|
});
|
|
12010
12153
|
}
|
|
12011
12154
|
__name(_xor, "_xor");
|
|
12155
|
+
// @__NO_SIDE_EFFECTS__
|
|
12012
12156
|
function _discriminatedUnion(Class2, discriminator, options, params) {
|
|
12013
12157
|
return new Class2({
|
|
12014
12158
|
type: "union",
|
|
@@ -12018,6 +12162,7 @@ function _discriminatedUnion(Class2, discriminator, options, params) {
|
|
|
12018
12162
|
});
|
|
12019
12163
|
}
|
|
12020
12164
|
__name(_discriminatedUnion, "_discriminatedUnion");
|
|
12165
|
+
// @__NO_SIDE_EFFECTS__
|
|
12021
12166
|
function _intersection(Class2, left, right) {
|
|
12022
12167
|
return new Class2({
|
|
12023
12168
|
type: "intersection",
|
|
@@ -12026,6 +12171,7 @@ function _intersection(Class2, left, right) {
|
|
|
12026
12171
|
});
|
|
12027
12172
|
}
|
|
12028
12173
|
__name(_intersection, "_intersection");
|
|
12174
|
+
// @__NO_SIDE_EFFECTS__
|
|
12029
12175
|
function _tuple(Class2, items, _paramsOrRest, _params) {
|
|
12030
12176
|
const hasRest = _paramsOrRest instanceof $ZodType;
|
|
12031
12177
|
const params = hasRest ? _params : _paramsOrRest;
|
|
@@ -12038,6 +12184,7 @@ function _tuple(Class2, items, _paramsOrRest, _params) {
|
|
|
12038
12184
|
});
|
|
12039
12185
|
}
|
|
12040
12186
|
__name(_tuple, "_tuple");
|
|
12187
|
+
// @__NO_SIDE_EFFECTS__
|
|
12041
12188
|
function _record(Class2, keyType, valueType, params) {
|
|
12042
12189
|
return new Class2({
|
|
12043
12190
|
type: "record",
|
|
@@ -12047,6 +12194,7 @@ function _record(Class2, keyType, valueType, params) {
|
|
|
12047
12194
|
});
|
|
12048
12195
|
}
|
|
12049
12196
|
__name(_record, "_record");
|
|
12197
|
+
// @__NO_SIDE_EFFECTS__
|
|
12050
12198
|
function _map(Class2, keyType, valueType, params) {
|
|
12051
12199
|
return new Class2({
|
|
12052
12200
|
type: "map",
|
|
@@ -12056,6 +12204,7 @@ function _map(Class2, keyType, valueType, params) {
|
|
|
12056
12204
|
});
|
|
12057
12205
|
}
|
|
12058
12206
|
__name(_map, "_map");
|
|
12207
|
+
// @__NO_SIDE_EFFECTS__
|
|
12059
12208
|
function _set(Class2, valueType, params) {
|
|
12060
12209
|
return new Class2({
|
|
12061
12210
|
type: "set",
|
|
@@ -12064,6 +12213,7 @@ function _set(Class2, valueType, params) {
|
|
|
12064
12213
|
});
|
|
12065
12214
|
}
|
|
12066
12215
|
__name(_set, "_set");
|
|
12216
|
+
// @__NO_SIDE_EFFECTS__
|
|
12067
12217
|
function _enum(Class2, values, params) {
|
|
12068
12218
|
const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
12069
12219
|
return new Class2({
|
|
@@ -12073,6 +12223,7 @@ function _enum(Class2, values, params) {
|
|
|
12073
12223
|
});
|
|
12074
12224
|
}
|
|
12075
12225
|
__name(_enum, "_enum");
|
|
12226
|
+
// @__NO_SIDE_EFFECTS__
|
|
12076
12227
|
function _nativeEnum(Class2, entries, params) {
|
|
12077
12228
|
return new Class2({
|
|
12078
12229
|
type: "enum",
|
|
@@ -12081,6 +12232,7 @@ function _nativeEnum(Class2, entries, params) {
|
|
|
12081
12232
|
});
|
|
12082
12233
|
}
|
|
12083
12234
|
__name(_nativeEnum, "_nativeEnum");
|
|
12235
|
+
// @__NO_SIDE_EFFECTS__
|
|
12084
12236
|
function _literal(Class2, value, params) {
|
|
12085
12237
|
return new Class2({
|
|
12086
12238
|
type: "literal",
|
|
@@ -12089,6 +12241,7 @@ function _literal(Class2, value, params) {
|
|
|
12089
12241
|
});
|
|
12090
12242
|
}
|
|
12091
12243
|
__name(_literal, "_literal");
|
|
12244
|
+
// @__NO_SIDE_EFFECTS__
|
|
12092
12245
|
function _file(Class2, params) {
|
|
12093
12246
|
return new Class2({
|
|
12094
12247
|
type: "file",
|
|
@@ -12096,6 +12249,7 @@ function _file(Class2, params) {
|
|
|
12096
12249
|
});
|
|
12097
12250
|
}
|
|
12098
12251
|
__name(_file, "_file");
|
|
12252
|
+
// @__NO_SIDE_EFFECTS__
|
|
12099
12253
|
function _transform(Class2, fn) {
|
|
12100
12254
|
return new Class2({
|
|
12101
12255
|
type: "transform",
|
|
@@ -12103,6 +12257,7 @@ function _transform(Class2, fn) {
|
|
|
12103
12257
|
});
|
|
12104
12258
|
}
|
|
12105
12259
|
__name(_transform, "_transform");
|
|
12260
|
+
// @__NO_SIDE_EFFECTS__
|
|
12106
12261
|
function _optional(Class2, innerType) {
|
|
12107
12262
|
return new Class2({
|
|
12108
12263
|
type: "optional",
|
|
@@ -12110,6 +12265,7 @@ function _optional(Class2, innerType) {
|
|
|
12110
12265
|
});
|
|
12111
12266
|
}
|
|
12112
12267
|
__name(_optional, "_optional");
|
|
12268
|
+
// @__NO_SIDE_EFFECTS__
|
|
12113
12269
|
function _nullable(Class2, innerType) {
|
|
12114
12270
|
return new Class2({
|
|
12115
12271
|
type: "nullable",
|
|
@@ -12117,6 +12273,7 @@ function _nullable(Class2, innerType) {
|
|
|
12117
12273
|
});
|
|
12118
12274
|
}
|
|
12119
12275
|
__name(_nullable, "_nullable");
|
|
12276
|
+
// @__NO_SIDE_EFFECTS__
|
|
12120
12277
|
function _default(Class2, innerType, defaultValue) {
|
|
12121
12278
|
return new Class2({
|
|
12122
12279
|
type: "default",
|
|
@@ -12127,6 +12284,7 @@ function _default(Class2, innerType, defaultValue) {
|
|
|
12127
12284
|
});
|
|
12128
12285
|
}
|
|
12129
12286
|
__name(_default, "_default");
|
|
12287
|
+
// @__NO_SIDE_EFFECTS__
|
|
12130
12288
|
function _nonoptional(Class2, innerType, params) {
|
|
12131
12289
|
return new Class2({
|
|
12132
12290
|
type: "nonoptional",
|
|
@@ -12135,6 +12293,7 @@ function _nonoptional(Class2, innerType, params) {
|
|
|
12135
12293
|
});
|
|
12136
12294
|
}
|
|
12137
12295
|
__name(_nonoptional, "_nonoptional");
|
|
12296
|
+
// @__NO_SIDE_EFFECTS__
|
|
12138
12297
|
function _success(Class2, innerType) {
|
|
12139
12298
|
return new Class2({
|
|
12140
12299
|
type: "success",
|
|
@@ -12142,6 +12301,7 @@ function _success(Class2, innerType) {
|
|
|
12142
12301
|
});
|
|
12143
12302
|
}
|
|
12144
12303
|
__name(_success, "_success");
|
|
12304
|
+
// @__NO_SIDE_EFFECTS__
|
|
12145
12305
|
function _catch(Class2, innerType, catchValue) {
|
|
12146
12306
|
return new Class2({
|
|
12147
12307
|
type: "catch",
|
|
@@ -12150,6 +12310,7 @@ function _catch(Class2, innerType, catchValue) {
|
|
|
12150
12310
|
});
|
|
12151
12311
|
}
|
|
12152
12312
|
__name(_catch, "_catch");
|
|
12313
|
+
// @__NO_SIDE_EFFECTS__
|
|
12153
12314
|
function _pipe(Class2, in_, out) {
|
|
12154
12315
|
return new Class2({
|
|
12155
12316
|
type: "pipe",
|
|
@@ -12158,6 +12319,7 @@ function _pipe(Class2, in_, out) {
|
|
|
12158
12319
|
});
|
|
12159
12320
|
}
|
|
12160
12321
|
__name(_pipe, "_pipe");
|
|
12322
|
+
// @__NO_SIDE_EFFECTS__
|
|
12161
12323
|
function _readonly(Class2, innerType) {
|
|
12162
12324
|
return new Class2({
|
|
12163
12325
|
type: "readonly",
|
|
@@ -12165,6 +12327,7 @@ function _readonly(Class2, innerType) {
|
|
|
12165
12327
|
});
|
|
12166
12328
|
}
|
|
12167
12329
|
__name(_readonly, "_readonly");
|
|
12330
|
+
// @__NO_SIDE_EFFECTS__
|
|
12168
12331
|
function _templateLiteral(Class2, parts, params) {
|
|
12169
12332
|
return new Class2({
|
|
12170
12333
|
type: "template_literal",
|
|
@@ -12173,6 +12336,7 @@ function _templateLiteral(Class2, parts, params) {
|
|
|
12173
12336
|
});
|
|
12174
12337
|
}
|
|
12175
12338
|
__name(_templateLiteral, "_templateLiteral");
|
|
12339
|
+
// @__NO_SIDE_EFFECTS__
|
|
12176
12340
|
function _lazy(Class2, getter) {
|
|
12177
12341
|
return new Class2({
|
|
12178
12342
|
type: "lazy",
|
|
@@ -12180,6 +12344,7 @@ function _lazy(Class2, getter) {
|
|
|
12180
12344
|
});
|
|
12181
12345
|
}
|
|
12182
12346
|
__name(_lazy, "_lazy");
|
|
12347
|
+
// @__NO_SIDE_EFFECTS__
|
|
12183
12348
|
function _promise(Class2, innerType) {
|
|
12184
12349
|
return new Class2({
|
|
12185
12350
|
type: "promise",
|
|
@@ -12187,6 +12352,7 @@ function _promise(Class2, innerType) {
|
|
|
12187
12352
|
});
|
|
12188
12353
|
}
|
|
12189
12354
|
__name(_promise, "_promise");
|
|
12355
|
+
// @__NO_SIDE_EFFECTS__
|
|
12190
12356
|
function _custom(Class2, fn, _params) {
|
|
12191
12357
|
const norm = normalizeParams(_params);
|
|
12192
12358
|
norm.abort ?? (norm.abort = true);
|
|
@@ -12199,6 +12365,7 @@ function _custom(Class2, fn, _params) {
|
|
|
12199
12365
|
return schema;
|
|
12200
12366
|
}
|
|
12201
12367
|
__name(_custom, "_custom");
|
|
12368
|
+
// @__NO_SIDE_EFFECTS__
|
|
12202
12369
|
function _refine(Class2, fn, _params) {
|
|
12203
12370
|
const schema = new Class2({
|
|
12204
12371
|
type: "custom",
|
|
@@ -12209,8 +12376,9 @@ function _refine(Class2, fn, _params) {
|
|
|
12209
12376
|
return schema;
|
|
12210
12377
|
}
|
|
12211
12378
|
__name(_refine, "_refine");
|
|
12379
|
+
// @__NO_SIDE_EFFECTS__
|
|
12212
12380
|
function _superRefine(fn, params) {
|
|
12213
|
-
const ch = _check((payload) => {
|
|
12381
|
+
const ch = /* @__PURE__ */ _check((payload) => {
|
|
12214
12382
|
payload.addIssue = (issue2) => {
|
|
12215
12383
|
if (typeof issue2 === "string") {
|
|
12216
12384
|
payload.issues.push(issue(issue2, payload.value, ch._zod.def));
|
|
@@ -12230,6 +12398,7 @@ function _superRefine(fn, params) {
|
|
|
12230
12398
|
return ch;
|
|
12231
12399
|
}
|
|
12232
12400
|
__name(_superRefine, "_superRefine");
|
|
12401
|
+
// @__NO_SIDE_EFFECTS__
|
|
12233
12402
|
function _check(fn, params) {
|
|
12234
12403
|
const ch = new $ZodCheck({
|
|
12235
12404
|
check: "custom",
|
|
@@ -12239,6 +12408,7 @@ function _check(fn, params) {
|
|
|
12239
12408
|
return ch;
|
|
12240
12409
|
}
|
|
12241
12410
|
__name(_check, "_check");
|
|
12411
|
+
// @__NO_SIDE_EFFECTS__
|
|
12242
12412
|
function describe(description) {
|
|
12243
12413
|
const ch = new $ZodCheck({ check: "describe" });
|
|
12244
12414
|
ch._zod.onattach = [
|
|
@@ -12252,6 +12422,7 @@ function describe(description) {
|
|
|
12252
12422
|
return ch;
|
|
12253
12423
|
}
|
|
12254
12424
|
__name(describe, "describe");
|
|
12425
|
+
// @__NO_SIDE_EFFECTS__
|
|
12255
12426
|
function meta(metadata) {
|
|
12256
12427
|
const ch = new $ZodCheck({ check: "meta" });
|
|
12257
12428
|
ch._zod.onattach = [
|
|
@@ -12265,6 +12436,7 @@ function meta(metadata) {
|
|
|
12265
12436
|
return ch;
|
|
12266
12437
|
}
|
|
12267
12438
|
__name(meta, "meta");
|
|
12439
|
+
// @__NO_SIDE_EFFECTS__
|
|
12268
12440
|
function _stringbool(Classes, _params) {
|
|
12269
12441
|
const params = normalizeParams(_params);
|
|
12270
12442
|
let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
|
|
@@ -12284,7 +12456,7 @@ function _stringbool(Classes, _params) {
|
|
|
12284
12456
|
type: "pipe",
|
|
12285
12457
|
in: stringSchema,
|
|
12286
12458
|
out: booleanSchema,
|
|
12287
|
-
transform: (input, payload) => {
|
|
12459
|
+
transform: /* @__PURE__ */ __name(((input, payload) => {
|
|
12288
12460
|
let data = input;
|
|
12289
12461
|
if (params.case !== "sensitive")
|
|
12290
12462
|
data = data.toLowerCase();
|
|
@@ -12303,19 +12475,20 @@ function _stringbool(Classes, _params) {
|
|
|
12303
12475
|
});
|
|
12304
12476
|
return {};
|
|
12305
12477
|
}
|
|
12306
|
-
},
|
|
12307
|
-
reverseTransform: (input, _payload) => {
|
|
12478
|
+
}), "transform"),
|
|
12479
|
+
reverseTransform: /* @__PURE__ */ __name(((input, _payload) => {
|
|
12308
12480
|
if (input === true) {
|
|
12309
12481
|
return truthyArray[0] || "true";
|
|
12310
12482
|
} else {
|
|
12311
12483
|
return falsyArray[0] || "false";
|
|
12312
12484
|
}
|
|
12313
|
-
},
|
|
12485
|
+
}), "reverseTransform"),
|
|
12314
12486
|
error: params.error
|
|
12315
12487
|
});
|
|
12316
12488
|
return codec2;
|
|
12317
12489
|
}
|
|
12318
12490
|
__name(_stringbool, "_stringbool");
|
|
12491
|
+
// @__NO_SIDE_EFFECTS__
|
|
12319
12492
|
function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
12320
12493
|
const params = normalizeParams(_params);
|
|
12321
12494
|
const def = {
|
|
@@ -12358,7 +12531,7 @@ function initializeContext(params) {
|
|
|
12358
12531
|
}
|
|
12359
12532
|
__name(initializeContext, "initializeContext");
|
|
12360
12533
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
12361
|
-
var
|
|
12534
|
+
var _a5;
|
|
12362
12535
|
const def = schema._zod.def;
|
|
12363
12536
|
const seen = ctx.seen.get(schema);
|
|
12364
12537
|
if (seen) {
|
|
@@ -12406,7 +12579,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
12406
12579
|
delete result.schema.default;
|
|
12407
12580
|
}
|
|
12408
12581
|
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
12409
|
-
(
|
|
12582
|
+
(_a5 = result.schema).default ?? (_a5.default = result.schema._prefault);
|
|
12410
12583
|
delete result.schema._prefault;
|
|
12411
12584
|
const _result = ctx.seen.get(schema);
|
|
12412
12585
|
return _result.schema;
|
|
@@ -12705,6 +12878,7 @@ var formatMap = {
|
|
|
12705
12878
|
datetime: "date-time",
|
|
12706
12879
|
json_string: "json-string",
|
|
12707
12880
|
regex: ""
|
|
12881
|
+
// do not set
|
|
12708
12882
|
};
|
|
12709
12883
|
var stringProcessor = /* @__PURE__ */ __name((schema, ctx, _json, _params) => {
|
|
12710
12884
|
const json2 = _json;
|
|
@@ -13243,28 +13417,35 @@ function toJSONSchema(input, params) {
|
|
|
13243
13417
|
__name(toJSONSchema, "toJSONSchema");
|
|
13244
13418
|
|
|
13245
13419
|
// ../../../node_modules/zod/v4/core/json-schema-generator.js
|
|
13246
|
-
var
|
|
13420
|
+
var _JSONSchemaGenerator = class _JSONSchemaGenerator {
|
|
13421
|
+
/** @deprecated Access via ctx instead */
|
|
13247
13422
|
get metadataRegistry() {
|
|
13248
13423
|
return this.ctx.metadataRegistry;
|
|
13249
13424
|
}
|
|
13425
|
+
/** @deprecated Access via ctx instead */
|
|
13250
13426
|
get target() {
|
|
13251
13427
|
return this.ctx.target;
|
|
13252
13428
|
}
|
|
13429
|
+
/** @deprecated Access via ctx instead */
|
|
13253
13430
|
get unrepresentable() {
|
|
13254
13431
|
return this.ctx.unrepresentable;
|
|
13255
13432
|
}
|
|
13433
|
+
/** @deprecated Access via ctx instead */
|
|
13256
13434
|
get override() {
|
|
13257
13435
|
return this.ctx.override;
|
|
13258
13436
|
}
|
|
13437
|
+
/** @deprecated Access via ctx instead */
|
|
13259
13438
|
get io() {
|
|
13260
13439
|
return this.ctx.io;
|
|
13261
13440
|
}
|
|
13441
|
+
/** @deprecated Access via ctx instead */
|
|
13262
13442
|
get counter() {
|
|
13263
13443
|
return this.ctx.counter;
|
|
13264
13444
|
}
|
|
13265
13445
|
set counter(value) {
|
|
13266
13446
|
this.ctx.counter = value;
|
|
13267
13447
|
}
|
|
13448
|
+
/** @deprecated Access via ctx instead */
|
|
13268
13449
|
get seen() {
|
|
13269
13450
|
return this.ctx.seen;
|
|
13270
13451
|
}
|
|
@@ -13283,9 +13464,17 @@ var JSONSchemaGenerator = class {
|
|
|
13283
13464
|
...params?.io && { io: params.io }
|
|
13284
13465
|
});
|
|
13285
13466
|
}
|
|
13467
|
+
/**
|
|
13468
|
+
* Process a schema to prepare it for JSON Schema generation.
|
|
13469
|
+
* This must be called before emit().
|
|
13470
|
+
*/
|
|
13286
13471
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
13287
13472
|
return process2(schema, this.ctx, _params);
|
|
13288
13473
|
}
|
|
13474
|
+
/**
|
|
13475
|
+
* Emit the final JSON Schema after processing.
|
|
13476
|
+
* Must call process() first.
|
|
13477
|
+
*/
|
|
13289
13478
|
emit(schema, _params) {
|
|
13290
13479
|
if (_params) {
|
|
13291
13480
|
if (_params.cycles)
|
|
@@ -13301,7 +13490,8 @@ var JSONSchemaGenerator = class {
|
|
|
13301
13490
|
return plainResult;
|
|
13302
13491
|
}
|
|
13303
13492
|
};
|
|
13304
|
-
__name(
|
|
13493
|
+
__name(_JSONSchemaGenerator, "JSONSchemaGenerator");
|
|
13494
|
+
var JSONSchemaGenerator = _JSONSchemaGenerator;
|
|
13305
13495
|
|
|
13306
13496
|
// ../../../node_modules/zod/v4/core/json-schema.js
|
|
13307
13497
|
var json_schema_exports = {};
|
|
@@ -13562,27 +13752,32 @@ var initializer2 = /* @__PURE__ */ __name((inst, issues) => {
|
|
|
13562
13752
|
inst.name = "ZodError";
|
|
13563
13753
|
Object.defineProperties(inst, {
|
|
13564
13754
|
format: {
|
|
13565
|
-
value: (mapper) => formatError(inst, mapper)
|
|
13755
|
+
value: /* @__PURE__ */ __name((mapper) => formatError(inst, mapper), "value")
|
|
13756
|
+
// enumerable: false,
|
|
13566
13757
|
},
|
|
13567
13758
|
flatten: {
|
|
13568
|
-
value: (mapper) => flattenError(inst, mapper)
|
|
13759
|
+
value: /* @__PURE__ */ __name((mapper) => flattenError(inst, mapper), "value")
|
|
13760
|
+
// enumerable: false,
|
|
13569
13761
|
},
|
|
13570
13762
|
addIssue: {
|
|
13571
|
-
value: (issue2) => {
|
|
13763
|
+
value: /* @__PURE__ */ __name((issue2) => {
|
|
13572
13764
|
inst.issues.push(issue2);
|
|
13573
13765
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
13574
|
-
}
|
|
13766
|
+
}, "value")
|
|
13767
|
+
// enumerable: false,
|
|
13575
13768
|
},
|
|
13576
13769
|
addIssues: {
|
|
13577
|
-
value: (issues2) => {
|
|
13770
|
+
value: /* @__PURE__ */ __name((issues2) => {
|
|
13578
13771
|
inst.issues.push(...issues2);
|
|
13579
13772
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
13580
|
-
}
|
|
13773
|
+
}, "value")
|
|
13774
|
+
// enumerable: false,
|
|
13581
13775
|
},
|
|
13582
13776
|
isEmpty: {
|
|
13583
13777
|
get() {
|
|
13584
13778
|
return inst.issues.length === 0;
|
|
13585
13779
|
}
|
|
13780
|
+
// enumerable: false,
|
|
13586
13781
|
}
|
|
13587
13782
|
});
|
|
13588
13783
|
}, "initializer");
|
|
@@ -14818,6 +15013,7 @@ function pipe(in_, out) {
|
|
|
14818
15013
|
type: "pipe",
|
|
14819
15014
|
in: in_,
|
|
14820
15015
|
out
|
|
15016
|
+
// ...util.normalizeParams(params),
|
|
14821
15017
|
});
|
|
14822
15018
|
}
|
|
14823
15019
|
__name(pipe, "pipe");
|
|
@@ -14923,6 +15119,7 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
14923
15119
|
function check(fn) {
|
|
14924
15120
|
const ch = new $ZodCheck({
|
|
14925
15121
|
check: "custom"
|
|
15122
|
+
// ...util.normalizeParams(params),
|
|
14926
15123
|
});
|
|
14927
15124
|
ch._zod.check = fn;
|
|
14928
15125
|
return ch;
|
|
@@ -14946,7 +15143,7 @@ function _instanceof(cls, params = {}) {
|
|
|
14946
15143
|
const inst = new ZodCustom({
|
|
14947
15144
|
type: "custom",
|
|
14948
15145
|
check: "custom",
|
|
14949
|
-
fn: (data) => data instanceof cls,
|
|
15146
|
+
fn: /* @__PURE__ */ __name((data) => data instanceof cls, "fn"),
|
|
14950
15147
|
abort: true,
|
|
14951
15148
|
...util_exports.normalizeParams(params)
|
|
14952
15149
|
});
|
|
@@ -15011,7 +15208,7 @@ function getErrorMap() {
|
|
|
15011
15208
|
}
|
|
15012
15209
|
__name(getErrorMap, "getErrorMap");
|
|
15013
15210
|
var ZodFirstPartyTypeKind;
|
|
15014
|
-
(function(ZodFirstPartyTypeKind2) {
|
|
15211
|
+
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
15015
15212
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
15016
15213
|
|
|
15017
15214
|
// ../../../node_modules/zod/v4/classic/from-json-schema.js
|
|
@@ -15021,10 +15218,12 @@ var z = {
|
|
|
15021
15218
|
iso: iso_exports
|
|
15022
15219
|
};
|
|
15023
15220
|
var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
15221
|
+
// Schema identification
|
|
15024
15222
|
"$schema",
|
|
15025
15223
|
"$ref",
|
|
15026
15224
|
"$defs",
|
|
15027
15225
|
"definitions",
|
|
15226
|
+
// Core schema keywords
|
|
15028
15227
|
"$id",
|
|
15029
15228
|
"id",
|
|
15030
15229
|
"$comment",
|
|
@@ -15032,13 +15231,16 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
|
15032
15231
|
"$vocabulary",
|
|
15033
15232
|
"$dynamicRef",
|
|
15034
15233
|
"$dynamicAnchor",
|
|
15234
|
+
// Type
|
|
15035
15235
|
"type",
|
|
15036
15236
|
"enum",
|
|
15037
15237
|
"const",
|
|
15238
|
+
// Composition
|
|
15038
15239
|
"anyOf",
|
|
15039
15240
|
"oneOf",
|
|
15040
15241
|
"allOf",
|
|
15041
15242
|
"not",
|
|
15243
|
+
// Object
|
|
15042
15244
|
"properties",
|
|
15043
15245
|
"required",
|
|
15044
15246
|
"additionalProperties",
|
|
@@ -15046,6 +15248,7 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
|
15046
15248
|
"propertyNames",
|
|
15047
15249
|
"minProperties",
|
|
15048
15250
|
"maxProperties",
|
|
15251
|
+
// Array
|
|
15049
15252
|
"items",
|
|
15050
15253
|
"prefixItems",
|
|
15051
15254
|
"additionalItems",
|
|
@@ -15055,20 +15258,25 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
|
15055
15258
|
"contains",
|
|
15056
15259
|
"minContains",
|
|
15057
15260
|
"maxContains",
|
|
15261
|
+
// String
|
|
15058
15262
|
"minLength",
|
|
15059
15263
|
"maxLength",
|
|
15060
15264
|
"pattern",
|
|
15061
15265
|
"format",
|
|
15266
|
+
// Number
|
|
15062
15267
|
"minimum",
|
|
15063
15268
|
"maximum",
|
|
15064
15269
|
"exclusiveMinimum",
|
|
15065
15270
|
"exclusiveMaximum",
|
|
15066
15271
|
"multipleOf",
|
|
15272
|
+
// Already handled metadata
|
|
15067
15273
|
"description",
|
|
15068
15274
|
"default",
|
|
15275
|
+
// Content
|
|
15069
15276
|
"contentEncoding",
|
|
15070
15277
|
"contentMediaType",
|
|
15071
15278
|
"contentSchema",
|
|
15279
|
+
// Unsupported (error-throwing)
|
|
15072
15280
|
"unevaluatedItems",
|
|
15073
15281
|
"unevaluatedProperties",
|
|
15074
15282
|
"if",
|
|
@@ -15076,6 +15284,7 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
|
15076
15284
|
"else",
|
|
15077
15285
|
"dependentSchemas",
|
|
15078
15286
|
"dependentRequired",
|
|
15287
|
+
// OpenAPI
|
|
15079
15288
|
"nullable",
|
|
15080
15289
|
"readOnly"
|
|
15081
15290
|
]);
|
|
@@ -15705,18 +15914,22 @@ var __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
|
|
|
15705
15914
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
15706
15915
|
for (let key of __getOwnPropNames(from))
|
|
15707
15916
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15708
|
-
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15917
|
+
__defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15709
15918
|
}
|
|
15710
15919
|
return to;
|
|
15711
15920
|
}, "__copyProps");
|
|
15712
15921
|
var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
15922
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
15923
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
15924
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
15925
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
15713
15926
|
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
|
|
15714
15927
|
mod
|
|
15715
15928
|
)), "__toESM");
|
|
15716
15929
|
var require_types_cjs_development = __commonJS({
|
|
15717
15930
|
"../learn-card-types/dist/types.cjs.development.cjs"(exports, module) {
|
|
15718
|
-
var _a5, _b, _c, _d, _e, _f, _g;
|
|
15719
15931
|
"use strict";
|
|
15932
|
+
var _a6, _b, _c, _d, _e, _f, _g;
|
|
15720
15933
|
var __defProp22 = Object.defineProperty;
|
|
15721
15934
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
15722
15935
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -15879,6 +16092,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
15879
16092
|
LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkSigningAuthorityValidator2, "LCNBoostClaimLinkSigningAuthorityValidator"),
|
|
15880
16093
|
LCNBoostStatus: /* @__PURE__ */ __name2(() => LCNBoostStatus2, "LCNBoostStatus"),
|
|
15881
16094
|
LCNConnectionProfileValidator: /* @__PURE__ */ __name2(() => LCNConnectionProfileValidator2, "LCNConnectionProfileValidator"),
|
|
16095
|
+
LCNConnectionPromptActionResultValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptActionResultValidator2, "LCNConnectionPromptActionResultValidator"),
|
|
16096
|
+
LCNConnectionPromptActionStatusValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptActionStatusValidator2, "LCNConnectionPromptActionStatusValidator"),
|
|
16097
|
+
LCNConnectionPromptMetadataValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptMetadataValidator2, "LCNConnectionPromptMetadataValidator"),
|
|
16098
|
+
LCNConnectionPromptStatusValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptStatusValidator2, "LCNConnectionPromptStatusValidator"),
|
|
16099
|
+
LCNConnectionPromptSurfaceValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptSurfaceValidator2, "LCNConnectionPromptSurfaceValidator"),
|
|
16100
|
+
LCNConnectionPromptValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptValidator2, "LCNConnectionPromptValidator"),
|
|
15882
16101
|
LCNDomainOrOriginValidator: /* @__PURE__ */ __name2(() => LCNDomainOrOriginValidator2, "LCNDomainOrOriginValidator"),
|
|
15883
16102
|
LCNInboxContactMethodValidator: /* @__PURE__ */ __name2(() => LCNInboxContactMethodValidator2, "LCNInboxContactMethodValidator"),
|
|
15884
16103
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name2(() => LCNInboxStatusEnumValidator2, "LCNInboxStatusEnumValidator"),
|
|
@@ -15890,6 +16109,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
15890
16109
|
LCNNotificationDataValidator: /* @__PURE__ */ __name2(() => LCNNotificationDataValidator2, "LCNNotificationDataValidator"),
|
|
15891
16110
|
LCNNotificationInboxValidator: /* @__PURE__ */ __name2(() => LCNNotificationInboxValidator2, "LCNNotificationInboxValidator"),
|
|
15892
16111
|
LCNNotificationMessageValidator: /* @__PURE__ */ __name2(() => LCNNotificationMessageValidator2, "LCNNotificationMessageValidator"),
|
|
16112
|
+
LCNNotificationMetadataValidator: /* @__PURE__ */ __name2(() => LCNNotificationMetadataValidator2, "LCNNotificationMetadataValidator"),
|
|
15893
16113
|
LCNNotificationTypeEnumValidator: /* @__PURE__ */ __name2(() => LCNNotificationTypeEnumValidator2, "LCNNotificationTypeEnumValidator"),
|
|
15894
16114
|
LCNNotificationValidator: /* @__PURE__ */ __name2(() => LCNNotificationValidator2, "LCNNotificationValidator"),
|
|
15895
16115
|
LCNProfileConnectionStatusEnum: /* @__PURE__ */ __name2(() => LCNProfileConnectionStatusEnum2, "LCNProfileConnectionStatusEnum"),
|
|
@@ -16538,10 +16758,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
16538
16758
|
util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
|
|
16539
16759
|
version: /* @__PURE__ */ __name2(() => version3, "version")
|
|
16540
16760
|
});
|
|
16541
|
-
var
|
|
16761
|
+
var _a5;
|
|
16542
16762
|
var NEVER2 = /* @__PURE__ */ Object.freeze({
|
|
16543
16763
|
status: "aborted"
|
|
16544
16764
|
});
|
|
16765
|
+
// @__NO_SIDE_EFFECTS__
|
|
16545
16766
|
function $constructor2(name, initializer32, params) {
|
|
16546
16767
|
function init(inst, def) {
|
|
16547
16768
|
if (!inst._zod) {
|
|
@@ -16572,16 +16793,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
16572
16793
|
__name2(init, "init");
|
|
16573
16794
|
__name22(init, "init");
|
|
16574
16795
|
const Parent = params?.Parent ?? Object;
|
|
16575
|
-
const _Definition = class extends Parent {
|
|
16796
|
+
const _Definition = class _Definition extends Parent {
|
|
16576
16797
|
};
|
|
16798
|
+
__name(_Definition, "Definition");
|
|
16799
|
+
__name2(_Definition, "Definition");
|
|
16800
|
+
__name22(_Definition, "Definition");
|
|
16577
16801
|
let Definition = _Definition;
|
|
16578
|
-
__name(Definition, "Definition");
|
|
16579
|
-
(() => {
|
|
16580
|
-
__name2(_Definition, "Definition");
|
|
16581
|
-
})();
|
|
16582
|
-
(() => {
|
|
16583
|
-
__name22(_Definition, "Definition");
|
|
16584
|
-
})();
|
|
16585
16802
|
Object.defineProperty(Definition, "name", { value: name });
|
|
16586
16803
|
function _(def) {
|
|
16587
16804
|
var _a32;
|
|
@@ -16611,26 +16828,18 @@ var require_types_cjs_development = __commonJS({
|
|
|
16611
16828
|
__name2($constructor2, "$constructor");
|
|
16612
16829
|
__name22($constructor2, "$constructor");
|
|
16613
16830
|
var $brand2 = /* @__PURE__ */ Symbol("zod_brand");
|
|
16614
|
-
var $ZodAsyncError2 =
|
|
16831
|
+
var $ZodAsyncError2 = (_a6 = class extends Error {
|
|
16615
16832
|
constructor() {
|
|
16616
16833
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
16617
16834
|
}
|
|
16618
|
-
}, "
|
|
16619
|
-
|
|
16620
|
-
})(), (() => {
|
|
16621
|
-
__name22(_a5, "$ZodAsyncError");
|
|
16622
|
-
})(), _a5), "$ZodAsyncError");
|
|
16623
|
-
var $ZodEncodeError2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_b = class extends Error {
|
|
16835
|
+
}, __name(_a6, "$ZodAsyncError"), __name2(_a6, "$ZodAsyncError"), __name22(_a6, "$ZodAsyncError"), _a6);
|
|
16836
|
+
var $ZodEncodeError2 = (_b = class extends Error {
|
|
16624
16837
|
constructor(name) {
|
|
16625
16838
|
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
16626
16839
|
this.name = "ZodEncodeError";
|
|
16627
16840
|
}
|
|
16628
|
-
}, "
|
|
16629
|
-
|
|
16630
|
-
})(), (() => {
|
|
16631
|
-
__name22(_b, "$ZodEncodeError");
|
|
16632
|
-
})(), _b), "$ZodEncodeError");
|
|
16633
|
-
(_a4 = globalThis).__zod_globalConfig ?? (_a4.__zod_globalConfig = {});
|
|
16841
|
+
}, __name(_b, "$ZodEncodeError"), __name2(_b, "$ZodEncodeError"), __name22(_b, "$ZodEncodeError"), _b);
|
|
16842
|
+
(_a5 = globalThis).__zod_globalConfig ?? (_a5.__zod_globalConfig = {});
|
|
16634
16843
|
var globalConfig2 = globalThis.__zod_globalConfig;
|
|
16635
16844
|
function config2(newConfig) {
|
|
16636
16845
|
if (newConfig)
|
|
@@ -16814,6 +17023,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16814
17023
|
set(v) {
|
|
16815
17024
|
Object.defineProperty(object22, key, {
|
|
16816
17025
|
value: v
|
|
17026
|
+
// configurable: true,
|
|
16817
17027
|
});
|
|
16818
17028
|
},
|
|
16819
17029
|
configurable: true
|
|
@@ -17494,14 +17704,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
17494
17704
|
__name(uint8ArrayToHex2, "uint8ArrayToHex");
|
|
17495
17705
|
__name2(uint8ArrayToHex2, "uint8ArrayToHex");
|
|
17496
17706
|
__name22(uint8ArrayToHex2, "uint8ArrayToHex");
|
|
17497
|
-
var Class2 =
|
|
17707
|
+
var Class2 = (_c = class {
|
|
17498
17708
|
constructor(..._args) {
|
|
17499
17709
|
}
|
|
17500
|
-
}, "
|
|
17501
|
-
__name2(_c, "Class");
|
|
17502
|
-
})(), (() => {
|
|
17503
|
-
__name22(_c, "Class");
|
|
17504
|
-
})(), _c), "Class");
|
|
17710
|
+
}, __name(_c, "Class"), __name2(_c, "Class"), __name22(_c, "Class"), _c);
|
|
17505
17711
|
var initializer3 = /* @__PURE__ */ __name22((inst, def) => {
|
|
17506
17712
|
inst.name = "$ZodError";
|
|
17507
17713
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -18464,7 +18670,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
18464
18670
|
payload.value = def.tx(payload.value);
|
|
18465
18671
|
};
|
|
18466
18672
|
});
|
|
18467
|
-
var Doc2 =
|
|
18673
|
+
var Doc2 = (_d = class {
|
|
18468
18674
|
constructor(args = []) {
|
|
18469
18675
|
this.content = [];
|
|
18470
18676
|
this.indent = 0;
|
|
@@ -18497,11 +18703,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
18497
18703
|
const lines = [...content.map((x) => ` ${x}`)];
|
|
18498
18704
|
return new F(...args, lines.join("\n"));
|
|
18499
18705
|
}
|
|
18500
|
-
}, "
|
|
18501
|
-
__name2(_d, "Doc");
|
|
18502
|
-
})(), (() => {
|
|
18503
|
-
__name22(_d, "Doc");
|
|
18504
|
-
})(), _d), "Doc");
|
|
18706
|
+
}, __name(_d, "Doc"), __name2(_d, "Doc"), __name22(_d, "Doc"), _d);
|
|
18505
18707
|
var version3 = {
|
|
18506
18708
|
major: 4,
|
|
18507
18709
|
minor: 4,
|
|
@@ -20656,8 +20858,11 @@ var require_types_cjs_development = __commonJS({
|
|
|
20656
20858
|
code: "custom",
|
|
20657
20859
|
input,
|
|
20658
20860
|
inst,
|
|
20861
|
+
// incorporates params.error into issue reporting
|
|
20659
20862
|
path: [...inst._zod.def.path ?? []],
|
|
20863
|
+
// incorporates params.error into issue reporting
|
|
20660
20864
|
continue: !inst._zod.def.abort
|
|
20865
|
+
// params: inst._zod.def.params,
|
|
20661
20866
|
};
|
|
20662
20867
|
if (inst._zod.def.params)
|
|
20663
20868
|
_iss.params = inst._zod.def.params;
|
|
@@ -21329,6 +21534,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
21329
21534
|
return `Clau inv\xE0lida a ${issue22.origin}`;
|
|
21330
21535
|
case "invalid_union":
|
|
21331
21536
|
return "Entrada inv\xE0lida";
|
|
21537
|
+
// Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general
|
|
21332
21538
|
case "invalid_element":
|
|
21333
21539
|
return `Element inv\xE0lid a ${issue22.origin}`;
|
|
21334
21540
|
default:
|
|
@@ -21853,7 +22059,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
21853
22059
|
template_literal: "input"
|
|
21854
22060
|
};
|
|
21855
22061
|
const TypeDictionary = {
|
|
22062
|
+
// Compatibility: "nan" -> "NaN" for display
|
|
21856
22063
|
nan: "NaN"
|
|
22064
|
+
// All other type names omitted - they fall back to raw values via ?? operator
|
|
21857
22065
|
};
|
|
21858
22066
|
return (issue22) => {
|
|
21859
22067
|
switch (issue22.code) {
|
|
@@ -22678,6 +22886,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
22678
22886
|
array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
22679
22887
|
set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
22680
22888
|
number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
|
|
22889
|
+
// no unit
|
|
22681
22890
|
};
|
|
22682
22891
|
const typeEntry = /* @__PURE__ */ __name22((t) => t ? TypeNames[t] : void 0, "typeEntry");
|
|
22683
22892
|
const typeLabel = /* @__PURE__ */ __name22((t) => {
|
|
@@ -26833,7 +27042,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26833
27042
|
var _a22;
|
|
26834
27043
|
var $output2 = /* @__PURE__ */ Symbol("ZodOutput");
|
|
26835
27044
|
var $input2 = /* @__PURE__ */ Symbol("ZodInput");
|
|
26836
|
-
var $ZodRegistry2 =
|
|
27045
|
+
var $ZodRegistry2 = (_e = class {
|
|
26837
27046
|
constructor() {
|
|
26838
27047
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
26839
27048
|
this._idmap = /* @__PURE__ */ new Map();
|
|
@@ -26872,11 +27081,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26872
27081
|
has(schema) {
|
|
26873
27082
|
return this._map.has(schema);
|
|
26874
27083
|
}
|
|
26875
|
-
}, "
|
|
26876
|
-
__name2(_e, "$ZodRegistry");
|
|
26877
|
-
})(), (() => {
|
|
26878
|
-
__name22(_e, "$ZodRegistry");
|
|
26879
|
-
})(), _e), "$ZodRegistry");
|
|
27084
|
+
}, __name(_e, "$ZodRegistry"), __name2(_e, "$ZodRegistry"), __name22(_e, "$ZodRegistry"), _e);
|
|
26880
27085
|
function registry2() {
|
|
26881
27086
|
return new $ZodRegistry2();
|
|
26882
27087
|
}
|
|
@@ -26885,6 +27090,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26885
27090
|
__name22(registry2, "registry");
|
|
26886
27091
|
(_a22 = globalThis).__zod_globalRegistry ?? (_a22.__zod_globalRegistry = registry2());
|
|
26887
27092
|
var globalRegistry2 = globalThis.__zod_globalRegistry;
|
|
27093
|
+
// @__NO_SIDE_EFFECTS__
|
|
26888
27094
|
function _string2(Class22, params) {
|
|
26889
27095
|
return new Class22({
|
|
26890
27096
|
type: "string",
|
|
@@ -26894,6 +27100,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26894
27100
|
__name(_string2, "_string");
|
|
26895
27101
|
__name2(_string2, "_string");
|
|
26896
27102
|
__name22(_string2, "_string");
|
|
27103
|
+
// @__NO_SIDE_EFFECTS__
|
|
26897
27104
|
function _coercedString2(Class22, params) {
|
|
26898
27105
|
return new Class22({
|
|
26899
27106
|
type: "string",
|
|
@@ -26904,6 +27111,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26904
27111
|
__name(_coercedString2, "_coercedString");
|
|
26905
27112
|
__name2(_coercedString2, "_coercedString");
|
|
26906
27113
|
__name22(_coercedString2, "_coercedString");
|
|
27114
|
+
// @__NO_SIDE_EFFECTS__
|
|
26907
27115
|
function _email2(Class22, params) {
|
|
26908
27116
|
return new Class22({
|
|
26909
27117
|
type: "string",
|
|
@@ -26916,6 +27124,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26916
27124
|
__name(_email2, "_email");
|
|
26917
27125
|
__name2(_email2, "_email");
|
|
26918
27126
|
__name22(_email2, "_email");
|
|
27127
|
+
// @__NO_SIDE_EFFECTS__
|
|
26919
27128
|
function _guid2(Class22, params) {
|
|
26920
27129
|
return new Class22({
|
|
26921
27130
|
type: "string",
|
|
@@ -26928,6 +27137,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26928
27137
|
__name(_guid2, "_guid");
|
|
26929
27138
|
__name2(_guid2, "_guid");
|
|
26930
27139
|
__name22(_guid2, "_guid");
|
|
27140
|
+
// @__NO_SIDE_EFFECTS__
|
|
26931
27141
|
function _uuid2(Class22, params) {
|
|
26932
27142
|
return new Class22({
|
|
26933
27143
|
type: "string",
|
|
@@ -26940,6 +27150,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26940
27150
|
__name(_uuid2, "_uuid");
|
|
26941
27151
|
__name2(_uuid2, "_uuid");
|
|
26942
27152
|
__name22(_uuid2, "_uuid");
|
|
27153
|
+
// @__NO_SIDE_EFFECTS__
|
|
26943
27154
|
function _uuidv42(Class22, params) {
|
|
26944
27155
|
return new Class22({
|
|
26945
27156
|
type: "string",
|
|
@@ -26953,6 +27164,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26953
27164
|
__name(_uuidv42, "_uuidv4");
|
|
26954
27165
|
__name2(_uuidv42, "_uuidv4");
|
|
26955
27166
|
__name22(_uuidv42, "_uuidv4");
|
|
27167
|
+
// @__NO_SIDE_EFFECTS__
|
|
26956
27168
|
function _uuidv62(Class22, params) {
|
|
26957
27169
|
return new Class22({
|
|
26958
27170
|
type: "string",
|
|
@@ -26966,6 +27178,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26966
27178
|
__name(_uuidv62, "_uuidv6");
|
|
26967
27179
|
__name2(_uuidv62, "_uuidv6");
|
|
26968
27180
|
__name22(_uuidv62, "_uuidv6");
|
|
27181
|
+
// @__NO_SIDE_EFFECTS__
|
|
26969
27182
|
function _uuidv72(Class22, params) {
|
|
26970
27183
|
return new Class22({
|
|
26971
27184
|
type: "string",
|
|
@@ -26979,6 +27192,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26979
27192
|
__name(_uuidv72, "_uuidv7");
|
|
26980
27193
|
__name2(_uuidv72, "_uuidv7");
|
|
26981
27194
|
__name22(_uuidv72, "_uuidv7");
|
|
27195
|
+
// @__NO_SIDE_EFFECTS__
|
|
26982
27196
|
function _url2(Class22, params) {
|
|
26983
27197
|
return new Class22({
|
|
26984
27198
|
type: "string",
|
|
@@ -26991,6 +27205,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
26991
27205
|
__name(_url2, "_url");
|
|
26992
27206
|
__name2(_url2, "_url");
|
|
26993
27207
|
__name22(_url2, "_url");
|
|
27208
|
+
// @__NO_SIDE_EFFECTS__
|
|
26994
27209
|
function _emoji22(Class22, params) {
|
|
26995
27210
|
return new Class22({
|
|
26996
27211
|
type: "string",
|
|
@@ -27003,6 +27218,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27003
27218
|
__name(_emoji22, "_emoji2");
|
|
27004
27219
|
__name2(_emoji22, "_emoji2");
|
|
27005
27220
|
__name22(_emoji22, "_emoji");
|
|
27221
|
+
// @__NO_SIDE_EFFECTS__
|
|
27006
27222
|
function _nanoid2(Class22, params) {
|
|
27007
27223
|
return new Class22({
|
|
27008
27224
|
type: "string",
|
|
@@ -27015,6 +27231,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27015
27231
|
__name(_nanoid2, "_nanoid");
|
|
27016
27232
|
__name2(_nanoid2, "_nanoid");
|
|
27017
27233
|
__name22(_nanoid2, "_nanoid");
|
|
27234
|
+
// @__NO_SIDE_EFFECTS__
|
|
27018
27235
|
function _cuid3(Class22, params) {
|
|
27019
27236
|
return new Class22({
|
|
27020
27237
|
type: "string",
|
|
@@ -27027,6 +27244,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27027
27244
|
__name(_cuid3, "_cuid");
|
|
27028
27245
|
__name2(_cuid3, "_cuid");
|
|
27029
27246
|
__name22(_cuid3, "_cuid");
|
|
27247
|
+
// @__NO_SIDE_EFFECTS__
|
|
27030
27248
|
function _cuid22(Class22, params) {
|
|
27031
27249
|
return new Class22({
|
|
27032
27250
|
type: "string",
|
|
@@ -27039,6 +27257,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27039
27257
|
__name(_cuid22, "_cuid2");
|
|
27040
27258
|
__name2(_cuid22, "_cuid2");
|
|
27041
27259
|
__name22(_cuid22, "_cuid2");
|
|
27260
|
+
// @__NO_SIDE_EFFECTS__
|
|
27042
27261
|
function _ulid2(Class22, params) {
|
|
27043
27262
|
return new Class22({
|
|
27044
27263
|
type: "string",
|
|
@@ -27051,6 +27270,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27051
27270
|
__name(_ulid2, "_ulid");
|
|
27052
27271
|
__name2(_ulid2, "_ulid");
|
|
27053
27272
|
__name22(_ulid2, "_ulid");
|
|
27273
|
+
// @__NO_SIDE_EFFECTS__
|
|
27054
27274
|
function _xid2(Class22, params) {
|
|
27055
27275
|
return new Class22({
|
|
27056
27276
|
type: "string",
|
|
@@ -27063,6 +27283,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27063
27283
|
__name(_xid2, "_xid");
|
|
27064
27284
|
__name2(_xid2, "_xid");
|
|
27065
27285
|
__name22(_xid2, "_xid");
|
|
27286
|
+
// @__NO_SIDE_EFFECTS__
|
|
27066
27287
|
function _ksuid2(Class22, params) {
|
|
27067
27288
|
return new Class22({
|
|
27068
27289
|
type: "string",
|
|
@@ -27075,6 +27296,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27075
27296
|
__name(_ksuid2, "_ksuid");
|
|
27076
27297
|
__name2(_ksuid2, "_ksuid");
|
|
27077
27298
|
__name22(_ksuid2, "_ksuid");
|
|
27299
|
+
// @__NO_SIDE_EFFECTS__
|
|
27078
27300
|
function _ipv42(Class22, params) {
|
|
27079
27301
|
return new Class22({
|
|
27080
27302
|
type: "string",
|
|
@@ -27087,6 +27309,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27087
27309
|
__name(_ipv42, "_ipv4");
|
|
27088
27310
|
__name2(_ipv42, "_ipv4");
|
|
27089
27311
|
__name22(_ipv42, "_ipv4");
|
|
27312
|
+
// @__NO_SIDE_EFFECTS__
|
|
27090
27313
|
function _ipv62(Class22, params) {
|
|
27091
27314
|
return new Class22({
|
|
27092
27315
|
type: "string",
|
|
@@ -27099,6 +27322,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27099
27322
|
__name(_ipv62, "_ipv6");
|
|
27100
27323
|
__name2(_ipv62, "_ipv6");
|
|
27101
27324
|
__name22(_ipv62, "_ipv6");
|
|
27325
|
+
// @__NO_SIDE_EFFECTS__
|
|
27102
27326
|
function _mac2(Class22, params) {
|
|
27103
27327
|
return new Class22({
|
|
27104
27328
|
type: "string",
|
|
@@ -27111,6 +27335,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27111
27335
|
__name(_mac2, "_mac");
|
|
27112
27336
|
__name2(_mac2, "_mac");
|
|
27113
27337
|
__name22(_mac2, "_mac");
|
|
27338
|
+
// @__NO_SIDE_EFFECTS__
|
|
27114
27339
|
function _cidrv42(Class22, params) {
|
|
27115
27340
|
return new Class22({
|
|
27116
27341
|
type: "string",
|
|
@@ -27123,6 +27348,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27123
27348
|
__name(_cidrv42, "_cidrv4");
|
|
27124
27349
|
__name2(_cidrv42, "_cidrv4");
|
|
27125
27350
|
__name22(_cidrv42, "_cidrv4");
|
|
27351
|
+
// @__NO_SIDE_EFFECTS__
|
|
27126
27352
|
function _cidrv62(Class22, params) {
|
|
27127
27353
|
return new Class22({
|
|
27128
27354
|
type: "string",
|
|
@@ -27135,6 +27361,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27135
27361
|
__name(_cidrv62, "_cidrv6");
|
|
27136
27362
|
__name2(_cidrv62, "_cidrv6");
|
|
27137
27363
|
__name22(_cidrv62, "_cidrv6");
|
|
27364
|
+
// @__NO_SIDE_EFFECTS__
|
|
27138
27365
|
function _base642(Class22, params) {
|
|
27139
27366
|
return new Class22({
|
|
27140
27367
|
type: "string",
|
|
@@ -27147,6 +27374,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27147
27374
|
__name(_base642, "_base64");
|
|
27148
27375
|
__name2(_base642, "_base64");
|
|
27149
27376
|
__name22(_base642, "_base64");
|
|
27377
|
+
// @__NO_SIDE_EFFECTS__
|
|
27150
27378
|
function _base64url2(Class22, params) {
|
|
27151
27379
|
return new Class22({
|
|
27152
27380
|
type: "string",
|
|
@@ -27159,6 +27387,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27159
27387
|
__name(_base64url2, "_base64url");
|
|
27160
27388
|
__name2(_base64url2, "_base64url");
|
|
27161
27389
|
__name22(_base64url2, "_base64url");
|
|
27390
|
+
// @__NO_SIDE_EFFECTS__
|
|
27162
27391
|
function _e1642(Class22, params) {
|
|
27163
27392
|
return new Class22({
|
|
27164
27393
|
type: "string",
|
|
@@ -27171,6 +27400,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27171
27400
|
__name(_e1642, "_e164");
|
|
27172
27401
|
__name2(_e1642, "_e164");
|
|
27173
27402
|
__name22(_e1642, "_e164");
|
|
27403
|
+
// @__NO_SIDE_EFFECTS__
|
|
27174
27404
|
function _jwt2(Class22, params) {
|
|
27175
27405
|
return new Class22({
|
|
27176
27406
|
type: "string",
|
|
@@ -27190,6 +27420,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27190
27420
|
Millisecond: 3,
|
|
27191
27421
|
Microsecond: 6
|
|
27192
27422
|
};
|
|
27423
|
+
// @__NO_SIDE_EFFECTS__
|
|
27193
27424
|
function _isoDateTime2(Class22, params) {
|
|
27194
27425
|
return new Class22({
|
|
27195
27426
|
type: "string",
|
|
@@ -27204,6 +27435,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27204
27435
|
__name(_isoDateTime2, "_isoDateTime");
|
|
27205
27436
|
__name2(_isoDateTime2, "_isoDateTime");
|
|
27206
27437
|
__name22(_isoDateTime2, "_isoDateTime");
|
|
27438
|
+
// @__NO_SIDE_EFFECTS__
|
|
27207
27439
|
function _isoDate2(Class22, params) {
|
|
27208
27440
|
return new Class22({
|
|
27209
27441
|
type: "string",
|
|
@@ -27215,6 +27447,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27215
27447
|
__name(_isoDate2, "_isoDate");
|
|
27216
27448
|
__name2(_isoDate2, "_isoDate");
|
|
27217
27449
|
__name22(_isoDate2, "_isoDate");
|
|
27450
|
+
// @__NO_SIDE_EFFECTS__
|
|
27218
27451
|
function _isoTime2(Class22, params) {
|
|
27219
27452
|
return new Class22({
|
|
27220
27453
|
type: "string",
|
|
@@ -27227,6 +27460,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27227
27460
|
__name(_isoTime2, "_isoTime");
|
|
27228
27461
|
__name2(_isoTime2, "_isoTime");
|
|
27229
27462
|
__name22(_isoTime2, "_isoTime");
|
|
27463
|
+
// @__NO_SIDE_EFFECTS__
|
|
27230
27464
|
function _isoDuration2(Class22, params) {
|
|
27231
27465
|
return new Class22({
|
|
27232
27466
|
type: "string",
|
|
@@ -27238,6 +27472,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27238
27472
|
__name(_isoDuration2, "_isoDuration");
|
|
27239
27473
|
__name2(_isoDuration2, "_isoDuration");
|
|
27240
27474
|
__name22(_isoDuration2, "_isoDuration");
|
|
27475
|
+
// @__NO_SIDE_EFFECTS__
|
|
27241
27476
|
function _number2(Class22, params) {
|
|
27242
27477
|
return new Class22({
|
|
27243
27478
|
type: "number",
|
|
@@ -27248,6 +27483,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27248
27483
|
__name(_number2, "_number");
|
|
27249
27484
|
__name2(_number2, "_number");
|
|
27250
27485
|
__name22(_number2, "_number");
|
|
27486
|
+
// @__NO_SIDE_EFFECTS__
|
|
27251
27487
|
function _coercedNumber2(Class22, params) {
|
|
27252
27488
|
return new Class22({
|
|
27253
27489
|
type: "number",
|
|
@@ -27259,6 +27495,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27259
27495
|
__name(_coercedNumber2, "_coercedNumber");
|
|
27260
27496
|
__name2(_coercedNumber2, "_coercedNumber");
|
|
27261
27497
|
__name22(_coercedNumber2, "_coercedNumber");
|
|
27498
|
+
// @__NO_SIDE_EFFECTS__
|
|
27262
27499
|
function _int2(Class22, params) {
|
|
27263
27500
|
return new Class22({
|
|
27264
27501
|
type: "number",
|
|
@@ -27271,6 +27508,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27271
27508
|
__name(_int2, "_int");
|
|
27272
27509
|
__name2(_int2, "_int");
|
|
27273
27510
|
__name22(_int2, "_int");
|
|
27511
|
+
// @__NO_SIDE_EFFECTS__
|
|
27274
27512
|
function _float322(Class22, params) {
|
|
27275
27513
|
return new Class22({
|
|
27276
27514
|
type: "number",
|
|
@@ -27283,6 +27521,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27283
27521
|
__name(_float322, "_float32");
|
|
27284
27522
|
__name2(_float322, "_float32");
|
|
27285
27523
|
__name22(_float322, "_float32");
|
|
27524
|
+
// @__NO_SIDE_EFFECTS__
|
|
27286
27525
|
function _float642(Class22, params) {
|
|
27287
27526
|
return new Class22({
|
|
27288
27527
|
type: "number",
|
|
@@ -27295,6 +27534,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27295
27534
|
__name(_float642, "_float64");
|
|
27296
27535
|
__name2(_float642, "_float64");
|
|
27297
27536
|
__name22(_float642, "_float64");
|
|
27537
|
+
// @__NO_SIDE_EFFECTS__
|
|
27298
27538
|
function _int322(Class22, params) {
|
|
27299
27539
|
return new Class22({
|
|
27300
27540
|
type: "number",
|
|
@@ -27307,6 +27547,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27307
27547
|
__name(_int322, "_int32");
|
|
27308
27548
|
__name2(_int322, "_int32");
|
|
27309
27549
|
__name22(_int322, "_int32");
|
|
27550
|
+
// @__NO_SIDE_EFFECTS__
|
|
27310
27551
|
function _uint322(Class22, params) {
|
|
27311
27552
|
return new Class22({
|
|
27312
27553
|
type: "number",
|
|
@@ -27319,6 +27560,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27319
27560
|
__name(_uint322, "_uint32");
|
|
27320
27561
|
__name2(_uint322, "_uint32");
|
|
27321
27562
|
__name22(_uint322, "_uint32");
|
|
27563
|
+
// @__NO_SIDE_EFFECTS__
|
|
27322
27564
|
function _boolean2(Class22, params) {
|
|
27323
27565
|
return new Class22({
|
|
27324
27566
|
type: "boolean",
|
|
@@ -27328,6 +27570,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27328
27570
|
__name(_boolean2, "_boolean");
|
|
27329
27571
|
__name2(_boolean2, "_boolean");
|
|
27330
27572
|
__name22(_boolean2, "_boolean");
|
|
27573
|
+
// @__NO_SIDE_EFFECTS__
|
|
27331
27574
|
function _coercedBoolean2(Class22, params) {
|
|
27332
27575
|
return new Class22({
|
|
27333
27576
|
type: "boolean",
|
|
@@ -27338,6 +27581,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27338
27581
|
__name(_coercedBoolean2, "_coercedBoolean");
|
|
27339
27582
|
__name2(_coercedBoolean2, "_coercedBoolean");
|
|
27340
27583
|
__name22(_coercedBoolean2, "_coercedBoolean");
|
|
27584
|
+
// @__NO_SIDE_EFFECTS__
|
|
27341
27585
|
function _bigint2(Class22, params) {
|
|
27342
27586
|
return new Class22({
|
|
27343
27587
|
type: "bigint",
|
|
@@ -27347,6 +27591,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27347
27591
|
__name(_bigint2, "_bigint");
|
|
27348
27592
|
__name2(_bigint2, "_bigint");
|
|
27349
27593
|
__name22(_bigint2, "_bigint");
|
|
27594
|
+
// @__NO_SIDE_EFFECTS__
|
|
27350
27595
|
function _coercedBigint2(Class22, params) {
|
|
27351
27596
|
return new Class22({
|
|
27352
27597
|
type: "bigint",
|
|
@@ -27357,6 +27602,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27357
27602
|
__name(_coercedBigint2, "_coercedBigint");
|
|
27358
27603
|
__name2(_coercedBigint2, "_coercedBigint");
|
|
27359
27604
|
__name22(_coercedBigint2, "_coercedBigint");
|
|
27605
|
+
// @__NO_SIDE_EFFECTS__
|
|
27360
27606
|
function _int642(Class22, params) {
|
|
27361
27607
|
return new Class22({
|
|
27362
27608
|
type: "bigint",
|
|
@@ -27369,6 +27615,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27369
27615
|
__name(_int642, "_int64");
|
|
27370
27616
|
__name2(_int642, "_int64");
|
|
27371
27617
|
__name22(_int642, "_int64");
|
|
27618
|
+
// @__NO_SIDE_EFFECTS__
|
|
27372
27619
|
function _uint642(Class22, params) {
|
|
27373
27620
|
return new Class22({
|
|
27374
27621
|
type: "bigint",
|
|
@@ -27381,6 +27628,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27381
27628
|
__name(_uint642, "_uint64");
|
|
27382
27629
|
__name2(_uint642, "_uint64");
|
|
27383
27630
|
__name22(_uint642, "_uint64");
|
|
27631
|
+
// @__NO_SIDE_EFFECTS__
|
|
27384
27632
|
function _symbol2(Class22, params) {
|
|
27385
27633
|
return new Class22({
|
|
27386
27634
|
type: "symbol",
|
|
@@ -27390,6 +27638,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27390
27638
|
__name(_symbol2, "_symbol");
|
|
27391
27639
|
__name2(_symbol2, "_symbol");
|
|
27392
27640
|
__name22(_symbol2, "_symbol");
|
|
27641
|
+
// @__NO_SIDE_EFFECTS__
|
|
27393
27642
|
function _undefined22(Class22, params) {
|
|
27394
27643
|
return new Class22({
|
|
27395
27644
|
type: "undefined",
|
|
@@ -27399,6 +27648,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27399
27648
|
__name(_undefined22, "_undefined2");
|
|
27400
27649
|
__name2(_undefined22, "_undefined2");
|
|
27401
27650
|
__name22(_undefined22, "_undefined");
|
|
27651
|
+
// @__NO_SIDE_EFFECTS__
|
|
27402
27652
|
function _null22(Class22, params) {
|
|
27403
27653
|
return new Class22({
|
|
27404
27654
|
type: "null",
|
|
@@ -27408,6 +27658,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27408
27658
|
__name(_null22, "_null2");
|
|
27409
27659
|
__name2(_null22, "_null2");
|
|
27410
27660
|
__name22(_null22, "_null");
|
|
27661
|
+
// @__NO_SIDE_EFFECTS__
|
|
27411
27662
|
function _any2(Class22) {
|
|
27412
27663
|
return new Class22({
|
|
27413
27664
|
type: "any"
|
|
@@ -27416,6 +27667,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27416
27667
|
__name(_any2, "_any");
|
|
27417
27668
|
__name2(_any2, "_any");
|
|
27418
27669
|
__name22(_any2, "_any");
|
|
27670
|
+
// @__NO_SIDE_EFFECTS__
|
|
27419
27671
|
function _unknown2(Class22) {
|
|
27420
27672
|
return new Class22({
|
|
27421
27673
|
type: "unknown"
|
|
@@ -27424,6 +27676,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27424
27676
|
__name(_unknown2, "_unknown");
|
|
27425
27677
|
__name2(_unknown2, "_unknown");
|
|
27426
27678
|
__name22(_unknown2, "_unknown");
|
|
27679
|
+
// @__NO_SIDE_EFFECTS__
|
|
27427
27680
|
function _never2(Class22, params) {
|
|
27428
27681
|
return new Class22({
|
|
27429
27682
|
type: "never",
|
|
@@ -27433,6 +27686,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27433
27686
|
__name(_never2, "_never");
|
|
27434
27687
|
__name2(_never2, "_never");
|
|
27435
27688
|
__name22(_never2, "_never");
|
|
27689
|
+
// @__NO_SIDE_EFFECTS__
|
|
27436
27690
|
function _void3(Class22, params) {
|
|
27437
27691
|
return new Class22({
|
|
27438
27692
|
type: "void",
|
|
@@ -27442,6 +27696,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27442
27696
|
__name(_void3, "_void");
|
|
27443
27697
|
__name2(_void3, "_void");
|
|
27444
27698
|
__name22(_void3, "_void");
|
|
27699
|
+
// @__NO_SIDE_EFFECTS__
|
|
27445
27700
|
function _date2(Class22, params) {
|
|
27446
27701
|
return new Class22({
|
|
27447
27702
|
type: "date",
|
|
@@ -27451,6 +27706,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27451
27706
|
__name(_date2, "_date");
|
|
27452
27707
|
__name2(_date2, "_date");
|
|
27453
27708
|
__name22(_date2, "_date");
|
|
27709
|
+
// @__NO_SIDE_EFFECTS__
|
|
27454
27710
|
function _coercedDate2(Class22, params) {
|
|
27455
27711
|
return new Class22({
|
|
27456
27712
|
type: "date",
|
|
@@ -27461,6 +27717,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27461
27717
|
__name(_coercedDate2, "_coercedDate");
|
|
27462
27718
|
__name2(_coercedDate2, "_coercedDate");
|
|
27463
27719
|
__name22(_coercedDate2, "_coercedDate");
|
|
27720
|
+
// @__NO_SIDE_EFFECTS__
|
|
27464
27721
|
function _nan2(Class22, params) {
|
|
27465
27722
|
return new Class22({
|
|
27466
27723
|
type: "nan",
|
|
@@ -27470,6 +27727,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27470
27727
|
__name(_nan2, "_nan");
|
|
27471
27728
|
__name2(_nan2, "_nan");
|
|
27472
27729
|
__name22(_nan2, "_nan");
|
|
27730
|
+
// @__NO_SIDE_EFFECTS__
|
|
27473
27731
|
function _lt2(value, params) {
|
|
27474
27732
|
return new $ZodCheckLessThan2({
|
|
27475
27733
|
check: "less_than",
|
|
@@ -27481,6 +27739,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27481
27739
|
__name(_lt2, "_lt");
|
|
27482
27740
|
__name2(_lt2, "_lt");
|
|
27483
27741
|
__name22(_lt2, "_lt");
|
|
27742
|
+
// @__NO_SIDE_EFFECTS__
|
|
27484
27743
|
function _lte2(value, params) {
|
|
27485
27744
|
return new $ZodCheckLessThan2({
|
|
27486
27745
|
check: "less_than",
|
|
@@ -27492,6 +27751,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27492
27751
|
__name(_lte2, "_lte");
|
|
27493
27752
|
__name2(_lte2, "_lte");
|
|
27494
27753
|
__name22(_lte2, "_lte");
|
|
27754
|
+
// @__NO_SIDE_EFFECTS__
|
|
27495
27755
|
function _gt2(value, params) {
|
|
27496
27756
|
return new $ZodCheckGreaterThan2({
|
|
27497
27757
|
check: "greater_than",
|
|
@@ -27503,6 +27763,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27503
27763
|
__name(_gt2, "_gt");
|
|
27504
27764
|
__name2(_gt2, "_gt");
|
|
27505
27765
|
__name22(_gt2, "_gt");
|
|
27766
|
+
// @__NO_SIDE_EFFECTS__
|
|
27506
27767
|
function _gte2(value, params) {
|
|
27507
27768
|
return new $ZodCheckGreaterThan2({
|
|
27508
27769
|
check: "greater_than",
|
|
@@ -27514,30 +27775,35 @@ var require_types_cjs_development = __commonJS({
|
|
|
27514
27775
|
__name(_gte2, "_gte");
|
|
27515
27776
|
__name2(_gte2, "_gte");
|
|
27516
27777
|
__name22(_gte2, "_gte");
|
|
27778
|
+
// @__NO_SIDE_EFFECTS__
|
|
27517
27779
|
function _positive2(params) {
|
|
27518
27780
|
return /* @__PURE__ */ _gt2(0, params);
|
|
27519
27781
|
}
|
|
27520
27782
|
__name(_positive2, "_positive");
|
|
27521
27783
|
__name2(_positive2, "_positive");
|
|
27522
27784
|
__name22(_positive2, "_positive");
|
|
27785
|
+
// @__NO_SIDE_EFFECTS__
|
|
27523
27786
|
function _negative2(params) {
|
|
27524
27787
|
return /* @__PURE__ */ _lt2(0, params);
|
|
27525
27788
|
}
|
|
27526
27789
|
__name(_negative2, "_negative");
|
|
27527
27790
|
__name2(_negative2, "_negative");
|
|
27528
27791
|
__name22(_negative2, "_negative");
|
|
27792
|
+
// @__NO_SIDE_EFFECTS__
|
|
27529
27793
|
function _nonpositive2(params) {
|
|
27530
27794
|
return /* @__PURE__ */ _lte2(0, params);
|
|
27531
27795
|
}
|
|
27532
27796
|
__name(_nonpositive2, "_nonpositive");
|
|
27533
27797
|
__name2(_nonpositive2, "_nonpositive");
|
|
27534
27798
|
__name22(_nonpositive2, "_nonpositive");
|
|
27799
|
+
// @__NO_SIDE_EFFECTS__
|
|
27535
27800
|
function _nonnegative2(params) {
|
|
27536
27801
|
return /* @__PURE__ */ _gte2(0, params);
|
|
27537
27802
|
}
|
|
27538
27803
|
__name(_nonnegative2, "_nonnegative");
|
|
27539
27804
|
__name2(_nonnegative2, "_nonnegative");
|
|
27540
27805
|
__name22(_nonnegative2, "_nonnegative");
|
|
27806
|
+
// @__NO_SIDE_EFFECTS__
|
|
27541
27807
|
function _multipleOf2(value, params) {
|
|
27542
27808
|
return new $ZodCheckMultipleOf2({
|
|
27543
27809
|
check: "multiple_of",
|
|
@@ -27548,6 +27814,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27548
27814
|
__name(_multipleOf2, "_multipleOf");
|
|
27549
27815
|
__name2(_multipleOf2, "_multipleOf");
|
|
27550
27816
|
__name22(_multipleOf2, "_multipleOf");
|
|
27817
|
+
// @__NO_SIDE_EFFECTS__
|
|
27551
27818
|
function _maxSize2(maximum, params) {
|
|
27552
27819
|
return new $ZodCheckMaxSize2({
|
|
27553
27820
|
check: "max_size",
|
|
@@ -27558,6 +27825,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27558
27825
|
__name(_maxSize2, "_maxSize");
|
|
27559
27826
|
__name2(_maxSize2, "_maxSize");
|
|
27560
27827
|
__name22(_maxSize2, "_maxSize");
|
|
27828
|
+
// @__NO_SIDE_EFFECTS__
|
|
27561
27829
|
function _minSize2(minimum, params) {
|
|
27562
27830
|
return new $ZodCheckMinSize2({
|
|
27563
27831
|
check: "min_size",
|
|
@@ -27568,6 +27836,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27568
27836
|
__name(_minSize2, "_minSize");
|
|
27569
27837
|
__name2(_minSize2, "_minSize");
|
|
27570
27838
|
__name22(_minSize2, "_minSize");
|
|
27839
|
+
// @__NO_SIDE_EFFECTS__
|
|
27571
27840
|
function _size2(size, params) {
|
|
27572
27841
|
return new $ZodCheckSizeEquals2({
|
|
27573
27842
|
check: "size_equals",
|
|
@@ -27578,6 +27847,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27578
27847
|
__name(_size2, "_size");
|
|
27579
27848
|
__name2(_size2, "_size");
|
|
27580
27849
|
__name22(_size2, "_size");
|
|
27850
|
+
// @__NO_SIDE_EFFECTS__
|
|
27581
27851
|
function _maxLength2(maximum, params) {
|
|
27582
27852
|
const ch = new $ZodCheckMaxLength2({
|
|
27583
27853
|
check: "max_length",
|
|
@@ -27589,6 +27859,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27589
27859
|
__name(_maxLength2, "_maxLength");
|
|
27590
27860
|
__name2(_maxLength2, "_maxLength");
|
|
27591
27861
|
__name22(_maxLength2, "_maxLength");
|
|
27862
|
+
// @__NO_SIDE_EFFECTS__
|
|
27592
27863
|
function _minLength2(minimum, params) {
|
|
27593
27864
|
return new $ZodCheckMinLength2({
|
|
27594
27865
|
check: "min_length",
|
|
@@ -27599,6 +27870,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27599
27870
|
__name(_minLength2, "_minLength");
|
|
27600
27871
|
__name2(_minLength2, "_minLength");
|
|
27601
27872
|
__name22(_minLength2, "_minLength");
|
|
27873
|
+
// @__NO_SIDE_EFFECTS__
|
|
27602
27874
|
function _length2(length, params) {
|
|
27603
27875
|
return new $ZodCheckLengthEquals2({
|
|
27604
27876
|
check: "length_equals",
|
|
@@ -27609,6 +27881,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27609
27881
|
__name(_length2, "_length");
|
|
27610
27882
|
__name2(_length2, "_length");
|
|
27611
27883
|
__name22(_length2, "_length");
|
|
27884
|
+
// @__NO_SIDE_EFFECTS__
|
|
27612
27885
|
function _regex2(pattern, params) {
|
|
27613
27886
|
return new $ZodCheckRegex2({
|
|
27614
27887
|
check: "string_format",
|
|
@@ -27620,6 +27893,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27620
27893
|
__name(_regex2, "_regex");
|
|
27621
27894
|
__name2(_regex2, "_regex");
|
|
27622
27895
|
__name22(_regex2, "_regex");
|
|
27896
|
+
// @__NO_SIDE_EFFECTS__
|
|
27623
27897
|
function _lowercase2(params) {
|
|
27624
27898
|
return new $ZodCheckLowerCase2({
|
|
27625
27899
|
check: "string_format",
|
|
@@ -27630,6 +27904,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27630
27904
|
__name(_lowercase2, "_lowercase");
|
|
27631
27905
|
__name2(_lowercase2, "_lowercase");
|
|
27632
27906
|
__name22(_lowercase2, "_lowercase");
|
|
27907
|
+
// @__NO_SIDE_EFFECTS__
|
|
27633
27908
|
function _uppercase2(params) {
|
|
27634
27909
|
return new $ZodCheckUpperCase2({
|
|
27635
27910
|
check: "string_format",
|
|
@@ -27640,6 +27915,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27640
27915
|
__name(_uppercase2, "_uppercase");
|
|
27641
27916
|
__name2(_uppercase2, "_uppercase");
|
|
27642
27917
|
__name22(_uppercase2, "_uppercase");
|
|
27918
|
+
// @__NO_SIDE_EFFECTS__
|
|
27643
27919
|
function _includes2(includes, params) {
|
|
27644
27920
|
return new $ZodCheckIncludes2({
|
|
27645
27921
|
check: "string_format",
|
|
@@ -27651,6 +27927,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27651
27927
|
__name(_includes2, "_includes");
|
|
27652
27928
|
__name2(_includes2, "_includes");
|
|
27653
27929
|
__name22(_includes2, "_includes");
|
|
27930
|
+
// @__NO_SIDE_EFFECTS__
|
|
27654
27931
|
function _startsWith2(prefix, params) {
|
|
27655
27932
|
return new $ZodCheckStartsWith2({
|
|
27656
27933
|
check: "string_format",
|
|
@@ -27662,6 +27939,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27662
27939
|
__name(_startsWith2, "_startsWith");
|
|
27663
27940
|
__name2(_startsWith2, "_startsWith");
|
|
27664
27941
|
__name22(_startsWith2, "_startsWith");
|
|
27942
|
+
// @__NO_SIDE_EFFECTS__
|
|
27665
27943
|
function _endsWith2(suffix, params) {
|
|
27666
27944
|
return new $ZodCheckEndsWith2({
|
|
27667
27945
|
check: "string_format",
|
|
@@ -27673,6 +27951,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27673
27951
|
__name(_endsWith2, "_endsWith");
|
|
27674
27952
|
__name2(_endsWith2, "_endsWith");
|
|
27675
27953
|
__name22(_endsWith2, "_endsWith");
|
|
27954
|
+
// @__NO_SIDE_EFFECTS__
|
|
27676
27955
|
function _property2(property, schema, params) {
|
|
27677
27956
|
return new $ZodCheckProperty2({
|
|
27678
27957
|
check: "property",
|
|
@@ -27684,6 +27963,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27684
27963
|
__name(_property2, "_property");
|
|
27685
27964
|
__name2(_property2, "_property");
|
|
27686
27965
|
__name22(_property2, "_property");
|
|
27966
|
+
// @__NO_SIDE_EFFECTS__
|
|
27687
27967
|
function _mime2(types, params) {
|
|
27688
27968
|
return new $ZodCheckMimeType2({
|
|
27689
27969
|
check: "mime_type",
|
|
@@ -27694,6 +27974,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27694
27974
|
__name(_mime2, "_mime");
|
|
27695
27975
|
__name2(_mime2, "_mime");
|
|
27696
27976
|
__name22(_mime2, "_mime");
|
|
27977
|
+
// @__NO_SIDE_EFFECTS__
|
|
27697
27978
|
function _overwrite2(tx) {
|
|
27698
27979
|
return new $ZodCheckOverwrite2({
|
|
27699
27980
|
check: "overwrite",
|
|
@@ -27703,46 +27984,56 @@ var require_types_cjs_development = __commonJS({
|
|
|
27703
27984
|
__name(_overwrite2, "_overwrite");
|
|
27704
27985
|
__name2(_overwrite2, "_overwrite");
|
|
27705
27986
|
__name22(_overwrite2, "_overwrite");
|
|
27987
|
+
// @__NO_SIDE_EFFECTS__
|
|
27706
27988
|
function _normalize2(form) {
|
|
27707
27989
|
return /* @__PURE__ */ _overwrite2((input) => input.normalize(form));
|
|
27708
27990
|
}
|
|
27709
27991
|
__name(_normalize2, "_normalize");
|
|
27710
27992
|
__name2(_normalize2, "_normalize");
|
|
27711
27993
|
__name22(_normalize2, "_normalize");
|
|
27994
|
+
// @__NO_SIDE_EFFECTS__
|
|
27712
27995
|
function _trim2() {
|
|
27713
27996
|
return /* @__PURE__ */ _overwrite2((input) => input.trim());
|
|
27714
27997
|
}
|
|
27715
27998
|
__name(_trim2, "_trim");
|
|
27716
27999
|
__name2(_trim2, "_trim");
|
|
27717
28000
|
__name22(_trim2, "_trim");
|
|
28001
|
+
// @__NO_SIDE_EFFECTS__
|
|
27718
28002
|
function _toLowerCase2() {
|
|
27719
28003
|
return /* @__PURE__ */ _overwrite2((input) => input.toLowerCase());
|
|
27720
28004
|
}
|
|
27721
28005
|
__name(_toLowerCase2, "_toLowerCase");
|
|
27722
28006
|
__name2(_toLowerCase2, "_toLowerCase");
|
|
27723
28007
|
__name22(_toLowerCase2, "_toLowerCase");
|
|
28008
|
+
// @__NO_SIDE_EFFECTS__
|
|
27724
28009
|
function _toUpperCase2() {
|
|
27725
28010
|
return /* @__PURE__ */ _overwrite2((input) => input.toUpperCase());
|
|
27726
28011
|
}
|
|
27727
28012
|
__name(_toUpperCase2, "_toUpperCase");
|
|
27728
28013
|
__name2(_toUpperCase2, "_toUpperCase");
|
|
27729
28014
|
__name22(_toUpperCase2, "_toUpperCase");
|
|
28015
|
+
// @__NO_SIDE_EFFECTS__
|
|
27730
28016
|
function _slugify2() {
|
|
27731
28017
|
return /* @__PURE__ */ _overwrite2((input) => slugify2(input));
|
|
27732
28018
|
}
|
|
27733
28019
|
__name(_slugify2, "_slugify");
|
|
27734
28020
|
__name2(_slugify2, "_slugify");
|
|
27735
28021
|
__name22(_slugify2, "_slugify");
|
|
28022
|
+
// @__NO_SIDE_EFFECTS__
|
|
27736
28023
|
function _array2(Class22, element, params) {
|
|
27737
28024
|
return new Class22({
|
|
27738
28025
|
type: "array",
|
|
27739
28026
|
element,
|
|
28027
|
+
// get element() {
|
|
28028
|
+
// return element;
|
|
28029
|
+
// },
|
|
27740
28030
|
...normalizeParams2(params)
|
|
27741
28031
|
});
|
|
27742
28032
|
}
|
|
27743
28033
|
__name(_array2, "_array");
|
|
27744
28034
|
__name2(_array2, "_array");
|
|
27745
28035
|
__name22(_array2, "_array");
|
|
28036
|
+
// @__NO_SIDE_EFFECTS__
|
|
27746
28037
|
function _union2(Class22, options, params) {
|
|
27747
28038
|
return new Class22({
|
|
27748
28039
|
type: "union",
|
|
@@ -27764,6 +28055,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27764
28055
|
__name(_xor2, "_xor");
|
|
27765
28056
|
__name2(_xor2, "_xor");
|
|
27766
28057
|
__name22(_xor2, "_xor");
|
|
28058
|
+
// @__NO_SIDE_EFFECTS__
|
|
27767
28059
|
function _discriminatedUnion2(Class22, discriminator, options, params) {
|
|
27768
28060
|
return new Class22({
|
|
27769
28061
|
type: "union",
|
|
@@ -27775,6 +28067,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27775
28067
|
__name(_discriminatedUnion2, "_discriminatedUnion");
|
|
27776
28068
|
__name2(_discriminatedUnion2, "_discriminatedUnion");
|
|
27777
28069
|
__name22(_discriminatedUnion2, "_discriminatedUnion");
|
|
28070
|
+
// @__NO_SIDE_EFFECTS__
|
|
27778
28071
|
function _intersection2(Class22, left, right) {
|
|
27779
28072
|
return new Class22({
|
|
27780
28073
|
type: "intersection",
|
|
@@ -27785,6 +28078,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27785
28078
|
__name(_intersection2, "_intersection");
|
|
27786
28079
|
__name2(_intersection2, "_intersection");
|
|
27787
28080
|
__name22(_intersection2, "_intersection");
|
|
28081
|
+
// @__NO_SIDE_EFFECTS__
|
|
27788
28082
|
function _tuple2(Class22, items, _paramsOrRest, _params) {
|
|
27789
28083
|
const hasRest = _paramsOrRest instanceof $ZodType2;
|
|
27790
28084
|
const params = hasRest ? _params : _paramsOrRest;
|
|
@@ -27799,6 +28093,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27799
28093
|
__name(_tuple2, "_tuple");
|
|
27800
28094
|
__name2(_tuple2, "_tuple");
|
|
27801
28095
|
__name22(_tuple2, "_tuple");
|
|
28096
|
+
// @__NO_SIDE_EFFECTS__
|
|
27802
28097
|
function _record2(Class22, keyType, valueType, params) {
|
|
27803
28098
|
return new Class22({
|
|
27804
28099
|
type: "record",
|
|
@@ -27810,6 +28105,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27810
28105
|
__name(_record2, "_record");
|
|
27811
28106
|
__name2(_record2, "_record");
|
|
27812
28107
|
__name22(_record2, "_record");
|
|
28108
|
+
// @__NO_SIDE_EFFECTS__
|
|
27813
28109
|
function _map2(Class22, keyType, valueType, params) {
|
|
27814
28110
|
return new Class22({
|
|
27815
28111
|
type: "map",
|
|
@@ -27821,6 +28117,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27821
28117
|
__name(_map2, "_map");
|
|
27822
28118
|
__name2(_map2, "_map");
|
|
27823
28119
|
__name22(_map2, "_map");
|
|
28120
|
+
// @__NO_SIDE_EFFECTS__
|
|
27824
28121
|
function _set2(Class22, valueType, params) {
|
|
27825
28122
|
return new Class22({
|
|
27826
28123
|
type: "set",
|
|
@@ -27831,6 +28128,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27831
28128
|
__name(_set2, "_set");
|
|
27832
28129
|
__name2(_set2, "_set");
|
|
27833
28130
|
__name22(_set2, "_set");
|
|
28131
|
+
// @__NO_SIDE_EFFECTS__
|
|
27834
28132
|
function _enum3(Class22, values, params) {
|
|
27835
28133
|
const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
27836
28134
|
return new Class22({
|
|
@@ -27842,6 +28140,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27842
28140
|
__name(_enum3, "_enum");
|
|
27843
28141
|
__name2(_enum3, "_enum");
|
|
27844
28142
|
__name22(_enum3, "_enum");
|
|
28143
|
+
// @__NO_SIDE_EFFECTS__
|
|
27845
28144
|
function _nativeEnum2(Class22, entries, params) {
|
|
27846
28145
|
return new Class22({
|
|
27847
28146
|
type: "enum",
|
|
@@ -27852,6 +28151,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27852
28151
|
__name(_nativeEnum2, "_nativeEnum");
|
|
27853
28152
|
__name2(_nativeEnum2, "_nativeEnum");
|
|
27854
28153
|
__name22(_nativeEnum2, "_nativeEnum");
|
|
28154
|
+
// @__NO_SIDE_EFFECTS__
|
|
27855
28155
|
function _literal2(Class22, value, params) {
|
|
27856
28156
|
return new Class22({
|
|
27857
28157
|
type: "literal",
|
|
@@ -27862,6 +28162,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27862
28162
|
__name(_literal2, "_literal");
|
|
27863
28163
|
__name2(_literal2, "_literal");
|
|
27864
28164
|
__name22(_literal2, "_literal");
|
|
28165
|
+
// @__NO_SIDE_EFFECTS__
|
|
27865
28166
|
function _file2(Class22, params) {
|
|
27866
28167
|
return new Class22({
|
|
27867
28168
|
type: "file",
|
|
@@ -27871,6 +28172,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27871
28172
|
__name(_file2, "_file");
|
|
27872
28173
|
__name2(_file2, "_file");
|
|
27873
28174
|
__name22(_file2, "_file");
|
|
28175
|
+
// @__NO_SIDE_EFFECTS__
|
|
27874
28176
|
function _transform2(Class22, fn) {
|
|
27875
28177
|
return new Class22({
|
|
27876
28178
|
type: "transform",
|
|
@@ -27880,6 +28182,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27880
28182
|
__name(_transform2, "_transform");
|
|
27881
28183
|
__name2(_transform2, "_transform");
|
|
27882
28184
|
__name22(_transform2, "_transform");
|
|
28185
|
+
// @__NO_SIDE_EFFECTS__
|
|
27883
28186
|
function _optional2(Class22, innerType) {
|
|
27884
28187
|
return new Class22({
|
|
27885
28188
|
type: "optional",
|
|
@@ -27889,6 +28192,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27889
28192
|
__name(_optional2, "_optional");
|
|
27890
28193
|
__name2(_optional2, "_optional");
|
|
27891
28194
|
__name22(_optional2, "_optional");
|
|
28195
|
+
// @__NO_SIDE_EFFECTS__
|
|
27892
28196
|
function _nullable2(Class22, innerType) {
|
|
27893
28197
|
return new Class22({
|
|
27894
28198
|
type: "nullable",
|
|
@@ -27898,6 +28202,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27898
28202
|
__name(_nullable2, "_nullable");
|
|
27899
28203
|
__name2(_nullable2, "_nullable");
|
|
27900
28204
|
__name22(_nullable2, "_nullable");
|
|
28205
|
+
// @__NO_SIDE_EFFECTS__
|
|
27901
28206
|
function _default3(Class22, innerType, defaultValue) {
|
|
27902
28207
|
return new Class22({
|
|
27903
28208
|
type: "default",
|
|
@@ -27910,6 +28215,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27910
28215
|
__name(_default3, "_default");
|
|
27911
28216
|
__name2(_default3, "_default");
|
|
27912
28217
|
__name22(_default3, "_default");
|
|
28218
|
+
// @__NO_SIDE_EFFECTS__
|
|
27913
28219
|
function _nonoptional2(Class22, innerType, params) {
|
|
27914
28220
|
return new Class22({
|
|
27915
28221
|
type: "nonoptional",
|
|
@@ -27920,6 +28226,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27920
28226
|
__name(_nonoptional2, "_nonoptional");
|
|
27921
28227
|
__name2(_nonoptional2, "_nonoptional");
|
|
27922
28228
|
__name22(_nonoptional2, "_nonoptional");
|
|
28229
|
+
// @__NO_SIDE_EFFECTS__
|
|
27923
28230
|
function _success2(Class22, innerType) {
|
|
27924
28231
|
return new Class22({
|
|
27925
28232
|
type: "success",
|
|
@@ -27929,6 +28236,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27929
28236
|
__name(_success2, "_success");
|
|
27930
28237
|
__name2(_success2, "_success");
|
|
27931
28238
|
__name22(_success2, "_success");
|
|
28239
|
+
// @__NO_SIDE_EFFECTS__
|
|
27932
28240
|
function _catch3(Class22, innerType, catchValue) {
|
|
27933
28241
|
return new Class22({
|
|
27934
28242
|
type: "catch",
|
|
@@ -27939,6 +28247,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27939
28247
|
__name(_catch3, "_catch");
|
|
27940
28248
|
__name2(_catch3, "_catch");
|
|
27941
28249
|
__name22(_catch3, "_catch");
|
|
28250
|
+
// @__NO_SIDE_EFFECTS__
|
|
27942
28251
|
function _pipe2(Class22, in_, out) {
|
|
27943
28252
|
return new Class22({
|
|
27944
28253
|
type: "pipe",
|
|
@@ -27949,6 +28258,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27949
28258
|
__name(_pipe2, "_pipe");
|
|
27950
28259
|
__name2(_pipe2, "_pipe");
|
|
27951
28260
|
__name22(_pipe2, "_pipe");
|
|
28261
|
+
// @__NO_SIDE_EFFECTS__
|
|
27952
28262
|
function _readonly2(Class22, innerType) {
|
|
27953
28263
|
return new Class22({
|
|
27954
28264
|
type: "readonly",
|
|
@@ -27958,6 +28268,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27958
28268
|
__name(_readonly2, "_readonly");
|
|
27959
28269
|
__name2(_readonly2, "_readonly");
|
|
27960
28270
|
__name22(_readonly2, "_readonly");
|
|
28271
|
+
// @__NO_SIDE_EFFECTS__
|
|
27961
28272
|
function _templateLiteral2(Class22, parts, params) {
|
|
27962
28273
|
return new Class22({
|
|
27963
28274
|
type: "template_literal",
|
|
@@ -27968,6 +28279,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27968
28279
|
__name(_templateLiteral2, "_templateLiteral");
|
|
27969
28280
|
__name2(_templateLiteral2, "_templateLiteral");
|
|
27970
28281
|
__name22(_templateLiteral2, "_templateLiteral");
|
|
28282
|
+
// @__NO_SIDE_EFFECTS__
|
|
27971
28283
|
function _lazy2(Class22, getter) {
|
|
27972
28284
|
return new Class22({
|
|
27973
28285
|
type: "lazy",
|
|
@@ -27977,6 +28289,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27977
28289
|
__name(_lazy2, "_lazy");
|
|
27978
28290
|
__name2(_lazy2, "_lazy");
|
|
27979
28291
|
__name22(_lazy2, "_lazy");
|
|
28292
|
+
// @__NO_SIDE_EFFECTS__
|
|
27980
28293
|
function _promise2(Class22, innerType) {
|
|
27981
28294
|
return new Class22({
|
|
27982
28295
|
type: "promise",
|
|
@@ -27986,6 +28299,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
27986
28299
|
__name(_promise2, "_promise");
|
|
27987
28300
|
__name2(_promise2, "_promise");
|
|
27988
28301
|
__name22(_promise2, "_promise");
|
|
28302
|
+
// @__NO_SIDE_EFFECTS__
|
|
27989
28303
|
function _custom2(Class22, fn, _params) {
|
|
27990
28304
|
const norm = normalizeParams2(_params);
|
|
27991
28305
|
norm.abort ?? (norm.abort = true);
|
|
@@ -28000,6 +28314,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
28000
28314
|
__name(_custom2, "_custom");
|
|
28001
28315
|
__name2(_custom2, "_custom");
|
|
28002
28316
|
__name22(_custom2, "_custom");
|
|
28317
|
+
// @__NO_SIDE_EFFECTS__
|
|
28003
28318
|
function _refine2(Class22, fn, _params) {
|
|
28004
28319
|
const schema = new Class22({
|
|
28005
28320
|
type: "custom",
|
|
@@ -28012,6 +28327,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
28012
28327
|
__name(_refine2, "_refine");
|
|
28013
28328
|
__name2(_refine2, "_refine");
|
|
28014
28329
|
__name22(_refine2, "_refine");
|
|
28330
|
+
// @__NO_SIDE_EFFECTS__
|
|
28015
28331
|
function _superRefine2(fn, params) {
|
|
28016
28332
|
const ch = /* @__PURE__ */ _check2((payload) => {
|
|
28017
28333
|
payload.addIssue = (issue22) => {
|
|
@@ -28035,6 +28351,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
28035
28351
|
__name(_superRefine2, "_superRefine");
|
|
28036
28352
|
__name2(_superRefine2, "_superRefine");
|
|
28037
28353
|
__name22(_superRefine2, "_superRefine");
|
|
28354
|
+
// @__NO_SIDE_EFFECTS__
|
|
28038
28355
|
function _check2(fn, params) {
|
|
28039
28356
|
const ch = new $ZodCheck2({
|
|
28040
28357
|
check: "custom",
|
|
@@ -28046,6 +28363,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
28046
28363
|
__name(_check2, "_check");
|
|
28047
28364
|
__name2(_check2, "_check");
|
|
28048
28365
|
__name22(_check2, "_check");
|
|
28366
|
+
// @__NO_SIDE_EFFECTS__
|
|
28049
28367
|
function describe3(description) {
|
|
28050
28368
|
const ch = new $ZodCheck2({ check: "describe" });
|
|
28051
28369
|
ch._zod.onattach = [
|
|
@@ -28061,6 +28379,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
28061
28379
|
__name(describe3, "describe");
|
|
28062
28380
|
__name2(describe3, "describe");
|
|
28063
28381
|
__name22(describe3, "describe");
|
|
28382
|
+
// @__NO_SIDE_EFFECTS__
|
|
28064
28383
|
function meta3(metadata) {
|
|
28065
28384
|
const ch = new $ZodCheck2({ check: "meta" });
|
|
28066
28385
|
ch._zod.onattach = [
|
|
@@ -28076,6 +28395,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
28076
28395
|
__name(meta3, "meta");
|
|
28077
28396
|
__name2(meta3, "meta");
|
|
28078
28397
|
__name22(meta3, "meta");
|
|
28398
|
+
// @__NO_SIDE_EFFECTS__
|
|
28079
28399
|
function _stringbool2(Classes, _params) {
|
|
28080
28400
|
const params = normalizeParams2(_params);
|
|
28081
28401
|
let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
|
|
@@ -28095,7 +28415,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
28095
28415
|
type: "pipe",
|
|
28096
28416
|
in: stringSchema,
|
|
28097
28417
|
out: booleanSchema,
|
|
28098
|
-
transform: /* @__PURE__ */ __name22((input, payload) => {
|
|
28418
|
+
transform: /* @__PURE__ */ __name22(((input, payload) => {
|
|
28099
28419
|
let data = input;
|
|
28100
28420
|
if (params.case !== "sensitive")
|
|
28101
28421
|
data = data.toLowerCase();
|
|
@@ -28114,14 +28434,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
28114
28434
|
});
|
|
28115
28435
|
return {};
|
|
28116
28436
|
}
|
|
28117
|
-
}, "transform"),
|
|
28118
|
-
reverseTransform: /* @__PURE__ */ __name22((input, _payload) => {
|
|
28437
|
+
}), "transform"),
|
|
28438
|
+
reverseTransform: /* @__PURE__ */ __name22(((input, _payload) => {
|
|
28119
28439
|
if (input === true) {
|
|
28120
28440
|
return truthyArray[0] || "true";
|
|
28121
28441
|
} else {
|
|
28122
28442
|
return falsyArray[0] || "false";
|
|
28123
28443
|
}
|
|
28124
|
-
}, "reverseTransform"),
|
|
28444
|
+
}), "reverseTransform"),
|
|
28125
28445
|
error: params.error
|
|
28126
28446
|
});
|
|
28127
28447
|
return codec22;
|
|
@@ -28129,6 +28449,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
28129
28449
|
__name(_stringbool2, "_stringbool");
|
|
28130
28450
|
__name2(_stringbool2, "_stringbool");
|
|
28131
28451
|
__name22(_stringbool2, "_stringbool");
|
|
28452
|
+
// @__NO_SIDE_EFFECTS__
|
|
28132
28453
|
function _stringFormat2(Class22, format, fnOrRegex, _params = {}) {
|
|
28133
28454
|
const params = normalizeParams2(_params);
|
|
28134
28455
|
const def = {
|
|
@@ -28526,6 +28847,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28526
28847
|
datetime: "date-time",
|
|
28527
28848
|
json_string: "json-string",
|
|
28528
28849
|
regex: ""
|
|
28850
|
+
// do not set
|
|
28529
28851
|
};
|
|
28530
28852
|
var stringProcessor2 = /* @__PURE__ */ __name22((schema, ctx, _json, _params) => {
|
|
28531
28853
|
const json22 = _json;
|
|
@@ -29064,28 +29386,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29064
29386
|
__name(toJSONSchema2, "toJSONSchema");
|
|
29065
29387
|
__name2(toJSONSchema2, "toJSONSchema");
|
|
29066
29388
|
__name22(toJSONSchema2, "toJSONSchema");
|
|
29067
|
-
var JSONSchemaGenerator2 =
|
|
29389
|
+
var JSONSchemaGenerator2 = (_f = class {
|
|
29390
|
+
/** @deprecated Access via ctx instead */
|
|
29068
29391
|
get metadataRegistry() {
|
|
29069
29392
|
return this.ctx.metadataRegistry;
|
|
29070
29393
|
}
|
|
29394
|
+
/** @deprecated Access via ctx instead */
|
|
29071
29395
|
get target() {
|
|
29072
29396
|
return this.ctx.target;
|
|
29073
29397
|
}
|
|
29398
|
+
/** @deprecated Access via ctx instead */
|
|
29074
29399
|
get unrepresentable() {
|
|
29075
29400
|
return this.ctx.unrepresentable;
|
|
29076
29401
|
}
|
|
29402
|
+
/** @deprecated Access via ctx instead */
|
|
29077
29403
|
get override() {
|
|
29078
29404
|
return this.ctx.override;
|
|
29079
29405
|
}
|
|
29406
|
+
/** @deprecated Access via ctx instead */
|
|
29080
29407
|
get io() {
|
|
29081
29408
|
return this.ctx.io;
|
|
29082
29409
|
}
|
|
29410
|
+
/** @deprecated Access via ctx instead */
|
|
29083
29411
|
get counter() {
|
|
29084
29412
|
return this.ctx.counter;
|
|
29085
29413
|
}
|
|
29086
29414
|
set counter(value) {
|
|
29087
29415
|
this.ctx.counter = value;
|
|
29088
29416
|
}
|
|
29417
|
+
/** @deprecated Access via ctx instead */
|
|
29089
29418
|
get seen() {
|
|
29090
29419
|
return this.ctx.seen;
|
|
29091
29420
|
}
|
|
@@ -29104,9 +29433,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29104
29433
|
...params?.io && { io: params.io }
|
|
29105
29434
|
});
|
|
29106
29435
|
}
|
|
29436
|
+
/**
|
|
29437
|
+
* Process a schema to prepare it for JSON Schema generation.
|
|
29438
|
+
* This must be called before emit().
|
|
29439
|
+
*/
|
|
29107
29440
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
29108
29441
|
return process22(schema, this.ctx, _params);
|
|
29109
29442
|
}
|
|
29443
|
+
/**
|
|
29444
|
+
* Emit the final JSON Schema after processing.
|
|
29445
|
+
* Must call process() first.
|
|
29446
|
+
*/
|
|
29110
29447
|
emit(schema, _params) {
|
|
29111
29448
|
if (_params) {
|
|
29112
29449
|
if (_params.cycles)
|
|
@@ -29121,11 +29458,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29121
29458
|
const { "~standard": _, ...plainResult } = result;
|
|
29122
29459
|
return plainResult;
|
|
29123
29460
|
}
|
|
29124
|
-
}, "
|
|
29125
|
-
__name2(_f, "JSONSchemaGenerator");
|
|
29126
|
-
})(), (() => {
|
|
29127
|
-
__name22(_f, "JSONSchemaGenerator");
|
|
29128
|
-
})(), _f), "JSONSchemaGenerator");
|
|
29461
|
+
}, __name(_f, "JSONSchemaGenerator"), __name2(_f, "JSONSchemaGenerator"), __name22(_f, "JSONSchemaGenerator"), _f);
|
|
29129
29462
|
var json_schema_exports2 = {};
|
|
29130
29463
|
var schemas_exports22 = {};
|
|
29131
29464
|
__export22(schemas_exports22, {
|
|
@@ -29385,26 +29718,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29385
29718
|
Object.defineProperties(inst, {
|
|
29386
29719
|
format: {
|
|
29387
29720
|
value: /* @__PURE__ */ __name22((mapper) => formatError2(inst, mapper), "value")
|
|
29721
|
+
// enumerable: false,
|
|
29388
29722
|
},
|
|
29389
29723
|
flatten: {
|
|
29390
29724
|
value: /* @__PURE__ */ __name22((mapper) => flattenError2(inst, mapper), "value")
|
|
29725
|
+
// enumerable: false,
|
|
29391
29726
|
},
|
|
29392
29727
|
addIssue: {
|
|
29393
29728
|
value: /* @__PURE__ */ __name22((issue22) => {
|
|
29394
29729
|
inst.issues.push(issue22);
|
|
29395
29730
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer2, 2);
|
|
29396
29731
|
}, "value")
|
|
29732
|
+
// enumerable: false,
|
|
29397
29733
|
},
|
|
29398
29734
|
addIssues: {
|
|
29399
29735
|
value: /* @__PURE__ */ __name22((issues2) => {
|
|
29400
29736
|
inst.issues.push(...issues2);
|
|
29401
29737
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer2, 2);
|
|
29402
29738
|
}, "value")
|
|
29739
|
+
// enumerable: false,
|
|
29403
29740
|
},
|
|
29404
29741
|
isEmpty: {
|
|
29405
29742
|
get() {
|
|
29406
29743
|
return inst.issues.length === 0;
|
|
29407
29744
|
}
|
|
29745
|
+
// enumerable: false,
|
|
29408
29746
|
}
|
|
29409
29747
|
});
|
|
29410
29748
|
}, "initializer");
|
|
@@ -30792,6 +31130,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30792
31130
|
type: "pipe",
|
|
30793
31131
|
in: in_,
|
|
30794
31132
|
out
|
|
31133
|
+
// ...util.normalizeParams(params),
|
|
30795
31134
|
});
|
|
30796
31135
|
}
|
|
30797
31136
|
__name(pipe2, "pipe");
|
|
@@ -30913,6 +31252,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30913
31252
|
function check2(fn) {
|
|
30914
31253
|
const ch = new $ZodCheck2({
|
|
30915
31254
|
check: "custom"
|
|
31255
|
+
// ...util.normalizeParams(params),
|
|
30916
31256
|
});
|
|
30917
31257
|
ch._zod.check = fn;
|
|
30918
31258
|
return ch;
|
|
@@ -31025,10 +31365,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31025
31365
|
iso: iso_exports2
|
|
31026
31366
|
};
|
|
31027
31367
|
var RECOGNIZED_KEYS2 = /* @__PURE__ */ new Set([
|
|
31368
|
+
// Schema identification
|
|
31028
31369
|
"$schema",
|
|
31029
31370
|
"$ref",
|
|
31030
31371
|
"$defs",
|
|
31031
31372
|
"definitions",
|
|
31373
|
+
// Core schema keywords
|
|
31032
31374
|
"$id",
|
|
31033
31375
|
"id",
|
|
31034
31376
|
"$comment",
|
|
@@ -31036,13 +31378,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31036
31378
|
"$vocabulary",
|
|
31037
31379
|
"$dynamicRef",
|
|
31038
31380
|
"$dynamicAnchor",
|
|
31381
|
+
// Type
|
|
31039
31382
|
"type",
|
|
31040
31383
|
"enum",
|
|
31041
31384
|
"const",
|
|
31385
|
+
// Composition
|
|
31042
31386
|
"anyOf",
|
|
31043
31387
|
"oneOf",
|
|
31044
31388
|
"allOf",
|
|
31045
31389
|
"not",
|
|
31390
|
+
// Object
|
|
31046
31391
|
"properties",
|
|
31047
31392
|
"required",
|
|
31048
31393
|
"additionalProperties",
|
|
@@ -31050,6 +31395,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31050
31395
|
"propertyNames",
|
|
31051
31396
|
"minProperties",
|
|
31052
31397
|
"maxProperties",
|
|
31398
|
+
// Array
|
|
31053
31399
|
"items",
|
|
31054
31400
|
"prefixItems",
|
|
31055
31401
|
"additionalItems",
|
|
@@ -31059,20 +31405,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31059
31405
|
"contains",
|
|
31060
31406
|
"minContains",
|
|
31061
31407
|
"maxContains",
|
|
31408
|
+
// String
|
|
31062
31409
|
"minLength",
|
|
31063
31410
|
"maxLength",
|
|
31064
31411
|
"pattern",
|
|
31065
31412
|
"format",
|
|
31413
|
+
// Number
|
|
31066
31414
|
"minimum",
|
|
31067
31415
|
"maximum",
|
|
31068
31416
|
"exclusiveMinimum",
|
|
31069
31417
|
"exclusiveMaximum",
|
|
31070
31418
|
"multipleOf",
|
|
31419
|
+
// Already handled metadata
|
|
31071
31420
|
"description",
|
|
31072
31421
|
"default",
|
|
31422
|
+
// Content
|
|
31073
31423
|
"contentEncoding",
|
|
31074
31424
|
"contentMediaType",
|
|
31075
31425
|
"contentSchema",
|
|
31426
|
+
// Unsupported (error-throwing)
|
|
31076
31427
|
"unevaluatedItems",
|
|
31077
31428
|
"unevaluatedProperties",
|
|
31078
31429
|
"if",
|
|
@@ -31080,6 +31431,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31080
31431
|
"else",
|
|
31081
31432
|
"dependentSchemas",
|
|
31082
31433
|
"dependentRequired",
|
|
31434
|
+
// OpenAPI
|
|
31083
31435
|
"nullable",
|
|
31084
31436
|
"readOnly"
|
|
31085
31437
|
]);
|
|
@@ -31601,12 +31953,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31601
31953
|
phone: external_exports2.string().optional(),
|
|
31602
31954
|
description: external_exports2.string().optional(),
|
|
31603
31955
|
endorsement: external_exports2.any().array().optional(),
|
|
31956
|
+
// Recursive type
|
|
31604
31957
|
image: ImageValidator2.optional(),
|
|
31605
31958
|
email: external_exports2.string().email().optional(),
|
|
31606
31959
|
address: AddressValidator2.optional(),
|
|
31607
31960
|
otherIdentifier: IdentifierEntryValidator2.array().optional(),
|
|
31608
31961
|
official: external_exports2.string().optional(),
|
|
31609
31962
|
parentOrg: external_exports2.any().optional(),
|
|
31963
|
+
// Recursive types are annoying =(
|
|
31610
31964
|
familyName: external_exports2.string().optional(),
|
|
31611
31965
|
givenName: external_exports2.string().optional(),
|
|
31612
31966
|
additionalName: external_exports2.string().optional(),
|
|
@@ -31654,11 +32008,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31654
32008
|
credentialSchema: CredentialSchemaValidator2.or(
|
|
31655
32009
|
CredentialSchemaValidator2.array()
|
|
31656
32010
|
).optional(),
|
|
32011
|
+
// V1
|
|
31657
32012
|
issuanceDate: external_exports2.string().optional(),
|
|
31658
32013
|
expirationDate: external_exports2.string().optional(),
|
|
31659
32014
|
credentialStatus: CredentialStatusValidator2.or(
|
|
31660
32015
|
CredentialStatusValidator2.array()
|
|
31661
32016
|
).optional(),
|
|
32017
|
+
// V2
|
|
31662
32018
|
name: external_exports2.string().optional(),
|
|
31663
32019
|
description: external_exports2.string().optional(),
|
|
31664
32020
|
validFrom: external_exports2.string().optional(),
|
|
@@ -31987,26 +32343,59 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31987
32343
|
data: external_exports2.string()
|
|
31988
32344
|
}).passthrough();
|
|
31989
32345
|
var isStoredCredentialEnvelope2 = /* @__PURE__ */ __name22((value) => {
|
|
31990
|
-
if (!value || typeof value !== "object")
|
|
31991
|
-
return false;
|
|
32346
|
+
if (!value || typeof value !== "object") return false;
|
|
31992
32347
|
const candidate = value;
|
|
31993
|
-
if (typeof candidate.format !== "string")
|
|
31994
|
-
|
|
31995
|
-
if (!CredentialFormatValidator2.safeParse(candidate.format).success)
|
|
31996
|
-
return false;
|
|
32348
|
+
if (typeof candidate.format !== "string") return false;
|
|
32349
|
+
if (!CredentialFormatValidator2.safeParse(candidate.format).success) return false;
|
|
31997
32350
|
return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
|
|
31998
32351
|
}, "isStoredCredentialEnvelope");
|
|
31999
32352
|
var StatusCheckEntryValidator2 = external_exports2.object({
|
|
32353
|
+
/**
|
|
32354
|
+
* The `credentialStatus.type` as it appeared on the credential.
|
|
32355
|
+
* One of `BitstringStatusListEntry`, `StatusList2021Entry`,
|
|
32356
|
+
* `RevocationList2020Status`, or any future custom status type.
|
|
32357
|
+
*/
|
|
32000
32358
|
entryType: external_exports2.string(),
|
|
32359
|
+
/**
|
|
32360
|
+
* The claimed purpose of the entry. Standard values are
|
|
32361
|
+
* `"revocation"` and `"suspension"`; the spec allows arbitrary
|
|
32362
|
+
* strings.
|
|
32363
|
+
*/
|
|
32001
32364
|
statusPurpose: external_exports2.string(),
|
|
32365
|
+
/**
|
|
32366
|
+
* Whether the bit at the credential's index in the status list
|
|
32367
|
+
* bitstring was set.
|
|
32368
|
+
*/
|
|
32002
32369
|
isSet: external_exports2.boolean(),
|
|
32370
|
+
/** URL of the status list credential, when known. */
|
|
32003
32371
|
statusListCredential: external_exports2.string().optional(),
|
|
32372
|
+
/** Original (string) index within the status list. */
|
|
32004
32373
|
statusListIndex: external_exports2.string().optional()
|
|
32005
32374
|
});
|
|
32006
32375
|
var VerificationCheckValidator2 = external_exports2.object({
|
|
32376
|
+
/**
|
|
32377
|
+
* Checks that completed successfully. This does not imply that warnings can be ignored.
|
|
32378
|
+
*/
|
|
32007
32379
|
checks: external_exports2.string().array(),
|
|
32380
|
+
/**
|
|
32381
|
+
* Security-relevant conditions that did not prevent the requested cryptographic checks from
|
|
32382
|
+
* completing. In particular, a non-DID issuer warning means the signature is valid but the
|
|
32383
|
+
* named URL issuer's authorization of that signing key was not established.
|
|
32384
|
+
*/
|
|
32008
32385
|
warnings: external_exports2.string().array(),
|
|
32386
|
+
/** Verification failures that prevented one or more requested checks from succeeding. */
|
|
32009
32387
|
errors: external_exports2.string().array(),
|
|
32388
|
+
/**
|
|
32389
|
+
* Per-entry results for the `credentialStatus` check, populated
|
|
32390
|
+
* by `@learncard/didkit-plugin` when the verified credential
|
|
32391
|
+
* carries one or more `credentialStatus` entries. Empty / absent
|
|
32392
|
+
* for credentials without a status entry.
|
|
32393
|
+
*
|
|
32394
|
+
* Marked `.optional()` because the underlying `ssi-ldp`
|
|
32395
|
+
* serializer omits the field when empty (`skip_serializing_if`),
|
|
32396
|
+
* so older WASM builds that pre-date the structured-status
|
|
32397
|
+
* change still validate against this schema.
|
|
32398
|
+
*/
|
|
32010
32399
|
status: StatusCheckEntryValidator2.array().optional()
|
|
32011
32400
|
});
|
|
32012
32401
|
var VerificationStatusValidator2 = external_exports2.enum(["Success", "Failed", "Error"]);
|
|
@@ -32052,8 +32441,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32052
32441
|
});
|
|
32053
32442
|
var parseRegexString2 = /* @__PURE__ */ __name22((regexStr) => {
|
|
32054
32443
|
const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
|
|
32055
|
-
if (!match)
|
|
32056
|
-
throw new Error("Invalid RegExp string format");
|
|
32444
|
+
if (!match) throw new Error("Invalid RegExp string format");
|
|
32057
32445
|
return { pattern: match[1], flags: match[2] };
|
|
32058
32446
|
}, "parseRegexString");
|
|
32059
32447
|
var RegExpStringValidator2 = external_exports2.string().refine(
|
|
@@ -32139,6 +32527,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32139
32527
|
isServiceProfile: true,
|
|
32140
32528
|
display: true
|
|
32141
32529
|
});
|
|
32530
|
+
var LCNConnectionPromptStatusValidator2 = external_exports2.enum(["PENDING", "SKIPPED", "CONNECTED"]);
|
|
32531
|
+
var LCNConnectionPromptSurfaceValidator2 = external_exports2.enum(["POST_CLAIM", "NOTIFICATION"]);
|
|
32532
|
+
var LCNConnectionPromptActionStatusValidator2 = external_exports2.enum([
|
|
32533
|
+
"PENDING",
|
|
32534
|
+
"SKIPPED",
|
|
32535
|
+
"CONNECTED",
|
|
32536
|
+
"STALE"
|
|
32537
|
+
]);
|
|
32538
|
+
var LCNConnectionPromptValidator2 = external_exports2.object({
|
|
32539
|
+
promptId: external_exports2.string().uuid(),
|
|
32540
|
+
status: LCNConnectionPromptStatusValidator2,
|
|
32541
|
+
surface: LCNConnectionPromptSurfaceValidator2,
|
|
32542
|
+
triggerId: external_exports2.string(),
|
|
32543
|
+
triggeredAt: external_exports2.iso.datetime(),
|
|
32544
|
+
updatedAt: external_exports2.iso.datetime(),
|
|
32545
|
+
counterpart: LCNPublicProfileValidator2
|
|
32546
|
+
});
|
|
32547
|
+
var LCNConnectionPromptActionResultValidator2 = external_exports2.object({
|
|
32548
|
+
promptId: external_exports2.string().uuid(),
|
|
32549
|
+
status: LCNConnectionPromptActionStatusValidator2
|
|
32550
|
+
});
|
|
32551
|
+
var LCNConnectionPromptMetadataValidator2 = external_exports2.object({
|
|
32552
|
+
promptId: external_exports2.string().uuid(),
|
|
32553
|
+
counterpartProfileId: external_exports2.string()
|
|
32554
|
+
});
|
|
32142
32555
|
var LCNAuthedProfileValidator2 = LCNPublicProfileValidator2.extend({
|
|
32143
32556
|
bio: LCNProfileValidator2.shape.bio,
|
|
32144
32557
|
websiteLink: LCNProfileValidator2.shape.websiteLink,
|
|
@@ -32689,7 +33102,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32689
33102
|
"PENDING",
|
|
32690
33103
|
"ISSUED",
|
|
32691
33104
|
"EXPIRED",
|
|
33105
|
+
/* DEPRECATED — use ISSUED */
|
|
32692
33106
|
"DELIVERED",
|
|
33107
|
+
/* DEPRECATED — use ISSUED */
|
|
32693
33108
|
"CLAIMED"
|
|
32694
33109
|
]);
|
|
32695
33110
|
var LCNNotificationInboxValidator2 = external_exports2.object({
|
|
@@ -32701,12 +33116,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32701
33116
|
}),
|
|
32702
33117
|
timestamp: external_exports2.iso.datetime().optional()
|
|
32703
33118
|
});
|
|
33119
|
+
var LCNNotificationMetadataValidator2 = external_exports2.object({
|
|
33120
|
+
connectionPrompt: LCNConnectionPromptMetadataValidator2.optional()
|
|
33121
|
+
}).catchall(external_exports2.unknown());
|
|
32704
33122
|
var LCNNotificationDataValidator2 = external_exports2.object({
|
|
32705
33123
|
vcUris: external_exports2.array(external_exports2.string()).optional(),
|
|
32706
33124
|
vpUris: external_exports2.array(external_exports2.string()).optional(),
|
|
32707
33125
|
transaction: ConsentFlowTransactionValidator2.optional(),
|
|
32708
33126
|
inbox: LCNNotificationInboxValidator2.optional(),
|
|
32709
|
-
metadata:
|
|
33127
|
+
metadata: LCNNotificationMetadataValidator2.optional()
|
|
32710
33128
|
}).loose();
|
|
32711
33129
|
var LCNNotificationValidator2 = external_exports2.object({
|
|
32712
33130
|
type: LCNNotificationTypeEnumValidator2,
|
|
@@ -32725,8 +33143,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32725
33143
|
challenge: external_exports2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
32726
33144
|
status: external_exports2.enum(["revoked", "active"], {
|
|
32727
33145
|
error: /* @__PURE__ */ __name22((issue22) => {
|
|
32728
|
-
if (issue22.code === "invalid_value")
|
|
32729
|
-
return "Status must be either active or revoked";
|
|
33146
|
+
if (issue22.code === "invalid_value") return "Status must be either active or revoked";
|
|
32730
33147
|
return "Status is required";
|
|
32731
33148
|
}, "error")
|
|
32732
33149
|
}),
|
|
@@ -32757,6 +33174,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32757
33174
|
external_exports2.object({
|
|
32758
33175
|
type: external_exports2.literal("phone"),
|
|
32759
33176
|
value: external_exports2.string()
|
|
33177
|
+
// Can be improved with a regex later
|
|
32760
33178
|
}).merge(contactMethodBase2)
|
|
32761
33179
|
]);
|
|
32762
33180
|
var createContactMethodBase2 = external_exports2.object({
|
|
@@ -32817,6 +33235,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32817
33235
|
endpoint: external_exports2.string().optional(),
|
|
32818
33236
|
name: external_exports2.string().optional()
|
|
32819
33237
|
}).optional(),
|
|
33238
|
+
// Guardian gate fields (all optional — absent on pre-existing credentials)
|
|
32820
33239
|
guardianEmail: external_exports2.string().email().optional(),
|
|
32821
33240
|
guardianStatus: GuardianStatusValidator2.optional(),
|
|
32822
33241
|
guardianApprovedAt: external_exports2.string().optional(),
|
|
@@ -32840,13 +33259,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32840
33259
|
name: external_exports2.string()
|
|
32841
33260
|
});
|
|
32842
33261
|
var IssueInboxCredentialValidator2 = external_exports2.object({
|
|
33262
|
+
// === CORE DATA (Required) ===
|
|
33263
|
+
// WHAT is being sent and WHO is it for?
|
|
32843
33264
|
recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
|
|
33265
|
+
// Either credential OR templateUri must be provided
|
|
32844
33266
|
credential: VCValidator2.or(VPValidator2).or(UnsignedVCValidator2).optional().describe(
|
|
32845
33267
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
32846
33268
|
),
|
|
32847
33269
|
templateUri: external_exports2.string().optional().describe(
|
|
32848
33270
|
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
32849
33271
|
),
|
|
33272
|
+
// === OPTIONAL FEATURES ===
|
|
33273
|
+
// Add major, distinct features at the top level.
|
|
33274
|
+
//consentRequest: ConsentRequestValidator.optional(),
|
|
33275
|
+
// === PROCESS CONFIGURATION (Optional) ===
|
|
33276
|
+
// HOW should this issuance be handled?
|
|
32850
33277
|
configuration: external_exports2.object({
|
|
32851
33278
|
signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
|
|
32852
33279
|
"The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
|
|
@@ -32856,6 +33283,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32856
33283
|
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional().describe(
|
|
32857
33284
|
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
32858
33285
|
),
|
|
33286
|
+
// --- For User-Facing Delivery (Email/SMS) ---
|
|
32859
33287
|
delivery: external_exports2.object({
|
|
32860
33288
|
suppress: external_exports2.boolean().optional().default(false).describe(
|
|
32861
33289
|
"Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
|
|
@@ -32938,9 +33366,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32938
33366
|
description: external_exports2.string().optional(),
|
|
32939
33367
|
publishableKey: external_exports2.string(),
|
|
32940
33368
|
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([]),
|
|
33369
|
+
// Setup/onboarding status
|
|
32941
33370
|
status: LCNIntegrationStatusEnum2.default("setup"),
|
|
32942
33371
|
guideType: external_exports2.string().optional(),
|
|
32943
33372
|
guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional(),
|
|
33373
|
+
// Timestamps
|
|
32944
33374
|
createdAt: external_exports2.string().optional(),
|
|
32945
33375
|
updatedAt: external_exports2.string().optional()
|
|
32946
33376
|
});
|
|
@@ -32955,6 +33385,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32955
33385
|
description: external_exports2.string().optional(),
|
|
32956
33386
|
whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).optional(),
|
|
32957
33387
|
rotatePublishableKey: external_exports2.boolean().optional(),
|
|
33388
|
+
// Setup/onboarding updates
|
|
32958
33389
|
status: LCNIntegrationStatusEnum2.optional(),
|
|
32959
33390
|
guideType: external_exports2.string().optional(),
|
|
32960
33391
|
guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional()
|
|
@@ -33421,17 +33852,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33421
33852
|
failed: external_exports2.number(),
|
|
33422
33853
|
claimRate: external_exports2.number()
|
|
33423
33854
|
});
|
|
33424
|
-
var AuthSessionError2 =
|
|
33855
|
+
var AuthSessionError2 = (_g = class extends Error {
|
|
33425
33856
|
constructor(message, reason) {
|
|
33426
33857
|
super(message);
|
|
33427
33858
|
this.reason = reason;
|
|
33428
33859
|
this.name = "AuthSessionError";
|
|
33429
33860
|
}
|
|
33430
|
-
}, "
|
|
33431
|
-
__name2(_g, "AuthSessionError");
|
|
33432
|
-
})(), (() => {
|
|
33433
|
-
__name22(_g, "AuthSessionError");
|
|
33434
|
-
})(), _g), "AuthSessionError");
|
|
33861
|
+
}, __name(_g, "AuthSessionError"), __name2(_g, "AuthSessionError"), __name22(_g, "AuthSessionError"), _g);
|
|
33435
33862
|
var BITSTRING_STATUS_PURPOSES2 = ["revocation", "suspension"];
|
|
33436
33863
|
var DEFAULT_BITSTRING_STATUS_LIST_SIZE = 131072;
|
|
33437
33864
|
var BitstringStatusPurposeValidator2 = external_exports2.enum(BITSTRING_STATUS_PURPOSES2);
|
|
@@ -33499,12 +33926,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33499
33926
|
label: external_exports2.string(),
|
|
33500
33927
|
style: inAppMessageActionStyleValidator2,
|
|
33501
33928
|
action: inAppMessageActionTargetValidator2,
|
|
33929
|
+
/** When true, the message closes after this action runs (default true). */
|
|
33502
33930
|
closeOnComplete: external_exports2.boolean().default(true)
|
|
33503
33931
|
}).passthrough();
|
|
33504
33932
|
var inAppMessageMediaValidator2 = external_exports2.object({
|
|
33505
33933
|
type: external_exports2.enum(["youtube", "image", "gif"]),
|
|
33506
33934
|
url: external_exports2.string(),
|
|
33935
|
+
/** Aspect ratio hint, e.g. "16:9" or "1:1". Defaults to 16:9. */
|
|
33507
33936
|
aspect: external_exports2.string().default("16:9"),
|
|
33937
|
+
/** Alt text for images/gifs (accessibility). */
|
|
33508
33938
|
alt: external_exports2.string().optional()
|
|
33509
33939
|
}).passthrough();
|
|
33510
33940
|
var inAppMessageFrequencyValidator2 = external_exports2.union([
|
|
@@ -33515,17 +33945,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33515
33945
|
]).default("once");
|
|
33516
33946
|
var inAppMessagePresentationValidator2 = external_exports2.enum(["modal", "banner", "toast"]).default("modal");
|
|
33517
33947
|
var inAppMessageValidator2 = external_exports2.object({
|
|
33948
|
+
/** Stable identifier — used to persist dismissal / frequency state. */
|
|
33518
33949
|
id: external_exports2.string(),
|
|
33950
|
+
/** Higher priority wins when multiple messages match. Default 0. */
|
|
33519
33951
|
priority: external_exports2.number().default(0),
|
|
33952
|
+
/** When false, the message is required/blocking (no dismiss affordance). */
|
|
33520
33953
|
dismissible: external_exports2.boolean().default(true),
|
|
33521
33954
|
frequency: inAppMessageFrequencyValidator2,
|
|
33522
33955
|
presentation: inAppMessagePresentationValidator2,
|
|
33523
33956
|
media: inAppMessageMediaValidator2.optional(),
|
|
33957
|
+
/** Optional emoji hero glyph — rendered only when `media` is not set. */
|
|
33524
33958
|
emoji: external_exports2.string().optional(),
|
|
33525
33959
|
title: external_exports2.string(),
|
|
33526
33960
|
body: external_exports2.string().optional(),
|
|
33527
33961
|
actions: external_exports2.array(inAppMessageActionValidator2).default([]),
|
|
33962
|
+
/** Targeting predicate tree. Omitted → matches everyone. */
|
|
33528
33963
|
targeting: inAppMessagePredicateValidator2.optional(),
|
|
33964
|
+
/** Allow disabling a message without removing it from the flag. */
|
|
33529
33965
|
enabled: external_exports2.boolean().default(true)
|
|
33530
33966
|
}).passthrough();
|
|
33531
33967
|
var inAppMessagesFlagValidator2 = external_exports2.object({
|
|
@@ -33552,17 +33988,17 @@ var require_dist = __commonJS({
|
|
|
33552
33988
|
var import_types2 = __toESM(require_dist());
|
|
33553
33989
|
var filestack_helpers_exports = {};
|
|
33554
33990
|
__export2(filestack_helpers_exports, {
|
|
33555
|
-
changeQuality: () => changeQuality,
|
|
33556
|
-
fileTypeSupportsPreview: () => fileTypeSupportsPreview,
|
|
33557
|
-
fixSrcSetString: () => fixSrcSetString,
|
|
33558
|
-
fixUrl: () => fixUrl,
|
|
33559
|
-
generateSrcSet: () => generateSrcSet,
|
|
33560
|
-
getFileType: () => getFileType,
|
|
33561
|
-
getFilestackHandle: () => getFilestackHandle,
|
|
33562
|
-
getUrlFromUrlParams: () => getUrlFromUrlParams,
|
|
33563
|
-
getUrlParams: () => getUrlParams,
|
|
33564
|
-
resizeAndChangeQuality: () => resizeAndChangeQuality,
|
|
33565
|
-
resizeUrl: () => resizeUrl
|
|
33991
|
+
changeQuality: /* @__PURE__ */ __name(() => changeQuality, "changeQuality"),
|
|
33992
|
+
fileTypeSupportsPreview: /* @__PURE__ */ __name(() => fileTypeSupportsPreview, "fileTypeSupportsPreview"),
|
|
33993
|
+
fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString, "fixSrcSetString"),
|
|
33994
|
+
fixUrl: /* @__PURE__ */ __name(() => fixUrl, "fixUrl"),
|
|
33995
|
+
generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet, "generateSrcSet"),
|
|
33996
|
+
getFileType: /* @__PURE__ */ __name(() => getFileType, "getFileType"),
|
|
33997
|
+
getFilestackHandle: /* @__PURE__ */ __name(() => getFilestackHandle, "getFilestackHandle"),
|
|
33998
|
+
getUrlFromUrlParams: /* @__PURE__ */ __name(() => getUrlFromUrlParams, "getUrlFromUrlParams"),
|
|
33999
|
+
getUrlParams: /* @__PURE__ */ __name(() => getUrlParams, "getUrlParams"),
|
|
34000
|
+
resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality, "resizeAndChangeQuality"),
|
|
34001
|
+
resizeUrl: /* @__PURE__ */ __name(() => resizeUrl, "resizeUrl")
|
|
33566
34002
|
});
|
|
33567
34003
|
var getUrlParams = /* @__PURE__ */ __name2((url2) => url2.split(".com/")[1].split("/"), "getUrlParams");
|
|
33568
34004
|
var getUrlFromUrlParams = /* @__PURE__ */ __name2((urlParams) => `https://cdn.filestackcontent.com/${urlParams.join("/")}`, "getUrlFromUrlParams");
|
|
@@ -33583,20 +34019,20 @@ var getFileType = /* @__PURE__ */ __name2(async (url2) => {
|
|
|
33583
34019
|
var fileTypeSupportsPreview = /* @__PURE__ */ __name2((fileType) => {
|
|
33584
34020
|
const unsupportedFileTypes = [
|
|
33585
34021
|
"application/vnd.apple.pages",
|
|
34022
|
+
// .pages
|
|
33586
34023
|
"application/vnd.apple.numbers",
|
|
34024
|
+
// .numbers
|
|
33587
34025
|
"application/x-iwork-keynote-sffkey"
|
|
34026
|
+
// .key
|
|
33588
34027
|
];
|
|
33589
34028
|
return !unsupportedFileTypes.includes(fileType);
|
|
33590
34029
|
}, "fileTypeSupportsPreview");
|
|
33591
34030
|
var fixUrl = /* @__PURE__ */ __name2((url2, mimetype, webp = false) => {
|
|
33592
|
-
if (url2.split(" ").length > 1)
|
|
33593
|
-
return fixSrcSetString(url2, mimetype, webp);
|
|
34031
|
+
if (url2.split(" ").length > 1) return fixSrcSetString(url2, mimetype, webp);
|
|
33594
34032
|
const urlParams = getUrlParams(url2).filter((param) => param !== "rotate=deg:exif");
|
|
33595
34033
|
urlParams.splice(0, 0, "rotate=deg:exif");
|
|
33596
|
-
if (mimetype !== "image/gif")
|
|
33597
|
-
|
|
33598
|
-
if (webp)
|
|
33599
|
-
urlParams.splice(-1, 0, "output=format:webp");
|
|
34034
|
+
if (mimetype !== "image/gif") urlParams.splice(-1, 0, "auto_image");
|
|
34035
|
+
if (webp) urlParams.splice(-1, 0, "output=format:webp");
|
|
33600
34036
|
return getUrlFromUrlParams(urlParams);
|
|
33601
34037
|
}, "fixUrl");
|
|
33602
34038
|
var fixSrcSetString = /* @__PURE__ */ __name2((srcSetString, mimetype, webp = false) => {
|
|
@@ -33605,18 +34041,14 @@ var fixSrcSetString = /* @__PURE__ */ __name2((srcSetString, mimetype, webp = fa
|
|
|
33605
34041
|
}, "fixSrcSetString");
|
|
33606
34042
|
var resizeUrl = /* @__PURE__ */ __name2((url2, size) => {
|
|
33607
34043
|
const urlParams = getUrlParams(url2).filter((param) => !param.match(/resize.*/));
|
|
33608
|
-
if (urlParams.includes("rotate=deg:exif"))
|
|
33609
|
-
|
|
33610
|
-
else
|
|
33611
|
-
urlParams.splice(0, 0, `resize=width:${size}`);
|
|
34044
|
+
if (urlParams.includes("rotate=deg:exif")) urlParams.splice(1, 0, `resize=width:${size}`);
|
|
34045
|
+
else urlParams.splice(0, 0, `resize=width:${size}`);
|
|
33612
34046
|
return getUrlFromUrlParams(urlParams);
|
|
33613
34047
|
}, "resizeUrl");
|
|
33614
34048
|
var changeQuality = /* @__PURE__ */ __name2((url2, quality) => {
|
|
33615
34049
|
const urlParams = getUrlParams(url2).filter((param) => !param.match(/quality.*/));
|
|
33616
|
-
if (urlParams.includes("rotate=deg:exif"))
|
|
33617
|
-
|
|
33618
|
-
else
|
|
33619
|
-
urlParams.splice(0, 0, `quality=value:${quality}`);
|
|
34050
|
+
if (urlParams.includes("rotate=deg:exif")) urlParams.splice(1, 0, `quality=value:${quality}`);
|
|
34051
|
+
else urlParams.splice(0, 0, `quality=value:${quality}`);
|
|
33620
34052
|
return getUrlFromUrlParams(urlParams);
|
|
33621
34053
|
}, "changeQuality");
|
|
33622
34054
|
var resizeAndChangeQuality = /* @__PURE__ */ __name2((url2, size, quality, {
|
|
@@ -33637,12 +34069,12 @@ var generateSrcSet = /* @__PURE__ */ __name2((url2, resolutions, {
|
|
|
33637
34069
|
}, "generateSrcSet");
|
|
33638
34070
|
var unsplash_helpers_exports = {};
|
|
33639
34071
|
__export2(unsplash_helpers_exports, {
|
|
33640
|
-
changeQuality: () => changeQuality2,
|
|
33641
|
-
fixSrcSetString: () => fixSrcSetString2,
|
|
33642
|
-
fixUrl: () => fixUrl2,
|
|
33643
|
-
generateSrcSet: () => generateSrcSet2,
|
|
33644
|
-
resizeAndChangeQuality: () => resizeAndChangeQuality2,
|
|
33645
|
-
resizeUrl: () => resizeUrl2
|
|
34072
|
+
changeQuality: /* @__PURE__ */ __name(() => changeQuality2, "changeQuality"),
|
|
34073
|
+
fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString2, "fixSrcSetString"),
|
|
34074
|
+
fixUrl: /* @__PURE__ */ __name(() => fixUrl2, "fixUrl"),
|
|
34075
|
+
generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet2, "generateSrcSet"),
|
|
34076
|
+
resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality2, "resizeAndChangeQuality"),
|
|
34077
|
+
resizeUrl: /* @__PURE__ */ __name(() => resizeUrl2, "resizeUrl")
|
|
33646
34078
|
});
|
|
33647
34079
|
var parseUrl = /* @__PURE__ */ __name2((input) => {
|
|
33648
34080
|
const hashIndex = input.indexOf("#");
|
|
@@ -33652,8 +34084,7 @@ var parseUrl = /* @__PURE__ */ __name2((input) => {
|
|
|
33652
34084
|
const url2 = queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);
|
|
33653
34085
|
const search = queryIndex === -1 ? "" : withoutFragment.slice(queryIndex + 1);
|
|
33654
34086
|
const query = {};
|
|
33655
|
-
for (const [key, value] of new URLSearchParams(search))
|
|
33656
|
-
query[key] = value;
|
|
34087
|
+
for (const [key, value] of new URLSearchParams(search)) query[key] = value;
|
|
33657
34088
|
return {
|
|
33658
34089
|
url: url2,
|
|
33659
34090
|
query,
|
|
@@ -33663,8 +34094,7 @@ var parseUrl = /* @__PURE__ */ __name2((input) => {
|
|
|
33663
34094
|
var stringifyUrl = /* @__PURE__ */ __name2((parsed) => {
|
|
33664
34095
|
const params = new URLSearchParams();
|
|
33665
34096
|
for (const [key, value] of Object.entries(parsed.query)) {
|
|
33666
|
-
if (value === void 0 || value === null)
|
|
33667
|
-
continue;
|
|
34097
|
+
if (value === void 0 || value === null) continue;
|
|
33668
34098
|
params.append(key, String(value));
|
|
33669
34099
|
}
|
|
33670
34100
|
const search = params.toString().replace(/\+/g, "%20");
|
|
@@ -33676,8 +34106,7 @@ var fixSrcSetString2 = /* @__PURE__ */ __name2((srcSetString, _mimetype, _webp =
|
|
|
33676
34106
|
return urls.map(([url2, width]) => `${fixUrl2(url2)} ${width}`).join(", ");
|
|
33677
34107
|
}, "fixSrcSetString");
|
|
33678
34108
|
var fixUrl2 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
|
|
33679
|
-
if (url2.split(" ").length > 1)
|
|
33680
|
-
return fixSrcSetString2(url2);
|
|
34109
|
+
if (url2.split(" ").length > 1) return fixSrcSetString2(url2);
|
|
33681
34110
|
const parsedUrl = parseUrl(url2);
|
|
33682
34111
|
parsedUrl.query.auto = "format";
|
|
33683
34112
|
return stringifyUrl(parsedUrl);
|
|
@@ -33702,18 +34131,17 @@ var generateSrcSet2 = /* @__PURE__ */ __name2((url2, resolutions, { fix = false
|
|
|
33702
34131
|
}, "generateSrcSet");
|
|
33703
34132
|
var discord_helpers_exports = {};
|
|
33704
34133
|
__export2(discord_helpers_exports, {
|
|
33705
|
-
VALID_DISCORD_SIZES: () => VALID_DISCORD_SIZES,
|
|
33706
|
-
changeQuality: () => changeQuality3,
|
|
33707
|
-
fixSrcSetString: () => fixSrcSetString3,
|
|
33708
|
-
fixUrl: () => fixUrl3,
|
|
33709
|
-
generateSrcSet: () => generateSrcSet3,
|
|
33710
|
-
resizeAndChangeQuality: () => resizeAndChangeQuality3,
|
|
33711
|
-
resizeUrl: () => resizeUrl3
|
|
34134
|
+
VALID_DISCORD_SIZES: /* @__PURE__ */ __name(() => VALID_DISCORD_SIZES, "VALID_DISCORD_SIZES"),
|
|
34135
|
+
changeQuality: /* @__PURE__ */ __name(() => changeQuality3, "changeQuality"),
|
|
34136
|
+
fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString3, "fixSrcSetString"),
|
|
34137
|
+
fixUrl: /* @__PURE__ */ __name(() => fixUrl3, "fixUrl"),
|
|
34138
|
+
generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet3, "generateSrcSet"),
|
|
34139
|
+
resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality3, "resizeAndChangeQuality"),
|
|
34140
|
+
resizeUrl: /* @__PURE__ */ __name(() => resizeUrl3, "resizeUrl")
|
|
33712
34141
|
});
|
|
33713
34142
|
var quantizeValue = /* @__PURE__ */ __name2((value, array2) => {
|
|
33714
34143
|
const foundIndex = array2.findIndex((number4) => number4 === value);
|
|
33715
|
-
if (foundIndex > -1)
|
|
33716
|
-
return array2[foundIndex];
|
|
34144
|
+
if (foundIndex > -1) return array2[foundIndex];
|
|
33717
34145
|
const closestIndex = array2.reduce(
|
|
33718
34146
|
(closest, current2, index) => {
|
|
33719
34147
|
const currentDistance = Math.abs(current2 - value);
|
|
@@ -33751,8 +34179,7 @@ var generateSrcSet3 = /* @__PURE__ */ __name2((url2, resolutions, { fix = false
|
|
|
33751
34179
|
}, "generateSrcSet");
|
|
33752
34180
|
var getUrlsFromSrcSet = /* @__PURE__ */ __name2((srcSet) => {
|
|
33753
34181
|
return srcSet.split(/,? /).reduce((accumulator, current2, index, array2) => {
|
|
33754
|
-
if (index % 2 === 0)
|
|
33755
|
-
return accumulator;
|
|
34182
|
+
if (index % 2 === 0) return accumulator;
|
|
33756
34183
|
accumulator.push([array2[index - 1], current2]);
|
|
33757
34184
|
return accumulator;
|
|
33758
34185
|
}, []);
|
|
@@ -33761,18 +34188,14 @@ function innerImmerOuterImmer(setState, field, value) {
|
|
|
33761
34188
|
if (value === void 0) {
|
|
33762
34189
|
return (innerValue) => {
|
|
33763
34190
|
setState((oldState) => {
|
|
33764
|
-
if (typeof innerValue === "function")
|
|
33765
|
-
|
|
33766
|
-
else
|
|
33767
|
-
oldState[field] = innerValue;
|
|
34191
|
+
if (typeof innerValue === "function") innerValue(oldState[field]);
|
|
34192
|
+
else oldState[field] = innerValue;
|
|
33768
34193
|
});
|
|
33769
34194
|
};
|
|
33770
34195
|
}
|
|
33771
34196
|
setState((oldState) => {
|
|
33772
|
-
if (typeof value === "function")
|
|
33773
|
-
|
|
33774
|
-
else
|
|
33775
|
-
oldState[field] = value;
|
|
34197
|
+
if (typeof value === "function") value(oldState[field]);
|
|
34198
|
+
else oldState[field] = value;
|
|
33776
34199
|
});
|
|
33777
34200
|
}
|
|
33778
34201
|
__name(innerImmerOuterImmer, "innerImmerOuterImmer");
|
|
@@ -33782,10 +34205,8 @@ function innerReactOuterImmer(setState, field, value) {
|
|
|
33782
34205
|
if (value === void 0) {
|
|
33783
34206
|
return (innerValue) => {
|
|
33784
34207
|
setState((oldState) => {
|
|
33785
|
-
if (typeof innerValue === "function")
|
|
33786
|
-
|
|
33787
|
-
else
|
|
33788
|
-
oldState[field] = innerValue;
|
|
34208
|
+
if (typeof innerValue === "function") innerValue(oldState[field]);
|
|
34209
|
+
else oldState[field] = innerValue;
|
|
33789
34210
|
});
|
|
33790
34211
|
};
|
|
33791
34212
|
}
|
|
@@ -33801,14 +34222,12 @@ function innerImmerOuterReact(setState, field, value) {
|
|
|
33801
34222
|
return (innerValue) => {
|
|
33802
34223
|
if (typeof innerValue === "function") {
|
|
33803
34224
|
setState(produce((oldState) => innerValue(oldState[field])));
|
|
33804
|
-
} else
|
|
33805
|
-
setState((oldState) => ({ ...oldState, [field]: innerValue }));
|
|
34225
|
+
} else setState((oldState) => ({ ...oldState, [field]: innerValue }));
|
|
33806
34226
|
};
|
|
33807
34227
|
}
|
|
33808
34228
|
if (typeof value === "function") {
|
|
33809
34229
|
setState(produce((oldState) => value(oldState[field])));
|
|
33810
|
-
} else
|
|
33811
|
-
setState((oldState) => ({ ...oldState, [field]: value }));
|
|
34230
|
+
} else setState((oldState) => ({ ...oldState, [field]: value }));
|
|
33812
34231
|
}
|
|
33813
34232
|
__name(innerImmerOuterReact, "innerImmerOuterReact");
|
|
33814
34233
|
__name2(innerImmerOuterReact, "innerImmerOuterReact");
|
|
@@ -33921,12 +34340,14 @@ var ProfileValidator = external_exports.string().or(
|
|
|
33921
34340
|
phone: external_exports.string().optional(),
|
|
33922
34341
|
description: external_exports.string().optional(),
|
|
33923
34342
|
endorsement: external_exports.any().array().optional(),
|
|
34343
|
+
// Recursive type
|
|
33924
34344
|
image: ImageValidator.optional(),
|
|
33925
34345
|
email: external_exports.string().email().optional(),
|
|
33926
34346
|
address: AddressValidator.optional(),
|
|
33927
34347
|
otherIdentifier: IdentifierEntryValidator.array().optional(),
|
|
33928
34348
|
official: external_exports.string().optional(),
|
|
33929
34349
|
parentOrg: external_exports.any().optional(),
|
|
34350
|
+
// Recursive types are annoying =(
|
|
33930
34351
|
familyName: external_exports.string().optional(),
|
|
33931
34352
|
givenName: external_exports.string().optional(),
|
|
33932
34353
|
additionalName: external_exports.string().optional(),
|
|
@@ -33974,11 +34395,13 @@ var UnsignedVCValidator = external_exports.object({
|
|
|
33974
34395
|
credentialSchema: CredentialSchemaValidator.or(
|
|
33975
34396
|
CredentialSchemaValidator.array()
|
|
33976
34397
|
).optional(),
|
|
34398
|
+
// V1
|
|
33977
34399
|
issuanceDate: external_exports.string().optional(),
|
|
33978
34400
|
expirationDate: external_exports.string().optional(),
|
|
33979
34401
|
credentialStatus: CredentialStatusValidator.or(
|
|
33980
34402
|
CredentialStatusValidator.array()
|
|
33981
34403
|
).optional(),
|
|
34404
|
+
// V2
|
|
33982
34405
|
name: external_exports.string().optional(),
|
|
33983
34406
|
description: external_exports.string().optional(),
|
|
33984
34407
|
validFrom: external_exports.string().optional(),
|
|
@@ -34307,16 +34730,52 @@ var StoredCredentialEnvelopeValidator = external_exports.object({
|
|
|
34307
34730
|
data: external_exports.string()
|
|
34308
34731
|
}).passthrough();
|
|
34309
34732
|
var StatusCheckEntryValidator = external_exports.object({
|
|
34733
|
+
/**
|
|
34734
|
+
* The `credentialStatus.type` as it appeared on the credential.
|
|
34735
|
+
* One of `BitstringStatusListEntry`, `StatusList2021Entry`,
|
|
34736
|
+
* `RevocationList2020Status`, or any future custom status type.
|
|
34737
|
+
*/
|
|
34310
34738
|
entryType: external_exports.string(),
|
|
34739
|
+
/**
|
|
34740
|
+
* The claimed purpose of the entry. Standard values are
|
|
34741
|
+
* `"revocation"` and `"suspension"`; the spec allows arbitrary
|
|
34742
|
+
* strings.
|
|
34743
|
+
*/
|
|
34311
34744
|
statusPurpose: external_exports.string(),
|
|
34745
|
+
/**
|
|
34746
|
+
* Whether the bit at the credential's index in the status list
|
|
34747
|
+
* bitstring was set.
|
|
34748
|
+
*/
|
|
34312
34749
|
isSet: external_exports.boolean(),
|
|
34750
|
+
/** URL of the status list credential, when known. */
|
|
34313
34751
|
statusListCredential: external_exports.string().optional(),
|
|
34752
|
+
/** Original (string) index within the status list. */
|
|
34314
34753
|
statusListIndex: external_exports.string().optional()
|
|
34315
34754
|
});
|
|
34316
34755
|
var VerificationCheckValidator = external_exports.object({
|
|
34756
|
+
/**
|
|
34757
|
+
* Checks that completed successfully. This does not imply that warnings can be ignored.
|
|
34758
|
+
*/
|
|
34317
34759
|
checks: external_exports.string().array(),
|
|
34760
|
+
/**
|
|
34761
|
+
* Security-relevant conditions that did not prevent the requested cryptographic checks from
|
|
34762
|
+
* completing. In particular, a non-DID issuer warning means the signature is valid but the
|
|
34763
|
+
* named URL issuer's authorization of that signing key was not established.
|
|
34764
|
+
*/
|
|
34318
34765
|
warnings: external_exports.string().array(),
|
|
34766
|
+
/** Verification failures that prevented one or more requested checks from succeeding. */
|
|
34319
34767
|
errors: external_exports.string().array(),
|
|
34768
|
+
/**
|
|
34769
|
+
* Per-entry results for the `credentialStatus` check, populated
|
|
34770
|
+
* by `@learncard/didkit-plugin` when the verified credential
|
|
34771
|
+
* carries one or more `credentialStatus` entries. Empty / absent
|
|
34772
|
+
* for credentials without a status entry.
|
|
34773
|
+
*
|
|
34774
|
+
* Marked `.optional()` because the underlying `ssi-ldp`
|
|
34775
|
+
* serializer omits the field when empty (`skip_serializing_if`),
|
|
34776
|
+
* so older WASM builds that pre-date the structured-status
|
|
34777
|
+
* change still validate against this schema.
|
|
34778
|
+
*/
|
|
34320
34779
|
status: StatusCheckEntryValidator.array().optional()
|
|
34321
34780
|
});
|
|
34322
34781
|
var VerificationStatusValidator = external_exports.enum(["Success", "Failed", "Error"]);
|
|
@@ -34362,8 +34821,7 @@ var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.e
|
|
|
34362
34821
|
});
|
|
34363
34822
|
var parseRegexString = /* @__PURE__ */ __name3((regexStr) => {
|
|
34364
34823
|
const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
|
|
34365
|
-
if (!match)
|
|
34366
|
-
throw new Error("Invalid RegExp string format");
|
|
34824
|
+
if (!match) throw new Error("Invalid RegExp string format");
|
|
34367
34825
|
return { pattern: match[1], flags: match[2] };
|
|
34368
34826
|
}, "parseRegexString");
|
|
34369
34827
|
var RegExpStringValidator = external_exports.string().refine(
|
|
@@ -34449,6 +34907,31 @@ var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
|
34449
34907
|
isServiceProfile: true,
|
|
34450
34908
|
display: true
|
|
34451
34909
|
});
|
|
34910
|
+
var LCNConnectionPromptStatusValidator = external_exports.enum(["PENDING", "SKIPPED", "CONNECTED"]);
|
|
34911
|
+
var LCNConnectionPromptSurfaceValidator = external_exports.enum(["POST_CLAIM", "NOTIFICATION"]);
|
|
34912
|
+
var LCNConnectionPromptActionStatusValidator = external_exports.enum([
|
|
34913
|
+
"PENDING",
|
|
34914
|
+
"SKIPPED",
|
|
34915
|
+
"CONNECTED",
|
|
34916
|
+
"STALE"
|
|
34917
|
+
]);
|
|
34918
|
+
var LCNConnectionPromptValidator = external_exports.object({
|
|
34919
|
+
promptId: external_exports.string().uuid(),
|
|
34920
|
+
status: LCNConnectionPromptStatusValidator,
|
|
34921
|
+
surface: LCNConnectionPromptSurfaceValidator,
|
|
34922
|
+
triggerId: external_exports.string(),
|
|
34923
|
+
triggeredAt: external_exports.iso.datetime(),
|
|
34924
|
+
updatedAt: external_exports.iso.datetime(),
|
|
34925
|
+
counterpart: LCNPublicProfileValidator
|
|
34926
|
+
});
|
|
34927
|
+
var LCNConnectionPromptActionResultValidator = external_exports.object({
|
|
34928
|
+
promptId: external_exports.string().uuid(),
|
|
34929
|
+
status: LCNConnectionPromptActionStatusValidator
|
|
34930
|
+
});
|
|
34931
|
+
var LCNConnectionPromptMetadataValidator = external_exports.object({
|
|
34932
|
+
promptId: external_exports.string().uuid(),
|
|
34933
|
+
counterpartProfileId: external_exports.string()
|
|
34934
|
+
});
|
|
34452
34935
|
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
34453
34936
|
bio: LCNProfileValidator.shape.bio,
|
|
34454
34937
|
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
@@ -34999,7 +35482,9 @@ var LCNInboxStatusEnumValidator = external_exports.enum([
|
|
|
34999
35482
|
"PENDING",
|
|
35000
35483
|
"ISSUED",
|
|
35001
35484
|
"EXPIRED",
|
|
35485
|
+
/* DEPRECATED — use ISSUED */
|
|
35002
35486
|
"DELIVERED",
|
|
35487
|
+
/* DEPRECATED — use ISSUED */
|
|
35003
35488
|
"CLAIMED"
|
|
35004
35489
|
]);
|
|
35005
35490
|
var LCNNotificationInboxValidator = external_exports.object({
|
|
@@ -35011,12 +35496,15 @@ var LCNNotificationInboxValidator = external_exports.object({
|
|
|
35011
35496
|
}),
|
|
35012
35497
|
timestamp: external_exports.iso.datetime().optional()
|
|
35013
35498
|
});
|
|
35499
|
+
var LCNNotificationMetadataValidator = external_exports.object({
|
|
35500
|
+
connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
|
|
35501
|
+
}).catchall(external_exports.unknown());
|
|
35014
35502
|
var LCNNotificationDataValidator = external_exports.object({
|
|
35015
35503
|
vcUris: external_exports.array(external_exports.string()).optional(),
|
|
35016
35504
|
vpUris: external_exports.array(external_exports.string()).optional(),
|
|
35017
35505
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
35018
35506
|
inbox: LCNNotificationInboxValidator.optional(),
|
|
35019
|
-
metadata:
|
|
35507
|
+
metadata: LCNNotificationMetadataValidator.optional()
|
|
35020
35508
|
}).loose();
|
|
35021
35509
|
var LCNNotificationValidator = external_exports.object({
|
|
35022
35510
|
type: LCNNotificationTypeEnumValidator,
|
|
@@ -35035,8 +35523,7 @@ var AuthGrantValidator = external_exports.object({
|
|
|
35035
35523
|
challenge: external_exports.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
|
|
35036
35524
|
status: external_exports.enum(["revoked", "active"], {
|
|
35037
35525
|
error: /* @__PURE__ */ __name3((issue2) => {
|
|
35038
|
-
if (issue2.code === "invalid_value")
|
|
35039
|
-
return "Status must be either active or revoked";
|
|
35526
|
+
if (issue2.code === "invalid_value") return "Status must be either active or revoked";
|
|
35040
35527
|
return "Status is required";
|
|
35041
35528
|
}, "error")
|
|
35042
35529
|
}),
|
|
@@ -35067,6 +35554,7 @@ var ContactMethodValidator = external_exports.discriminatedUnion("type", [
|
|
|
35067
35554
|
external_exports.object({
|
|
35068
35555
|
type: external_exports.literal("phone"),
|
|
35069
35556
|
value: external_exports.string()
|
|
35557
|
+
// Can be improved with a regex later
|
|
35070
35558
|
}).merge(contactMethodBase)
|
|
35071
35559
|
]);
|
|
35072
35560
|
var createContactMethodBase = external_exports.object({
|
|
@@ -35127,6 +35615,7 @@ var InboxCredentialValidator = external_exports.object({
|
|
|
35127
35615
|
endpoint: external_exports.string().optional(),
|
|
35128
35616
|
name: external_exports.string().optional()
|
|
35129
35617
|
}).optional(),
|
|
35618
|
+
// Guardian gate fields (all optional — absent on pre-existing credentials)
|
|
35130
35619
|
guardianEmail: external_exports.string().email().optional(),
|
|
35131
35620
|
guardianStatus: GuardianStatusValidator.optional(),
|
|
35132
35621
|
guardianApprovedAt: external_exports.string().optional(),
|
|
@@ -35150,13 +35639,21 @@ var IssueInboxSigningAuthorityValidator = external_exports.object({
|
|
|
35150
35639
|
name: external_exports.string()
|
|
35151
35640
|
});
|
|
35152
35641
|
var IssueInboxCredentialValidator = external_exports.object({
|
|
35642
|
+
// === CORE DATA (Required) ===
|
|
35643
|
+
// WHAT is being sent and WHO is it for?
|
|
35153
35644
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
35645
|
+
// Either credential OR templateUri must be provided
|
|
35154
35646
|
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
|
|
35155
35647
|
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
35156
35648
|
),
|
|
35157
35649
|
templateUri: external_exports.string().optional().describe(
|
|
35158
35650
|
"URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
|
|
35159
35651
|
),
|
|
35652
|
+
// === OPTIONAL FEATURES ===
|
|
35653
|
+
// Add major, distinct features at the top level.
|
|
35654
|
+
//consentRequest: ConsentRequestValidator.optional(),
|
|
35655
|
+
// === PROCESS CONFIGURATION (Optional) ===
|
|
35656
|
+
// HOW should this issuance be handled?
|
|
35160
35657
|
configuration: external_exports.object({
|
|
35161
35658
|
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
35162
35659
|
"The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
|
|
@@ -35166,6 +35663,7 @@ var IssueInboxCredentialValidator = external_exports.object({
|
|
|
35166
35663
|
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
|
|
35167
35664
|
"Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
|
|
35168
35665
|
),
|
|
35666
|
+
// --- For User-Facing Delivery (Email/SMS) ---
|
|
35169
35667
|
delivery: external_exports.object({
|
|
35170
35668
|
suppress: external_exports.boolean().optional().default(false).describe(
|
|
35171
35669
|
"Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
|
|
@@ -35248,9 +35746,11 @@ var LCNIntegrationValidator = external_exports.object({
|
|
|
35248
35746
|
description: external_exports.string().optional(),
|
|
35249
35747
|
publishableKey: external_exports.string(),
|
|
35250
35748
|
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
|
|
35749
|
+
// Setup/onboarding status
|
|
35251
35750
|
status: LCNIntegrationStatusEnum.default("setup"),
|
|
35252
35751
|
guideType: external_exports.string().optional(),
|
|
35253
35752
|
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional(),
|
|
35753
|
+
// Timestamps
|
|
35254
35754
|
createdAt: external_exports.string().optional(),
|
|
35255
35755
|
updatedAt: external_exports.string().optional()
|
|
35256
35756
|
});
|
|
@@ -35265,6 +35765,7 @@ var LCNIntegrationUpdateValidator = external_exports.object({
|
|
|
35265
35765
|
description: external_exports.string().optional(),
|
|
35266
35766
|
whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).optional(),
|
|
35267
35767
|
rotatePublishableKey: external_exports.boolean().optional(),
|
|
35768
|
+
// Setup/onboarding updates
|
|
35268
35769
|
status: LCNIntegrationStatusEnum.optional(),
|
|
35269
35770
|
guideType: external_exports.string().optional(),
|
|
35270
35771
|
guideState: external_exports.record(external_exports.string(), external_exports.any()).optional()
|
|
@@ -35731,16 +36232,14 @@ var CredentialActivityStatsValidator = external_exports.object({
|
|
|
35731
36232
|
failed: external_exports.number(),
|
|
35732
36233
|
claimRate: external_exports.number()
|
|
35733
36234
|
});
|
|
35734
|
-
var
|
|
35735
|
-
var AuthSessionError =
|
|
36235
|
+
var _a4;
|
|
36236
|
+
var AuthSessionError = (_a4 = class extends Error {
|
|
35736
36237
|
constructor(message, reason) {
|
|
35737
36238
|
super(message);
|
|
35738
36239
|
this.reason = reason;
|
|
35739
36240
|
this.name = "AuthSessionError";
|
|
35740
36241
|
}
|
|
35741
|
-
}, "
|
|
35742
|
-
__name3(_a3, "AuthSessionError");
|
|
35743
|
-
})(), _a3), "AuthSessionError");
|
|
36242
|
+
}, __name(_a4, "AuthSessionError"), __name3(_a4, "AuthSessionError"), _a4);
|
|
35744
36243
|
var BITSTRING_STATUS_PURPOSES = ["revocation", "suspension"];
|
|
35745
36244
|
var BitstringStatusPurposeValidator = external_exports.enum(BITSTRING_STATUS_PURPOSES);
|
|
35746
36245
|
var BitstringStatusListEntryValidator = external_exports.object({
|
|
@@ -35807,12 +36306,15 @@ var inAppMessageActionValidator = external_exports.object({
|
|
|
35807
36306
|
label: external_exports.string(),
|
|
35808
36307
|
style: inAppMessageActionStyleValidator,
|
|
35809
36308
|
action: inAppMessageActionTargetValidator,
|
|
36309
|
+
/** When true, the message closes after this action runs (default true). */
|
|
35810
36310
|
closeOnComplete: external_exports.boolean().default(true)
|
|
35811
36311
|
}).passthrough();
|
|
35812
36312
|
var inAppMessageMediaValidator = external_exports.object({
|
|
35813
36313
|
type: external_exports.enum(["youtube", "image", "gif"]),
|
|
35814
36314
|
url: external_exports.string(),
|
|
36315
|
+
/** Aspect ratio hint, e.g. "16:9" or "1:1". Defaults to 16:9. */
|
|
35815
36316
|
aspect: external_exports.string().default("16:9"),
|
|
36317
|
+
/** Alt text for images/gifs (accessibility). */
|
|
35816
36318
|
alt: external_exports.string().optional()
|
|
35817
36319
|
}).passthrough();
|
|
35818
36320
|
var inAppMessageFrequencyValidator = external_exports.union([
|
|
@@ -35823,17 +36325,23 @@ var inAppMessageFrequencyValidator = external_exports.union([
|
|
|
35823
36325
|
]).default("once");
|
|
35824
36326
|
var inAppMessagePresentationValidator = external_exports.enum(["modal", "banner", "toast"]).default("modal");
|
|
35825
36327
|
var inAppMessageValidator = external_exports.object({
|
|
36328
|
+
/** Stable identifier — used to persist dismissal / frequency state. */
|
|
35826
36329
|
id: external_exports.string(),
|
|
36330
|
+
/** Higher priority wins when multiple messages match. Default 0. */
|
|
35827
36331
|
priority: external_exports.number().default(0),
|
|
36332
|
+
/** When false, the message is required/blocking (no dismiss affordance). */
|
|
35828
36333
|
dismissible: external_exports.boolean().default(true),
|
|
35829
36334
|
frequency: inAppMessageFrequencyValidator,
|
|
35830
36335
|
presentation: inAppMessagePresentationValidator,
|
|
35831
36336
|
media: inAppMessageMediaValidator.optional(),
|
|
36337
|
+
/** Optional emoji hero glyph — rendered only when `media` is not set. */
|
|
35832
36338
|
emoji: external_exports.string().optional(),
|
|
35833
36339
|
title: external_exports.string(),
|
|
35834
36340
|
body: external_exports.string().optional(),
|
|
35835
36341
|
actions: external_exports.array(inAppMessageActionValidator).default([]),
|
|
36342
|
+
/** Targeting predicate tree. Omitted → matches everyone. */
|
|
35836
36343
|
targeting: inAppMessagePredicateValidator.optional(),
|
|
36344
|
+
/** Allow disabling a message without removing it from the flag. */
|
|
35837
36345
|
enabled: external_exports.boolean().default(true)
|
|
35838
36346
|
}).passthrough();
|
|
35839
36347
|
var inAppMessagesFlagValidator = external_exports.object({
|
|
@@ -35850,14 +36358,12 @@ var isSvgMustacheRenderMethod = /* @__PURE__ */ __name((rm) => {
|
|
|
35850
36358
|
var getRenderMethods = /* @__PURE__ */ __name((vc) => {
|
|
35851
36359
|
const effective = unwrapBoostCredential(vc) ?? vc;
|
|
35852
36360
|
const raw = effective?.renderMethod;
|
|
35853
|
-
if (!raw)
|
|
35854
|
-
return [];
|
|
36361
|
+
if (!raw) return [];
|
|
35855
36362
|
return Array.isArray(raw) ? raw : [raw];
|
|
35856
36363
|
}, "getRenderMethods");
|
|
35857
36364
|
function findRenderMethod(vc, predicate) {
|
|
35858
36365
|
for (const entry of getRenderMethods(vc)) {
|
|
35859
|
-
if (predicate(entry))
|
|
35860
|
-
return entry;
|
|
36366
|
+
if (predicate(entry)) return entry;
|
|
35861
36367
|
}
|
|
35862
36368
|
return null;
|
|
35863
36369
|
}
|
|
@@ -35890,11 +36396,9 @@ var findTemplateRenderMethods = /* @__PURE__ */ __name((vc, suite) => {
|
|
|
35890
36396
|
var getSvgMustacheRenderMethod = /* @__PURE__ */ __name((vc) => findTemplateRenderMethod(vc, "svg-mustache"), "getSvgMustacheRenderMethod");
|
|
35891
36397
|
var isUnsafeKey = /* @__PURE__ */ __name((key) => key === "__proto__" || key === "constructor" || key === "prototype", "isUnsafeKey");
|
|
35892
36398
|
var resolvePointer = /* @__PURE__ */ __name((obj, pointer) => {
|
|
35893
|
-
if (!pointer || pointer === "/")
|
|
35894
|
-
return obj;
|
|
36399
|
+
if (!pointer || pointer === "/") return obj;
|
|
35895
36400
|
const parts = pointer.replace(/^\//, "").split("/").map((p) => p.replace(/~1/g, "/").replace(/~0/g, "~"));
|
|
35896
|
-
if (parts.some(isUnsafeKey))
|
|
35897
|
-
return void 0;
|
|
36401
|
+
if (parts.some(isUnsafeKey)) return void 0;
|
|
35898
36402
|
let current2 = obj;
|
|
35899
36403
|
for (const part of parts) {
|
|
35900
36404
|
if (current2 === null || current2 === void 0 || typeof current2 !== "object")
|
|
@@ -35908,11 +36412,9 @@ var buildRenderDataFromPointers = /* @__PURE__ */ __name((vc, pointers) => {
|
|
|
35908
36412
|
const isUnsafeKey2 = /* @__PURE__ */ __name((key) => key === "__proto__" || key === "constructor" || key === "prototype", "isUnsafeKey");
|
|
35909
36413
|
for (const pointer of pointers) {
|
|
35910
36414
|
const value = resolvePointer(vc, pointer);
|
|
35911
|
-
if (value === void 0)
|
|
35912
|
-
continue;
|
|
36415
|
+
if (value === void 0) continue;
|
|
35913
36416
|
const parts = pointer.replace(/^\//, "").split("/").map((p) => p.replace(/~1/g, "/").replace(/~0/g, "~"));
|
|
35914
|
-
if (parts.some(isUnsafeKey2))
|
|
35915
|
-
continue;
|
|
36417
|
+
if (parts.some(isUnsafeKey2)) continue;
|
|
35916
36418
|
let current2 = result;
|
|
35917
36419
|
for (let i = 0; i < parts.length - 1; i++) {
|
|
35918
36420
|
const part = parts[i];
|
|
@@ -35922,8 +36424,7 @@ var buildRenderDataFromPointers = /* @__PURE__ */ __name((vc, pointers) => {
|
|
|
35922
36424
|
current2 = current2[part];
|
|
35923
36425
|
}
|
|
35924
36426
|
const lastPart = parts[parts.length - 1];
|
|
35925
|
-
if (isUnsafeKey2(lastPart))
|
|
35926
|
-
continue;
|
|
36427
|
+
if (isUnsafeKey2(lastPart)) continue;
|
|
35927
36428
|
current2[lastPart] = value;
|
|
35928
36429
|
}
|
|
35929
36430
|
return result;
|
|
@@ -35936,8 +36437,7 @@ var buildRenderData = /* @__PURE__ */ __name((vc, renderProperty) => {
|
|
|
35936
36437
|
credential,
|
|
35937
36438
|
credentialSubjects: Array.isArray(credential.credentialSubject) ? credential.credentialSubject : [credential.credentialSubject].filter(Boolean)
|
|
35938
36439
|
};
|
|
35939
|
-
if (!renderProperty || renderProperty.length === 0)
|
|
35940
|
-
return base;
|
|
36440
|
+
if (!renderProperty || renderProperty.length === 0) return base;
|
|
35941
36441
|
return {
|
|
35942
36442
|
...base,
|
|
35943
36443
|
...buildRenderDataFromPointers(vc, renderProperty),
|
|
@@ -35948,8 +36448,7 @@ var buildRenderData = /* @__PURE__ */ __name((vc, renderProperty) => {
|
|
|
35948
36448
|
// src/plugin.ts
|
|
35949
36449
|
var DEFAULT_TEMPLATE_ID = "https://templates.learncard.com/svg/card/card-1.0.0.svg";
|
|
35950
36450
|
var isValidTemplateId = /* @__PURE__ */ __name((templateId) => {
|
|
35951
|
-
if (!templateId || !templateId.trim())
|
|
35952
|
-
return false;
|
|
36451
|
+
if (!templateId || !templateId.trim()) return false;
|
|
35953
36452
|
return /^https?:\/\//i.test(templateId);
|
|
35954
36453
|
}, "isValidTemplateId");
|
|
35955
36454
|
var buildTemplateRenderMethod = /* @__PURE__ */ __name((config2) => {
|
|
@@ -35975,15 +36474,17 @@ var buildTemplateRenderMethod = /* @__PURE__ */ __name((config2) => {
|
|
|
35975
36474
|
}
|
|
35976
36475
|
return {
|
|
35977
36476
|
type: "TemplateRenderMethod",
|
|
36477
|
+
// TODO: Add other render suites (e.g., WebRenderingTemplate2022, HtmlMustacheRenderingTemplate)
|
|
35978
36478
|
renderSuite: "svg-mustache",
|
|
35979
36479
|
template,
|
|
36480
|
+
// Only include renderProperty when explicitly provided to avoid overriding VC defaults
|
|
35980
36481
|
...config2.renderProperty ? { renderProperty: config2.renderProperty } : {},
|
|
36482
|
+
// TODO: Make mediaType configurable per renderSuite once additional suites are supported
|
|
35981
36483
|
outputPreference: { mediaType: "image/svg+xml" }
|
|
35982
36484
|
};
|
|
35983
36485
|
}, "buildTemplateRenderMethod");
|
|
35984
36486
|
var attachRenderMethod = /* @__PURE__ */ __name((vc, config2) => {
|
|
35985
|
-
if (!config2)
|
|
35986
|
-
return vc;
|
|
36487
|
+
if (!config2) return vc;
|
|
35987
36488
|
const renderMethod = buildTemplateRenderMethod(config2);
|
|
35988
36489
|
const context = Array.isArray(vc["@context"]) ? vc["@context"] : [vc["@context"]];
|
|
35989
36490
|
const updatedContext = context.includes(RENDER_METHOD_CONTEXT) ? context : [...context, RENDER_METHOD_CONTEXT];
|
|
@@ -36007,15 +36508,15 @@ var getRenderMethodPlugin = /* @__PURE__ */ __name((_learnCard) => ({
|
|
|
36007
36508
|
displayName: "Render Method Plugin",
|
|
36008
36509
|
description: "Attaches W3C renderMethod to Verifiable Credentials for standards-based rendering",
|
|
36009
36510
|
methods: {
|
|
36010
|
-
attachRenderMethod: (_lc, vc, config2) => attachRenderMethod(vc, config2),
|
|
36011
|
-
buildTemplateRenderMethod: (_lc, config2) => buildTemplateRenderMethod(config2),
|
|
36012
|
-
getRenderMethods: (_lc, vc) => getRenderMethods(vc),
|
|
36013
|
-
findRenderMethod: (_lc, vc, predicate) => findRenderMethod(vc, predicate),
|
|
36014
|
-
findRenderMethods: (_lc, vc, predicate) => findRenderMethods(vc, predicate),
|
|
36015
|
-
findTemplateRenderMethod: (_lc, vc, suite) => findTemplateRenderMethod(vc, suite),
|
|
36016
|
-
findTemplateRenderMethods: (_lc, vc, suite) => findTemplateRenderMethods(vc, suite),
|
|
36017
|
-
getSvgMustacheRenderMethod: (_lc, vc) => getSvgMustacheRenderMethod(vc),
|
|
36018
|
-
buildRenderData: (_lc, vc, renderProperty) => buildRenderData(vc, renderProperty)
|
|
36511
|
+
attachRenderMethod: /* @__PURE__ */ __name((_lc, vc, config2) => attachRenderMethod(vc, config2), "attachRenderMethod"),
|
|
36512
|
+
buildTemplateRenderMethod: /* @__PURE__ */ __name((_lc, config2) => buildTemplateRenderMethod(config2), "buildTemplateRenderMethod"),
|
|
36513
|
+
getRenderMethods: /* @__PURE__ */ __name((_lc, vc) => getRenderMethods(vc), "getRenderMethods"),
|
|
36514
|
+
findRenderMethod: /* @__PURE__ */ __name((_lc, vc, predicate) => findRenderMethod(vc, predicate), "findRenderMethod"),
|
|
36515
|
+
findRenderMethods: /* @__PURE__ */ __name((_lc, vc, predicate) => findRenderMethods(vc, predicate), "findRenderMethods"),
|
|
36516
|
+
findTemplateRenderMethod: /* @__PURE__ */ __name((_lc, vc, suite) => findTemplateRenderMethod(vc, suite), "findTemplateRenderMethod"),
|
|
36517
|
+
findTemplateRenderMethods: /* @__PURE__ */ __name((_lc, vc, suite) => findTemplateRenderMethods(vc, suite), "findTemplateRenderMethods"),
|
|
36518
|
+
getSvgMustacheRenderMethod: /* @__PURE__ */ __name((_lc, vc) => getSvgMustacheRenderMethod(vc), "getSvgMustacheRenderMethod"),
|
|
36519
|
+
buildRenderData: /* @__PURE__ */ __name((_lc, vc, renderProperty) => buildRenderData(vc, renderProperty), "buildRenderData")
|
|
36019
36520
|
}
|
|
36020
36521
|
}), "getRenderMethodPlugin");
|
|
36021
36522
|
export {
|