@singi-labs/sifa-sdk 0.12.38 → 0.12.39

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.
@@ -1,10 +1,11 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, W as WriteResult, s as sifaQueryKeys } from '../org-OPyzh-oe.cjs';
2
- export { a as AccountCheckResult, b as ActivityFeedResponse, c as ActivityItem, d as ActivityItemLinkHealth, e as ActivityTeaserResponse, f as ApiError, g as AppRegistryEntry, B as BulkHideProfileItemInput, C as CastRoadmapVoteResult, h as CheckAppAccountOptions, i as CreateExternalAccountResult, j as CreateResult, D as DeleteAccountResult, E as EndorsementInput, k as ExternalAccountInput, F as FeatureAllowlistResponse, l as FeaturedProfile, m as FetchActivityFeedOptions, n as FetchActivityTeaserOptions, o as FetchFollowListOptions, p as FetchFollowProfilePageOptions, q as FetchFollowingFeedOptions, r as FetchHiddenAppsOptions, t as FetchMyGithubPullRequestsOptions, u as FetchMyRoadmapVotesOptions, v as FetchReactionStatusOptions, w as FetchSuggestionsOptions, x as FilterOptions, y as FollowListPage, z as FollowProfile, G as FollowProfilePageResponse, H as FollowUserResult, I as FollowingResponse, J as GithubPullRequest, K as HIDDEN_ITEM_SOURCES, L as HIDDEN_ITEM_TYPES, M as HeatmapDay, N as HeatmapResponse, O as HiddenApp, P as HiddenItemSource, Q as HiddenItemType, R as HideProfileItemInput, T as ListFeatureAllowlistOptions, U as MyGithubPullRequestsResponse, V as OrgClaimBinding, X as OrgClaimResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult, a0 as OrgProfileEcho, a1 as OrgProfileUpdateResult, a2 as PdsWipeOutcome, a3 as ProfileIndustryInput, a4 as ProfileLocationAddress, a5 as ProfileLocationInput, a6 as ProfileSearchResult, a7 as ProfileSelfLocation, a8 as QUOTED_POSTS_BATCH_MAX, a9 as QuotedPostAuthor, aa as QuotedPostImage, ab as QuotedPostResult, ac as QuotedPostView, ad as ReactionError, ae as ReactionResult, af as ReactionStatus, ag as RefreshOrcidPublicationsResult, ah as RefreshPdsResult, ai as ResetProfileResult, aj as ResolveQuotedPostsOptions, ak as RoadmapVoteError, al as RoadmapVoteResult, am as RoadmapVoter, an as RoadmapVotesResponse, ao as SearchFilters, ap as SearchResponse, aq as SifaQueryKey, ar as SimilarProfile, as as SkillSearchResult, at as StatsResponse, au as SubCategoryBulkResult, av as SuggestionProfile, aw as SuggestionsResponse, ax as UpdateProfileOverrideInput, ay as UpdateProfileSelfInput, az as UploadAvatarResult, aA as VerifyExternalAccountResult, aB as WipePreview, aC as addFeatureAllowlist, aD as addOrgNotificationEmail, aE as apiFetch, aF as apiFetchOrNull, aG as apiWrite, aH as apiWriteCreate, aI as bulkHideProfileItems, aJ as bulkHideStandardPublications, aK as bulkUnhideProfileItems, aL as bulkUnhideStandardPublications, aM as castRoadmapVote, aN as checkAppAccount, aO as createEndorsement, aP as createExternalAccount, aQ as createProfileLocation, aR as createReaction, aS as createSkill, aT as deleteAccount, aU as deleteAvatarOverride, aV as deleteExternalAccount, aW as deleteProfileLocation, aX as deleteReaction, aY as deleteSkill, aZ as fetchActivityFeed, a_ as fetchActivityTeaser, a$ as fetchAppsRegistry, b0 as fetchExternalAccounts, b1 as fetchFeaturedProfile, b2 as fetchFollowing, b3 as fetchHeatmapData, b4 as fetchHiddenApps, b5 as fetchMyGithubPullRequests, b6 as fetchMyRoadmapVotes, b7 as fetchReactionStatus, b8 as fetchRoadmapVotes, b9 as fetchSearchFilters, ba as fetchSearchProfiles, bb as fetchSimilarProfiles, bc as fetchSkillSuggestions, bd as fetchStats, be as fetchSuggestionCount, bf as fetchSuggestions, bg as fetchWipePreview, bh as followUser, bi as getBlueskySuggestions, bj as getFollowers, bk as getFollowing, bl as getFollowingFeed, bm as getMutuals, bn as hideOrcidPublication, bo as hideProfileItem, bp as hideSifaPublication, bq as hideStandardPublication, br as listFeatureAllowlist, bs as refreshOrcidPublications, bt as refreshPds, bu as removeFeatureAllowlist, bv as removeOrgNotificationEmail, bw as requestOrgDomainChallenge, bx as resetProfile, by as resolveQuotedPosts, bz as retractRoadmapVote, bA as searchSkills, bB as setExternalAccountPrimary, bC as submitOrgClaim, bD as unfollowUser, bE as unhideOrcidPublication, bF as unhideProfileItem, bG as unhideSifaPublication, bH as unhideStandardPublication, bI as unsetExternalAccountPrimary, bJ as updateExternalAccount, bK as updateOrgProfile, bL as updateProfileLocation, bM as updateProfileOverride, bN as updateProfileSelf, bO as updateSkill, bP as updateSkillSubCategories, bQ as uploadAvatar, bR as verifyExternalAccount, bS as verifyOrgDomain } from '../org-OPyzh-oe.cjs';
3
- export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useActivityFeed, m as useActivityTeaser, n as useAddFeatureAllowlist, o as useAddOrgNotificationEmail, p as useAppAccountCheck, q as useAppsRegistry, r as useAtFundLink, s as useBlueskySuggestions, t as useBulkHideProfileItems, v as useBulkHideStandardPublications, w as useBulkUnhideProfileItems, x as useBulkUnhideStandardPublications, y as useCanonicalSkillSearch, z as useCastRoadmapVote, B as useCreateEducation, E as useCreateEndorsement, G as useCreateExternalAccount, H as useCreatePosition, I as useCreateProfileLocation, J as useCreateReaction, K as useCreateRecord, L as useCreateSkill, M as useDebouncedValue, N as useDeleteAccount, O as useDeleteAvatarOverride, Q as useDeleteEducation, T as useDeleteExternalAccount, V as useDeletePosition, W as useDeleteProfileLocation, X as useDeleteReaction, Y as useDeleteRecord, Z as useDeleteSkill, _ as useEndorsementCount, $ as useEntitySearch, a0 as useExternalAccounts, a1 as useFeatureAllowlist, a2 as useFeaturedProfile, a3 as useFollow, a4 as useFollowers, a5 as useFollowing, a6 as useFollowingFeed, a7 as useFollowingList, a8 as useGetProfileView, a9 as useHeatmapData, aa as useHiddenApps, ab as useHideKeytraceClaim, ac as useHideOrcidPublication, ad as useHideProfileItem, ae as useHideSifaPublication, af as useHideStandardPublication, ag as useImportSearchEntities, ah as useLinkSkillToPosition, ai as useMintEntityDomain, aj as useMutuals, ak as useMyGithubPullRequests, al as useMyRoadmapVotes, am as useNetworkStreamCount, an as useOrgClaim, ao as useOrgDomainChallenge, ap as useOrgDomainVerify, aq as useOrgProfile, ar as useProfile, as as useReactionStatus, at as useRefreshOrcidPublications, au as useRefreshPds, av as useRemoveFeatureAllowlist, aw as useRemoveOrgNotificationEmail, ax as useResetProfile, ay as useResolveEntityDomain, az as useRetractRoadmapVote, aA as useRevealMarqueDomain, aB as useRoadmapVotes, aC as useSearchFilters, aD as useSearchProfiles, aE as useSelectEntity, aF as useSetExternalAccountPrimary, aG as useSetPositionPrimary, aH as useSifaConfig, aI as useSimilarProfiles, aJ as useSkillSuggestions, aK as useStats, aL as useSuggestionCount, aM as useSuggestions, aN as useUnfollow, aO as useUnhideKeytraceClaim, aP as useUnhideOrcidPublication, aQ as useUnhideProfileItem, aR as useUnhideSifaPublication, aS as useUnhideStandardPublication, aT as useUnlinkSkillFromPosition, aU as useUnrevealMarqueDomain, aV as useUnsetExternalAccountPrimary, aW as useUnsetPositionPrimary, aX as useUpdateEducation, aY as useUpdateExternalAccount, aZ as useUpdateOrgProfile, a_ as useUpdatePosition, a$ as useUpdateProfileLocation, b0 as useUpdateProfileOverride, b1 as useUpdateProfileSelf, b2 as useUpdateRecord, b3 as useUpdateSkill, b4 as useUpdateSkillSubCategories, b5 as useUploadAvatar, b6 as useVerifyExternalAccount, b7 as useWipePreview } from '../index-C-TwdQWh.cjs';
4
- export { F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, a as NetworkMapGenerationJob, b as NetworkMapGraphData, c as NetworkMapNode, d as NetworkMapPendingJob, e as NetworkMapResponse, f as checkNetworkMapJobStatus, g as createEducation, h as createPosition, i as createRecord, j as deleteEducation, k as deletePosition, l as deleteRecord, m as fetchAtFundLink, n as fetchEndorsementCount, o as fetchEntitySearch, p as fetchGetProfileView, q as fetchNetworkMap, r as fetchNetworkStreamCount, s as fetchProfile, t as fetchProfileSummary, u as hideKeytraceClaim, v as importSearchEntities, w as initiateNetworkMapGeneration, x as isNetworkMapResponse, y as linkSkillToPosition, z as mintEntityDomain, A as resolveEntityDomain, B as revealMarqueDomain, C as selectEntity, D as setPositionPrimary, E as unhideKeytraceClaim, G as unlinkSkillFromPosition, H as unrevealMarqueDomain, I as unsetPositionPrimary, J as updateEducation, K as updatePosition, L as updateRecord } from '../index-G5HiA-nk.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, a as ConfirmEndorsementInput, W as WriteResult, s as sifaQueryKeys } from '../org-DPfmXSYv.cjs';
2
+ export { b as AccountCheckResult, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as ApiError, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, k as CreateExternalAccountResult, D as DeleteAccountResult, E as EndorsementInput, l as ExternalAccountInput, F as FeatureAllowlistResponse, m as FeaturedProfile, n as FetchActivityFeedOptions, o as FetchActivityTeaserOptions, p as FetchFollowListOptions, q as FetchFollowProfilePageOptions, r as FetchFollowingFeedOptions, t as FetchHiddenAppsOptions, u as FetchMyGithubPullRequestsOptions, v as FetchMyRoadmapVotesOptions, w as FetchReactionStatusOptions, x as FetchSuggestionsOptions, y as FilterOptions, z as FollowListPage, G as FollowProfile, H as FollowProfilePageResponse, I as FollowUserResult, J as FollowingResponse, K as GithubPullRequest, L as HIDDEN_ITEM_SOURCES, M as HIDDEN_ITEM_TYPES, N as HeatmapDay, O as HeatmapResponse, P as HiddenApp, Q as HiddenItemSource, R as HiddenItemType, T as HideProfileItemInput, U as ListFeatureAllowlistOptions, V as MyGithubPullRequestsResponse, X as OrgClaimBinding, Y as OrgClaimResult, Z as OrgDomainChallengeResult, _ as OrgDomainVerifyResult, $ as OrgNotificationEmailAddResult, a0 as OrgNotificationEmailRemoveResult, a1 as OrgProfileEcho, a2 as OrgProfileUpdateResult, a3 as PdsWipeOutcome, a4 as ProfileIndustryInput, a5 as ProfileLocationAddress, a6 as ProfileLocationInput, a7 as ProfileSearchResult, a8 as ProfileSelfLocation, a9 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 ResetProfileResult, ak as ResolveQuotedPostsOptions, al as RoadmapVoteError, am as RoadmapVoteResult, an as RoadmapVoter, ao as RoadmapVotesResponse, ap as SearchFilters, aq as SearchResponse, ar as SifaQueryKey, as as SimilarProfile, at as SkillSearchResult, au as StatsResponse, av as SubCategoryBulkResult, aw as SuggestionProfile, ax as SuggestionsResponse, ay as UpdateProfileOverrideInput, az as UpdateProfileSelfInput, aA as UploadAvatarResult, aB as VerifyExternalAccountResult, aC as WipePreview, aD as addFeatureAllowlist, aE as addOrgNotificationEmail, aF as apiFetch, aG as apiFetchOrNull, aH as apiWrite, aI as apiWriteCreate, aJ as bulkHideProfileItems, aK as bulkHideStandardPublications, aL as bulkUnhideProfileItems, aM as bulkUnhideStandardPublications, aN as castRoadmapVote, aO as checkAppAccount, aP as confirmEndorsement, aQ as createEndorsement, aR as createExternalAccount, aS as createProfileLocation, aT as createReaction, aU as createSkill, aV as deleteAccount, aW as deleteAvatarOverride, aX as deleteExternalAccount, aY as deleteProfileLocation, aZ as deleteReaction, a_ as deleteSkill, a$ as fetchActivityFeed, b0 as fetchActivityTeaser, b1 as fetchAppsRegistry, b2 as fetchExternalAccounts, b3 as fetchFeaturedProfile, b4 as fetchFollowing, b5 as fetchHeatmapData, b6 as fetchHiddenApps, b7 as fetchMyGithubPullRequests, b8 as fetchMyRoadmapVotes, b9 as fetchReactionStatus, ba as fetchRoadmapVotes, bb as fetchSearchFilters, bc as fetchSearchProfiles, bd as fetchSimilarProfiles, be as fetchSkillSuggestions, bf as fetchStats, bg as fetchSuggestionCount, bh as fetchSuggestions, bi as fetchWipePreview, bj as followUser, bk as getBlueskySuggestions, bl as getFollowers, bm as getFollowing, bn as getFollowingFeed, bo as getMutuals, bp as hideOrcidPublication, bq as hideProfileItem, br as hideSifaPublication, bs as hideStandardPublication, bt as listFeatureAllowlist, bu as refreshOrcidPublications, bv as refreshPds, bw as removeFeatureAllowlist, bx as removeOrgNotificationEmail, by as requestOrgDomainChallenge, bz as resetProfile, bA as resolveQuotedPosts, bB as retractRoadmapVote, bC as searchSkills, bD as setExternalAccountPrimary, bE as submitOrgClaim, bF as unfollowUser, bG as unhideOrcidPublication, bH as unhideProfileItem, bI as unhideSifaPublication, bJ as unhideStandardPublication, bK as unsetExternalAccountPrimary, bL as updateExternalAccount, bM as updateOrgProfile, bN as updateProfileLocation, bO as updateProfileOverride, bP as updateProfileSelf, bQ as updateSkill, bR as updateSkillSubCategories, bS as uploadAvatar, bT as verifyExternalAccount, bU as verifyOrgDomain } from '../org-DPfmXSYv.cjs';
3
+ export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useActivityFeed, m as useActivityTeaser, n as useAddFeatureAllowlist, o as useAddOrgNotificationEmail, p as useAppAccountCheck, q as useAppsRegistry, r as useAtFundLink, s as useBlueskySuggestions, t as useBulkHideProfileItems, v as useBulkHideStandardPublications, w as useBulkUnhideProfileItems, x as useBulkUnhideStandardPublications, y as useCanonicalSkillSearch, z as useCastRoadmapVote, B as useCreateEducation, E as useCreateEndorsement, G as useCreateExternalAccount, H as useCreatePosition, I as useCreateProfileLocation, J as useCreateReaction, K as useCreateRecord, L as useCreateSkill, M as useDebouncedValue, N as useDeleteAccount, O as useDeleteAvatarOverride, Q as useDeleteEducation, T as useDeleteExternalAccount, V as useDeletePosition, W as useDeleteProfileLocation, X as useDeleteReaction, Y as useDeleteRecord, Z as useDeleteSkill, _ as useEndorsementCount, $ as useEntitySearch, a0 as useExternalAccounts, a1 as useFeatureAllowlist, a2 as useFeaturedProfile, a3 as useFollow, a4 as useFollowers, a5 as useFollowing, a6 as useFollowingFeed, a7 as useFollowingList, a8 as useGetProfileView, a9 as useHeatmapData, aa as useHiddenApps, ab as useHideKeytraceClaim, ac as useHideOrcidPublication, ad as useHideProfileItem, ae as useHideSifaPublication, af as useHideStandardPublication, ag as useImportSearchEntities, ah as useLinkSkillToPosition, ai as useMintEntityDomain, aj as useMutuals, ak as useMyGithubPullRequests, al as useMyRoadmapVotes, am as useNetworkStreamCount, an as useOrgClaim, ao as useOrgDomainChallenge, ap as useOrgDomainVerify, aq as useOrgProfile, ar as useProfile, as as useReactionStatus, at as useRefreshOrcidPublications, au as useRefreshPds, av as useRemoveFeatureAllowlist, aw as useRemoveOrgNotificationEmail, ax as useResetProfile, ay as useResolveEntityDomain, az as useRetractRoadmapVote, aA as useRevealMarqueDomain, aB as useRoadmapVotes, aC as useSearchFilters, aD as useSearchProfiles, aE as useSelectEntity, aF as useSetExternalAccountPrimary, aG as useSetPositionPrimary, aH as useSifaConfig, aI as useSimilarProfiles, aJ as useSkillSuggestions, aK as useStats, aL as useSuggestionCount, aM as useSuggestions, aN as useUnfollow, aO as useUnhideKeytraceClaim, aP as useUnhideOrcidPublication, aQ as useUnhideProfileItem, aR as useUnhideSifaPublication, aS as useUnhideStandardPublication, aT as useUnlinkSkillFromPosition, aU as useUnrevealMarqueDomain, aV as useUnsetExternalAccountPrimary, aW as useUnsetPositionPrimary, aX as useUpdateEducation, aY as useUpdateExternalAccount, aZ as useUpdateOrgProfile, a_ as useUpdatePosition, a$ as useUpdateProfileLocation, b0 as useUpdateProfileOverride, b1 as useUpdateProfileSelf, b2 as useUpdateRecord, b3 as useUpdateSkill, b4 as useUpdateSkillSubCategories, b5 as useUploadAvatar, b6 as useVerifyExternalAccount, b7 as useWipePreview } from '../index-CO3z2uAZ.cjs';
4
+ import { D as DismissEndorsementInput, P as PendingEndorsementsPage } from '../index-BPImvVQq.cjs';
5
+ export { F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, a as NetworkMapGenerationJob, b as NetworkMapGraphData, c as NetworkMapNode, d as NetworkMapPendingJob, e as NetworkMapResponse, f as PendingEndorsement, g as checkNetworkMapJobStatus, h as createEducation, i as createPosition, j as createRecord, k as deleteEducation, l as deletePosition, m as deleteRecord, n as dismissEndorsement, o as fetchAtFundLink, p as fetchEndorsementCount, q as fetchEntitySearch, r as fetchGetProfileView, s as fetchNetworkMap, t as fetchNetworkStreamCount, u as fetchPendingEndorsements, v as fetchProfile, w as fetchProfileSummary, x as hideKeytraceClaim, y as importSearchEntities, z as initiateNetworkMapGeneration, A as isNetworkMapResponse, B as linkSkillToPosition, C as mintEntityDomain, E as resolveEntityDomain, G as revealMarqueDomain, H as selectEntity, I as setPositionPrimary, J as unhideKeytraceClaim, K as unlinkSkillFromPosition, L as unrevealMarqueDomain, M as unsetPositionPrimary, O as updateEducation, Q as updatePosition, R as updateRecord } from '../index-BPImvVQq.cjs';
5
6
  import { C as CoSpeaker, A as AdultContentLabel } from '../adult-content-BQoId34F.cjs';
