@learncard/core 8.5.3 → 8.5.5
Sign up to get free protection for your applications and to get access to all the features.
package/dist/core.esm.js
CHANGED
@@ -52658,7 +52658,8 @@ var LCNProfileValidator = mod.object({
|
|
52658
52658
|
did: mod.string(),
|
52659
52659
|
email: mod.string().optional(),
|
52660
52660
|
image: mod.string().optional(),
|
52661
|
-
isServiceProfile: mod.boolean().default(false).optional()
|
52661
|
+
isServiceProfile: mod.boolean().default(false).optional(),
|
52662
|
+
notificationsWebhook: mod.string().url().startsWith("https://").optional()
|
52662
52663
|
});
|
52663
52664
|
var LCNProfileConnectionStatusEnum = mod.enum([
|
52664
52665
|
"CONNECTED",
|
@@ -52684,6 +52685,47 @@ var BoostRecipientValidator = mod.object({
|
|
52684
52685
|
from: mod.string(),
|
52685
52686
|
received: mod.string()
|
52686
52687
|
});
|
52688
|
+
var LCNNotificationTypeEnumValidator = mod.enum([
|
52689
|
+
"CONNECTION_REQUEST",
|
52690
|
+
"CONNECTION_ACCEPTED",
|
52691
|
+
"CREDENTIAL_RECEIVED",
|
52692
|
+
"CREDENTIAL_ACCEPTED",
|
52693
|
+
"BOOST_RECEIVED",
|
52694
|
+
"BOOST_ACCEPTED",
|
52695
|
+
"PRESENTATION_REQUEST",
|
52696
|
+
"PRESENTATION_RECEIVED"
|
52697
|
+
]);
|
52698
|
+
var LCNNotificationMessageValidator = mod.object({
|
52699
|
+
title: mod.string().optional(),
|
52700
|
+
body: mod.string().optional()
|
52701
|
+
});
|
52702
|
+
var LCNNotificationDataValidator = mod.object({
|
52703
|
+
vcUris: mod.array(mod.string()).optional(),
|
52704
|
+
vpUris: mod.array(mod.string()).optional()
|
52705
|
+
});
|
52706
|
+
var LCNNotificationValidator = mod.object({
|
52707
|
+
type: LCNNotificationTypeEnumValidator,
|
52708
|
+
to: mod.string().or(LCNProfileValidator),
|
52709
|
+
from: mod.string().or(LCNProfileValidator),
|
52710
|
+
message: LCNNotificationMessageValidator.optional(),
|
52711
|
+
data: LCNNotificationDataValidator.optional(),
|
52712
|
+
sent: mod.string().datetime().optional()
|
52713
|
+
});
|
52714
|
+
var LCNBoostClaimLinkSigningAuthorityValidator = mod.object({
|
52715
|
+
endpoint: mod.string(),
|
52716
|
+
name: mod.string(),
|
52717
|
+
did: mod.string().optional()
|
52718
|
+
});
|
52719
|
+
var LCNSigningAuthorityValidator = mod.object({
|
52720
|
+
endpoint: mod.string()
|
52721
|
+
});
|
52722
|
+
var LCNSigningAuthorityForUserValidator = mod.object({
|
52723
|
+
signingAuthority: LCNSigningAuthorityValidator,
|
52724
|
+
relationship: mod.object({
|
52725
|
+
name: mod.string(),
|
52726
|
+
did: mod.string()
|
52727
|
+
})
|
52728
|
+
});
|
52687
52729
|
var JWKValidator = mod.object({
|
52688
52730
|
kty: mod.string(),
|
52689
52731
|
crv: mod.string(),
|
@@ -54560,7 +54602,7 @@ var getVCPlugin = /* @__PURE__ */ __name((learnCard) => {
|
|
54560
54602
|
};
|
54561
54603
|
},
|
54562
54604
|
getDidAuthVp: async (_learnCard, options = {}) => {
|
54563
|
-
const did = _learnCard.
|
54605
|
+
const did = _learnCard.id.did();
|
54564
54606
|
const unsignedVP = {
|
54565
54607
|
"@context": ["https://www.w3.org/2018/credentials/v1"],
|
54566
54608
|
type: ["VerifiablePresentation"],
|