@learncard/render-method-plugin 4.0.4 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1332,10 +1332,10 @@ function $constructor(name, initializer3, params) {
1332
1332
  let Definition = _Definition;
1333
1333
  Object.defineProperty(Definition, "name", { value: name });
1334
1334
  function _(def) {
1335
- var _a5;
1335
+ var _a6;
1336
1336
  const inst = params?.Parent ? new Definition() : this;
1337
1337
  init(inst, def);
1338
- (_a5 = inst._zod).deferred ?? (_a5.deferred = []);
1338
+ (_a6 = inst._zod).deferred ?? (_a6.deferred = []);
1339
1339
  for (const fn of inst._zod.deferred) {
1340
1340
  fn();
1341
1341
  }
@@ -2001,8 +2001,8 @@ function explicitlyAborted(x, startIndex = 0) {
2001
2001
  __name(explicitlyAborted, "explicitlyAborted");
2002
2002
  function prefixIssues(path, issues) {
2003
2003
  return issues.map((iss) => {
2004
- var _a5;
2005
- (_a5 = iss).path ?? (_a5.path = []);
2004
+ var _a6;
2005
+ (_a6 = iss).path ?? (_a6.path = []);
2006
2006
  iss.path.unshift(path);
2007
2007
  return iss;
2008
2008
  });
@@ -2205,7 +2205,7 @@ __name(formatError, "formatError");
2205
2205
  function treeifyError(error51, mapper = (issue2) => issue2.message) {
2206
2206
  const result = { errors: [] };
2207
2207
  const processError = /* @__PURE__ */ __name((error52, path = []) => {
2208
- var _a5, _b;
2208
+ var _a6, _b;
2209
2209
  for (const issue2 of error52.issues) {
2210
2210
  if (issue2.code === "invalid_union" && issue2.errors.length) {
2211
2211
  issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
@@ -2226,7 +2226,7 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
2226
2226
  const terminal = i === fullpath.length - 1;
2227
2227
  if (typeof el === "string") {
2228
2228
  curr.properties ?? (curr.properties = {});
2229
- (_a5 = curr.properties)[el] ?? (_a5[el] = { errors: [] });
2229
+ (_a6 = curr.properties)[el] ?? (_a6[el] = { errors: [] });
2230
2230
  curr = curr.properties[el];
2231
2231
  } else {
2232
2232
  curr.items ?? (curr.items = []);
@@ -2531,10 +2531,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2531
2531
 
2532
2532
  // ../../../node_modules/zod/v4/core/checks.js
2533
2533
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2534
- var _a5;
2534
+ var _a6;
2535
2535
  inst._zod ?? (inst._zod = {});
2536
2536
  inst._zod.def = def;
2537
- (_a5 = inst._zod).onattach ?? (_a5.onattach = []);
2537
+ (_a6 = inst._zod).onattach ?? (_a6.onattach = []);
2538
2538
  });
2539
2539
  var numericOriginMap = {
2540
2540
  number: "number",
@@ -2600,8 +2600,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2600
2600
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2601
2601
  $ZodCheck.init(inst, def);
2602
2602
  inst._zod.onattach.push((inst2) => {
2603
- var _a5;
2604
- (_a5 = inst2._zod.bag).multipleOf ?? (_a5.multipleOf = def.value);
2603
+ var _a6;
2604
+ (_a6 = inst2._zod.bag).multipleOf ?? (_a6.multipleOf = def.value);
2605
2605
  });
2606
2606
  inst._zod.check = (payload) => {
2607
2607
  if (typeof payload.value !== typeof def.value)
@@ -2734,9 +2734,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
2734
2734
  };
2735
2735
  });
2736
2736
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2737
- var _a5;
2737
+ var _a6;
2738
2738
  $ZodCheck.init(inst, def);
2739
- (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2739
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2740
2740
  const val = payload.value;
2741
2741
  return !nullish(val) && val.size !== void 0;
2742
2742
  });
@@ -2762,9 +2762,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
2762
2762
  };
2763
2763
  });
2764
2764
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2765
- var _a5;
2765
+ var _a6;
2766
2766
  $ZodCheck.init(inst, def);
2767
- (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2767
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2768
2768
  const val = payload.value;
2769
2769
  return !nullish(val) && val.size !== void 0;
2770
2770
  });
@@ -2790,9 +2790,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
2790
2790
  };
2791
2791
  });
2792
2792
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2793
- var _a5;
2793
+ var _a6;
2794
2794
  $ZodCheck.init(inst, def);
2795
- (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2795
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2796
2796
  const val = payload.value;
2797
2797
  return !nullish(val) && val.size !== void 0;
2798
2798
  });
