@learncard/core 8.5.3 → 8.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -52684,7 +52684,8 @@ var LCNProfileValidator = mod.object({
52684
52684
  did: mod.string(),
52685
52685
  email: mod.string().optional(),
52686
52686
  image: mod.string().optional(),
52687
- isServiceProfile: mod.boolean().default(false).optional()
52687
+ isServiceProfile: mod.boolean().default(false).optional(),
52688
+ notificationsWebhook: mod.string().url().startsWith("https://").optional()
52688
52689
  });
52689
52690
  var LCNProfileConnectionStatusEnum = mod.enum([
52690
52691
  "CONNECTED",
@@ -52710,6 +52711,32 @@ var BoostRecipientValidator = mod.object({
52710
52711
  from: mod.string(),
52711
52712
  received: mod.string()
52712
52713
  });
52714
+ var LCNNotificationTypeEnumValidator = mod.enum([
52715
+ "CONNECTION_REQUEST",
52716
+ "CONNECTION_ACCEPTED",
52717
+ "CREDENTIAL_RECEIVED",
52718
+ "CREDENTIAL_ACCEPTED",
52719
+ "BOOST_RECEIVED",
52720
+ "BOOST_ACCEPTED",
52721
+ "PRESENTATION_REQUEST",
52722
+ "PRESENTATION_RECEIVED"
52723
+ ]);
52724
+ var LCNNotificationMessageValidator = mod.object({
52725
+ title: mod.string().optional(),
52726
+ body: mod.string().optional()
52727
+ });
52728
+ var LCNNotificationDataValidator = mod.object({
52729
+ vcUris: mod.array(mod.string()).optional(),
52730
+ vpUris: mod.array(mod.string()).optional()
52731
+ });
52732
+ var LCNNotificationValidator = mod.object({
52733
+ type: LCNNotificationTypeEnumValidator,
52734
+ to: mod.string().or(LCNProfileValidator),
52735
+ from: mod.string().or(LCNProfileValidator),
52736
+ message: LCNNotificationMessageValidator.optional(),
52737
+ data: LCNNotificationDataValidator.optional(),
52738
+ sent: mod.string().datetime().optional()
52739
+ });
52713
52740
  var JWKValidator = mod.object({
52714
52741
  kty: mod.string(),
52715
52742
  crv: mod.string(),
@@ -54586,7 +54613,7 @@ var getVCPlugin = /* @__PURE__ */ __name((learnCard) => {
54586
54613
  };
54587
54614
  },
54588
54615
  getDidAuthVp: async (_learnCard, options = {}) => {
54589
- const did = _learnCard.invoke.getSubjectDid("key");
54616
+ const did = _learnCard.id.did();
54590
54617
  const unsignedVP = {
54591
54618
  "@context": ["https://www.w3.org/2018/credentials/v1"],
54592
54619
  type: ["VerifiablePresentation"],