@learncard/render-method-plugin 10.0.1 → 11.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.
- package/dist/render-method-plugin.cjs.development.cjs +76 -40
- package/dist/render-method-plugin.cjs.development.cjs.map +3 -3
- package/dist/render-method-plugin.cjs.production.min.cjs +11 -11
- package/dist/render-method-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/render-method-plugin.esm.js +76 -40
- package/dist/render-method-plugin.esm.js.map +3 -3
- package/package.json +8 -8
|
@@ -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
|
|
1335
|
+
var _a9;
|
|
1336
1336
|
const inst = params?.Parent ? new Definition() : this;
|
|
1337
1337
|
init(inst, def);
|
|
1338
|
-
(
|
|
1338
|
+
(_a9 = inst._zod).deferred ?? (_a9.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
|
|
2005
|
-
(
|
|
2004
|
+
var _a9;
|
|
2005
|
+
(_a9 = iss).path ?? (_a9.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
|
|
2208
|
+
var _a9, _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
|
-
(
|
|
2229
|
+
(_a9 = curr.properties)[el] ?? (_a9[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
|
|
2534
|
+
var _a9;
|
|
2535
2535
|
inst._zod ?? (inst._zod = {});
|
|
2536
2536
|
inst._zod.def = def;
|
|
2537
|
-
(
|
|
2537
|
+
(_a9 = inst._zod).onattach ?? (_a9.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
|
|
2604
|
-
(
|
|
2603
|
+
var _a9;
|
|
2604
|
+
(_a9 = inst2._zod.bag).multipleOf ?? (_a9.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
|
|
2737
|
+
var _a9;
|
|
2738
2738
|
$ZodCheck.init(inst, def);
|
|
2739
|
-
(
|
|
2739
|
+
(_a9 = inst._zod.def).when ?? (_a9.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
|
|
2765
|
+
var _a9;
|
|
2766
2766
|
$ZodCheck.init(inst, def);
|
|
2767
|
-
(
|
|
2767
|
+
(_a9 = inst._zod.def).when ?? (_a9.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
|
|
2793
|
+
var _a9;
|
|
2794
2794
|
$ZodCheck.init(inst, def);
|
|
2795
|
-
(
|
|
2795
|
+
(_a9 = inst._zod.def).when ?? (_a9.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
|
|
2823
|
+
var _a9;
|
|
2824
2824
|
$ZodCheck.init(inst, def);
|
|
2825
|
-
(
|
|
2825
|
+
(_a9 = inst._zod.def).when ?? (_a9.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
|
|
2852
|
+
var _a9;
|
|
2853
2853
|
$ZodCheck.init(inst, def);
|
|
2854
|
-
(
|
|
2854
|
+
(_a9 = inst._zod.def).when ?? (_a9.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
|
|
2881
|
+
var _a9;
|
|
2882
2882
|
$ZodCheck.init(inst, def);
|
|
2883
|
-
(
|
|
2883
|
+
(_a9 = inst._zod.def).when ?? (_a9.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
|
|
2912
|
+
var _a9, _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
|
-
(
|
|
2923
|
+
(_a9 = inst._zod).check ?? (_a9.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
|
|
3128
|
+
var _a9;
|
|
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
|
-
(
|
|
3143
|
+
(_a9 = inst._zod).deferred ?? (_a9.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
|
|
12534
|
+
var _a9;
|
|
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
|
-
(
|
|
12582
|
+
(_a9 = result.schema).default ?? (_a9.default = result.schema._prefault);
|
|
12583
12583
|
delete result.schema._prefault;
|
|
12584
12584
|
const _result = ctx.seen.get(schema);
|
|
12585
12585
|
return _result.schema;
|
|
@@ -15932,7 +15932,7 @@ var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod
|
|
|
15932
15932
|
var require_types_cjs_development = __commonJS({
|
|
15933
15933
|
"../learn-card-types/dist/types.cjs.development.cjs"(exports, module) {
|
|
15934
15934
|
"use strict";
|
|
15935
|
-
var
|
|
15935
|
+
var _a10, _b, _c, _d, _e, _f, _g, _h;
|
|
15936
15936
|
var __defProp22 = Object.defineProperty;
|
|
15937
15937
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
15938
15938
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -16099,6 +16099,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16099
16099
|
FlatAuthGrantValidator: /* @__PURE__ */ __name2(() => FlatAuthGrantValidator2, "FlatAuthGrantValidator"),
|
|
16100
16100
|
FrameworkWithSkillsValidator: /* @__PURE__ */ __name2(() => FrameworkWithSkillsValidator2, "FrameworkWithSkillsValidator"),
|
|
16101
16101
|
FullClaimHookValidator: /* @__PURE__ */ __name2(() => FullClaimHookValidator2, "FullClaimHookValidator"),
|
|
16102
|
+
GenerateSkillIconsInputValidator: /* @__PURE__ */ __name2(() => GenerateSkillIconsInputValidator2, "GenerateSkillIconsInputValidator"),
|
|
16102
16103
|
GeoCoordinatesValidator: /* @__PURE__ */ __name2(() => GeoCoordinatesValidator2, "GeoCoordinatesValidator"),
|
|
16103
16104
|
GetCounterEventValidator: /* @__PURE__ */ __name2(() => GetCounterEventValidator2, "GetCounterEventValidator"),
|
|
16104
16105
|
GetCountersEventValidator: /* @__PURE__ */ __name2(() => GetCountersEventValidator2, "GetCountersEventValidator"),
|
|
@@ -16259,6 +16260,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
16259
16260
|
SHARE_RECOVERY_PROTOCOL: /* @__PURE__ */ __name2(() => SHARE_RECOVERY_PROTOCOL2, "SHARE_RECOVERY_PROTOCOL"),
|
|
16260
16261
|
SHARE_TAG_BYTES: /* @__PURE__ */ __name2(() => SHARE_TAG_BYTES2, "SHARE_TAG_BYTES"),
|
|
16261
16262
|
SHARE_VIEW_RECEIPT_TTL_SECONDS: /* @__PURE__ */ __name2(() => SHARE_VIEW_RECEIPT_TTL_SECONDS2, "SHARE_VIEW_RECEIPT_TTL_SECONDS"),
|
|
16263
|
+
SKILL_ICON_MAX_CHARACTERS_PER_REQUEST: /* @__PURE__ */ __name2(() => SKILL_ICON_MAX_CHARACTERS_PER_REQUEST2, "SKILL_ICON_MAX_CHARACTERS_PER_REQUEST"),
|
|
16264
|
+
SKILL_ICON_MAX_NAMES_PER_REQUEST: /* @__PURE__ */ __name2(() => SKILL_ICON_MAX_NAMES_PER_REQUEST2, "SKILL_ICON_MAX_NAMES_PER_REQUEST"),
|
|
16262
16265
|
SendAiSessionCredentialEventValidator: /* @__PURE__ */ __name2(() => SendAiSessionCredentialEventValidator2, "SendAiSessionCredentialEventValidator"),
|
|
16263
16266
|
SendBoostInputValidator: /* @__PURE__ */ __name2(() => SendBoostInputValidator2, "SendBoostInputValidator"),
|
|
16264
16267
|
SendBoostResponseValidator: /* @__PURE__ */ __name2(() => SendBoostResponseValidator2, "SendBoostResponseValidator"),
|
|
@@ -16311,6 +16314,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16311
16314
|
SkillFrameworkQueryValidator: /* @__PURE__ */ __name2(() => SkillFrameworkQueryValidator2, "SkillFrameworkQueryValidator"),
|
|
16312
16315
|
SkillFrameworkStatusEnum: /* @__PURE__ */ __name2(() => SkillFrameworkStatusEnum2, "SkillFrameworkStatusEnum"),
|
|
16313
16316
|
SkillFrameworkValidator: /* @__PURE__ */ __name2(() => SkillFrameworkValidator2, "SkillFrameworkValidator"),
|
|
16317
|
+
SkillIconNamesValidator: /* @__PURE__ */ __name2(() => SkillIconNamesValidator2, "SkillIconNamesValidator"),
|
|
16314
16318
|
SkillQueryValidator: /* @__PURE__ */ __name2(() => SkillQueryValidator2, "SkillQueryValidator"),
|
|
16315
16319
|
SkillSemanticSearchInputValidator: /* @__PURE__ */ __name2(() => SkillSemanticSearchInputValidator2, "SkillSemanticSearchInputValidator"),
|
|
16316
16320
|
SkillSemanticSearchResultItemValidator: /* @__PURE__ */ __name2(() => SkillSemanticSearchResultItemValidator2, "SkillSemanticSearchResultItemValidator"),
|
|
@@ -16897,7 +16901,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16897
16901
|
util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
|
|
16898
16902
|
version: /* @__PURE__ */ __name2(() => version3, "version")
|
|
16899
16903
|
});
|
|
16900
|
-
var
|
|
16904
|
+
var _a9;
|
|
16901
16905
|
var NEVER2 = /* @__PURE__ */ Object.freeze({
|
|
16902
16906
|
status: "aborted"
|
|
16903
16907
|
});
|
|
@@ -16967,18 +16971,18 @@ var require_types_cjs_development = __commonJS({
|
|
|
16967
16971
|
__name2($constructor2, "$constructor");
|
|
16968
16972
|
__name22($constructor2, "$constructor");
|
|
16969
16973
|
var $brand2 = /* @__PURE__ */ Symbol("zod_brand");
|
|
16970
|
-
var $ZodAsyncError2 = (
|
|
16974
|
+
var $ZodAsyncError2 = (_a10 = class extends Error {
|
|
16971
16975
|
constructor() {
|
|
16972
16976
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
16973
16977
|
}
|
|
16974
|
-
}, __name(
|
|
16978
|
+
}, __name(_a10, "$ZodAsyncError"), __name2(_a10, "$ZodAsyncError"), __name22(_a10, "$ZodAsyncError"), _a10);
|
|
16975
16979
|
var $ZodEncodeError2 = (_b = class extends Error {
|
|
16976
16980
|
constructor(name) {
|
|
16977
16981
|
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
16978
16982
|
this.name = "ZodEncodeError";
|
|
16979
16983
|
}
|
|
16980
16984
|
}, __name(_b, "$ZodEncodeError"), __name2(_b, "$ZodEncodeError"), __name22(_b, "$ZodEncodeError"), _b);
|
|
16981
|
-
(
|
|
16985
|
+
(_a9 = globalThis).__zod_globalConfig ?? (_a9.__zod_globalConfig = {});
|
|
16982
16986
|
var globalConfig2 = globalThis.__zod_globalConfig;
|
|
16983
16987
|
function config2(newConfig) {
|
|
16984
16988
|
if (newConfig)
|
|
@@ -30767,7 +30771,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30767
30771
|
};
|
|
30768
30772
|
return new ZodObject2(def);
|
|
30769
30773
|
}
|
|
30770
|
-
__name(object2, "
|
|
30774
|
+
__name(object2, "object2");
|
|
30771
30775
|
__name2(object2, "object");
|
|
30772
30776
|
__name22(object2, "object");
|
|
30773
30777
|
function strictObject2(shape, params) {
|
|
@@ -32441,6 +32445,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32441
32445
|
term: external_exports2.string().optional()
|
|
32442
32446
|
}).catchall(external_exports2.any());
|
|
32443
32447
|
var UnsignedAchievementCredentialValidator2 = UnsignedVCValidator2.extend({
|
|
32448
|
+
awardedDate: external_exports2.string().optional(),
|
|
32444
32449
|
name: external_exports2.string().optional(),
|
|
32445
32450
|
description: external_exports2.string().optional(),
|
|
32446
32451
|
image: ImageValidator2.optional(),
|
|
@@ -35285,6 +35290,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
35285
35290
|
contentUrl: external_exports2.string(),
|
|
35286
35291
|
receipt: external_exports2.string().min(22).max(128).regex(/^[A-Za-z0-9_-]+$/)
|
|
35287
35292
|
}).strict();
|
|
35293
|
+
var SKILL_ICON_MAX_NAMES_PER_REQUEST2 = 100;
|
|
35294
|
+
var SKILL_ICON_MAX_CHARACTERS_PER_REQUEST2 = 2500;
|
|
35295
|
+
var SkillIconNamesValidator2 = external_exports2.array(external_exports2.string().nonempty()).min(1).max(SKILL_ICON_MAX_NAMES_PER_REQUEST2, {
|
|
35296
|
+
message: `A maximum of ${SKILL_ICON_MAX_NAMES_PER_REQUEST2} skill names can be sent per request`
|
|
35297
|
+
}).refine(
|
|
35298
|
+
(names) => names.reduce((total, name) => total + name.length, 0) <= SKILL_ICON_MAX_CHARACTERS_PER_REQUEST2,
|
|
35299
|
+
{
|
|
35300
|
+
message: `Skill names may total at most ${SKILL_ICON_MAX_CHARACTERS_PER_REQUEST2} characters per request`
|
|
35301
|
+
}
|
|
35302
|
+
);
|
|
35303
|
+
var GenerateSkillIconsInputValidator2 = external_exports2.object({ names: SkillIconNamesValidator2 });
|
|
35288
35304
|
}
|
|
35289
35305
|
});
|
|
35290
35306
|
var require_dist = __commonJS({
|
|
@@ -35627,6 +35643,14 @@ var ShareContentCanonicalizationError = (_a5 = class extends Error {
|
|
|
35627
35643
|
this.name = "ShareContentCanonicalizationError";
|
|
35628
35644
|
}
|
|
35629
35645
|
}, __name(_a5, "ShareContentCanonicalizationError"), __name2(_a5, "ShareContentCanonicalizationError"), _a5);
|
|
35646
|
+
var _a6;
|
|
35647
|
+
var CredentialFieldError = (_a6 = class extends Error {
|
|
35648
|
+
constructor(field) {
|
|
35649
|
+
super(`Invalid standard credential field: ${field}`);
|
|
35650
|
+
this.field = field;
|
|
35651
|
+
this.name = "CredentialFieldError";
|
|
35652
|
+
}
|
|
35653
|
+
}, __name(_a6, "CredentialFieldError"), __name2(_a6, "CredentialFieldError"), _a6);
|
|
35630
35654
|
var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
|
|
35631
35655
|
if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
|
|
35632
35656
|
return vc.boostCredential;
|
|
@@ -36049,6 +36073,7 @@ var AchievementSubjectValidator = external_exports.object({
|
|
|
36049
36073
|
term: external_exports.string().optional()
|
|
36050
36074
|
}).catchall(external_exports.any());
|
|
36051
36075
|
var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
|
|
36076
|
+
awardedDate: external_exports.string().optional(),
|
|
36052
36077
|
name: external_exports.string().optional(),
|
|
36053
36078
|
description: external_exports.string().optional(),
|
|
36054
36079
|
image: ImageValidator.optional(),
|
|
@@ -38250,23 +38275,23 @@ var CredentialActivityStatsValidator = external_exports.object({
|
|
|
38250
38275
|
failed: external_exports.number(),
|
|
38251
38276
|
claimRate: external_exports.number()
|
|
38252
38277
|
});
|
|
38253
|
-
var
|
|
38254
|
-
var AuthSessionError = (
|
|
38278
|
+
var _a7;
|
|
38279
|
+
var AuthSessionError = (_a7 = class extends Error {
|
|
38255
38280
|
constructor(message, reason) {
|
|
38256
38281
|
super(message);
|
|
38257
38282
|
this.reason = reason;
|
|
38258
38283
|
this.name = "AuthSessionError";
|
|
38259
38284
|
}
|
|
38260
|
-
}, __name(
|
|
38261
|
-
var
|
|
38262
|
-
var UnsupportedSignInOperationError = (
|
|
38285
|
+
}, __name(_a7, "AuthSessionError"), __name3(_a7, "AuthSessionError"), _a7);
|
|
38286
|
+
var _a8;
|
|
38287
|
+
var UnsupportedSignInOperationError = (_a8 = class extends Error {
|
|
38263
38288
|
constructor(operation, providerType) {
|
|
38264
38289
|
super(`${operation} is not supported by ${providerType}`);
|
|
38265
38290
|
this.operation = operation;
|
|
38266
38291
|
this.providerType = providerType;
|
|
38267
38292
|
this.name = "UnsupportedSignInOperationError";
|
|
38268
38293
|
}
|
|
38269
|
-
}, __name(
|
|
38294
|
+
}, __name(_a8, "UnsupportedSignInOperationError"), __name3(_a8, "UnsupportedSignInOperationError"), _a8);
|
|
38270
38295
|
var EscrowPinStatusValidator = external_exports.object({
|
|
38271
38296
|
state: external_exports.enum(["none", "enabled", "locked", "stale"]),
|
|
38272
38297
|
enabled: external_exports.boolean(),
|
|
@@ -38876,6 +38901,17 @@ var ShareLinkPublicContentViewValidator = external_exports.object({
|
|
|
38876
38901
|
contentUrl: external_exports.string(),
|
|
38877
38902
|
receipt: external_exports.string().min(22).max(128).regex(/^[A-Za-z0-9_-]+$/)
|
|
38878
38903
|
}).strict();
|
|
38904
|
+
var SKILL_ICON_MAX_NAMES_PER_REQUEST = 100;
|
|
38905
|
+
var SKILL_ICON_MAX_CHARACTERS_PER_REQUEST = 2500;
|
|
38906
|
+
var SkillIconNamesValidator = external_exports.array(external_exports.string().nonempty()).min(1).max(SKILL_ICON_MAX_NAMES_PER_REQUEST, {
|
|
38907
|
+
message: `A maximum of ${SKILL_ICON_MAX_NAMES_PER_REQUEST} skill names can be sent per request`
|
|
38908
|
+
}).refine(
|
|
38909
|
+
(names) => names.reduce((total, name) => total + name.length, 0) <= SKILL_ICON_MAX_CHARACTERS_PER_REQUEST,
|
|
38910
|
+
{
|
|
38911
|
+
message: `Skill names may total at most ${SKILL_ICON_MAX_CHARACTERS_PER_REQUEST} characters per request`
|
|
38912
|
+
}
|
|
38913
|
+
);
|
|
38914
|
+
var GenerateSkillIconsInputValidator = external_exports.object({ names: SkillIconNamesValidator });
|
|
38879
38915
|
|
|
38880
38916
|
// src/read.ts
|
|
38881
38917
|
var isTemplateRenderMethod = /* @__PURE__ */ __name((rm) => TemplateRenderMethodValidator.safeParse(rm).success, "isTemplateRenderMethod");
|