@singi-labs/sifa-sdk 0.12.48 → 0.12.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-TELQkOMk.d.cts → index-10rMsh0Y.d.cts} +22 -2
- package/dist/{index-DS-cxfHb.d.ts → index-CatO6M_Y.d.ts} +1 -1
- package/dist/{index-X9PQhUnB.d.cts → index-CxZBzRTC.d.cts} +1 -1
- package/dist/{index-D5yf1X4k.d.ts → index-KQD7YLsb.d.ts} +22 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{org-BtdoBUT6.d.ts → org-8ysVY69a.d.ts} +60 -2
- package/dist/{org-C5Dzmo38.d.cts → org-Be0SH7dO.d.cts} +60 -2
- package/dist/query/fetchers/index.cjs +43 -2
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +2 -2
- package/dist/query/fetchers/index.d.ts +2 -2
- package/dist/query/fetchers/index.js +42 -3
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +66 -2
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +2 -2
- package/dist/query/hooks/index.d.ts +2 -2
- package/dist/query/hooks/index.js +65 -3
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +66 -2
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +5 -5
- package/dist/query/index.d.ts +5 -5
- package/dist/query/index.js +63 -3
- package/dist/query/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult,
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aG as UpdateProfileOverrideInput, aH as UpdateProfileSelfInput, aI as UploadAvatarResult, C as CreateResult, aD as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aJ as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aC as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ax as SearchFilters, ay as SearchResponse, aB as SkillSearchResult, q as FeaturedProfile, aA as SimilarProfile, H as FetchSuggestionsOptions, aF as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, aw as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, ar as ResetProfileResult, aK as WipePreview, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-Be0SH7dO.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef, E as ExternalAccount, S as SkillSuggestion, Q as OrgFloorVerdict } from './adult-content-BUgP8bpf.cjs';
|
|
@@ -216,6 +216,17 @@ declare function useCreateEndorsement(endorsedHandleOrDid: string | null, option
|
|
|
216
216
|
* without special-casing either.
|
|
217
217
|
*/
|
|
218
218
|
declare function usePendingConfirmations(options?: Omit<UseQueryOptions<PendingConfirmationsPage, Error, PendingConfirmationsPage, ReturnType<typeof sifaQueryKeys.confirmation.pending>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<PendingConfirmationsPage>, Error>;
|
|
219
|
+
/**
|
|
220
|
+
* Confirmations the signed-in user has already given, with whether each has
|
|
221
|
+
* drifted since. Returns an empty list when signed out or on error.
|
|
222
|
+
*/
|
|
223
|
+
declare function useGivenConfirmations(options?: Omit<UseQueryOptions<{
|
|
224
|
+
confirmations: GivenConfirmation[];
|
|
225
|
+
}, Error, {
|
|
226
|
+
confirmations: GivenConfirmation[];
|
|
227
|
+
}, ReturnType<typeof sifaQueryKeys.confirmation.given>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
228
|
+
confirmations: GivenConfirmation[];
|
|
229
|
+
}>, Error>;
|
|
219
230
|
/**
|
|
220
231
|
* Affirm a claim naming you. On success it leaves the inbox and starts
|
|
221
232
|
* rendering with your name and avatar on the claimer's profile, so both the
|
|
@@ -566,6 +577,15 @@ interface RemoveFeatureAllowlistVariables {
|
|
|
566
577
|
*/
|
|
567
578
|
declare function useRemoveFeatureAllowlist(flag: FeatureFlag, options?: Omit<UseMutationOptions<WriteResult, Error, RemoveFeatureAllowlistVariables, AllowlistMutationContext>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, RemoveFeatureAllowlistVariables, AllowlistMutationContext>;
|
|
568
579
|
|
|
580
|
+
/**
|
|
581
|
+
* Read hook for the open counts of the three admin review queues. Shared by
|
|
582
|
+
* the admin nav pill and the review-queues page so both render one number
|
|
583
|
+
* from one request.
|
|
584
|
+
*
|
|
585
|
+
* Admin-gated on the server; non-admins get an error rather than zeroes.
|
|
586
|
+
*/
|
|
587
|
+
declare function useAdminReviewQueues(options?: Omit<UseQueryOptions<AdminReviewQueues, Error, AdminReviewQueues, ReturnType<typeof sifaQueryKeys.admin.reviewQueues>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<AdminReviewQueues>, Error>;
|
|
588
|
+
|
|
569
589
|
declare function useHeatmapData(handleOrDid: string | undefined | null, days: number, options?: Omit<UseQueryOptions<HeatmapResponse | null, Error, HeatmapResponse | null, ReturnType<typeof sifaQueryKeys.activity.heatmap>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<HeatmapResponse | null>, Error>;
|
|
570
590
|
declare function useActivityTeaser(handleOrDid: string | undefined | null, options?: Omit<UseQueryOptions<ActivityTeaserResponse | null, Error, ActivityTeaserResponse | null, ReturnType<typeof sifaQueryKeys.activity.teaser>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityTeaserResponse | null>, Error>;
|
|
571
591
|
declare function useActivityFeed(handleOrDid: string | undefined | null, opts?: Pick<FetchActivityFeedOptions, 'category' | 'limit' | 'cursor'>, options?: Omit<UseQueryOptions<ActivityFeedResponse | null, Error, ActivityFeedResponse | null, ReturnType<typeof sifaQueryKeys.activity.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityFeedResponse | null>, Error>;
|
|
@@ -773,4 +793,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
773
793
|
email: string;
|
|
774
794
|
}, unknown>;
|
|
775
795
|
|
|
776
|
-
export {
|
|
796
|
+
export { useDeleteSkill as $, type AddFeatureAllowlistVariables as A, useCastRoadmapVote as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateConfirmation as E, type FollowVariables as F, useCreateEducation as G, useCreateEndorsement as H, useCreateExternalAccount as I, useCreatePosition as J, useCreateProfileLocation as K, useCreateReaction as L, useCreateRecord as M, useCreateSkill as N, useDebouncedValue as O, type PositionSkillLinkVariables as P, useDeleteAccount as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteAvatarOverride as T, type UnfollowVariables as U, useDeleteEducation as V, useDeleteExternalAccount as W, useDeletePosition as X, useDeleteProfileLocation as Y, useDeleteReaction as Z, useDeleteRecord as _, type CreateRecordVariables as a, useUnsetExternalAccountPrimary as a$, useDismissConfirmation as a0, useEndorsementCount as a1, useEntitySearch as a2, useExternalAccounts as a3, useFeatureAllowlist as a4, useFeaturedProfile as a5, useFollow as a6, useFollowers as a7, useFollowing as a8, useFollowingFeed as a9, useRemoveFeatureAllowlist as aA, useRemoveOrgNotificationEmail as aB, useResetProfile as aC, useResolveEntityDomain as aD, useRetractRoadmapVote as aE, useRevealMarqueDomain as aF, useRevokeConfirmation as aG, useRoadmapVotes as aH, useSearchFilters as aI, useSearchProfiles as aJ, useSelectEntity as aK, useSetExternalAccountPrimary as aL, useSetPositionPrimary as aM, useSifaConfig as aN, useSimilarProfiles as aO, useSkillSuggestions as aP, useStats as aQ, useSuggestionCount as aR, useSuggestions as aS, useUnfollow as aT, useUnhideKeytraceClaim as aU, useUnhideOrcidPublication as aV, useUnhideProfileItem as aW, useUnhideSifaPublication as aX, useUnhideStandardPublication as aY, useUnlinkSkillFromPosition as aZ, useUnrevealMarqueDomain as a_, useFollowingList as aa, useGetProfileView as ab, useGivenConfirmations as ac, useHeatmapData as ad, useHiddenApps as ae, useHideKeytraceClaim as af, useHideOrcidPublication as ag, useHideProfileItem as ah, useHideSifaPublication as ai, useHideStandardPublication as aj, useImportSearchEntities as ak, useLinkSkillToPosition as al, useMintEntityDomain as am, useMutuals as an, useMyGithubPullRequests as ao, useMyRoadmapVotes as ap, useNetworkStreamCount as aq, useOrgClaim as ar, useOrgDomainChallenge as as, useOrgDomainVerify as at, useOrgProfile as au, usePendingConfirmations as av, useProfile as aw, useReactionStatus as ax, useRefreshOrcidPublications as ay, useRefreshPds as az, type DeleteRecordVariables as b, useUnsetPositionPrimary as b0, useUpdateEducation as b1, useUpdateExternalAccount as b2, useUpdateOrgProfile as b3, useUpdatePosition as b4, useUpdateProfileLocation as b5, useUpdateProfileOverride as b6, useUpdateProfileSelf as b7, useUpdateRecord as b8, useUpdateSkill as b9, useUpdateSkillSubCategories as ba, useUploadAvatar as bb, useVerifyExternalAccount as bc, useWipePreview as bd, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillSubCategoriesVariables as i, type UpdateSkillVariables as j, type UseEntitySearchOptions as k, type UseMyGithubPullRequestsParams as l, useActivityTeaser as m, useAddFeatureAllowlist as n, useAddOrgNotificationEmail as o, useAdminReviewQueues as p, useAppAccountCheck as q, useAppsRegistry as r, useAtFundLink as s, useBlueskySuggestions as t, useActivityFeed as u, useBulkHideProfileItems as v, useBulkHideStandardPublications as w, useBulkUnhideProfileItems as x, useBulkUnhideStandardPublications as y, useCanonicalSkillSearch as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-8ysVY69a.js';
|
|
2
2
|
import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef } from './adult-content-BUgP8bpf.js';
|
|
3
3
|
import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.js';
|
|
4
4
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DyX9EJzZ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-Be0SH7dO.cjs';
|
|
2
2
|
import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef } from './adult-content-BUgP8bpf.cjs';
|
|
3
3
|
import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.cjs';
|
|
4
4
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DReI-P0i.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult,
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aG as UpdateProfileOverrideInput, aH as UpdateProfileSelfInput, aI as UploadAvatarResult, C as CreateResult, aD as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aJ as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aC as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ax as SearchFilters, ay as SearchResponse, aB as SkillSearchResult, q as FeaturedProfile, aA as SimilarProfile, H as FetchSuggestionsOptions, aF as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, aw as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, ar as ResetProfileResult, aK as WipePreview, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-8ysVY69a.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef, E as ExternalAccount, S as SkillSuggestion, Q as OrgFloorVerdict } from './adult-content-BUgP8bpf.js';
|
|
@@ -216,6 +216,17 @@ declare function useCreateEndorsement(endorsedHandleOrDid: string | null, option
|
|
|
216
216
|
* without special-casing either.
|
|
217
217
|
*/
|
|
218
218
|
declare function usePendingConfirmations(options?: Omit<UseQueryOptions<PendingConfirmationsPage, Error, PendingConfirmationsPage, ReturnType<typeof sifaQueryKeys.confirmation.pending>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<PendingConfirmationsPage>, Error>;
|
|
219
|
+
/**
|
|
220
|
+
* Confirmations the signed-in user has already given, with whether each has
|
|
221
|
+
* drifted since. Returns an empty list when signed out or on error.
|
|
222
|
+
*/
|
|
223
|
+
declare function useGivenConfirmations(options?: Omit<UseQueryOptions<{
|
|
224
|
+
confirmations: GivenConfirmation[];
|
|
225
|
+
}, Error, {
|
|
226
|
+
confirmations: GivenConfirmation[];
|
|
227
|
+
}, ReturnType<typeof sifaQueryKeys.confirmation.given>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
228
|
+
confirmations: GivenConfirmation[];
|
|
229
|
+
}>, Error>;
|
|
219
230
|
/**
|
|
220
231
|
* Affirm a claim naming you. On success it leaves the inbox and starts
|
|
221
232
|
* rendering with your name and avatar on the claimer's profile, so both the
|
|
@@ -566,6 +577,15 @@ interface RemoveFeatureAllowlistVariables {
|
|
|
566
577
|
*/
|
|
567
578
|
declare function useRemoveFeatureAllowlist(flag: FeatureFlag, options?: Omit<UseMutationOptions<WriteResult, Error, RemoveFeatureAllowlistVariables, AllowlistMutationContext>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, RemoveFeatureAllowlistVariables, AllowlistMutationContext>;
|
|
568
579
|
|
|
580
|
+
/**
|
|
581
|
+
* Read hook for the open counts of the three admin review queues. Shared by
|
|
582
|
+
* the admin nav pill and the review-queues page so both render one number
|
|
583
|
+
* from one request.
|
|
584
|
+
*
|
|
585
|
+
* Admin-gated on the server; non-admins get an error rather than zeroes.
|
|
586
|
+
*/
|
|
587
|
+
declare function useAdminReviewQueues(options?: Omit<UseQueryOptions<AdminReviewQueues, Error, AdminReviewQueues, ReturnType<typeof sifaQueryKeys.admin.reviewQueues>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<AdminReviewQueues>, Error>;
|
|
588
|
+
|
|
569
589
|
declare function useHeatmapData(handleOrDid: string | undefined | null, days: number, options?: Omit<UseQueryOptions<HeatmapResponse | null, Error, HeatmapResponse | null, ReturnType<typeof sifaQueryKeys.activity.heatmap>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<HeatmapResponse | null>, Error>;
|
|
570
590
|
declare function useActivityTeaser(handleOrDid: string | undefined | null, options?: Omit<UseQueryOptions<ActivityTeaserResponse | null, Error, ActivityTeaserResponse | null, ReturnType<typeof sifaQueryKeys.activity.teaser>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityTeaserResponse | null>, Error>;
|
|
571
591
|
declare function useActivityFeed(handleOrDid: string | undefined | null, opts?: Pick<FetchActivityFeedOptions, 'category' | 'limit' | 'cursor'>, options?: Omit<UseQueryOptions<ActivityFeedResponse | null, Error, ActivityFeedResponse | null, ReturnType<typeof sifaQueryKeys.activity.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ActivityFeedResponse | null>, Error>;
|
|
@@ -773,4 +793,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
773
793
|
email: string;
|
|
774
794
|
}, unknown>;
|
|
775
795
|
|
|
776
|
-
export {
|
|
796
|
+
export { useDeleteSkill as $, type AddFeatureAllowlistVariables as A, useCastRoadmapVote as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateConfirmation as E, type FollowVariables as F, useCreateEducation as G, useCreateEndorsement as H, useCreateExternalAccount as I, useCreatePosition as J, useCreateProfileLocation as K, useCreateReaction as L, useCreateRecord as M, useCreateSkill as N, useDebouncedValue as O, type PositionSkillLinkVariables as P, useDeleteAccount as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteAvatarOverride as T, type UnfollowVariables as U, useDeleteEducation as V, useDeleteExternalAccount as W, useDeletePosition as X, useDeleteProfileLocation as Y, useDeleteReaction as Z, useDeleteRecord as _, type CreateRecordVariables as a, useUnsetExternalAccountPrimary as a$, useDismissConfirmation as a0, useEndorsementCount as a1, useEntitySearch as a2, useExternalAccounts as a3, useFeatureAllowlist as a4, useFeaturedProfile as a5, useFollow as a6, useFollowers as a7, useFollowing as a8, useFollowingFeed as a9, useRemoveFeatureAllowlist as aA, useRemoveOrgNotificationEmail as aB, useResetProfile as aC, useResolveEntityDomain as aD, useRetractRoadmapVote as aE, useRevealMarqueDomain as aF, useRevokeConfirmation as aG, useRoadmapVotes as aH, useSearchFilters as aI, useSearchProfiles as aJ, useSelectEntity as aK, useSetExternalAccountPrimary as aL, useSetPositionPrimary as aM, useSifaConfig as aN, useSimilarProfiles as aO, useSkillSuggestions as aP, useStats as aQ, useSuggestionCount as aR, useSuggestions as aS, useUnfollow as aT, useUnhideKeytraceClaim as aU, useUnhideOrcidPublication as aV, useUnhideProfileItem as aW, useUnhideSifaPublication as aX, useUnhideStandardPublication as aY, useUnlinkSkillFromPosition as aZ, useUnrevealMarqueDomain as a_, useFollowingList as aa, useGetProfileView as ab, useGivenConfirmations as ac, useHeatmapData as ad, useHiddenApps as ae, useHideKeytraceClaim as af, useHideOrcidPublication as ag, useHideProfileItem as ah, useHideSifaPublication as ai, useHideStandardPublication as aj, useImportSearchEntities as ak, useLinkSkillToPosition as al, useMintEntityDomain as am, useMutuals as an, useMyGithubPullRequests as ao, useMyRoadmapVotes as ap, useNetworkStreamCount as aq, useOrgClaim as ar, useOrgDomainChallenge as as, useOrgDomainVerify as at, useOrgProfile as au, usePendingConfirmations as av, useProfile as aw, useReactionStatus as ax, useRefreshOrcidPublications as ay, useRefreshPds as az, type DeleteRecordVariables as b, useUnsetPositionPrimary as b0, useUpdateEducation as b1, useUpdateExternalAccount as b2, useUpdateOrgProfile as b3, useUpdatePosition as b4, useUpdateProfileLocation as b5, useUpdateProfileOverride as b6, useUpdateProfileSelf as b7, useUpdateRecord as b8, useUpdateSkill as b9, useUpdateSkillSubCategories as ba, useUploadAvatar as bb, useVerifyExternalAccount as bc, useWipePreview as bd, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillSubCategoriesVariables as i, type UpdateSkillVariables as j, type UseEntitySearchOptions as k, type UseMyGithubPullRequestsParams as l, useActivityTeaser as m, useAddFeatureAllowlist as n, useAddOrgNotificationEmail as o, useAdminReviewQueues as p, useAppAccountCheck as q, useAppsRegistry as r, useAtFundLink as s, useBlueskySuggestions as t, useActivityFeed as u, useBulkHideProfileItems as v, useBulkHideStandardPublications as w, useBulkUnhideProfileItems as x, useBulkUnhideStandardPublications as y, useCanonicalSkillSearch as z };
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -5391,7 +5391,7 @@ function roadmapIssueUrl(issue) {
|
|
|
5391
5391
|
}
|
|
5392
5392
|
|
|
5393
5393
|
// src/index.ts
|
|
5394
|
-
var SIFA_SDK_VERSION = "0.12.
|
|
5394
|
+
var SIFA_SDK_VERSION = "0.12.50";
|
|
5395
5395
|
|
|
5396
5396
|
export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, ArtifactLinkSchema, AtmosphereFeedItemSchema, BlobRefSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntityMintDomainResponseSchema, EntityResolveDomainRequestSchema, EntityResolveDomainResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PROFILE_INVOLVEMENT_NSID, PROJECT_ROLES, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, ROADMAP_ISSUES_REPO, ROADMAP_ITEM_META, SECTION_GROUPS, SECTION_LABELS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, getActivityVerbsVersion, getAppCategoryIcon, getAppIdForCollection, getArtifactLinkKindLabel, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, rendersCompanyProfile, rendersPersonalProfile, resolveAccountFacetMode, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, skillRefSchema, slugifyTitle, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamAddressSchema, streamAuthorSchema, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamGeoSchema, streamMediaSchema, streamRichSegmentSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, summarizeProfileView, toStreamCardVM, toStreamCardVMs, truncateGraphemes, uriSchema, verbForCollection, visibleItems, youtubeThumbnailUrl, youtubeVideoId };
|
|
5397
5397
|
//# sourceMappingURL=index.js.map
|
|
@@ -377,6 +377,22 @@ interface PendingConfirmationsPage {
|
|
|
377
377
|
confirmations: PendingConfirmation[];
|
|
378
378
|
cursor?: string;
|
|
379
379
|
}
|
|
380
|
+
/** A confirmation the signed-in user has already given. */
|
|
381
|
+
interface GivenConfirmation {
|
|
382
|
+
subjectUri: string;
|
|
383
|
+
claimerDid: string;
|
|
384
|
+
claimerHandle?: string;
|
|
385
|
+
relation: string;
|
|
386
|
+
/** The name as it stood when confirmed, so a rename shows as a difference. */
|
|
387
|
+
subjectName: string;
|
|
388
|
+
/** The name the record carries now. Absent when the claim no longer exists. */
|
|
389
|
+
currentName?: string;
|
|
390
|
+
/** The record changed materially after it was confirmed. */
|
|
391
|
+
confirmedStale: boolean;
|
|
392
|
+
/** They removed you from the record, or deleted it. Nothing left to withdraw. */
|
|
393
|
+
claimWithdrawn: boolean;
|
|
394
|
+
createdAt: string;
|
|
395
|
+
}
|
|
380
396
|
/** Body accepted by {@link createConfirmation}. */
|
|
381
397
|
interface ConfirmationInput {
|
|
382
398
|
subjectUri: string;
|
|
@@ -401,6 +417,19 @@ interface ConfirmationSubjectInput {
|
|
|
401
417
|
* pending" rather than breaking the surface hosting it.
|
|
402
418
|
*/
|
|
403
419
|
declare function fetchPendingConfirmations(config: SifaApiConfig, options?: ApiFetchOptions): Promise<PendingConfirmationsPage>;
|
|
420
|
+
/**
|
|
421
|
+
* Confirmations the signed-in user has already given.
|
|
422
|
+
*
|
|
423
|
+
* The surface for changing your mind. Without it a confirmation is one-way in
|
|
424
|
+
* practice: the inbox lists only claims you have not answered, so once answered
|
|
425
|
+
* there is nowhere to see it, let alone withdraw it.
|
|
426
|
+
*
|
|
427
|
+
* Returns an empty list on failure, matching the pending inbox: a broken list
|
|
428
|
+
* should not break the page hosting it.
|
|
429
|
+
*/
|
|
430
|
+
declare function fetchGivenConfirmations(config: SifaApiConfig, options?: ApiFetchOptions): Promise<{
|
|
431
|
+
confirmations: GivenConfirmation[];
|
|
432
|
+
}>;
|
|
404
433
|
/**
|
|
405
434
|
* Affirm that a record naming you is accurate, writing an `id.sifa.confirmation`
|
|
406
435
|
* to your own PDS. Until this exists the claim renders as a bare handle with no
|
|
@@ -889,6 +918,32 @@ declare function addFeatureAllowlist(config: SifaApiConfig, flag: FeatureFlag, d
|
|
|
889
918
|
*/
|
|
890
919
|
declare function removeFeatureAllowlist(config: SifaApiConfig, flag: FeatureFlag, did: string, opts?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult>;
|
|
891
920
|
|
|
921
|
+
/**
|
|
922
|
+
* Options for {@link getAdminReviewQueues}. Supports the same `cookieHeader`
|
|
923
|
+
* passthrough as the other admin reads for RSC contexts.
|
|
924
|
+
*/
|
|
925
|
+
interface GetAdminReviewQueuesOptions extends ApiFetchOptions {
|
|
926
|
+
cookieHeader?: string;
|
|
927
|
+
}
|
|
928
|
+
/** Response shape of `GET /api/admin/stats/review-queues`. */
|
|
929
|
+
interface AdminReviewQueues {
|
|
930
|
+
ideas: number;
|
|
931
|
+
nameCorrections: number;
|
|
932
|
+
pendingCompanies: number;
|
|
933
|
+
/** Sum of the three queues. */
|
|
934
|
+
total: number;
|
|
935
|
+
generatedAt: string;
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Open counts for the three admin review queues (ideas, pending companies,
|
|
939
|
+
* name corrections) plus their total.
|
|
940
|
+
*
|
|
941
|
+
* Unlike {@link listFeatureAllowlist} this does NOT swallow errors: a zeroed
|
|
942
|
+
* payload would render as "all queues clear" in the admin nav, which is worse
|
|
943
|
+
* than rendering nothing. Callers decide how to degrade.
|
|
944
|
+
*/
|
|
945
|
+
declare function getAdminReviewQueues(config: SifaApiConfig, opts?: GetAdminReviewQueuesOptions): Promise<AdminReviewQueues>;
|
|
946
|
+
|
|
892
947
|
interface QuotedPostAuthor {
|
|
893
948
|
did: string;
|
|
894
949
|
handle: string;
|
|
@@ -1369,6 +1424,7 @@ declare const sifaQueryKeys: {
|
|
|
1369
1424
|
readonly admin: {
|
|
1370
1425
|
readonly all: () => readonly ["sifa", "admin"];
|
|
1371
1426
|
readonly featureAllowlist: (flag: string) => readonly ["sifa", "admin", "feature-allowlist", string];
|
|
1427
|
+
readonly reviewQueues: () => readonly ["sifa", "admin", "review-queues"];
|
|
1372
1428
|
};
|
|
1373
1429
|
readonly stats: {
|
|
1374
1430
|
readonly all: () => readonly ["sifa", "stats"];
|
|
@@ -1403,6 +1459,8 @@ declare const sifaQueryKeys: {
|
|
|
1403
1459
|
readonly confirmation: {
|
|
1404
1460
|
readonly all: () => readonly ["sifa", "confirmation"];
|
|
1405
1461
|
readonly pending: () => readonly ["sifa", "confirmation", "pending"];
|
|
1462
|
+
/** Confirmations this session has given, for the withdraw surface. */
|
|
1463
|
+
readonly given: () => readonly ["sifa", "confirmation", "given"];
|
|
1406
1464
|
};
|
|
1407
1465
|
readonly stream: {
|
|
1408
1466
|
readonly all: () => readonly ["sifa", "stream"];
|
|
@@ -1427,7 +1485,7 @@ declare const sifaQueryKeys: {
|
|
|
1427
1485
|
readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
|
|
1428
1486
|
};
|
|
1429
1487
|
};
|
|
1430
|
-
type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
|
|
1488
|
+
type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.admin.reviewQueues> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.confirmation.given> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
|
|
1431
1489
|
|
|
1432
1490
|
/** How a single entity binding was resolved during a claim. */
|
|
1433
1491
|
interface OrgClaimBinding {
|
|
@@ -1514,4 +1572,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1514
1572
|
*/
|
|
1515
1573
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1516
1574
|
|
|
1517
|
-
export { type
|
|
1575
|
+
export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a, createProfileLocation as a$, type MyGithubPullRequestsResponse as a0, type OrgClaimBinding as a1, type OrgClaimResult as a2, type OrgDomainChallengeResult as a3, type OrgDomainVerifyResult as a4, type OrgNotificationEmailAddResult as a5, type OrgNotificationEmailRemoveResult as a6, type OrgProfileEcho as a7, type OrgProfileUpdateResult as a8, type PdsWipeOutcome as a9, type SimilarProfile as aA, type SkillSearchResult as aB, type StatsResponse as aC, type SubCategoryBulkResult as aD, type SuggestionProfile as aE, type SuggestionsResponse as aF, type UpdateProfileOverrideInput as aG, type UpdateProfileSelfInput as aH, type UploadAvatarResult as aI, type VerifyExternalAccountResult as aJ, type WipePreview as aK, addFeatureAllowlist as aL, addOrgNotificationEmail as aM, apiFetch as aN, apiFetchOrNull as aO, apiWrite as aP, apiWriteCreate as aQ, bulkHideProfileItems as aR, bulkHideStandardPublications as aS, bulkUnhideProfileItems as aT, bulkUnhideStandardPublications as aU, castRoadmapVote as aV, checkAppAccount as aW, confirmEndorsement as aX, createConfirmation as aY, createEndorsement as aZ, createExternalAccount as a_, type PendingConfirmation as aa, type PendingConfirmationsPage as ab, type ProfileIndustryInput as ac, type ProfileLocationAddress as ad, type ProfileLocationInput as ae, type ProfileSearchResult as af, type ProfileSelfLocation as ag, QUOTED_POSTS_BATCH_MAX as ah, type QuotedPostAuthor as ai, type QuotedPostImage as aj, type QuotedPostResult as ak, type QuotedPostView as al, type ReactionError as am, type ReactionResult as an, type ReactionStatus as ao, type RefreshOrcidPublicationsResult as ap, type RefreshPdsResult as aq, type ResetProfileResult as ar, type ResolveQuotedPostsOptions as as, type RoadmapVoteError as at, type RoadmapVoteResult as au, type RoadmapVoter as av, type RoadmapVotesResponse as aw, type SearchFilters as ax, type SearchResponse as ay, type SifaQueryKey as az, type ConfirmEndorsementResult as b, updateProfileLocation as b$, createReaction as b0, createSkill as b1, deleteAccount as b2, deleteAvatarOverride as b3, deleteExternalAccount as b4, deleteProfileLocation as b5, deleteReaction as b6, deleteSkill as b7, dismissConfirmation as b8, fetchActivityFeed as b9, getFollowingFeed as bA, getMutuals as bB, hideOrcidPublication as bC, hideProfileItem as bD, hideSifaPublication as bE, hideStandardPublication as bF, listFeatureAllowlist as bG, refreshOrcidPublications as bH, refreshPds as bI, removeFeatureAllowlist as bJ, removeOrgNotificationEmail as bK, requestOrgDomainChallenge as bL, resetProfile as bM, resolveQuotedPosts as bN, retractRoadmapVote as bO, revokeConfirmation as bP, searchSkills as bQ, setExternalAccountPrimary as bR, submitOrgClaim as bS, unfollowUser as bT, unhideOrcidPublication as bU, unhideProfileItem as bV, unhideSifaPublication as bW, unhideStandardPublication as bX, unsetExternalAccountPrimary as bY, updateExternalAccount as bZ, updateOrgProfile as b_, fetchActivityTeaser as ba, fetchAppsRegistry as bb, fetchExternalAccounts as bc, fetchFeaturedProfile as bd, fetchFollowing as be, fetchGivenConfirmations as bf, fetchHeatmapData as bg, fetchHiddenApps as bh, fetchMyGithubPullRequests as bi, fetchMyRoadmapVotes as bj, fetchPendingConfirmations as bk, fetchReactionStatus as bl, fetchRoadmapVotes as bm, fetchSearchFilters as bn, fetchSearchProfiles as bo, fetchSimilarProfiles as bp, fetchSkillSuggestions as bq, fetchStats as br, fetchSuggestionCount as bs, fetchSuggestions as bt, fetchWipePreview as bu, followUser as bv, getAdminReviewQueues as bw, getBlueskySuggestions as bx, getFollowers as by, getFollowing as bz, type AccountCheckResult as c, updateProfileOverride as c0, updateProfileSelf as c1, updateSkill as c2, updateSkillSubCategories as c3, uploadAvatar as c4, verifyExternalAccount as c5, verifyOrgDomain as c6, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
|
|
@@ -377,6 +377,22 @@ interface PendingConfirmationsPage {
|
|
|
377
377
|
confirmations: PendingConfirmation[];
|
|
378
378
|
cursor?: string;
|
|
379
379
|
}
|
|
380
|
+
/** A confirmation the signed-in user has already given. */
|
|
381
|
+
interface GivenConfirmation {
|
|
382
|
+
subjectUri: string;
|
|
383
|
+
claimerDid: string;
|
|
384
|
+
claimerHandle?: string;
|
|
385
|
+
relation: string;
|
|
386
|
+
/** The name as it stood when confirmed, so a rename shows as a difference. */
|
|
387
|
+
subjectName: string;
|
|
388
|
+
/** The name the record carries now. Absent when the claim no longer exists. */
|
|
389
|
+
currentName?: string;
|
|
390
|
+
/** The record changed materially after it was confirmed. */
|
|
391
|
+
confirmedStale: boolean;
|
|
392
|
+
/** They removed you from the record, or deleted it. Nothing left to withdraw. */
|
|
393
|
+
claimWithdrawn: boolean;
|
|
394
|
+
createdAt: string;
|
|
395
|
+
}
|
|
380
396
|
/** Body accepted by {@link createConfirmation}. */
|
|
381
397
|
interface ConfirmationInput {
|
|
382
398
|
subjectUri: string;
|
|
@@ -401,6 +417,19 @@ interface ConfirmationSubjectInput {
|
|
|
401
417
|
* pending" rather than breaking the surface hosting it.
|
|
402
418
|
*/
|
|
403
419
|
declare function fetchPendingConfirmations(config: SifaApiConfig, options?: ApiFetchOptions): Promise<PendingConfirmationsPage>;
|
|
420
|
+
/**
|
|
421
|
+
* Confirmations the signed-in user has already given.
|
|
422
|
+
*
|
|
423
|
+
* The surface for changing your mind. Without it a confirmation is one-way in
|
|
424
|
+
* practice: the inbox lists only claims you have not answered, so once answered
|
|
425
|
+
* there is nowhere to see it, let alone withdraw it.
|
|
426
|
+
*
|
|
427
|
+
* Returns an empty list on failure, matching the pending inbox: a broken list
|
|
428
|
+
* should not break the page hosting it.
|
|
429
|
+
*/
|
|
430
|
+
declare function fetchGivenConfirmations(config: SifaApiConfig, options?: ApiFetchOptions): Promise<{
|
|
431
|
+
confirmations: GivenConfirmation[];
|
|
432
|
+
}>;
|
|
404
433
|
/**
|
|
405
434
|
* Affirm that a record naming you is accurate, writing an `id.sifa.confirmation`
|
|
406
435
|
* to your own PDS. Until this exists the claim renders as a bare handle with no
|
|
@@ -889,6 +918,32 @@ declare function addFeatureAllowlist(config: SifaApiConfig, flag: FeatureFlag, d
|
|
|
889
918
|
*/
|
|
890
919
|
declare function removeFeatureAllowlist(config: SifaApiConfig, flag: FeatureFlag, did: string, opts?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult>;
|
|
891
920
|
|
|
921
|
+
/**
|
|
922
|
+
* Options for {@link getAdminReviewQueues}. Supports the same `cookieHeader`
|
|
923
|
+
* passthrough as the other admin reads for RSC contexts.
|
|
924
|
+
*/
|
|
925
|
+
interface GetAdminReviewQueuesOptions extends ApiFetchOptions {
|
|
926
|
+
cookieHeader?: string;
|
|
927
|
+
}
|
|
928
|
+
/** Response shape of `GET /api/admin/stats/review-queues`. */
|
|
929
|
+
interface AdminReviewQueues {
|
|
930
|
+
ideas: number;
|
|
931
|
+
nameCorrections: number;
|
|
932
|
+
pendingCompanies: number;
|
|
933
|
+
/** Sum of the three queues. */
|
|
934
|
+
total: number;
|
|
935
|
+
generatedAt: string;
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Open counts for the three admin review queues (ideas, pending companies,
|
|
939
|
+
* name corrections) plus their total.
|
|
940
|
+
*
|
|
941
|
+
* Unlike {@link listFeatureAllowlist} this does NOT swallow errors: a zeroed
|
|
942
|
+
* payload would render as "all queues clear" in the admin nav, which is worse
|
|
943
|
+
* than rendering nothing. Callers decide how to degrade.
|
|
944
|
+
*/
|
|
945
|
+
declare function getAdminReviewQueues(config: SifaApiConfig, opts?: GetAdminReviewQueuesOptions): Promise<AdminReviewQueues>;
|
|
946
|
+
|
|
892
947
|
interface QuotedPostAuthor {
|
|
893
948
|
did: string;
|
|
894
949
|
handle: string;
|
|
@@ -1369,6 +1424,7 @@ declare const sifaQueryKeys: {
|
|
|
1369
1424
|
readonly admin: {
|
|
1370
1425
|
readonly all: () => readonly ["sifa", "admin"];
|
|
1371
1426
|
readonly featureAllowlist: (flag: string) => readonly ["sifa", "admin", "feature-allowlist", string];
|
|
1427
|
+
readonly reviewQueues: () => readonly ["sifa", "admin", "review-queues"];
|
|
1372
1428
|
};
|
|
1373
1429
|
readonly stats: {
|
|
1374
1430
|
readonly all: () => readonly ["sifa", "stats"];
|
|
@@ -1403,6 +1459,8 @@ declare const sifaQueryKeys: {
|
|
|
1403
1459
|
readonly confirmation: {
|
|
1404
1460
|
readonly all: () => readonly ["sifa", "confirmation"];
|
|
1405
1461
|
readonly pending: () => readonly ["sifa", "confirmation", "pending"];
|
|
1462
|
+
/** Confirmations this session has given, for the withdraw surface. */
|
|
1463
|
+
readonly given: () => readonly ["sifa", "confirmation", "given"];
|
|
1406
1464
|
};
|
|
1407
1465
|
readonly stream: {
|
|
1408
1466
|
readonly all: () => readonly ["sifa", "stream"];
|
|
@@ -1427,7 +1485,7 @@ declare const sifaQueryKeys: {
|
|
|
1427
1485
|
readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
|
|
1428
1486
|
};
|
|
1429
1487
|
};
|
|
1430
|
-
type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
|
|
1488
|
+
type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.admin.reviewQueues> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.confirmation.given> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
|
|
1431
1489
|
|
|
1432
1490
|
/** How a single entity binding was resolved during a claim. */
|
|
1433
1491
|
interface OrgClaimBinding {
|
|
@@ -1514,4 +1572,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1514
1572
|
*/
|
|
1515
1573
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1516
1574
|
|
|
1517
|
-
export { type
|
|
1575
|
+
export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a, createProfileLocation as a$, type MyGithubPullRequestsResponse as a0, type OrgClaimBinding as a1, type OrgClaimResult as a2, type OrgDomainChallengeResult as a3, type OrgDomainVerifyResult as a4, type OrgNotificationEmailAddResult as a5, type OrgNotificationEmailRemoveResult as a6, type OrgProfileEcho as a7, type OrgProfileUpdateResult as a8, type PdsWipeOutcome as a9, type SimilarProfile as aA, type SkillSearchResult as aB, type StatsResponse as aC, type SubCategoryBulkResult as aD, type SuggestionProfile as aE, type SuggestionsResponse as aF, type UpdateProfileOverrideInput as aG, type UpdateProfileSelfInput as aH, type UploadAvatarResult as aI, type VerifyExternalAccountResult as aJ, type WipePreview as aK, addFeatureAllowlist as aL, addOrgNotificationEmail as aM, apiFetch as aN, apiFetchOrNull as aO, apiWrite as aP, apiWriteCreate as aQ, bulkHideProfileItems as aR, bulkHideStandardPublications as aS, bulkUnhideProfileItems as aT, bulkUnhideStandardPublications as aU, castRoadmapVote as aV, checkAppAccount as aW, confirmEndorsement as aX, createConfirmation as aY, createEndorsement as aZ, createExternalAccount as a_, type PendingConfirmation as aa, type PendingConfirmationsPage as ab, type ProfileIndustryInput as ac, type ProfileLocationAddress as ad, type ProfileLocationInput as ae, type ProfileSearchResult as af, type ProfileSelfLocation as ag, QUOTED_POSTS_BATCH_MAX as ah, type QuotedPostAuthor as ai, type QuotedPostImage as aj, type QuotedPostResult as ak, type QuotedPostView as al, type ReactionError as am, type ReactionResult as an, type ReactionStatus as ao, type RefreshOrcidPublicationsResult as ap, type RefreshPdsResult as aq, type ResetProfileResult as ar, type ResolveQuotedPostsOptions as as, type RoadmapVoteError as at, type RoadmapVoteResult as au, type RoadmapVoter as av, type RoadmapVotesResponse as aw, type SearchFilters as ax, type SearchResponse as ay, type SifaQueryKey as az, type ConfirmEndorsementResult as b, updateProfileLocation as b$, createReaction as b0, createSkill as b1, deleteAccount as b2, deleteAvatarOverride as b3, deleteExternalAccount as b4, deleteProfileLocation as b5, deleteReaction as b6, deleteSkill as b7, dismissConfirmation as b8, fetchActivityFeed as b9, getFollowingFeed as bA, getMutuals as bB, hideOrcidPublication as bC, hideProfileItem as bD, hideSifaPublication as bE, hideStandardPublication as bF, listFeatureAllowlist as bG, refreshOrcidPublications as bH, refreshPds as bI, removeFeatureAllowlist as bJ, removeOrgNotificationEmail as bK, requestOrgDomainChallenge as bL, resetProfile as bM, resolveQuotedPosts as bN, retractRoadmapVote as bO, revokeConfirmation as bP, searchSkills as bQ, setExternalAccountPrimary as bR, submitOrgClaim as bS, unfollowUser as bT, unhideOrcidPublication as bU, unhideProfileItem as bV, unhideSifaPublication as bW, unhideStandardPublication as bX, unsetExternalAccountPrimary as bY, updateExternalAccount as bZ, updateOrgProfile as b_, fetchActivityTeaser as ba, fetchAppsRegistry as bb, fetchExternalAccounts as bc, fetchFeaturedProfile as bd, fetchFollowing as be, fetchGivenConfirmations as bf, fetchHeatmapData as bg, fetchHiddenApps as bh, fetchMyGithubPullRequests as bi, fetchMyRoadmapVotes as bj, fetchPendingConfirmations as bk, fetchReactionStatus as bl, fetchRoadmapVotes as bm, fetchSearchFilters as bn, fetchSearchProfiles as bo, fetchSimilarProfiles as bp, fetchSkillSuggestions as bq, fetchStats as br, fetchSuggestionCount as bs, fetchSuggestions as bt, fetchWipePreview as bu, followUser as bv, getAdminReviewQueues as bw, getBlueskySuggestions as bx, getFollowers as by, getFollowing as bz, type AccountCheckResult as c, updateProfileOverride as c0, updateProfileSelf as c1, updateSkill as c2, updateSkillSubCategories as c3, uploadAvatar as c4, verifyExternalAccount as c5, verifyOrgDomain as c6, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
|
|
@@ -421,6 +421,18 @@ async function fetchPendingConfirmations(config, options = {}) {
|
|
|
421
421
|
return { confirmations: [] };
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
+
async function fetchGivenConfirmations(config, options = {}) {
|
|
425
|
+
try {
|
|
426
|
+
const data = await apiFetch(
|
|
427
|
+
config,
|
|
428
|
+
"/api/confirmations/mine",
|
|
429
|
+
{ cache: "no-store", credentials: "include", timeoutMs: 5e3, ...options }
|
|
430
|
+
);
|
|
431
|
+
return { confirmations: data?.confirmations ?? [] };
|
|
432
|
+
} catch {
|
|
433
|
+
return { confirmations: [] };
|
|
434
|
+
}
|
|
435
|
+
}
|
|
424
436
|
function createConfirmation(config, data, options = {}) {
|
|
425
437
|
return apiWriteCreate(config, "/api/confirmation", data, options);
|
|
426
438
|
}
|
|
@@ -856,6 +868,30 @@ function removeFeatureAllowlist(config, flag, did, opts = {}) {
|
|
|
856
868
|
);
|
|
857
869
|
}
|
|
858
870
|
|
|
871
|
+
// src/query/fetchers/admin-review-queues.ts
|
|
872
|
+
async function getAdminReviewQueues(config, opts = {}) {
|
|
873
|
+
const headers = { ...opts.headers ?? {} };
|
|
874
|
+
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
875
|
+
const res = await apiFetch(config, "/api/admin/stats/review-queues", {
|
|
876
|
+
credentials: "include",
|
|
877
|
+
cache: "no-store",
|
|
878
|
+
...opts,
|
|
879
|
+
headers
|
|
880
|
+
});
|
|
881
|
+
const ideas = res.ideas ?? 0;
|
|
882
|
+
const nameCorrections = res.nameCorrections ?? 0;
|
|
883
|
+
const pendingCompanies = res.pendingCompanies ?? 0;
|
|
884
|
+
return {
|
|
885
|
+
ideas,
|
|
886
|
+
nameCorrections,
|
|
887
|
+
pendingCompanies,
|
|
888
|
+
// Derived rather than trusted so an API that predates the field still
|
|
889
|
+
// yields a usable pill count.
|
|
890
|
+
total: res.total ?? ideas + nameCorrections + pendingCompanies,
|
|
891
|
+
generatedAt: res.generatedAt ?? ""
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
|
|
859
895
|
// src/query/fetchers/activity.ts
|
|
860
896
|
async function fetchHeatmapData(config, handleOrDid, days, options = {}) {
|
|
861
897
|
const path = `/api/activity/${encodeIdentifier(handleOrDid)}/heatmap?days=${days}`;
|
|
@@ -1430,7 +1466,8 @@ var sifaQueryKeys = {
|
|
|
1430
1466
|
},
|
|
1431
1467
|
admin: {
|
|
1432
1468
|
all: () => ["sifa", "admin"],
|
|
1433
|
-
featureAllowlist: (flag) => ["sifa", "admin", "feature-allowlist", flag]
|
|
1469
|
+
featureAllowlist: (flag) => ["sifa", "admin", "feature-allowlist", flag],
|
|
1470
|
+
reviewQueues: () => ["sifa", "admin", "review-queues"]
|
|
1434
1471
|
},
|
|
1435
1472
|
stats: {
|
|
1436
1473
|
all: () => ["sifa", "stats"],
|
|
@@ -1463,7 +1500,9 @@ var sifaQueryKeys = {
|
|
|
1463
1500
|
// Scoped to the session for the same reason as the endorsement inbox: the
|
|
1464
1501
|
// AppView reads the subject from the session cookie, so there is only ever
|
|
1465
1502
|
// one inbox per client.
|
|
1466
|
-
pending: () => ["sifa", "confirmation", "pending"]
|
|
1503
|
+
pending: () => ["sifa", "confirmation", "pending"],
|
|
1504
|
+
/** Confirmations this session has given, for the withdraw surface. */
|
|
1505
|
+
given: () => ["sifa", "confirmation", "given"]
|
|
1467
1506
|
},
|
|
1468
1507
|
stream: {
|
|
1469
1508
|
all: () => ["sifa", "stream"],
|
|
@@ -1537,6 +1576,7 @@ exports.fetchExternalAccounts = fetchExternalAccounts;
|
|
|
1537
1576
|
exports.fetchFeaturedProfile = fetchFeaturedProfile;
|
|
1538
1577
|
exports.fetchFollowing = fetchFollowing;
|
|
1539
1578
|
exports.fetchGetProfileView = fetchGetProfileView;
|
|
1579
|
+
exports.fetchGivenConfirmations = fetchGivenConfirmations;
|
|
1540
1580
|
exports.fetchHeatmapData = fetchHeatmapData;
|
|
1541
1581
|
exports.fetchHiddenApps = fetchHiddenApps;
|
|
1542
1582
|
exports.fetchMyGithubPullRequests = fetchMyGithubPullRequests;
|
|
@@ -1558,6 +1598,7 @@ exports.fetchSuggestionCount = fetchSuggestionCount;
|
|
|
1558
1598
|
exports.fetchSuggestions = fetchSuggestions;
|
|
1559
1599
|
exports.fetchWipePreview = fetchWipePreview;
|
|
1560
1600
|
exports.followUser = followUser;
|
|
1601
|
+
exports.getAdminReviewQueues = getAdminReviewQueues;
|
|
1561
1602
|
exports.getBlueskySuggestions = getBlueskySuggestions;
|
|
1562
1603
|
exports.getFollowers = getFollowers;
|
|
1563
1604
|
exports.getFollowing = getFollowing;
|