@learncard/render-method-plugin 3.0.1 → 3.0.3

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.
@@ -1,14 +1,9 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
- var __commonJS = (cb, mod) => function __require() {
10
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
- };
12
7
  var __export = (target, all) => {
13
8
  for (var name in all)
14
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -21,129 +16,8 @@ var __copyProps = (to, from, except, desc) => {
21
16
  }
22
17
  return to;
23
18
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
20
 
30
- // ../../../node_modules/.pnpm/decode-uri-component@0.2.2/node_modules/decode-uri-component/index.js
31
- var require_decode_uri_component = __commonJS({
32
- "../../../node_modules/.pnpm/decode-uri-component@0.2.2/node_modules/decode-uri-component/index.js"(exports, module2) {
33
- "use strict";
34
- var token = "%[a-f0-9]{2}";
35
- var singleMatcher = new RegExp("(" + token + ")|([^%]+?)", "gi");
36
- var multiMatcher = new RegExp("(" + token + ")+", "gi");
37
- function decodeComponents(components, split) {
38
- try {
39
- return [decodeURIComponent(components.join(""))];
40
- } catch (err) {
41
- }
42
- if (components.length === 1) {
43
- return components;
44
- }
45
- split = split || 1;
46
- var left = components.slice(0, split);
47
- var right = components.slice(split);
48
- return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));
49
- }
50
- __name(decodeComponents, "decodeComponents");
51
- function decode4(input) {
52
- try {
53
- return decodeURIComponent(input);
54
- } catch (err) {
55
- var tokens = input.match(singleMatcher) || [];
56
- for (var i = 1; i < tokens.length; i++) {
57
- input = decodeComponents(tokens, i).join("");
58
- tokens = input.match(singleMatcher) || [];
59
- }
60
- return input;
61
- }
62
- }
63
- __name(decode4, "decode");
64
- function customDecodeURIComponent(input) {
65
- var replaceMap = {
66
- "%FE%FF": "\uFFFD\uFFFD",
67
- "%FF%FE": "\uFFFD\uFFFD"
68
- };
69
- var match = multiMatcher.exec(input);
70
- while (match) {
71
- try {
72
- replaceMap[match[0]] = decodeURIComponent(match[0]);
73
- } catch (err) {
74
- var result = decode4(match[0]);
75
- if (result !== match[0]) {
76
- replaceMap[match[0]] = result;
77
- }
78
- }
79
- match = multiMatcher.exec(input);
80
- }
81
- replaceMap["%C2"] = "\uFFFD";
82
- var entries = Object.keys(replaceMap);
83
- for (var i = 0; i < entries.length; i++) {
84
- var key = entries[i];
85
- input = input.replace(new RegExp(key, "g"), replaceMap[key]);
86
- }
87
- return input;
88
- }
89
- __name(customDecodeURIComponent, "customDecodeURIComponent");
90
- module2.exports = function(encodedURI) {
91
- if (typeof encodedURI !== "string") {
92
- throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof encodedURI + "`");
93
- }
94
- try {
95
- encodedURI = encodedURI.replace(/\+/g, " ");
96
- return decodeURIComponent(encodedURI);
97
- } catch (err) {
98
- return customDecodeURIComponent(encodedURI);
99
- }
100
- };
101
- }
102
- });
103
-
104
- // ../../../node_modules/.pnpm/filter-obj@1.1.0/node_modules/filter-obj/index.js
105
- var require_filter_obj = __commonJS({
106
- "../../../node_modules/.pnpm/filter-obj@1.1.0/node_modules/filter-obj/index.js"(exports, module2) {
107
- "use strict";
108
- module2.exports = function(obj, predicate) {
109
- var ret = {};
110
- var keys = Object.keys(obj);
111
- var isArr = Array.isArray(predicate);
112
- for (var i = 0; i < keys.length; i++) {
113
- var key = keys[i];
114
- var val = obj[key];
115
- if (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {
116
- ret[key] = val;
117
- }
118
- }
119
- return ret;
120
- };
121
- }
122
- });
123
-
124
- // ../../../node_modules/.pnpm/split-on-first@1.1.0/node_modules/split-on-first/index.js
125
- var require_split_on_first = __commonJS({
126
- "../../../node_modules/.pnpm/split-on-first@1.1.0/node_modules/split-on-first/index.js"(exports, module2) {
127
- "use strict";
128
- module2.exports = (string4, separator) => {
129
- if (!(typeof string4 === "string" && typeof separator === "string")) {
130
- throw new TypeError("Expected the arguments to be of type `string`");
131
- }
132
- if (separator === "") {
133
- return [string4];
134
- }
135
- const separatorIndex = string4.indexOf(separator);
136
- if (separatorIndex === -1) {
137
- return [string4];
138
- }
139
- return [
140
- string4.slice(0, separatorIndex),
141
- string4.slice(separatorIndex + separator.length)
142
- ];
143
- };
144
- }
145
- });
146
-
147
21
  // src/index.ts
148
22
  var src_exports = {};
149
23
  __export(src_exports, {
@@ -167,11 +41,6 @@ module.exports = __toCommonJS(src_exports);
167
41
  // src/types.ts
168
42
  var RENDER_METHOD_CONTEXT = "https://digitalbazaar.github.io/vc-render-method-context/contexts/v2rc2.jsonld";
169
43
 
170
- // ../../learn-card-helpers/dist/helpers.esm.js
171
- var import_decode_uri_component = __toESM(require_decode_uri_component(), 1);
172
- var import_filter_obj = __toESM(require_filter_obj(), 1);
173
- var import_split_on_first = __toESM(require_split_on_first(), 1);
174
-
175
44
  // ../../../node_modules/.pnpm/immer@10.2.0/node_modules/immer/dist/immer.mjs
176
45
  var NOTHING = Symbol.for("immer-nothing");
177
46
  var DRAFTABLE = Symbol.for("immer-draftable");
@@ -2469,10 +2338,10 @@ var nanoid = /^[a-zA-Z0-9_-]{21}$/;
2469
2338
  var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
2470
2339
  var extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
2471
2340
  var guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
2472
- var uuid = /* @__PURE__ */ __name((version2) => {
2473
- if (!version2)
2341
+ var uuid = /* @__PURE__ */ __name((version3) => {
2342
+ if (!version3)
2474
2343
  return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
2475
- return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
2344
+ return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version3}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
2476
2345
  }, "uuid");
2477
2346
  var uuid4 = /* @__PURE__ */ uuid(4);
2478
2347
  var uuid6 = /* @__PURE__ */ uuid(6);
@@ -13934,15 +13803,181 @@ __name(date4, "date");
13934
13803
  // ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
13935
13804
  config(en_default());
13936
13805
 
13806
+ // ../../../node_modules/.pnpm/js-base64@3.7.8/node_modules/js-base64/base64.mjs
13807
+ var version2 = "3.7.8";
13808
+ var VERSION = version2;
13809
+ var _hasBuffer = typeof Buffer === "function";
13810
+ var _TD = typeof TextDecoder === "function" ? new TextDecoder() : void 0;
13811
+ var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
13812
+ var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
13813
+ var b64chs = Array.prototype.slice.call(b64ch);
13814
+ var b64tab = ((a) => {
13815
+ let tab = {};
13816
+ a.forEach((c, i) => tab[c] = i);
13817
+ return tab;
13818
+ })(b64chs);
13819
+ var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
13820
+ var _fromCC = String.fromCharCode.bind(String);
13821
+ var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
13822
+ var _mkUriSafe = /* @__PURE__ */ __name((src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_"), "_mkUriSafe");
13823
+ var _tidyB64 = /* @__PURE__ */ __name((s) => s.replace(/[^A-Za-z0-9\+\/]/g, ""), "_tidyB64");
13824
+ var btoaPolyfill = /* @__PURE__ */ __name((bin) => {
13825
+ let u32, c0, c1, c2, asc = "";
13826
+ const pad = bin.length % 3;
13827
+ for (let i = 0; i < bin.length; ) {
13828
+ if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255)
13829
+ throw new TypeError("invalid character found");
13830
+ u32 = c0 << 16 | c1 << 8 | c2;
13831
+ asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
13832
+ }
13833
+ return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
13834
+ }, "btoaPolyfill");
13835
+ var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : _hasBuffer ? (bin) => Buffer.from(bin, "binary").toString("base64") : btoaPolyfill;
13836
+ var _fromUint8Array = _hasBuffer ? (u8a) => Buffer.from(u8a).toString("base64") : (u8a) => {
13837
+ const maxargs = 4096;
13838
+ let strs = [];
13839
+ for (let i = 0, l = u8a.length; i < l; i += maxargs) {
13840
+ strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
13841
+ }
13842
+ return _btoa(strs.join(""));
13843
+ };
13844
+ var fromUint8Array = /* @__PURE__ */ __name((u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a), "fromUint8Array");
13845
+ var cb_utob = /* @__PURE__ */ __name((c) => {
13846
+ if (c.length < 2) {
13847
+ var cc = c.charCodeAt(0);
13848
+ return cc < 128 ? c : cc < 2048 ? _fromCC(192 | cc >>> 6) + _fromCC(128 | cc & 63) : _fromCC(224 | cc >>> 12 & 15) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
13849
+ } else {
13850
+ var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320);
13851
+ return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
13852
+ }
13853
+ }, "cb_utob");
13854
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
13855
+ var utob = /* @__PURE__ */ __name((u) => u.replace(re_utob, cb_utob), "utob");
13856
+ var _encode2 = _hasBuffer ? (s) => Buffer.from(s, "utf8").toString("base64") : _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
13857
+ var encode3 = /* @__PURE__ */ __name((src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode2(src)) : _encode2(src), "encode");
13858
+ var encodeURI = /* @__PURE__ */ __name((src) => encode3(src, true), "encodeURI");
13859
+ var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
13860
+ var cb_btou = /* @__PURE__ */ __name((cccc) => {
13861
+ switch (cccc.length) {
13862
+ case 4:
13863
+ var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536;
13864
+ return _fromCC((offset >>> 10) + 55296) + _fromCC((offset & 1023) + 56320);
13865
+ case 3:
13866
+ return _fromCC((15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2));
13867
+ default:
13868
+ return _fromCC((31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1));
13869
+ }
13870
+ }, "cb_btou");
13871
+ var btou = /* @__PURE__ */ __name((b) => b.replace(re_btou, cb_btou), "btou");
13872
+ var atobPolyfill = /* @__PURE__ */ __name((asc) => {
13873
+ asc = asc.replace(/\s+/g, "");
13874
+ if (!b64re.test(asc))
13875
+ throw new TypeError("malformed base64.");
13876
+ asc += "==".slice(2 - (asc.length & 3));
13877
+ let u24, r1, r2;
13878
+ let binArray = [];
13879
+ for (let i = 0; i < asc.length; ) {
13880
+ u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
13881
+ if (r1 === 64) {
13882
+ binArray.push(_fromCC(u24 >> 16 & 255));
13883
+ } else if (r2 === 64) {
13884
+ binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
13885
+ } else {
13886
+ binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
13887
+ }
13888
+ }
13889
+ return binArray.join("");
13890
+ }, "atobPolyfill");
13891
+ var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : _hasBuffer ? (asc) => Buffer.from(asc, "base64").toString("binary") : atobPolyfill;
13892
+ var _toUint8Array = _hasBuffer ? (a) => _U8Afrom(Buffer.from(a, "base64")) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
13893
+ var toUint8Array = /* @__PURE__ */ __name((a) => _toUint8Array(_unURI(a)), "toUint8Array");
13894
+ var _decode2 = _hasBuffer ? (a) => Buffer.from(a, "base64").toString("utf8") : _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
13895
+ var _unURI = /* @__PURE__ */ __name((a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/")), "_unURI");
13896
+ var decode3 = /* @__PURE__ */ __name((src) => _decode2(_unURI(src)), "decode");
13897
+ var isValid = /* @__PURE__ */ __name((src) => {
13898
+ if (typeof src !== "string")
13899
+ return false;
13900
+ const s = src.replace(/\s+/g, "").replace(/={0,2}$/, "");
13901
+ return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
13902
+ }, "isValid");
13903
+ var _noEnum = /* @__PURE__ */ __name((v) => {
13904
+ return {
13905
+ value: v,
13906
+ enumerable: false,
13907
+ writable: true,
13908
+ configurable: true
13909
+ };
13910
+ }, "_noEnum");
13911
+ var extendString = /* @__PURE__ */ __name(function() {
13912
+ const _add = /* @__PURE__ */ __name((name, body) => Object.defineProperty(String.prototype, name, _noEnum(body)), "_add");
13913
+ _add("fromBase64", function() {
13914
+ return decode3(this);
13915
+ });
13916
+ _add("toBase64", function(urlsafe) {
13917
+ return encode3(this, urlsafe);
13918
+ });
13919
+ _add("toBase64URI", function() {
13920
+ return encode3(this, true);
13921
+ });
13922
+ _add("toBase64URL", function() {
13923
+ return encode3(this, true);
13924
+ });
13925
+ _add("toUint8Array", function() {
13926
+ return toUint8Array(this);
13927
+ });
13928
+ }, "extendString");
13929
+ var extendUint8Array = /* @__PURE__ */ __name(function() {
13930
+ const _add = /* @__PURE__ */ __name((name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body)), "_add");
13931
+ _add("toBase64", function(urlsafe) {
13932
+ return fromUint8Array(this, urlsafe);
13933
+ });
13934
+ _add("toBase64URI", function() {
13935
+ return fromUint8Array(this, true);
13936
+ });
13937
+ _add("toBase64URL", function() {
13938
+ return fromUint8Array(this, true);
13939
+ });
13940
+ }, "extendUint8Array");
13941
+ var extendBuiltins = /* @__PURE__ */ __name(() => {
13942
+ extendString();
13943
+ extendUint8Array();
13944
+ }, "extendBuiltins");
13945
+ var gBase64 = {
13946
+ version: version2,
13947
+ VERSION,
13948
+ atob: _atob,
13949
+ atobPolyfill,
13950
+ btoa: _btoa,
13951
+ btoaPolyfill,
13952
+ fromBase64: decode3,
13953
+ toBase64: encode3,
13954
+ encode: encode3,
13955
+ encodeURI,
13956
+ encodeURL: encodeURI,
13957
+ utob,
13958
+ btou,
13959
+ decode: decode3,
13960
+ isValid,
13961
+ fromUint8Array,
13962
+ toUint8Array,
13963
+ extendString,
13964
+ extendUint8Array,
13965
+ extendBuiltins
13966
+ };
13967
+
13968
+ // ../../../node_modules/.pnpm/@sd-jwt+utils@0.19.0/node_modules/@sd-jwt/utils/dist/index.mjs
13969
+ var base64urlEncode = gBase64.encodeURI;
13970
+ var base64urlDecode = gBase64.decode;
13971
+
13937
13972
  // ../../learn-card-helpers/dist/helpers.esm.js
13938
- var __create2 = Object.create;
13973
+ var __create = Object.create;
13939
13974
  var __defProp2 = Object.defineProperty;
13940
13975
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
13941
13976
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
13942
- var __getProtoOf2 = Object.getPrototypeOf;
13977
+ var __getProtoOf = Object.getPrototypeOf;
13943
13978
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
13944
13979
  var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
13945
- var __commonJS2 = /* @__PURE__ */ __name((cb, mod) => /* @__PURE__ */ __name(function __require() {
13980
+ var __commonJS = /* @__PURE__ */ __name((cb, mod) => /* @__PURE__ */ __name(function __require() {
13946
13981
  return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13947
13982
  }, "__require"), "__commonJS");
13948
13983
  var __export2 = /* @__PURE__ */ __name((target, all) => {
@@ -13957,11 +13992,11 @@ var __copyProps2 = /* @__PURE__ */ __name((to, from, except, desc) => {
13957
13992
  }
13958
13993
  return to;
13959
13994
  }, "__copyProps");
13960
- var __toESM2 = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
13995
+ var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps2(
13961
13996
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
13962
13997
  mod
13963
13998
  )), "__toESM");
13964
- var require_types_cjs_development = __commonJS2({
13999
+ var require_types_cjs_development = __commonJS({
13965
14000
  "../learn-card-types/dist/types.cjs.development.cjs"(exports, module2) {
13966
14001
  var _a4, _b, _c, _d, _e, _f, _g;
13967
14002
  "use strict";
@@ -14221,6 +14256,7 @@ var require_types_cjs_development = __commonJS2({
14221
14256
  SkillTreeNodeValidator: /* @__PURE__ */ __name2(() => SkillTreeNodeValidator2, "SkillTreeNodeValidator"),
14222
14257
  SkillValidator: /* @__PURE__ */ __name2(() => SkillValidator2, "SkillValidator"),
14223
14258
  StatusCheckEntryValidator: /* @__PURE__ */ __name2(() => StatusCheckEntryValidator2, "StatusCheckEntryValidator"),
14259
+ StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name2(() => StoredCredentialEnvelopeValidator2, "StoredCredentialEnvelopeValidator"),
14224
14260
  StringQuery: /* @__PURE__ */ __name2(() => StringQuery2, "StringQuery"),
14225
14261
  SummaryCredentialDataValidator: /* @__PURE__ */ __name2(() => SummaryCredentialDataValidator2, "SummaryCredentialDataValidator"),
14226
14262
  SummaryCredentialKeywordValidator: /* @__PURE__ */ __name2(() => SummaryCredentialKeywordValidator2, "SummaryCredentialKeywordValidator"),
@@ -14241,7 +14277,8 @@ var require_types_cjs_development = __commonJS2({
14241
14277
  VerificationItemValidator: /* @__PURE__ */ __name2(() => VerificationItemValidator2, "VerificationItemValidator"),
14242
14278
  VerificationMethodValidator: /* @__PURE__ */ __name2(() => VerificationMethodValidator2, "VerificationMethodValidator"),
14243
14279
  VerificationStatusEnum: /* @__PURE__ */ __name2(() => VerificationStatusEnum2, "VerificationStatusEnum"),
14244
- VerificationStatusValidator: /* @__PURE__ */ __name2(() => VerificationStatusValidator2, "VerificationStatusValidator")
14280
+ VerificationStatusValidator: /* @__PURE__ */ __name2(() => VerificationStatusValidator2, "VerificationStatusValidator"),
14281
+ isStoredCredentialEnvelope: /* @__PURE__ */ __name2(() => isStoredCredentialEnvelope2, "isStoredCredentialEnvelope")
14245
14282
  });
14246
14283
  module2.exports = __toCommonJS2(index_exports);
14247
14284
  var external_exports2 = {};
@@ -14347,14 +14384,14 @@ var require_types_cjs_development = __commonJS2({
14347
14384
  cuid2: /* @__PURE__ */ __name2(() => cuid222, "cuid2"),
14348
14385
  custom: /* @__PURE__ */ __name2(() => custom2, "custom"),
14349
14386
  date: /* @__PURE__ */ __name2(() => date32, "date"),
14350
- decode: /* @__PURE__ */ __name2(() => decode222, "decode"),
14387
+ decode: /* @__PURE__ */ __name2(() => decode22, "decode"),
14351
14388
  decodeAsync: /* @__PURE__ */ __name2(() => decodeAsync22, "decodeAsync"),
14352
14389
  describe: /* @__PURE__ */ __name2(() => describe22, "describe"),
14353
14390
  discriminatedUnion: /* @__PURE__ */ __name2(() => discriminatedUnion2, "discriminatedUnion"),
14354
14391
  e164: /* @__PURE__ */ __name2(() => e16422, "e164"),
14355
14392
  email: /* @__PURE__ */ __name2(() => email22, "email"),
14356
14393
  emoji: /* @__PURE__ */ __name2(() => emoji22, "emoji"),
14357
- encode: /* @__PURE__ */ __name2(() => encode222, "encode"),
14394
+ encode: /* @__PURE__ */ __name2(() => encode22, "encode"),
14358
14395
  encodeAsync: /* @__PURE__ */ __name2(() => encodeAsync22, "encodeAsync"),
14359
14396
  endsWith: /* @__PURE__ */ __name2(() => _endsWith2, "endsWith"),
14360
14397
  enum: /* @__PURE__ */ __name2(() => _enum22, "enum"),
@@ -14419,7 +14456,7 @@ var require_types_cjs_development = __commonJS2({
14419
14456
  object: /* @__PURE__ */ __name2(() => object2, "object"),
14420
14457
  optional: /* @__PURE__ */ __name2(() => optional2, "optional"),
14421
14458
  overwrite: /* @__PURE__ */ __name2(() => _overwrite2, "overwrite"),
14422
- parse: /* @__PURE__ */ __name2(() => parse222, "parse"),
14459
+ parse: /* @__PURE__ */ __name2(() => parse22, "parse"),
14423
14460
  parseAsync: /* @__PURE__ */ __name2(() => parseAsync22, "parseAsync"),
14424
14461
  partialRecord: /* @__PURE__ */ __name2(() => partialRecord2, "partialRecord"),
14425
14462
  pipe: /* @__PURE__ */ __name2(() => pipe2, "pipe"),
@@ -14605,14 +14642,14 @@ var require_types_cjs_development = __commonJS2({
14605
14642
  _cuid2: /* @__PURE__ */ __name2(() => _cuid22, "_cuid2"),
14606
14643
  _custom: /* @__PURE__ */ __name2(() => _custom2, "_custom"),
14607
14644
  _date: /* @__PURE__ */ __name2(() => _date2, "_date"),
14608
- _decode: /* @__PURE__ */ __name2(() => _decode2, "_decode"),
14645
+ _decode: /* @__PURE__ */ __name2(() => _decode3, "_decode"),
14609
14646
  _decodeAsync: /* @__PURE__ */ __name2(() => _decodeAsync2, "_decodeAsync"),
14610
14647
  _default: /* @__PURE__ */ __name2(() => _default3, "_default"),
14611
14648
  _discriminatedUnion: /* @__PURE__ */ __name2(() => _discriminatedUnion2, "_discriminatedUnion"),
14612
14649
  _e164: /* @__PURE__ */ __name2(() => _e1642, "_e164"),
14613
14650
  _email: /* @__PURE__ */ __name2(() => _email2, "_email"),
14614
14651
  _emoji: /* @__PURE__ */ __name2(() => _emoji22, "_emoji"),
14615
- _encode: /* @__PURE__ */ __name2(() => _encode2, "_encode"),
14652
+ _encode: /* @__PURE__ */ __name2(() => _encode3, "_encode"),
14616
14653
  _encodeAsync: /* @__PURE__ */ __name2(() => _encodeAsync2, "_encodeAsync"),
14617
14654
  _endsWith: /* @__PURE__ */ __name2(() => _endsWith2, "_endsWith"),
14618
14655
  _enum: /* @__PURE__ */ __name2(() => _enum3, "_enum"),
@@ -14713,10 +14750,10 @@ var require_types_cjs_development = __commonJS2({
14713
14750
  _xid: /* @__PURE__ */ __name2(() => _xid2, "_xid"),
14714
14751
  clone: /* @__PURE__ */ __name2(() => clone2, "clone"),
14715
14752
  config: /* @__PURE__ */ __name2(() => config2, "config"),
14716
- decode: /* @__PURE__ */ __name2(() => decode22, "decode"),
14753
+ decode: /* @__PURE__ */ __name2(() => decode4, "decode"),
14717
14754
  decodeAsync: /* @__PURE__ */ __name2(() => decodeAsync3, "decodeAsync"),
14718
14755
  describe: /* @__PURE__ */ __name2(() => describe3, "describe"),
14719
- encode: /* @__PURE__ */ __name2(() => encode22, "encode"),
14756
+ encode: /* @__PURE__ */ __name2(() => encode4, "encode"),
14720
14757
  encodeAsync: /* @__PURE__ */ __name2(() => encodeAsync3, "encodeAsync"),
14721
14758
  flattenError: /* @__PURE__ */ __name2(() => flattenError2, "flattenError"),
14722
14759
  formatError: /* @__PURE__ */ __name2(() => formatError2, "formatError"),
@@ -14727,7 +14764,7 @@ var require_types_cjs_development = __commonJS2({
14727
14764
  isValidJWT: /* @__PURE__ */ __name2(() => isValidJWT2, "isValidJWT"),
14728
14765
  locales: /* @__PURE__ */ __name2(() => locales_exports2, "locales"),
14729
14766
  meta: /* @__PURE__ */ __name2(() => meta3, "meta"),
14730
- parse: /* @__PURE__ */ __name2(() => parse22, "parse"),
14767
+ parse: /* @__PURE__ */ __name2(() => parse3, "parse"),
14731
14768
  parseAsync: /* @__PURE__ */ __name2(() => parseAsync3, "parseAsync"),
14732
14769
  prettifyError: /* @__PURE__ */ __name2(() => prettifyError2, "prettifyError"),
14733
14770
  regexes: /* @__PURE__ */ __name2(() => regexes_exports2, "regexes"),
@@ -14742,7 +14779,7 @@ var require_types_cjs_development = __commonJS2({
14742
14779
  toJSONSchema: /* @__PURE__ */ __name2(() => toJSONSchema2, "toJSONSchema"),
14743
14780
  treeifyError: /* @__PURE__ */ __name2(() => treeifyError2, "treeifyError"),
14744
14781
  util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
14745
- version: /* @__PURE__ */ __name2(() => version2, "version")
14782
+ version: /* @__PURE__ */ __name2(() => version3, "version")
14746
14783
  });
14747
14784
  var NEVER2 = Object.freeze({
14748
14785
  status: "aborted"
@@ -14892,7 +14929,7 @@ var require_types_cjs_development = __commonJS2({
14892
14929
  omit: /* @__PURE__ */ __name2(() => omit2, "omit"),
14893
14930
  optionalKeys: /* @__PURE__ */ __name2(() => optionalKeys2, "optionalKeys"),
14894
14931
  partial: /* @__PURE__ */ __name2(() => partial2, "partial"),
14895
- pick: /* @__PURE__ */ __name2(() => pick22, "pick"),
14932
+ pick: /* @__PURE__ */ __name2(() => pick2, "pick"),
14896
14933
  prefixIssues: /* @__PURE__ */ __name2(() => prefixIssues2, "prefixIssues"),
14897
14934
  primitiveTypes: /* @__PURE__ */ __name2(() => primitiveTypes2, "primitiveTypes"),
14898
14935
  promiseAllObject: /* @__PURE__ */ __name2(() => promiseAllObject2, "promiseAllObject"),
@@ -15316,7 +15353,7 @@ var require_types_cjs_development = __commonJS2({
15316
15353
  int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
15317
15354
  uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
15318
15355
  };
15319
- function pick22(schema, mask) {
15356
+ function pick2(schema, mask) {
15320
15357
  const currDef = schema._zod.def;
15321
15358
  const def = mergeDefs2(schema._zod.def, {
15322
15359
  get shape() {
@@ -15336,9 +15373,9 @@ var require_types_cjs_development = __commonJS2({
15336
15373
  });
15337
15374
  return clone2(schema, def);
15338
15375
  }
15339
- __name(pick22, "pick2");
15340
- __name2(pick22, "pick");
15341
- __name22(pick22, "pick");
15376
+ __name(pick2, "pick");
15377
+ __name2(pick2, "pick");
15378
+ __name22(pick2, "pick");
15342
15379
  function omit2(schema, mask) {
15343
15380
  const currDef = schema._zod.def;
15344
15381
  const def = mergeDefs2(schema._zod.def, {
@@ -15805,7 +15842,7 @@ var require_types_cjs_development = __commonJS2({
15805
15842
  }
15806
15843
  return result.value;
15807
15844
  }, "_parse");
15808
- var parse22 = /* @__PURE__ */ _parse2($ZodRealError2);
15845
+ var parse3 = /* @__PURE__ */ _parse2($ZodRealError2);
15809
15846
  var _parseAsync2 = /* @__PURE__ */ __name22((_Err) => async (schema, value, _ctx, params) => {
15810
15847
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
15811
15848
  let result = schema._zod.run({ value, issues: [] }, ctx);
@@ -15842,15 +15879,15 @@ var require_types_cjs_development = __commonJS2({
15842
15879
  } : { success: true, data: result.value };
15843
15880
  }, "_safeParseAsync");
15844
15881
  var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync2($ZodRealError2);
15845
- var _encode2 = /* @__PURE__ */ __name22((_Err) => (schema, value, _ctx) => {
15882
+ var _encode3 = /* @__PURE__ */ __name22((_Err) => (schema, value, _ctx) => {
15846
15883
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
15847
15884
  return _parse2(_Err)(schema, value, ctx);
15848
15885
  }, "_encode");
15849
- var encode22 = /* @__PURE__ */ _encode2($ZodRealError2);
15850
- var _decode2 = /* @__PURE__ */ __name22((_Err) => (schema, value, _ctx) => {
15886
+ var encode4 = /* @__PURE__ */ _encode3($ZodRealError2);
15887
+ var _decode3 = /* @__PURE__ */ __name22((_Err) => (schema, value, _ctx) => {
15851
15888
  return _parse2(_Err)(schema, value, _ctx);
15852
15889
  }, "_decode");
15853
- var decode22 = /* @__PURE__ */ _decode2($ZodRealError2);
15890
+ var decode4 = /* @__PURE__ */ _decode3($ZodRealError2);
15854
15891
  var _encodeAsync2 = /* @__PURE__ */ __name22((_Err) => async (schema, value, _ctx) => {
15855
15892
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
15856
15893
  return _parseAsync2(_Err)(schema, value, ctx);
@@ -16632,7 +16669,7 @@ var require_types_cjs_development = __commonJS2({
16632
16669
  })(), (() => {
16633
16670
  __name22(_d, "Doc");
16634
16671
  })(), _d), "Doc");
16635
- var version2 = {
16672
+ var version3 = {
16636
16673
  major: 4,
16637
16674
  minor: 1,
16638
16675
  patch: 13
@@ -16642,7 +16679,7 @@ var require_types_cjs_development = __commonJS2({
16642
16679
  inst ?? (inst = {});
16643
16680
  inst._zod.def = def;
16644
16681
  inst._zod.bag = inst._zod.bag || {};
16645
- inst._zod.version = version2;
16682
+ inst._zod.version = version3;
16646
16683
  const checks = [...inst._zod.def.checks ?? []];
16647
16684
  if (inst._zod.traits.has("$ZodCheck")) {
16648
16685
  checks.unshift(inst);
@@ -18420,10 +18457,10 @@ var require_types_cjs_development = __commonJS2({
18420
18457
  throw new Error("implement() must be called with a function");
18421
18458
  }
18422
18459
  return function(...args) {
18423
- const parsedArgs = inst._def.input ? parse22(inst._def.input, args) : args;
18460
+ const parsedArgs = inst._def.input ? parse3(inst._def.input, args) : args;
18424
18461
  const result = Reflect.apply(func, this, parsedArgs);
18425
18462
  if (inst._def.output) {
18426
- return parse22(inst._def.output, result);
18463
+ return parse3(inst._def.output, result);
18427
18464
  }
18428
18465
  return result;
18429
18466
  };
@@ -26652,12 +26689,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
26652
26689
  var ZodRealError2 = /* @__PURE__ */ $constructor2("ZodError", initializer22, {
26653
26690
  Parent: Error
26654
26691
  });
26655
- var parse222 = /* @__PURE__ */ _parse2(ZodRealError2);
26692
+ var parse22 = /* @__PURE__ */ _parse2(ZodRealError2);
26656
26693
  var parseAsync22 = /* @__PURE__ */ _parseAsync2(ZodRealError2);
26657
26694
  var safeParse22 = /* @__PURE__ */ _safeParse2(ZodRealError2);
26658
26695
  var safeParseAsync22 = /* @__PURE__ */ _safeParseAsync2(ZodRealError2);
26659
- var encode222 = /* @__PURE__ */ _encode2(ZodRealError2);
26660
- var decode222 = /* @__PURE__ */ _decode2(ZodRealError2);
26696
+ var encode22 = /* @__PURE__ */ _encode3(ZodRealError2);
26697
+ var decode22 = /* @__PURE__ */ _decode3(ZodRealError2);
26661
26698
  var encodeAsync22 = /* @__PURE__ */ _encodeAsync2(ZodRealError2);
26662
26699
  var decodeAsync22 = /* @__PURE__ */ _decodeAsync2(ZodRealError2);
26663
26700
  var safeEncode22 = /* @__PURE__ */ _safeEncode2(ZodRealError2);
@@ -26683,13 +26720,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
26683
26720
  reg.add(inst, meta32);
26684
26721
  return inst;
26685
26722
  };
26686
- inst.parse = (data, params) => parse222(inst, data, params, { callee: inst.parse });
26723
+ inst.parse = (data, params) => parse22(inst, data, params, { callee: inst.parse });
26687
26724
  inst.safeParse = (data, params) => safeParse22(inst, data, params);
26688
26725
  inst.parseAsync = async (data, params) => parseAsync22(inst, data, params, { callee: inst.parseAsync });
26689
26726
  inst.safeParseAsync = async (data, params) => safeParseAsync22(inst, data, params);
26690
26727
  inst.spa = inst.safeParseAsync;
26691
- inst.encode = (data, params) => encode222(inst, data, params);
26692
- inst.decode = (data, params) => decode222(inst, data, params);
26728
+ inst.encode = (data, params) => encode22(inst, data, params);
26729
+ inst.decode = (data, params) => decode22(inst, data, params);
26693
26730
  inst.encodeAsync = async (data, params) => encodeAsync22(inst, data, params);
26694
26731
  inst.decodeAsync = async (data, params) => decodeAsync22(inst, data, params);
26695
26732
  inst.safeEncode = (data, params) => safeEncode22(inst, data, params);
@@ -28416,6 +28453,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28416
28453
  "vc+sd-jwt",
28417
28454
  "mso_mdoc"
28418
28455
  ]);
28456
+ var StoredCredentialEnvelopeValidator2 = external_exports2.object({
28457
+ format: CredentialFormatValidator2,
28458
+ data: external_exports2.string()
28459
+ }).passthrough();
28460
+ var isStoredCredentialEnvelope2 = /* @__PURE__ */ __name22((value) => {
28461
+ if (!value || typeof value !== "object")
28462
+ return false;
28463
+ const candidate = value;
28464
+ if (typeof candidate.format !== "string")
28465
+ return false;
28466
+ if (!CredentialFormatValidator2.safeParse(candidate.format).success)
28467
+ return false;
28468
+ return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
28469
+ }, "isStoredCredentialEnvelope");
28419
28470
  var StatusCheckEntryValidator2 = external_exports2.object({
28420
28471
  entryType: external_exports2.string(),
28421
28472
  statusPurpose: external_exports2.string(),
@@ -28476,6 +28527,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28476
28527
  throw new Error("Invalid RegExp string format");
28477
28528
  return { pattern: match[1], flags: match[2] };
28478
28529
  }, "parseRegexString");
28530
+ var withStringOverride2 = /* @__PURE__ */ __name22((schema) => {
28531
+ const metaSchema = schema;
28532
+ if (typeof metaSchema.meta === "function") {
28533
+ return metaSchema.meta({ override: { type: "string" } });
28534
+ }
28535
+ return schema;
28536
+ }, "withStringOverride");
28479
28537
  var RegExpStringValidator2 = external_exports2.string().refine(
28480
28538
  (str) => {
28481
28539
  try {
@@ -28495,9 +28553,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28495
28553
  } catch (error462) {
28496
28554
  throw new Error(`Invalid RegExp: ${error462.message}`);
28497
28555
  }
28498
- }).meta({ override: { type: "string" } });
28499
- var RegExpValidator2 = external_exports2.instanceof(RegExp).meta({ override: { type: "string" } }).or(RegExpStringValidator2).meta({ override: { type: "string" } });
28500
- var BaseStringQuery2 = external_exports2.string().or(external_exports2.object({ $in: external_exports2.string().array() })).or(external_exports2.object({ $regex: RegExpValidator2.meta({ override: { type: "string" } }) }));
28556
+ });
28557
+ var RegExpValidator2 = withStringOverride2(external_exports2.instanceof(RegExp).or(RegExpStringValidator2));
28558
+ var BaseStringQuery2 = external_exports2.string().or(external_exports2.object({ $in: external_exports2.string().array() })).or(external_exports2.object({ $regex: RegExpValidator2 }));
28501
28559
  var StringQuery2 = external_exports2.union([
28502
28560
  BaseStringQuery2,
28503
28561
  external_exports2.object({
@@ -28721,7 +28779,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28721
28779
  to: LCNVisibleProfileValidator2,
28722
28780
  from: external_exports2.string(),
28723
28781
  received: external_exports2.string().optional(),
28724
- uri: external_exports2.string().optional()
28782
+ uri: external_exports2.string().optional(),
28783
+ status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
28725
28784
  });
28726
28785
  var PaginatedBoostRecipientsValidator2 = PaginationResponseValidator2.extend({
28727
28786
  records: BoostRecipientValidator2.array()
@@ -28731,7 +28790,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28731
28790
  from: external_exports2.string(),
28732
28791
  received: external_exports2.string().optional(),
28733
28792
  boostUris: external_exports2.array(external_exports2.string()),
28734
- credentialUris: external_exports2.array(external_exports2.string()).optional()
28793
+ credentialUris: external_exports2.array(external_exports2.string()).optional(),
28794
+ status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
28735
28795
  });
28736
28796
  var PaginatedBoostRecipientsWithChildrenValidator2 = PaginationResponseValidator2.extend({
28737
28797
  records: BoostRecipientWithChildrenValidator2.array()
@@ -29802,7 +29862,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29802
29862
  inboxCredentialId: external_exports2.string().optional(),
29803
29863
  integrationId: external_exports2.string().optional(),
29804
29864
  source: CredentialActivitySourceTypeValidator2,
29805
- metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
29865
+ metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
29866
+ status: external_exports2.enum(["active", "revoked", "suspended"]).optional()
29806
29867
  });
29807
29868
  var CredentialActivityWithDetailsValidator2 = CredentialActivityValidator2.extend({
29808
29869
  boost: external_exports2.object({
@@ -29863,7 +29924,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29863
29924
  }).default({});
29864
29925
  }
29865
29926
  });
29866
- var require_dist = __commonJS2({
29927
+ var require_dist = __commonJS({
29867
29928
  "../learn-card-types/dist/index.cjs"(exports, module2) {
29868
29929
  "use strict";
29869
29930
  if (false) {
@@ -29873,7 +29934,7 @@ var require_dist = __commonJS2({
29873
29934
  }
29874
29935
  }
29875
29936
  });
29876
- var import_types = __toESM2(require_dist());
29937
+ var import_types2 = __toESM(require_dist());
29877
29938
  var filestack_helpers_exports = {};
29878
29939
  __export2(filestack_helpers_exports, {
29879
29940
  changeQuality: () => changeQuality,
@@ -29968,467 +30029,33 @@ __export2(unsplash_helpers_exports, {
29968
30029
  resizeAndChangeQuality: () => resizeAndChangeQuality2,
29969
30030
  resizeUrl: () => resizeUrl2
29970
30031
  });
29971
- var base_exports = {};
29972
- __export2(base_exports, {
29973
- exclude: () => exclude,
29974
- extract: () => extract,
29975
- parse: () => parse3,
29976
- parseUrl: () => parseUrl,
29977
- pick: () => pick2,
29978
- stringify: () => stringify,
29979
- stringifyUrl: () => stringifyUrl
29980
- });
29981
- var isNullOrUndefined = /* @__PURE__ */ __name2((value) => value === null || value === void 0, "isNullOrUndefined");
29982
- var strictUriEncode = /* @__PURE__ */ __name2((string4) => encodeURIComponent(string4).replaceAll(/[!'()*]/g, (x) => `%${x.charCodeAt(0).toString(16).toUpperCase()}`), "strictUriEncode");
29983
- var encodeFragmentIdentifier = /* @__PURE__ */ Symbol("encodeFragmentIdentifier");
29984
- function encoderForArrayFormat(options) {
29985
- switch (options.arrayFormat) {
29986
- case "index": {
29987
- return (key) => (result, value) => {
29988
- const index = result.length;
29989
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
29990
- return result;
29991
- }
29992
- if (value === null) {
29993
- return [
29994
- ...result,
29995
- [encode3(key, options), "[", index, "]"].join("")
29996
- ];
29997
- }
29998
- return [
29999
- ...result,
30000
- [encode3(key, options), "[", encode3(index, options), "]=", encode3(value, options)].join("")
30001
- ];
30002
- };
30003
- }
30004
- case "bracket": {
30005
- return (key) => (result, value) => {
30006
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
30007
- return result;
30008
- }
30009
- if (value === null) {
30010
- return [
30011
- ...result,
30012
- [encode3(key, options), "[]"].join("")
30013
- ];
30014
- }
30015
- return [
30016
- ...result,
30017
- [encode3(key, options), "[]=", encode3(value, options)].join("")
30018
- ];
30019
- };
30020
- }
30021
- case "colon-list-separator": {
30022
- return (key) => (result, value) => {
30023
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
30024
- return result;
30025
- }
30026
- if (value === null) {
30027
- return [
30028
- ...result,
30029
- [encode3(key, options), ":list="].join("")
30030
- ];
30031
- }
30032
- return [
30033
- ...result,
30034
- [encode3(key, options), ":list=", encode3(value, options)].join("")
30035
- ];
30036
- };
30037
- }
30038
- case "comma":
30039
- case "separator":
30040
- case "bracket-separator": {
30041
- const keyValueSeparator = options.arrayFormat === "bracket-separator" ? "[]=" : "=";
30042
- return (key) => (result, value) => {
30043
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
30044
- return result;
30045
- }
30046
- value = value === null ? "" : value;
30047
- if (result.length === 0) {
30048
- return [[encode3(key, options), keyValueSeparator, encode3(value, options)].join("")];
30049
- }
30050
- return [[result, encode3(value, options)].join(options.arrayFormatSeparator)];
30051
- };
30052
- }
30053
- default: {
30054
- return (key) => (result, value) => {
30055
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
30056
- return result;
30057
- }
30058
- if (value === null) {
30059
- return [
30060
- ...result,
30061
- encode3(key, options)
30062
- ];
30063
- }
30064
- return [
30065
- ...result,
30066
- [encode3(key, options), "=", encode3(value, options)].join("")
30067
- ];
30068
- };
30069
- }
30070
- }
30071
- }
30072
- __name(encoderForArrayFormat, "encoderForArrayFormat");
30073
- __name2(encoderForArrayFormat, "encoderForArrayFormat");
30074
- function parserForArrayFormat(options) {
30075
- let result;
30076
- switch (options.arrayFormat) {
30077
- case "index": {
30078
- return (key, value, accumulator) => {
30079
- result = /\[(\d*)]$/.exec(key);
30080
- key = key.replace(/\[\d*]$/, "");
30081
- if (!result) {
30082
- accumulator[key] = value;
30083
- return;
30084
- }
30085
- if (accumulator[key] === void 0) {
30086
- accumulator[key] = {};
30087
- }
30088
- accumulator[key][result[1]] = value;
30089
- };
30090
- }
30091
- case "bracket": {
30092
- return (key, value, accumulator) => {
30093
- result = /(\[])$/.exec(key);
30094
- key = key.replace(/\[]$/, "");
30095
- if (!result) {
30096
- accumulator[key] = value;
30097
- return;
30098
- }
30099
- if (accumulator[key] === void 0) {
30100
- accumulator[key] = [value];
30101
- return;
30102
- }
30103
- accumulator[key] = [...accumulator[key], value];
30104
- };
30105
- }
30106
- case "colon-list-separator": {
30107
- return (key, value, accumulator) => {
30108
- result = /(:list)$/.exec(key);
30109
- key = key.replace(/:list$/, "");
30110
- if (!result) {
30111
- accumulator[key] = value;
30112
- return;
30113
- }
30114
- if (accumulator[key] === void 0) {
30115
- accumulator[key] = [value];
30116
- return;
30117
- }
30118
- accumulator[key] = [...accumulator[key], value];
30119
- };
30120
- }
30121
- case "comma":
30122
- case "separator": {
30123
- return (key, value, accumulator) => {
30124
- const isArray = typeof value === "string" && value.includes(options.arrayFormatSeparator);
30125
- const newValue = isArray ? value.split(options.arrayFormatSeparator).map((item) => decode3(item, options)) : value === null ? value : decode3(value, options);
30126
- accumulator[key] = newValue;
30127
- };
30128
- }
30129
- case "bracket-separator": {
30130
- return (key, value, accumulator) => {
30131
- const isArray = /(\[])$/.test(key);
30132
- key = key.replace(/\[]$/, "");
30133
- if (!isArray) {
30134
- accumulator[key] = value ? decode3(value, options) : value;
30135
- return;
30136
- }
30137
- const arrayValue = value === null ? [] : decode3(value, options).split(options.arrayFormatSeparator);
30138
- if (accumulator[key] === void 0) {
30139
- accumulator[key] = arrayValue;
30140
- return;
30141
- }
30142
- accumulator[key] = [...accumulator[key], ...arrayValue];
30143
- };
30144
- }
30145
- default: {
30146
- return (key, value, accumulator) => {
30147
- if (accumulator[key] === void 0) {
30148
- accumulator[key] = value;
30149
- return;
30150
- }
30151
- accumulator[key] = [...[accumulator[key]].flat(), value];
30152
- };
30153
- }
30154
- }
30155
- }
30156
- __name(parserForArrayFormat, "parserForArrayFormat");
30157
- __name2(parserForArrayFormat, "parserForArrayFormat");
30158
- function validateArrayFormatSeparator(value) {
30159
- if (typeof value !== "string" || value.length !== 1) {
30160
- throw new TypeError("arrayFormatSeparator must be single character string");
30161
- }
30162
- }
30163
- __name(validateArrayFormatSeparator, "validateArrayFormatSeparator");
30164
- __name2(validateArrayFormatSeparator, "validateArrayFormatSeparator");
30165
- function encode3(value, options) {
30166
- if (options.encode) {
30167
- return options.strict ? strictUriEncode(value) : encodeURIComponent(value);
30168
- }
30169
- return value;
30170
- }
30171
- __name(encode3, "encode");
30172
- __name2(encode3, "encode");
30173
- function decode3(value, options) {
30174
- if (options.decode) {
30175
- return (0, import_decode_uri_component.default)(value);
30176
- }
30177
- return value;
30178
- }
30179
- __name(decode3, "decode");
30180
- __name2(decode3, "decode");
30181
- function keysSorter(input) {
30182
- if (Array.isArray(input)) {
30183
- return input.sort();
30184
- }
30185
- if (typeof input === "object") {
30186
- return keysSorter(Object.keys(input)).sort((a, b) => Number(a) - Number(b)).map((key) => input[key]);
30187
- }
30188
- return input;
30189
- }
30190
- __name(keysSorter, "keysSorter");
30191
- __name2(keysSorter, "keysSorter");
30192
- function removeHash(input) {
30193
- const hashStart = input.indexOf("#");
30194
- if (hashStart !== -1) {
30195
- input = input.slice(0, hashStart);
30196
- }
30197
- return input;
30198
- }
30199
- __name(removeHash, "removeHash");
30200
- __name2(removeHash, "removeHash");
30201
- function getHash(url2) {
30202
- let hash2 = "";
30203
- const hashStart = url2.indexOf("#");
30204
- if (hashStart !== -1) {
30205
- hash2 = url2.slice(hashStart);
30206
- }
30207
- return hash2;
30208
- }
30209
- __name(getHash, "getHash");
30210
- __name2(getHash, "getHash");
30211
- function parseValue(value, options, type) {
30212
- if (type === "string" && typeof value === "string") {
30213
- return value;
30214
- }
30215
- if (typeof type === "function" && typeof value === "string") {
30216
- return type(value);
30217
- }
30218
- if (type === "boolean" && value === null) {
30219
- return true;
30220
- }
30221
- if (type === "boolean" && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
30222
- return value.toLowerCase() === "true";
30223
- }
30224
- if (type === "boolean" && value !== null && (value.toLowerCase() === "1" || value.toLowerCase() === "0")) {
30225
- return value.toLowerCase() === "1";
30226
- }
30227
- if (type === "string[]" && options.arrayFormat !== "none" && typeof value === "string") {
30228
- return [value];
30229
- }
30230
- if (type === "number[]" && options.arrayFormat !== "none" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
30231
- return [Number(value)];
30232
- }
30233
- if (type === "number" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
30234
- return Number(value);
30235
- }
30236
- if (options.parseBooleans && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
30237
- return value.toLowerCase() === "true";
30238
- }
30239
- if (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
30240
- return Number(value);
30241
- }
30242
- return value;
30243
- }
30244
- __name(parseValue, "parseValue");
30245
- __name2(parseValue, "parseValue");
30246
- function extract(input) {
30247
- input = removeHash(input);
30248
- const queryStart = input.indexOf("?");
30249
- if (queryStart === -1) {
30250
- return "";
30251
- }
30252
- return input.slice(queryStart + 1);
30253
- }
30254
- __name(extract, "extract");
30255
- __name2(extract, "extract");
30256
- function parse3(query, options) {
30257
- options = {
30258
- decode: true,
30259
- sort: true,
30260
- arrayFormat: "none",
30261
- arrayFormatSeparator: ",",
30262
- parseNumbers: false,
30263
- parseBooleans: false,
30264
- types: /* @__PURE__ */ Object.create(null),
30265
- ...options
30266
- };
30267
- validateArrayFormatSeparator(options.arrayFormatSeparator);
30268
- const formatter = parserForArrayFormat(options);
30269
- const returnValue = /* @__PURE__ */ Object.create(null);
30270
- if (typeof query !== "string") {
30271
- return returnValue;
30272
- }
30273
- query = query.trim().replace(/^[?#&]/, "");
30274
- if (!query) {
30275
- return returnValue;
30276
- }
30277
- for (const parameter of query.split("&")) {
30278
- if (parameter === "") {
30279
- continue;
30280
- }
30281
- const parameter_ = options.decode ? parameter.replaceAll("+", " ") : parameter;
30282
- let [key, value] = (0, import_split_on_first.default)(parameter_, "=");
30283
- if (key === void 0) {
30284
- key = parameter_;
30285
- }
30286
- value = value === void 0 ? null : ["comma", "separator", "bracket-separator"].includes(options.arrayFormat) ? value : decode3(value, options);
30287
- formatter(decode3(key, options), value, returnValue);
30288
- }
30289
- for (const [key, value] of Object.entries(returnValue)) {
30290
- if (typeof value === "object" && value !== null && options.types[key] !== "string") {
30291
- for (const [key2, value2] of Object.entries(value)) {
30292
- const typeOption = options.types[key];
30293
- const type = typeof typeOption === "function" ? typeOption : typeOption ? typeOption.replace("[]", "") : void 0;
30294
- value[key2] = parseValue(value2, options, type);
30295
- }
30296
- } else if (typeof value === "object" && value !== null && options.types[key] === "string") {
30297
- returnValue[key] = Object.values(value).join(options.arrayFormatSeparator);
30298
- } else {
30299
- returnValue[key] = parseValue(value, options, options.types[key]);
30300
- }
30301
- }
30302
- if (options.sort === false) {
30303
- return returnValue;
30304
- }
30305
- return (options.sort === true ? Object.keys(returnValue).sort() : Object.keys(returnValue).sort(options.sort)).reduce((result, key) => {
30306
- const value = returnValue[key];
30307
- result[key] = Boolean(value) && typeof value === "object" && !Array.isArray(value) ? keysSorter(value) : value;
30308
- return result;
30309
- }, /* @__PURE__ */ Object.create(null));
30310
- }
30311
- __name(parse3, "parse");
30312
- __name2(parse3, "parse");
30313
- function stringify(object2, options) {
30314
- if (!object2) {
30315
- return "";
30316
- }
30317
- options = {
30318
- encode: true,
30319
- strict: true,
30320
- arrayFormat: "none",
30321
- arrayFormatSeparator: ",",
30322
- ...options
30323
- };
30324
- validateArrayFormatSeparator(options.arrayFormatSeparator);
30325
- const shouldFilter = /* @__PURE__ */ __name2((key) => options.skipNull && isNullOrUndefined(object2[key]) || options.skipEmptyString && object2[key] === "", "shouldFilter");
30326
- const formatter = encoderForArrayFormat(options);
30327
- const objectCopy = {};
30328
- for (const [key, value] of Object.entries(object2)) {
30329
- if (!shouldFilter(key)) {
30330
- objectCopy[key] = value;
30331
- }
30332
- }
30333
- const keys = Object.keys(objectCopy);
30334
- if (options.sort !== false) {
30335
- keys.sort(options.sort);
30336
- }
30337
- return keys.map((key) => {
30338
- let value = object2[key];
30339
- if (options.replacer) {
30340
- value = options.replacer(key, value);
30341
- if (value === void 0) {
30342
- return "";
30343
- }
30344
- }
30345
- if (value === void 0) {
30346
- return "";
30347
- }
30348
- if (value === null) {
30349
- return encode3(key, options);
30350
- }
30351
- if (Array.isArray(value)) {
30352
- if (value.length === 0 && options.arrayFormat === "bracket-separator") {
30353
- return encode3(key, options) + "[]";
30354
- }
30355
- let processedArray = value;
30356
- if (options.replacer) {
30357
- processedArray = value.map(
30358
- (item, index) => options.replacer(`${key}[${index}]`, item)
30359
- ).filter((item) => item !== void 0);
30360
- }
30361
- return processedArray.reduce(formatter(key), []).join("&");
30362
- }
30363
- return encode3(key, options) + "=" + encode3(value, options);
30364
- }).filter((x) => x.length > 0).join("&");
30365
- }
30366
- __name(stringify, "stringify");
30367
- __name2(stringify, "stringify");
30368
- function parseUrl(url2, options) {
30369
- options = {
30370
- decode: true,
30371
- ...options
30372
- };
30373
- let [url_, hash2] = (0, import_split_on_first.default)(url2, "#");
30374
- if (url_ === void 0) {
30375
- url_ = url2;
30376
- }
30032
+ var parseUrl = /* @__PURE__ */ __name2((input) => {
30033
+ const hashIndex = input.indexOf("#");
30034
+ const fragmentIdentifier = hashIndex === -1 ? void 0 : input.slice(hashIndex + 1);
30035
+ const withoutFragment = hashIndex === -1 ? input : input.slice(0, hashIndex);
30036
+ const queryIndex = withoutFragment.indexOf("?");
30037
+ const url2 = queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);
30038
+ const search = queryIndex === -1 ? "" : withoutFragment.slice(queryIndex + 1);
30039
+ const query = {};
30040
+ for (const [key, value] of new URLSearchParams(search))
30041
+ query[key] = value;
30377
30042
  return {
30378
- url: url_?.split("?")?.[0] ?? "",
30379
- query: parse3(extract(url2), options),
30380
- ...options && options.parseFragmentIdentifier && hash2 ? { fragmentIdentifier: decode3(hash2, options) } : {}
30381
- };
30382
- }
30383
- __name(parseUrl, "parseUrl");
30384
- __name2(parseUrl, "parseUrl");
30385
- function stringifyUrl(object2, options) {
30386
- options = {
30387
- encode: true,
30388
- strict: true,
30389
- [encodeFragmentIdentifier]: true,
30390
- ...options
30391
- };
30392
- const url2 = removeHash(object2.url).split("?")[0] || "";
30393
- const queryFromUrl = extract(object2.url);
30394
- const query = {
30395
- ...parse3(queryFromUrl, { sort: false, ...options }),
30396
- ...object2.query
30397
- };
30398
- let queryString = stringify(query, options);
30399
- queryString && (queryString = `?${queryString}`);
30400
- let hash2 = getHash(object2.url);
30401
- if (typeof object2.fragmentIdentifier === "string") {
30402
- const urlObjectForFragmentEncode = new URL(url2);
30403
- urlObjectForFragmentEncode.hash = object2.fragmentIdentifier;
30404
- hash2 = options[encodeFragmentIdentifier] ? urlObjectForFragmentEncode.hash : `#${object2.fragmentIdentifier}`;
30405
- }
30406
- return `${url2}${queryString}${hash2}`;
30407
- }
30408
- __name(stringifyUrl, "stringifyUrl");
30409
- __name2(stringifyUrl, "stringifyUrl");
30410
- function pick2(input, filter, options) {
30411
- options = {
30412
- parseFragmentIdentifier: true,
30413
- [encodeFragmentIdentifier]: false,
30414
- ...options
30415
- };
30416
- const { url: url2, query, fragmentIdentifier } = parseUrl(input, options);
30417
- return stringifyUrl({
30418
30043
  url: url2,
30419
- query: (0, import_filter_obj.includeKeys)(query, filter),
30420
- fragmentIdentifier
30421
- }, options);
30422
- }
30423
- __name(pick2, "pick");
30424
- __name2(pick2, "pick");
30425
- function exclude(input, filter, options) {
30426
- const exclusionFilter = Array.isArray(filter) ? (key) => !filter.includes(key) : (key, value) => !filter(key, value);
30427
- return pick2(input, exclusionFilter, options);
30428
- }
30429
- __name(exclude, "exclude");
30430
- __name2(exclude, "exclude");
30431
- var query_string_default = base_exports;
30044
+ query,
30045
+ ...fragmentIdentifier !== void 0 ? { fragmentIdentifier } : {}
30046
+ };
30047
+ }, "parseUrl");
30048
+ var stringifyUrl = /* @__PURE__ */ __name2((parsed) => {
30049
+ const params = new URLSearchParams();
30050
+ for (const [key, value] of Object.entries(parsed.query)) {
30051
+ if (value === void 0 || value === null)
30052
+ continue;
30053
+ params.append(key, String(value));
30054
+ }
30055
+ const search = params.toString().replace(/\+/g, "%20");
30056
+ const fragment = parsed.fragmentIdentifier ? `#${parsed.fragmentIdentifier}` : "";
30057
+ return `${parsed.url}${search ? `?${search}` : ""}${fragment}`;
30058
+ }, "stringifyUrl");
30432
30059
  var fixSrcSetString2 = /* @__PURE__ */ __name2((srcSetString, _mimetype, _webp = false) => {
30433
30060
  const urls = getUrlsFromSrcSet(srcSetString);
30434
30061
  return urls.map(([url2, width]) => `${fixUrl2(url2)} ${width}`).join(", ");
@@ -30436,19 +30063,19 @@ var fixSrcSetString2 = /* @__PURE__ */ __name2((srcSetString, _mimetype, _webp =
30436
30063
  var fixUrl2 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
30437
30064
  if (url2.split(" ").length > 1)
30438
30065
  return fixSrcSetString2(url2);
30439
- const parsedUrl = query_string_default.parseUrl(url2);
30066
+ const parsedUrl = parseUrl(url2);
30440
30067
  parsedUrl.query.auto = "format";
30441
- return query_string_default.stringifyUrl(parsedUrl);
30068
+ return stringifyUrl(parsedUrl);
30442
30069
  }, "fixUrl");
30443
30070
  var resizeUrl2 = /* @__PURE__ */ __name2((url2, size) => {
30444
- const parsedUrl = query_string_default.parseUrl(url2);
30071
+ const parsedUrl = parseUrl(url2);
30445
30072
  parsedUrl.query.w = size.toString();
30446
- return query_string_default.stringifyUrl(parsedUrl);
30073
+ return stringifyUrl(parsedUrl);
30447
30074
  }, "resizeUrl");
30448
30075
  var changeQuality2 = /* @__PURE__ */ __name2((url2, quality) => {
30449
- const parsedUrl = query_string_default.parseUrl(url2);
30076
+ const parsedUrl = parseUrl(url2);
30450
30077
  parsedUrl.query.q = quality.toString();
30451
- return query_string_default.stringifyUrl(parsedUrl);
30078
+ return stringifyUrl(parsedUrl);
30452
30079
  }, "changeQuality");
30453
30080
  var resizeAndChangeQuality2 = /* @__PURE__ */ __name2((url2, size, quality, { fix = false } = {}) => {
30454
30081
  const updatedUrl = changeQuality2(resizeUrl2(url2, size), quality);
@@ -30492,9 +30119,9 @@ var fixUrl3 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
30492
30119
  }, "fixUrl");
30493
30120
  var VALID_DISCORD_SIZES = [20, 32, 40, 60, 64, 80, 100, 128, 256, 512, 1024, 2048, 4096];
30494
30121
  var resizeUrl3 = /* @__PURE__ */ __name2((url2, size) => {
30495
- const parsedUrl = query_string_default.parseUrl(url2);
30122
+ const parsedUrl = parseUrl(url2);
30496
30123
  parsedUrl.query.size = quantizeValue(size, VALID_DISCORD_SIZES).toString();
30497
- return query_string_default.stringifyUrl(parsedUrl);
30124
+ return stringifyUrl(parsedUrl);
30498
30125
  }, "resizeUrl");
30499
30126
  var changeQuality3 = /* @__PURE__ */ __name2((url2, _quality) => {
30500
30127
  return url2;
@@ -30605,6 +30232,7 @@ var ImageWithLoadingStateValdator = external_exports.object({
30605
30232
  image: external_exports.string(),
30606
30233
  loading: external_exports.union([ImageResizingValidator, ImageUploadingValidator]).optional()
30607
30234
  });
30235
+ var import_types3 = __toESM(require_dist());
30608
30236
  var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
30609
30237
  if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
30610
30238
  return vc.boostCredential;
@@ -31059,6 +30687,10 @@ var CredentialFormatValidator = external_exports.enum([
31059
30687
  "vc+sd-jwt",
31060
30688
  "mso_mdoc"
31061
30689
  ]);
30690
+ var StoredCredentialEnvelopeValidator = external_exports.object({
30691
+ format: CredentialFormatValidator,
30692
+ data: external_exports.string()
30693
+ }).passthrough();
31062
30694
  var StatusCheckEntryValidator = external_exports.object({
31063
30695
  entryType: external_exports.string(),
31064
30696
  statusPurpose: external_exports.string(),
@@ -31119,6 +30751,13 @@ var parseRegexString = /* @__PURE__ */ __name3((regexStr) => {
31119
30751
  throw new Error("Invalid RegExp string format");
31120
30752
  return { pattern: match[1], flags: match[2] };
31121
30753
  }, "parseRegexString");
30754
+ var withStringOverride = /* @__PURE__ */ __name3((schema) => {
30755
+ const metaSchema = schema;
30756
+ if (typeof metaSchema.meta === "function") {
30757
+ return metaSchema.meta({ override: { type: "string" } });
30758
+ }
30759
+ return schema;
30760
+ }, "withStringOverride");
31122
30761
  var RegExpStringValidator = external_exports.string().refine(
31123
30762
  (str) => {
31124
30763
  try {
@@ -31138,9 +30777,9 @@ var RegExpStringValidator = external_exports.string().refine(
31138
30777
  } catch (error46) {
31139
30778
  throw new Error(`Invalid RegExp: ${error46.message}`);
31140
30779
  }
31141
- }).meta({ override: { type: "string" } });
31142
- var RegExpValidator = external_exports.instanceof(RegExp).meta({ override: { type: "string" } }).or(RegExpStringValidator).meta({ override: { type: "string" } });
31143
- var BaseStringQuery = external_exports.string().or(external_exports.object({ $in: external_exports.string().array() })).or(external_exports.object({ $regex: RegExpValidator.meta({ override: { type: "string" } }) }));
30780
+ });
30781
+ var RegExpValidator = withStringOverride(external_exports.instanceof(RegExp).or(RegExpStringValidator));
30782
+ var BaseStringQuery = external_exports.string().or(external_exports.object({ $in: external_exports.string().array() })).or(external_exports.object({ $regex: RegExpValidator }));
31144
30783
  var StringQuery = external_exports.union([
31145
30784
  BaseStringQuery,
31146
30785
  external_exports.object({
@@ -31364,7 +31003,8 @@ var BoostRecipientValidator = external_exports.object({
31364
31003
  to: LCNVisibleProfileValidator,
31365
31004
  from: external_exports.string(),
31366
31005
  received: external_exports.string().optional(),
31367
- uri: external_exports.string().optional()
31006
+ uri: external_exports.string().optional(),
31007
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
31368
31008
  });
31369
31009
  var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
31370
31010
  records: BoostRecipientValidator.array()
@@ -31374,7 +31014,8 @@ var BoostRecipientWithChildrenValidator = external_exports.object({
31374
31014
  from: external_exports.string(),
31375
31015
  received: external_exports.string().optional(),
31376
31016
  boostUris: external_exports.array(external_exports.string()),
31377
- credentialUris: external_exports.array(external_exports.string()).optional()
31017
+ credentialUris: external_exports.array(external_exports.string()).optional(),
31018
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
31378
31019
  });
31379
31020
  var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
31380
31021
  records: BoostRecipientWithChildrenValidator.array()
@@ -32445,7 +32086,8 @@ var CredentialActivityValidator = external_exports.object({
32445
32086
  inboxCredentialId: external_exports.string().optional(),
32446
32087
  integrationId: external_exports.string().optional(),
32447
32088
  source: CredentialActivitySourceTypeValidator,
32448
- metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
32089
+ metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
32090
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
32449
32091
  });
32450
32092
  var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
32451
32093
  boost: external_exports.object({