@singi-labs/sifa-sdk 0.19.96 → 0.19.98

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 (44) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/jev/index.cjs +20 -0
  4. package/dist/jev/index.cjs.map +1 -1
  5. package/dist/jev/index.d.cts +29 -1
  6. package/dist/jev/index.d.ts +29 -1
  7. package/dist/jev/index.js +20 -0
  8. package/dist/jev/index.js.map +1 -1
  9. package/dist/jev/issue.cjs.map +1 -1
  10. package/dist/query/fetchers/admin-review-queues.js +3 -1
  11. package/dist/query/fetchers/admin-review-queues.js.map +1 -1
  12. package/dist/query/fetchers/index.cjs +25 -2
  13. package/dist/query/fetchers/index.cjs.map +1 -1
  14. package/dist/query/fetchers/index.d.cts +1 -1
  15. package/dist/query/fetchers/index.d.ts +1 -1
  16. package/dist/query/fetchers/index.js +4 -0
  17. package/dist/query/fetchers/index.js.map +1 -1
  18. package/dist/query/fetchers/profile-completeness.js +21 -2
  19. package/dist/query/fetchers/profile-completeness.js.map +1 -1
  20. package/dist/query/fetchers/profile-emails.js +66 -0
  21. package/dist/query/fetchers/profile-emails.js.map +1 -0
  22. package/dist/query/hooks/index.cjs +164 -2
  23. package/dist/query/hooks/index.cjs.map +1 -1
  24. package/dist/query/hooks/index.d.cts +2 -2
  25. package/dist/query/hooks/index.d.ts +2 -2
  26. package/dist/query/hooks/index.js +17 -1
  27. package/dist/query/hooks/index.js.map +1 -1
  28. package/dist/query/hooks/use-profile-completeness.js +43 -1
  29. package/dist/query/hooks/use-profile-completeness.js.map +1 -1
  30. package/dist/query/hooks/use-profile-emails.js +73 -0
  31. package/dist/query/hooks/use-profile-emails.js.map +1 -0
  32. package/dist/query/index.cjs +169 -2
  33. package/dist/query/index.cjs.map +1 -1
  34. package/dist/query/index.d.cts +3 -3
  35. package/dist/query/index.d.ts +3 -3
  36. package/dist/query/index.js +33 -1
  37. package/dist/query/index.js.map +1 -1
  38. package/dist/query/keys.js +5 -0
  39. package/dist/query/keys.js.map +1 -1
  40. package/dist/{use-user-settings-CFhaGcAq.d.ts → use-user-settings-CrzlFn2d.d.ts} +100 -2
  41. package/dist/{use-user-settings-CBH1CeDP.d.cts → use-user-settings-DppxALpF.d.cts} +100 -2
  42. package/dist/{user-settings-D1zKOWa2.d.ts → user-settings-Bgm2xbpb.d.ts} +25 -1
  43. package/dist/{user-settings-ChPm0BFN.d.cts → user-settings-C-eXWC6X.d.cts} +25 -1
  44. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { a0 as SifaApiConfig, a1 as ApiFetchOptions, a2 as CreateResult, a3 as WriteResult } from '../../types-Dd7UMXIz.cjs';
2
2
  export { a4 as ApiError, ai as CompanySearchFilters, aj as CompanySearchResponse, ak as CompanySearchResult, a5 as FilterOptions, a6 as ProfileSearchResult, a7 as ProfileSearchSuggestion, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, aa as apiFetch, ab as apiFetchOrNull, ac as apiWrite, ad as apiWriteCreate, al as fetchSearchCompanies, ae as fetchSearchFilters, af as fetchSearchProfiles, ag as fetchSkillSuggestions, ah as searchSkills } from '../../types-Dd7UMXIz.cjs';
3
3
  export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, N as NetworkMapEdge, c as NetworkMapGenerationJob, d as NetworkMapGraphData, e as NetworkMapNode, f as NetworkMapPendingJob, g as NetworkMapResponse, h as PendingEndorsement, P as PendingEndorsementsPage, i as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, j as ReciprocitySkill, S as SpeakerCard, k as SpeakerDirectoryFilters, l as SpeakerGroup, m as SpeakersResponse, T as TalkEvent, n as TalkRow, o as TalkSpeaker, p as TalksResponse, q as checkNetworkMapJobStatus, r as createEducation, s as createPosition, t as createRecord, u as deleteEducation, v as deletePosition, w as deleteRecord, x as dismissEndorsement, y as fetchAtFundLink, z as fetchEndorsementCount, A as fetchEntitySearch, B as fetchGetProfileView, C as fetchNetworkMap, E as fetchNetworkStreamCount, G as fetchPendingEndorsements, H as fetchProfile, I as fetchProfileSummary, J as fetchReceivedEndorsements, K as fetchReciprocityCandidate, L as fetchSpeakers, M as fetchTalks, O as hideKeytraceClaim, Q as importSearchEntities, U as initiateNetworkMapGeneration, V as isNetworkMapResponse, W as linkSkillToPosition, Z as revealMarqueDomain, _ as selectEntity, $ as setPositionPrimary, a0 as unhideKeytraceClaim, a1 as unlinkSkillFromPosition, a2 as unrevealMarqueDomain, a3 as unsetPositionPrimary, a4 as updateEducation, a5 as updatePosition, a6 as updateRecord } from '../../network-map-D39CQj9J.cjs';
