@learncard/network-plugin 2.4.29 → 2.4.30

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.
@@ -5390,7 +5390,8 @@ var require_helpers_cjs_development = __commonJS({
5390
5390
  createdAt: mod2.string(),
5391
5391
  updatedAt: mod2.string(),
5392
5392
  expiresAt: mod2.string().optional(),
5393
- autoBoosts: mod2.string().array().optional()
5393
+ autoBoosts: mod2.string().array().optional(),
5394
+ writers: mod2.array(LCNProfileValidator2).optional()
5394
5395
  });
5395
5396
  var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
5396
5397
  records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
@@ -5431,7 +5432,8 @@ var require_helpers_cjs_development = __commonJS({
5431
5432
  write: mod2.object({
5432
5433
  credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
5433
5434
  personal: mod2.record(mod2.boolean()).default({})
5434
- }).default({})
5435
+ }).default({}),
5436
+ deniedWriters: mod2.array(mod2.string()).optional()
5435
5437
  });
5436
5438
  var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
5437
5439
  records: mod2.object({
@@ -9709,7 +9711,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
9709
9711
  createdAt: mod.string(),
9710
9712
  updatedAt: mod.string(),
9711
9713
  expiresAt: mod.string().optional(),
9712
- autoBoosts: mod.string().array().optional()
9714
+ autoBoosts: mod.string().array().optional(),
9715
+ writers: mod.array(LCNProfileValidator).optional()
9713
9716
  });
9714
9717
  var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
9715
9718
  records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
@@ -9750,7 +9753,8 @@ var ConsentFlowTermsValidator = mod.object({
9750
9753
  write: mod.object({
9751
9754
  credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
9752
9755
  personal: mod.record(mod.boolean()).default({})
9753
- }).default({})
9756
+ }).default({}),
9757
+ deniedWriters: mod.array(mod.string()).optional()
9754
9758
  });
9755
9759
  var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
9756
9760
  records: mod.object({
@@ -10496,6 +10500,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
10496
10500
  throw new Error("Please make an account first!");
10497
10501
  return client.contracts.createConsentFlowContract.mutate(contract);
10498
10502
  },
10503
+ addAutoBoostsToContract: async (_learnCard, contractUri, autoboosts) => {
10504
+ if (!userData)
10505
+ throw new Error("Please make an account first!");
10506
+ return client.contracts.addAutoBoostsToContract.mutate({ contractUri, autoboosts });
10507
+ },
10508
+ removeAutoBoostsFromContract: async (_learnCard, contractUri, boostUris) => {
10509
+ if (!userData)
10510
+ throw new Error("Please make an account first!");
10511
+ return client.contracts.removeAutoBoostsFromContract.mutate({
10512
+ contractUri,
10513
+ boostUris
10514
+ });
10515
+ },
10499
10516
  getContract: async (_learnCard, uri) => {
10500
10517
  return client.contracts.getConsentFlowContract.query({ uri });
10501
10518
  },