@@ -2820,9 +2820,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
2820
2820
  };
2821
2821
  });
2822
2822
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2823
- var _a5;
2823
+ var _a6;
2824
2824
  $ZodCheck.init(inst, def);
2825
- (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2825
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2826
2826
  const val = payload.value;
2827
2827
  return !nullish(val) && val.length !== void 0;
2828
2828
  });
@@ -2849,9 +2849,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2849
2849
  };
2850
2850
  });
2851
2851
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2852
- var _a5;
2852
+ var _a6;
2853
2853
  $ZodCheck.init(inst, def);
2854
- (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2854
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2855
2855
  const val = payload.value;
2856
2856
  return !nullish(val) && val.length !== void 0;
2857
2857
  });
@@ -2878,9 +2878,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2878
2878
  };
2879
2879
  });
2880
2880
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2881
- var _a5;
2881
+ var _a6;
2882
2882
  $ZodCheck.init(inst, def);
2883
- (_a5 = inst._zod.def).when ?? (_a5.when = (payload) => {
2883
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2884
2884
  const val = payload.value;
2885
2885
  return !nullish(val) && val.length !== void 0;
2886
2886
  });
@@ -2909,7 +2909,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2909
2909
  };
2910
2910
  });
2911
2911
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2912
- var _a5, _b;
2912
+ var _a6, _b;
2913
2913
  $ZodCheck.init(inst, def);
2914
2914
  inst._zod.onattach.push((inst2) => {
2915
2915
  const bag = inst2._zod.bag;
@@ -2920,7 +2920,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2920
2920
  }
2921
2921
  });
2922
2922
  if (def.pattern)