4
- export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityPreferences, g as ActivityTeaserResponse, h as AdminReviewQueues, i as AppRegistryEntry, B as BulkHideProfileItemInput, j as CastRoadmapVoteResult, k as CheckAppAccountOptions, C as ConfirmEndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissUnlinkedPositionInput, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchAccountsOptions, t as FetchActivityFeedOptions, u as FetchActivityPreferencesOptions, v as FetchActivityTeaserOptions, w as FetchConfirmationsOptions, x as FetchFollowListOptions, y as FetchFollowProfilePageOptions, z as FetchFollowingFeedOptions, G as FetchHiddenActivityItemsOptions, H as FetchHiddenAppsOptions, I as FetchInboxCountsOptions, J as FetchMyGithubPullRequestsOptions, K as FetchMyRoadmapVotesOptions, L as FetchProfileCompletenessOptions, M as FetchReactionStatusOptions, N as FetchRpgClaimableOptions, O as FetchRpgStatusOptions, P as FetchSuggestionsOptions, Q as FetchUnlinkedPositionsOptions, R as FetchUserSettingsOptions, S as FollowListPage, T as FollowProfile, U as FollowProfilePageResponse, V as FollowUserResult, W as FollowingFeedApp, X as FollowingFeedBuild, Y as FollowingFeedEmptyReason, Z as FollowingFeedResponse, _ as FollowingFeedVersion, $ as FollowingResponse, a0 as GetAdminReviewQueuesOptions, a1 as GithubPullRequest, a2 as GivenConfirmation, a3 as HIDDEN_ITEM_SOURCES, a4 as HIDDEN_ITEM_TYPES, a5 as HeatmapDay, a6 as HeatmapResponse, a7 as HiddenActivityItem, a8 as HiddenApp, a9 as HiddenItemSource, aa as HiddenItemType, ab as HideActivityItemInput, ac as HideProfileItemInput, ad as InboxCounts, ae as ListFeatureAllowlistOptions, af as MyGithubPullRequestsResponse, ag as OrgClaimBinding, ah as OrgClaimResult, ai as OrgDomainChallengeResult, aj as OrgDomainVerifyResult, ak as OrgNotificationEmailAddResult, al as OrgNotificationEmailRemoveResult, am as OrgProfileEcho, an as OrgProfileUpdateResult, ao as PROFILE_COMPLETENESS_SIGNALS, ap as PdsWipeOutcome, aq as PendingConfirmation, ar as PendingConfirmationsPage, as as PrimarySection, at as ProfileCompleteness, au as ProfileCompletenessSignal, av as ProfileIndustryInput, aw as ProfileLocationAddress, ax as ProfileLocationInput, ay as ProfileSelfLocation, az as QUOTED_POSTS_BATCH_MAX, aA as QuotedPostAuthor, aB as QuotedPostImage, aC as QuotedPostResult, aD as QuotedPostView, aE as ReactionError, aF as ReactionResult, aG as ReactionStatus, aH as RefreshOrcidPublicationsResult, aI as RefreshPdsResult, aJ as RepoDeleteInput, aK as ResetProfileResult, aL as ResolveQuotedPostsOptions, aM as RoadmapVoteError, aN as RoadmapVoteResult, aO as RoadmapVoter, aP as RoadmapVotesResponse, aQ as RpgClaimableResponse, aR as RpgClaimableResponseSchema, aS as RpgItemStatus, aT as RpgItemStatusSchema, aU as RpgStatusResponse, aV as RpgStatusResponseSchema, aW as SifaQueryKey, aX as SimilarProfile, aY as SiteActivityPresetResponse, aZ as StatsResponse, a$ as SuggestionProfile, b0 as SuggestionsResponse, b1 as UnhideActivityItemInput, b2 as UnlinkedPosition, b3 as UnlinkedPositionsResult, b4 as UpdateActivityPreferencesInput, b5 as UpdateProfileOverrideInput, b6 as UpdateProfileSelfInput, b7 as UploadAvatarResult, b8 as UploadPronunciationAudioResult, b9 as UserSettings, ba as UserSettingsPatch, bb as UserSettingsSchema, bc as VerifyExternalAccountResult, bd as WipePreview, be as addFeatureAllowlist, bf as addOrgNotificationEmail, bg as bulkHideProfileItems, bh as bulkHideStandardPublications, bi as bulkUnhideProfileItems, bj as bulkUnhideStandardPublications, bk as castRoadmapVote, bl as checkAppAccount, bm as confirmEndorsement, bn as createConfirmation, bo as createEndorsement, bp as createExternalAccount, bq as createProfileLocation, br as createReaction, bs as createSkill, bt as deleteAccount, bu as deleteAvatarOverride, bv as deleteExternalAccount, bw as deleteNamePronunciationAudio, bx as deleteProfileLocation, by as deleteReaction, bz as deleteRepoRecords, bA as deleteSkill, bB as dismissConfirmation, bC as dismissUnlinkedPosition, bD as fetchAccounts, bE as fetchActivityFeed, bF as fetchActivityPreferences, bG as fetchActivityTeaser, bH as fetchAppsRegistry, bI as fetchExternalAccounts, bJ as fetchFeaturedProfile, bK as fetchFollowing, bL as fetchFollowingFeed, bM as fetchFollowingFeedVersion, bN as fetchGivenConfirmations, bO as fetchHeatmapData, bP as fetchHiddenActivityItems, bQ as fetchHiddenApps, bR as fetchInboxCounts, bS as fetchMyGithubPullRequests, bT as fetchMyRoadmapVotes, bU as fetchPendingConfirmations, bV as fetchProfileCompleteness, bW as fetchReactionStatus, bX as fetchRepoInventory, bY as fetchRoadmapVotes, bZ as fetchRpgClaimable, b_ as fetchRpgStatus, b$ as fetchSimilarProfiles, c0 as fetchSiteActivityPreset, c1 as fetchStats, c2 as fetchSuggestionCount, c3 as fetchSuggestions, c4 as fetchUnlinkedPositions, c5 as fetchUserSettings, c6 as fetchViewerPositionConfirmations, c7 as fetchWipePreview, c8 as followUser, c9 as getAdminReviewQueues, ca as getBlueskySuggestions, cb as getFollowers, cc as getFollowing, cd as getMutuals, ce as hideActivityItem, cf as hideOrcidPublication, cg as hideProfileItem, ch as hideSifaPublication, ci as hideStandardPublication, cj as isNewerFollowingFeed, ck as listFeatureAllowlist, cl as refreshOrcidPublications, cm as refreshPds, cn as removeFeatureAllowlist, co as removeOrgNotificationEmail, cp as repoExportUrl, cq as requestOrgDomainChallenge, cr as resetProfile, cs as resolveQuotedPosts, ct as retractRoadmapVote, cu as revokeConfirmation, cv as setExternalAccountPrimary, cw as setSectionPrimary, s as sifaQueryKeys, cx as submitOrgClaim, cy as switchAccount, cz as unfollowUser, cA as unhideActivityItem, cB as unhideOrcidPublication, cC as unhideProfileItem, cD as unhideSifaPublication, cE as unhideStandardPublication, cF as unsetExternalAccountPrimary, cG as unsetSectionPrimary, cH as updateActivityPreferences, cI as updateExternalAccount, cJ as updateOrgProfile, cK as updateProfileLocation, cL as updateProfileOverride, cM as updateProfileSelf, cN as updateSkill, cP as updateUserSettings, cQ as uploadAvatar, cR as uploadNamePronunciationAudio, cS as verifyExternalAccount, cT as verifyOrgDomain } from '../../user-settings-ChPm0BFN.cjs';
4
+ export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityPreferences, g as ActivityTeaserResponse, h as AdminReviewQueues, i as AppRegistryEntry, B as BulkHideProfileItemInput, j as CastRoadmapVoteResult, k as CheckAppAccountOptions, C as ConfirmEndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissCompletenessSignalInput, p as DismissUnlinkedPositionInput, E as EndorsementInput, q as ExternalAccountInput, F as FeatureAllowlistResponse, r as FeaturedProfile, t as FetchAccountsOptions, u as FetchActivityFeedOptions, v as FetchActivityPreferencesOptions, w as FetchActivityTeaserOptions, x as FetchConfirmationsOptions, y as FetchFollowListOptions, z as FetchFollowProfilePageOptions, G as FetchFollowingFeedOptions, H as FetchHiddenActivityItemsOptions, I as FetchHiddenAppsOptions, J as FetchInboxCountsOptions, K as FetchMyGithubPullRequestsOptions, L as FetchMyRoadmapVotesOptions, M as FetchProfileCompletenessOptions, N as FetchReactionStatusOptions, O as FetchRpgClaimableOptions, P as FetchRpgStatusOptions, Q as FetchSuggestionsOptions, R as FetchUnlinkedPositionsOptions, S as FetchUserSettingsOptions, T as FollowListPage, U as FollowProfile, V as FollowProfilePageResponse, W as FollowUserResult, X as FollowingFeedApp, Y as FollowingFeedBuild, Z as FollowingFeedEmptyReason, _ as FollowingFeedResponse, $ as FollowingFeedVersion, a0 as FollowingResponse, a1 as GetAdminReviewQueuesOptions, a2 as GithubPullRequest, a3 as GivenConfirmation, a4 as HIDDEN_ITEM_SOURCES, a5 as HIDDEN_ITEM_TYPES, a6 as HeatmapDay, a7 as HeatmapResponse, a8 as HiddenActivityItem, a9 as HiddenApp, aa as HiddenItemSource, ab as HiddenItemType, ac as HideActivityItemInput, ad as HideProfileItemInput, ae as InboxCounts, af as ListFeatureAllowlistOptions, ag as MyGithubPullRequestsResponse, ah as OrgClaimBinding, ai as OrgClaimResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, an as OrgProfileEcho, ao as OrgProfileUpdateResult, ap as PROFILE_COMPLETENESS_SIGNALS, aq as PdsWipeOutcome, ar as PendingConfirmation, as as PendingConfirmationsPage, at as PrimarySection, au as ProfileCompleteness, av as ProfileCompletenessSignal, aw as ProfileIndustryInput, ax as ProfileLocationAddress, ay as ProfileLocationInput, az as ProfileSelfLocation, aA as QUOTED_POSTS_BATCH_MAX, aB as QuotedPostAuthor, aC as QuotedPostImage, aD as QuotedPostResult, aE as QuotedPostView, aF as ReactionError, aG as ReactionResult, aH as ReactionStatus, aI as RefreshOrcidPublicationsResult, aJ as RefreshPdsResult, aK as RepoDeleteInput, aL as ResetProfileResult, aM as ResolveQuotedPostsOptions, aN as RoadmapVoteError, aO as RoadmapVoteResult, aP as RoadmapVoter, aQ as RoadmapVotesResponse, aR as RpgClaimableResponse, aS as RpgClaimableResponseSchema, aT as RpgItemStatus, aU as RpgItemStatusSchema, aV as RpgStatusResponse, aW as RpgStatusResponseSchema, aX as SifaQueryKey, aY as SimilarProfile, aZ as SiteActivityPresetResponse, a_ as StatsResponse, b0 as SuggestionProfile, b1 as SuggestionsResponse, b2 as UnhideActivityItemInput, b3 as UnlinkedPosition, b4 as UnlinkedPositionsResult, b5 as UpdateActivityPreferencesInput, b6 as UpdateProfileOverrideInput, b7 as UpdateProfileSelfInput, b8 as UploadAvatarResult, b9 as UploadPronunciationAudioResult, ba as UserSettings, bb as UserSettingsPatch, bc as UserSettingsSchema, bd as VerifyExternalAccountResult, be as WipePreview, bf as addFeatureAllowlist, bg as addOrgNotificationEmail, bh as bulkHideProfileItems, bi as bulkHideStandardPublications, bj as bulkUnhideProfileItems, bk as bulkUnhideStandardPublications, bl as castRoadmapVote, bm as checkAppAccount, bn as clearCompletenessDismissals, bo as confirmEndorsement, bp as createConfirmation, bq as createEndorsement, br as createExternalAccount, bs as createProfileLocation, bt as createReaction, bu as createSkill, bv as deleteAccount, bw as deleteAvatarOverride, bx as deleteExternalAccount, by as deleteNamePronunciationAudio, bz as deleteProfileLocation, bA as deleteReaction, bB as deleteRepoRecords, bC as deleteSkill, bD as dismissCompletenessSignal, bE as dismissConfirmation, bF as dismissUnlinkedPosition, bG as fetchAccounts, bH as fetchActivityFeed, bI as fetchActivityPreferences, bJ as fetchActivityTeaser, bK as fetchAppsRegistry, bL as fetchExternalAccounts, bM as fetchFeaturedProfile, bN as fetchFollowing, bO as fetchFollowingFeed, bP as fetchFollowingFeedVersion, bQ as fetchGivenConfirmations, bR as fetchHeatmapData, bS as fetchHiddenActivityItems, bT as fetchHiddenApps, bU as fetchInboxCounts, bV as fetchMyGithubPullRequests, bW as fetchMyRoadmapVotes, bX as fetchPendingConfirmations, bY as fetchProfileCompleteness, bZ as fetchReactionStatus, b_ as fetchRepoInventory, b$ as fetchRoadmapVotes, c0 as fetchRpgClaimable, c1 as fetchRpgStatus, c2 as fetchSimilarProfiles, c3 as fetchSiteActivityPreset, c4 as fetchStats, c5 as fetchSuggestionCount, c6 as fetchSuggestions, c7 as fetchUnlinkedPositions, c8 as fetchUserSettings, c9 as fetchViewerPositionConfirmations, ca as fetchWipePreview, cb as followUser, cc as getAdminReviewQueues, cd as getBlueskySuggestions, ce as getFollowers, cf as getFollowing, cg as getMutuals, ch as hideActivityItem, ci as hideOrcidPublication, cj as hideProfileItem, ck as hideSifaPublication, cl as hideStandardPublication, cm as isNewerFollowingFeed, cn as listFeatureAllowlist, co as refreshOrcidPublications, cp as refreshPds, cq as removeFeatureAllowlist, cr as removeOrgNotificationEmail, cs as repoExportUrl, ct as requestOrgDomainChallenge, cu as resetProfile, cv as resolveQuotedPosts, cw as retractRoadmapVote, cx as revokeConfirmation, cy as setExternalAccountPrimary, cz 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 updateActivityPreferences, cL as updateExternalAccount, cM as updateOrgProfile, cN as updateProfileLocation, cO as updateProfileOverride, cP as updateProfileSelf, cQ as updateSkill, cS as updateUserSettings, cT as uploadAvatar, cU as uploadNamePronunciationAudio, cV as verifyExternalAccount, cW as verifyOrgDomain } from '../../user-settings-C-eXWC6X.cjs';
5
5
  import '../../index-DU0pYHch.cjs';
6
6
  import '../../verification-providers-DeyGqaoC.cjs';
7
7
  import 'zod';
@@ -1,7 +1,7 @@
1
1
  import { a0 as SifaApiConfig, a1 as ApiFetchOptions, a2 as CreateResult, a3 as WriteResult } from '../../types-BqxbmLY6.js';
2
2
  export { a4 as ApiError, ai as CompanySearchFilters, aj as CompanySearchResponse, ak as CompanySearchResult, a5 as FilterOptions, a6 as ProfileSearchResult, a7 as ProfileSearchSuggestion, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, aa as apiFetch, ab as apiFetchOrNull, ac as apiWrite, ad as apiWriteCreate, al as fetchSearchCompanies, ae as fetchSearchFilters, af as fetchSearchProfiles, ag as fetchSkillSuggestions, ah as searchSkills } from '../../types-BqxbmLY6.js';
3
3
  export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, N as NetworkMapEdge, c as NetworkMapGenerationJob, d as NetworkMapGraphData, e as NetworkMapNode, f as NetworkMapPendingJob, g as NetworkMapResponse, h as PendingEndorsement, P as PendingEndorsementsPage, i as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, j as ReciprocitySkill, S as SpeakerCard, k as SpeakerDirectoryFilters, l as SpeakerGroup, m as SpeakersResponse, T as TalkEvent, n as TalkRow, o as TalkSpeaker, p as TalksResponse, q as checkNetworkMapJobStatus, r as createEducation, s as createPosition, t as createRecord, u as deleteEducation, v as deletePosition, w as deleteRecord, x as dismissEndorsement, y as fetchAtFundLink, z as fetchEndorsementCount, A as fetchEntitySearch, B as fetchGetProfileView, C as fetchNetworkMap, E as fetchNetworkStreamCount, G as fetchPendingEndorsements, H as fetchProfile, I as fetchProfileSummary, J as fetchReceivedEndorsements, K as fetchReciprocityCandidate, L as fetchSpeakers, M as fetchTalks, O as hideKeytraceClaim, Q as importSearchEntities, U as initiateNetworkMapGeneration, V as isNetworkMapResponse, W as linkSkillToPosition, Z as revealMarqueDomain, _ as selectEntity, $ as setPositionPrimary, a0 as unhideKeytraceClaim, a1 as unlinkSkillFromPosition, a2 as unrevealMarqueDomain, a3 as unsetPositionPrimary, a4 as updateEducation, a5 as updatePosition, a6 as updateRecord } from '../../network-map-Bx5ohCEV.js';
