@singi-labs/sifa-sdk 0.12.35 → 0.12.37

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.
Files changed (31) hide show
  1. package/dist/{adult-content-jthSA_zt.d.cts → adult-content-BQoId34F.d.cts} +18 -1
  2. package/dist/{adult-content-jthSA_zt.d.ts → adult-content-BQoId34F.d.ts} +18 -1
  3. package/dist/{index-D05PdLte.d.cts → index-C-TwdQWh.d.cts} +5 -3
  4. package/dist/{index-C93Bvwij.d.ts → index-DzjbfKwZ.d.ts} +5 -3
  5. package/dist/{index-Dw9QpdKf.d.cts → index-G5HiA-nk.d.cts} +3 -3
  6. package/dist/{index-B8ZxKVvn.d.ts → index-N0-ctbY1.d.ts} +3 -3
  7. package/dist/index.cjs +26 -2
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +70 -5
  10. package/dist/index.d.ts +70 -5
  11. package/dist/index.js +24 -3
  12. package/dist/index.js.map +1 -1
  13. package/dist/{org-De4p7Blr.d.ts → org-BFi9g37U.d.ts} +2 -2
  14. package/dist/{org-CU6yud68.d.cts → org-OPyzh-oe.d.cts} +2 -2
  15. package/dist/{org-settings-CmaSX5ZI.d.cts → org-settings-B8e01iZx.d.cts} +2 -0
  16. package/dist/{org-settings-CmaSX5ZI.d.ts → org-settings-B8e01iZx.d.ts} +2 -0
  17. package/dist/{profile-summary-C-SxRTjI.d.cts → profile-summary-BmtnD3ix.d.cts} +1 -1
  18. package/dist/{profile-summary-C6uqYJB1.d.ts → profile-summary-cPc7uJVa.d.ts} +1 -1
  19. package/dist/query/fetchers/index.d.cts +5 -5
  20. package/dist/query/fetchers/index.d.ts +5 -5
  21. package/dist/query/hooks/index.d.cts +4 -4
  22. package/dist/query/hooks/index.d.ts +4 -4
  23. package/dist/query/index.d.cts +7 -7
  24. package/dist/query/index.d.ts +7 -7
  25. package/dist/schemas/write/index.cjs +9 -1
  26. package/dist/schemas/write/index.cjs.map +1 -1
  27. package/dist/schemas/write/index.d.cts +1 -1
  28. package/dist/schemas/write/index.d.ts +1 -1
  29. package/dist/schemas/write/index.js +9 -1
  30. package/dist/schemas/write/index.js.map +1 -1
  31. package/package.json +1 -1
@@ -546,9 +546,26 @@ interface OrgFloorVerdict {
546
546
  */
547
547
  recognizedEntity?: RecognizedEntity;
548
548
  }
