@singi-labs/sifa-sdk 0.12.21 → 0.12.23
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/{adult-content-C9gi0C_Q.d.cts → adult-content-DdY7S5nN.d.cts} +1 -1
- package/dist/{adult-content-C9gi0C_Q.d.ts → adult-content-DdY7S5nN.d.ts} +1 -1
- package/dist/{index-68tJSEtA.d.cts → index-4SE7Z9SK.d.cts} +2 -2
- package/dist/{index-BEDyt4ZP.d.ts → index-BpEeBgRr.d.ts} +15 -3
- package/dist/{index-Cbjiqz7Y.d.cts → index-Bz0xL4us.d.cts} +15 -3
- package/dist/{index-B4NfsdTi.d.ts → index-M_BYlvDY.d.ts} +2 -2
- package/dist/index.cjs +29 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +29 -6
- package/dist/index.js.map +1 -1
- package/dist/{org-lScz_q2Z.d.ts → org-CQMDMN58.d.ts} +1 -1
- package/dist/{org-BX4WZoOT.d.cts → org-DVIvsT_0.d.cts} +1 -1
- package/dist/profile-summary-B9SuY-EU.d.ts +39 -0
- package/dist/profile-summary-DjRf3Snf.d.cts +39 -0
- package/dist/query/fetchers/index.cjs +37 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +4 -3
- package/dist/query/fetchers/index.d.ts +4 -3
- package/dist/query/fetchers/index.js +37 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/index.cjs +37 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +6 -5
- package/dist/query/index.d.ts +6 -5
- package/dist/query/index.js +37 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -939,4 +939,4 @@ declare function hasAdultContent(item: {
|
|
|
939
939
|
labels?: ActivityLabel[];
|
|
940
940
|
}): boolean;
|
|
941
941
|
|
|
942
|
-
export { type
|
|
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
|
|
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-
|
|
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 {
|
|
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-
|
|
2
|
-
import {
|
|
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 {
|
|
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-
|
|
2
|
-
import {
|
|
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 {
|
|
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-
|
|
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 {
|
|
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
|
@@ -2242,9 +2242,13 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
2242
2242
|
tangled: {
|
|
2243
2243
|
profileUrlPattern: "https://tangled.sh/{handle}"
|
|
2244
2244
|
},
|
|
2245
|
+
// Community-calendar events (community.lexicon.calendar.*, incl. records
|
|
2246
|
+
// originally authored in the decommissioned Smoke Signal). atmo.rsvp resolves
|
|
2247
|
+
// any such event by did+rkey, so links point there. Internal id kept as
|
|
2248
|
+
// `smokesignal` for continuity with existing token/color keys.
|
|
2245
2249
|
smokesignal: {
|
|
2246
|
-
urlPattern: "https://
|
|
2247
|
-
profileUrlPattern: "https://
|
|
2250
|
+
urlPattern: "https://atmo.rsvp/p/{did}/e/{rkey}",
|
|
2251
|
+
profileUrlPattern: "https://atmo.rsvp/p/{did}"
|
|
2248
2252
|
},
|
|
2249
2253
|
whitewind: {
|
|
2250
2254
|
urlPattern: "https://whtwnd.com/{handle}/{rkey}",
|
|
@@ -2555,7 +2559,7 @@ function resolveCardHealth(item) {
|
|
|
2555
2559
|
if (subjectUri) {
|
|
2556
2560
|
const parsed3 = parseAtUri(subjectUri);
|
|
2557
2561
|
if (parsed3) {
|
|
2558
|
-
return urlHealth(`https://
|
|
2562
|
+
return urlHealth(`https://atmo.rsvp/p/${parsed3.did}/e/${parsed3.rkey}`);
|
|
2559
2563
|
}
|
|
2560
2564
|
}
|
|
2561
2565
|
}
|
|
@@ -2564,7 +2568,7 @@ function resolveCardHealth(item) {
|
|
|
2564
2568
|
if (collection === "community.lexicon.calendar.event") {
|
|
2565
2569
|
const parsed3 = parseAtUri(uri);
|
|
2566
2570
|
if (parsed3) {
|
|
2567
|
-
return recordHealth(`https://
|
|
2571
|
+
return recordHealth(`https://atmo.rsvp/p/${parsed3.did}/e/${parsed3.rkey}`);
|
|
2568
2572
|
}
|
|
2569
2573
|
return { url: null, strategy: "none" };
|
|
2570
2574
|
}
|
|
@@ -3848,6 +3852,25 @@ function pickPrimaryPosition(positions) {
|
|
|
3848
3852
|
return [...active].sort((a, b) => (b.startedAt ?? "").localeCompare(a.startedAt ?? ""))[0];
|
|
3849
3853
|
}
|
|
3850
3854
|
|
|
3855
|
+
// src/logic/profile-summary.ts
|
|
3856
|
+
var DEFAULT_MAX_SKILLS = 5;
|
|
3857
|
+
function summarizeProfileView(view, options = {}) {
|
|
3858
|
+
const limit = Math.max(0, options.maxSkills ?? DEFAULT_MAX_SKILLS);
|
|
3859
|
+
const primary = pickPrimaryPosition(view.positions);
|
|
3860
|
+
return {
|
|
3861
|
+
did: view.did,
|
|
3862
|
+
handle: view.handle,
|
|
3863
|
+
displayName: view.displayName,
|
|
3864
|
+
avatar: view.avatar,
|
|
3865
|
+
pronouns: view.pronouns,
|
|
3866
|
+
headline: view.headline,
|
|
3867
|
+
currentTitle: primary?.title,
|
|
3868
|
+
currentCompany: primary ? primary.entityName ?? primary.company : void 0,
|
|
3869
|
+
topSkills: (view.skills ?? []).slice(0, limit).map((s) => s.name),
|
|
3870
|
+
claimed: view.claimed ?? false
|
|
3871
|
+
};
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3851
3874
|
// src/logic/pseudo-employer.ts
|
|
3852
3875
|
var PSEUDO_EMPLOYERS = /* @__PURE__ */ new Set([
|
|
3853
3876
|
"self",
|
|
@@ -4620,7 +4643,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
4620
4643
|
});
|
|
4621
4644
|
|
|
4622
4645
|
// src/index.ts
|
|
4623
|
-
var SIFA_SDK_VERSION = "0.12.
|
|
4646
|
+
var SIFA_SDK_VERSION = "0.12.23";
|
|
4624
4647
|
|
|
4625
4648
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
4626
4649
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
|
@@ -4859,6 +4882,7 @@ exports.streamVerbSchema = streamVerbSchema;
|
|
|
4859
4882
|
exports.stripHtmlToText = stripHtmlToText;
|
|
4860
4883
|
exports.strongRefSchema = strongRefSchema;
|
|
4861
4884
|
exports.summarizePresentationDeliveries = summarizePresentationDeliveries;
|
|
4885
|
+
exports.summarizeProfileView = summarizeProfileView;
|
|
4862
4886
|
exports.toStreamCardVM = toStreamCardVM;
|
|
4863
4887
|
exports.toStreamCardVMs = toStreamCardVMs;
|
|
4864
4888
|
exports.truncateGraphemes = truncateGraphemes;
|