4
- export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityPreferences, g as ActivityTeaserResponse, h as AdminReviewQueues, i as AppRegistryEntry, B as BulkHideProfileItemInput, j as CastRoadmapVoteResult, k as CheckAppAccountOptions, C as ConfirmEndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissUnlinkedPositionInput, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchAccountsOptions, t as FetchActivityFeedOptions, u as FetchActivityPreferencesOptions, v as FetchActivityTeaserOptions, w as FetchConfirmationsOptions, x as FetchFollowListOptions, y as FetchFollowProfilePageOptions, z as FetchFollowingFeedOptions, G as FetchHiddenActivityItemsOptions, H as FetchHiddenAppsOptions, I as FetchInboxCountsOptions, J as FetchMyGithubPullRequestsOptions, K as FetchMyRoadmapVotesOptions, L as FetchProfileCompletenessOptions, M as FetchReactionStatusOptions, N as FetchRpgClaimableOptions, O as FetchRpgStatusOptions, P as FetchSuggestionsOptions, Q as FetchUnlinkedPositionsOptions, R as FetchUserSettingsOptions, S as FollowListPage, T as FollowProfile, U as FollowProfilePageResponse, V as FollowUserResult, W as FollowingFeedApp, X as FollowingFeedBuild, Y as FollowingFeedEmptyReason, Z as FollowingFeedResponse, _ as FollowingFeedVersion, $ as FollowingResponse, a0 as GetAdminReviewQueuesOptions, a1 as GithubPullRequest, a2 as GivenConfirmation, a3 as HIDDEN_ITEM_SOURCES, a4 as HIDDEN_ITEM_TYPES, a5 as HeatmapDay, a6 as HeatmapResponse, a7 as HiddenActivityItem, a8 as HiddenApp, a9 as HiddenItemSource, aa as HiddenItemType, ab as HideActivityItemInput, ac as HideProfileItemInput, ad as InboxCounts, ae as ListFeatureAllowlistOptions, af as MyGithubPullRequestsResponse, ag as OrgClaimBinding, ah as OrgClaimResult, ai as OrgDomainChallengeResult, aj as OrgDomainVerifyResult, ak as OrgNotificationEmailAddResult, al as OrgNotificationEmailRemoveResult, am as OrgProfileEcho, an as OrgProfileUpdateResult, ao as PROFILE_COMPLETENESS_SIGNALS, ap as PdsWipeOutcome, aq as PendingConfirmation, ar as PendingConfirmationsPage, as as PrimarySection, at as ProfileCompleteness, au as ProfileCompletenessSignal, av as ProfileIndustryInput, aw as ProfileLocationAddress, ax as ProfileLocationInput, ay as ProfileSelfLocation, az as QUOTED_POSTS_BATCH_MAX, aA as QuotedPostAuthor, aB as QuotedPostImage, aC as QuotedPostResult, aD as QuotedPostView, aE as ReactionError, aF as ReactionResult, aG as ReactionStatus, aH as RefreshOrcidPublicationsResult, aI as RefreshPdsResult, aJ as RepoDeleteInput, aK as ResetProfileResult, aL as ResolveQuotedPostsOptions, aM as RoadmapVoteError, aN as RoadmapVoteResult, aO as RoadmapVoter, aP as RoadmapVotesResponse, aQ as RpgClaimableResponse, aR as RpgClaimableResponseSchema, aS as RpgItemStatus, aT as RpgItemStatusSchema, aU as RpgStatusResponse, aV as RpgStatusResponseSchema, aW as SifaQueryKey, aX as SimilarProfile, aY as SiteActivityPresetResponse, aZ as StatsResponse, a$ as SuggestionProfile, b0 as SuggestionsResponse, b1 as UnhideActivityItemInput, b2 as UnlinkedPosition, b3 as UnlinkedPositionsResult, b4 as UpdateActivityPreferencesInput, b5 as UpdateProfileOverrideInput, b6 as UpdateProfileSelfInput, b7 as UploadAvatarResult, b8 as UploadPronunciationAudioResult, b9 as UserSettings, ba as UserSettingsPatch, bb as UserSettingsSchema, bc as VerifyExternalAccountResult, bd as WipePreview, be as addFeatureAllowlist, bf as addOrgNotificationEmail, bg as bulkHideProfileItems, bh as bulkHideStandardPublications, bi as bulkUnhideProfileItems, bj as bulkUnhideStandardPublications, bk as castRoadmapVote, bl as checkAppAccount, bm as confirmEndorsement, bn as createConfirmation, bo as createEndorsement, bp as createExternalAccount, bq as createProfileLocation, br as createReaction, bs as createSkill, bt as deleteAccount, bu as deleteAvatarOverride, bv as deleteExternalAccount, bw as deleteNamePronunciationAudio, bx as deleteProfileLocation, by as deleteReaction, bz as deleteRepoRecords, bA as deleteSkill, bB as dismissConfirmation, bC as dismissUnlinkedPosition, bD as fetchAccounts, bE as fetchActivityFeed, bF as fetchActivityPreferences, bG as fetchActivityTeaser, bH as fetchAppsRegistry, bI as fetchExternalAccounts, bJ as fetchFeaturedProfile, bK as fetchFollowing, bL as fetchFollowingFeed, bM as fetchFollowingFeedVersion, bN as fetchGivenConfirmations, bO as fetchHeatmapData, bP as fetchHiddenActivityItems, bQ as fetchHiddenApps, bR as fetchInboxCounts, bS as fetchMyGithubPullRequests, bT as fetchMyRoadmapVotes, bU as fetchPendingConfirmations, bV as fetchProfileCompleteness, bW as fetchReactionStatus, bX as fetchRepoInventory, bY as fetchRoadmapVotes, bZ as fetchRpgClaimable, b_ as fetchRpgStatus, b$ as fetchSimilarProfiles, c0 as fetchSiteActivityPreset, c1 as fetchStats, c2 as fetchSuggestionCount, c3 as fetchSuggestions, c4 as fetchUnlinkedPositions, c5 as fetchUserSettings, c6 as fetchViewerPositionConfirmations, c7 as fetchWipePreview, c8 as followUser, c9 as getAdminReviewQueues, ca as getBlueskySuggestions, cb as getFollowers, cc as getFollowing, cd as getMutuals, ce as hideActivityItem, cf as hideOrcidPublication, cg as hideProfileItem, ch as hideSifaPublication, ci as hideStandardPublication, cj as isNewerFollowingFeed, ck as listFeatureAllowlist, cl as refreshOrcidPublications, cm as refreshPds, cn as removeFeatureAllowlist, co as removeOrgNotificationEmail, cp as repoExportUrl, cq as requestOrgDomainChallenge, cr as resetProfile, cs as resolveQuotedPosts, ct as retractRoadmapVote, cu as revokeConfirmation, cv as setExternalAccountPrimary, cw as setSectionPrimary, s as sifaQueryKeys, cx as submitOrgClaim, cy as switchAccount, cz as unfollowUser, cA as unhideActivityItem, cB as unhideOrcidPublication, cC as unhideProfileItem, cD as unhideSifaPublication, cE as unhideStandardPublication, cF as unsetExternalAccountPrimary, cG as unsetSectionPrimary, cH as updateActivityPreferences, cI as updateExternalAccount, cJ as updateOrgProfile, cK as updateProfileLocation, cL as updateProfileOverride, cM as updateProfileSelf, cN as updateSkill, cP as updateUserSettings, cQ as uploadAvatar, cR as uploadNamePronunciationAudio, cS as verifyExternalAccount, cT as verifyOrgDomain } from '../../user-settings-D1zKOWa2.js';
4
+ export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityPreferences, g as ActivityTeaserResponse, h as AdminReviewQueues, i as AppRegistryEntry, B as BulkHideProfileItemInput, j as CastRoadmapVoteResult, k as CheckAppAccountOptions, C as ConfirmEndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, n as CreateExternalAccountResult, D as DeleteAccountResult, o as DismissCompletenessSignalInput, p as DismissUnlinkedPositionInput, E as EndorsementInput, q as ExternalAccountInput, F as FeatureAllowlistResponse, r as FeaturedProfile, t as FetchAccountsOptions, u as FetchActivityFeedOptions, v as FetchActivityPreferencesOptions, w as FetchActivityTeaserOptions, x as FetchConfirmationsOptions, y as FetchFollowListOptions, z as FetchFollowProfilePageOptions, G as FetchFollowingFeedOptions, H as FetchHiddenActivityItemsOptions, I as FetchHiddenAppsOptions, J as FetchInboxCountsOptions, K as FetchMyGithubPullRequestsOptions, L as FetchMyRoadmapVotesOptions, M as FetchProfileCompletenessOptions, N as FetchReactionStatusOptions, O as FetchRpgClaimableOptions, P as FetchRpgStatusOptions, Q as FetchSuggestionsOptions, R as FetchUnlinkedPositionsOptions, S as FetchUserSettingsOptions, T as FollowListPage, U as FollowProfile, V as FollowProfilePageResponse, W as FollowUserResult, X as FollowingFeedApp, Y as FollowingFeedBuild, Z as FollowingFeedEmptyReason, _ as FollowingFeedResponse, $ as FollowingFeedVersion, a0 as FollowingResponse, a1 as GetAdminReviewQueuesOptions, a2 as GithubPullRequest, a3 as GivenConfirmation, a4 as HIDDEN_ITEM_SOURCES, a5 as HIDDEN_ITEM_TYPES, a6 as HeatmapDay, a7 as HeatmapResponse, a8 as HiddenActivityItem, a9 as HiddenApp, aa as HiddenItemSource, ab as HiddenItemType, ac as HideActivityItemInput, ad as HideProfileItemInput, ae as InboxCounts, af as ListFeatureAllowlistOptions, ag as MyGithubPullRequestsResponse, ah as OrgClaimBinding, ai as OrgClaimResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, an as OrgProfileEcho, ao as OrgProfileUpdateResult, ap as PROFILE_COMPLETENESS_SIGNALS, aq as PdsWipeOutcome, ar as PendingConfirmation, as as PendingConfirmationsPage, at as PrimarySection, au as ProfileCompleteness, av as ProfileCompletenessSignal, aw as ProfileIndustryInput, ax as ProfileLocationAddress, ay as ProfileLocationInput, az as ProfileSelfLocation, aA as QUOTED_POSTS_BATCH_MAX, aB as QuotedPostAuthor, aC as QuotedPostImage, aD as QuotedPostResult, aE as QuotedPostView, aF as ReactionError, aG as ReactionResult, aH as ReactionStatus, aI as RefreshOrcidPublicationsResult, aJ as RefreshPdsResult, aK as RepoDeleteInput, aL as ResetProfileResult, aM as ResolveQuotedPostsOptions, aN as RoadmapVoteError, aO as RoadmapVoteResult, aP as RoadmapVoter, aQ as RoadmapVotesResponse, aR as RpgClaimableResponse, aS as RpgClaimableResponseSchema, aT as RpgItemStatus, aU as RpgItemStatusSchema, aV as RpgStatusResponse, aW as RpgStatusResponseSchema, aX as SifaQueryKey, aY as SimilarProfile, aZ as SiteActivityPresetResponse, a_ as StatsResponse, b0 as SuggestionProfile, b1 as SuggestionsResponse, b2 as UnhideActivityItemInput, b3 as UnlinkedPosition, b4 as UnlinkedPositionsResult, b5 as UpdateActivityPreferencesInput, b6 as UpdateProfileOverrideInput, b7 as UpdateProfileSelfInput, b8 as UploadAvatarResult, b9 as UploadPronunciationAudioResult, ba as UserSettings, bb as UserSettingsPatch, bc as UserSettingsSchema, bd as VerifyExternalAccountResult, be as WipePreview, bf as addFeatureAllowlist, bg as addOrgNotificationEmail, bh as bulkHideProfileItems, bi as bulkHideStandardPublications, bj as bulkUnhideProfileItems, bk as bulkUnhideStandardPublications, bl as castRoadmapVote, bm as checkAppAccount, bn as clearCompletenessDismissals, bo as confirmEndorsement, bp as createConfirmation, bq as createEndorsement, br as createExternalAccount, bs as createProfileLocation, bt as createReaction, bu as createSkill, bv as deleteAccount, bw as deleteAvatarOverride, bx as deleteExternalAccount, by as deleteNamePronunciationAudio, bz as deleteProfileLocation, bA as deleteReaction, bB as deleteRepoRecords, bC as deleteSkill, bD as dismissCompletenessSignal, bE as dismissConfirmation, bF as dismissUnlinkedPosition, bG as fetchAccounts, bH as fetchActivityFeed, bI as fetchActivityPreferences, bJ as fetchActivityTeaser, bK as fetchAppsRegistry, bL as fetchExternalAccounts, bM as fetchFeaturedProfile, bN as fetchFollowing, bO as fetchFollowingFeed, bP as fetchFollowingFeedVersion, bQ as fetchGivenConfirmations, bR as fetchHeatmapData, bS as fetchHiddenActivityItems, bT as fetchHiddenApps, bU as fetchInboxCounts, bV as fetchMyGithubPullRequests, bW as fetchMyRoadmapVotes, bX as fetchPendingConfirmations, bY as fetchProfileCompleteness, bZ as fetchReactionStatus, b_ as fetchRepoInventory, b$ as fetchRoadmapVotes, c0 as fetchRpgClaimable, c1 as fetchRpgStatus, c2 as fetchSimilarProfiles, c3 as fetchSiteActivityPreset, c4 as fetchStats, c5 as fetchSuggestionCount, c6 as fetchSuggestions, c7 as fetchUnlinkedPositions, c8 as fetchUserSettings, c9 as fetchViewerPositionConfirmations, ca as fetchWipePreview, cb as followUser, cc as getAdminReviewQueues, cd as getBlueskySuggestions, ce as getFollowers, cf as getFollowing, cg as getMutuals, ch as hideActivityItem, ci as hideOrcidPublication, cj as hideProfileItem, ck as hideSifaPublication, cl as hideStandardPublication, cm as isNewerFollowingFeed, cn as listFeatureAllowlist, co as refreshOrcidPublications, cp as refreshPds, cq as removeFeatureAllowlist, cr as removeOrgNotificationEmail, cs as repoExportUrl, ct as requestOrgDomainChallenge, cu as resetProfile, cv as resolveQuotedPosts, cw as retractRoadmapVote, cx as revokeConfirmation, cy as setExternalAccountPrimary, cz 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 updateActivityPreferences, cL as updateExternalAccount, cM as updateOrgProfile, cN as updateProfileLocation, cO as updateProfileOverride, cP as updateProfileSelf, cQ as updateSkill, cS as updateUserSettings, cT as uploadAvatar, cU as uploadNamePronunciationAudio, cV as verifyExternalAccount, cW as verifyOrgDomain } from '../../user-settings-Bgm2xbpb.js';
5
5
  import '../../index-BEAuoL6l.js';
