@singi-labs/sifa-sdk 0.19.55 → 0.19.56

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 (47) hide show
  1. package/dist/{follow-profile-D1l6pulB.d.ts → follow-profile-CQ3DTTak.d.cts} +3 -0
  2. package/dist/{follow-profile-D1l6pulB.d.cts → follow-profile-ceqefXAw.d.ts} +3 -0
  3. package/dist/{index-DmlIG8sJ.d.cts → index-BeQbepFn.d.cts} +7 -1
  4. package/dist/{index-D9GC0u__.d.ts → index-CT-A3BEe.d.ts} +7 -1
  5. package/dist/index.cjs +16 -2
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +10 -81
  8. package/dist/index.d.ts +10 -81
  9. package/dist/index.js +1 -1
  10. package/dist/jsonld/index.d.cts +2 -2
  11. package/dist/jsonld/index.d.ts +2 -2
  12. package/dist/{network-map-CdYpUy-t.d.cts → network-map-4C9UwVmp.d.cts} +4 -4
  13. package/dist/{network-map-CiWrQ1fF.d.ts → network-map-D-XnMy5U.d.ts} +4 -4
  14. package/dist/{org-fmpG85L0.d.cts → org-DTZzfRQs.d.cts} +16 -3
  15. package/dist/{org-hxHnoBfg.d.ts → org-DtO2TCzd.d.ts} +16 -3
  16. package/dist/{profile-summary-5T1hDw6Q.d.cts → profile-summary-CVFSy7BE.d.cts} +1 -1
  17. package/dist/{profile-summary-Bj7ufSDK.d.ts → profile-summary-DiONU2n-.d.ts} +1 -1
  18. package/dist/query/fetchers/discovery.js.map +1 -1
  19. package/dist/query/fetchers/follow.js.map +1 -1
  20. package/dist/query/fetchers/index.cjs.map +1 -1
  21. package/dist/query/fetchers/index.d.cts +8 -8
  22. package/dist/query/fetchers/index.d.ts +8 -8
  23. package/dist/query/fetchers/search.js.map +1 -1
  24. package/dist/query/hooks/index.cjs.map +1 -1
  25. package/dist/query/hooks/index.d.cts +6 -6
  26. package/dist/query/hooks/index.d.ts +6 -6
  27. package/dist/query/index.cjs.map +1 -1
  28. package/dist/query/index.d.cts +12 -12
  29. package/dist/query/index.d.ts +12 -12
  30. package/dist/resume/index.d.cts +2 -2
  31. package/dist/resume/index.d.ts +2 -2
  32. package/dist/schemas/follow-profile.js +18 -1
  33. package/dist/schemas/follow-profile.js.map +1 -1
  34. package/dist/schemas/index.cjs +53 -1
  35. package/dist/schemas/index.cjs.map +1 -1
  36. package/dist/schemas/index.d.cts +2 -2
  37. package/dist/schemas/index.d.ts +2 -2
  38. package/dist/types/index.js.map +1 -1
  39. package/dist/{types-DHT7jcZc.d.cts → types-Bl8KYBSl.d.ts} +8 -1
  40. package/dist/{types-jB67EFpw.d.ts → types-CYjcuKr4.d.cts} +8 -1
  41. package/dist/{use-org-notification-emails-CWLCWkmb.d.ts → use-org-notification-emails-C-GftYx5.d.ts} +4 -4
  42. package/dist/{use-org-notification-emails-Cj8IDI_7.d.cts → use-org-notification-emails-D29UFyp2.d.cts} +4 -4
  43. package/dist/verification-providers-7il3kPQS.d.cts +158 -0
  44. package/dist/verification-providers-7il3kPQS.d.ts +158 -0
  45. package/package.json +1 -1
  46. package/dist/shared-v0vl5hov.d.cts +0 -87
  47. package/dist/shared-v0vl5hov.d.ts +0 -87
