@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.
@@ -10496,6 +10496,14 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
10496
10496
  verifyConsent: async (_learnCard, uri, profileId) => {
10497
10497
  return client.contracts.verifyConsent.query({ uri, profileId });
10498
10498
  },
10499
+ syncCredentialsToContract: async (_learnCard, termsUri, categories) => {
10500
+ if (!userData)
10501
+ throw new Error("Please make an account first!");
10502
+ return client.contracts.syncCredentialsToContract.mutate({
10503
+ termsUri,
10504
+ categories
10505
+ });
10506
+ },
10499
10507
  addDidMetadata: async (_learnCard, metadata) => {
10500
10508
  if (!userData)
10501
10509
  throw new Error("Please make an account first!");