549
+ /**
550
+ * The account owner's answer to "are you a person, a company, or both?".
551
+ *
552
+ * `'person'` and `'company'` are Sifa-local overrides stored in
553
+ * `account_render_overrides` (set via `POST /api/account/render-preference`).
554
+ * `'both'` is NOT stored here -- it is the portable
555
+ * `id.sifa.org.profile.personalProfileVisible` declaration in the account's own
556
+ * PDS, so any AppView can evaluate it without asking Sifa. Resolve the combined
557
+ * answer with `resolveAccountFacetMode`.
558
+ */
559
+ type AccountFacetMode = 'person' | 'company' | 'both';
549
560
  interface Profile {
550
561
  did: string;
551
562
  handle: string;
563
+ /**
564
+ * Sifa-local render override, absent when the account has never set one
565
+ * (auto: today's recognition behaviour). `'person'` is the escape hatch for a
566
+ * personal domain that Sifa catalogued as a company.
567
+ */
568
+ renderPreference?: 'person' | 'company' | null;
552
569
  /**
553
570
  * Org rendering-floor verdict (#160). Present on the profile resolve; absent
554
571
  * on payloads that predate the field. When `org.isOrg` is true the account
@@ -956,4 +973,4 @@ declare function hasAdultContent(item: {
956
973
  labels?: ActivityLabel[];
957
974
  }): boolean;
958
975
 
959
- export { type ProfileOverrideSource as $, type AdultContentLabel as A, type InvolvementLinkView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type InvolvementView as G, type HonorView as H, type IndustryDomain as I, type LanguageProficiency as J, type LanguageView as K, type LocationValue as L, type OrgFloorVerdict as M, type OrgLinkView as N, type OrgAddressView as O, type ProfileView as P, type OrgProfileView as Q, type PositionView as R, type SkillSuggestion as S, type PresentationDeliveryView as T, type PresentationLinkView as U, type PresentationView as V, type ProfileCourse as W, type ProfileIndustry as X, type ProfileInvolvementLink as Y, type ProfileLocation as Z, type ProfileLocationView as _, type ActivityLabel as a, type ProfilePresentation as a0, type ProfileVolunteering as a1, type ProjectView as a2, type PublicationContributor as a3, type PublicationView as a4, type RecognizedEntity as a5, type SkillRef as a6, type SkillView as a7, type TrustStat as a8, type VerifiedAccount as a9, type VolunteeringView as aa, hasAdultContent as ab, type ProfileSkill as b, type ProfilePresentationDelivery as c, type PdsProviderInfo as d, type Profile as e, type ProfilePosition as f, type ProfileCertification as g, type ProfileEducation as h, type ProfileHonor as i, type ProfileLanguage as j, type ProfileProject as k, type ProfilePublication as l, type ProfileInvolvement as m, ADULT_CONTENT_LABELS as n, type ActiveApp as o, type ActiveAppView as p, type AtfundLinkView as q, type CertificationView as r, type CoSpeakerView as s, type ContributorView as t, type CourseView as u, type EducationView as v, type Endorsement as w, type EndorsementData as x, type ExternalAccountKeytraceClaim as y, type ExternalAccountView as z };
976
+ export { type ProfileLocationView as $, type AdultContentLabel as A, type ExternalAccountView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type InvolvementLinkView as G, type HonorView as H, type IndustryDomain as I, type InvolvementView as J, type LanguageProficiency as K, type LocationValue as L, type LanguageView as M, type OrgFloorVerdict as N, type OrgAddressView as O, type ProfileView as P, type OrgLinkView as Q, type OrgProfileView as R, type SkillSuggestion as S, type PositionView as T, type PresentationDeliveryView as U, type PresentationLinkView as V, type PresentationView as W, type ProfileCourse as X, type ProfileIndustry as Y, type ProfileInvolvementLink as Z, type ProfileLocation as _, type ActivityLabel as a, type ProfileOverrideSource as a0, type ProfilePresentation as a1, type ProfileVolunteering as a2, type ProjectView as a3, type PublicationContributor as a4, type PublicationView as a5, type RecognizedEntity as a6, type SkillRef as a7, type SkillView as a8, type TrustStat as a9, type VerifiedAccount as aa, type VolunteeringView as ab, hasAdultContent as ac, type ProfileSkill as b, type ProfilePresentationDelivery as c, type PdsProviderInfo as d, type Profile as e, type AccountFacetMode as f, type ProfilePosition as g, type ProfileCertification as h, type ProfileEducation as i, type ProfileHonor as j, type ProfileLanguage as k, type ProfileProject as l, type ProfilePublication as m, type ProfileInvolvement as n, ADULT_CONTENT_LABELS as o, type ActiveApp as p, type ActiveAppView as q, type AtfundLinkView as r, type CertificationView as s, type CoSpeakerView as t, type ContributorView as u, type CourseView as v, type EducationView as w, type Endorsement as x, type EndorsementData as y, type ExternalAccountKeytraceClaim as z };
@@ -546,9 +546,26 @@ interface OrgFloorVerdict {
546
546
  */
547
547
  recognizedEntity?: RecognizedEntity;
548
548
  }
