@singi-labs/sifa-sdk 0.12.21 → 0.12.22

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.
@@ -939,4 +939,4 @@ declare function hasAdultContent(item: {
939
939
  labels?: ActivityLabel[];
940
940
  }): boolean;
941
941
 
942
- export { type ProfilePresentation as $, type AdultContentLabel as A, type InvolvementView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type LanguageProficiency as G, type HonorView as H, type IndustryDomain as I, type LanguageView as J, type OrgFloorVerdict as K, type LocationValue as L, type OrgLinkView as M, type OrgProfileView as N, type OrgAddressView as O, type ProfileSkill as P, type PositionView as Q, type PresentationDeliveryView as R, type SkillSuggestion as S, type PresentationLinkView as T, type PresentationView as U, type ProfileCourse as V, type ProfileIndustry as W, type ProfileInvolvementLink as X, type ProfileLocation as Y, type ProfileLocationView as Z, type ProfileOverrideSource as _, type ActivityLabel as a, type ProfileView 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 ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, type ProfilePosition as e, type ProfileCertification as f, type ProfileEducation as g, type ProfileHonor as h, type ProfileLanguage as i, type ProfileProject as j, type ProfilePublication as k, type ProfileInvolvement as l, ADULT_CONTENT_LABELS as m, type ActiveApp as n, type ActiveAppView as o, type AtfundLinkView as p, type CertificationView as q, type CoSpeakerView as r, type ContributorView as s, type CourseView as t, type EducationView as u, type Endorsement as v, type EndorsementData as w, type ExternalAccountKeytraceClaim as x, type ExternalAccountView as y, type InvolvementLinkView as z };
942
+ 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 };
@@ -939,4 +939,4 @@ declare function hasAdultContent(item: {
939
939
  labels?: ActivityLabel[];
940
940
  }): boolean;
941
941
 
942
- export { type ProfilePresentation as $, type AdultContentLabel as A, type InvolvementView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type LanguageProficiency as G, type HonorView as H, type IndustryDomain as I, type LanguageView as J, type OrgFloorVerdict as K, type LocationValue as L, type OrgLinkView as M, type OrgProfileView as N, type OrgAddressView as O, type ProfileSkill as P, type PositionView as Q, type PresentationDeliveryView as R, type SkillSuggestion as S, type PresentationLinkView as T, type PresentationView as U, type ProfileCourse as V, type ProfileIndustry as W, type ProfileInvolvementLink as X, type ProfileLocation as Y, type ProfileLocationView as Z, type ProfileOverrideSource as _, type ActivityLabel as a, type ProfileView 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 ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, type ProfilePosition as e, type ProfileCertification as f, type ProfileEducation as g, type ProfileHonor as h, type ProfileLanguage as i, type ProfileProject as j, type ProfilePublication as k, type ProfileInvolvement as l, ADULT_CONTENT_LABELS as m, type ActiveApp as n, type ActiveAppView as o, type AtfundLinkView as p, type CertificationView as q, type CoSpeakerView as r, type ContributorView as s, type CourseView as t, type EducationView as u, type Endorsement as v, type EndorsementData as w, type ExternalAccountKeytraceClaim as x, type ExternalAccountView as y, type InvolvementLinkView as z };
942
+ 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 };
@@ -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, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-BX4WZoOT.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-DVIvsT_0.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 { d as Profile, a0 as ProfileView, e as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, K as OrgFloorVerdict } from './adult-content-C9gi0C_Q.cjs';
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-DdY7S5nN.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-D2ZV8Eaj.cjs';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.cjs';
9
9
 
@@ -1,6 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-lScz_q2Z.js';
2
- import { d as Profile, a0 as ProfileView, e as ProfilePosition, a6 as SkillRef } from './adult-content-C9gi0C_Q.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-CQMDMN58.js';
2
+ import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef } from './adult-content-DdY7S5nN.js';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.js';
4
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-B9SuY-EU.js';
4
5
 
5
6
  /**
6
7
  * Read the aggregated profile for a handle or DID.
@@ -31,6 +32,17 @@ declare function fetchAtFundLink(config: SifaApiConfig, did: string, options?: A
31
32
  */
32
33
  declare function fetchGetProfileView(config: SifaApiConfig, actor: string, options?: ApiFetchOptions): Promise<ProfileView | null>;
