@learncard/core 8.5.2 → 8.5.4

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.
@@ -46025,6 +46025,7 @@ __export(src_exports2, {
46025
46025
  getDidKitPlugin: () => getDidKitPlugin,
46026
46026
  getEthereumPlugin: () => getEthereumPlugin,
46027
46027
  getIDXPlugin: () => getIDXPlugin,
46028
+ getLearnCardPlugin: () => getLearnCardPlugin,
46028
46029
  getTestCache: () => getTestCache,
46029
46030
  getTestStorage: () => getTestStorage,
46030
46031
  getVCAPIPlugin: () => getVCAPIPlugin,
@@ -52683,7 +52684,8 @@ var LCNProfileValidator = mod.object({
52683
52684
  did: mod.string(),
52684
52685
  email: mod.string().optional(),
52685
52686
  image: mod.string().optional(),
52686
- isServiceProfile: mod.boolean().default(false).optional()
52687
+ isServiceProfile: mod.boolean().default(false).optional(),
52688
+ notificationsWebhook: mod.string().url().startsWith("https://").optional()
52687
52689
  });
52688
52690
  var LCNProfileConnectionStatusEnum = mod.enum([
52689
52691
  "CONNECTED",
@@ -52709,6 +52711,32 @@ var BoostRecipientValidator = mod.object({
52709
52711
  from: mod.string(),
52710
52712
  received: mod.string()
52711
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
+ });
52712
52740
  var JWKValidator = mod.object({
52713
52741
  kty: mod.string(),
52714
52742
  crv: mod.string(),
@@ -54585,7 +54613,7 @@ var getVCPlugin = /* @__PURE__ */ __name((learnCard) => {
54585
54613
  };
54586
54614
  },
54587
54615
  getDidAuthVp: async (_learnCard, options = {}) => {
54588
- const did = _learnCard.invoke.getSubjectDid("key");
54616
+ const did = _learnCard.id.did();
54589
54617
  const unsignedVP = {
54590
54618
  "@context": ["https://www.w3.org/2018/credentials/v1"],
54591
54619
  type: ["VerifiablePresentation"],