@singi-labs/sifa-sdk 0.12.36 → 0.12.38

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 (37) 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-HNbo0d_Q.d.cts → index-C-TwdQWh.d.cts} +2 -2
  4. package/dist/{index-CNVAxcK1.d.ts → index-DzjbfKwZ.d.ts} +2 -2
  5. package/dist/{index-Cvtj97AW.d.cts → index-G5HiA-nk.d.cts} +3 -3
  6. package/dist/{index-ilznrlB1.d.ts → index-N0-ctbY1.d.ts} +3 -3
  7. package/dist/index.cjs +26 -4
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +43 -6
  10. package/dist/index.d.ts +43 -6
  11. package/dist/index.js +24 -5
  12. package/dist/index.js.map +1 -1
  13. package/dist/{org-CNQA-2mM.d.ts → org-BFi9g37U.d.ts} +1 -1
  14. package/dist/{org-BKjipmq7.d.cts → org-OPyzh-oe.d.cts} +1 -1
  15. package/dist/{profile-summary-C-SxRTjI.d.cts → profile-summary-BmtnD3ix.d.cts} +1 -1
  16. package/dist/{profile-summary-C6uqYJB1.d.ts → profile-summary-cPc7uJVa.d.ts} +1 -1
  17. package/dist/publishing/index.cjs +3 -0
  18. package/dist/publishing/index.cjs.map +1 -1
  19. package/dist/publishing/index.js +3 -0
  20. package/dist/publishing/index.js.map +1 -1
  21. package/dist/query/fetchers/index.d.cts +4 -4
  22. package/dist/query/fetchers/index.d.ts +4 -4
  23. package/dist/query/hooks/index.d.cts +3 -3
  24. package/dist/query/hooks/index.d.ts +3 -3
  25. package/dist/query/index.d.cts +6 -6
  26. package/dist/query/index.d.ts +6 -6
  27. package/dist/schemas/index.cjs +9 -2
  28. package/dist/schemas/index.cjs.map +1 -1
  29. package/dist/schemas/index.d.cts +12 -3
  30. package/dist/schemas/index.d.ts +12 -3
  31. package/dist/schemas/index.js +9 -3
  32. package/dist/schemas/index.js.map +1 -1
  33. package/dist/schemas/write/index.cjs +3 -0
  34. package/dist/schemas/write/index.cjs.map +1 -1
  35. package/dist/schemas/write/index.js +3 -0
  36. package/dist/schemas/write/index.js.map +1 -1
  37. 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,9 +1,9 @@
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-BKjipmq7.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
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.cjs';
9
9
 
@@ -1,9 +1,9 @@
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-CNQA-2mM.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
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.js';
9
9
 
@@ -1,7 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-BKjipmq7.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-CNQA-2mM.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
@@ -3131,6 +3131,9 @@ var strongRefSchema = zod.z.object({
3131
3131
  uri: atUriSchema,
3132
3132
  cid: cidSchema
3133
3133
  });
3134
+ var skillRefSchema = zod.z.object({
3135
+ uri: atUriSchema
3136
+ });
3134
3137
  var externalRecordRefSchema = zod.z.object({
3135
3138
  uri: atUriSchema,
3136
3139
  cid: cidSchema.optional()
@@ -4115,11 +4118,24 @@ function hasPersonalProfileContent(profile) {
4115
4118
  ];
4116
4119
  return sections.some((section) => Array.isArray(section) && section.length > 0);
4117
4120
  }
4118
- function rendersPersonalProfile(org) {
4121
+ function rendersPersonalProfile(org, renderPreference) {
4122
+ if (renderPreference === "person") return true;
4119
4123
  if (org === null || org === void 0) return true;
4120
4124
  if (!org.isOrg && !org.recognized) return true;
4121
4125
  return org.isOrg && org.personalProfileVisible === true;
4122
4126
  }
4127
+ function rendersCompanyProfile(org, renderPreference) {
4128
+ if (renderPreference === "person") return false;
4129
+ if (org === null || org === void 0) return false;
4130
+ return org.isOrg || org.recognized;
4131
+ }
4132
+ function resolveAccountFacetMode(profile) {
4133
+ if (profile.renderPreference === "person") return "person";
4134
+ const org = profile.org;
4135
+ if (org?.isOrg && org.personalProfileVisible === true) return "both";
4136
+ if (org?.isOrg || org?.recognized || profile.renderPreference === "company") return "company";
4137
+ return "person";
4138
+ }
4123
4139
 
4124
4140
  // src/logic/company-page-indexable.ts
4125
4141
  var COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS = 2;
@@ -4651,10 +4667,13 @@ var ProfilePositionRecordSchema = zod.z.object({
4651
4667
  location: zod.z.unknown().optional(),
4652
4668
  startedAt: partialDateSchema,
4653
4669
  endedAt: partialDateSchema.optional(),
4654
- skills: zod.z.array(strongRefSchema).max(50).optional(),
4670
+ // id.sifa.defs#skillRef -- at-uri only, no cid. Skills are mutable records
4671
+ // in the same repo, so the ref resolves live rather than pinning a version.
4672
+ skills: zod.z.array(skillRefSchema).max(50).optional(),
4673
+ isPrimary: zod.z.boolean().optional(),
4655
4674
  labels: selfLabelsSchema.optional(),
4656
4675
  createdAt: datetimeSchema
4657
- });
4676
+ }).passthrough();
4658
4677
  var PresentationDurationSchema = zod.z.object({
4659
4678
  minMinutes: zod.z.number().int().min(1),
4660
4679
  maxMinutes: zod.z.number().int().min(1).optional()
@@ -4865,7 +4884,7 @@ function roadmapIssueUrl(issue) {
4865
4884
  }
4866
4885
 
4867
4886
  // src/index.ts
4868
- var SIFA_SDK_VERSION = "0.12.36";
4887
+ var SIFA_SDK_VERSION = "0.12.38";
4869
4888
 
4870
4889
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
4871
4890
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -5073,7 +5092,9 @@ exports.primaryVerification = primaryVerification;
5073
5092
  exports.profileToDimensionInputs = profileToDimensionInputs;
5074
5093
  exports.qualifiesAsOrg = qualifiesAsOrg;
5075
5094
  exports.relativeLuminance = relativeLuminance;
5095
+ exports.rendersCompanyProfile = rendersCompanyProfile;
5076
5096
  exports.rendersPersonalProfile = rendersPersonalProfile;
5097
+ exports.resolveAccountFacetMode = resolveAccountFacetMode;
5077
5098
  exports.resolveCardHealth = resolveCardHealth;
5078
5099
  exports.resolveCardUrl = resolveCardUrl;
5079
5100
  exports.resolveEmbed = resolveEmbed;
@@ -5085,6 +5106,7 @@ exports.sanitizeHandleInput = sanitizeHandleInput;
5085
5106
  exports.searchResultDisambiguation = searchResultDisambiguation;
5086
5107
  exports.selfLabelsSchema = selfLabelsSchema;
5087
5108
  exports.singleDateExtractor = singleDateExtractor;
5109
+ exports.skillRefSchema = skillRefSchema;
5088
5110
  exports.slugifyTitle = slugifyTitle;
5089
5111
  exports.sortByActiveDateRange = sortByActiveDateRange;
5090
5112
  exports.sortByDateDesc = sortByDateDesc;