6
7
  import * as _tanstack_react_query from '@tanstack/react-query';
7
- import { UseQueryOptions } from '@tanstack/react-query';
8
+ import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
8
9
  import '../feed-C8aHEPw4.cjs';
9
10
  import 'zod';
10
11
  import '../org-settings-B8e01iZx.cjs';
@@ -19,6 +20,27 @@ import '../profile-summary-BmtnD3ix.cjs';
19
20
  */
20
21
  declare function fetchResolveActor(config: SifaApiConfig, handleOrDid: string, options?: ApiFetchOptions): Promise<CoSpeaker | null>;
21
22
 
23
+ /**
24
+ * Endorsements awaiting the signed-in user's decision. Returns an empty page
25
+ * when signed out or on error, so callers can render "nothing pending" without
26
+ * special-casing either.
27
+ */
28
+ declare function usePendingEndorsements(options?: Omit<UseQueryOptions<PendingEndorsementsPage, Error, PendingEndorsementsPage, ReturnType<typeof sifaQueryKeys.endorsement.pending>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<PendingEndorsementsPage>, Error>;
29
+ /**
30
+ * Confirm a received endorsement. On success the endorsement leaves the inbox
31
+ * and starts displaying, so both the inbox and the subject's own profile and
32
+ * count caches are invalidated.
33
+ *
34
+ * `subjectHandleOrDid` is the confirming user (the endorsement's subject);
35
+ * pass `null` to skip profile invalidation.
36
+ */
37
+ declare function useConfirmEndorsement(subjectHandleOrDid: string | null, options?: Omit<UseMutationOptions<CreateResult, Error, ConfirmEndorsementInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<CreateResult, Error, ConfirmEndorsementInput, unknown>;
38
+ /**
39
+ * Dismiss a received endorsement. Only the inbox is invalidated -- a dismissal
40
+ * changes nothing that displays anywhere, so no profile cache is affected.
41
+ */
42
+ declare function useDismissEndorsement(options?: Omit<UseMutationOptions<WriteResult, Error, DismissEndorsementInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, DismissEndorsementInput, unknown>;
43
+
22
44
  /**
23
45
  * Visibility values defined by `app.bsky.actor.defs#contentLabelPref`.
24
46
  * `null` means the viewer has no explicit pref for that label — call sites
@@ -113,4 +135,4 @@ declare function useUpdateBskyContentLabelPrefs(): _tanstack_react_query.UseMuta
113
135
  needsScope?: "bsky-preferences";
114
136
  }, Error, UpdateBskyContentLabelPrefsBody, unknown>;
115
137
 
116
- export { ApiFetchOptions, type BskyContentLabelPrefs, type BskyContentLabelPrefsResponse, type BskyContentLabelVisibility, type BskyPrefsScopeError, SifaApiConfig, type UpdateBskyContentLabelPrefsBody, WriteResult, effectiveContentVisibility, fetchBskyContentLabelPrefs, fetchResolveActor, shouldGateAdultMedia, sifaQueryKeys, updateBskyContentLabelPrefs, useBskyContentLabelPrefs, useUpdateBskyContentLabelPrefs };
138
+ export { ApiFetchOptions, type BskyContentLabelPrefs, type BskyContentLabelPrefsResponse, type BskyContentLabelVisibility, type BskyPrefsScopeError, ConfirmEndorsementInput, CreateResult, DismissEndorsementInput, PendingEndorsementsPage, SifaApiConfig, type UpdateBskyContentLabelPrefsBody, WriteResult, effectiveContentVisibility, fetchBskyContentLabelPrefs, fetchResolveActor, shouldGateAdultMedia, sifaQueryKeys, updateBskyContentLabelPrefs, useBskyContentLabelPrefs, useConfirmEndorsement, useDismissEndorsement, usePendingEndorsements, useUpdateBskyContentLabelPrefs };
@@ -1,10 +1,11 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, W as WriteResult, s as sifaQueryKeys } from '../org-BFi9g37U.js';
2
- export { a as AccountCheckResult, b as ActivityFeedResponse, c as ActivityItem, d as ActivityItemLinkHealth, e as ActivityTeaserResponse, f as ApiError, g as AppRegistryEntry, B as BulkHideProfileItemInput, C as CastRoadmapVoteResult, h as CheckAppAccountOptions, i as CreateExternalAccountResult, j as CreateResult, D as DeleteAccountResult, E as EndorsementInput, k as ExternalAccountInput, F as FeatureAllowlistResponse, l as FeaturedProfile, m as FetchActivityFeedOptions, n as FetchActivityTeaserOptions, o as FetchFollowListOptions, p as FetchFollowProfilePageOptions, q as FetchFollowingFeedOptions, r as FetchHiddenAppsOptions, t as FetchMyGithubPullRequestsOptions, u as FetchMyRoadmapVotesOptions, v as FetchReactionStatusOptions, w as FetchSuggestionsOptions, x as FilterOptions, y as FollowListPage, z as FollowProfile, G as FollowProfilePageResponse, H as FollowUserResult, I as FollowingResponse, J as GithubPullRequest, K as HIDDEN_ITEM_SOURCES, L as HIDDEN_ITEM_TYPES, M as HeatmapDay, N as HeatmapResponse, O as HiddenApp, P as HiddenItemSource, Q as HiddenItemType, R as HideProfileItemInput, T as ListFeatureAllowlistOptions, U as MyGithubPullRequestsResponse, V as OrgClaimBinding, X as OrgClaimResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult, a0 as OrgProfileEcho, a1 as OrgProfileUpdateResult, a2 as PdsWipeOutcome, a3 as ProfileIndustryInput, a4 as ProfileLocationAddress, a5 as ProfileLocationInput, a6 as ProfileSearchResult, a7 as ProfileSelfLocation, a8 as QUOTED_POSTS_BATCH_MAX, a9 as QuotedPostAuthor, aa as QuotedPostImage, ab as QuotedPostResult, ac as QuotedPostView, ad as ReactionError, ae as ReactionResult, af as ReactionStatus, ag as RefreshOrcidPublicationsResult, ah as RefreshPdsResult, ai as ResetProfileResult, aj as ResolveQuotedPostsOptions, ak as RoadmapVoteError, al as RoadmapVoteResult, am as RoadmapVoter, an as RoadmapVotesResponse, ao as SearchFilters, ap as SearchResponse, aq as SifaQueryKey, ar as SimilarProfile, as as SkillSearchResult, at as StatsResponse, au as SubCategoryBulkResult, av as SuggestionProfile, aw as SuggestionsResponse, ax as UpdateProfileOverrideInput, ay as UpdateProfileSelfInput, az as UploadAvatarResult, aA as VerifyExternalAccountResult, aB as WipePreview, aC as addFeatureAllowlist, aD as addOrgNotificationEmail, aE as apiFetch, aF as apiFetchOrNull, aG as apiWrite, aH as apiWriteCreate, aI as bulkHideProfileItems, aJ as bulkHideStandardPublications, aK as bulkUnhideProfileItems, aL as bulkUnhideStandardPublications, aM as castRoadmapVote, aN as checkAppAccount, aO as createEndorsement, aP as createExternalAccount, aQ as createProfileLocation, aR as createReaction, aS as createSkill, aT as deleteAccount, aU as deleteAvatarOverride, aV as deleteExternalAccount, aW as deleteProfileLocation, aX as deleteReaction, aY as deleteSkill, aZ as fetchActivityFeed, a_ as fetchActivityTeaser, a$ as fetchAppsRegistry, b0 as fetchExternalAccounts, b1 as fetchFeaturedProfile, b2 as fetchFollowing, b3 as fetchHeatmapData, b4 as fetchHiddenApps, b5 as fetchMyGithubPullRequests, b6 as fetchMyRoadmapVotes, b7 as fetchReactionStatus, b8 as fetchRoadmapVotes, b9 as fetchSearchFilters, ba as fetchSearchProfiles, bb as fetchSimilarProfiles, bc as fetchSkillSuggestions, bd as fetchStats, be as fetchSuggestionCount, bf as fetchSuggestions, bg as fetchWipePreview, bh as followUser, bi as getBlueskySuggestions, bj as getFollowers, bk as getFollowing, bl as getFollowingFeed, bm as getMutuals, bn as hideOrcidPublication, bo as hideProfileItem, bp as hideSifaPublication, bq as hideStandardPublication, br as listFeatureAllowlist, bs as refreshOrcidPublications, bt as refreshPds, bu as removeFeatureAllowlist, bv as removeOrgNotificationEmail, bw as requestOrgDomainChallenge, bx as resetProfile, by as resolveQuotedPosts, bz as retractRoadmapVote, bA as searchSkills, bB as setExternalAccountPrimary, bC as submitOrgClaim, bD as unfollowUser, bE as unhideOrcidPublication, bF as unhideProfileItem, bG as unhideSifaPublication, bH as unhideStandardPublication, bI as unsetExternalAccountPrimary, bJ as updateExternalAccount, bK as updateOrgProfile, bL as updateProfileLocation, bM as updateProfileOverride, bN as updateProfileSelf, bO as updateSkill, bP as updateSkillSubCategories, bQ as uploadAvatar, bR as verifyExternalAccount, bS as verifyOrgDomain } from '../org-BFi9g37U.js';
3
- export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useActivityFeed, m as useActivityTeaser, n as useAddFeatureAllowlist, o as useAddOrgNotificationEmail, p as useAppAccountCheck, q as useAppsRegistry, r as useAtFundLink, s as useBlueskySuggestions, t as useBulkHideProfileItems, v as useBulkHideStandardPublications, w as useBulkUnhideProfileItems, x as useBulkUnhideStandardPublications, y as useCanonicalSkillSearch, z as useCastRoadmapVote, B as useCreateEducation, E as useCreateEndorsement, G as useCreateExternalAccount, H as useCreatePosition, I as useCreateProfileLocation, J as useCreateReaction, K as useCreateRecord, L as useCreateSkill, M as useDebouncedValue, N as useDeleteAccount, O as useDeleteAvatarOverride, Q as useDeleteEducation, T as useDeleteExternalAccount, V as useDeletePosition, W as useDeleteProfileLocation, X as useDeleteReaction, Y as useDeleteRecord, Z as useDeleteSkill, _ as useEndorsementCount, $ as useEntitySearch, a0 as useExternalAccounts, a1 as useFeatureAllowlist, a2 as useFeaturedProfile, a3 as useFollow, a4 as useFollowers, a5 as useFollowing, a6 as useFollowingFeed, a7 as useFollowingList, a8 as useGetProfileView, a9 as useHeatmapData, aa as useHiddenApps, ab as useHideKeytraceClaim, ac as useHideOrcidPublication, ad as useHideProfileItem, ae as useHideSifaPublication, af as useHideStandardPublication, ag as useImportSearchEntities, ah as useLinkSkillToPosition, ai as useMintEntityDomain, aj as useMutuals, ak as useMyGithubPullRequests, al as useMyRoadmapVotes, am as useNetworkStreamCount, an as useOrgClaim, ao as useOrgDomainChallenge, ap as useOrgDomainVerify, aq as useOrgProfile, ar as useProfile, as as useReactionStatus, at as useRefreshOrcidPublications, au as useRefreshPds, av as useRemoveFeatureAllowlist, aw as useRemoveOrgNotificationEmail, ax as useResetProfile, ay as useResolveEntityDomain, az as useRetractRoadmapVote, aA as useRevealMarqueDomain, aB as useRoadmapVotes, aC as useSearchFilters, aD as useSearchProfiles, aE as useSelectEntity, aF as useSetExternalAccountPrimary, aG as useSetPositionPrimary, aH as useSifaConfig, aI as useSimilarProfiles, aJ as useSkillSuggestions, aK as useStats, aL as useSuggestionCount, aM as useSuggestions, aN as useUnfollow, aO as useUnhideKeytraceClaim, aP as useUnhideOrcidPublication, aQ as useUnhideProfileItem, aR as useUnhideSifaPublication, aS as useUnhideStandardPublication, aT as useUnlinkSkillFromPosition, aU as useUnrevealMarqueDomain, aV as useUnsetExternalAccountPrimary, aW as useUnsetPositionPrimary, aX as useUpdateEducation, aY as useUpdateExternalAccount, aZ as useUpdateOrgProfile, a_ as useUpdatePosition, a$ as useUpdateProfileLocation, b0 as useUpdateProfileOverride, b1 as useUpdateProfileSelf, b2 as useUpdateRecord, b3 as useUpdateSkill, b4 as useUpdateSkillSubCategories, b5 as useUploadAvatar, b6 as useVerifyExternalAccount, b7 as useWipePreview } from '../index-DzjbfKwZ.js';
4
- export { F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, a as NetworkMapGenerationJob, b as NetworkMapGraphData, c as NetworkMapNode, d as NetworkMapPendingJob, e as NetworkMapResponse, f as checkNetworkMapJobStatus, g as createEducation, h as createPosition, i as createRecord, j as deleteEducation, k as deletePosition, l as deleteRecord, m as fetchAtFundLink, n as fetchEndorsementCount, o as fetchEntitySearch, p as fetchGetProfileView, q as fetchNetworkMap, r as fetchNetworkStreamCount, s as fetchProfile, t as fetchProfileSummary, u as hideKeytraceClaim, v as importSearchEntities, w as initiateNetworkMapGeneration, x as isNetworkMapResponse, y as linkSkillToPosition, z as mintEntityDomain, A as resolveEntityDomain, B as revealMarqueDomain, C as selectEntity, D as setPositionPrimary, E as unhideKeytraceClaim, G as unlinkSkillFromPosition, H as unrevealMarqueDomain, I as unsetPositionPrimary, J as updateEducation, K as updatePosition, L as updateRecord } from '../index-N0-ctbY1.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, a as ConfirmEndorsementInput, W as WriteResult, s as sifaQueryKeys } from '../org-dEe3TbBJ.js';
2
+ export { b as AccountCheckResult, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as ApiError, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, k as CreateExternalAccountResult, D as DeleteAccountResult, E as EndorsementInput, l as ExternalAccountInput, F as FeatureAllowlistResponse, m as FeaturedProfile, n as FetchActivityFeedOptions, o as FetchActivityTeaserOptions, p as FetchFollowListOptions, q as FetchFollowProfilePageOptions, r as FetchFollowingFeedOptions, t as FetchHiddenAppsOptions, u as FetchMyGithubPullRequestsOptions, v as FetchMyRoadmapVotesOptions, w as FetchReactionStatusOptions, x as FetchSuggestionsOptions, y as FilterOptions, z as FollowListPage, G as FollowProfile, H as FollowProfilePageResponse, I as FollowUserResult, J as FollowingResponse, K as GithubPullRequest, L as HIDDEN_ITEM_SOURCES, M as HIDDEN_ITEM_TYPES, N as HeatmapDay, O as HeatmapResponse, P as HiddenApp, Q as HiddenItemSource, R as HiddenItemType, T as HideProfileItemInput, U as ListFeatureAllowlistOptions, V as MyGithubPullRequestsResponse, X as OrgClaimBinding, Y as OrgClaimResult, Z as OrgDomainChallengeResult, _ as OrgDomainVerifyResult, $ as OrgNotificationEmailAddResult, a0 as OrgNotificationEmailRemoveResult, a1 as OrgProfileEcho, a2 as OrgProfileUpdateResult, a3 as PdsWipeOutcome, a4 as ProfileIndustryInput, a5 as ProfileLocationAddress, a6 as ProfileLocationInput, a7 as ProfileSearchResult, a8 as ProfileSelfLocation, a9 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 ResetProfileResult, ak as ResolveQuotedPostsOptions, al as RoadmapVoteError, am as RoadmapVoteResult, an as RoadmapVoter, ao as RoadmapVotesResponse, ap as SearchFilters, aq as SearchResponse, ar as SifaQueryKey, as as SimilarProfile, at as SkillSearchResult, au as StatsResponse, av as SubCategoryBulkResult, aw as SuggestionProfile, ax as SuggestionsResponse, ay as UpdateProfileOverrideInput, az as UpdateProfileSelfInput, aA as UploadAvatarResult, aB as VerifyExternalAccountResult, aC as WipePreview, aD as addFeatureAllowlist, aE as addOrgNotificationEmail, aF as apiFetch, aG as apiFetchOrNull, aH as apiWrite, aI as apiWriteCreate, aJ as bulkHideProfileItems, aK as bulkHideStandardPublications, aL as bulkUnhideProfileItems, aM as bulkUnhideStandardPublications, aN as castRoadmapVote, aO as checkAppAccount, aP as confirmEndorsement, aQ as createEndorsement, aR as createExternalAccount, aS as createProfileLocation, aT as createReaction, aU as createSkill, aV as deleteAccount, aW as deleteAvatarOverride, aX as deleteExternalAccount, aY as deleteProfileLocation, aZ as deleteReaction, a_ as deleteSkill, a$ as fetchActivityFeed, b0 as fetchActivityTeaser, b1 as fetchAppsRegistry, b2 as fetchExternalAccounts, b3 as fetchFeaturedProfile, b4 as fetchFollowing, b5 as fetchHeatmapData, b6 as fetchHiddenApps, b7 as fetchMyGithubPullRequests, b8 as fetchMyRoadmapVotes, b9 as fetchReactionStatus, ba as fetchRoadmapVotes, bb as fetchSearchFilters, bc as fetchSearchProfiles, bd as fetchSimilarProfiles, be as fetchSkillSuggestions, bf as fetchStats, bg as fetchSuggestionCount, bh as fetchSuggestions, bi as fetchWipePreview, bj as followUser, bk as getBlueskySuggestions, bl as getFollowers, bm as getFollowing, bn as getFollowingFeed, bo as getMutuals, bp as hideOrcidPublication, bq as hideProfileItem, br as hideSifaPublication, bs as hideStandardPublication, bt as listFeatureAllowlist, bu as refreshOrcidPublications, bv as refreshPds, bw as removeFeatureAllowlist, bx as removeOrgNotificationEmail, by as requestOrgDomainChallenge, bz as resetProfile, bA as resolveQuotedPosts, bB as retractRoadmapVote, bC as searchSkills, bD as setExternalAccountPrimary, bE as submitOrgClaim, bF as unfollowUser, bG as unhideOrcidPublication, bH as unhideProfileItem, bI as unhideSifaPublication, bJ as unhideStandardPublication, bK as unsetExternalAccountPrimary, bL as updateExternalAccount, bM as updateOrgProfile, bN as updateProfileLocation, bO as updateProfileOverride, bP as updateProfileSelf, bQ as updateSkill, bR as updateSkillSubCategories, bS as uploadAvatar, bT as verifyExternalAccount, bU as verifyOrgDomain } from '../org-dEe3TbBJ.js';
3
+ export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useActivityFeed, m as useActivityTeaser, n as useAddFeatureAllowlist, o as useAddOrgNotificationEmail, p as useAppAccountCheck, q as useAppsRegistry, r as useAtFundLink, s as useBlueskySuggestions, t as useBulkHideProfileItems, v as useBulkHideStandardPublications, w as useBulkUnhideProfileItems, x as useBulkUnhideStandardPublications, y as useCanonicalSkillSearch, z as useCastRoadmapVote, B as useCreateEducation, E as useCreateEndorsement, G as useCreateExternalAccount, H as useCreatePosition, I as useCreateProfileLocation, J as useCreateReaction, K as useCreateRecord, L as useCreateSkill, M as useDebouncedValue, N as useDeleteAccount, O as useDeleteAvatarOverride, Q as useDeleteEducation, T as useDeleteExternalAccount, V as useDeletePosition, W as useDeleteProfileLocation, X as useDeleteReaction, Y as useDeleteRecord, Z as useDeleteSkill, _ as useEndorsementCount, $ as useEntitySearch, a0 as useExternalAccounts, a1 as useFeatureAllowlist, a2 as useFeaturedProfile, a3 as useFollow, a4 as useFollowers, a5 as useFollowing, a6 as useFollowingFeed, a7 as useFollowingList, a8 as useGetProfileView, a9 as useHeatmapData, aa as useHiddenApps, ab as useHideKeytraceClaim, ac as useHideOrcidPublication, ad as useHideProfileItem, ae as useHideSifaPublication, af as useHideStandardPublication, ag as useImportSearchEntities, ah as useLinkSkillToPosition, ai as useMintEntityDomain, aj as useMutuals, ak as useMyGithubPullRequests, al as useMyRoadmapVotes, am as useNetworkStreamCount, an as useOrgClaim, ao as useOrgDomainChallenge, ap as useOrgDomainVerify, aq as useOrgProfile, ar as useProfile, as as useReactionStatus, at as useRefreshOrcidPublications, au as useRefreshPds, av as useRemoveFeatureAllowlist, aw as useRemoveOrgNotificationEmail, ax as useResetProfile, ay as useResolveEntityDomain, az as useRetractRoadmapVote, aA as useRevealMarqueDomain, aB as useRoadmapVotes, aC as useSearchFilters, aD as useSearchProfiles, aE as useSelectEntity, aF as useSetExternalAccountPrimary, aG as useSetPositionPrimary, aH as useSifaConfig, aI as useSimilarProfiles, aJ as useSkillSuggestions, aK as useStats, aL as useSuggestionCount, aM as useSuggestions, aN as useUnfollow, aO as useUnhideKeytraceClaim, aP as useUnhideOrcidPublication, aQ as useUnhideProfileItem, aR as useUnhideSifaPublication, aS as useUnhideStandardPublication, aT as useUnlinkSkillFromPosition, aU as useUnrevealMarqueDomain, aV as useUnsetExternalAccountPrimary, aW as useUnsetPositionPrimary, aX as useUpdateEducation, aY as useUpdateExternalAccount, aZ as useUpdateOrgProfile, a_ as useUpdatePosition, a$ as useUpdateProfileLocation, b0 as useUpdateProfileOverride, b1 as useUpdateProfileSelf, b2 as useUpdateRecord, b3 as useUpdateSkill, b4 as useUpdateSkillSubCategories, b5 as useUploadAvatar, b6 as useVerifyExternalAccount, b7 as useWipePreview } from '../index-DyffAaPT.js';
4
+ import { D as DismissEndorsementInput, P as PendingEndorsementsPage } from '../index-C1szgnQc.js';
5
+ export { F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, a as NetworkMapGenerationJob, b as NetworkMapGraphData, c as NetworkMapNode, d as NetworkMapPendingJob, e as NetworkMapResponse, f as PendingEndorsement, g as checkNetworkMapJobStatus, h as createEducation, i as createPosition, j as createRecord, k as deleteEducation, l as deletePosition, m as deleteRecord, n as dismissEndorsement, o as fetchAtFundLink, p as fetchEndorsementCount, q as fetchEntitySearch, r as fetchGetProfileView, s as fetchNetworkMap, t as fetchNetworkStreamCount, u as fetchPendingEndorsements, v as fetchProfile, w as fetchProfileSummary, x as hideKeytraceClaim, y as importSearchEntities, z as initiateNetworkMapGeneration, A as isNetworkMapResponse, B as linkSkillToPosition, C as mintEntityDomain, E as resolveEntityDomain, G as revealMarqueDomain, H as selectEntity, I as setPositionPrimary, J as unhideKeytraceClaim, K as unlinkSkillFromPosition, L as unrevealMarqueDomain, M as unsetPositionPrimary, O as updateEducation, Q as updatePosition, R as updateRecord } from '../index-C1szgnQc.js';
5
6
  import { C as CoSpeaker, A as AdultContentLabel } from '../adult-content-BQoId34F.js';
6
7
  import * as _tanstack_react_query from '@tanstack/react-query';
7
- import { UseQueryOptions } from '@tanstack/react-query';
8
+ import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
8
9
  import '../feed-C8aHEPw4.js';
9
10
  import 'zod';
10
11
  import '../org-settings-B8e01iZx.js';
@@ -19,6 +20,27 @@ import '../profile-summary-cPc7uJVa.js';
19
20
  */
20
21
  declare function fetchResolveActor(config: SifaApiConfig, handleOrDid: string, options?: ApiFetchOptions): Promise<CoSpeaker | null>;
21
22
 
23
+ /**
24
+ * Endorsements awaiting the signed-in user's decision. Returns an empty page
25
+ * when signed out or on error, so callers can render "nothing pending" without
26
+ * special-casing either.
27
+ */
28
+ declare function usePendingEndorsements(options?: Omit<UseQueryOptions<PendingEndorsementsPage, Error, PendingEndorsementsPage, ReturnType<typeof sifaQueryKeys.endorsement.pending>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<PendingEndorsementsPage>, Error>;
29
+ /**
30
+ * Confirm a received endorsement. On success the endorsement leaves the inbox
31
+ * and starts displaying, so both the inbox and the subject's own profile and
32
+ * count caches are invalidated.
33
+ *
34
+ * `subjectHandleOrDid` is the confirming user (the endorsement's subject);
35
+ * pass `null` to skip profile invalidation.
36
+ */
37
+ declare function useConfirmEndorsement(subjectHandleOrDid: string | null, options?: Omit<UseMutationOptions<CreateResult, Error, ConfirmEndorsementInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<CreateResult, Error, ConfirmEndorsementInput, unknown>;
38
+ /**
39
+ * Dismiss a received endorsement. Only the inbox is invalidated -- a dismissal
40
+ * changes nothing that displays anywhere, so no profile cache is affected.
41
+ */
42
+ declare function useDismissEndorsement(options?: Omit<UseMutationOptions<WriteResult, Error, DismissEndorsementInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, DismissEndorsementInput, unknown>;
43
+
22
44
  /**
23
45
  * Visibility values defined by `app.bsky.actor.defs#contentLabelPref`.
24
46
  * `null` means the viewer has no explicit pref for that label — call sites
@@ -113,4 +135,4 @@ declare function useUpdateBskyContentLabelPrefs(): _tanstack_react_query.UseMuta
113
135
  needsScope?: "bsky-preferences";
114
136
  }, Error, UpdateBskyContentLabelPrefsBody, unknown>;
115
137
 
116
- export { ApiFetchOptions, type BskyContentLabelPrefs, type BskyContentLabelPrefsResponse, type BskyContentLabelVisibility, type BskyPrefsScopeError, SifaApiConfig, type UpdateBskyContentLabelPrefsBody, WriteResult, effectiveContentVisibility, fetchBskyContentLabelPrefs, fetchResolveActor, shouldGateAdultMedia, sifaQueryKeys, updateBskyContentLabelPrefs, useBskyContentLabelPrefs, useUpdateBskyContentLabelPrefs };
138
+ export { ApiFetchOptions, type BskyContentLabelPrefs, type BskyContentLabelPrefsResponse, type BskyContentLabelVisibility, type BskyPrefsScopeError, ConfirmEndorsementInput, CreateResult, DismissEndorsementInput, PendingEndorsementsPage, SifaApiConfig, type UpdateBskyContentLabelPrefsBody, WriteResult, effectiveContentVisibility, fetchBskyContentLabelPrefs, fetchResolveActor, shouldGateAdultMedia, sifaQueryKeys, updateBskyContentLabelPrefs, useBskyContentLabelPrefs, useConfirmEndorsement, useDismissEndorsement, usePendingEndorsements, useUpdateBskyContentLabelPrefs };
@@ -70,6 +70,9 @@ async function apiFetch(config, path, options = {}) {
70
70
  }
71
71
  throw new ApiError(`Sifa API ${res.status} on ${path}`, res.status, errBody);
72
72
  }
73
+ if (res.status === 204 || res.status === 205) {
74
+ return void 0;
75
+ }
73
76
  return await res.json();
74
77
  }
75
78
  throw new ApiError(`Sifa API exhausted retries on ${path}`, 429);
@@ -431,7 +434,28 @@ function verifyExternalAccount(config, rkey, options = {}) {
431
434
 
432
435
  // src/query/fetchers/endorsements.ts
433
436
  function createEndorsement(config, data, options = {}) {
434
- return apiWriteCreate(config, "/api/endorsements", data, options);
437
+ return apiWriteCreate(config, "/api/endorsement", data, options);
438
+ }
439
+ function confirmEndorsement(config, data, options = {}) {
440
+ return apiWriteCreate(config, "/api/endorsement/confirm", data, options);
441
+ }
442
+
443
+ // src/query/fetchers/endorsement-inbox.ts
444
+ async function fetchPendingEndorsements(config, options = {}) {
445
+ try {
446
+ const data = await apiFetch(config, "/api/endorsements/pending", {
447
+ cache: "no-store",
448
+ credentials: "include",
449
+ timeoutMs: 5e3,
450
+ ...options
451
+ });
452
+ return { endorsements: data?.endorsements ?? [], cursor: data?.cursor };
453
+ } catch {
454
+ return { endorsements: [] };
455
+ }
456
+ }
457
+ function dismissEndorsement(config, data, options = {}) {
458
+ return apiWrite(config, "/api/endorsement/dismiss", "POST", { body: data, ...options });
435
459
  }
436
460
 
437
461
  // src/query/fetchers/actor.ts
@@ -1409,7 +1433,10 @@ var sifaQueryKeys = {
1409
1433
  },
1410
1434
  endorsement: {
1411
1435
  all: () => ["sifa", "endorsement"],
1412
- count: (did) => ["sifa", "endorsement", "count", did]
1436
+ count: (did) => ["sifa", "endorsement", "count", did],
1437
+ // Scoped to the session rather than a DID -- the AppView reads the subject
1438
+ // from the session cookie, so there is only ever one inbox per client.
1439
+ pending: () => ["sifa", "endorsement", "pending"]
1413
1440
  },
1414
1441
  stream: {
1415
1442
  all: () => ["sifa", "stream"],
@@ -1971,6 +1998,54 @@ function useCreateEndorsement(endorsedHandleOrDid, options) {
1971
1998
  ...options
1972
1999
  });
1973
2000
  }
2001
+ function usePendingEndorsements(options) {
2002
+ const config = useSifaConfig();
2003
+ return useQuery({
2004
+ queryKey: sifaQueryKeys.endorsement.pending(),
2005
+ queryFn: () => fetchPendingEndorsements(config),
2006
+ ...options
2007
+ });
2008
+ }
2009
+ function useConfirmEndorsement(subjectHandleOrDid, options) {
2010
+ const config = useSifaConfig();
2011
+ const queryClient = useQueryClient();
2012
+ return useMutation({
2013
+ mutationFn: (data) => confirmEndorsement(config, data),
2014
+ onSuccess: async (result, variables, onMutateResult, context) => {
2015
+ if (result.success) {
2016
+ await queryClient.invalidateQueries({
2017
+ queryKey: sifaQueryKeys.endorsement.pending()
2018
+ });
2019
+ if (subjectHandleOrDid) {
2020
+ await queryClient.invalidateQueries({
2021
+ queryKey: sifaQueryKeys.profile.byHandle(subjectHandleOrDid)
2022
+ });
2023
+ await queryClient.invalidateQueries({
2024
+ queryKey: sifaQueryKeys.endorsement.count(subjectHandleOrDid)
2025
+ });
2026
+ }
2027
+ }
2028
+ await options?.onSuccess?.(result, variables, onMutateResult, context);
2029
+ },
2030
+ ...options
2031
+ });
2032
+ }
2033
+ function useDismissEndorsement(options) {
2034
+ const config = useSifaConfig();
2035
+ const queryClient = useQueryClient();
2036
+ return useMutation({
2037
+ mutationFn: (data) => dismissEndorsement(config, data),
2038
+ onSuccess: async (result, variables, onMutateResult, context) => {
2039
+ if (result.success) {
2040
+ await queryClient.invalidateQueries({
2041
+ queryKey: sifaQueryKeys.endorsement.pending()
2042
+ });
2043
+ }
2044
+ await options?.onSuccess?.(result, variables, onMutateResult, context);
2045
+ },
2046
+ ...options
2047
+ });
2048
+ }
1974
2049
  async function invalidateProfile6(queryClient, ownerHandleOrDid) {
1975
2050
  await queryClient.invalidateQueries({
1976
2051
  queryKey: sifaQueryKeys.profile.byHandle(ownerHandleOrDid)
@@ -2821,6 +2896,6 @@ function useRemoveOrgNotificationEmail(options) {
2821
2896
  });
2822
2897
  }
2823
2898
 
2824
- export { ApiError, HIDDEN_ITEM_SOURCES, HIDDEN_ITEM_TYPES, QUOTED_POSTS_BATCH_MAX, SifaProvider, addFeatureAllowlist, addOrgNotificationEmail, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideProfileItems, bulkHideStandardPublications, bulkUnhideProfileItems, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, effectiveContentVisibility, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchBskyContentLabelPrefs, fetchEndorsementCount, fetchEntitySearch, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchGetProfileView, fetchHeatmapData, fetchHiddenApps, fetchMyGithubPullRequests, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchProfile, fetchProfileSummary, fetchReactionStatus, fetchResolveActor, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, fetchWipePreview, followUser, getBlueskySuggestions, getFollowers, getFollowing, getFollowingFeed, getMutuals, hideKeytraceClaim, hideOrcidPublication, hideProfileItem, hideSifaPublication, hideStandardPublication, importSearchEntities, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, listFeatureAllowlist, mintEntityDomain, refreshOrcidPublications, refreshPds, removeFeatureAllowlist, removeOrgNotificationEmail, requestOrgDomainChallenge, resetProfile, resolveEntityDomain, resolveQuotedPosts, retractRoadmapVote, revealMarqueDomain, searchSkills, selectEntity, setExternalAccountPrimary, setPositionPrimary, shouldGateAdultMedia, sifaQueryKeys, submitOrgClaim, unfollowUser, unhideKeytraceClaim, unhideOrcidPublication, unhideProfileItem, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unrevealMarqueDomain, unsetExternalAccountPrimary, unsetPositionPrimary, updateBskyContentLabelPrefs, updateEducation, updateExternalAccount, updateOrgProfile, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, updateSkillSubCategories, uploadAvatar, useActivityFeed, useActivityTeaser, useAddFeatureAllowlist, useAddOrgNotificationEmail, useAppAccountCheck, useAppsRegistry, useAtFundLink, useBlueskySuggestions, useBskyContentLabelPrefs, useBulkHideProfileItems, useBulkHideStandardPublications, useBulkUnhideProfileItems, useBulkUnhideStandardPublications, useCanonicalSkillSearch, useCastRoadmapVote, useCreateEducation, useCreateEndorsement, useCreateExternalAccount, useCreatePosition, useCreateProfileLocation, useCreateReaction, useCreateRecord, useCreateSkill, useDebouncedValue, useDeleteAccount, useDeleteAvatarOverride, useDeleteEducation, useDeleteExternalAccount, useDeletePosition, useDeleteProfileLocation, useDeleteReaction, useDeleteRecord, useDeleteSkill, useEndorsementCount, useEntitySearch, useExternalAccounts, useFeatureAllowlist, useFeaturedProfile, useFollow, useFollowers, useFollowing, useFollowingFeed, useFollowingList, useGetProfileView, useHeatmapData, useHiddenApps, useHideKeytraceClaim, useHideOrcidPublication, useHideProfileItem, useHideSifaPublication, useHideStandardPublication, useImportSearchEntities, useLinkSkillToPosition, useMintEntityDomain, useMutuals, useMyGithubPullRequests, useMyRoadmapVotes, useNetworkStreamCount, useOrgClaim, useOrgDomainChallenge, useOrgDomainVerify, useOrgProfile, useProfile, useReactionStatus, useRefreshOrcidPublications, useRefreshPds, useRemoveFeatureAllowlist, useRemoveOrgNotificationEmail, useResetProfile, useResolveEntityDomain, useRetractRoadmapVote, useRevealMarqueDomain, useRoadmapVotes, useSearchFilters, useSearchProfiles, useSelectEntity, useSetExternalAccountPrimary, useSetPositionPrimary, useSifaConfig, useSimilarProfiles, useSkillSuggestions, useStats, useSuggestionCount, useSuggestions, useUnfollow, useUnhideKeytraceClaim, useUnhideOrcidPublication, useUnhideProfileItem, useUnhideSifaPublication, useUnhideStandardPublication, useUnlinkSkillFromPosition, useUnrevealMarqueDomain, useUnsetExternalAccountPrimary, useUnsetPositionPrimary, useUpdateBskyContentLabelPrefs, useUpdateEducation, useUpdateExternalAccount, useUpdateOrgProfile, useUpdatePosition, useUpdateProfileLocation, useUpdateProfileOverride, useUpdateProfileSelf, useUpdateRecord, useUpdateSkill, useUpdateSkillSubCategories, useUploadAvatar, useVerifyExternalAccount, useWipePreview, verifyExternalAccount, verifyOrgDomain };
2899
+ export { ApiError, HIDDEN_ITEM_SOURCES, HIDDEN_ITEM_TYPES, QUOTED_POSTS_BATCH_MAX, SifaProvider, addFeatureAllowlist, addOrgNotificationEmail, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideProfileItems, bulkHideStandardPublications, bulkUnhideProfileItems, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, confirmEndorsement, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, dismissEndorsement, effectiveContentVisibility, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchBskyContentLabelPrefs, fetchEndorsementCount, fetchEntitySearch, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchGetProfileView, fetchHeatmapData, fetchHiddenApps, fetchMyGithubPullRequests, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchPendingEndorsements, fetchProfile, fetchProfileSummary, fetchReactionStatus, fetchResolveActor, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, fetchWipePreview, followUser, getBlueskySuggestions, getFollowers, getFollowing, getFollowingFeed, getMutuals, hideKeytraceClaim, hideOrcidPublication, hideProfileItem, hideSifaPublication, hideStandardPublication, importSearchEntities, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, listFeatureAllowlist, mintEntityDomain, refreshOrcidPublications, refreshPds, removeFeatureAllowlist, removeOrgNotificationEmail, requestOrgDomainChallenge, resetProfile, resolveEntityDomain, resolveQuotedPosts, retractRoadmapVote, revealMarqueDomain, searchSkills, selectEntity, setExternalAccountPrimary, setPositionPrimary, shouldGateAdultMedia, sifaQueryKeys, submitOrgClaim, unfollowUser, unhideKeytraceClaim, unhideOrcidPublication, unhideProfileItem, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unrevealMarqueDomain, unsetExternalAccountPrimary, unsetPositionPrimary, updateBskyContentLabelPrefs, updateEducation, updateExternalAccount, updateOrgProfile, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, updateSkillSubCategories, uploadAvatar, useActivityFeed, useActivityTeaser, useAddFeatureAllowlist, useAddOrgNotificationEmail, useAppAccountCheck, useAppsRegistry, useAtFundLink, useBlueskySuggestions, useBskyContentLabelPrefs, useBulkHideProfileItems, useBulkHideStandardPublications, useBulkUnhideProfileItems, useBulkUnhideStandardPublications, useCanonicalSkillSearch, useCastRoadmapVote, useConfirmEndorsement, useCreateEducation, useCreateEndorsement, useCreateExternalAccount, useCreatePosition, useCreateProfileLocation, useCreateReaction, useCreateRecord, useCreateSkill, useDebouncedValue, useDeleteAccount, useDeleteAvatarOverride, useDeleteEducation, useDeleteExternalAccount, useDeletePosition, useDeleteProfileLocation, useDeleteReaction, useDeleteRecord, useDeleteSkill, useDismissEndorsement, useEndorsementCount, useEntitySearch, useExternalAccounts, useFeatureAllowlist, useFeaturedProfile, useFollow, useFollowers, useFollowing, useFollowingFeed, useFollowingList, useGetProfileView, useHeatmapData, useHiddenApps, useHideKeytraceClaim, useHideOrcidPublication, useHideProfileItem, useHideSifaPublication, useHideStandardPublication, useImportSearchEntities, useLinkSkillToPosition, useMintEntityDomain, useMutuals, useMyGithubPullRequests, useMyRoadmapVotes, useNetworkStreamCount, useOrgClaim, useOrgDomainChallenge, useOrgDomainVerify, useOrgProfile, usePendingEndorsements, useProfile, useReactionStatus, useRefreshOrcidPublications, useRefreshPds, useRemoveFeatureAllowlist, useRemoveOrgNotificationEmail, useResetProfile, useResolveEntityDomain, useRetractRoadmapVote, useRevealMarqueDomain, useRoadmapVotes, useSearchFilters, useSearchProfiles, useSelectEntity, useSetExternalAccountPrimary, useSetPositionPrimary, useSifaConfig, useSimilarProfiles, useSkillSuggestions, useStats, useSuggestionCount, useSuggestions, useUnfollow, useUnhideKeytraceClaim, useUnhideOrcidPublication, useUnhideProfileItem, useUnhideSifaPublication, useUnhideStandardPublication, useUnlinkSkillFromPosition, useUnrevealMarqueDomain, useUnsetExternalAccountPrimary, useUnsetPositionPrimary, useUpdateBskyContentLabelPrefs, useUpdateEducation, useUpdateExternalAccount, useUpdateOrgProfile, useUpdatePosition, useUpdateProfileLocation, useUpdateProfileOverride, useUpdateProfileSelf, useUpdateRecord, useUpdateSkill, useUpdateSkillSubCategories, useUploadAvatar, useVerifyExternalAccount, useWipePreview, verifyExternalAccount, verifyOrgDomain };
2825
2900
  //# sourceMappingURL=index.js.map
2826
2901
  //# sourceMappingURL=index.js.map