@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.
@@ -1365,10 +1365,10 @@ function $constructor(name, initializer3, params) {
1365
1365
  let Definition = _Definition;
1366
1366
  Object.defineProperty(Definition, "name", { value: name });
1367
1367
  function _(def) {
1368
- var _a8;
1368
+ var _a9;
1369
1369
  const inst = params?.Parent ? new Definition() : this;
1370
1370
  init(inst, def);
1371
- (_a8 = inst._zod).deferred ?? (_a8.deferred = []);
1371
+ (_a9 = inst._zod).deferred ?? (_a9.deferred = []);
1372
1372
  for (const fn of inst._zod.deferred) {
1373
1373
  fn();
1374
1374
  }
@@ -2034,8 +2034,8 @@ function explicitlyAborted(x, startIndex = 0) {
2034
2034
  __name(explicitlyAborted, "explicitlyAborted");
2035
2035
  function prefixIssues(path, issues) {
2036
2036
  return issues.map((iss) => {
2037
- var _a8;
2038
- (_a8 = iss).path ?? (_a8.path = []);
2037
+ var _a9;
2038
+ (_a9 = iss).path ?? (_a9.path = []);
2039
2039
  iss.path.unshift(path);
2040
2040
  return iss;
2041
2041
  });
@@ -2238,7 +2238,7 @@ __name(formatError, "formatError");
2238
2238
  function treeifyError(error51, mapper = (issue2) => issue2.message) {
2239
2239
  const result = { errors: [] };
2240
2240
  const processError = /* @__PURE__ */ __name((error52, path = []) => {
2241
- var _a8, _b;
2241
+ var _a9, _b;
2242
2242
  for (const issue2 of error52.issues) {
2243
2243
  if (issue2.code === "invalid_union" && issue2.errors.length) {
2244
2244
  issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
@@ -2259,7 +2259,7 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
2259
2259
  const terminal = i === fullpath.length - 1;
2260
2260
  if (typeof el === "string") {
2261
2261
  curr.properties ?? (curr.properties = {});
2262
- (_a8 = curr.properties)[el] ?? (_a8[el] = { errors: [] });
2262
+ (_a9 = curr.properties)[el] ?? (_a9[el] = { errors: [] });
2263
2263
  curr = curr.properties[el];
2264
2264
  } else {
2265
2265
  curr.items ?? (curr.items = []);
@@ -2564,10 +2564,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2564
2564
 
2565
2565
  // ../../../node_modules/zod/v4/core/checks.js
2566
2566
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2567
- var _a8;
2567
+ var _a9;
2568
2568
  inst._zod ?? (inst._zod = {});
2569
2569
  inst._zod.def = def;
2570
- (_a8 = inst._zod).onattach ?? (_a8.onattach = []);
2570
+ (_a9 = inst._zod).onattach ?? (_a9.onattach = []);
2571
2571
  });
2572
2572
  var numericOriginMap = {
2573
2573
  number: "number",
@@ -2633,8 +2633,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2633
2633
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2634
2634
  $ZodCheck.init(inst, def);
2635
2635
  inst._zod.onattach.push((inst2) => {
2636
- var _a8;
2637
- (_a8 = inst2._zod.bag).multipleOf ?? (_a8.multipleOf = def.value);
2636
+ var _a9;
2637
+ (_a9 = inst2._zod.bag).multipleOf ?? (_a9.multipleOf = def.value);
2638
2638
  });
2639
2639
  inst._zod.check = (payload) => {
2640
2640
  if (typeof payload.value !== typeof def.value)
@@ -2767,9 +2767,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
2767
2767
  };
2768
2768
  });
2769
2769
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2770
- var _a8;
2770
+ var _a9;
2771
2771
  $ZodCheck.init(inst, def);
2772
- (_a8 = inst._zod.def).when ?? (_a8.when = (payload) => {
2772
+ (_a9 = inst._zod.def).when ?? (_a9.when = (payload) => {
2773
2773
  const val = payload.value;
2774
2774
  return !nullish(val) && val.size !== void 0;
2775
2775
  });
@@ -2795,9 +2795,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
2795
2795
  };
2796
2796
  });
2797
2797
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2798
- var _a8;
2798
+ var _a9;
2799
2799
  $ZodCheck.init(inst, def);
2800
- (_a8 = inst._zod.def).when ?? (_a8.when = (payload) => {
2800
+ (_a9 = inst._zod.def).when ?? (_a9.when = (payload) => {
2801
2801
  const val = payload.value;
2802
2802
  return !nullish(val) && val.size !== void 0;
2803
2803
  });
@@ -2823,9 +2823,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
2823
2823
  };
2824
2824
  });
2825
2825
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2826
- var _a8;
2826
+ var _a9;
2827
2827
  $ZodCheck.init(inst, def);
2828
- (_a8 = inst._zod.def).when ?? (_a8.when = (payload) => {
2828
+ (_a9 = inst._zod.def).when ?? (_a9.when = (payload) => {
2829
2829
  const val = payload.value;
2830
2830
  return !nullish(val) && val.size !== void 0;
2831
2831
  });
@@ -2853,9 +2853,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
2853
2853
  };
2854
2854
  });
2855
2855
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2856
- var _a8;
2856
+ var _a9;
2857
2857
  $ZodCheck.init(inst, def);
2858
- (_a8 = inst._zod.def).when ?? (_a8.when = (payload) => {
2858
+ (_a9 = inst._zod.def).when ?? (_a9.when = (payload) => {
2859
2859
  const val = payload.value;
2860
2860
  return !nullish(val) && val.length !== void 0;
2861
2861
  });
@@ -2882,9 +2882,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2882
2882
  };
2883
2883
  });
2884
2884
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2885
- var _a8;
2885
+ var _a9;
2886
2886
  $ZodCheck.init(inst, def);
2887
- (_a8 = inst._zod.def).when ?? (_a8.when = (payload) => {
2887
+ (_a9 = inst._zod.def).when ?? (_a9.when = (payload) => {
2888
2888
  const val = payload.value;
2889
2889
  return !nullish(val) && val.length !== void 0;
2890
2890
  });
@@ -2911,9 +2911,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2911
2911
  };
2912
2912
  });
2913
2913
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2914
- var _a8;
2914
+ var _a9;
2915
2915
  $ZodCheck.init(inst, def);
2916
- (_a8 = inst._zod.def).when ?? (_a8.when = (payload) => {
2916
+ (_a9 = inst._zod.def).when ?? (_a9.when = (payload) => {
2917
2917
  const val = payload.value;
2918
2918
  return !nullish(val) && val.length !== void 0;
2919
2919
  });
@@ -2942,7 +2942,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2942
2942
  };
2943
2943
  });
2944
2944
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2945
- var _a8, _b;
2945
+ var _a9, _b;
2946
2946
  $ZodCheck.init(inst, def);
2947
2947
  inst._zod.onattach.push((inst2) => {
2948
2948
  const bag = inst2._zod.bag;
@@ -2953,7 +2953,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2953
2953
  }
2954
2954
  });
