@learncard/types 5.13.2 → 5.13.3

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/dist/types.esm.js CHANGED
@@ -508,6 +508,8 @@ var LCNProfileDisplayValidator = z9.object({
508
508
  idBackgroundColor: z9.string().optional(),
509
509
  repeatIdBackgroundImage: z9.boolean().optional()
510
510
  });
511
+ var ProfileVisibilityEnum = z9.enum(["public", "connections_only", "private"]);
512
+ var AllowConnectionRequestsEnum = z9.enum(["anyone", "invite_only"]);
511
513
  var LCNProfileValidator = z9.object({
512
514
  profileId: z9.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
513
515
  displayName: z9.string().default("").describe("Human-readable display name for the profile."),
@@ -515,6 +517,9 @@ var LCNProfileValidator = z9.object({
515
517
  bio: z9.string().default("").describe("Longer bio for the profile."),
516
518
  did: z9.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
517
519
  isPrivate: z9.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
520
+ profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
521
+ showEmail: z9.boolean().default(false).optional().describe("Whether to show email to connections."),
522
+ allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
518
523
  email: z9.string().optional().describe("Contact email address for the profile. (deprecated)"),
519
524
  image: z9.string().optional().describe("Profile image URL for the profile."),
520
525
  heroImage: z9.string().optional().describe("Hero image URL for the profile."),
@@ -529,6 +534,32 @@ var LCNProfileValidator = z9.object({
529
534
  country: z9.string().optional().describe("Country for the profile."),
530
535
  approved: z9.boolean().optional().describe("Approval status for the profile.")
531
536
  });
537
+ var LCNPublicProfileValidator = LCNProfileValidator.pick({
538
+ profileId: true,
539
+ displayName: true,
540
+ shortBio: true,
541
+ image: true,
542
+ heroImage: true,
543
+ type: true,
544
+ isServiceProfile: true,
545
+ display: true
546
+ });
547
+ var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
548
+ bio: LCNProfileValidator.shape.bio,
549
+ websiteLink: LCNProfileValidator.shape.websiteLink,
550
+ role: LCNProfileValidator.shape.role,
551
+ highlightedCredentials: LCNProfileValidator.shape.highlightedCredentials,
552
+ did: LCNProfileValidator.shape.did
553
+ });
554
+ var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
555
+ email: LCNProfileValidator.shape.email
556
+ });
557
+ var LCNVisibleProfileValidator = z9.union([
558
+ LCNConnectionProfileValidator.strict(),
559
+ LCNAuthedProfileValidator.strict(),
560
+ LCNPublicProfileValidator.strict(),
561
+ LCNProfileValidator
562
+ ]);
532
563
  var LCNProfileQueryValidator = z9.object({
533
564
  profileId: StringQuery,
534
565
  displayName: StringQuery,
@@ -542,6 +573,9 @@ var LCNProfileQueryValidator = z9.object({
542
573
  var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
543
574
  records: LCNProfileValidator.array()
544
575
  });
576
+ var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
577
+ records: LCNVisibleProfileValidator.array()
578
+ });
545
579
  var LCNProfileConnectionStatusEnum = z9.enum([
546
580
  "CONNECTED",
547
581
  "PENDING_REQUEST_SENT",
@@ -675,7 +709,7 @@ var PaginatedBoostsValidator = PaginationResponseValidator.extend({
675
709
  records: BoostValidator.array()
676
710
  });
677
711
  var BoostRecipientValidator = z9.object({
678
- to: LCNProfileValidator,
712
+ to: LCNVisibleProfileValidator,
679
713
  from: z9.string(),
680
714
  received: z9.string().optional(),
681
715
  uri: z9.string().optional()
@@ -684,7 +718,7 @@ var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
684
718
  records: BoostRecipientValidator.array()
685
719
  });
686
720
  var BoostRecipientWithChildrenValidator = z9.object({
687
- to: LCNProfileValidator,
721
+ to: LCNVisibleProfileValidator,
688
722
  from: z9.string(),
689
723
  received: z9.string().optional(),
690
724
  boostUris: z9.array(z9.string()),
@@ -1703,6 +1737,7 @@ export {
1703
1737
  AgeRatingValidator,
1704
1738
  AlignmentTargetTypeValidator,
1705
1739
  AlignmentValidator,
1740
+ AllowConnectionRequestsEnum,
1706
1741
  AppBoostValidator,
1707
1742
  AppEventInputValidator,
1708
1743
  AppEventResponseValidator,
@@ -1809,9 +1844,11 @@ export {
1809
1844
  JWKValidator,
1810
1845
  JWKWithPrivateKeyValidator,
1811
1846
  KnownAchievementTypeValidator,
1847
+ LCNAuthedProfileValidator,
1812
1848
  LCNBoostClaimLinkOptionsValidator,
1813
1849
  LCNBoostClaimLinkSigningAuthorityValidator,
1814
1850
  LCNBoostStatus,
1851
+ LCNConnectionProfileValidator,
1815
1852
  LCNDomainOrOriginValidator,
1816
1853
  LCNInboxContactMethodValidator,
1817
1854
  LCNInboxStatusEnumValidator,
@@ -1831,8 +1868,10 @@ export {
1831
1868
  LCNProfileManagerValidator,
1832
1869
  LCNProfileQueryValidator,
1833
1870
  LCNProfileValidator,
1871
+ LCNPublicProfileValidator,
1834
1872
  LCNSigningAuthorityForUserValidator,
1835
1873
  LCNSigningAuthorityValidator,
1874
+ LCNVisibleProfileValidator,
1836
1875
  LaunchTypeValidator,
1837
1876
  LinkProviderFrameworkInputValidator,
1838
1877
  PaginatedAppStoreListingsValidator,
@@ -1857,9 +1896,11 @@ export {
1857
1896
  PaginatedLCNProfilesValidator,
1858
1897
  PaginatedSkillFrameworksValidator,
1859
1898
  PaginatedSkillTreeValidator,
1899
+ PaginatedVisibleLCNProfilesValidator,
1860
1900
  PaginationOptionsValidator,
1861
1901
  PaginationResponseValidator,
1862
1902
  ProfileValidator,
1903
+ ProfileVisibilityEnum,
1863
1904
  PromotionLevelValidator,
1864
1905
  ProofValidator,
1865
1906
  RefreshServiceValidator,