@learncard/network-plugin 2.1.3 → 2.1.5

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.
@@ -4986,6 +4986,19 @@ var SentCredentialInfoValidator = mod.object({
4986
4986
  sent: mod.string().datetime(),
4987
4987
  received: mod.string().datetime().optional()
4988
4988
  });
4989
+ var BoostPermissionsValidator = mod.object({
4990
+ role: mod.string(),
4991
+ canEdit: mod.boolean(),
4992
+ canIssue: mod.boolean(),
4993
+ canRevoke: mod.boolean(),
4994
+ canManagePermissions: mod.boolean(),
4995
+ canIssueChildren: mod.string(),
4996
+ canCreateChildren: mod.string(),
4997
+ canEditChildren: mod.string(),
4998
+ canRevokeChildren: mod.string(),
4999
+ canManageChildrenPermissions: mod.string(),
5000
+ canViewAnalytics: mod.boolean()
5001
+ });
4989
5002
  var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
4990
5003
  var BoostValidator = mod.object({
4991
5004
  uri: mod.string(),
@@ -4993,13 +5006,17 @@ var BoostValidator = mod.object({
4993
5006
  type: mod.string().optional(),
4994
5007
  category: mod.string().optional(),
4995
5008
  status: LCNBoostStatus.optional(),
4996
- autoConnectRecipients: mod.boolean().optional()
5009
+ autoConnectRecipients: mod.boolean().optional(),
5010
+ meta: mod.record(mod.any()).optional(),
5011
+ claimPermissions: BoostPermissionsValidator.optional()
4997
5012
  });
5013
+ var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: mod.instanceof(RegExp) }));
4998
5014
  var BoostQueryValidator = mod.object({
4999
- uri: mod.string().or(mod.object({ $in: mod.string().array() })),
5000
- name: mod.string().or(mod.object({ $in: mod.string().array() })),
5001
- type: mod.string().or(mod.object({ $in: mod.string().array() })),
5002
- category: mod.string().or(mod.object({ $in: mod.string().array() })),
5015
+ uri: StringQuery,
5016
+ name: StringQuery,
5017
+ type: StringQuery,
5018
+ category: StringQuery,
5019
+ meta: mod.record(StringQuery),
5003
5020
  status: LCNBoostStatus.or(mod.object({ $in: LCNBoostStatus.array() })),
5004
5021
  autoConnectRecipients: mod.boolean()
5005
5022
  }).partial();
@@ -5023,19 +5040,6 @@ var LCNBoostClaimLinkOptionsValidator = mod.object({
5023
5040
  ttlSeconds: mod.number().optional(),
5024
5041
  totalUses: mod.number().optional()
5025
5042
  });
5026
- var BoostPermissionsValidator = mod.object({
5027
- role: mod.string(),
5028
- canEdit: mod.boolean(),
5029
- canIssue: mod.boolean(),
5030
- canRevoke: mod.boolean(),
5031
- canManagePermissions: mod.boolean(),
5032
- canIssueChildren: mod.string(),
5033
- canCreateChildren: mod.string(),
5034
- canEditChildren: mod.string(),
5035
- canRevokeChildren: mod.string(),
5036
- canManageChildrenPermissions: mod.string(),
5037
- canViewAnalytics: mod.boolean()
5038
- });
5039
5043
  var LCNSigningAuthorityValidator = mod.object({
5040
5044
  endpoint: mod.string()
5041
5045
  });
@@ -5543,6 +5547,26 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
5543
5547
  throw new Error("Please make an account first!");
5544
5548
  return client.boost.countBoostChildren.query({ uri, ...options });
5545
5549
  },
5550
+ getBoostSiblings: async (_learnCard, uri, options) => {
5551
+ if (!userData)
5552
+ throw new Error("Please make an account first!");
5553
+ return client.boost.getBoostSiblings.query({ uri, ...options });
5554
+ },
5555
+ countBoostSiblings: async (_learnCard, uri, options) => {
5556
+ if (!userData)
5557
+ throw new Error("Please make an account first!");
5558
+ return client.boost.countBoostSiblings.query({ uri, ...options });
5559
+ },
5560
+ getFamilialBoosts: async (_learnCard, uri, options) => {
5561
+ if (!userData)
5562
+ throw new Error("Please make an account first!");
5563
+ return client.boost.getFamilialBoosts.query({ uri, ...options });
5564
+ },
5565
+ countFamilialBoosts: async (_learnCard, uri, options) => {
5566
+ if (!userData)
5567
+ throw new Error("Please make an account first!");
5568
+ return client.boost.countFamilialBoosts.query({ uri, ...options });
5569
+ },
5546
5570
  getBoostParents: async (_learnCard, uri, options) => {
5547
5571
  if (!userData)
5548
5572
  throw new Error("Please make an account first!");