@learncard/sss-key-manager 0.1.17 → 0.1.18
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/sss-key-manager.cjs.development.js +121 -2
- package/dist/sss-key-manager.cjs.development.js.map +2 -2
- package/dist/sss-key-manager.cjs.production.min.js +20 -20
- package/dist/sss-key-manager.cjs.production.min.js.map +3 -3
- package/dist/sss-key-manager.esm.js +121 -2
- package/dist/sss-key-manager.esm.js.map +2 -2
- package/package.json +2 -2
|
@@ -155,6 +155,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
155
155
|
DeleteFrameworkInputValidator: /* @__PURE__ */ __name(() => DeleteFrameworkInputValidator, "DeleteFrameworkInputValidator"),
|
|
156
156
|
DeleteSkillInputValidator: /* @__PURE__ */ __name(() => DeleteSkillInputValidator, "DeleteSkillInputValidator"),
|
|
157
157
|
DidDocumentValidator: /* @__PURE__ */ __name(() => DidDocumentValidator, "DidDocumentValidator"),
|
|
158
|
+
EMPTY_IN_APP_MESSAGES_FLAG: /* @__PURE__ */ __name(() => EMPTY_IN_APP_MESSAGES_FLAG, "EMPTY_IN_APP_MESSAGES_FLAG"),
|
|
158
159
|
EncryptedCredentialRecordValidator: /* @__PURE__ */ __name(() => EncryptedCredentialRecordValidator, "EncryptedCredentialRecordValidator"),
|
|
159
160
|
EncryptedRecordValidator: /* @__PURE__ */ __name(() => EncryptedRecordValidator, "EncryptedRecordValidator"),
|
|
160
161
|
EndorsementCredentialValidator: /* @__PURE__ */ __name(() => EndorsementCredentialValidator, "EndorsementCredentialValidator"),
|
|
@@ -313,7 +314,28 @@ var require_types_cjs_development = __commonJS({
|
|
|
313
314
|
VerificationMethodValidator: /* @__PURE__ */ __name(() => VerificationMethodValidator, "VerificationMethodValidator"),
|
|
314
315
|
VerificationStatusEnum: /* @__PURE__ */ __name(() => VerificationStatusEnum, "VerificationStatusEnum"),
|
|
315
316
|
VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator"),
|
|
316
|
-
|
|
317
|
+
appStoreActionValidator: /* @__PURE__ */ __name(() => appStoreActionValidator, "appStoreActionValidator"),
|
|
318
|
+
capgoUpdateActionValidator: /* @__PURE__ */ __name(() => capgoUpdateActionValidator, "capgoUpdateActionValidator"),
|
|
319
|
+
dismissActionValidator: /* @__PURE__ */ __name(() => dismissActionValidator, "dismissActionValidator"),
|
|
320
|
+
externalLinkActionValidator: /* @__PURE__ */ __name(() => externalLinkActionValidator, "externalLinkActionValidator"),
|
|
321
|
+
inAppMessageActionStyleValidator: /* @__PURE__ */ __name(() => inAppMessageActionStyleValidator, "inAppMessageActionStyleValidator"),
|
|
322
|
+
inAppMessageActionTargetValidator: /* @__PURE__ */ __name(() => inAppMessageActionTargetValidator, "inAppMessageActionTargetValidator"),
|
|
323
|
+
inAppMessageActionValidator: /* @__PURE__ */ __name(() => inAppMessageActionValidator, "inAppMessageActionValidator"),
|
|
324
|
+
inAppMessageFrequencyValidator: /* @__PURE__ */ __name(() => inAppMessageFrequencyValidator, "inAppMessageFrequencyValidator"),
|
|
325
|
+
inAppMessageMediaValidator: /* @__PURE__ */ __name(() => inAppMessageMediaValidator, "inAppMessageMediaValidator"),
|
|
326
|
+
inAppMessagePlatformValidator: /* @__PURE__ */ __name(() => inAppMessagePlatformValidator, "inAppMessagePlatformValidator"),
|
|
327
|
+
inAppMessagePredicateValidator: /* @__PURE__ */ __name(() => inAppMessagePredicateValidator, "inAppMessagePredicateValidator"),
|
|
328
|
+
inAppMessagePresentationValidator: /* @__PURE__ */ __name(() => inAppMessagePresentationValidator, "inAppMessagePresentationValidator"),
|
|
329
|
+
inAppMessageValidator: /* @__PURE__ */ __name(() => inAppMessageValidator, "inAppMessageValidator"),
|
|
330
|
+
inAppMessageVersionOpValidator: /* @__PURE__ */ __name(() => inAppMessageVersionOpValidator, "inAppMessageVersionOpValidator"),
|
|
331
|
+
inAppMessageVersionSourceValidator: /* @__PURE__ */ __name(() => inAppMessageVersionSourceValidator, "inAppMessageVersionSourceValidator"),
|
|
332
|
+
inAppMessagesFlagValidator: /* @__PURE__ */ __name(() => inAppMessagesFlagValidator, "inAppMessagesFlagValidator"),
|
|
333
|
+
internalLinkActionValidator: /* @__PURE__ */ __name(() => internalLinkActionValidator, "internalLinkActionValidator"),
|
|
334
|
+
isStoredCredentialEnvelope: /* @__PURE__ */ __name(() => isStoredCredentialEnvelope, "isStoredCredentialEnvelope"),
|
|
335
|
+
parseInAppMessagesFlag: /* @__PURE__ */ __name(() => parseInAppMessagesFlag, "parseInAppMessagesFlag"),
|
|
336
|
+
platformPredicateValidator: /* @__PURE__ */ __name(() => platformPredicateValidator, "platformPredicateValidator"),
|
|
337
|
+
rolePredicateValidator: /* @__PURE__ */ __name(() => rolePredicateValidator, "rolePredicateValidator"),
|
|
338
|
+
versionPredicateValidator: /* @__PURE__ */ __name(() => versionPredicateValidator, "versionPredicateValidator")
|
|
317
339
|
});
|
|
318
340
|
module2.exports = __toCommonJS2(index_exports2);
|
|
319
341
|
var external_exports = {};
|
|
@@ -16186,6 +16208,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16186
16208
|
role: external_exports.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),
|
|
16187
16209
|
dob: external_exports.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),
|
|
16188
16210
|
country: external_exports.string().optional().describe("Country for the profile."),
|
|
16211
|
+
locale: external_exports.string().optional().describe(
|
|
16212
|
+
"BCP-47 language tag (e.g. 'es', 'fr', 'ar') \u2014 the user's preferred language for server-sent notifications and emails."
|
|
16213
|
+
),
|
|
16189
16214
|
approved: external_exports.boolean().optional().describe("Approval status for the profile.")
|
|
16190
16215
|
});
|
|
16191
16216
|
var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
@@ -16731,7 +16756,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16731
16756
|
"GUARDIAN_APPROVAL_PENDING",
|
|
16732
16757
|
"GUARDIAN_APPROVED",
|
|
16733
16758
|
"GUARDIAN_REJECTED",
|
|
16734
|
-
"APP_NOTIFICATION"
|
|
16759
|
+
"APP_NOTIFICATION",
|
|
16760
|
+
"CREDENTIAL_REVOKED",
|
|
16761
|
+
"CREDENTIAL_SUSPENDED",
|
|
16762
|
+
"CREDENTIAL_UNSUSPENDED"
|
|
16735
16763
|
]);
|
|
16736
16764
|
var LCNNotificationMessageValidator = external_exports.object({
|
|
16737
16765
|
title: external_exports.string().optional(),
|
|
@@ -17528,6 +17556,97 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17528
17556
|
statusPurposes: external_exports.array(BitstringStatusPurposeValidator).optional(),
|
|
17529
17557
|
listSize: external_exports.number().int().positive().optional()
|
|
17530
17558
|
}).default({});
|
|
17559
|
+
var inAppMessagePlatformValidator = external_exports.enum(["ios", "android", "web"]);
|
|
17560
|
+
var inAppMessageVersionSourceValidator = external_exports.enum(["native", "web", "capgo"]);
|
|
17561
|
+
var inAppMessageVersionOpValidator = external_exports.enum(["lt", "lte", "eq", "gte", "gt"]);
|
|
17562
|
+
var platformPredicateValidator = external_exports.object({ platform: external_exports.array(inAppMessagePlatformValidator).nonempty() }).strict();
|
|
17563
|
+
var rolePredicateValidator = external_exports.object({ role: external_exports.array(external_exports.string()).nonempty() }).strict();
|
|
17564
|
+
var versionPredicateValidator = external_exports.object({
|
|
17565
|
+
version: external_exports.object({
|
|
17566
|
+
source: inAppMessageVersionSourceValidator,
|
|
17567
|
+
op: inAppMessageVersionOpValidator,
|
|
17568
|
+
value: external_exports.string()
|
|
17569
|
+
}).strict()
|
|
17570
|
+
}).strict();
|
|
17571
|
+
var inAppMessagePredicateValidator = external_exports.lazy(
|
|
17572
|
+
() => external_exports.union([
|
|
17573
|
+
platformPredicateValidator,
|
|
17574
|
+
rolePredicateValidator,
|
|
17575
|
+
versionPredicateValidator,
|
|
17576
|
+
external_exports.object({ all: external_exports.array(inAppMessagePredicateValidator) }).strict(),
|
|
17577
|
+
external_exports.object({ any: external_exports.array(inAppMessagePredicateValidator) }).strict(),
|
|
17578
|
+
external_exports.object({ not: inAppMessagePredicateValidator }).strict()
|
|
17579
|
+
])
|
|
17580
|
+
);
|
|
17581
|
+
var inAppMessageActionStyleValidator = external_exports.enum(["primary", "secondary", "positive", "dismiss"]).default("secondary");
|
|
17582
|
+
var internalLinkActionValidator = external_exports.object({ type: external_exports.literal("internalLink"), path: external_exports.string() }).passthrough();
|
|
17583
|
+
var externalLinkActionValidator = external_exports.object({ type: external_exports.literal("externalLink"), url: external_exports.string() }).passthrough();
|
|
17584
|
+
var appStoreActionValidator = external_exports.object({
|
|
17585
|
+
type: external_exports.literal("appStore"),
|
|
17586
|
+
iosUrl: external_exports.string().optional(),
|
|
17587
|
+
androidUrl: external_exports.string().optional(),
|
|
17588
|
+
webUrl: external_exports.string().optional()
|
|
17589
|
+
}).passthrough();
|
|
17590
|
+
var capgoUpdateActionValidator = external_exports.object({ type: external_exports.literal("capgoUpdate") }).passthrough();
|
|
17591
|
+
var dismissActionValidator = external_exports.object({ type: external_exports.literal("dismiss") }).passthrough();
|
|
17592
|
+
var inAppMessageActionTargetValidator = external_exports.union([
|
|
17593
|
+
internalLinkActionValidator,
|
|
17594
|
+
externalLinkActionValidator,
|
|
17595
|
+
appStoreActionValidator,
|
|
17596
|
+
capgoUpdateActionValidator,
|
|
17597
|
+
dismissActionValidator
|
|
17598
|
+
]);
|
|
17599
|
+
var inAppMessageActionValidator = external_exports.object({
|
|
17600
|
+
label: external_exports.string(),
|
|
17601
|
+
style: inAppMessageActionStyleValidator,
|
|
17602
|
+
action: inAppMessageActionTargetValidator,
|
|
17603
|
+
/** When true, the message closes after this action runs (default true). */
|
|
17604
|
+
closeOnComplete: external_exports.boolean().default(true)
|
|
17605
|
+
}).passthrough();
|
|
17606
|
+
var inAppMessageMediaValidator = external_exports.object({
|
|
17607
|
+
type: external_exports.enum(["youtube", "image", "gif"]),
|
|
17608
|
+
url: external_exports.string(),
|
|
17609
|
+
/** Aspect ratio hint, e.g. "16:9" or "1:1". Defaults to 16:9. */
|
|
17610
|
+
aspect: external_exports.string().default("16:9"),
|
|
17611
|
+
/** Alt text for images/gifs (accessibility). */
|
|
17612
|
+
alt: external_exports.string().optional()
|
|
17613
|
+
}).passthrough();
|
|
17614
|
+
var inAppMessageFrequencyValidator = external_exports.union([
|
|
17615
|
+
external_exports.literal("once"),
|
|
17616
|
+
external_exports.literal("session"),
|
|
17617
|
+
external_exports.literal("always"),
|
|
17618
|
+
external_exports.object({ everyDays: external_exports.number().positive() }).strict()
|
|
17619
|
+
]).default("once");
|
|
17620
|
+
var inAppMessagePresentationValidator = external_exports.enum(["modal", "banner", "toast"]).default("modal");
|
|
17621
|
+
var inAppMessageValidator = external_exports.object({
|
|
17622
|
+
/** Stable identifier — used to persist dismissal / frequency state. */
|
|
17623
|
+
id: external_exports.string(),
|
|
17624
|
+
/** Higher priority wins when multiple messages match. Default 0. */
|
|
17625
|
+
priority: external_exports.number().default(0),
|
|
17626
|
+
/** When false, the message is required/blocking (no dismiss affordance). */
|
|
17627
|
+
dismissible: external_exports.boolean().default(true),
|
|
17628
|
+
frequency: inAppMessageFrequencyValidator,
|
|
17629
|
+
presentation: inAppMessagePresentationValidator,
|
|
17630
|
+
media: inAppMessageMediaValidator.optional(),
|
|
17631
|
+
/** Optional emoji hero glyph — rendered only when `media` is not set. */
|
|
17632
|
+
emoji: external_exports.string().optional(),
|
|
17633
|
+
title: external_exports.string(),
|
|
17634
|
+
body: external_exports.string().optional(),
|
|
17635
|
+
actions: external_exports.array(inAppMessageActionValidator).default([]),
|
|
17636
|
+
/** Targeting predicate tree. Omitted → matches everyone. */
|
|
17637
|
+
targeting: inAppMessagePredicateValidator.optional(),
|
|
17638
|
+
/** Allow disabling a message without removing it from the flag. */
|
|
17639
|
+
enabled: external_exports.boolean().default(true)
|
|
17640
|
+
}).passthrough();
|
|
17641
|
+
var inAppMessagesFlagValidator = external_exports.object({
|
|
17642
|
+
version: external_exports.number().default(1),
|
|
17643
|
+
messages: external_exports.array(inAppMessageValidator).default([])
|
|
17644
|
+
}).passthrough();
|
|
17645
|
+
var EMPTY_IN_APP_MESSAGES_FLAG = { version: 1, messages: [] };
|
|
17646
|
+
var parseInAppMessagesFlag = /* @__PURE__ */ __name2((raw) => {
|
|
17647
|
+
const result = inAppMessagesFlagValidator.safeParse(raw);
|
|
17648
|
+
return result.success ? result.data : EMPTY_IN_APP_MESSAGES_FLAG;
|
|
17649
|
+
}, "parseInAppMessagesFlag");
|
|
17531
17650
|
}
|
|
17532
17651
|
});
|
|
17533
17652
|
|