@learncard/network-plugin 2.4.19 → 2.4.20

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.
@@ -10521,6 +10521,14 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
10521
10521
  verifyConsent: async (_learnCard, uri, profileId) => {
10522
10522
  return client.contracts.verifyConsent.query({ uri, profileId });
10523
10523
  },
10524
+ syncCredentialsToContract: async (_learnCard, termsUri, categories) => {
10525
+ if (!userData)
10526
+ throw new Error("Please make an account first!");
10527
+ return client.contracts.syncCredentialsToContract.mutate({
10528
+ termsUri,
10529
+ categories
10530
+ });
10531
+ },
10524
10532
  addDidMetadata: async (_learnCard, metadata) => {
10525
10533
  if (!userData)
10526
10534
  throw new Error("Please make an account first!");