2955
2955
  if (def.pattern)
2956
- (_a8 = inst._zod).check ?? (_a8.check = (payload) => {
2956
+ (_a9 = inst._zod).check ?? (_a9.check = (payload) => {
2957
2957
  def.pattern.lastIndex = 0;
2958
2958
  if (def.pattern.test(payload.value))
2959
2959
  return;
@@ -3158,7 +3158,7 @@ var version = {
3158
3158
 
3159
3159
  // ../../../node_modules/zod/v4/core/schemas.js
3160
3160
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3161
- var _a8;
3161
+ var _a9;
3162
3162
  inst ?? (inst = {});
3163
3163
  inst._zod.def = def;
3164
3164
  inst._zod.bag = inst._zod.bag || {};
@@ -3173,7 +3173,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3173
3173
  }
3174
3174
  }
3175
3175
  if (checks.length === 0) {
3176
- (_a8 = inst._zod).deferred ?? (_a8.deferred = []);
3176
+ (_a9 = inst._zod).deferred ?? (_a9.deferred = []);
3177
3177
  inst._zod.deferred?.push(() => {
3178
3178
  inst._zod.run = inst._zod.parse;
3179
3179
  });
@@ -12564,7 +12564,7 @@ function initializeContext(params) {
12564
12564
  }
12565
12565
  __name(initializeContext, "initializeContext");
12566
12566
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
12567
- var _a8;
12567
+ var _a9;
12568
12568
  const def = schema._zod.def;
12569
12569
  const seen = ctx.seen.get(schema);
12570
12570
  if (seen) {
@@ -12612,7 +12612,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
12612
12612
  delete result.schema.default;
12613
12613
  }
12614
12614
  if (ctx.io === "input" && "_prefault" in result.schema)
12615
- (_a8 = result.schema).default ?? (_a8.default = result.schema._prefault);
12615
+ (_a9 = result.schema).default ?? (_a9.default = result.schema._prefault);
12616
12616
  delete result.schema._prefault;
12617
12617
  const _result = ctx.seen.get(schema);
12618
12618
  return _result.schema;
@@ -15965,7 +15965,7 @@ var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod
15965
15965
  var require_types_cjs_development = __commonJS({
15966
15966
  "../learn-card-types/dist/types.cjs.development.cjs"(exports, module2) {
15967
15967
  "use strict";
15968
- var _a9, _b, _c, _d, _e, _f, _g, _h;
15968
+ var _a10, _b, _c, _d, _e, _f, _g, _h;
15969
15969
  var __defProp22 = Object.defineProperty;
15970
15970
  var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
15971
15971
  var __getOwnPropNames22 = Object.getOwnPropertyNames;
@@ -16132,6 +16132,7 @@ var require_types_cjs_development = __commonJS({
16132
16132
  FlatAuthGrantValidator: /* @__PURE__ */ __name2(() => FlatAuthGrantValidator2, "FlatAuthGrantValidator"),
16133
16133
  FrameworkWithSkillsValidator: /* @__PURE__ */ __name2(() => FrameworkWithSkillsValidator2, "FrameworkWithSkillsValidator"),
16134
16134
  FullClaimHookValidator: /* @__PURE__ */ __name2(() => FullClaimHookValidator2, "FullClaimHookValidator"),
16135
+ GenerateSkillIconsInputValidator: /* @__PURE__ */ __name2(() => GenerateSkillIconsInputValidator2, "GenerateSkillIconsInputValidator"),
16135
16136
  GeoCoordinatesValidator: /* @__PURE__ */ __name2(() => GeoCoordinatesValidator2, "GeoCoordinatesValidator"),
16136
16137
  GetCounterEventValidator: /* @__PURE__ */ __name2(() => GetCounterEventValidator2, "GetCounterEventValidator"),
16137
16138
  GetCountersEventValidator: /* @__PURE__ */ __name2(() => GetCountersEventValidator2, "GetCountersEventValidator"),
@@ -16292,6 +16293,8 @@ var require_types_cjs_development = __commonJS({
16292
16293
  SHARE_RECOVERY_PROTOCOL: /* @__PURE__ */ __name2(() => SHARE_RECOVERY_PROTOCOL2, "SHARE_RECOVERY_PROTOCOL"),
16293
16294
  SHARE_TAG_BYTES: /* @__PURE__ */ __name2(() => SHARE_TAG_BYTES2, "SHARE_TAG_BYTES"),
16294
16295
  SHARE_VIEW_RECEIPT_TTL_SECONDS: /* @__PURE__ */ __name2(() => SHARE_VIEW_RECEIPT_TTL_SECONDS2, "SHARE_VIEW_RECEIPT_TTL_SECONDS"),
16296
+ SKILL_ICON_MAX_CHARACTERS_PER_REQUEST: /* @__PURE__ */ __name2(() => SKILL_ICON_MAX_CHARACTERS_PER_REQUEST2, "SKILL_ICON_MAX_CHARACTERS_PER_REQUEST"),
16297
+ SKILL_ICON_MAX_NAMES_PER_REQUEST: /* @__PURE__ */ __name2(() => SKILL_ICON_MAX_NAMES_PER_REQUEST2, "SKILL_ICON_MAX_NAMES_PER_REQUEST"),
16295
16298
  SendAiSessionCredentialEventValidator: /* @__PURE__ */ __name2(() => SendAiSessionCredentialEventValidator2, "SendAiSessionCredentialEventValidator"),
16296
16299
  SendBoostInputValidator: /* @__PURE__ */ __name2(() => SendBoostInputValidator2, "SendBoostInputValidator"),
16297
16300
  SendBoostResponseValidator: /* @__PURE__ */ __name2(() => SendBoostResponseValidator2, "SendBoostResponseValidator"),
@@ -16344,6 +16347,7 @@ var require_types_cjs_development = __commonJS({
16344
16347
  SkillFrameworkQueryValidator: /* @__PURE__ */ __name2(() => SkillFrameworkQueryValidator2, "SkillFrameworkQueryValidator"),
16345
16348
  SkillFrameworkStatusEnum: /* @__PURE__ */ __name2(() => SkillFrameworkStatusEnum2, "SkillFrameworkStatusEnum"),
16346
16349
  SkillFrameworkValidator: /* @__PURE__ */ __name2(() => SkillFrameworkValidator2, "SkillFrameworkValidator"),
16350
+ SkillIconNamesValidator: /* @__PURE__ */ __name2(() => SkillIconNamesValidator2, "SkillIconNamesValidator"),
16347
16351
  SkillQueryValidator: /* @__PURE__ */ __name2(() => SkillQueryValidator2, "SkillQueryValidator"),
16348
16352
  SkillSemanticSearchInputValidator: /* @__PURE__ */ __name2(() => SkillSemanticSearchInputValidator2, "SkillSemanticSearchInputValidator"),
16349
16353
  SkillSemanticSearchResultItemValidator: /* @__PURE__ */ __name2(() => SkillSemanticSearchResultItemValidator2, "SkillSemanticSearchResultItemValidator"),
@@ -16930,7 +16934,7 @@ var require_types_cjs_development = __commonJS({
16930
16934
  util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
16931
16935
  version: /* @__PURE__ */ __name2(() => version3, "version")
16932
16936
  });
16933
- var _a8;
16937
+ var _a9;
16934
16938
  var NEVER2 = /* @__PURE__ */ Object.freeze({
16935
16939
  status: "aborted"
16936
16940
  });
@@ -17000,18 +17004,18 @@ var require_types_cjs_development = __commonJS({
17000
17004
  __name2($constructor2, "$constructor");
17001
17005
  __name22($constructor2, "$constructor");
17002
17006
  var $brand2 = /* @__PURE__ */ Symbol("zod_brand");
17003
- var $ZodAsyncError2 = (_a9 = class extends Error {
17007
+ var $ZodAsyncError2 = (_a10 = class extends Error {
17004
17008
  constructor() {
17005
17009
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
17006
17010
  }
17007
- }, __name(_a9, "$ZodAsyncError"), __name2(_a9, "$ZodAsyncError"), __name22(_a9, "$ZodAsyncError"), _a9);
17011
+ }, __name(_a10, "$ZodAsyncError"), __name2(_a10, "$ZodAsyncError"), __name22(_a10, "$ZodAsyncError"), _a10);
17008
17012
  var $ZodEncodeError2 = (_b = class extends Error {
17009
17013
  constructor(name) {
17010
17014
  super(`Encountered unidirectional transform during encode: ${name}`);
17011
17015
  this.name = "ZodEncodeError";
17012
17016
  }
17013
17017
  }, __name(_b, "$ZodEncodeError"), __name2(_b, "$ZodEncodeError"), __name22(_b, "$ZodEncodeError"), _b);
17014
- (_a8 = globalThis).__zod_globalConfig ?? (_a8.__zod_globalConfig = {});
17018
+ (_a9 = globalThis).__zod_globalConfig ?? (_a9.__zod_globalConfig = {});
17015
17019
  var globalConfig2 = globalThis.__zod_globalConfig;
17016
17020
  function config2(newConfig) {
17017
17021
  if (newConfig)
@@ -30800,7 +30804,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30800
30804
  };
30801
30805
  return new ZodObject2(def);
30802
30806
  }
30803
- __name(object2, "object");
30807
+ __name(object2, "object2");
30804
30808
  __name2(object2, "object");
30805
30809
  __name22(object2, "object");
30806
30810
  function strictObject2(shape, params) {
@@ -32474,6 +32478,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32474
32478
  term: external_exports2.string().optional()
32475
32479
  }).catchall(external_exports2.any());
32476
32480
  var UnsignedAchievementCredentialValidator2 = UnsignedVCValidator2.extend({
32481
+ awardedDate: external_exports2.string().optional(),
32477
32482
  name: external_exports2.string().optional(),
32478
32483
  description: external_exports2.string().optional(),
32479
32484
  image: ImageValidator2.optional(),
@@ -35318,6 +35323,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35318
35323
  contentUrl: external_exports2.string(),
35319
35324
  receipt: external_exports2.string().min(22).max(128).regex(/^[A-Za-z0-9_-]+$/)
35320
35325
  }).strict();
35326
+ var SKILL_ICON_MAX_NAMES_PER_REQUEST2 = 100;
35327
+ var SKILL_ICON_MAX_CHARACTERS_PER_REQUEST2 = 2500;
35328
+ var SkillIconNamesValidator2 = external_exports2.array(external_exports2.string().nonempty()).min(1).max(SKILL_ICON_MAX_NAMES_PER_REQUEST2, {
35329
+ message: `A maximum of ${SKILL_ICON_MAX_NAMES_PER_REQUEST2} skill names can be sent per request`
35330
+ }).refine(
35331
+ (names) => names.reduce((total, name) => total + name.length, 0) <= SKILL_ICON_MAX_CHARACTERS_PER_REQUEST2,
35332
+ {
35333
+ message: `Skill names may total at most ${SKILL_ICON_MAX_CHARACTERS_PER_REQUEST2} characters per request`
35334
+ }
35335
+ );
35336
+ var GenerateSkillIconsInputValidator2 = external_exports2.object({ names: SkillIconNamesValidator2 });
35321
35337
  }
35322
35338
  });
35323
35339
  var require_dist = __commonJS({
@@ -35660,6 +35676,14 @@ var ShareContentCanonicalizationError = (_a5 = class extends Error {
35660
35676
  this.name = "ShareContentCanonicalizationError";
35661
35677
  }
35662
35678
  }, __name(_a5, "ShareContentCanonicalizationError"), __name2(_a5, "ShareContentCanonicalizationError"), _a5);
35679
+ var _a6;
35680
+ var CredentialFieldError = (_a6 = class extends Error {
35681
+ constructor(field) {
35682
+ super(`Invalid standard credential field: ${field}`);
35683
+ this.field = field;
35684
+ this.name = "CredentialFieldError";
35685
+ }
35686
+ }, __name(_a6, "CredentialFieldError"), __name2(_a6, "CredentialFieldError"), _a6);
35663
35687
  var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
35664
35688
  if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
35665
35689
  return vc.boostCredential;
@@ -36082,6 +36106,7 @@ var AchievementSubjectValidator = external_exports.object({
36082
36106
  term: external_exports.string().optional()
36083
36107
  }).catchall(external_exports.any());
36084
36108
  var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
36109
+ awardedDate: external_exports.string().optional(),
36085
36110
  name: external_exports.string().optional(),
36086
36111
  description: external_exports.string().optional(),
36087
36112
  image: ImageValidator.optional(),
@@ -38283,23 +38308,23 @@ var CredentialActivityStatsValidator = external_exports.object({
38283
38308
  failed: external_exports.number(),
38284
38309
  claimRate: external_exports.number()
38285
38310
  });
38286
- var _a6;
38287
- var AuthSessionError = (_a6 = class extends Error {
38311
+ var _a7;
38312
+ var AuthSessionError = (_a7 = class extends Error {
38288
38313
  constructor(message, reason) {
38289
38314
  super(message);
38290
38315
  this.reason = reason;
38291
38316
  this.name = "AuthSessionError";
38292
38317
  }
38293
- }, __name(_a6, "AuthSessionError"), __name3(_a6, "AuthSessionError"), _a6);
38294
- var _a7;
38295
- var UnsupportedSignInOperationError = (_a7 = class extends Error {
38318
+ }, __name(_a7, "AuthSessionError"), __name3(_a7, "AuthSessionError"), _a7);
38319
+ var _a8;
38320
+ var UnsupportedSignInOperationError = (_a8 = class extends Error {
38296
38321
  constructor(operation, providerType) {
38297
38322
  super(`${operation} is not supported by ${providerType}`);
38298
38323
  this.operation = operation;
38299
38324
  this.providerType = providerType;
38300
38325
  this.name = "UnsupportedSignInOperationError";
38301
38326
  }
38302
- }, __name(_a7, "UnsupportedSignInOperationError"), __name3(_a7, "UnsupportedSignInOperationError"), _a7);
38327
+ }, __name(_a8, "UnsupportedSignInOperationError"), __name3(_a8, "UnsupportedSignInOperationError"), _a8);
38303
38328
  var EscrowPinStatusValidator = external_exports.object({
38304
38329
  state: external_exports.enum(["none", "enabled", "locked", "stale"]),
38305
38330
  enabled: external_exports.boolean(),
@@ -38909,6 +38934,17 @@ var ShareLinkPublicContentViewValidator = external_exports.object({
38909
38934
  contentUrl: external_exports.string(),
38910
38935
  receipt: external_exports.string().min(22).max(128).regex(/^[A-Za-z0-9_-]+$/)
38911
38936
  }).strict();
38937
+ var SKILL_ICON_MAX_NAMES_PER_REQUEST = 100;
38938
+ var SKILL_ICON_MAX_CHARACTERS_PER_REQUEST = 2500;
38939
+ var SkillIconNamesValidator = external_exports.array(external_exports.string().nonempty()).min(1).max(SKILL_ICON_MAX_NAMES_PER_REQUEST, {
38940
+ message: `A maximum of ${SKILL_ICON_MAX_NAMES_PER_REQUEST} skill names can be sent per request`
38941
+ }).refine(
38942
+ (names) => names.reduce((total, name) => total + name.length, 0) <= SKILL_ICON_MAX_CHARACTERS_PER_REQUEST,
38943
+ {
38944
+ message: `Skill names may total at most ${SKILL_ICON_MAX_CHARACTERS_PER_REQUEST} characters per request`
38945
+ }
38946
+ );
38947
+ var GenerateSkillIconsInputValidator = external_exports.object({ names: SkillIconNamesValidator });
38912
38948
 
38913
38949
  // src/read.ts
38914
38950
  var isTemplateRenderMethod = /* @__PURE__ */ __name((rm) => TemplateRenderMethodValidator.safeParse(rm).success, "isTemplateRenderMethod");