@@ -1,12 +1,12 @@
1
- import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-DHT7jcZc.cjs';
2
- export { O as ApiError, a4 as CompanySearchFilters, a5 as CompanySearchResponse, a6 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, Y as apiFetch, Z as apiFetchOrNull, _ as apiWrite, $ as apiWriteCreate, a7 as fetchSearchCompanies, a0 as fetchSearchFilters, a1 as fetchSearchProfiles, a2 as fetchSkillSuggestions, a3 as searchSkills } from '../../types-DHT7jcZc.cjs';
3
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-CdYpUy-t.cjs';
4
- export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedEmptyReason, T as FollowingFeedResponse, U as FollowingFeedVersion, V as FollowingResponse, W as GetAdminReviewQueuesOptions, X as GithubPullRequest, Y as GivenConfirmation, Z as HIDDEN_ITEM_SOURCES, _ as HIDDEN_ITEM_TYPES, $ as HeatmapDay, a0 as HeatmapResponse, a1 as HiddenActivityItem, a2 as HiddenApp, a3 as HiddenItemSource, a4 as HiddenItemType, a5 as HideActivityItemInput, a6 as HideProfileItemInput, a7 as InboxCounts, a8 as ListFeatureAllowlistOptions, a9 as MyGithubPullRequestsResponse, aa as OrgClaimBinding, ab as OrgClaimResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult, ag as OrgProfileEcho, ah as OrgProfileUpdateResult, ai as PROFILE_COMPLETENESS_SIGNALS, aj as PdsWipeOutcome, ak as PendingConfirmation, al as PendingConfirmationsPage, am as PrimarySection, an as ProfileCompleteness, ao as ProfileCompletenessSignal, ap as ProfileIndustryInput, aq as ProfileLocationAddress, ar as ProfileLocationInput, as as ProfileSelfLocation, at as QUOTED_POSTS_BATCH_MAX, au as QuotedPostAuthor, av as QuotedPostImage, aw as QuotedPostResult, ax as QuotedPostView, ay as ReactionError, az as ReactionResult, aA as ReactionStatus, aB as RefreshOrcidPublicationsResult, aC as RefreshPdsResult, aD as RepoDeleteInput, aE as ResetProfileResult, aF as ResolveQuotedPostsOptions, aG as RoadmapVoteError, aH as RoadmapVoteResult, aI as RoadmapVoter, aJ as RoadmapVotesResponse, aK as SifaQueryKey, aL as SimilarProfile, aM as StatsResponse, aO as SuggestionProfile, aP as SuggestionsResponse, aQ as UnhideActivityItemInput, aR as UnlinkedPosition, aS as UnlinkedPositionsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, aX as VerifyExternalAccountResult, aY as WipePreview, aZ as addFeatureAllowlist, a_ as addOrgNotificationEmail, a$ as bulkHideProfileItems, b0 as bulkHideStandardPublications, b1 as bulkUnhideProfileItems, b2 as bulkUnhideStandardPublications, b3 as castRoadmapVote, b4 as checkAppAccount, b5 as confirmEndorsement, b6 as createConfirmation, b7 as createEndorsement, b8 as createExternalAccount, b9 as createProfileLocation, ba as createReaction, bb as createSkill, bc as deleteAccount, bd as deleteAvatarOverride, be as deleteExternalAccount, bf as deleteNamePronunciationAudio, bg as deleteProfileLocation, bh as deleteReaction, bi as deleteRepoRecords, bj as deleteSkill, bk as dismissConfirmation, bl as dismissUnlinkedPosition, bm as fetchAccounts, bn as fetchActivityFeed, bo as fetchActivityTeaser, bp as fetchAppsRegistry, bq as fetchExternalAccounts, br as fetchFeaturedProfile, bs as fetchFollowing, bt as fetchFollowingFeed, bu as fetchFollowingFeedVersion, bv as fetchGivenConfirmations, bw as fetchHeatmapData, bx as fetchHiddenActivityItems, by as fetchHiddenApps, bz as fetchInboxCounts, bA as fetchMyGithubPullRequests, bB as fetchMyRoadmapVotes, bC as fetchPendingConfirmations, bD as fetchProfileCompleteness, bE as fetchReactionStatus, bF as fetchRepoInventory, bG as fetchRoadmapVotes, bH as fetchSimilarProfiles, bI as fetchStats, bJ as fetchSuggestionCount, bK as fetchSuggestions, bL as fetchUnlinkedPositions, bM as fetchWipePreview, bN as followUser, bO as getAdminReviewQueues, bP as getBlueskySuggestions, bQ as getFollowers, bR as getFollowing, bS as getMutuals, bT as hideActivityItem, bU as hideOrcidPublication, bV as hideProfileItem, bW as hideSifaPublication, bX as hideStandardPublication, bY as isNewerFollowingFeed, bZ as listFeatureAllowlist, b_ as refreshOrcidPublications, b$ as refreshPds, c0 as removeFeatureAllowlist, c1 as removeOrgNotificationEmail, c2 as repoExportUrl, c3 as requestOrgDomainChallenge, c4 as resetProfile, c5 as resolveQuotedPosts, c6 as retractRoadmapVote, c7 as revokeConfirmation, c8 as setExternalAccountPrimary, c9 as setSectionPrimary, s as sifaQueryKeys, ca as submitOrgClaim, cb as switchAccount, cc as unfollowUser, cd as unhideActivityItem, ce as unhideOrcidPublication, cf as unhideProfileItem, cg as unhideSifaPublication, ch as unhideStandardPublication, ci as unsetExternalAccountPrimary, cj as unsetSectionPrimary, ck as updateExternalAccount, cl as updateOrgProfile, cm as updateProfileLocation, cn as updateProfileOverride, co as updateProfileSelf, cp as updateSkill, cr as uploadAvatar, cs as uploadNamePronunciationAudio, ct as verifyExternalAccount, cu as verifyOrgDomain } from '../../org-fmpG85L0.cjs';
5
- import '../../index-DmlIG8sJ.cjs';
6
- import '../../shared-v0vl5hov.cjs';
1
+ import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-CYjcuKr4.cjs';
2
+ export { O as ApiError, a4 as CompanySearchFilters, a5 as CompanySearchResponse, a6 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, Y as apiFetch, Z as apiFetchOrNull, _ as apiWrite, $ as apiWriteCreate, a7 as fetchSearchCompanies, a0 as fetchSearchFilters, a1 as fetchSearchProfiles, a2 as fetchSkillSuggestions, a3 as searchSkills } from '../../types-CYjcuKr4.cjs';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-4C9UwVmp.cjs';
4
+ export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedEmptyReason, T as FollowingFeedResponse, U as FollowingFeedVersion, V as FollowingResponse, W as GetAdminReviewQueuesOptions, X as GithubPullRequest, Y as GivenConfirmation, Z as HIDDEN_ITEM_SOURCES, _ as HIDDEN_ITEM_TYPES, $ as HeatmapDay, a0 as HeatmapResponse, a1 as HiddenActivityItem, a2 as HiddenApp, a3 as HiddenItemSource, a4 as HiddenItemType, a5 as HideActivityItemInput, a6 as HideProfileItemInput, a7 as InboxCounts, a8 as ListFeatureAllowlistOptions, a9 as MyGithubPullRequestsResponse, aa as OrgClaimBinding, ab as OrgClaimResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult, ag as OrgProfileEcho, ah as OrgProfileUpdateResult, ai as PROFILE_COMPLETENESS_SIGNALS, aj as PdsWipeOutcome, ak as PendingConfirmation, al as PendingConfirmationsPage, am as PrimarySection, an as ProfileCompleteness, ao as ProfileCompletenessSignal, ap as ProfileIndustryInput, aq as ProfileLocationAddress, ar as ProfileLocationInput, as as ProfileSelfLocation, at as QUOTED_POSTS_BATCH_MAX, au as QuotedPostAuthor, av as QuotedPostImage, aw as QuotedPostResult, ax as QuotedPostView, ay as ReactionError, az as ReactionResult, aA as ReactionStatus, aB as RefreshOrcidPublicationsResult, aC as RefreshPdsResult, aD as RepoDeleteInput, aE as ResetProfileResult, aF as ResolveQuotedPostsOptions, aG as RoadmapVoteError, aH as RoadmapVoteResult, aI as RoadmapVoter, aJ as RoadmapVotesResponse, aK as SifaQueryKey, aL as SimilarProfile, aM as StatsResponse, aO as SuggestionProfile, aP as SuggestionsResponse, aQ as UnhideActivityItemInput, aR as UnlinkedPosition, aS as UnlinkedPositionsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, aX as VerifyExternalAccountResult, aY as WipePreview, aZ as addFeatureAllowlist, a_ as addOrgNotificationEmail, a$ as bulkHideProfileItems, b0 as bulkHideStandardPublications, b1 as bulkUnhideProfileItems, b2 as bulkUnhideStandardPublications, b3 as castRoadmapVote, b4 as checkAppAccount, b5 as confirmEndorsement, b6 as createConfirmation, b7 as createEndorsement, b8 as createExternalAccount, b9 as createProfileLocation, ba as createReaction, bb as createSkill, bc as deleteAccount, bd as deleteAvatarOverride, be as deleteExternalAccount, bf as deleteNamePronunciationAudio, bg as deleteProfileLocation, bh as deleteReaction, bi as deleteRepoRecords, bj as deleteSkill, bk as dismissConfirmation, bl as dismissUnlinkedPosition, bm as fetchAccounts, bn as fetchActivityFeed, bo as fetchActivityTeaser, bp as fetchAppsRegistry, bq as fetchExternalAccounts, br as fetchFeaturedProfile, bs as fetchFollowing, bt as fetchFollowingFeed, bu as fetchFollowingFeedVersion, bv as fetchGivenConfirmations, bw as fetchHeatmapData, bx as fetchHiddenActivityItems, by as fetchHiddenApps, bz as fetchInboxCounts, bA as fetchMyGithubPullRequests, bB as fetchMyRoadmapVotes, bC as fetchPendingConfirmations, bD as fetchProfileCompleteness, bE as fetchReactionStatus, bF as fetchRepoInventory, bG as fetchRoadmapVotes, bH as fetchSimilarProfiles, bI as fetchStats, bJ as fetchSuggestionCount, bK as fetchSuggestions, bL as fetchUnlinkedPositions, bM as fetchWipePreview, bN as followUser, bO as getAdminReviewQueues, bP as getBlueskySuggestions, bQ as getFollowers, bR as getFollowing, bS as getMutuals, bT as hideActivityItem, bU as hideOrcidPublication, bV as hideProfileItem, bW as hideSifaPublication, bX as hideStandardPublication, bY as isNewerFollowingFeed, bZ as listFeatureAllowlist, b_ as refreshOrcidPublications, b$ as refreshPds, c0 as removeFeatureAllowlist, c1 as removeOrgNotificationEmail, c2 as repoExportUrl, c3 as requestOrgDomainChallenge, c4 as resetProfile, c5 as resolveQuotedPosts, c6 as retractRoadmapVote, c7 as revokeConfirmation, c8 as setExternalAccountPrimary, c9 as setSectionPrimary, s as sifaQueryKeys, ca as submitOrgClaim, cb as switchAccount, cc as unfollowUser, cd as unhideActivityItem, ce as unhideOrcidPublication, cf as unhideProfileItem, cg as unhideSifaPublication, ch as unhideStandardPublication, ci as unsetExternalAccountPrimary, cj as unsetSectionPrimary, ck as updateExternalAccount, cl as updateOrgProfile, cm as updateProfileLocation, cn as updateProfileOverride, co as updateProfileSelf, cp as updateSkill, cr as uploadAvatar, cs as uploadNamePronunciationAudio, ct as verifyExternalAccount, cu as verifyOrgDomain } from '../../org-DTZzfRQs.cjs';
5
+ import '../../index-BeQbepFn.cjs';
6
+ import '../../verification-providers-7il3kPQS.cjs';
7
7
  import 'zod';
