@learncard/network-brain-client 2.5.24 → 2.5.25

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @learncard/network-brain-client
2
2
 
3
+ ## 2.5.25
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`8b5325da517d957ef93598511ba7dca14b31a656`](https://github.com/learningeconomy/LearnCard/commit/8b5325da517d957ef93598511ba7dca14b31a656), [`fb6627b7fa3c4a07c83d4186619a937e6a83f369`](https://github.com/learningeconomy/LearnCard/commit/fb6627b7fa3c4a07c83d4186619a937e6a83f369)]:
8
+ - @learncard/network-brain-service@3.13.3
9
+
3
10
  ## 2.5.24
4
11
 
5
12
  ### Patch Changes
@@ -100,6 +100,7 @@ var require_helpers_cjs_development = __commonJS({
100
100
  AgeRatingValidator: /* @__PURE__ */ __name2(() => AgeRatingValidator, "AgeRatingValidator"),
101
101
  AlignmentTargetTypeValidator: /* @__PURE__ */ __name2(() => AlignmentTargetTypeValidator, "AlignmentTargetTypeValidator"),
102
102
  AlignmentValidator: /* @__PURE__ */ __name2(() => AlignmentValidator, "AlignmentValidator"),
103
+ AllowConnectionRequestsEnum: /* @__PURE__ */ __name2(() => AllowConnectionRequestsEnum, "AllowConnectionRequestsEnum"),
103
104
  AppBoostValidator: /* @__PURE__ */ __name2(() => AppBoostValidator, "AppBoostValidator"),
104
105
  AppEventInputValidator: /* @__PURE__ */ __name2(() => AppEventInputValidator, "AppEventInputValidator"),
105
106
  AppEventResponseValidator: /* @__PURE__ */ __name2(() => AppEventResponseValidator, "AppEventResponseValidator"),
@@ -206,9 +207,11 @@ var require_helpers_cjs_development = __commonJS({
206
207
  JWKValidator: /* @__PURE__ */ __name2(() => JWKValidator, "JWKValidator"),
207
208
  JWKWithPrivateKeyValidator: /* @__PURE__ */ __name2(() => JWKWithPrivateKeyValidator, "JWKWithPrivateKeyValidator"),
208
209
  KnownAchievementTypeValidator: /* @__PURE__ */ __name2(() => KnownAchievementTypeValidator, "KnownAchievementTypeValidator"),
210
+ LCNAuthedProfileValidator: /* @__PURE__ */ __name2(() => LCNAuthedProfileValidator, "LCNAuthedProfileValidator"),
209
211
  LCNBoostClaimLinkOptionsValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkOptionsValidator, "LCNBoostClaimLinkOptionsValidator"),
210
212
  LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
211
213
  LCNBoostStatus: /* @__PURE__ */ __name2(() => LCNBoostStatus, "LCNBoostStatus"),
214
+ LCNConnectionProfileValidator: /* @__PURE__ */ __name2(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
212
215
  LCNDomainOrOriginValidator: /* @__PURE__ */ __name2(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
213
216
  LCNInboxContactMethodValidator: /* @__PURE__ */ __name2(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
214
217
  LCNInboxStatusEnumValidator: /* @__PURE__ */ __name2(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
@@ -228,8 +231,10 @@ var require_helpers_cjs_development = __commonJS({
228
231
  LCNProfileManagerValidator: /* @__PURE__ */ __name2(() => LCNProfileManagerValidator, "LCNProfileManagerValidator"),
229
232
  LCNProfileQueryValidator: /* @__PURE__ */ __name2(() => LCNProfileQueryValidator, "LCNProfileQueryValidator"),
230
233
  LCNProfileValidator: /* @__PURE__ */ __name2(() => LCNProfileValidator, "LCNProfileValidator"),
234
+ LCNPublicProfileValidator: /* @__PURE__ */ __name2(() => LCNPublicProfileValidator, "LCNPublicProfileValidator"),
231
235
  LCNSigningAuthorityForUserValidator: /* @__PURE__ */ __name2(() => LCNSigningAuthorityForUserValidator, "LCNSigningAuthorityForUserValidator"),
232
236
  LCNSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNSigningAuthorityValidator, "LCNSigningAuthorityValidator"),
237
+ LCNVisibleProfileValidator: /* @__PURE__ */ __name2(() => LCNVisibleProfileValidator, "LCNVisibleProfileValidator"),
233
238
  LaunchTypeValidator: /* @__PURE__ */ __name2(() => LaunchTypeValidator, "LaunchTypeValidator"),
234
239
  LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name2(() => LinkProviderFrameworkInputValidator, "LinkProviderFrameworkInputValidator"),
235
240
  PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name2(() => PaginatedAppStoreListingsValidator, "PaginatedAppStoreListingsValidator"),
@@ -254,9 +259,11 @@ var require_helpers_cjs_development = __commonJS({
254
259
  PaginatedLCNProfilesValidator: /* @__PURE__ */ __name2(() => PaginatedLCNProfilesValidator, "PaginatedLCNProfilesValidator"),
255
260
  PaginatedSkillFrameworksValidator: /* @__PURE__ */ __name2(() => PaginatedSkillFrameworksValidator, "PaginatedSkillFrameworksValidator"),
256
261
  PaginatedSkillTreeValidator: /* @__PURE__ */ __name2(() => PaginatedSkillTreeValidator, "PaginatedSkillTreeValidator"),
262
+ PaginatedVisibleLCNProfilesValidator: /* @__PURE__ */ __name2(() => PaginatedVisibleLCNProfilesValidator, "PaginatedVisibleLCNProfilesValidator"),
257
263
  PaginationOptionsValidator: /* @__PURE__ */ __name2(() => PaginationOptionsValidator, "PaginationOptionsValidator"),
258
264
  PaginationResponseValidator: /* @__PURE__ */ __name2(() => PaginationResponseValidator, "PaginationResponseValidator"),
259
265
  ProfileValidator: /* @__PURE__ */ __name2(() => ProfileValidator, "ProfileValidator"),
266
+ ProfileVisibilityEnum: /* @__PURE__ */ __name2(() => ProfileVisibilityEnum, "ProfileVisibilityEnum"),
260
267
  PromotionLevelValidator: /* @__PURE__ */ __name2(() => PromotionLevelValidator, "PromotionLevelValidator"),
261
268
  ProofValidator: /* @__PURE__ */ __name2(() => ProofValidator, "ProofValidator"),
262
269
  RefreshServiceValidator: /* @__PURE__ */ __name2(() => RefreshServiceValidator, "RefreshServiceValidator"),
@@ -14579,6 +14586,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14579
14586
  idBackgroundColor: external_exports.string().optional(),
14580
14587
  repeatIdBackgroundImage: external_exports.boolean().optional()
14581
14588
  });
14589
+ var ProfileVisibilityEnum = external_exports.enum(["public", "connections_only", "private"]);
14590
+ var AllowConnectionRequestsEnum = external_exports.enum(["anyone", "invite_only"]);
14582
14591
  var LCNProfileValidator = external_exports.object({
14583
14592
  profileId: external_exports.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
14584
14593
  displayName: external_exports.string().default("").describe("Human-readable display name for the profile."),
@@ -14586,6 +14595,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14586
14595
  bio: external_exports.string().default("").describe("Longer bio for the profile."),
14587
14596
  did: external_exports.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
14588
14597
  isPrivate: external_exports.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
14598
+ profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
14599
+ showEmail: external_exports.boolean().default(false).optional().describe("Whether to show email to connections."),
14600
+ allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
14589
14601
  email: external_exports.string().optional().describe("Contact email address for the profile. (deprecated)"),
14590
14602
  image: external_exports.string().optional().describe("Profile image URL for the profile."),
14591
14603
  heroImage: external_exports.string().optional().describe("Hero image URL for the profile."),
@@ -14600,6 +14612,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14600
14612
  country: external_exports.string().optional().describe("Country for the profile."),
14601
14613
  approved: external_exports.boolean().optional().describe("Approval status for the profile.")
14602
14614
  });
14615
+ var LCNPublicProfileValidator = LCNProfileValidator.pick({
14616
+ profileId: true,
14617
+ displayName: true,
14618
+ shortBio: true,
14619
+ image: true,
14620
+ heroImage: true,
14621
+ type: true,
14622
+ isServiceProfile: true,
14623
+ display: true
14624
+ });
14625
+ var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
14626
+ bio: LCNProfileValidator.shape.bio,
14627
+ websiteLink: LCNProfileValidator.shape.websiteLink,
14628
+ role: LCNProfileValidator.shape.role,
14629
+ highlightedCredentials: LCNProfileValidator.shape.highlightedCredentials,
14630
+ did: LCNProfileValidator.shape.did
14631
+ });
14632
+ var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
14633
+ email: LCNProfileValidator.shape.email
14634
+ });
14635
+ var LCNVisibleProfileValidator = external_exports.union([
14636
+ LCNConnectionProfileValidator.strict(),
14637
+ LCNAuthedProfileValidator.strict(),
14638
+ LCNPublicProfileValidator.strict(),
14639
+ LCNProfileValidator
14640
+ ]);
14603
14641
  var LCNProfileQueryValidator = external_exports.object({
14604
14642
  profileId: StringQuery,
14605
14643
  displayName: StringQuery,
@@ -14613,6 +14651,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14613
14651
  var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
14614
14652
  records: LCNProfileValidator.array()
14615
14653
  });
14654
+ var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
14655
+ records: LCNVisibleProfileValidator.array()
14656
+ });
14616
14657
  var LCNProfileConnectionStatusEnum = external_exports.enum([
14617
14658
  "CONNECTED",
14618
14659
  "PENDING_REQUEST_SENT",
@@ -14746,7 +14787,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14746
14787
  records: BoostValidator.array()
14747
14788
  });
14748
14789
  var BoostRecipientValidator = external_exports.object({
14749
- to: LCNProfileValidator,
14790
+ to: LCNVisibleProfileValidator,
14750
14791
  from: external_exports.string(),
14751
14792
  received: external_exports.string().optional(),
14752
14793
  uri: external_exports.string().optional()
@@ -14755,7 +14796,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14755
14796
  records: BoostRecipientValidator.array()
14756
14797
  });
14757
14798
  var BoostRecipientWithChildrenValidator = external_exports.object({
14758
- to: LCNProfileValidator,
14799
+ to: LCNVisibleProfileValidator,
14759
14800
  from: external_exports.string(),
14760
14801
  received: external_exports.string().optional(),
14761
14802
  boostUris: external_exports.array(external_exports.string()),