549
+ /**
550
+ * The account owner's answer to "are you a person, a company, or both?".
551
+ *
552
+ * `'person'` and `'company'` are Sifa-local overrides stored in
553
+ * `account_render_overrides` (set via `POST /api/account/render-preference`).
554
+ * `'both'` is NOT stored here -- it is the portable
555
+ * `id.sifa.org.profile.personalProfileVisible` declaration in the account's own
556
+ * PDS, so any AppView can evaluate it without asking Sifa. Resolve the combined
557
+ * answer with `resolveAccountFacetMode`.
558
+ */
559
+ type AccountFacetMode = 'person' | 'company' | 'both';
549
560
  interface Profile {
550
561
  did: string;
551
562
  handle: string;
563
+ /**
564
+ * Sifa-local render override, absent when the account has never set one
565
+ * (auto: today's recognition behaviour). `'person'` is the escape hatch for a
566
+ * personal domain that Sifa catalogued as a company.
567
+ */
568
+ renderPreference?: 'person' | 'company' | null;
552
569
  /**
553
570
  * Org rendering-floor verdict (#160). Present on the profile resolve; absent
554
571
  * on payloads that predate the field. When `org.isOrg` is true the account
@@ -956,4 +973,4 @@ declare function hasAdultContent(item: {
956
973
  labels?: ActivityLabel[];
957
974
  }): boolean;
958
975
 
959
- export { type ProfileOverrideSource as $, type AdultContentLabel as A, type InvolvementLinkView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type InvolvementView as G, type HonorView as H, type IndustryDomain as I, type LanguageProficiency as J, type LanguageView as K, type LocationValue as L, type OrgFloorVerdict as M, type OrgLinkView as N, type OrgAddressView as O, type ProfileView as P, type OrgProfileView as Q, type PositionView as R, type SkillSuggestion as S, type PresentationDeliveryView as T, type PresentationLinkView as U, type PresentationView as V, type ProfileCourse as W, type ProfileIndustry as X, type ProfileInvolvementLink as Y, type ProfileLocation as Z, type ProfileLocationView as _, type ActivityLabel as a, type ProfilePresentation as a0, type ProfileVolunteering as a1, type ProjectView as a2, type PublicationContributor as a3, type PublicationView as a4, type RecognizedEntity as a5, type SkillRef as a6, type SkillView as a7, type TrustStat as a8, type VerifiedAccount as a9, type VolunteeringView as aa, hasAdultContent as ab, type ProfileSkill as b, type ProfilePresentationDelivery as c, type PdsProviderInfo as d, type Profile as e, type ProfilePosition as f, type ProfileCertification as g, type ProfileEducation as h, type ProfileHonor as i, type ProfileLanguage as j, type ProfileProject as k, type ProfilePublication as l, type ProfileInvolvement as m, ADULT_CONTENT_LABELS as n, type ActiveApp as o, type ActiveAppView as p, type AtfundLinkView as q, type CertificationView as r, type CoSpeakerView as s, type ContributorView as t, type CourseView as u, type EducationView as v, type Endorsement as w, type EndorsementData as x, type ExternalAccountKeytraceClaim as y, type ExternalAccountView as z };
976
+ export { type ProfileLocationView as $, type AdultContentLabel as A, type ExternalAccountView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type InvolvementLinkView as G, type HonorView as H, type IndustryDomain as I, type InvolvementView as J, type LanguageProficiency as K, type LocationValue as L, type LanguageView as M, type OrgFloorVerdict as N, type OrgAddressView as O, type ProfileView as P, type OrgLinkView as Q, type OrgProfileView as R, type SkillSuggestion as S, type PositionView as T, type PresentationDeliveryView as U, type PresentationLinkView as V, type PresentationView as W, type ProfileCourse as X, type ProfileIndustry as Y, type ProfileInvolvementLink as Z, type ProfileLocation as _, type ActivityLabel as a, type ProfileOverrideSource as a0, type ProfilePresentation as a1, type ProfileVolunteering as a2, type ProjectView as a3, type PublicationContributor as a4, type PublicationView as a5, type RecognizedEntity as a6, type SkillRef as a7, type SkillView as a8, type TrustStat as a9, type VerifiedAccount as aa, type VolunteeringView as ab, hasAdultContent as ac, type ProfileSkill as b, type ProfilePresentationDelivery as c, type PdsProviderInfo as d, type Profile as e, type AccountFacetMode as f, type ProfilePosition as g, type ProfileCertification as h, type ProfileEducation as i, type ProfileHonor as j, type ProfileLanguage as k, type ProfileProject as l, type ProfilePublication as m, type ProfileInvolvement as n, ADULT_CONTENT_LABELS as o, type ActiveApp as p, type ActiveAppView as q, type AtfundLinkView as r, type CertificationView as s, type CoSpeakerView as t, type ContributorView as u, type CourseView as v, type EducationView as w, type Endorsement as x, type EndorsementData as y, type ExternalAccountKeytraceClaim as z };
@@ -1,11 +1,11 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, ax as UpdateProfileOverrideInput, ay as UpdateProfileSelfInput, az as UploadAvatarResult, j as CreateResult, au as SubCategoryBulkResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aA as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, aw as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, aB as WipePreview, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-CU6yud68.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, ax as UpdateProfileOverrideInput, ay as UpdateProfileSelfInput, az as UploadAvatarResult, j as CreateResult, au as SubCategoryBulkResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aA as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, aw as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, aB as WipePreview, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-OPyzh-oe.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, M as OrgFloorVerdict } from './adult-content-jthSA_zt.cjs';
6
+ import { e as Profile, P as ProfileView, g as ProfilePosition, a7 as SkillRef, E as ExternalAccount, S as SkillSuggestion, N as OrgFloorVerdict } from './adult-content-BQoId34F.cjs';
7
7
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-C8aHEPw4.cjs';
8
- import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.cjs';
8
+ import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.cjs';
9
9
 
10
10
  interface SifaProviderProps {
11
11
  config: SifaApiConfig;
@@ -686,6 +686,7 @@ declare function useOrgClaim(handleOrDid: string | null, options?: Omit<UseMutat
686
686
  description?: string | undefined;
687
687
  website?: string | undefined;
688
688
  contact?: string | undefined;
689
+ personalProfileVisible?: boolean | undefined;
689
690
  }, unknown>;
690
691
 
691
692
  type OrgProfileUpdateMutationResult = WriteResult & Partial<OrgProfileUpdateResult>;
@@ -707,6 +708,7 @@ declare function useUpdateOrgProfile(handleOrDid: string | null, options?: Omit<
707
708
  mimeType: string;
708
709
  size: number;
709
710
  } | undefined;
711
+ personalProfileVisible?: boolean | undefined;
710
712
  }, unknown>;
711
713
 
712
714
  type OrgDomainChallengeMutationResult = WriteResult & Partial<OrgDomainChallengeResult>;
@@ -1,11 +1,11 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, ax as UpdateProfileOverrideInput, ay as UpdateProfileSelfInput, az as UploadAvatarResult, j as CreateResult, au as SubCategoryBulkResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aA as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, aw as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, aB as WipePreview, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-De4p7Blr.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, ax as UpdateProfileOverrideInput, ay as UpdateProfileSelfInput, az as UploadAvatarResult, j as CreateResult, au as SubCategoryBulkResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aA as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, aw as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, aB as WipePreview, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-BFi9g37U.js';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, M as OrgFloorVerdict } from './adult-content-jthSA_zt.js';
6
+ import { e as Profile, P as ProfileView, g as ProfilePosition, a7 as SkillRef, E as ExternalAccount, S as SkillSuggestion, N as OrgFloorVerdict } from './adult-content-BQoId34F.js';
7
7
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-C8aHEPw4.js';
8
- import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.js';
8
+ import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.js';
9
9
 
10
10
  interface SifaProviderProps {
11
11
  config: SifaApiConfig;
@@ -686,6 +686,7 @@ declare function useOrgClaim(handleOrDid: string | null, options?: Omit<UseMutat
686
686
  description?: string | undefined;
687
687
  website?: string | undefined;
688
688
  contact?: string | undefined;
689
+ personalProfileVisible?: boolean | undefined;
689
690
  }, unknown>;
690
691
 
691
692
  type OrgProfileUpdateMutationResult = WriteResult & Partial<OrgProfileUpdateResult>;
@@ -707,6 +708,7 @@ declare function useUpdateOrgProfile(handleOrDid: string | null, options?: Omit<
707
708
  mimeType: string;
708
709
  size: number;
709
710
  } | undefined;
711
+ personalProfileVisible?: boolean | undefined;
710
712
  }, unknown>;
711
713
 
712
714
  type OrgDomainChallengeMutationResult = WriteResult & Partial<OrgDomainChallengeResult>;
@@ -1,7 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-CU6yud68.cjs';
2
- import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef } from './adult-content-jthSA_zt.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-OPyzh-oe.cjs';
2
+ import { e as Profile, P as ProfileView, g as ProfilePosition, a7 as SkillRef } from './adult-content-BQoId34F.cjs';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-C8aHEPw4.cjs';
4
- import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-C-SxRTjI.cjs';
4
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-BmtnD3ix.cjs';
5
5
 
6
6
  /**
7
7
  * Read the aggregated profile for a handle or DID.
@@ -1,7 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-De4p7Blr.js';
2
- import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef } from './adult-content-jthSA_zt.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-BFi9g37U.js';
2
+ import { e as Profile, P as ProfileView, g as ProfilePosition, a7 as SkillRef } from './adult-content-BQoId34F.js';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-C8aHEPw4.js';
4
- import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-C6uqYJB1.js';
4
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-cPc7uJVa.js';
5
5
 
6
6
  /**
7
7
  * Read the aggregated profile for a handle or DID.
package/dist/index.cjs CHANGED
@@ -930,6 +930,14 @@ function groupSkillsBySubCategory(skills) {
930
930
  return ordered;
931
931
  }
932
932
 
933
+ // src/taxonomy/skill-display-groups.ts
934
+ function groupSkillsForDisplay(skills, options = {}) {
935
+ const grouped = groupSkillsBySubCategory(skills);
936
+ const labelled = grouped.filter(([label]) => label !== null);
937
+ const groups = options.ungroupedFirst ? [...grouped.filter(([label]) => label === null), ...labelled] : grouped;
938
+ return { groups, showLabels: labelled.length >= 2 };
939
+ }
940
+
933
941
  // src/taxonomy/app-categories.ts
934
942
  var APP_CATEGORIES = {
935
943
  Articles: { phosphorIcon: "Article" },
@@ -4107,11 +4115,24 @@ function hasPersonalProfileContent(profile) {
4107
4115
  ];
4108
4116
  return sections.some((section) => Array.isArray(section) && section.length > 0);
4109
4117
  }
4110
- function rendersPersonalProfile(org) {
4118
+ function rendersPersonalProfile(org, renderPreference) {
4119
+ if (renderPreference === "person") return true;
4111
4120
  if (org === null || org === void 0) return true;
4112
4121
  if (!org.isOrg && !org.recognized) return true;
4113
4122
  return org.isOrg && org.personalProfileVisible === true;
4114
4123
  }
4124
+ function rendersCompanyProfile(org, renderPreference) {
4125
+ if (renderPreference === "person") return false;
4126
+ if (org === null || org === void 0) return false;
4127
+ return org.isOrg || org.recognized;
4128
+ }
4129
+ function resolveAccountFacetMode(profile) {
4130
+ if (profile.renderPreference === "person") return "person";
4131
+ const org = profile.org;
4132
+ if (org?.isOrg && org.personalProfileVisible === true) return "both";
4133
+ if (org?.isOrg || org?.recognized || profile.renderPreference === "company") return "company";
4134
+ return "person";
4135
+ }
4115
4136
 
4116
4137
  // src/logic/company-page-indexable.ts
4117
4138
  var COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS = 2;
@@ -4857,7 +4878,7 @@ function roadmapIssueUrl(issue) {
4857
4878
  }
4858
4879
 
4859
4880
  // src/index.ts
4860
- var SIFA_SDK_VERSION = "0.12.35";
4881
+ var SIFA_SDK_VERSION = "0.12.37";
4861
4882
 
4862
4883
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
4863
4884
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -5020,6 +5041,7 @@ exports.getWorkplaceTypeLabel = getWorkplaceTypeLabel;
5020
5041
  exports.groupInvolvementByHeading = groupInvolvementByHeading;
5021
5042
  exports.groupSkillsByCategory = groupSkillsByCategory;
5022
5043
  exports.groupSkillsBySubCategory = groupSkillsBySubCategory;
5044
+ exports.groupSkillsForDisplay = groupSkillsForDisplay;
5023
5045
  exports.hasAdultContent = hasAdultContent;
5024
5046
  exports.hasPersonalProfileContent = hasPersonalProfileContent;
5025
5047
  exports.hoistPrimary = hoistPrimary;
@@ -5064,7 +5086,9 @@ exports.primaryVerification = primaryVerification;
5064
5086
  exports.profileToDimensionInputs = profileToDimensionInputs;
5065
5087
  exports.qualifiesAsOrg = qualifiesAsOrg;
5066
5088
  exports.relativeLuminance = relativeLuminance;
5089
+ exports.rendersCompanyProfile = rendersCompanyProfile;
5067
5090
  exports.rendersPersonalProfile = rendersPersonalProfile;
5091
+ exports.resolveAccountFacetMode = resolveAccountFacetMode;
5068
5092
  exports.resolveCardHealth = resolveCardHealth;
5069
5093
  exports.resolveCardUrl = resolveCardUrl;
5070
5094
  exports.resolveEmbed = resolveEmbed;