8
- import '../../profile-summary-5T1hDw6Q.cjs';
9
- import '../../follow-profile-D1l6pulB.cjs';
8
+ import '../../profile-summary-CVFSy7BE.cjs';
9
+ import '../../follow-profile-CQ3DTTak.cjs';
10
10
  import '../../org-settings-C73Sin5E.cjs';
11
11
 
12
12
  /**
@@ -1,12 +1,12 @@
1
- import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-jB67EFpw.js';
2
- export { O as ApiError, a4 as CompanySearchFilters, a5 as CompanySearchResponse, a6 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, Y as apiFetch, Z as apiFetchOrNull, _ as apiWrite, $ as apiWriteCreate, a7 as fetchSearchCompanies, a0 as fetchSearchFilters, a1 as fetchSearchProfiles, a2 as fetchSkillSuggestions, a3 as searchSkills } from '../../types-jB67EFpw.js';
3
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-CiWrQ1fF.js';
4
- export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedEmptyReason, T as FollowingFeedResponse, U as FollowingFeedVersion, V as FollowingResponse, W as GetAdminReviewQueuesOptions, X as GithubPullRequest, Y as GivenConfirmation, Z as HIDDEN_ITEM_SOURCES, _ as HIDDEN_ITEM_TYPES, $ as HeatmapDay, a0 as HeatmapResponse, a1 as HiddenActivityItem, a2 as HiddenApp, a3 as HiddenItemSource, a4 as HiddenItemType, a5 as HideActivityItemInput, a6 as HideProfileItemInput, a7 as InboxCounts, a8 as ListFeatureAllowlistOptions, a9 as MyGithubPullRequestsResponse, aa as OrgClaimBinding, ab as OrgClaimResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult, ag as OrgProfileEcho, ah as OrgProfileUpdateResult, ai as PROFILE_COMPLETENESS_SIGNALS, aj as PdsWipeOutcome, ak as PendingConfirmation, al as PendingConfirmationsPage, am as PrimarySection, an as ProfileCompleteness, ao as ProfileCompletenessSignal, ap as ProfileIndustryInput, aq as ProfileLocationAddress, ar as ProfileLocationInput, as as ProfileSelfLocation, at as QUOTED_POSTS_BATCH_MAX, au as QuotedPostAuthor, av as QuotedPostImage, aw as QuotedPostResult, ax as QuotedPostView, ay as ReactionError, az as ReactionResult, aA as ReactionStatus, aB as RefreshOrcidPublicationsResult, aC as RefreshPdsResult, aD as RepoDeleteInput, aE as ResetProfileResult, aF as ResolveQuotedPostsOptions, aG as RoadmapVoteError, aH as RoadmapVoteResult, aI as RoadmapVoter, aJ as RoadmapVotesResponse, aK as SifaQueryKey, aL as SimilarProfile, aM as StatsResponse, aO as SuggestionProfile, aP as SuggestionsResponse, aQ as UnhideActivityItemInput, aR as UnlinkedPosition, aS as UnlinkedPositionsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, aX as VerifyExternalAccountResult, aY as WipePreview, aZ as addFeatureAllowlist, a_ as addOrgNotificationEmail, a$ as bulkHideProfileItems, b0 as bulkHideStandardPublications, b1 as bulkUnhideProfileItems, b2 as bulkUnhideStandardPublications, b3 as castRoadmapVote, b4 as checkAppAccount, b5 as confirmEndorsement, b6 as createConfirmation, b7 as createEndorsement, b8 as createExternalAccount, b9 as createProfileLocation, ba as createReaction, bb as createSkill, bc as deleteAccount, bd as deleteAvatarOverride, be as deleteExternalAccount, bf as deleteNamePronunciationAudio, bg as deleteProfileLocation, bh as deleteReaction, bi as deleteRepoRecords, bj as deleteSkill, bk as dismissConfirmation, bl as dismissUnlinkedPosition, bm as fetchAccounts, bn as fetchActivityFeed, bo as fetchActivityTeaser, bp as fetchAppsRegistry, bq as fetchExternalAccounts, br as fetchFeaturedProfile, bs as fetchFollowing, bt as fetchFollowingFeed, bu as fetchFollowingFeedVersion, bv as fetchGivenConfirmations, bw as fetchHeatmapData, bx as fetchHiddenActivityItems, by as fetchHiddenApps, bz as fetchInboxCounts, bA as fetchMyGithubPullRequests, bB as fetchMyRoadmapVotes, bC as fetchPendingConfirmations, bD as fetchProfileCompleteness, bE as fetchReactionStatus, bF as fetchRepoInventory, bG as fetchRoadmapVotes, bH as fetchSimilarProfiles, bI as fetchStats, bJ as fetchSuggestionCount, bK as fetchSuggestions, bL as fetchUnlinkedPositions, bM as fetchWipePreview, bN as followUser, bO as getAdminReviewQueues, bP as getBlueskySuggestions, bQ as getFollowers, bR as getFollowing, bS as getMutuals, bT as hideActivityItem, bU as hideOrcidPublication, bV as hideProfileItem, bW as hideSifaPublication, bX as hideStandardPublication, bY as isNewerFollowingFeed, bZ as listFeatureAllowlist, b_ as refreshOrcidPublications, b$ as refreshPds, c0 as removeFeatureAllowlist, c1 as removeOrgNotificationEmail, c2 as repoExportUrl, c3 as requestOrgDomainChallenge, c4 as resetProfile, c5 as resolveQuotedPosts, c6 as retractRoadmapVote, c7 as revokeConfirmation, c8 as setExternalAccountPrimary, c9 as setSectionPrimary, s as sifaQueryKeys, ca as submitOrgClaim, cb as switchAccount, cc as unfollowUser, cd as unhideActivityItem, ce as unhideOrcidPublication, cf as unhideProfileItem, cg as unhideSifaPublication, ch as unhideStandardPublication, ci as unsetExternalAccountPrimary, cj as unsetSectionPrimary, ck as updateExternalAccount, cl as updateOrgProfile, cm as updateProfileLocation, cn as updateProfileOverride, co as updateProfileSelf, cp as updateSkill, cr as uploadAvatar, cs as uploadNamePronunciationAudio, ct as verifyExternalAccount, cu as verifyOrgDomain } from '../../org-hxHnoBfg.js';
5
- import '../../index-D9GC0u__.js';
6
- import '../../shared-v0vl5hov.js';
1
+ import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-Bl8KYBSl.js';
2
+ export { O as ApiError, a4 as CompanySearchFilters, a5 as CompanySearchResponse, a6 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, Y as apiFetch, Z as apiFetchOrNull, _ as apiWrite, $ as apiWriteCreate, a7 as fetchSearchCompanies, a0 as fetchSearchFilters, a1 as fetchSearchProfiles, a2 as fetchSkillSuggestions, a3 as searchSkills } from '../../types-Bl8KYBSl.js';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-D-XnMy5U.js';
4
+ export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedEmptyReason, T as FollowingFeedResponse, U as FollowingFeedVersion, V as FollowingResponse, W as GetAdminReviewQueuesOptions, X as GithubPullRequest, Y as GivenConfirmation, Z as HIDDEN_ITEM_SOURCES, _ as HIDDEN_ITEM_TYPES, $ as HeatmapDay, a0 as HeatmapResponse, a1 as HiddenActivityItem, a2 as HiddenApp, a3 as HiddenItemSource, a4 as HiddenItemType, a5 as HideActivityItemInput, a6 as HideProfileItemInput, a7 as InboxCounts, a8 as ListFeatureAllowlistOptions, a9 as MyGithubPullRequestsResponse, aa as OrgClaimBinding, ab as OrgClaimResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult, ag as OrgProfileEcho, ah as OrgProfileUpdateResult, ai as PROFILE_COMPLETENESS_SIGNALS, aj as PdsWipeOutcome, ak as PendingConfirmation, al as PendingConfirmationsPage, am as PrimarySection, an as ProfileCompleteness, ao as ProfileCompletenessSignal, ap as ProfileIndustryInput, aq as ProfileLocationAddress, ar as ProfileLocationInput, as as ProfileSelfLocation, at as QUOTED_POSTS_BATCH_MAX, au as QuotedPostAuthor, av as QuotedPostImage, aw as QuotedPostResult, ax as QuotedPostView, ay as ReactionError, az as ReactionResult, aA as ReactionStatus, aB as RefreshOrcidPublicationsResult, aC as RefreshPdsResult, aD as RepoDeleteInput, aE as ResetProfileResult, aF as ResolveQuotedPostsOptions, aG as RoadmapVoteError, aH as RoadmapVoteResult, aI as RoadmapVoter, aJ as RoadmapVotesResponse, aK as SifaQueryKey, aL as SimilarProfile, aM as StatsResponse, aO as SuggestionProfile, aP as SuggestionsResponse, aQ as UnhideActivityItemInput, aR as UnlinkedPosition, aS as UnlinkedPositionsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, aX as VerifyExternalAccountResult, aY as WipePreview, aZ as addFeatureAllowlist, a_ as addOrgNotificationEmail, a$ as bulkHideProfileItems, b0 as bulkHideStandardPublications, b1 as bulkUnhideProfileItems, b2 as bulkUnhideStandardPublications, b3 as castRoadmapVote, b4 as checkAppAccount, b5 as confirmEndorsement, b6 as createConfirmation, b7 as createEndorsement, b8 as createExternalAccount, b9 as createProfileLocation, ba as createReaction, bb as createSkill, bc as deleteAccount, bd as deleteAvatarOverride, be as deleteExternalAccount, bf as deleteNamePronunciationAudio, bg as deleteProfileLocation, bh as deleteReaction, bi as deleteRepoRecords, bj as deleteSkill, bk as dismissConfirmation, bl as dismissUnlinkedPosition, bm as fetchAccounts, bn as fetchActivityFeed, bo as fetchActivityTeaser, bp as fetchAppsRegistry, bq as fetchExternalAccounts, br as fetchFeaturedProfile, bs as fetchFollowing, bt as fetchFollowingFeed, bu as fetchFollowingFeedVersion, bv as fetchGivenConfirmations, bw as fetchHeatmapData, bx as fetchHiddenActivityItems, by as fetchHiddenApps, bz as fetchInboxCounts, bA as fetchMyGithubPullRequests, bB as fetchMyRoadmapVotes, bC as fetchPendingConfirmations, bD as fetchProfileCompleteness, bE as fetchReactionStatus, bF as fetchRepoInventory, bG as fetchRoadmapVotes, bH as fetchSimilarProfiles, bI as fetchStats, bJ as fetchSuggestionCount, bK as fetchSuggestions, bL as fetchUnlinkedPositions, bM as fetchWipePreview, bN as followUser, bO as getAdminReviewQueues, bP as getBlueskySuggestions, bQ as getFollowers, bR as getFollowing, bS as getMutuals, bT as hideActivityItem, bU as hideOrcidPublication, bV as hideProfileItem, bW as hideSifaPublication, bX as hideStandardPublication, bY as isNewerFollowingFeed, bZ as listFeatureAllowlist, b_ as refreshOrcidPublications, b$ as refreshPds, c0 as removeFeatureAllowlist, c1 as removeOrgNotificationEmail, c2 as repoExportUrl, c3 as requestOrgDomainChallenge, c4 as resetProfile, c5 as resolveQuotedPosts, c6 as retractRoadmapVote, c7 as revokeConfirmation, c8 as setExternalAccountPrimary, c9 as setSectionPrimary, s as sifaQueryKeys, ca as submitOrgClaim, cb as switchAccount, cc as unfollowUser, cd as unhideActivityItem, ce as unhideOrcidPublication, cf as unhideProfileItem, cg as unhideSifaPublication, ch as unhideStandardPublication, ci as unsetExternalAccountPrimary, cj as unsetSectionPrimary, ck as updateExternalAccount, cl as updateOrgProfile, cm as updateProfileLocation, cn as updateProfileOverride, co as updateProfileSelf, cp as updateSkill, cr as uploadAvatar, cs as uploadNamePronunciationAudio, ct as verifyExternalAccount, cu as verifyOrgDomain } from '../../org-DtO2TCzd.js';
5
+ import '../../index-CT-A3BEe.js';
6
+ import '../../verification-providers-7il3kPQS.js';
7
7
  import 'zod';
8
- import '../../profile-summary-Bj7ufSDK.js';
9
- import '../../follow-profile-D1l6pulB.js';
8
+ import '../../profile-summary-DiONU2n-.js';
9
+ import '../../follow-profile-ceqefXAw.js';
10
10
  import '../../org-settings-BShvhyFp.js';
11
11
 
12
12
  /**
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/search.ts"],"sourcesContent":["import type { SkillSuggestion } from '../../types/index.js';\nimport { apiFetch, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/** Profile entry returned by the search endpoint. */\nexport interface ProfileSearchResult {\n did?: string;\n handle: string;\n displayName?: string;\n headline?: string;\n avatar?: string;\n about?: string;\n currentRole?: string;\n currentCompany?: string;\n industry?: string;\n domain?: string;\n countryCode?: string;\n locationCountry?: string;\n preferredWorkplace?: string[];\n claimed?: boolean;\n blueskyVerified?: boolean;\n blueskyVerifiedAt?: string | null;\n}\n\nexport interface SearchFilters {\n q?: string;\n skill?: string;\n country?: string;\n industry?: string;\n domain?: string;\n workplace?: string;\n app?: string;\n /**\n * Open-to filter. Values are short tokens (e.g. \"fullTime\", \"mentor\",\n * \"collab\") matching `OPEN_TO_OPTIONS[].token` from the taxonomy. The\n * API expands tokens to lex values server-side. Multiple tokens are\n * OR-combined (profile matches if any selected token is set).\n */\n openTo?: string[];\n limit?: number;\n}\n\nexport interface SearchResponse {\n profiles: ProfileSearchResult[];\n total: number;\n limit: number;\n offset: number;\n}\n\n/** Skill typeahead suggestion. */\nexport interface SkillSearchResult {\n name: string;\n slug: string;\n category: string;\n userCount: number;\n}\n\nexport interface FilterOptions {\n countries: { countryCode: string; country: string; count: number }[];\n industries: { industry: string; count: number }[];\n apps: { appId: string; count: number }[];\n /**\n * Distribution of openTo selections across indexed profiles. Each entry\n * maps a short token (see {@link SearchFilters.openTo}) to the number of\n * profiles that have it set. Omitted from older API responses; treat\n * absence as \"no data\" rather than \"all zero\".\n */\n openTo?: { token: string; count: number }[];\n}\n\n/** Company entry returned by company search (workspace#299). */\nexport interface CompanySearchResult {\n /** Immutable catalogue id; the durable `/c/{publicId}` link. */\n publicId: string;\n name: string;\n domain: string | null;\n country: string | null;\n industry: string | null;\n logoUrl: string | null;\n employeeCount: number | null;\n}\n\nexport interface CompanySearchFilters {\n q?: string;\n /** ISO 3166-1 alpha-2. */\n country?: string;\n industry?: string;\n limit?: number;\n}\n\nexport interface CompanySearchResponse {\n results: CompanySearchResult[];\n hasMore: boolean;\n}\n\nconst EMPTY_SEARCH: SearchResponse = { profiles: [], total: 0, limit: 20, offset: 0 };\nconst EMPTY_FILTERS: FilterOptions = { countries: [], industries: [], apps: [], openTo: [] };\nconst EMPTY_COMPANY_SEARCH: CompanySearchResponse = { results: [], hasMore: false };\n\n/**\n * Search profiles by free-text query and optional filters. Returns an\n * empty result set when no filters are provided (matching sifa-web's\n * \"no input, no fetch\" behavior).\n */\nexport async function fetchSearchProfiles(\n config: SifaApiConfig,\n filters: SearchFilters,\n options: ApiFetchOptions = {},\n): Promise<SearchResponse> {\n const params = new URLSearchParams();\n if (filters.q) params.set('q', filters.q);\n if (filters.skill) params.set('skill', filters.skill);\n if (filters.country) params.set('country', filters.country);\n if (filters.industry) params.set('industry', filters.industry);\n if (filters.domain) params.set('domain', filters.domain);\n if (filters.workplace) params.set('workplace', filters.workplace);\n if (filters.app) params.set('app', filters.app);\n if (filters.openTo && filters.openTo.length > 0) {\n for (const token of filters.openTo) {\n if (token) params.append('openTo', token);\n }\n }\n if (filters.limit !== undefined) params.set('limit', String(filters.limit));\n\n if (params.size === 0) return EMPTY_SEARCH;\n\n return apiFetch<SearchResponse>(config, `/api/search/profiles?${params.toString()}`, {\n cache: 'no-store',\n ...options,\n });\n}\n\n/**\n * Company search over the entity catalogue (workspace#299).\n *\n * A category of its own rather than part of profile search: the two rank\n * differently and carry different filters, and a slow category should not hold\n * up the rest of a blended results page.\n *\n * An empty query returns nothing without a network call. The API rejects a\n * blank `q` rather than scanning ~200k rows, so asking would only spend a round\n * trip to be told no.\n */\nexport async function fetchSearchCompanies(\n config: SifaApiConfig,\n filters: CompanySearchFilters,\n options: ApiFetchOptions = {},\n): Promise<CompanySearchResponse> {\n const q = filters.q?.trim();\n if (!q) return EMPTY_COMPANY_SEARCH;\n\n const params = new URLSearchParams({ q });\n if (filters.country) params.set('country', filters.country);\n if (filters.industry) params.set('industry', filters.industry);\n if (filters.limit !== undefined) params.set('limit', String(filters.limit));\n\n return apiFetch<CompanySearchResponse>(config, `/api/search/companies?${params.toString()}`, {\n cache: 'no-store',\n ...options,\n });\n}\n\n/**\n * Skill typeahead. Returns up to 8 matches for the given prefix. Empty\n * input returns an empty array without hitting the server.\n */\nexport async function fetchSkillSuggestions(\n config: SifaApiConfig,\n query: string,\n options: ApiFetchOptions = {},\n): Promise<SkillSearchResult[]> {\n if (!query.trim()) return [];\n const path = `/api/search/skills?q=${encodeURIComponent(query)}&limit=8`;\n const data = await apiFetch<{ skills?: SkillSearchResult[] }>(config, path, {\n cache: 'no-store',\n ...options,\n });\n return data.skills ?? [];\n}\n\n/** Available filter facets (countries, industries, apps) for search UI. */\nexport async function fetchSearchFilters(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<FilterOptions> {\n try {\n return await apiFetch<FilterOptions>(config, '/api/search/filters', {\n next: { revalidate: 300 },\n ...options,\n });\n } catch {\n return EMPTY_FILTERS;\n }\n}\n\n/**\n * Canonical-skill search backing the position-editor and similar\n * skill-pickers. Hits `/api/skills/search` (the canonical-skills DB\n * lookup) which is distinct from {@link fetchSkillSuggestions}'s\n * `/api/search/skills` (the profile-skill typeahead).\n *\n * Returns `[]` on empty input (no network call) or any error.\n */\nexport async function searchSkills(\n config: SifaApiConfig,\n query: string,\n limit = 10,\n options: ApiFetchOptions = {},\n): Promise<SkillSuggestion[]> {\n if (!query.trim()) return [];\n const path = `/api/skills/search?q=${encodeURIComponent(query)}&limit=${limit}`;\n try {\n const data = await apiFetch<{ skills?: SkillSuggestion[] }>(config, path, {\n cache: 'no-store',\n ...options,\n });\n return data.skills ?? [];\n } catch {\n return [];\n }\n}\n"],"mappings":"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","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/search.ts"],"sourcesContent":["import type { AccountVerification } from '../../taxonomy/verification-providers.js';\nimport type { SkillSuggestion } from '../../types/index.js';\nimport { apiFetch, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/** Profile entry returned by the search endpoint. */\nexport interface ProfileSearchResult {\n did?: string;\n handle: string;\n displayName?: string;\n headline?: string;\n avatar?: string;\n about?: string;\n currentRole?: string;\n currentCompany?: string;\n industry?: string;\n domain?: string;\n countryCode?: string;\n locationCountry?: string;\n preferredWorkplace?: string[];\n claimed?: boolean;\n blueskyVerified?: boolean;\n blueskyVerifiedAt?: string | null;\n /**\n * Every verification the account holds, across all recognized providers\n * (Bluesky and firehose-sourced ones like mu). Supersedes the Bluesky-only\n * `blueskyVerified` pair for badge rendering. Absent on older API responses.\n */\n verificationBadges?: AccountVerification[];\n}\n\nexport interface SearchFilters {\n q?: string;\n skill?: string;\n country?: string;\n industry?: string;\n domain?: string;\n workplace?: string;\n app?: string;\n /**\n * Open-to filter. Values are short tokens (e.g. \"fullTime\", \"mentor\",\n * \"collab\") matching `OPEN_TO_OPTIONS[].token` from the taxonomy. The\n * API expands tokens to lex values server-side. Multiple tokens are\n * OR-combined (profile matches if any selected token is set).\n */\n openTo?: string[];\n limit?: number;\n}\n\nexport interface SearchResponse {\n profiles: ProfileSearchResult[];\n total: number;\n limit: number;\n offset: number;\n}\n\n/** Skill typeahead suggestion. */\nexport interface SkillSearchResult {\n name: string;\n slug: string;\n category: string;\n userCount: number;\n}\n\nexport interface FilterOptions {\n countries: { countryCode: string; country: string; count: number }[];\n industries: { industry: string; count: number }[];\n apps: { appId: string; count: number }[];\n /**\n * Distribution of openTo selections across indexed profiles. Each entry\n * maps a short token (see {@link SearchFilters.openTo}) to the number of\n * profiles that have it set. Omitted from older API responses; treat\n * absence as \"no data\" rather than \"all zero\".\n */\n openTo?: { token: string; count: number }[];\n}\n\n/** Company entry returned by company search (workspace#299). */\nexport interface CompanySearchResult {\n /** Immutable catalogue id; the durable `/c/{publicId}` link. */\n publicId: string;\n name: string;\n domain: string | null;\n country: string | null;\n industry: string | null;\n logoUrl: string | null;\n employeeCount: number | null;\n}\n\nexport interface CompanySearchFilters {\n q?: string;\n /** ISO 3166-1 alpha-2. */\n country?: string;\n industry?: string;\n limit?: number;\n}\n\nexport interface CompanySearchResponse {\n results: CompanySearchResult[];\n hasMore: boolean;\n}\n\nconst EMPTY_SEARCH: SearchResponse = { profiles: [], total: 0, limit: 20, offset: 0 };\nconst EMPTY_FILTERS: FilterOptions = { countries: [], industries: [], apps: [], openTo: [] };\nconst EMPTY_COMPANY_SEARCH: CompanySearchResponse = { results: [], hasMore: false };\n\n/**\n * Search profiles by free-text query and optional filters. Returns an\n * empty result set when no filters are provided (matching sifa-web's\n * \"no input, no fetch\" behavior).\n */\nexport async function fetchSearchProfiles(\n config: SifaApiConfig,\n filters: SearchFilters,\n options: ApiFetchOptions = {},\n): Promise<SearchResponse> {\n const params = new URLSearchParams();\n if (filters.q) params.set('q', filters.q);\n if (filters.skill) params.set('skill', filters.skill);\n if (filters.country) params.set('country', filters.country);\n if (filters.industry) params.set('industry', filters.industry);\n if (filters.domain) params.set('domain', filters.domain);\n if (filters.workplace) params.set('workplace', filters.workplace);\n if (filters.app) params.set('app', filters.app);\n if (filters.openTo && filters.openTo.length > 0) {\n for (const token of filters.openTo) {\n if (token) params.append('openTo', token);\n }\n }\n if (filters.limit !== undefined) params.set('limit', String(filters.limit));\n\n if (params.size === 0) return EMPTY_SEARCH;\n\n return apiFetch<SearchResponse>(config, `/api/search/profiles?${params.toString()}`, {\n cache: 'no-store',\n ...options,\n });\n}\n\n/**\n * Company search over the entity catalogue (workspace#299).\n *\n * A category of its own rather than part of profile search: the two rank\n * differently and carry different filters, and a slow category should not hold\n * up the rest of a blended results page.\n *\n * An empty query returns nothing without a network call. The API rejects a\n * blank `q` rather than scanning ~200k rows, so asking would only spend a round\n * trip to be told no.\n */\nexport async function fetchSearchCompanies(\n config: SifaApiConfig,\n filters: CompanySearchFilters,\n options: ApiFetchOptions = {},\n): Promise<CompanySearchResponse> {\n const q = filters.q?.trim();\n if (!q) return EMPTY_COMPANY_SEARCH;\n\n const params = new URLSearchParams({ q });\n if (filters.country) params.set('country', filters.country);\n if (filters.industry) params.set('industry', filters.industry);\n if (filters.limit !== undefined) params.set('limit', String(filters.limit));\n\n return apiFetch<CompanySearchResponse>(config, `/api/search/companies?${params.toString()}`, {\n cache: 'no-store',\n ...options,\n });\n}\n\n/**\n * Skill typeahead. Returns up to 8 matches for the given prefix. Empty\n * input returns an empty array without hitting the server.\n */\nexport async function fetchSkillSuggestions(\n config: SifaApiConfig,\n query: string,\n options: ApiFetchOptions = {},\n): Promise<SkillSearchResult[]> {\n if (!query.trim()) return [];\n const path = `/api/search/skills?q=${encodeURIComponent(query)}&limit=8`;\n const data = await apiFetch<{ skills?: SkillSearchResult[] }>(config, path, {\n cache: 'no-store',\n ...options,\n });\n return data.skills ?? [];\n}\n\n/** Available filter facets (countries, industries, apps) for search UI. */\nexport async function fetchSearchFilters(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<FilterOptions> {\n try {\n return await apiFetch<FilterOptions>(config, '/api/search/filters', {\n next: { revalidate: 300 },\n ...options,\n });\n } catch {\n return EMPTY_FILTERS;\n }\n}\n\n/**\n * Canonical-skill search backing the position-editor and similar\n * skill-pickers. Hits `/api/skills/search` (the canonical-skills DB\n * lookup) which is distinct from {@link fetchSkillSuggestions}'s\n * `/api/search/skills` (the profile-skill typeahead).\n *\n * Returns `[]` on empty input (no network call) or any error.\n */\nexport async function searchSkills(\n config: SifaApiConfig,\n query: string,\n limit = 10,\n options: ApiFetchOptions = {},\n): Promise<SkillSuggestion[]> {\n if (!query.trim()) return [];\n const path = `/api/skills/search?q=${encodeURIComponent(query)}&limit=${limit}`;\n try {\n const data = await apiFetch<{ skills?: SkillSuggestion[] }>(config, path, {\n cache: 'no-store',\n ...options,\n });\n return data.skills ?? [];\n } catch {\n return [];\n }\n}\n"],"mappings":"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","names":[]}