@learncard/core 8.5.3 → 8.5.5

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.
@@ -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,47 @@ 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
+ });
52740
+ var LCNBoostClaimLinkSigningAuthorityValidator = mod.object({
52741
+ endpoint: mod.string(),
52742
+ name: mod.string(),
52743
+ did: mod.string().optional()
52744
+ });
52745
+ var LCNSigningAuthorityValidator = mod.object({
52746
+ endpoint: mod.string()
52747
+ });
52748
+ var LCNSigningAuthorityForUserValidator = mod.object({
52749
+ signingAuthority: LCNSigningAuthorityValidator,
52750
+ relationship: mod.object({
52751
+ name: mod.string(),
52752
+ did: mod.string()
52753
+ })
52754
+ });
52713
52755
  var JWKValidator = mod.object({
52714
52756
  kty: mod.string(),
52715
52757
  crv: mod.string(),
@@ -54586,7 +54628,7 @@ var getVCPlugin = /* @__PURE__ */ __name((learnCard) => {
54586
54628
  };
54587
54629
  },
54588
54630
  getDidAuthVp: async (_learnCard, options = {}) => {
54589
- const did = _learnCard.invoke.getSubjectDid("key");
54631
+ const did = _learnCard.id.did();
54590
54632
  const unsignedVP = {
54591
54633
  "@context": ["https://www.w3.org/2018/credentials/v1"],
54592
54634
  type: ["VerifiablePresentation"],