2923
- (_a5 = inst._zod).check ?? (_a5.check = (payload) => {
2923
+ (_a6 = inst._zod).check ?? (_a6.check = (payload) => {
2924
2924
  def.pattern.lastIndex = 0;
2925
2925
  if (def.pattern.test(payload.value))
2926
2926
  return;
@@ -3125,7 +3125,7 @@ var version = {
3125
3125
 
3126
3126
  // ../../../node_modules/zod/v4/core/schemas.js
3127
3127
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3128
- var _a5;
3128
+ var _a6;
3129
3129
  inst ?? (inst = {});
3130
3130
  inst._zod.def = def;
3131
3131
  inst._zod.bag = inst._zod.bag || {};
@@ -3140,7 +3140,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3140
3140
  }
3141
3141
  }
3142
3142
  if (checks.length === 0) {
3143
- (_a5 = inst._zod).deferred ?? (_a5.deferred = []);
3143
+ (_a6 = inst._zod).deferred ?? (_a6.deferred = []);
3144
3144
  inst._zod.deferred?.push(() => {
3145
3145
  inst._zod.run = inst._zod.parse;
3146
3146
  });
@@ -12531,7 +12531,7 @@ function initializeContext(params) {
12531
12531
  }
12532
12532
  __name(initializeContext, "initializeContext");
12533
12533
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
12534
- var _a5;
12534
+ var _a6;
12535
12535
  const def = schema._zod.def;
12536
12536
  const seen = ctx.seen.get(schema);
12537
12537
  if (seen) {
@@ -12579,7 +12579,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
12579
12579
  delete result.schema.default;
12580
12580
  }
12581
12581
  if (ctx.io === "input" && "_prefault" in result.schema)
12582
- (_a5 = result.schema).default ?? (_a5.default = result.schema._prefault);
12582
+ (_a6 = result.schema).default ?? (_a6.default = result.schema._prefault);
12583
12583
  delete result.schema._prefault;
12584
12584
  const _result = ctx.seen.get(schema);
12585
12585
  return _result.schema;
@@ -15730,9 +15730,8 @@ __name(date4, "date");
15730
15730
  config(en_default());
15731
15731
 
15732
15732
  // ../../../node_modules/js-base64/base64.mjs
15733
- var version2 = "3.8.0";
15733
+ var version2 = "3.9.3";
15734
15734
  var VERSION = version2;
15735
- var _hasBuffer = typeof Buffer === "function";
15736
15735
  var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
15737
15736
  var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
15738
15737
  var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
@@ -15758,8 +15757,8 @@ var btoaPolyfill = /* @__PURE__ */ __name((bin) => {
15758
15757
  }
15759
15758
  return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
15760
15759
  }, "btoaPolyfill");
15761
- var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : _hasBuffer ? (bin) => Buffer.from(bin, "binary").toString("base64") : btoaPolyfill;
15762
- var _fromUint8Array = _hasBuffer ? (u8a) => Buffer.from(u8a).toString("base64") : (u8a) => {
15760
+ var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : btoaPolyfill;
15761
+ var _fromUint8Array = typeof Uint8Array.prototype.toBase64 === "function" ? (u8a) => u8a.toBase64() : (u8a) => {
15763
15762
  const maxargs = 4096;
15764
15763
  let strs = [];
15765
15764
  for (let i = 0, l = u8a.length; i < l; i += maxargs) {
@@ -15777,9 +15776,9 @@ var cb_utob = /* @__PURE__ */ __name((c) => {
15777
15776
  return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
15778
15777
  }
15779
15778
  }, "cb_utob");
15780
- var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
15779
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
15781
15780
  var utob = /* @__PURE__ */ __name((u) => u.replace(re_utob, cb_utob), "utob");
15782
- var _encode2 = _hasBuffer ? (s) => Buffer.from(s, "utf8").toString("base64") : _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
15781
+ var _encode2 = _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
15783
15782
  var encode3 = /* @__PURE__ */ __name((src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode2(src)) : _encode2(src), "encode");
15784
15783
  var encodeURI = /* @__PURE__ */ __name((src) => encode3(src, true), "encodeURI");
15785
15784
  var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
@@ -15814,10 +15813,10 @@ var atobPolyfill = /* @__PURE__ */ __name((asc) => {
15814
15813
  }
15815
15814
  return binArray.join("");
15816
15815
  }, "atobPolyfill");
15817
- var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : _hasBuffer ? (asc) => Buffer.from(asc, "base64").toString("binary") : atobPolyfill;
15818
- var _toUint8Array = _hasBuffer ? (a) => _U8Afrom(Buffer.from(a, "base64")) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
15816
+ var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
15817
+ var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
15819
15818
  var toUint8Array = /* @__PURE__ */ __name((a) => _toUint8Array(_unURI(a)), "toUint8Array");
15820
- var _decode2 = _hasBuffer ? (a) => Buffer.from(a, "base64").toString("utf8") : _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
15819
+ var _decode2 = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
15821
15820
  var _unURI = /* @__PURE__ */ __name((a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/")), "_unURI");
15822
15821
  var decode3 = /* @__PURE__ */ __name((src) => _decode2(_unURI(src)), "decode");
15823
15822
  var isValid = /* @__PURE__ */ __name((src) => {
@@ -15929,7 +15928,7 @@ var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod
15929
15928
  var require_types_cjs_development = __commonJS({
15930
15929
  "../learn-card-types/dist/types.cjs.development.cjs"(exports, module) {
15931
15930
  "use strict";
15932
- var _a6, _b, _c, _d, _e, _f, _g;
15931
+ var _a7, _b, _c, _d, _e, _f, _g;
15933
15932
  var __defProp22 = Object.defineProperty;
15934
15933
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
15935
15934
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
@@ -16758,7 +16757,7 @@ var require_types_cjs_development = __commonJS({
16758
16757
  util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
16759
16758
  version: /* @__PURE__ */ __name2(() => version3, "version")
16760
16759
  });
16761
- var _a5;
16760
+ var _a6;
16762
16761
  var NEVER2 = /* @__PURE__ */ Object.freeze({
16763
16762
  status: "aborted"
16764
16763
  });
@@ -16828,18 +16827,18 @@ var require_types_cjs_development = __commonJS({
16828
16827
  __name2($constructor2, "$constructor");
16829
16828
  __name22($constructor2, "$constructor");
16830
16829
  var $brand2 = /* @__PURE__ */ Symbol("zod_brand");
16831
- var $ZodAsyncError2 = (_a6 = class extends Error {
16830
+ var $ZodAsyncError2 = (_a7 = class extends Error {
16832
16831
  constructor() {
16833
16832
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
16834
16833
  }
16835
- }, __name(_a6, "$ZodAsyncError"), __name2(_a6, "$ZodAsyncError"), __name22(_a6, "$ZodAsyncError"), _a6);
16834
+ }, __name(_a7, "$ZodAsyncError"), __name2(_a7, "$ZodAsyncError"), __name22(_a7, "$ZodAsyncError"), _a7);
16836
16835
  var $ZodEncodeError2 = (_b = class extends Error {
16837
16836
  constructor(name) {
16838
16837
  super(`Encountered unidirectional transform during encode: ${name}`);
16839
16838
  this.name = "ZodEncodeError";
16840
16839
  }
16841
16840
  }, __name(_b, "$ZodEncodeError"), __name2(_b, "$ZodEncodeError"), __name22(_b, "$ZodEncodeError"), _b);
16842
- (_a5 = globalThis).__zod_globalConfig ?? (_a5.__zod_globalConfig = {});
16841
+ (_a6 = globalThis).__zod_globalConfig ?? (_a6.__zod_globalConfig = {});
16843
16842
  var globalConfig2 = globalThis.__zod_globalConfig;
16844
16843
  function config2(newConfig) {
16845
16844
  if (newConfig)
@@ -31359,7 +31358,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31359
31358
  var ZodFirstPartyTypeKind2;
31360
31359
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind22) {
31361
31360
  })(ZodFirstPartyTypeKind2 || (ZodFirstPartyTypeKind2 = {}));
31362
- var z2 = {
31361
+ var z3 = {
31363
31362
  ...schemas_exports22,
31364
31363
  ...checks_exports22,
31365
31364
  iso: iso_exports2
@@ -31475,7 +31474,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31475
31474
  function convertBaseSchema2(schema, ctx) {
31476
31475
  if (schema.not !== void 0) {
31477
31476
  if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) {
31478
- return z2.never();
31477
+ return z3.never();
31479
31478
  }
31480
31479
  throw new Error("not is not supported in Zod (except { not: {} } for never)");
31481
31480
  }
@@ -31497,7 +31496,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31497
31496
  return ctx.refs.get(refPath);
31498
31497
  }
31499
31498
  if (ctx.processing.has(refPath)) {
31500
- return z2.lazy(() => {
31499
+ return z3.lazy(() => {
31501
31500
  if (!ctx.refs.has(refPath)) {
31502
31501
  throw new Error(`Circular reference not resolved: ${refPath}`);
31503
31502
  }
@@ -31514,25 +31513,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31514
31513
  if (schema.enum !== void 0) {
31515
31514
  const enumValues = schema.enum;
31516
31515
  if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) {
31517
- return z2.null();
31516
+ return z3.null();
31518
31517
  }
31519
31518
  if (enumValues.length === 0) {
31520
- return z2.never();
31519
+ return z3.never();
31521
31520
  }
31522
31521
  if (enumValues.length === 1) {
31523
- return z2.literal(enumValues[0]);
31522
+ return z3.literal(enumValues[0]);
31524
31523
  }
31525
31524
  if (enumValues.every((v) => typeof v === "string")) {
31526
- return z2.enum(enumValues);
31525
+ return z3.enum(enumValues);
31527
31526
  }
31528
- const literalSchemas = enumValues.map((v) => z2.literal(v));
31527
+ const literalSchemas = enumValues.map((v) => z3.literal(v));
31529
31528
  if (literalSchemas.length < 2) {
31530
31529
  return literalSchemas[0];
31531
31530
  }
31532
- return z2.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
31531
+ return z3.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
31533
31532
  }
31534
31533
  if (schema.const !== void 0) {
31535
- return z2.literal(schema.const);
31534
+ return z3.literal(schema.const);
31536
31535
  }
31537
31536
  const type = schema.type;
31538
31537
  if (Array.isArray(type)) {
@@ -31541,68 +31540,68 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31541
31540
  return convertBaseSchema2(typeSchema, ctx);
31542
31541
  });
31543
31542
  if (typeSchemas.length === 0) {
31544
- return z2.never();
31543
+ return z3.never();
31545
31544
  }
31546
31545
  if (typeSchemas.length === 1) {
31547
31546
  return typeSchemas[0];
31548
31547
  }
31549
- return z2.union(typeSchemas);
31548
+ return z3.union(typeSchemas);
31550
31549
  }
31551
31550
  if (!type) {
31552
- return z2.any();
31551
+ return z3.any();
31553
31552
  }
31554
31553
  let zodSchema;
31555
31554
  switch (type) {
31556
31555
  case "string": {
31557
- let stringSchema = z2.string();
31556
+ let stringSchema = z3.string();
31558
31557
  if (schema.format) {
31559
31558
  const format = schema.format;
31560
31559
  if (format === "email") {
31561
- stringSchema = stringSchema.check(z2.email());
31560
+ stringSchema = stringSchema.check(z3.email());
31562
31561
  } else if (format === "uri" || format === "uri-reference") {
31563
- stringSchema = stringSchema.check(z2.url());
31562
+ stringSchema = stringSchema.check(z3.url());
31564
31563
  } else if (format === "uuid" || format === "guid") {
31565
- stringSchema = stringSchema.check(z2.uuid());
31564
+ stringSchema = stringSchema.check(z3.uuid());
31566
31565
  } else if (format === "date-time") {
31567
- stringSchema = stringSchema.check(z2.iso.datetime());
31566
+ stringSchema = stringSchema.check(z3.iso.datetime());
31568
31567
  } else if (format === "date") {
31569
- stringSchema = stringSchema.check(z2.iso.date());
31568
+ stringSchema = stringSchema.check(z3.iso.date());
31570
31569
  } else if (format === "time") {
31571
- stringSchema = stringSchema.check(z2.iso.time());
31570
+ stringSchema = stringSchema.check(z3.iso.time());
31572
31571
  } else if (format === "duration") {
31573
- stringSchema = stringSchema.check(z2.iso.duration());
31572
+ stringSchema = stringSchema.check(z3.iso.duration());
31574
31573
  } else if (format === "ipv4") {
31575
- stringSchema = stringSchema.check(z2.ipv4());
31574
+ stringSchema = stringSchema.check(z3.ipv4());
31576
31575
  } else if (format === "ipv6") {
31577
- stringSchema = stringSchema.check(z2.ipv6());
31576
+ stringSchema = stringSchema.check(z3.ipv6());
31578
31577
  } else if (format === "mac") {
31579
- stringSchema = stringSchema.check(z2.mac());
31578
+ stringSchema = stringSchema.check(z3.mac());
31580
31579
  } else if (format === "cidr") {
31581
- stringSchema = stringSchema.check(z2.cidrv4());
31580
+ stringSchema = stringSchema.check(z3.cidrv4());
31582
31581
  } else if (format === "cidr-v6") {
31583
- stringSchema = stringSchema.check(z2.cidrv6());
31582
+ stringSchema = stringSchema.check(z3.cidrv6());
31584
31583
  } else if (format === "base64") {
31585
- stringSchema = stringSchema.check(z2.base64());
31584
+ stringSchema = stringSchema.check(z3.base64());
31586
31585
  } else if (format === "base64url") {
31587
- stringSchema = stringSchema.check(z2.base64url());
31586
+ stringSchema = stringSchema.check(z3.base64url());
31588
31587
  } else if (format === "e164") {
31589
- stringSchema = stringSchema.check(z2.e164());
31588
+ stringSchema = stringSchema.check(z3.e164());
31590
31589
  } else if (format === "jwt") {
31591
- stringSchema = stringSchema.check(z2.jwt());
31590
+ stringSchema = stringSchema.check(z3.jwt());
31592
31591
  } else if (format === "emoji") {
31593
- stringSchema = stringSchema.check(z2.emoji());
31592
+ stringSchema = stringSchema.check(z3.emoji());
31594
31593
  } else if (format === "nanoid") {
31595
- stringSchema = stringSchema.check(z2.nanoid());
31594
+ stringSchema = stringSchema.check(z3.nanoid());
31596
31595
  } else if (format === "cuid") {
31597
- stringSchema = stringSchema.check(z2.cuid());
31596
+ stringSchema = stringSchema.check(z3.cuid());
31598
31597
  } else if (format === "cuid2") {
31599
- stringSchema = stringSchema.check(z2.cuid2());
31598
+ stringSchema = stringSchema.check(z3.cuid2());
31600
31599
  } else if (format === "ulid") {
31601
- stringSchema = stringSchema.check(z2.ulid());
31600
+ stringSchema = stringSchema.check(z3.ulid());
31602
31601
  } else if (format === "xid") {
31603
- stringSchema = stringSchema.check(z2.xid());
31602
+ stringSchema = stringSchema.check(z3.xid());
31604
31603
  } else if (format === "ksuid") {
31605
- stringSchema = stringSchema.check(z2.ksuid());
31604
+ stringSchema = stringSchema.check(z3.ksuid());
31606
31605
  }
31607
31606
  }
31608
31607
  if (typeof schema.minLength === "number") {
@@ -31619,7 +31618,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31619
31618
  }
31620
31619
  case "number":
31621
31620
  case "integer": {
31622
- let numberSchema = type === "integer" ? z2.number().int() : z2.number();
31621
+ let numberSchema = type === "integer" ? z3.number().int() : z3.number();
31623
31622
  if (typeof schema.minimum === "number") {
31624
31623
  numberSchema = numberSchema.min(schema.minimum);
31625
31624
  }
@@ -31643,11 +31642,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31643
31642
  break;
31644
31643
  }
31645
31644
  case "boolean": {
31646
- zodSchema = z2.boolean();
31645
+ zodSchema = z3.boolean();
31647
31646
  break;
31648
31647
  }
31649
31648
  case "null": {
31650
- zodSchema = z2.null();
31649
+ zodSchema = z3.null();
31651
31650
  break;
31652
31651
  }
31653
31652
  case "object": {
@@ -31660,14 +31659,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31660
31659
  }
31661
31660
  if (schema.propertyNames) {
31662
31661
  const keySchema = convertSchema2(schema.propertyNames, ctx);
31663
- const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema2(schema.additionalProperties, ctx) : z2.any();
31662
+ const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema2(schema.additionalProperties, ctx) : z3.any();
31664
31663
  if (Object.keys(shape).length === 0) {
31665
- zodSchema = z2.record(keySchema, valueSchema);
31664
+ zodSchema = z3.record(keySchema, valueSchema);
31666
31665
  break;
31667
31666
  }
31668
- const objectSchema2 = z2.object(shape).passthrough();
31669
- const recordSchema = z2.looseRecord(keySchema, valueSchema);
31670
- zodSchema = z2.intersection(objectSchema2, recordSchema);
31667
+ const objectSchema2 = z3.object(shape).passthrough();
31668
+ const recordSchema = z3.looseRecord(keySchema, valueSchema);
31669
+ zodSchema = z3.intersection(objectSchema2, recordSchema);
31671
31670
  break;
31672
31671
  }
31673
31672
  if (schema.patternProperties) {
@@ -31676,28 +31675,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31676
31675
  const looseRecords = [];
31677
31676
  for (const pattern of patternKeys) {
31678
31677
  const patternValue = convertSchema2(patternProps[pattern], ctx);
31679
- const keySchema = z2.string().regex(new RegExp(pattern));
31680
- looseRecords.push(z2.looseRecord(keySchema, patternValue));
31678
+ const keySchema = z3.string().regex(new RegExp(pattern));
31679
+ looseRecords.push(z3.looseRecord(keySchema, patternValue));
31681
31680
  }
31682
31681
  const schemasToIntersect = [];
31683
31682
  if (Object.keys(shape).length > 0) {
31684
- schemasToIntersect.push(z2.object(shape).passthrough());
31683
+ schemasToIntersect.push(z3.object(shape).passthrough());
31685
31684
  }
31686
31685
  schemasToIntersect.push(...looseRecords);
31687
31686
  if (schemasToIntersect.length === 0) {
31688
- zodSchema = z2.object({}).passthrough();
31687
+ zodSchema = z3.object({}).passthrough();
31689
31688
  } else if (schemasToIntersect.length === 1) {
31690
31689
  zodSchema = schemasToIntersect[0];
31691
31690
  } else {
31692
- let result = z2.intersection(schemasToIntersect[0], schemasToIntersect[1]);
31691
+ let result = z3.intersection(schemasToIntersect[0], schemasToIntersect[1]);
31693
31692
  for (let i = 2; i < schemasToIntersect.length; i++) {
31694
- result = z2.intersection(result, schemasToIntersect[i]);
31693
+ result = z3.intersection(result, schemasToIntersect[i]);
31695
31694
  }
31696
31695
  zodSchema = result;
31697
31696
  }
31698
31697
  break;
31699
31698
  }
31700
- const objectSchema = z2.object(shape);
31699
+ const objectSchema = z3.object(shape);
31701
31700
  if (schema.additionalProperties === false) {
31702
31701
  zodSchema = objectSchema.strict();
31703
31702
  } else if (typeof schema.additionalProperties === "object") {
@@ -31714,33 +31713,33 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31714
31713
  const tupleItems = prefixItems.map((item) => convertSchema2(item, ctx));
31715
31714
  const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema2(items, ctx) : void 0;
31716
31715
  if (rest) {
31717
- zodSchema = z2.tuple(tupleItems).rest(rest);
31716
+ zodSchema = z3.tuple(tupleItems).rest(rest);
31718
31717
  } else {
31719
- zodSchema = z2.tuple(tupleItems);
31718
+ zodSchema = z3.tuple(tupleItems);
31720
31719
  }
31721
31720
  if (typeof schema.minItems === "number") {
31722
- zodSchema = zodSchema.check(z2.minLength(schema.minItems));
31721
+ zodSchema = zodSchema.check(z3.minLength(schema.minItems));
31723
31722
  }
31724
31723
  if (typeof schema.maxItems === "number") {
31725
- zodSchema = zodSchema.check(z2.maxLength(schema.maxItems));
31724
+ zodSchema = zodSchema.check(z3.maxLength(schema.maxItems));
31726
31725
  }
31727
31726
  } else if (Array.isArray(items)) {
31728
31727
  const tupleItems = items.map((item) => convertSchema2(item, ctx));
31729
31728
  const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema2(schema.additionalItems, ctx) : void 0;
31730
31729
  if (rest) {
31731
- zodSchema = z2.tuple(tupleItems).rest(rest);
31730
+ zodSchema = z3.tuple(tupleItems).rest(rest);
31732
31731
  } else {
31733
- zodSchema = z2.tuple(tupleItems);
31732
+ zodSchema = z3.tuple(tupleItems);
31734
31733
  }
31735
31734
  if (typeof schema.minItems === "number") {
31736
- zodSchema = zodSchema.check(z2.minLength(schema.minItems));
31735
+ zodSchema = zodSchema.check(z3.minLength(schema.minItems));
31737
31736
  }
31738
31737
  if (typeof schema.maxItems === "number") {
31739
- zodSchema = zodSchema.check(z2.maxLength(schema.maxItems));
31738
+ zodSchema = zodSchema.check(z3.maxLength(schema.maxItems));
31740
31739
  }
31741
31740
  } else if (items !== void 0) {
31742
31741
  const element = convertSchema2(items, ctx);
31743
- let arraySchema = z2.array(element);
31742
+ let arraySchema = z3.array(element);
31744
31743
  if (typeof schema.minItems === "number") {
31745
31744
  arraySchema = arraySchema.min(schema.minItems);
31746
31745
  }
@@ -31749,7 +31748,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31749
31748
  }
31750
31749
  zodSchema = arraySchema;
31751
31750
  } else {
31752
- zodSchema = z2.array(z2.any());
31751
+ zodSchema = z3.array(z3.any());
31753
31752
  }
31754
31753
  break;
31755
31754
  }
@@ -31763,37 +31762,37 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31763
31762
  __name22(convertBaseSchema2, "convertBaseSchema");
31764
31763
  function convertSchema2(schema, ctx) {
31765
31764
  if (typeof schema === "boolean") {
31766
- return schema ? z2.any() : z2.never();
31765
+ return schema ? z3.any() : z3.never();
31767
31766
  }
31768
31767
  let baseSchema = convertBaseSchema2(schema, ctx);
31769
31768
  const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
31770
31769
  if (schema.anyOf && Array.isArray(schema.anyOf)) {
31771
31770
  const options = schema.anyOf.map((s) => convertSchema2(s, ctx));
31772
- const anyOfUnion = z2.union(options);
31773
- baseSchema = hasExplicitType ? z2.intersection(baseSchema, anyOfUnion) : anyOfUnion;
31771
+ const anyOfUnion = z3.union(options);
31772
+ baseSchema = hasExplicitType ? z3.intersection(baseSchema, anyOfUnion) : anyOfUnion;
31774
31773
  }
31775
31774
  if (schema.oneOf && Array.isArray(schema.oneOf)) {
31776
31775
  const options = schema.oneOf.map((s) => convertSchema2(s, ctx));
31777
- const oneOfUnion = z2.xor(options);
31778
- baseSchema = hasExplicitType ? z2.intersection(baseSchema, oneOfUnion) : oneOfUnion;
31776
+ const oneOfUnion = z3.xor(options);
31777
+ baseSchema = hasExplicitType ? z3.intersection(baseSchema, oneOfUnion) : oneOfUnion;
31779
31778
  }
31780
31779
  if (schema.allOf && Array.isArray(schema.allOf)) {
31781
31780
  if (schema.allOf.length === 0) {
31782
- baseSchema = hasExplicitType ? baseSchema : z2.any();
31781
+ baseSchema = hasExplicitType ? baseSchema : z3.any();
31783
31782
  } else {
31784
31783
  let result = hasExplicitType ? baseSchema : convertSchema2(schema.allOf[0], ctx);
31785
31784
  const startIdx = hasExplicitType ? 0 : 1;
31786
31785
  for (let i = startIdx; i < schema.allOf.length; i++) {
31787
- result = z2.intersection(result, convertSchema2(schema.allOf[i], ctx));
31786
+ result = z3.intersection(result, convertSchema2(schema.allOf[i], ctx));
31788
31787
  }
31789
31788
  baseSchema = result;
31790
31789
  }
31791
31790
  }
31792
31791
  if (schema.nullable === true && ctx.version === "openapi-3.0") {
31793
- baseSchema = z2.nullable(baseSchema);
31792
+ baseSchema = z3.nullable(baseSchema);
31794
31793
  }
31795
31794
  if (schema.readOnly === true) {
31796
- baseSchema = z2.readonly(baseSchema);
31795
+ baseSchema = z3.readonly(baseSchema);
31797
31796
  }
31798
31797
  if (schema.default !== void 0) {
31799
31798
  baseSchema = baseSchema.default(schema.default);
@@ -31829,7 +31828,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31829
31828
  __name22(convertSchema2, "convertSchema");
31830
31829
  function fromJSONSchema2(schema, params) {
31831
31830
  if (typeof schema === "boolean") {
31832
- return schema ? z2.any() : z2.never();
31831
+ return schema ? z3.any() : z3.never();
31833
31832
  }
31834
31833
  let normalized;
31835
31834
  try {
@@ -32560,7 +32559,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32560
32559
  did: LCNProfileValidator2.shape.did
32561
32560
  });
32562
32561
  var LCNConnectionProfileValidator2 = LCNAuthedProfileValidator2.extend({
32563
- email: LCNProfileValidator2.shape.email
32562
+ email: LCNProfileValidator2.shape.email,
32563
+ connectedAt: external_exports2.iso.datetime().optional().describe("When the viewer and this profile became connected.")
32564
32564
  });
32565
32565
  var LCNVisibleProfileValidator2 = external_exports2.union([
32566
32566
  LCNConnectionProfileValidator2.strict(),
@@ -34267,6 +34267,32 @@ var ImageWithLoadingStateValdator = external_exports.object({
34267
34267
  loading: external_exports.union([ImageResizingValidator, ImageUploadingValidator]).optional()
34268
34268
  });
34269
34269
  var import_types3 = __toESM(require_dist());
34270
+ var _a4;
34271
+ var EnvironmentConfigurationError = (_a4 = class extends Error {
34272
+ constructor(message) {
34273
+ super(message);
34274
+ this.name = "EnvironmentConfigurationError";
34275
+ }
34276
+ }, __name(_a4, "EnvironmentConfigurationError"), __name2(_a4, "EnvironmentConfigurationError"), _a4);
34277
+ var requiredEnvironmentString = external_exports.string().trim().min(1, "Required but missing");
34278
+ var optionalEnvironmentString = external_exports.preprocess(
34279
+ (value) => value === "" ? void 0 : value,
34280
+ requiredEnvironmentString.optional()
34281
+ );
34282
+ var optionalEnvironmentUrl = external_exports.preprocess(
34283
+ (value) => value === "" ? void 0 : value,
34284
+ external_exports.url("Expected a valid URL").optional()
34285
+ );
34286
+ var environmentBoolean = external_exports.enum(["true", "false", "1", "0"]).transform((value) => value === "true" || value === "1");
34287
+ var optionalEnvironmentBoolean = external_exports.preprocess(
34288
+ (value) => value === "" || value === void 0 ? void 0 : value,
34289
+ environmentBoolean.optional()
34290
+ );
34291
+ var environmentPort = external_exports.coerce.number().int().min(1).max(65535);
34292
+ var optionalEnvironmentPort = external_exports.preprocess(
34293
+ (value) => value === "" || value === void 0 ? void 0 : value,
34294
+ environmentPort.optional()
34295
+ );
34270
34296
  var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
34271
34297
  if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
34272
34298
  return vc.boostCredential;
@@ -34940,7 +34966,8 @@ var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
34940
34966
  did: LCNProfileValidator.shape.did
34941
34967
  });
34942
34968
  var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
34943
- email: LCNProfileValidator.shape.email
34969
+ email: LCNProfileValidator.shape.email,
34970
+ connectedAt: external_exports.iso.datetime().optional().describe("When the viewer and this profile became connected.")
34944
34971
  });
34945
34972
  var LCNVisibleProfileValidator = external_exports.union([
34946
34973
  LCNConnectionProfileValidator.strict(),
@@ -36232,14 +36259,14 @@ var CredentialActivityStatsValidator = external_exports.object({
36232
36259
  failed: external_exports.number(),
36233
36260
  claimRate: external_exports.number()
36234
36261
  });
36235
- var _a4;
36236
- var AuthSessionError = (_a4 = class extends Error {
36262
+ var _a5;
36263
+ var AuthSessionError = (_a5 = class extends Error {
36237
36264
  constructor(message, reason) {
36238
36265
  super(message);
36239
36266
  this.reason = reason;
36240
36267
  this.name = "AuthSessionError";
36241
36268
  }
36242
- }, __name(_a4, "AuthSessionError"), __name3(_a4, "AuthSessionError"), _a4);
36269
+ }, __name(_a5, "AuthSessionError"), __name3(_a5, "AuthSessionError"), _a5);
36243
36270
  var BITSTRING_STATUS_PURPOSES = ["revocation", "suspension"];
36244
36271
  var BitstringStatusPurposeValidator = external_exports.enum(BITSTRING_STATUS_PURPOSES);
36245
36272
  var BitstringStatusListEntryValidator = external_exports.object({