6
6
  import '../../verification-providers-DeyGqaoC.js';
7
7
  import 'zod';
@@ -73,6 +73,8 @@ import {
73
73
  } from "./unlinked-positions.js";
74
74
  import {
75
75
  fetchProfileCompleteness,
76
+ dismissCompletenessSignal,
77
+ clearCompletenessDismissals,
76
78
  PROFILE_COMPLETENESS_SIGNALS
77
79
  } from "./profile-completeness.js";
78
80
  import { hideKeytraceClaim, unhideKeytraceClaim } from "./keytrace-claims.js";
@@ -243,6 +245,7 @@ export {
243
245
  castRoadmapVote,
244
246
  checkAppAccount,
245
247
  checkNetworkMapJobStatus,
248
+ clearCompletenessDismissals,
246
249
  confirmEndorsement,
247
250
  createConfirmation,
248
251
  createEducation,
@@ -266,6 +269,7 @@ export {
266
269
  deleteRecord,
267
270
  deleteRepoRecords,
268
271
  deleteSkill,
272
+ dismissCompletenessSignal,
269
273
  dismissConfirmation,
270
274
  dismissEndorsement,
271
275
  dismissUnlinkedPosition,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/index.ts"],"sourcesContent":["/**\n * Fetcher-only barrel for `@singi-labs/sifa-sdk/query/fetchers`.\n *\n * Pure, no React imports. Safe to import from Next.js React Server\n * Components, edge runtimes, and any other context where React hooks\n * are unavailable. Client components should import from\n * `@singi-labs/sifa-sdk/query` to get hooks + Provider too.\n *\n * Keep in sync with `../index.ts`: every fetcher exported there should\n * also be exported here. Hooks and the Provider live only in the\n * `/query` barrel.\n */\n\nexport {\n ApiError,\n apiFetch,\n apiFetchOrNull,\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type CreateResult,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\nexport { fetchAtFundLink, fetchProfile } from './profile.js';\nexport { fetchGetProfileView } from './get-profile-view.js';\nexport {\n deleteAvatarOverride,\n deleteNamePronunciationAudio,\n refreshPds,\n updateProfileOverride,\n updateProfileSelf,\n uploadAvatar,\n uploadNamePronunciationAudio,\n type ProfileIndustryInput,\n type ProfileSelfLocation,\n type RefreshPdsResult,\n type UpdateProfileOverrideInput,\n type UpdateProfileSelfInput,\n type UploadAvatarResult,\n type UploadPronunciationAudioResult,\n} from './profile-mutations.js';\nexport {\n createPosition,\n deletePosition,\n linkSkillToPosition,\n setPositionPrimary,\n unlinkSkillFromPosition,\n unsetPositionPrimary,\n updatePosition,\n} from './positions.js';\nexport { createEducation, deleteEducation, updateEducation } from './education.js';\nexport { setSectionPrimary, unsetSectionPrimary, type PrimarySection } from './section-primary.js';\nexport { createSkill, deleteSkill, updateSkill } from './skills.js';\nexport { createRecord, deleteRecord, updateRecord } from './records.js';\nexport {\n createProfileLocation,\n deleteProfileLocation,\n updateProfileLocation,\n type ProfileLocationAddress,\n type ProfileLocationInput,\n} from './profile-locations.js';\nexport {\n createExternalAccount,\n deleteExternalAccount,\n fetchExternalAccounts,\n setExternalAccountPrimary,\n unsetExternalAccountPrimary,\n updateExternalAccount,\n verifyExternalAccount,\n type CreateExternalAccountResult,\n type ExternalAccountInput,\n type VerifyExternalAccountResult,\n} from './external-accounts.js';\nexport {\n createEndorsement,\n confirmEndorsement,\n type EndorsementInput,\n type ConfirmEndorsementInput,\n} from './endorsements.js';\nexport {\n fetchReceivedEndorsements,\n type ReceivedEndorsement,\n type ReceivedEndorsementsPage,\n} from './received-endorsements.js';\nexport {\n fetchReciprocityCandidate,\n type ReciprocityCandidate,\n type ReciprocitySkill,\n} from './reciprocity.js';\nexport {\n fetchPendingEndorsements,\n dismissEndorsement,\n type PendingEndorsement,\n type PendingEndorsementsPage,\n type DismissEndorsementInput,\n type FetchPendingEndorsementsOptions,\n} from './endorsement-inbox.js';\nexport {\n fetchPendingConfirmations,\n fetchGivenConfirmations,\n fetchViewerPositionConfirmations,\n createConfirmation,\n dismissConfirmation,\n revokeConfirmation,\n type PendingConfirmation,\n type PendingConfirmationsPage,\n type GivenConfirmation,\n type ConfirmationInput,\n type ConfirmationSubjectInput,\n type FetchConfirmationsOptions,\n} from './confirmations.js';\nexport { fetchInboxCounts, type InboxCounts, type FetchInboxCountsOptions } from './inbox.js';\nexport {\n fetchUnlinkedPositions,\n dismissUnlinkedPosition,\n type UnlinkedPosition,\n type UnlinkedPositionsResult,\n type FetchUnlinkedPositionsOptions,\n type DismissUnlinkedPositionInput,\n} from './unlinked-positions.js';\nexport {\n fetchProfileCompleteness,\n PROFILE_COMPLETENESS_SIGNALS,\n type ProfileCompleteness,\n type ProfileCompletenessSignal,\n type FetchProfileCompletenessOptions,\n} from './profile-completeness.js';\nexport { hideKeytraceClaim, unhideKeytraceClaim } from './keytrace-claims.js';\nexport { revealMarqueDomain, unrevealMarqueDomain } from './marque-domains.js';\nexport {\n bulkHideStandardPublications,\n bulkUnhideStandardPublications,\n hideOrcidPublication,\n hideSifaPublication,\n hideStandardPublication,\n refreshOrcidPublications,\n unhideOrcidPublication,\n unhideSifaPublication,\n unhideStandardPublication,\n type RefreshOrcidPublicationsResult,\n} from './publications.js';\nexport {\n bulkHideProfileItems,\n bulkUnhideProfileItems,\n hideProfileItem,\n unhideProfileItem,\n HIDDEN_ITEM_SOURCES,\n HIDDEN_ITEM_TYPES,\n type BulkHideProfileItemInput,\n type HiddenItemSource,\n type HiddenItemType,\n type HideProfileItemInput,\n} from './profile-items-hide.js';\nexport {\n fetchHiddenActivityItems,\n hideActivityItem,\n unhideActivityItem,\n type FetchHiddenActivityItemsOptions,\n type HiddenActivityItem,\n type HideActivityItemInput,\n type UnhideActivityItemInput,\n} from './activity-items-hide.js';\nexport {\n fetchActivityPreferences,\n fetchSiteActivityPreset,\n updateActivityPreferences,\n type ActivityPreferences,\n type FetchActivityPreferencesOptions,\n type SiteActivityPresetResponse,\n type UpdateActivityPreferencesInput,\n} from './activity-preferences.js';\nexport { fetchStats, type StatsResponse } from './stats.js';\nexport {\n fetchAppsRegistry,\n fetchHiddenApps,\n type AppRegistryEntry,\n type FetchHiddenAppsOptions,\n type HiddenApp,\n} from './apps.js';\nexport {\n fetchAccounts,\n switchAccount,\n type AccountSummary,\n type FetchAccountsOptions,\n} from './accounts.js';\nexport {\n fetchSearchCompanies,\n fetchSearchFilters,\n fetchSearchProfiles,\n fetchSkillSuggestions,\n searchSkills,\n type CompanySearchFilters,\n type CompanySearchResponse,\n type CompanySearchResult,\n type FilterOptions,\n type ProfileSearchResult,\n type ProfileSearchSuggestion,\n type SearchFilters,\n type SearchResponse,\n type SkillSearchResult,\n} from './search.js';\nexport {\n fetchSpeakers,\n fetchTalks,\n type SpeakerCard,\n type SpeakerGroup,\n type SpeakerDirectoryFilters,\n type SpeakersResponse,\n type TalkEvent,\n type TalkRow,\n type TalkSpeaker,\n type TalksResponse,\n} from './speakers.js';\nexport {\n fetchFeaturedProfile,\n fetchSimilarProfiles,\n fetchSuggestionCount,\n fetchSuggestions,\n type FeaturedProfile,\n type FetchSuggestionsOptions,\n type SimilarProfile,\n type SuggestionProfile,\n type SuggestionsResponse,\n} from './discovery.js';\nexport {\n fetchFollowing,\n followUser,\n getFollowers,\n getFollowing,\n fetchFollowingFeed,\n fetchFollowingFeedVersion,\n isNewerFollowingFeed,\n type FollowingFeedVersion,\n type FollowingFeedBuild,\n unfollowUser,\n type FetchFollowListOptions,\n type FetchFollowingFeedOptions,\n type FollowingFeedApp,\n type FollowingFeedEmptyReason,\n type FollowingFeedResponse,\n type FollowListPage,\n type FollowProfile,\n type FollowUserResult,\n type FollowingResponse,\n} from './follow.js';\nexport {\n getBlueskySuggestions,\n getMutuals,\n type FetchFollowProfilePageOptions,\n type FollowProfilePageResponse,\n} from './follow-extras.js';\nexport {\n addFeatureAllowlist,\n listFeatureAllowlist,\n removeFeatureAllowlist,\n type FeatureAllowlistResponse,\n type ListFeatureAllowlistOptions,\n} from './admin-feature-allowlists.js';\nexport {\n getAdminReviewQueues,\n type AdminReviewQueues,\n type GetAdminReviewQueuesOptions,\n} from './admin-review-queues.js';\nexport {\n fetchActivityFeed,\n fetchActivityTeaser,\n fetchHeatmapData,\n type ActivityFeedResponse,\n type ActivityItem,\n type ActivityItemLinkHealth,\n type ActivityTeaserResponse,\n type FetchActivityFeedOptions,\n type FetchActivityTeaserOptions,\n type HeatmapDay,\n type HeatmapResponse,\n} from './activity.js';\nexport {\n fetchMyGithubPullRequests,\n type GithubPullRequest,\n type MyGithubPullRequestsResponse,\n type FetchMyGithubPullRequestsOptions,\n} from './github-prs.js';\nexport {\n fetchRpgStatus,\n fetchRpgClaimable,\n RpgItemStatusSchema,\n RpgStatusResponseSchema,\n RpgClaimableResponseSchema,\n type RpgItemStatus,\n type RpgStatusResponse,\n type FetchRpgStatusOptions,\n type RpgClaimableResponse,\n type FetchRpgClaimableOptions,\n} from './rpg.js';\nexport { fetchEndorsementCount } from './endorsement.js';\nexport { fetchNetworkStreamCount, type FetchNetworkStreamCountOptions } from './stream.js';\nexport {\n checkAppAccount,\n createReaction,\n deleteReaction,\n fetchReactionStatus,\n type AccountCheckResult,\n type CheckAppAccountOptions,\n type FetchReactionStatusOptions,\n type ReactionError,\n type ReactionResult,\n type ReactionStatus,\n} from './reactions.js';\nexport {\n QUOTED_POSTS_BATCH_MAX,\n resolveQuotedPosts,\n type QuotedPostAuthor,\n type QuotedPostImage,\n type QuotedPostResult,\n type QuotedPostView,\n type ResolveQuotedPostsOptions,\n} from './quoted-posts.js';\nexport {\n castRoadmapVote,\n fetchMyRoadmapVotes,\n fetchRoadmapVotes,\n retractRoadmapVote,\n type CastRoadmapVoteResult,\n type FetchMyRoadmapVotesOptions,\n type RoadmapVoteError,\n type RoadmapVoteResult,\n type RoadmapVoter,\n type RoadmapVotesResponse,\n} from './roadmap.js';\nexport {\n deleteAccount,\n fetchWipePreview,\n resetProfile,\n type DeleteAccountResult,\n type ResetProfileResult,\n type PdsWipeOutcome,\n type WipePreview,\n} from './destructive.js';\nexport {\n deleteRepoRecords,\n fetchRepoInventory,\n repoExportUrl,\n type RepoDeleteInput,\n} from './repo-inventory.js';\nexport {\n checkNetworkMapJobStatus,\n fetchNetworkMap,\n initiateNetworkMapGeneration,\n isNetworkMapResponse,\n type NetworkMapEdge,\n type NetworkMapGenerationJob,\n type NetworkMapGraphData,\n type NetworkMapNode,\n type NetworkMapPendingJob,\n type NetworkMapResponse,\n} from './network-map.js';\n\nexport { fetchEntitySearch, selectEntity, importSearchEntities } from './entities.js';\n\nexport {\n submitOrgClaim,\n updateOrgProfile,\n requestOrgDomainChallenge,\n verifyOrgDomain,\n addOrgNotificationEmail,\n removeOrgNotificationEmail,\n type OrgClaimBinding,\n type OrgProfileEcho,\n type OrgClaimResult,\n type OrgProfileUpdateResult,\n type OrgDomainChallengeResult,\n type OrgDomainVerifyResult,\n type OrgNotificationEmailAddResult,\n type OrgNotificationEmailRemoveResult,\n} from './org.js';\n\nexport { fetchProfileSummary } from './profile-summary.js';\n\nexport {\n fetchUserSettings,\n updateUserSettings,\n UserSettingsSchema,\n type FetchUserSettingsOptions,\n type UserSettings,\n type UserSettingsPatch,\n} from './user-settings.js';\n\nexport { sifaQueryKeys, type SifaQueryKey } from '../keys.js';\nexport { createInvestment, updateInvestment, deleteInvestment } from './investments.js';\n"],"mappings":"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","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/index.ts"],"sourcesContent":["/**\n * Fetcher-only barrel for `@singi-labs/sifa-sdk/query/fetchers`.\n *\n * Pure, no React imports. Safe to import from Next.js React Server\n * Components, edge runtimes, and any other context where React hooks\n * are unavailable. Client components should import from\n * `@singi-labs/sifa-sdk/query` to get hooks + Provider too.\n *\n * Keep in sync with `../index.ts`: every fetcher exported there should\n * also be exported here. Hooks and the Provider live only in the\n * `/query` barrel.\n */\n\nexport {\n ApiError,\n apiFetch,\n apiFetchOrNull,\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type CreateResult,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\nexport { fetchAtFundLink, fetchProfile } from './profile.js';\nexport { fetchGetProfileView } from './get-profile-view.js';\nexport {\n deleteAvatarOverride,\n deleteNamePronunciationAudio,\n refreshPds,\n updateProfileOverride,\n updateProfileSelf,\n uploadAvatar,\n uploadNamePronunciationAudio,\n type ProfileIndustryInput,\n type ProfileSelfLocation,\n type RefreshPdsResult,\n type UpdateProfileOverrideInput,\n type UpdateProfileSelfInput,\n type UploadAvatarResult,\n type UploadPronunciationAudioResult,\n} from './profile-mutations.js';\nexport {\n createPosition,\n deletePosition,\n linkSkillToPosition,\n setPositionPrimary,\n unlinkSkillFromPosition,\n unsetPositionPrimary,\n updatePosition,\n} from './positions.js';\nexport { createEducation, deleteEducation, updateEducation } from './education.js';\nexport { setSectionPrimary, unsetSectionPrimary, type PrimarySection } from './section-primary.js';\nexport { createSkill, deleteSkill, updateSkill } from './skills.js';\nexport { createRecord, deleteRecord, updateRecord } from './records.js';\nexport {\n createProfileLocation,\n deleteProfileLocation,\n updateProfileLocation,\n type ProfileLocationAddress,\n type ProfileLocationInput,\n} from './profile-locations.js';\nexport {\n createExternalAccount,\n deleteExternalAccount,\n fetchExternalAccounts,\n setExternalAccountPrimary,\n unsetExternalAccountPrimary,\n updateExternalAccount,\n verifyExternalAccount,\n type CreateExternalAccountResult,\n type ExternalAccountInput,\n type VerifyExternalAccountResult,\n} from './external-accounts.js';\nexport {\n createEndorsement,\n confirmEndorsement,\n type EndorsementInput,\n type ConfirmEndorsementInput,\n} from './endorsements.js';\nexport {\n fetchReceivedEndorsements,\n type ReceivedEndorsement,\n type ReceivedEndorsementsPage,\n} from './received-endorsements.js';\nexport {\n fetchReciprocityCandidate,\n type ReciprocityCandidate,\n type ReciprocitySkill,\n} from './reciprocity.js';\nexport {\n fetchPendingEndorsements,\n dismissEndorsement,\n type PendingEndorsement,\n type PendingEndorsementsPage,\n type DismissEndorsementInput,\n type FetchPendingEndorsementsOptions,\n} from './endorsement-inbox.js';\nexport {\n fetchPendingConfirmations,\n fetchGivenConfirmations,\n fetchViewerPositionConfirmations,\n createConfirmation,\n dismissConfirmation,\n revokeConfirmation,\n type PendingConfirmation,\n type PendingConfirmationsPage,\n type GivenConfirmation,\n type ConfirmationInput,\n type ConfirmationSubjectInput,\n type FetchConfirmationsOptions,\n} from './confirmations.js';\nexport { fetchInboxCounts, type InboxCounts, type FetchInboxCountsOptions } from './inbox.js';\nexport {\n fetchUnlinkedPositions,\n dismissUnlinkedPosition,\n type UnlinkedPosition,\n type UnlinkedPositionsResult,\n type FetchUnlinkedPositionsOptions,\n type DismissUnlinkedPositionInput,\n} from './unlinked-positions.js';\nexport {\n fetchProfileCompleteness,\n dismissCompletenessSignal,\n clearCompletenessDismissals,\n PROFILE_COMPLETENESS_SIGNALS,\n type ProfileCompleteness,\n type ProfileCompletenessSignal,\n type FetchProfileCompletenessOptions,\n type DismissCompletenessSignalInput,\n} from './profile-completeness.js';\nexport { hideKeytraceClaim, unhideKeytraceClaim } from './keytrace-claims.js';\nexport { revealMarqueDomain, unrevealMarqueDomain } from './marque-domains.js';\nexport {\n bulkHideStandardPublications,\n bulkUnhideStandardPublications,\n hideOrcidPublication,\n hideSifaPublication,\n hideStandardPublication,\n refreshOrcidPublications,\n unhideOrcidPublication,\n unhideSifaPublication,\n unhideStandardPublication,\n type RefreshOrcidPublicationsResult,\n} from './publications.js';\nexport {\n bulkHideProfileItems,\n bulkUnhideProfileItems,\n hideProfileItem,\n unhideProfileItem,\n HIDDEN_ITEM_SOURCES,\n HIDDEN_ITEM_TYPES,\n type BulkHideProfileItemInput,\n type HiddenItemSource,\n type HiddenItemType,\n type HideProfileItemInput,\n} from './profile-items-hide.js';\nexport {\n fetchHiddenActivityItems,\n hideActivityItem,\n unhideActivityItem,\n type FetchHiddenActivityItemsOptions,\n type HiddenActivityItem,\n type HideActivityItemInput,\n type UnhideActivityItemInput,\n} from './activity-items-hide.js';\nexport {\n fetchActivityPreferences,\n fetchSiteActivityPreset,\n updateActivityPreferences,\n type ActivityPreferences,\n type FetchActivityPreferencesOptions,\n type SiteActivityPresetResponse,\n type UpdateActivityPreferencesInput,\n} from './activity-preferences.js';\nexport { fetchStats, type StatsResponse } from './stats.js';\nexport {\n fetchAppsRegistry,\n fetchHiddenApps,\n type AppRegistryEntry,\n type FetchHiddenAppsOptions,\n type HiddenApp,\n} from './apps.js';\nexport {\n fetchAccounts,\n switchAccount,\n type AccountSummary,\n type FetchAccountsOptions,\n} from './accounts.js';\nexport {\n fetchSearchCompanies,\n fetchSearchFilters,\n fetchSearchProfiles,\n fetchSkillSuggestions,\n searchSkills,\n type CompanySearchFilters,\n type CompanySearchResponse,\n type CompanySearchResult,\n type FilterOptions,\n type ProfileSearchResult,\n type ProfileSearchSuggestion,\n type SearchFilters,\n type SearchResponse,\n type SkillSearchResult,\n} from './search.js';\nexport {\n fetchSpeakers,\n fetchTalks,\n type SpeakerCard,\n type SpeakerGroup,\n type SpeakerDirectoryFilters,\n type SpeakersResponse,\n type TalkEvent,\n type TalkRow,\n type TalkSpeaker,\n type TalksResponse,\n} from './speakers.js';\nexport {\n fetchFeaturedProfile,\n fetchSimilarProfiles,\n fetchSuggestionCount,\n fetchSuggestions,\n type FeaturedProfile,\n type FetchSuggestionsOptions,\n type SimilarProfile,\n type SuggestionProfile,\n type SuggestionsResponse,\n} from './discovery.js';\nexport {\n fetchFollowing,\n followUser,\n getFollowers,\n getFollowing,\n fetchFollowingFeed,\n fetchFollowingFeedVersion,\n isNewerFollowingFeed,\n type FollowingFeedVersion,\n type FollowingFeedBuild,\n unfollowUser,\n type FetchFollowListOptions,\n type FetchFollowingFeedOptions,\n type FollowingFeedApp,\n type FollowingFeedEmptyReason,\n type FollowingFeedResponse,\n type FollowListPage,\n type FollowProfile,\n type FollowUserResult,\n type FollowingResponse,\n} from './follow.js';\nexport {\n getBlueskySuggestions,\n getMutuals,\n type FetchFollowProfilePageOptions,\n type FollowProfilePageResponse,\n} from './follow-extras.js';\nexport {\n addFeatureAllowlist,\n listFeatureAllowlist,\n removeFeatureAllowlist,\n type FeatureAllowlistResponse,\n type ListFeatureAllowlistOptions,\n} from './admin-feature-allowlists.js';\nexport {\n getAdminReviewQueues,\n type AdminReviewQueues,\n type GetAdminReviewQueuesOptions,\n} from './admin-review-queues.js';\nexport {\n fetchActivityFeed,\n fetchActivityTeaser,\n fetchHeatmapData,\n type ActivityFeedResponse,\n type ActivityItem,\n type ActivityItemLinkHealth,\n type ActivityTeaserResponse,\n type FetchActivityFeedOptions,\n type FetchActivityTeaserOptions,\n type HeatmapDay,\n type HeatmapResponse,\n} from './activity.js';\nexport {\n fetchMyGithubPullRequests,\n type GithubPullRequest,\n type MyGithubPullRequestsResponse,\n type FetchMyGithubPullRequestsOptions,\n} from './github-prs.js';\nexport {\n fetchRpgStatus,\n fetchRpgClaimable,\n RpgItemStatusSchema,\n RpgStatusResponseSchema,\n RpgClaimableResponseSchema,\n type RpgItemStatus,\n type RpgStatusResponse,\n type FetchRpgStatusOptions,\n type RpgClaimableResponse,\n type FetchRpgClaimableOptions,\n} from './rpg.js';\nexport { fetchEndorsementCount } from './endorsement.js';\nexport { fetchNetworkStreamCount, type FetchNetworkStreamCountOptions } from './stream.js';\nexport {\n checkAppAccount,\n createReaction,\n deleteReaction,\n fetchReactionStatus,\n type AccountCheckResult,\n type CheckAppAccountOptions,\n type FetchReactionStatusOptions,\n type ReactionError,\n type ReactionResult,\n type ReactionStatus,\n} from './reactions.js';\nexport {\n QUOTED_POSTS_BATCH_MAX,\n resolveQuotedPosts,\n type QuotedPostAuthor,\n type QuotedPostImage,\n type QuotedPostResult,\n type QuotedPostView,\n type ResolveQuotedPostsOptions,\n} from './quoted-posts.js';\nexport {\n castRoadmapVote,\n fetchMyRoadmapVotes,\n fetchRoadmapVotes,\n retractRoadmapVote,\n type CastRoadmapVoteResult,\n type FetchMyRoadmapVotesOptions,\n type RoadmapVoteError,\n type RoadmapVoteResult,\n type RoadmapVoter,\n type RoadmapVotesResponse,\n} from './roadmap.js';\nexport {\n deleteAccount,\n fetchWipePreview,\n resetProfile,\n type DeleteAccountResult,\n type ResetProfileResult,\n type PdsWipeOutcome,\n type WipePreview,\n} from './destructive.js';\nexport {\n deleteRepoRecords,\n fetchRepoInventory,\n repoExportUrl,\n type RepoDeleteInput,\n} from './repo-inventory.js';\nexport {\n checkNetworkMapJobStatus,\n fetchNetworkMap,\n initiateNetworkMapGeneration,\n isNetworkMapResponse,\n type NetworkMapEdge,\n type NetworkMapGenerationJob,\n type NetworkMapGraphData,\n type NetworkMapNode,\n type NetworkMapPendingJob,\n type NetworkMapResponse,\n} from './network-map.js';\n\nexport { fetchEntitySearch, selectEntity, importSearchEntities } from './entities.js';\n\nexport {\n submitOrgClaim,\n updateOrgProfile,\n requestOrgDomainChallenge,\n verifyOrgDomain,\n addOrgNotificationEmail,\n removeOrgNotificationEmail,\n type OrgClaimBinding,\n type OrgProfileEcho,\n type OrgClaimResult,\n type OrgProfileUpdateResult,\n type OrgDomainChallengeResult,\n type OrgDomainVerifyResult,\n type OrgNotificationEmailAddResult,\n type OrgNotificationEmailRemoveResult,\n} from './org.js';\n\nexport { fetchProfileSummary } from './profile-summary.js';\n\nexport {\n fetchUserSettings,\n updateUserSettings,\n UserSettingsSchema,\n type FetchUserSettingsOptions,\n type UserSettings,\n type UserSettingsPatch,\n} from './user-settings.js';\n\nexport { sifaQueryKeys, type SifaQueryKey } from '../keys.js';\nexport { createInvestment, updateInvestment, deleteInvestment } from './investments.js';\n"],"mappings":"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","names":[]}
@@ -1,5 +1,8 @@
1
1
  // src/query/fetchers/profile-completeness.ts
2
- import { apiFetch } from "../client.js";
2
+ import {
3
+ apiFetch,
4
+ apiWrite
5
+ } from "../client.js";
3
6
  var PROFILE_COMPLETENESS_SIGNALS = [
4
7
  "headline",
5
8
  "about",
@@ -8,6 +11,9 @@ var PROFILE_COMPLETENESS_SIGNALS = [
8
11
  "skill",
9
12
  "certification"
10
13
  ];
14
+ function isProfileCompletenessSignal(value) {
15
+ return PROFILE_COMPLETENESS_SIGNALS.some((signal) => signal === value);
16
+ }
11
17
  async function fetchProfileCompleteness(config, options = {}) {
12
18
  const { cookieHeader, ...rest } = options;
13
19
  const headers = { ...rest.headers ?? {} };
@@ -28,18 +34,31 @@ async function fetchProfileCompleteness(config, options = {}) {
28
34
  });
29
35
  if (!data) return empty;
30
36
  const missing = Array.isArray(data.missing) ? data.missing : [];
37
+ const dismissed = Array.isArray(data.dismissed) ? data.dismissed.filter(isProfileCompletenessSignal) : void 0;
31
38
  return {
32
39
  complete: data.complete ?? missing.length === 0,
33
40
  score: data.score ?? PROFILE_COMPLETENESS_SIGNALS.length - missing.length,
34
41
  total: data.total ?? PROFILE_COMPLETENESS_SIGNALS.length,
35
- missing
42
+ missing,
43
+ ...dismissed ? { dismissed } : {}
36
44
  };
37
45
  } catch {
38
46
  return empty;
39
47
  }
40
48
  }
49
+ function dismissCompletenessSignal(config, data, options = {}) {
50
+ return apiWrite(config, "/api/profile/completeness/dismiss", "POST", { body: data, ...options });
51
+ }
52
+ function clearCompletenessDismissals(config, options = {}) {
53
+ return apiWrite(config, "/api/profile/completeness/dismissals/clear", "POST", {
54
+ body: {},
55
+ ...options
56
+ });
57
+ }
41
58
  export {
42
59
  PROFILE_COMPLETENESS_SIGNALS,
60
+ clearCompletenessDismissals,
61
+ dismissCompletenessSignal,
43
62
  fetchProfileCompleteness
44
63
  };
45
64
  //# sourceMappingURL=profile-completeness.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/profile-completeness.ts"],"sourcesContent":["import { apiFetch, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/**\n * The binary profile-completeness signals the AppView tracks. Each maps to a\n * concrete \"add this to your profile\" step in the unified Inbox checklist.\n */\nexport const PROFILE_COMPLETENESS_SIGNALS = [\n 'headline',\n 'about',\n 'position',\n 'education',\n 'skill',\n 'certification',\n] as const;\n\nexport type ProfileCompletenessSignal = (typeof PROFILE_COMPLETENESS_SIGNALS)[number];\n\n/**\n * Completeness of the signed-in user's own profile: which of the tracked signals\n * are still missing. `missing.length === 0` means complete.\n */\nexport interface ProfileCompleteness {\n /** True when no tracked signal is missing. */\n complete: boolean;\n /** Signals present (of {@link PROFILE_COMPLETENESS_SIGNALS}). */\n score: number;\n /** Total tracked signals. */\n total: number;\n /** The signals still missing, for the checklist. */\n missing: ProfileCompletenessSignal[];\n}\n\nexport interface FetchProfileCompletenessOptions extends ApiFetchOptions {\n /**\n * Pass the caller's `Cookie` header on Next.js RSC server-side calls.\n * `credentials: 'include'` does NOT propagate browser cookies in RSC,\n * so authenticated server fetches must forward the header explicitly.\n */\n cookieHeader?: string;\n}\n\n/**\n * Completeness of the signed-in user's own profile, an \"open task\" surfaced in\n * the unified Inbox as a checklist. Requires credentials -- the AppView reads\n * the owner from the session. Returns a complete-looking result on any failure\n * (no missing signals) so a broken call degrades to \"nothing to do\" rather than\n * nagging the user with a phantom checklist.\n */\nexport async function fetchProfileCompleteness(\n config: SifaApiConfig,\n options: FetchProfileCompletenessOptions = {},\n): Promise<ProfileCompleteness> {\n const { cookieHeader, ...rest } = options;\n const headers: Record<string, string> = { ...(rest.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n\n const empty: ProfileCompleteness = {\n complete: true,\n score: PROFILE_COMPLETENESS_SIGNALS.length,\n total: PROFILE_COMPLETENESS_SIGNALS.length,\n missing: [],\n };\n\n try {\n const data = await apiFetch<ProfileCompleteness>(config, '/api/profile/completeness', {\n cache: 'no-store',\n credentials: 'include',\n timeoutMs: 5000,\n ...rest,\n headers,\n });\n if (!data) return empty;\n const missing = Array.isArray(data.missing) ? data.missing : [];\n return {\n complete: data.complete ?? missing.length === 0,\n score: data.score ?? PROFILE_COMPLETENESS_SIGNALS.length - missing.length,\n total: data.total ?? PROFILE_COMPLETENESS_SIGNALS.length,\n missing,\n };\n } catch {\n return empty;\n }\n}\n"],"mappings":";AAAA,SAAS,gBAA0D;AAM5D,IAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAmCA,eAAsB,yBACpB,QACA,UAA2C,CAAC,GACd;AAC9B,QAAM,EAAE,cAAc,GAAG,KAAK,IAAI;AAClC,QAAM,UAAkC,EAAE,GAAI,KAAK,WAAW,CAAC,EAAG;AAClE,MAAI,aAAc,SAAQ,SAAS;AAEnC,QAAM,QAA6B;AAAA,IACjC,UAAU;AAAA,IACV,OAAO,6BAA6B;AAAA,IACpC,OAAO,6BAA6B;AAAA,IACpC,SAAS,CAAC;AAAA,EACZ;AAEA,MAAI;AACF,UAAM,OAAO,MAAM,SAA8B,QAAQ,6BAA6B;AAAA,MACpF,OAAO;AAAA,MACP,aAAa;AAAA,MACb,WAAW;AAAA,MACX,GAAG;AAAA,MACH;AAAA,IACF,CAAC;AACD,QAAI,CAAC,KAAM,QAAO;AAClB,UAAM,UAAU,MAAM,QAAQ,KAAK,OAAO,IAAI,KAAK,UAAU,CAAC;AAC9D,WAAO;AAAA,MACL,UAAU,KAAK,YAAY,QAAQ,WAAW;AAAA,MAC9C,OAAO,KAAK,SAAS,6BAA6B,SAAS,QAAQ;AAAA,MACnE,OAAO,KAAK,SAAS,6BAA6B;AAAA,MAClD;AAAA,IACF;AAAA,EACF,QAAQ;AACN,WAAO;AAAA,EACT;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/profile-completeness.ts"],"sourcesContent":["import {\n apiFetch,\n apiWrite,\n type ApiFetchOptions,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\n/**\n * The binary profile-completeness signals the AppView tracks. Each maps to a\n * concrete \"add this to your profile\" step in the unified Inbox checklist.\n */\nexport const PROFILE_COMPLETENESS_SIGNALS = [\n 'headline',\n 'about',\n 'position',\n 'education',\n 'skill',\n 'certification',\n] as const;\n\nexport type ProfileCompletenessSignal = (typeof PROFILE_COMPLETENESS_SIGNALS)[number];\n\nfunction isProfileCompletenessSignal(value: unknown): value is ProfileCompletenessSignal {\n return PROFILE_COMPLETENESS_SIGNALS.some((signal) => signal === value);\n}\n\n/**\n * Completeness of the signed-in user's own profile: which of the tracked signals\n * are still missing. `missing.length === 0` means complete.\n */\nexport interface ProfileCompleteness {\n /** True when no tracked signal is missing. */\n complete: boolean;\n /** Signals present (of {@link PROFILE_COMPLETENESS_SIGNALS}). */\n score: number;\n /** Total tracked signals. */\n total: number;\n /** The signals still missing, for the checklist. */\n missing: ProfileCompletenessSignal[];\n /**\n * Signals the user hid from the checklist. They stay in `missing` (the score\n * is unchanged); clients hide them. Absent from an AppView that predates\n * server-side dismissals.\n */\n dismissed?: ProfileCompletenessSignal[];\n}\n\nexport interface FetchProfileCompletenessOptions extends ApiFetchOptions {\n /**\n * Pass the caller's `Cookie` header on Next.js RSC server-side calls.\n * `credentials: 'include'` does NOT propagate browser cookies in RSC,\n * so authenticated server fetches must forward the header explicitly.\n */\n cookieHeader?: string;\n}\n\n/**\n * Completeness of the signed-in user's own profile, an \"open task\" surfaced in\n * the unified Inbox as a checklist. Requires credentials -- the AppView reads\n * the owner from the session. Returns a complete-looking result on any failure\n * (no missing signals) so a broken call degrades to \"nothing to do\" rather than\n * nagging the user with a phantom checklist.\n */\nexport async function fetchProfileCompleteness(\n config: SifaApiConfig,\n options: FetchProfileCompletenessOptions = {},\n): Promise<ProfileCompleteness> {\n const { cookieHeader, ...rest } = options;\n const headers: Record<string, string> = { ...(rest.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n\n const empty: ProfileCompleteness = {\n complete: true,\n score: PROFILE_COMPLETENESS_SIGNALS.length,\n total: PROFILE_COMPLETENESS_SIGNALS.length,\n missing: [],\n };\n\n try {\n const data = await apiFetch<ProfileCompleteness>(config, '/api/profile/completeness', {\n cache: 'no-store',\n credentials: 'include',\n timeoutMs: 5000,\n ...rest,\n headers,\n });\n if (!data) return empty;\n const missing = Array.isArray(data.missing) ? data.missing : [];\n const dismissed = Array.isArray(data.dismissed)\n ? data.dismissed.filter(isProfileCompletenessSignal)\n : undefined;\n return {\n complete: data.complete ?? missing.length === 0,\n score: data.score ?? PROFILE_COMPLETENESS_SIGNALS.length - missing.length,\n total: data.total ?? PROFILE_COMPLETENESS_SIGNALS.length,\n missing,\n ...(dismissed ? { dismissed } : {}),\n };\n } catch {\n return empty;\n }\n}\n\n/** Body accepted by {@link dismissCompletenessSignal}. */\nexport interface DismissCompletenessSignalInput {\n signal: ProfileCompletenessSignal;\n}\n\n/**\n * Hide one \"complete your profile\" item for the signed-in user, on every\n * device. Writes nothing to any PDS and leaves the score unchanged.\n */\nexport function dismissCompletenessSignal(\n config: SifaApiConfig,\n data: DismissCompletenessSignalInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/completeness/dismiss', 'POST', { body: data, ...options });\n}\n\n/** Show every hidden \"complete your profile\" item again. */\nexport function clearCompletenessDismissals(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n // An empty JSON object, not no body: the AppView rejects an empty body sent\n // with a JSON content type.\n return apiWrite(config, '/api/profile/completeness/dismissals/clear', 'POST', {\n body: {},\n ...options,\n });\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AAMA,IAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAIA,SAAS,4BAA4B,OAAoD;AACvF,SAAO,6BAA6B,KAAK,CAAC,WAAW,WAAW,KAAK;AACvE;AAuCA,eAAsB,yBACpB,QACA,UAA2C,CAAC,GACd;AAC9B,QAAM,EAAE,cAAc,GAAG,KAAK,IAAI;AAClC,QAAM,UAAkC,EAAE,GAAI,KAAK,WAAW,CAAC,EAAG;AAClE,MAAI,aAAc,SAAQ,SAAS;AAEnC,QAAM,QAA6B;AAAA,IACjC,UAAU;AAAA,IACV,OAAO,6BAA6B;AAAA,IACpC,OAAO,6BAA6B;AAAA,IACpC,SAAS,CAAC;AAAA,EACZ;AAEA,MAAI;AACF,UAAM,OAAO,MAAM,SAA8B,QAAQ,6BAA6B;AAAA,MACpF,OAAO;AAAA,MACP,aAAa;AAAA,MACb,WAAW;AAAA,MACX,GAAG;AAAA,MACH;AAAA,IACF,CAAC;AACD,QAAI,CAAC,KAAM,QAAO;AAClB,UAAM,UAAU,MAAM,QAAQ,KAAK,OAAO,IAAI,KAAK,UAAU,CAAC;AAC9D,UAAM,YAAY,MAAM,QAAQ,KAAK,SAAS,IAC1C,KAAK,UAAU,OAAO,2BAA2B,IACjD;AACJ,WAAO;AAAA,MACL,UAAU,KAAK,YAAY,QAAQ,WAAW;AAAA,MAC9C,OAAO,KAAK,SAAS,6BAA6B,SAAS,QAAQ;AAAA,MACnE,OAAO,KAAK,SAAS,6BAA6B;AAAA,MAClD;AAAA,MACA,GAAI,YAAY,EAAE,UAAU,IAAI,CAAC;AAAA,IACnC;AAAA,EACF,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAWO,SAAS,0BACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,qCAAqC,QAAQ,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AACjG;AAGO,SAAS,4BACd,QACA,UAA2B,CAAC,GACN;AAGtB,SAAO,SAAS,QAAQ,8CAA8C,QAAQ;AAAA,IAC5E,MAAM,CAAC;AAAA,IACP,GAAG;AAAA,EACL,CAAC;AACH;","names":[]}
@@ -0,0 +1,66 @@
1
+ // src/query/fetchers/profile-emails.ts
2
+ import { z } from "zod";
3
+ import {
4
+ apiFetch,
5
+ apiWrite,
6
+ apiWriteCreate
7
+ } from "../client.js";
8
+ var ProfileEmailSchema = z.object({
9
+ id: z.number(),
10
+ email: z.string(),
11
+ emailDomain: z.string(),
12
+ status: z.enum(["verified", "pending", "expired"]),
13
+ verifiedAt: z.string().nullable(),
14
+ verificationSentAt: z.string().nullable(),
15
+ createdAt: z.string()
16
+ }).passthrough();
17
+ var ProfileEmailsSchema = z.object({
18
+ emails: z.array(ProfileEmailSchema).default([]),
19
+ /** False while Sifa does not send email; links are not sent then. */
20
+ sending: z.boolean().default(false)
21
+ });
22
+ async function fetchProfileEmails(config, options = {}) {
23
+ const { cookieHeader, ...rest } = options;
24
+ const headers = { ...rest.headers ?? {} };
25
+ if (cookieHeader) headers.cookie = cookieHeader;
26
+ try {
27
+ const data = await apiFetch(config, "/api/profile-emails", {
28
+ cache: "no-store",
29
+ credentials: "include",
30
+ timeoutMs: 5e3,
31
+ ...rest,
32
+ headers
33
+ });
34
+ const parsed = ProfileEmailsSchema.safeParse(data);
35
+ return parsed.success ? parsed.data : { emails: [], sending: false };
36
+ } catch {
37
+ return { emails: [], sending: false };
38
+ }
39
+ }
40
+ function addProfileEmail(config, email, options = {}) {
41
+ return apiWriteCreate(
42
+ config,
43
+ "/api/profile-emails",
44
+ { email },
45
+ options
46
+ );
47
+ }
48
+ function resendProfileEmailVerification(config, id, options = {}) {
49
+ return apiWrite(
50
+ config,
51
+ `/api/profile-emails/${id}/resend`,
52
+ "POST",
53
+ options
54
+ );
55
+ }
56
+ function removeProfileEmail(config, id, options = {}) {
57
+ return apiWrite(config, `/api/profile-emails/${id}`, "DELETE", options);
58
+ }
59
+ export {
60
+ ProfileEmailSchema,
61
+ addProfileEmail,
62
+ fetchProfileEmails,
63
+ removeProfileEmail,
64
+ resendProfileEmailVerification
65
+ };
66
+ //# sourceMappingURL=profile-emails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/query/fetchers/profile-emails.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport {\n apiFetch,\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\n/**\n * Personal email addresses (sifa-workspace#158), managed in settings and\n * verified one by one through a link. Employment verification by email\n * (#162) builds on the verified ones. Owner-only AppView shapes.\n */\n\nexport const ProfileEmailSchema = z\n .object({\n id: z.number(),\n email: z.string(),\n emailDomain: z.string(),\n status: z.enum(['verified', 'pending', 'expired']),\n verifiedAt: z.string().nullable(),\n verificationSentAt: z.string().nullable(),\n createdAt: z.string(),\n })\n .passthrough();\n\nexport type ProfileEmail = z.infer<typeof ProfileEmailSchema>;\n\nconst ProfileEmailsSchema = z.object({\n emails: z.array(ProfileEmailSchema).default([]),\n /** False while Sifa does not send email; links are not sent then. */\n sending: z.boolean().default(false),\n});\n\nexport type ProfileEmails = z.infer<typeof ProfileEmailsSchema>;\n\n/** `sends_paused` means the address is stored but no link went out. */\nexport type ProfileEmailSendStatus =\n 'verification_sent' | 'sends_paused' | 'send_failed' | 'already_verified';\n\nexport interface FetchProfileEmailsOptions extends ApiFetchOptions {\n /** Forward the caller's Cookie header on Next.js RSC server-side calls. */\n cookieHeader?: string;\n}\n\n/** The signed-in account's addresses. Empty on any failure. */\nexport async function fetchProfileEmails(\n config: SifaApiConfig,\n options: FetchProfileEmailsOptions = {},\n): Promise<ProfileEmails> {\n const { cookieHeader, ...rest } = options;\n const headers: Record<string, string> = { ...(rest.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n try {\n const data = await apiFetch<unknown>(config, '/api/profile-emails', {\n cache: 'no-store',\n credentials: 'include',\n timeoutMs: 5000,\n ...rest,\n headers,\n });\n const parsed = ProfileEmailsSchema.safeParse(data);\n return parsed.success ? parsed.data : { emails: [], sending: false };\n } catch {\n return { emails: [], sending: false };\n }\n}\n\nexport function addProfileEmail(\n config: SifaApiConfig,\n email: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult<ProfileEmail & { sendStatus: ProfileEmailSendStatus }>> {\n return apiWriteCreate<ProfileEmail & { sendStatus: ProfileEmailSendStatus }>(\n config,\n '/api/profile-emails',\n { email },\n options,\n );\n}\n\nexport function resendProfileEmailVerification(\n config: SifaApiConfig,\n id: number,\n options: ApiFetchOptions = {},\n): Promise<WriteResult<{ sendStatus: ProfileEmailSendStatus }>> {\n return apiWrite<{ sendStatus: ProfileEmailSendStatus }>(\n config,\n `/api/profile-emails/${id}/resend`,\n 'POST',\n options,\n );\n}\n\nexport function removeProfileEmail(\n config: SifaApiConfig,\n id: number,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile-emails/${id}`, 'DELETE', options);\n}\n"],"mappings":";AAAA,SAAS,SAAS;AAElB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAQA,IAAM,qBAAqB,EAC/B,OAAO;AAAA,EACN,IAAI,EAAE,OAAO;AAAA,EACb,OAAO,EAAE,OAAO;AAAA,EAChB,aAAa,EAAE,OAAO;AAAA,EACtB,QAAQ,EAAE,KAAK,CAAC,YAAY,WAAW,SAAS,CAAC;AAAA,EACjD,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,EAChC,oBAAoB,EAAE,OAAO,EAAE,SAAS;AAAA,EACxC,WAAW,EAAE,OAAO;AACtB,CAAC,EACA,YAAY;AAIf,IAAM,sBAAsB,EAAE,OAAO;AAAA,EACnC,QAAQ,EAAE,MAAM,kBAAkB,EAAE,QAAQ,CAAC,CAAC;AAAA;AAAA,EAE9C,SAAS,EAAE,QAAQ,EAAE,QAAQ,KAAK;AACpC,CAAC;AAcD,eAAsB,mBACpB,QACA,UAAqC,CAAC,GACd;AACxB,QAAM,EAAE,cAAc,GAAG,KAAK,IAAI;AAClC,QAAM,UAAkC,EAAE,GAAI,KAAK,WAAW,CAAC,EAAG;AAClE,MAAI,aAAc,SAAQ,SAAS;AACnC,MAAI;AACF,UAAM,OAAO,MAAM,SAAkB,QAAQ,uBAAuB;AAAA,MAClE,OAAO;AAAA,MACP,aAAa;AAAA,MACb,WAAW;AAAA,MACX,GAAG;AAAA,MACH;AAAA,IACF,CAAC;AACD,UAAM,SAAS,oBAAoB,UAAU,IAAI;AACjD,WAAO,OAAO,UAAU,OAAO,OAAO,EAAE,QAAQ,CAAC,GAAG,SAAS,MAAM;AAAA,EACrE,QAAQ;AACN,WAAO,EAAE,QAAQ,CAAC,GAAG,SAAS,MAAM;AAAA,EACtC;AACF;AAEO,SAAS,gBACd,QACA,OACA,UAA2B,CAAC,GACiD;AAC7E,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,EAAE,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAEO,SAAS,+BACd,QACA,IACA,UAA2B,CAAC,GACkC;AAC9D,SAAO;AAAA,IACL;AAAA,IACA,uBAAuB,EAAE;AAAA,IACzB;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,mBACd,QACA,IACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,uBAAuB,EAAE,IAAI,UAAU,OAAO;AACxE;","names":[]}
@@ -298,6 +298,11 @@ var sifaQueryKeys = {
298
298
  /** Pending confirmation requests addressed to the signed-in organization. */
299
299
  attestationRequests: () => ["sifa", "org", "attestation-requests"]
300
300
  },
301
+ profileEmails: {
302
+ all: () => ["sifa", "profile-emails"],
303
+ /** The signed-in account's email addresses (#158). */
304
+ list: () => ["sifa", "profile-emails", "list"]
305
+ },
301
306
  verification: {
302
307
  all: () => ["sifa", "verification"],
303
308
  /** The append-only verification log of one position. */
@@ -1532,6 +1537,108 @@ function useVerificationLog(did, positionRkey, options) {
1532
1537
  ...options
1533
1538
  });
1534
1539
  }
1540
+ var ProfileEmailSchema = zod.z.object({
1541
+ id: zod.z.number(),
1542
+ email: zod.z.string(),
1543
+ emailDomain: zod.z.string(),
1544
+ status: zod.z.enum(["verified", "pending", "expired"]),
1545
+ verifiedAt: zod.z.string().nullable(),
1546
+ verificationSentAt: zod.z.string().nullable(),
1547
+ createdAt: zod.z.string()
1548
+ }).passthrough();
1549
+ var ProfileEmailsSchema = zod.z.object({
1550
+ emails: zod.z.array(ProfileEmailSchema).default([]),
1551
+ /** False while Sifa does not send email; links are not sent then. */
1552
+ sending: zod.z.boolean().default(false)
1553
+ });
1554
+ async function fetchProfileEmails(config, options = {}) {
1555
+ const { cookieHeader, ...rest } = options;
1556
+ const headers = { ...rest.headers ?? {} };
1557
+ if (cookieHeader) headers.cookie = cookieHeader;
1558
+ try {
1559
+ const data = await apiFetch(config, "/api/profile-emails", {
1560
+ cache: "no-store",
1561
+ credentials: "include",
1562
+ timeoutMs: 5e3,
1563
+ ...rest,
1564
+ headers
1565
+ });
1566
+ const parsed = ProfileEmailsSchema.safeParse(data);
1567
+ return parsed.success ? parsed.data : { emails: [], sending: false };
1568
+ } catch {
1569
+ return { emails: [], sending: false };
1570
+ }
1571
+ }
1572
+ function addProfileEmail(config, email, options = {}) {
1573
+ return apiWriteCreate(
1574
+ config,
1575
+ "/api/profile-emails",
1576
+ { email },
1577
+ options
1578
+ );
1579
+ }
1580
+ function resendProfileEmailVerification(config, id, options = {}) {
1581
+ return apiWrite(
1582
+ config,
1583
+ `/api/profile-emails/${id}/resend`,
1584
+ "POST",
1585
+ options
1586
+ );
1587
+ }
1588
+ function removeProfileEmail(config, id, options = {}) {
1589
+ return apiWrite(config, `/api/profile-emails/${id}`, "DELETE", options);
1590
+ }
1591
+
1592
+ // src/query/hooks/use-profile-emails.ts
1593
+ function useProfileEmails(options) {
1594
+ const config = useSifaConfig();
1595
+ return reactQuery.useQuery({
1596
+ queryKey: sifaQueryKeys.profileEmails.list(),
1597
+ queryFn: () => fetchProfileEmails(config),
1598
+ ...options
1599
+ });
1600
+ }
1601
+ function useInvalidate() {
1602
+ const queryClient = reactQuery.useQueryClient();
1603
+ return () => queryClient.invalidateQueries({ queryKey: sifaQueryKeys.profileEmails.all() });
1604
+ }
1605
+ function useAddProfileEmail(options) {
1606
+ const config = useSifaConfig();
1607
+ const invalidate = useInvalidate();
1608
+ return reactQuery.useMutation({
1609
+ // Spread first so a consumer handler cannot drop the invalidation.
1610
+ ...options,
1611
+ mutationFn: (email) => addProfileEmail(config, email),
1612
+ onSuccess: async (result, variables, onMutateResult, context) => {
1613
+ if (result.success) await invalidate();
1614
+ await options?.onSuccess?.(result, variables, onMutateResult, context);
1615
+ }
1616
+ });
1617
+ }
1618
+ function useResendProfileEmailVerification(options) {
1619
+ const config = useSifaConfig();
1620
+ const invalidate = useInvalidate();
1621
+ return reactQuery.useMutation({
1622
+ ...options,
1623
+ mutationFn: (id) => resendProfileEmailVerification(config, id),
1624
+ onSuccess: async (result, variables, onMutateResult, context) => {
1625
+ if (result.success) await invalidate();
1626
+ await options?.onSuccess?.(result, variables, onMutateResult, context);
1627
+ }
1628
+ });
1629
+ }
1630
+ function useRemoveProfileEmail(options) {
1631
+ const config = useSifaConfig();
1632
+ const invalidate = useInvalidate();
1633
+ return reactQuery.useMutation({
1634
+ ...options,
1635
+ mutationFn: (id) => removeProfileEmail(config, id),
1636
+ onSuccess: async (result, variables, onMutateResult, context) => {
1637
+ if (result.success) await invalidate();
1638
+ await options?.onSuccess?.(result, variables, onMutateResult, context);
1639
+ }
1640
+ });
1641
+ }
1535
1642
  function createOrgAttestation(config, input, options = {}) {
1536
1643
  return apiWriteCreate(
1537
1644
  config,
@@ -1772,6 +1879,9 @@ var PROFILE_COMPLETENESS_SIGNALS = [
1772
1879
  "skill",
1773
1880
  "certification"
1774
1881
  ];
1882
+ function isProfileCompletenessSignal(value) {
1883
+ return PROFILE_COMPLETENESS_SIGNALS.some((signal) => signal === value);
1884
+ }
1775
1885
  async function fetchProfileCompleteness(config, options = {}) {
1776
1886
  const { cookieHeader, ...rest } = options;
1777
1887
  const headers = { ...rest.headers ?? {} };
@@ -1792,16 +1902,27 @@ async function fetchProfileCompleteness(config, options = {}) {
1792
1902
  });
1793
1903
  if (!data) return empty;
1794
1904
  const missing = Array.isArray(data.missing) ? data.missing : [];
1905
+ const dismissed = Array.isArray(data.dismissed) ? data.dismissed.filter(isProfileCompletenessSignal) : void 0;
1795
1906
  return {
1796
1907
  complete: data.complete ?? missing.length === 0,
1797
1908
  score: data.score ?? PROFILE_COMPLETENESS_SIGNALS.length - missing.length,
1798
1909
  total: data.total ?? PROFILE_COMPLETENESS_SIGNALS.length,
1799
- missing
1910
+ missing,
1911
+ ...dismissed ? { dismissed } : {}
1800
1912
  };
1801
1913
  } catch {
1802
1914
  return empty;
1803
1915
  }
1804
1916
  }
1917
+ function dismissCompletenessSignal(config, data, options = {}) {
1918
+ return apiWrite(config, "/api/profile/completeness/dismiss", "POST", { body: data, ...options });
1919
+ }
1920
+ function clearCompletenessDismissals(config, options = {}) {
1921
+ return apiWrite(config, "/api/profile/completeness/dismissals/clear", "POST", {
1922
+ body: {},
1923
+ ...options
1924
+ });
1925
+ }
1805
1926
 
1806
1927
  // src/query/hooks/use-profile-completeness.ts
1807
1928
  function useProfileCompleteness(options) {
@@ -1812,6 +1933,39 @@ function useProfileCompleteness(options) {
1812
1933
  ...options
1813
1934
  });
1814
1935
  }
1936
+ function useDismissCompletenessSignal(options) {
1937
+ const config = useSifaConfig();
1938
+ const queryClient = reactQuery.useQueryClient();
1939
+ return reactQuery.useMutation({
1940
+ // Spread first: a consumer-supplied handler would otherwise replace the
1941
+ // one below and silently drop cache invalidation (#453).
1942
+ ...options,
1943
+ mutationFn: (data) => dismissCompletenessSignal(config, data),
1944
+ onSuccess: async (result, variables, onMutateResult, context) => {
1945
+ if (result.success) {
1946
+ await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.profile.completeness() });
1947
+ await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.inbox.counts() });
1948
+ }
1949
+ await options?.onSuccess?.(result, variables, onMutateResult, context);
1950
+ }
1951
+ });
1952
+ }
1953
+ function useClearCompletenessDismissals(options) {
1954
+ const config = useSifaConfig();
1955
+ const queryClient = reactQuery.useQueryClient();
1956
+ return reactQuery.useMutation({
1957
+ // Spread first, as above.
1958
+ ...options,
1959
+ mutationFn: () => clearCompletenessDismissals(config),
1960
+ onSuccess: async (result, variables, onMutateResult, context) => {
1961
+ if (result.success) {
1962
+ await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.profile.completeness() });
1963
+ await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.inbox.counts() });
1964
+ }
1965
+ await options?.onSuccess?.(result, variables, onMutateResult, context);
1966
+ }
1967
+ });
1968
+ }
1815
1969
  var RpgItemStatusSchema = zod.z.object({
1816
1970
  id: zod.z.string(),
1817
1971
  title: zod.z.string(),
@@ -2998,14 +3152,16 @@ async function getAdminReviewQueues(config, opts = {}) {
2998
3152
  const nameCorrections = res.nameCorrections ?? 0;
2999
3153
  const pendingCompanies = res.pendingCompanies ?? 0;
3000
3154
  const duplicateOrgs = res.duplicateOrgs ?? 0;
3155
+ const inferredFactReports = res.inferredFactReports ?? 0;
3001
3156
  return {
3002
3157
  ideas,
3003
3158
  nameCorrections,
3004
3159
  pendingCompanies,
3005
3160
  duplicateOrgs,
3161
+ inferredFactReports,
3006
3162
  // Derived rather than trusted so an API that predates the field still
3007
3163
  // yields a usable pill count.
3008
- total: res.total ?? ideas + nameCorrections + pendingCompanies + duplicateOrgs,
3164
+ total: res.total ?? ideas + nameCorrections + pendingCompanies + duplicateOrgs + inferredFactReports,
3009
3165
  generatedAt: res.generatedAt ?? ""
3010
3166
  };
3011
3167
  }
@@ -4078,6 +4234,7 @@ exports.useActivityPreferences = useActivityPreferences;
4078
4234
  exports.useActivityTeaser = useActivityTeaser;
4079
4235
  exports.useAddFeatureAllowlist = useAddFeatureAllowlist;
4080
4236
  exports.useAddOrgNotificationEmail = useAddOrgNotificationEmail;
4237
+ exports.useAddProfileEmail = useAddProfileEmail;
4081
4238
  exports.useAdminReviewQueues = useAdminReviewQueues;
4082
4239
  exports.useAppAccountCheck = useAppAccountCheck;
4083
4240
  exports.useAppsRegistry = useAppsRegistry;
@@ -4090,6 +4247,7 @@ exports.useBulkUnhideProfileItems = useBulkUnhideProfileItems;
4090
4247
  exports.useBulkUnhideStandardPublications = useBulkUnhideStandardPublications;
4091
4248
  exports.useCanonicalSkillSearch = useCanonicalSkillSearch;
4092
4249
  exports.useCastRoadmapVote = useCastRoadmapVote;
4250
+ exports.useClearCompletenessDismissals = useClearCompletenessDismissals;
4093
4251
  exports.useCreateConfirmation = useCreateConfirmation;
4094
4252
  exports.useCreateEducation = useCreateEducation;
4095
4253
  exports.useCreateEndorsement = useCreateEndorsement;
@@ -4114,6 +4272,7 @@ exports.useDeleteReaction = useDeleteReaction;
4114
4272
  exports.useDeleteRecord = useDeleteRecord;
4115
4273
  exports.useDeleteRepoRecords = useDeleteRepoRecords;
4116
4274
  exports.useDeleteSkill = useDeleteSkill;
4275
+ exports.useDismissCompletenessSignal = useDismissCompletenessSignal;
4117
4276
  exports.useDismissConfirmation = useDismissConfirmation;
4118
4277
  exports.useDismissUnlinkedPosition = useDismissUnlinkedPosition;
4119
4278
  exports.useEndorsementCount = useEndorsementCount;
@@ -4154,14 +4313,17 @@ exports.useOrgProfile = useOrgProfile;
4154
4313
  exports.usePendingConfirmations = usePendingConfirmations;
4155
4314
  exports.useProfile = useProfile;
4156
4315
  exports.useProfileCompleteness = useProfileCompleteness;
4316
+ exports.useProfileEmails = useProfileEmails;
4157
4317
  exports.useReactionStatus = useReactionStatus;
4158
4318
  exports.useRefreshOrcidPublications = useRefreshOrcidPublications;
4159
4319
  exports.useRefreshPds = useRefreshPds;
4160
4320
  exports.useRejectAttestationRequest = useRejectAttestationRequest;
4161
4321
  exports.useRemoveFeatureAllowlist = useRemoveFeatureAllowlist;
4162
4322
  exports.useRemoveOrgNotificationEmail = useRemoveOrgNotificationEmail;
4323
+ exports.useRemoveProfileEmail = useRemoveProfileEmail;
4163
4324
  exports.useRepoInventory = useRepoInventory;
4164
4325
  exports.useRequestEmploymentConfirmation = useRequestEmploymentConfirmation;
4326
+ exports.useResendProfileEmailVerification = useResendProfileEmailVerification;
4165
4327
  exports.useResetProfile = useResetProfile;
4166
4328
  exports.useRetractRoadmapVote = useRetractRoadmapVote;
4167
4329
  exports.useRevealMarqueDomain = useRevealMarqueDomain;