@learncard/network-plugin 2.4.28 → 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.
@@ -5192,7 +5192,9 @@ var require_helpers_cjs_development = __commonJS({
5192
5192
  isServiceProfile: mod2.boolean().default(false).optional(),
5193
5193
  type: mod2.string().optional(),
5194
5194
  notificationsWebhook: mod2.string().url().startsWith("http").optional(),
5195
- display: LCNProfileDisplayValidator2.optional()
5195
+ display: LCNProfileDisplayValidator2.optional(),
5196
+ role: mod2.string().default("").optional(),
5197
+ dob: mod2.string().default("").optional()
5196
5198
  });
5197
5199
  var LCNProfileQueryValidator2 = mod2.object({
5198
5200
  profileId: StringQuery2,
@@ -5388,7 +5390,8 @@ var require_helpers_cjs_development = __commonJS({
5388
5390
  createdAt: mod2.string(),
5389
5391
  updatedAt: mod2.string(),
5390
5392
  expiresAt: mod2.string().optional(),
5391
- autoBoosts: mod2.string().array().optional()
5393
+ autoBoosts: mod2.string().array().optional(),
5394
+ writers: mod2.array(LCNProfileValidator2).optional()
5392
5395
  });
5393
5396
  var PaginatedConsentFlowContractsValidator2 = PaginationResponseValidator2.extend({
5394
5397
  records: ConsentFlowContractDetailsValidator2.omit({ owner: true }).array()
@@ -5429,7 +5432,8 @@ var require_helpers_cjs_development = __commonJS({
5429
5432
  write: mod2.object({
5430
5433
  credentials: mod2.object({ categories: mod2.record(mod2.boolean()).default({}) }).default({}),
5431
5434
  personal: mod2.record(mod2.boolean()).default({})
5432
- }).default({})
5435
+ }).default({}),
5436
+ deniedWriters: mod2.array(mod2.string()).optional()
5433
5437
  });
5434
5438
  var PaginatedConsentFlowTermsValidator2 = PaginationResponseValidator2.extend({
5435
5439
  records: mod2.object({
@@ -9509,7 +9513,9 @@ var LCNProfileValidator = mod.object({
9509
9513
  isServiceProfile: mod.boolean().default(false).optional(),
9510
9514
  type: mod.string().optional(),
9511
9515
  notificationsWebhook: mod.string().url().startsWith("http").optional(),
9512
- display: LCNProfileDisplayValidator.optional()
9516
+ display: LCNProfileDisplayValidator.optional(),
9517
+ role: mod.string().default("").optional(),
9518
+ dob: mod.string().default("").optional()
9513
9519
  });
9514
9520
  var LCNProfileQueryValidator = mod.object({
9515
9521
  profileId: StringQuery,
@@ -9705,7 +9711,8 @@ var ConsentFlowContractDetailsValidator = mod.object({
9705
9711
  createdAt: mod.string(),
9706
9712
  updatedAt: mod.string(),
9707
9713
  expiresAt: mod.string().optional(),
9708
- autoBoosts: mod.string().array().optional()
9714
+ autoBoosts: mod.string().array().optional(),
9715
+ writers: mod.array(LCNProfileValidator).optional()
9709
9716
  });
9710
9717
  var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
9711
9718
  records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
@@ -9746,7 +9753,8 @@ var ConsentFlowTermsValidator = mod.object({
9746
9753
  write: mod.object({
9747
9754
  credentials: mod.object({ categories: mod.record(mod.boolean()).default({}) }).default({}),
9748
9755
  personal: mod.record(mod.boolean()).default({})
9749
- }).default({})
9756
+ }).default({}),
9757
+ deniedWriters: mod.array(mod.string()).optional()
9750
9758
  });
9751
9759
  var PaginatedConsentFlowTermsValidator = PaginationResponseValidator.extend({
9752
9760
  records: mod.object({
@@ -10492,6 +10500,19 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
10492
10500
  throw new Error("Please make an account first!");
10493
10501
  return client.contracts.createConsentFlowContract.mutate(contract);
10494
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
+ },
10495
10516
  getContract: async (_learnCard, uri) => {
10496
10517
  return client.contracts.getConsentFlowContract.query({ uri });
10497
10518
  },