33
34
 
35
+ /**
36
+ * Fetch the aggregated public profile via `id.sifa.getProfileView` and reduce it
37
+ * to a compact {@link ProfileSummary} (identity, headline, current role/employer,
38
+ * top skills). Convenience over `fetchGetProfileView` + `summarizeProfileView`,
39
+ * for third-party surfaces that only want the headline facts.
40
+ *
41
+ * Returns `null` when the AppView has no profile for the actor. Server-callable
42
+ * (Next.js RSC) and client-callable (Expo, browser).
43
+ */
44
+ declare function fetchProfileSummary(config: SifaApiConfig, actor: string, options?: SummarizeProfileViewOptions & ApiFetchOptions): Promise<ProfileSummary | null>;
45
+
34
46
  /**
35
47
  * Create a new `id.sifa.profile.position` record on the authenticated
36
48
  * user's PDS. The AppView signs and writes via the user's OAuth session.
@@ -271,4 +283,4 @@ declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string,
271
283
  */
272
284
  declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
273
285
 
274
- export { mintEntityDomain as A, resolveEntityDomain as B, revealMarqueDomain as C, selectEntity as D, setPositionPrimary as E, type FetchNetworkStreamCountOptions as F, unhideKeytraceClaim as G, unlinkSkillFromPosition as H, unrevealMarqueDomain as I, unsetPositionPrimary as J, updateEducation as K, updatePosition as L, updateRecord as M, type NetworkMapEdge as N, updateSkill as O, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchGetProfileView as r, fetchNetworkMap as s, fetchNetworkStreamCount as t, fetchProfile as u, hideKeytraceClaim as v, importSearchEntities as w, initiateNetworkMapGeneration as x, isNetworkMapResponse as y, linkSkillToPosition as z };
286
+ export { linkSkillToPosition as A, mintEntityDomain as B, resolveEntityDomain as C, revealMarqueDomain as D, selectEntity as E, type FetchNetworkStreamCountOptions as F, setPositionPrimary as G, unhideKeytraceClaim as H, unlinkSkillFromPosition as I, unrevealMarqueDomain as J, unsetPositionPrimary as K, updateEducation as L, updatePosition as M, type NetworkMapEdge as N, updateRecord as O, updateSkill as P, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchGetProfileView as r, fetchNetworkMap as s, fetchNetworkStreamCount as t, fetchProfile as u, fetchProfileSummary as v, hideKeytraceClaim as w, importSearchEntities as x, initiateNetworkMapGeneration as y, isNetworkMapResponse as z };
@@ -1,6 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-BX4WZoOT.cjs';
2
- import { d as Profile, a0 as ProfileView, e as ProfilePosition, a6 as SkillRef } from './adult-content-C9gi0C_Q.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-DVIvsT_0.cjs';
2
+ import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef } from './adult-content-DdY7S5nN.cjs';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.cjs';
4
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DjRf3Snf.cjs';
4
5
 
5
6
  /**
6
7
  * Read the aggregated profile for a handle or DID.
@@ -31,6 +32,17 @@ declare function fetchAtFundLink(config: SifaApiConfig, did: string, options?: A
31
32
  */
32
33
  declare function fetchGetProfileView(config: SifaApiConfig, actor: string, options?: ApiFetchOptions): Promise<ProfileView | null>;
33
34
 
35
+ /**
36
+ * Fetch the aggregated public profile via `id.sifa.getProfileView` and reduce it
37
+ * to a compact {@link ProfileSummary} (identity, headline, current role/employer,
38
+ * top skills). Convenience over `fetchGetProfileView` + `summarizeProfileView`,
39
+ * for third-party surfaces that only want the headline facts.
40
+ *
41
+ * Returns `null` when the AppView has no profile for the actor. Server-callable
42
+ * (Next.js RSC) and client-callable (Expo, browser).
43
+ */
44
+ declare function fetchProfileSummary(config: SifaApiConfig, actor: string, options?: SummarizeProfileViewOptions & ApiFetchOptions): Promise<ProfileSummary | null>;
45
+
34
46
  /**
35
47
  * Create a new `id.sifa.profile.position` record on the authenticated
36
48
  * user's PDS. The AppView signs and writes via the user's OAuth session.
@@ -271,4 +283,4 @@ declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string,
271
283
  */
