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