@learncard/network-plugin 1.2.2 → 1.3.0

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.
@@ -12522,6 +12522,12 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
12522
12522
  resolveFromLCN: async (_learnCard, uri) => {
12523
12523
  const result = await client.storage.resolve.query({ uri });
12524
12524
  return UnsignedVCValidator.or(VCValidator).or(VPValidator).or(JWEValidator).parseAsync(result);
12525
+ },
12526
+ registerDeviceForPush: async (_learnCard, deviceToken) => {
12527
+ return client.profile.registerDeviceForPush.mutate({ deviceToken });
12528
+ },
12529
+ unregisterDeviceForPush: async (_learnCard, deviceToken) => {
12530
+ return client.profile.unregisterDeviceForPush.mutate({ deviceToken });
12525
12531
  }
12526
12532
  }
12527
12533
  };