272
284
  declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
273
285
 
274
- export { mintEntityDomain as A, resolveEntityDomain as B, revealMarqueDomain as C, selectEntity as D, setPositionPrimary as E, type FetchNetworkStreamCountOptions as F, unhideKeytraceClaim as G, unlinkSkillFromPosition as H, unrevealMarqueDomain as I, unsetPositionPrimary as J, updateEducation as K, updatePosition as L, updateRecord as M, type NetworkMapEdge as N, updateSkill as O, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchGetProfileView as r, fetchNetworkMap as s, fetchNetworkStreamCount as t, fetchProfile as u, hideKeytraceClaim as v, importSearchEntities as w, initiateNetworkMapGeneration as x, isNetworkMapResponse as y, linkSkillToPosition as z };
286
+ export { linkSkillToPosition as A, mintEntityDomain as B, resolveEntityDomain as C, revealMarqueDomain as D, selectEntity as E, type FetchNetworkStreamCountOptions as F, setPositionPrimary as G, unhideKeytraceClaim as H, unlinkSkillFromPosition as I, unrevealMarqueDomain as J, unsetPositionPrimary as K, updateEducation as L, updatePosition as M, type NetworkMapEdge as N, updateRecord as O, updateSkill as P, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchGetProfileView as r, fetchNetworkMap as s, fetchNetworkStreamCount as t, fetchProfile as u, fetchProfileSummary as v, hideKeytraceClaim as w, importSearchEntities as x, initiateNetworkMapGeneration as y, isNetworkMapResponse 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, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-lScz_q2Z.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-CQMDMN58.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 { d as Profile, a0 as ProfileView, e as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, K as OrgFloorVerdict } from './adult-content-C9gi0C_Q.js';
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-DdY7S5nN.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-D2ZV8Eaj.js';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.js';
9
9
 
package/dist/index.cjs CHANGED
@@ -3848,6 +3848,25 @@ function pickPrimaryPosition(positions) {
3848
3848
  return [...active].sort((a, b) => (b.startedAt ?? "").localeCompare(a.startedAt ?? ""))[0];
3849
3849
  }
3850
3850
 
3851
+ // src/logic/profile-summary.ts
3852
+ var DEFAULT_MAX_SKILLS = 5;
3853
+ function summarizeProfileView(view, options = {}) {
3854
+ const limit = Math.max(0, options.maxSkills ?? DEFAULT_MAX_SKILLS);
3855
+ const primary = pickPrimaryPosition(view.positions);
3856
+ return {
3857
+ did: view.did,
3858
+ handle: view.handle,
3859
+ displayName: view.displayName,
3860
+ avatar: view.avatar,
3861
+ pronouns: view.pronouns,
3862
+ headline: view.headline,
3863
+ currentTitle: primary?.title,
3864
+ currentCompany: primary ? primary.entityName ?? primary.company : void 0,
3865
+ topSkills: (view.skills ?? []).slice(0, limit).map((s) => s.name),
3866
+ claimed: view.claimed ?? false
3867
+ };
3868
+ }
3869
+
3851
3870
  // src/logic/pseudo-employer.ts
3852
3871
  var PSEUDO_EMPLOYERS = /* @__PURE__ */ new Set([
3853
3872
  "self",
@@ -4620,7 +4639,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
4620
4639
  });
4621
4640
 
4622
4641
  // src/index.ts
4623
- var SIFA_SDK_VERSION = "0.12.21";
4642
+ var SIFA_SDK_VERSION = "0.12.22";
4624
4643
 
4625
4644
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
4626
4645
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -4859,6 +4878,7 @@ exports.streamVerbSchema = streamVerbSchema;
4859
4878
  exports.stripHtmlToText = stripHtmlToText;
4860
4879
  exports.strongRefSchema = strongRefSchema;
4861
4880
  exports.summarizePresentationDeliveries = summarizePresentationDeliveries;
4881
+ exports.summarizeProfileView = summarizeProfileView;
4862
4882
  exports.toStreamCardVM = toStreamCardVM;
4863
4883
  exports.toStreamCardVMs = toStreamCardVMs;
4864
4884
  exports.truncateGraphemes = truncateGraphemes;