@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.
@@ -5365,7 +5365,8 @@ var require_helpers_cjs_development = __commonJS({
5365
5365
  createdAt: mod2.string(),
5366
5366
  updatedAt: mod2.string(),
5367
5367
  expiresAt: mod2.string().optional(),
5368
- autoBoosts: mod2.string().array().optional()
5368
+ autoBoosts: mod2.string().array().optional(),
5369
+ writers: mod2.array(LCNProfileValidator2).optional()
5369
5370
  });
5370
5371
  var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
5371
5372
  records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
@@ -5406,7 +5407,8 @@ var require_helpers_cjs_development = __commonJS({
5406
5407
  write: mod2.object({
5407
5408
  credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
5408
5409
  personal: mod2.record(mod2.boolean()).default({})
5409
- }).default({})
5410
+ }).default({}),
5411
+ deniedWriters: mod2.array(mod2.string()).optional()
5410
5412
  });
5411
5413
  var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
5412
5414
  records: mod2.object({
@@ -9684,7 +9686,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
9684
9686
  createdAt: mod.string(),
9685
9687
  updatedAt: mod.string(),
9686
9688
  expiresAt: mod.string().optional(),
9687
- autoBoosts: mod.string().array().optional()
9689
+ autoBoosts: mod.string().array().optional(),
9690
+ writers: mod.array(LCNProfileValidator).optional()
9688
9691
  });
9689
9692
  var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
9690
9693
  records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
@@ -9725,7 +9728,8 @@ var ConsentFlowTermsValidator = mod.object({
9725
9728
  write: mod.object({
9726
9729
  credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
9727
9730
  personal: mod.record(mod.boolean()).default({})
9728
- }).default({})
9731
+ }).default({}),
9732
+ deniedWriters: mod.array(mod.string()).optional()
9729
9733
  });
9730
9734
  var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
9731
9735
  records: mod.object({
@@ -10471,6 +10475,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
10471
10475
  throw new Error("Please make an account first!");
10472
10476
  return client.contracts.createConsentFlowContract.mutate(contract);
10473
10477
  },
10478
+ addAutoBoostsToContract: async (_learnCard, contractUri, autoboosts) => {
10479
+ if (!userData)
10480
+ throw new Error("Please make an account first!");
10481
+ return client.contracts.addAutoBoostsToContract.mutate({ contractUri, autoboosts });
10482
+ },
10483
+ removeAutoBoostsFromContract: async (_learnCard, contractUri, boostUris) => {
10484
+ if (!userData)
10485
+ throw new Error("Please make an account first!");
10486
+ return client.contracts.removeAutoBoostsFromContract.mutate({
10487
+ contractUri,
10488
+ boostUris
10489
+ });
10490
+ },
10474
10491
  getContract: async (_learnCard, uri) => {
10475
10492
  return client.contracts.getConsentFlowContract.query({ uri });
10476
10493
  },