@learncard/core 8.5.2 → 8.5.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/core.cjs.development.js +30 -2
- package/dist/core.cjs.development.js.map +2 -2
- package/dist/core.cjs.production.min.js +31 -31
- package/dist/core.cjs.production.min.js.map +3 -3
- package/dist/core.esm.js +30 -2
- package/dist/core.esm.js.map +2 -2
- package/dist/wallet/plugins/index.d.ts +1 -0
- package/package.json +5 -5
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,32 @@ 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
|
+
});
|
52687
52714
|
var JWKValidator = mod.object({
|
52688
52715
|
kty: mod.string(),
|
52689
52716
|
crv: mod.string(),
|
@@ -54560,7 +54587,7 @@ var getVCPlugin = /* @__PURE__ */ __name((learnCard) => {
|
|
54560
54587
|
};
|
54561
54588
|
},
|
54562
54589
|
getDidAuthVp: async (_learnCard, options = {}) => {
|
54563
|
-
const did = _learnCard.
|
54590
|
+
const did = _learnCard.id.did();
|
54564
54591
|
const unsignedVP = {
|
54565
54592
|
"@context": ["https://www.w3.org/2018/credentials/v1"],
|
54566
54593
|
type: ["VerifiablePresentation"],
|
@@ -72085,6 +72112,7 @@ export {
|
|
72085
72112
|
getDidKitPlugin,
|
72086
72113
|
getEthereumPlugin,
|
72087
72114
|
getIDXPlugin,
|
72115
|
+
getLearnCardPlugin,
|
72088
72116
|
getTestCache,
|
72089
72117
|
getTestStorage,
|
72090
72118
|
getVCAPIPlugin,
|