@learncard/types 5.23.1 → 5.23.2
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/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/obv3.d.ts +2 -0
- package/dist/obv3.d.ts.map +1 -1
- package/dist/skillIcons.d.ts +18 -0
- package/dist/skillIcons.d.ts.map +1 -0
- package/dist/types.cjs.development.cjs +18 -0
- package/dist/types.cjs.development.cjs.map +3 -3
- package/dist/types.cjs.production.min.cjs +6 -6
- package/dist/types.cjs.production.min.cjs.map +4 -4
- package/dist/types.esm.js +19 -0
- package/dist/types.esm.js.map +4 -4
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/obv3.ts +1 -0
- package/src/skillIcons.ts +31 -0
package/dist/types.esm.js
CHANGED
|
@@ -425,6 +425,7 @@ var AchievementSubjectValidator = z4.object({
|
|
|
425
425
|
term: z4.string().optional()
|
|
426
426
|
}).catchall(z4.any());
|
|
427
427
|
var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
|
|
428
|
+
awardedDate: z4.string().optional(),
|
|
428
429
|
name: z4.string().optional(),
|
|
429
430
|
description: z4.string().optional(),
|
|
430
431
|
image: ImageValidator.optional(),
|
|
@@ -3315,6 +3316,20 @@ var ShareLinkPublicContentViewValidator = z16.object({
|
|
|
3315
3316
|
contentUrl: z16.string(),
|
|
3316
3317
|
receipt: z16.string().min(22).max(128).regex(/^[A-Za-z0-9_-]+$/)
|
|
3317
3318
|
}).strict();
|
|
3319
|
+
|
|
3320
|
+
// src/skillIcons.ts
|
|
3321
|
+
import { z as z17 } from "zod";
|
|
3322
|
+
var SKILL_ICON_MAX_NAMES_PER_REQUEST = 100;
|
|
3323
|
+
var SKILL_ICON_MAX_CHARACTERS_PER_REQUEST = 2500;
|
|
3324
|
+
var SkillIconNamesValidator = z17.array(z17.string().nonempty()).min(1).max(SKILL_ICON_MAX_NAMES_PER_REQUEST, {
|
|
3325
|
+
message: `A maximum of ${SKILL_ICON_MAX_NAMES_PER_REQUEST} skill names can be sent per request`
|
|
3326
|
+
}).refine(
|
|
3327
|
+
(names) => names.reduce((total, name) => total + name.length, 0) <= SKILL_ICON_MAX_CHARACTERS_PER_REQUEST,
|
|
3328
|
+
{
|
|
3329
|
+
message: `Skill names may total at most ${SKILL_ICON_MAX_CHARACTERS_PER_REQUEST} characters per request`
|
|
3330
|
+
}
|
|
3331
|
+
);
|
|
3332
|
+
var GenerateSkillIconsInputValidator = z17.object({ names: SkillIconNamesValidator });
|
|
3318
3333
|
export {
|
|
3319
3334
|
ACT_AS_HEADER,
|
|
3320
3335
|
AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX,
|
|
@@ -3462,6 +3477,7 @@ export {
|
|
|
3462
3477
|
FlatAuthGrantValidator,
|
|
3463
3478
|
FrameworkWithSkillsValidator,
|
|
3464
3479
|
FullClaimHookValidator,
|
|
3480
|
+
GenerateSkillIconsInputValidator,
|
|
3465
3481
|
GeoCoordinatesValidator,
|
|
3466
3482
|
GetCounterEventValidator,
|
|
3467
3483
|
GetCountersEventValidator,
|
|
@@ -3622,6 +3638,8 @@ export {
|
|
|
3622
3638
|
SHARE_RECOVERY_PROTOCOL,
|
|
3623
3639
|
SHARE_TAG_BYTES,
|
|
3624
3640
|
SHARE_VIEW_RECEIPT_TTL_SECONDS,
|
|
3641
|
+
SKILL_ICON_MAX_CHARACTERS_PER_REQUEST,
|
|
3642
|
+
SKILL_ICON_MAX_NAMES_PER_REQUEST,
|
|
3625
3643
|
SendAiSessionCredentialEventValidator,
|
|
3626
3644
|
SendBoostInputValidator,
|
|
3627
3645
|
SendBoostResponseValidator,
|
|
@@ -3674,6 +3692,7 @@ export {
|
|
|
3674
3692
|
SkillFrameworkQueryValidator,
|
|
3675
3693
|
SkillFrameworkStatusEnum,
|
|
3676
3694
|
SkillFrameworkValidator,
|
|
3695
|
+
SkillIconNamesValidator,
|
|
3677
3696
|
SkillQueryValidator,
|
|
3678
3697
|
SkillSemanticSearchInputValidator,
|
|
3679
3698
|
SkillSemanticSearchResultItemValidator,
|