@singi-labs/sifa-sdk 0.19.96 → 0.19.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/jev/index.cjs +20 -0
- package/dist/jev/index.cjs.map +1 -1
- package/dist/jev/index.d.cts +29 -1
- package/dist/jev/index.d.ts +29 -1
- package/dist/jev/index.js +20 -0
- package/dist/jev/index.js.map +1 -1
- package/dist/jev/issue.cjs.map +1 -1
- package/dist/query/fetchers/admin-review-queues.js +3 -1
- package/dist/query/fetchers/admin-review-queues.js.map +1 -1
- package/dist/query/fetchers/index.cjs +25 -2
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +1 -1
- package/dist/query/fetchers/index.d.ts +1 -1
- package/dist/query/fetchers/index.js +4 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/fetchers/profile-completeness.js +21 -2
- package/dist/query/fetchers/profile-completeness.js.map +1 -1
- package/dist/query/fetchers/profile-emails.js +66 -0
- package/dist/query/fetchers/profile-emails.js.map +1 -0
- package/dist/query/hooks/index.cjs +164 -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 +17 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/hooks/use-profile-completeness.js +43 -1
- package/dist/query/hooks/use-profile-completeness.js.map +1 -1
- package/dist/query/hooks/use-profile-emails.js +73 -0
- package/dist/query/hooks/use-profile-emails.js.map +1 -0
- package/dist/query/index.cjs +169 -2
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +33 -1
- package/dist/query/index.js.map +1 -1
- package/dist/query/keys.js +5 -0
- package/dist/query/keys.js.map +1 -1
- package/dist/{use-user-settings-CFhaGcAq.d.ts → use-user-settings-CrzlFn2d.d.ts} +100 -2
- package/dist/{use-user-settings-CBH1CeDP.d.cts → use-user-settings-DppxALpF.d.cts} +100 -2
- package/dist/{user-settings-D1zKOWa2.d.ts → user-settings-Bgm2xbpb.d.ts} +25 -1
- package/dist/{user-settings-ChPm0BFN.d.cts → user-settings-C-eXWC6X.d.cts} +25 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { a0 as SifaApiConfig, a1 as ApiFetchOptions, a3 as WriteResult, o as Pro
|
|
|
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 { c as Profile, d as ProfilePosition, W as SkillRef, p as ExternalAccount, X as SkillSuggestion, s as OrgFloorVerdict } from './index-BEAuoL6l.js';
|
|
7
|
-
import { s as sifaQueryKeys,
|
|
7
|
+
import { s as sifaQueryKeys, aJ as RefreshPdsResult, b6 as UpdateProfileOverrideInput, b7 as UpdateProfileSelfInput, b8 as UploadAvatarResult, b9 as UploadPronunciationAudioResult, at as PrimarySection, a$ as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bd as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b4 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aR as RpgClaimableResponse, aV as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b2 as UnhideActivityItemInput, f as ActivityPreferences, aZ as SiteActivityPresetResponse, b5 as UpdateActivityPreferencesInput, a_ as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, aY as SimilarProfile, Q as FetchSuggestionsOptions, b1 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, aQ as RoadmapVotesResponse, j as CastRoadmapVoteResult, D as DeleteAccountResult, aL as ResetProfileResult, be as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, ba as UserSettings } from './user-settings-Bgm2xbpb.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-CVcA2w1v.js';
|
|
10
10
|
import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-BShvhyFp.js';
|
|
@@ -91,6 +91,58 @@ interface FetchVerificationLogOptions extends ApiFetchOptions {
|
|
|
91
91
|
*/
|
|
92
92
|
declare function fetchVerificationLog(config: SifaApiConfig, did: string, positionRkey: string, options?: FetchVerificationLogOptions): Promise<VerificationLog>;
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Personal email addresses (sifa-workspace#158), managed in settings and
|
|
96
|
+
* verified one by one through a link. Employment verification by email
|
|
97
|
+
* (#162) builds on the verified ones. Owner-only AppView shapes.
|
|
98
|
+
*/
|
|
99
|
+
declare const ProfileEmailSchema: z.ZodObject<{
|
|
100
|
+
id: z.ZodNumber;
|
|
101
|
+
email: z.ZodString;
|
|
102
|
+
emailDomain: z.ZodString;
|
|
103
|
+
status: z.ZodEnum<{
|
|
104
|
+
verified: "verified";
|
|
105
|
+
pending: "pending";
|
|
106
|
+
expired: "expired";
|
|
107
|
+
}>;
|
|
108
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
109
|
+
verificationSentAt: z.ZodNullable<z.ZodString>;
|
|
110
|
+
createdAt: z.ZodString;
|
|
111
|
+
}, z.core.$loose>;
|
|
112
|
+
type ProfileEmail = z.infer<typeof ProfileEmailSchema>;
|
|
113
|
+
declare const ProfileEmailsSchema: z.ZodObject<{
|
|
114
|
+
emails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
115
|
+
id: z.ZodNumber;
|
|
116
|
+
email: z.ZodString;
|
|
117
|
+
emailDomain: z.ZodString;
|
|
118
|
+
status: z.ZodEnum<{
|
|
119
|
+
verified: "verified";
|
|
120
|
+
pending: "pending";
|
|
121
|
+
expired: "expired";
|
|
122
|
+
}>;
|
|
123
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
124
|
+
verificationSentAt: z.ZodNullable<z.ZodString>;
|
|
125
|
+
createdAt: z.ZodString;
|
|
126
|
+
}, z.core.$loose>>>;
|
|
127
|
+
sending: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
type ProfileEmails = z.infer<typeof ProfileEmailsSchema>;
|
|
130
|
+
/** `sends_paused` means the address is stored but no link went out. */
|
|
131
|
+
type ProfileEmailSendStatus = 'verification_sent' | 'sends_paused' | 'send_failed' | 'already_verified';
|
|
132
|
+
interface FetchProfileEmailsOptions extends ApiFetchOptions {
|
|
133
|
+
/** Forward the caller's Cookie header on Next.js RSC server-side calls. */
|
|
134
|
+
cookieHeader?: string;
|
|
135
|
+
}
|
|
136
|
+
/** The signed-in account's addresses. Empty on any failure. */
|
|
137
|
+
declare function fetchProfileEmails(config: SifaApiConfig, options?: FetchProfileEmailsOptions): Promise<ProfileEmails>;
|
|
138
|
+
declare function addProfileEmail(config: SifaApiConfig, email: string, options?: ApiFetchOptions): Promise<WriteResult<ProfileEmail & {
|
|
139
|
+
sendStatus: ProfileEmailSendStatus;
|
|
140
|
+
}>>;
|
|
141
|
+
declare function resendProfileEmailVerification(config: SifaApiConfig, id: number, options?: ApiFetchOptions): Promise<WriteResult<{
|
|
142
|
+
sendStatus: ProfileEmailSendStatus;
|
|
143
|
+
}>>;
|
|
144
|
+
declare function removeProfileEmail(config: SifaApiConfig, id: number, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
145
|
+
|
|
94
146
|
/**
|
|
95
147
|
* Organization employment attestations (sifa-workspace#623). The org side
|
|
96
148
|
* writes `id.sifa.org.employmentAttestation` records through the AppView,
|
|
@@ -448,6 +500,41 @@ declare function useVerificationLog(did: string, positionRkey: string, options?:
|
|
|
448
500
|
}[];
|
|
449
501
|
}, Error>;
|
|
450
502
|
|
|
503
|
+
/** The signed-in account's email addresses. */
|
|
504
|
+
declare function useProfileEmails(options?: Omit<UseQueryOptions<ProfileEmails, Error, ProfileEmails, ReturnType<typeof sifaQueryKeys.profileEmails.list>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<{
|
|
505
|
+
emails: {
|
|
506
|
+
[x: string]: unknown;
|
|
507
|
+
id: number;
|
|
508
|
+
email: string;
|
|
509
|
+
emailDomain: string;
|
|
510
|
+
status: "verified" | "pending" | "expired";
|
|
511
|
+
verifiedAt: string | null;
|
|
512
|
+
verificationSentAt: string | null;
|
|
513
|
+
createdAt: string;
|
|
514
|
+
}[];
|
|
515
|
+
sending: boolean;
|
|
516
|
+
}, Error>;
|
|
517
|
+
declare function useAddProfileEmail(options?: Omit<UseMutationOptions<WriteResult<ProfileEmail & {
|
|
518
|
+
sendStatus: ProfileEmailSendStatus;
|
|
519
|
+
}>, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<{
|
|
520
|
+
[x: string]: unknown;
|
|
521
|
+
id: number;
|
|
522
|
+
email: string;
|
|
523
|
+
emailDomain: string;
|
|
524
|
+
status: "verified" | "pending" | "expired";
|
|
525
|
+
verifiedAt: string | null;
|
|
526
|
+
verificationSentAt: string | null;
|
|
527
|
+
createdAt: string;
|
|
528
|
+
} & {
|
|
529
|
+
sendStatus: ProfileEmailSendStatus;
|
|
530
|
+
}>, Error, string, unknown>;
|
|
531
|
+
declare function useResendProfileEmailVerification(options?: Omit<UseMutationOptions<WriteResult<{
|
|
532
|
+
sendStatus: ProfileEmailSendStatus;
|
|
533
|
+
}>, Error, number>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<{
|
|
534
|
+
sendStatus: ProfileEmailSendStatus;
|
|
535
|
+
}>, Error, number, unknown>;
|
|
536
|
+
declare function useRemoveProfileEmail(options?: Omit<UseMutationOptions<WriteResult, Error, number>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, number, unknown>;
|
|
537
|
+
|
|
451
538
|
type Attestations = {
|
|
452
539
|
attestations: OrgAttestation[];
|
|
453
540
|
};
|
|
@@ -490,6 +577,17 @@ declare function useDismissUnlinkedPosition(options?: Omit<UseMutationOptions<Wr
|
|
|
490
577
|
* signed out or on error.
|
|
491
578
|
*/
|
|
492
579
|
declare function useProfileCompleteness(options?: Omit<UseQueryOptions<ProfileCompleteness, Error, ProfileCompleteness, ReturnType<typeof sifaQueryKeys.profile.completeness>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<ProfileCompleteness, Error>;
|
|
580
|
+
/**
|
|
581
|
+
* Hide one "complete your profile" item. On success the item leaves the
|
|
582
|
+
* checklist and the bell count, so completeness and inbox counts are
|
|
583
|
+
* invalidated.
|
|
584
|
+
*/
|
|
585
|
+
declare function useDismissCompletenessSignal(options?: Omit<UseMutationOptions<WriteResult, Error, DismissCompletenessSignalInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, DismissCompletenessSignalInput, unknown>;
|
|
586
|
+
/**
|
|
587
|
+
* Show every hidden "complete your profile" item again. Invalidates the same
|
|
588
|
+
* queries as {@link useDismissCompletenessSignal}.
|
|
589
|
+
*/
|
|
590
|
+
declare function useClearCompletenessDismissals(options?: Omit<UseMutationOptions<WriteResult, Error, void>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, void, unknown>;
|
|
493
591
|
|
|
494
592
|
/**
|
|
495
593
|
* How many rpg.actor items the signed-in user can claim right now, for the
|
|
@@ -1157,4 +1255,4 @@ declare function useUpdateUserSettings(): _tanstack_react_query.UseMutationResul
|
|
|
1157
1255
|
showCitationCounts: boolean;
|
|
1158
1256
|
}>, unknown>;
|
|
1159
1257
|
|
|
1160
|
-
export {
|
|
1258
|
+
export { revokeOrgAttestation as $, type AddFeatureAllowlistVariables as A, type UseMyGithubPullRequestsParams as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, type VerificationEventKind as E, type FetchOrgAttestationOptions as F, type VerificationLog as G, type VerificationLogEntry as H, VerificationLogEntrySchema as I, VerificationLogSchema as J, addProfileEmail as K, createOrgAttestation as L, fetchAttestationRequests as M, fetchOrgAttestations as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, fetchProfileEmails as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, fetchVerificationLog as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, offboardOrgAttestation as W, rejectAttestationRequest as X, removeProfileEmail as Y, requestEmploymentConfirmation as Z, resendProfileEmailVerification as _, type AttestationRequest as a, useHideOrcidPublication as a$, useAccounts as a0, useActivityFeed as a1, useActivityPreferences as a2, useActivityTeaser as a3, useAddFeatureAllowlist as a4, useAddOrgNotificationEmail as a5, useAddProfileEmail as a6, useAdminReviewQueues as a7, useAppAccountCheck as a8, useAppsRegistry as a9, useDeletePosition as aA, useDeleteProfileLocation as aB, useDeleteReaction as aC, useDeleteRecord as aD, useDeleteRepoRecords as aE, useDeleteSkill as aF, useDismissCompletenessSignal as aG, useDismissConfirmation as aH, useDismissUnlinkedPosition as aI, useEndorsementCount as aJ, useEntitySearch as aK, useExternalAccounts as aL, useFeatureAllowlist as aM, useFeaturedProfile as aN, useFollow as aO, useFollowers as aP, useFollowing as aQ, useFollowingFeed as aR, useFollowingFeedVersion as aS, useFollowingList as aT, useGetProfileView as aU, useGivenConfirmations as aV, useHeatmapData as aW, useHiddenActivityItems as aX, useHiddenApps as aY, useHideActivityItem as aZ, useHideKeytraceClaim as a_, useAtFundLink as aa, useAttestationRequests as ab, useBlueskySuggestions as ac, useBulkHideProfileItems as ad, useBulkHideStandardPublications as ae, useBulkUnhideProfileItems as af, useBulkUnhideStandardPublications as ag, useCanonicalSkillSearch as ah, useCastRoadmapVote as ai, useClearCompletenessDismissals as aj, useCreateConfirmation as ak, useCreateEducation as al, useCreateEndorsement as am, useCreateExternalAccount as an, useCreateOrgAttestation as ao, useCreatePosition as ap, useCreateProfileLocation as aq, useCreateReaction as ar, useCreateRecord as as, useCreateSkill as at, useDebouncedValue as au, useDeleteAccount as av, useDeleteAvatarOverride as aw, useDeleteEducation as ax, useDeleteExternalAccount as ay, useDeleteNamePronunciationAudio as az, AttestationRequestSchema as b, useUnsetExternalAccountPrimary as b$, useHideProfileItem as b0, useHideSifaPublication as b1, useHideStandardPublication as b2, useImportSearchEntities as b3, useInboxCounts as b4, useLinkSkillToPosition as b5, useMintEntityDomain as b6, useMutuals as b7, useMyGithubPullRequests as b8, useMyRoadmapVotes as b9, useRevokeOrgAttestation as bA, useRoadmapVotes as bB, useRpgClaimable as bC, useRpgStatus as bD, useSearchFilters as bE, useSearchProfiles as bF, useSelectEntity as bG, useSetExternalAccountPrimary as bH, useSetPositionPrimary as bI, useSetSectionPrimary as bJ, useSifaConfig as bK, useSimilarProfiles as bL, useSiteActivityPreset as bM, useSkillSuggestions as bN, useStats as bO, useSuggestionCount as bP, useSuggestions as bQ, useUnfollow as bR, useUnhideActivityItem as bS, useUnhideKeytraceClaim as bT, useUnhideOrcidPublication as bU, useUnhideProfileItem as bV, useUnhideSifaPublication as bW, useUnhideStandardPublication as bX, useUnlinkSkillFromPosition as bY, useUnlinkedPositions as bZ, useUnrevealMarqueDomain as b_, useNetworkStreamCount as ba, useOffboardOrgAttestation as bb, useOrgAttestations as bc, useOrgClaim as bd, useOrgDomainChallenge as be, useOrgDomainVerify as bf, useOrgProfile as bg, usePendingConfirmations as bh, useProfile as bi, useProfileCompleteness as bj, useProfileEmails as bk, useReactionStatus as bl, useRefreshOrcidPublications as bm, useRefreshPds as bn, useRejectAttestationRequest as bo, useRemoveFeatureAllowlist as bp, useRemoveOrgNotificationEmail as bq, useRemoveProfileEmail as br, useRepoInventory as bs, useRequestEmploymentConfirmation as bt, useResendProfileEmailVerification as bu, useResetProfile as bv, useResolveEntityDomain as bw, useRetractRoadmapVote as bx, useRevealMarqueDomain as by, useRevokeConfirmation as bz, type AttestationStatus as c, useUnsetPositionPrimary as c0, useUnsetSectionPrimary as c1, useUpdateActivityPreferences as c2, useUpdateEducation as c3, useUpdateExternalAccount as c4, useUpdateOrgProfile as c5, useUpdatePosition as c6, useUpdateProfileLocation as c7, useUpdateProfileOverride as c8, useUpdateProfileSelf as c9, useUpdateRecord as ca, useUpdateSkill as cb, useUpdateSkillSubCategories as cc, useUpdateUserSettings as cd, useUploadAvatar as ce, useUploadNamePronunciationAudio as cf, useUserSettings as cg, useVerificationLog as ch, useVerifyExternalAccount as ci, useWipePreview as cj, useSearchCompanies as ck, type CreateOrgAttestationResult as d, type CreateReactionVariables as e, type CreateRecordVariables as f, type DeleteRecordVariables as g, type FetchProfileEmailsOptions as h, type FetchVerificationLogOptions as i, type FollowVariables as j, OrgAttestationSchema as k, type ProfileEmail as l, ProfileEmailSchema as m, type ProfileEmailSendStatus as n, type ProfileEmails as o, type RequestEmploymentConfirmationInput as p, type RequestEmploymentConfirmationResult as q, type SifaProviderProps as r, type UpdateEducationVariables as s, type UpdateExternalAccountVariables as t, type UpdatePositionVariables as u, type UpdateProfileLocationVariables as v, type UpdateRecordVariables as w, type UpdateSkillSubCategoriesVariables as x, type UpdateSkillVariables as y, type UseEntitySearchOptions as z };
|
|
@@ -4,7 +4,7 @@ import { a0 as SifaApiConfig, a1 as ApiFetchOptions, a3 as WriteResult, o as Pro
|
|
|
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 { c as Profile, d as ProfilePosition, W as SkillRef, p as ExternalAccount, X as SkillSuggestion, s as OrgFloorVerdict } from './index-DU0pYHch.cjs';
|
|
7
|
-
import { s as sifaQueryKeys,
|
|
7
|
+
import { s as sifaQueryKeys, aJ as RefreshPdsResult, b6 as UpdateProfileOverrideInput, b7 as UpdateProfileSelfInput, b8 as UploadAvatarResult, b9 as UploadPronunciationAudioResult, at as PrimarySection, a$ as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bd as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b4 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aR as RpgClaimableResponse, aV as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b2 as UnhideActivityItemInput, f as ActivityPreferences, aZ as SiteActivityPresetResponse, b5 as UpdateActivityPreferencesInput, a_ as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, aY as SimilarProfile, Q as FetchSuggestionsOptions, b1 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, aQ as RoadmapVotesResponse, j as CastRoadmapVoteResult, D as DeleteAccountResult, aL as ResetProfileResult, be as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, ba as UserSettings } from './user-settings-C-eXWC6X.cjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-CgLLLQtJ.cjs';
|
|
10
10
|
import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-C73Sin5E.cjs';
|
|
@@ -91,6 +91,58 @@ interface FetchVerificationLogOptions extends ApiFetchOptions {
|
|
|
91
91
|
*/
|
|
92
92
|
declare function fetchVerificationLog(config: SifaApiConfig, did: string, positionRkey: string, options?: FetchVerificationLogOptions): Promise<VerificationLog>;
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Personal email addresses (sifa-workspace#158), managed in settings and
|
|
96
|
+
* verified one by one through a link. Employment verification by email
|
|
97
|
+
* (#162) builds on the verified ones. Owner-only AppView shapes.
|
|
98
|
+
*/
|
|
99
|
+
declare const ProfileEmailSchema: z.ZodObject<{
|
|
100
|
+
id: z.ZodNumber;
|
|
101
|
+
email: z.ZodString;
|
|
102
|
+
emailDomain: z.ZodString;
|
|
103
|
+
status: z.ZodEnum<{
|
|
104
|
+
verified: "verified";
|
|
105
|
+
pending: "pending";
|
|
106
|
+
expired: "expired";
|
|
107
|
+
}>;
|
|
108
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
109
|
+
verificationSentAt: z.ZodNullable<z.ZodString>;
|
|
110
|
+
createdAt: z.ZodString;
|
|
111
|
+
}, z.core.$loose>;
|
|
112
|
+
type ProfileEmail = z.infer<typeof ProfileEmailSchema>;
|
|
113
|
+
declare const ProfileEmailsSchema: z.ZodObject<{
|
|
114
|
+
emails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
115
|
+
id: z.ZodNumber;
|
|
116
|
+
email: z.ZodString;
|
|
117
|
+
emailDomain: z.ZodString;
|
|
118
|
+
status: z.ZodEnum<{
|
|
119
|
+
verified: "verified";
|
|
120
|
+
pending: "pending";
|
|
121
|
+
expired: "expired";
|
|
122
|
+
}>;
|
|
123
|
+
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
124
|
+
verificationSentAt: z.ZodNullable<z.ZodString>;
|
|
125
|
+
createdAt: z.ZodString;
|
|
126
|
+
}, z.core.$loose>>>;
|
|
127
|
+
sending: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
type ProfileEmails = z.infer<typeof ProfileEmailsSchema>;
|
|
130
|
+
/** `sends_paused` means the address is stored but no link went out. */
|
|
131
|
+
type ProfileEmailSendStatus = 'verification_sent' | 'sends_paused' | 'send_failed' | 'already_verified';
|
|
132
|
+
interface FetchProfileEmailsOptions extends ApiFetchOptions {
|
|
133
|
+
/** Forward the caller's Cookie header on Next.js RSC server-side calls. */
|
|
134
|
+
cookieHeader?: string;
|
|
135
|
+
}
|
|
136
|
+
/** The signed-in account's addresses. Empty on any failure. */
|
|
137
|
+
declare function fetchProfileEmails(config: SifaApiConfig, options?: FetchProfileEmailsOptions): Promise<ProfileEmails>;
|
|
138
|
+
declare function addProfileEmail(config: SifaApiConfig, email: string, options?: ApiFetchOptions): Promise<WriteResult<ProfileEmail & {
|
|
139
|
+
sendStatus: ProfileEmailSendStatus;
|
|
140
|
+
}>>;
|
|
141
|
+
declare function resendProfileEmailVerification(config: SifaApiConfig, id: number, options?: ApiFetchOptions): Promise<WriteResult<{
|
|
142
|
+
sendStatus: ProfileEmailSendStatus;
|
|
143
|
+
}>>;
|
|
144
|
+
declare function removeProfileEmail(config: SifaApiConfig, id: number, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
145
|
+
|
|
94
146
|
/**
|
|
95
147
|
* Organization employment attestations (sifa-workspace#623). The org side
|
|
96
148
|
* writes `id.sifa.org.employmentAttestation` records through the AppView,
|
|
@@ -448,6 +500,41 @@ declare function useVerificationLog(did: string, positionRkey: string, options?:
|
|
|
448
500
|
}[];
|
|
449
501
|
}, Error>;
|
|
450
502
|
|
|
503
|
+
/** The signed-in account's email addresses. */
|
|
504
|
+
declare function useProfileEmails(options?: Omit<UseQueryOptions<ProfileEmails, Error, ProfileEmails, ReturnType<typeof sifaQueryKeys.profileEmails.list>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<{
|
|
505
|
+
emails: {
|
|
506
|
+
[x: string]: unknown;
|
|
507
|
+
id: number;
|
|
508
|
+
email: string;
|
|
509
|
+
emailDomain: string;
|
|
510
|
+
status: "verified" | "pending" | "expired";
|
|
511
|
+
verifiedAt: string | null;
|
|
512
|
+
verificationSentAt: string | null;
|
|
513
|
+
createdAt: string;
|
|
514
|
+
}[];
|
|
515
|
+
sending: boolean;
|
|
516
|
+
}, Error>;
|
|
517
|
+
declare function useAddProfileEmail(options?: Omit<UseMutationOptions<WriteResult<ProfileEmail & {
|
|
518
|
+
sendStatus: ProfileEmailSendStatus;
|
|
519
|
+
}>, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<{
|
|
520
|
+
[x: string]: unknown;
|
|
521
|
+
id: number;
|
|
522
|
+
email: string;
|
|
523
|
+
emailDomain: string;
|
|
524
|
+
status: "verified" | "pending" | "expired";
|
|
525
|
+
verifiedAt: string | null;
|
|
526
|
+
verificationSentAt: string | null;
|
|
527
|
+
createdAt: string;
|
|
528
|
+
} & {
|
|
529
|
+
sendStatus: ProfileEmailSendStatus;
|
|
530
|
+
}>, Error, string, unknown>;
|
|
531
|
+
declare function useResendProfileEmailVerification(options?: Omit<UseMutationOptions<WriteResult<{
|
|
532
|
+
sendStatus: ProfileEmailSendStatus;
|
|
533
|
+
}>, Error, number>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<{
|
|
534
|
+
sendStatus: ProfileEmailSendStatus;
|
|
535
|
+
}>, Error, number, unknown>;
|
|
536
|
+
declare function useRemoveProfileEmail(options?: Omit<UseMutationOptions<WriteResult, Error, number>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, number, unknown>;
|
|
537
|
+
|
|
451
538
|
type Attestations = {
|
|
452
539
|
attestations: OrgAttestation[];
|
|
453
540
|
};
|
|
@@ -490,6 +577,17 @@ declare function useDismissUnlinkedPosition(options?: Omit<UseMutationOptions<Wr
|
|
|
490
577
|
* signed out or on error.
|
|
491
578
|
*/
|
|
492
579
|
declare function useProfileCompleteness(options?: Omit<UseQueryOptions<ProfileCompleteness, Error, ProfileCompleteness, ReturnType<typeof sifaQueryKeys.profile.completeness>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<ProfileCompleteness, Error>;
|
|
580
|
+
/**
|
|
581
|
+
* Hide one "complete your profile" item. On success the item leaves the
|
|
582
|
+
* checklist and the bell count, so completeness and inbox counts are
|
|
583
|
+
* invalidated.
|
|
584
|
+
*/
|
|
585
|
+
declare function useDismissCompletenessSignal(options?: Omit<UseMutationOptions<WriteResult, Error, DismissCompletenessSignalInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, DismissCompletenessSignalInput, unknown>;
|
|
586
|
+
/**
|
|
587
|
+
* Show every hidden "complete your profile" item again. Invalidates the same
|
|
588
|
+
* queries as {@link useDismissCompletenessSignal}.
|
|
589
|
+
*/
|
|
590
|
+
declare function useClearCompletenessDismissals(options?: Omit<UseMutationOptions<WriteResult, Error, void>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, void, unknown>;
|
|
493
591
|
|
|
494
592
|
/**
|
|
495
593
|
* How many rpg.actor items the signed-in user can claim right now, for the
|
|
@@ -1157,4 +1255,4 @@ declare function useUpdateUserSettings(): _tanstack_react_query.UseMutationResul
|
|
|
1157
1255
|
showCitationCounts: boolean;
|
|
1158
1256
|
}>, unknown>;
|
|
1159
1257
|
|
|
1160
|
-
export {
|
|
1258
|
+
export { revokeOrgAttestation as $, type AddFeatureAllowlistVariables as A, type UseMyGithubPullRequestsParams as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, type VerificationEventKind as E, type FetchOrgAttestationOptions as F, type VerificationLog as G, type VerificationLogEntry as H, VerificationLogEntrySchema as I, VerificationLogSchema as J, addProfileEmail as K, createOrgAttestation as L, fetchAttestationRequests as M, fetchOrgAttestations as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, fetchProfileEmails as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, fetchVerificationLog as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, offboardOrgAttestation as W, rejectAttestationRequest as X, removeProfileEmail as Y, requestEmploymentConfirmation as Z, resendProfileEmailVerification as _, type AttestationRequest as a, useHideOrcidPublication as a$, useAccounts as a0, useActivityFeed as a1, useActivityPreferences as a2, useActivityTeaser as a3, useAddFeatureAllowlist as a4, useAddOrgNotificationEmail as a5, useAddProfileEmail as a6, useAdminReviewQueues as a7, useAppAccountCheck as a8, useAppsRegistry as a9, useDeletePosition as aA, useDeleteProfileLocation as aB, useDeleteReaction as aC, useDeleteRecord as aD, useDeleteRepoRecords as aE, useDeleteSkill as aF, useDismissCompletenessSignal as aG, useDismissConfirmation as aH, useDismissUnlinkedPosition as aI, useEndorsementCount as aJ, useEntitySearch as aK, useExternalAccounts as aL, useFeatureAllowlist as aM, useFeaturedProfile as aN, useFollow as aO, useFollowers as aP, useFollowing as aQ, useFollowingFeed as aR, useFollowingFeedVersion as aS, useFollowingList as aT, useGetProfileView as aU, useGivenConfirmations as aV, useHeatmapData as aW, useHiddenActivityItems as aX, useHiddenApps as aY, useHideActivityItem as aZ, useHideKeytraceClaim as a_, useAtFundLink as aa, useAttestationRequests as ab, useBlueskySuggestions as ac, useBulkHideProfileItems as ad, useBulkHideStandardPublications as ae, useBulkUnhideProfileItems as af, useBulkUnhideStandardPublications as ag, useCanonicalSkillSearch as ah, useCastRoadmapVote as ai, useClearCompletenessDismissals as aj, useCreateConfirmation as ak, useCreateEducation as al, useCreateEndorsement as am, useCreateExternalAccount as an, useCreateOrgAttestation as ao, useCreatePosition as ap, useCreateProfileLocation as aq, useCreateReaction as ar, useCreateRecord as as, useCreateSkill as at, useDebouncedValue as au, useDeleteAccount as av, useDeleteAvatarOverride as aw, useDeleteEducation as ax, useDeleteExternalAccount as ay, useDeleteNamePronunciationAudio as az, AttestationRequestSchema as b, useUnsetExternalAccountPrimary as b$, useHideProfileItem as b0, useHideSifaPublication as b1, useHideStandardPublication as b2, useImportSearchEntities as b3, useInboxCounts as b4, useLinkSkillToPosition as b5, useMintEntityDomain as b6, useMutuals as b7, useMyGithubPullRequests as b8, useMyRoadmapVotes as b9, useRevokeOrgAttestation as bA, useRoadmapVotes as bB, useRpgClaimable as bC, useRpgStatus as bD, useSearchFilters as bE, useSearchProfiles as bF, useSelectEntity as bG, useSetExternalAccountPrimary as bH, useSetPositionPrimary as bI, useSetSectionPrimary as bJ, useSifaConfig as bK, useSimilarProfiles as bL, useSiteActivityPreset as bM, useSkillSuggestions as bN, useStats as bO, useSuggestionCount as bP, useSuggestions as bQ, useUnfollow as bR, useUnhideActivityItem as bS, useUnhideKeytraceClaim as bT, useUnhideOrcidPublication as bU, useUnhideProfileItem as bV, useUnhideSifaPublication as bW, useUnhideStandardPublication as bX, useUnlinkSkillFromPosition as bY, useUnlinkedPositions as bZ, useUnrevealMarqueDomain as b_, useNetworkStreamCount as ba, useOffboardOrgAttestation as bb, useOrgAttestations as bc, useOrgClaim as bd, useOrgDomainChallenge as be, useOrgDomainVerify as bf, useOrgProfile as bg, usePendingConfirmations as bh, useProfile as bi, useProfileCompleteness as bj, useProfileEmails as bk, useReactionStatus as bl, useRefreshOrcidPublications as bm, useRefreshPds as bn, useRejectAttestationRequest as bo, useRemoveFeatureAllowlist as bp, useRemoveOrgNotificationEmail as bq, useRemoveProfileEmail as br, useRepoInventory as bs, useRequestEmploymentConfirmation as bt, useResendProfileEmailVerification as bu, useResetProfile as bv, useResolveEntityDomain as bw, useRetractRoadmapVote as bx, useRevealMarqueDomain as by, useRevokeConfirmation as bz, type AttestationStatus as c, useUnsetPositionPrimary as c0, useUnsetSectionPrimary as c1, useUpdateActivityPreferences as c2, useUpdateEducation as c3, useUpdateExternalAccount as c4, useUpdateOrgProfile as c5, useUpdatePosition as c6, useUpdateProfileLocation as c7, useUpdateProfileOverride as c8, useUpdateProfileSelf as c9, useUpdateRecord as ca, useUpdateSkill as cb, useUpdateSkillSubCategories as cc, useUpdateUserSettings as cd, useUploadAvatar as ce, useUploadNamePronunciationAudio as cf, useUserSettings as cg, useVerificationLog as ch, useVerifyExternalAccount as ci, useWipePreview as cj, useSearchCompanies as ck, type CreateOrgAttestationResult as d, type CreateReactionVariables as e, type CreateRecordVariables as f, type DeleteRecordVariables as g, type FetchProfileEmailsOptions as h, type FetchVerificationLogOptions as i, type FollowVariables as j, OrgAttestationSchema as k, type ProfileEmail as l, ProfileEmailSchema as m, type ProfileEmailSendStatus as n, type ProfileEmails as o, type RequestEmploymentConfirmationInput as p, type RequestEmploymentConfirmationResult as q, type SifaProviderProps as r, type UpdateEducationVariables as s, type UpdateExternalAccountVariables as t, type UpdatePositionVariables as u, type UpdateProfileLocationVariables as v, type UpdateRecordVariables as w, type UpdateSkillSubCategoriesVariables as x, type UpdateSkillVariables as y, type UseEntitySearchOptions as z };
|
|
@@ -515,6 +515,12 @@ interface ProfileCompleteness {
|
|
|
515
515
|
total: number;
|
|
516
516
|
/** The signals still missing, for the checklist. */
|
|
517
517
|
missing: ProfileCompletenessSignal[];
|
|
518
|
+
/**
|
|
519
|
+
* Signals the user hid from the checklist. They stay in `missing` (the score
|
|
520
|
+
* is unchanged); clients hide them. Absent from an AppView that predates
|
|
521
|
+
* server-side dismissals.
|
|
522
|
+
*/
|
|
523
|
+
dismissed?: ProfileCompletenessSignal[];
|
|
518
524
|
}
|
|
519
525
|
interface FetchProfileCompletenessOptions extends ApiFetchOptions {
|
|
520
526
|
/**
|
|
@@ -532,6 +538,17 @@ interface FetchProfileCompletenessOptions extends ApiFetchOptions {
|
|
|
532
538
|
* nagging the user with a phantom checklist.
|
|
533
539
|
*/
|
|
534
540
|
declare function fetchProfileCompleteness(config: SifaApiConfig, options?: FetchProfileCompletenessOptions): Promise<ProfileCompleteness>;
|
|
541
|
+
/** Body accepted by {@link dismissCompletenessSignal}. */
|
|
542
|
+
interface DismissCompletenessSignalInput {
|
|
543
|
+
signal: ProfileCompletenessSignal;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Hide one "complete your profile" item for the signed-in user, on every
|
|
547
|
+
* device. Writes nothing to any PDS and leaves the score unchanged.
|
|
548
|
+
*/
|
|
549
|
+
declare function dismissCompletenessSignal(config: SifaApiConfig, data: DismissCompletenessSignalInput, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
550
|
+
/** Show every hidden "complete your profile" item again. */
|
|
551
|
+
declare function clearCompletenessDismissals(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
535
552
|
|
|
536
553
|
/** Extended result for {@link refreshOrcidPublications}. */
|
|
537
554
|
type RefreshOrcidPublicationsResult = WriteResult<{
|
|
@@ -1300,6 +1317,8 @@ interface AdminReviewQueues {
|
|
|
1300
1317
|
nameCorrections: number;
|
|
1301
1318
|
pendingCompanies: number;
|
|
1302
1319
|
duplicateOrgs: number;
|
|
1320
|
+
/** Pending reports of wrong Jev-inferred company facts (one per org + field). */
|
|
1321
|
+
inferredFactReports: number;
|
|
1303
1322
|
/** Sum of the queues. */
|
|
1304
1323
|
total: number;
|
|
1305
1324
|
generatedAt: string;
|
|
@@ -1812,6 +1831,11 @@ declare const sifaQueryKeys: {
|
|
|
1812
1831
|
/** Pending confirmation requests addressed to the signed-in organization. */
|
|
1813
1832
|
readonly attestationRequests: () => readonly ["sifa", "org", "attestation-requests"];
|
|
1814
1833
|
};
|
|
1834
|
+
readonly profileEmails: {
|
|
1835
|
+
readonly all: () => readonly ["sifa", "profile-emails"];
|
|
1836
|
+
/** The signed-in account's email addresses (#158). */
|
|
1837
|
+
readonly list: () => readonly ["sifa", "profile-emails", "list"];
|
|
1838
|
+
};
|
|
1815
1839
|
readonly verification: {
|
|
1816
1840
|
readonly all: () => readonly ["sifa", "verification"];
|
|
1817
1841
|
/** The append-only verification log of one position. */
|
|
@@ -1961,4 +1985,4 @@ declare function fetchUserSettings(config: SifaApiConfig, options?: FetchUserSet
|
|
|
1961
1985
|
/** Save the given preferences. Returns the stored settings, or `null` on failure. */
|
|
1962
1986
|
declare function updateUserSettings(config: SifaApiConfig, patch: UserSettingsPatch): Promise<UserSettings | null>;
|
|
1963
1987
|
|
|
1964
|
-
export { type
|
|
1988
|
+
export { type FollowingFeedVersion as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchFollowingFeedOptions as G, type FetchHiddenActivityItemsOptions as H, type FetchHiddenAppsOptions as I, type FetchInboxCountsOptions as J, type FetchMyGithubPullRequestsOptions as K, type FetchMyRoadmapVotesOptions as L, type FetchProfileCompletenessOptions as M, type FetchReactionStatusOptions as N, type FetchRpgClaimableOptions as O, type FetchRpgStatusOptions as P, type FetchSuggestionsOptions as Q, type FetchUnlinkedPositionsOptions as R, type FetchUserSettingsOptions as S, type FollowListPage as T, type FollowProfile as U, type FollowProfilePageResponse as V, type FollowUserResult as W, type FollowingFeedApp as X, type FollowingFeedBuild as Y, type FollowingFeedEmptyReason as Z, type FollowingFeedResponse as _, type ConfirmEndorsementResult as a, type SubCategoryBulkResult as a$, type FollowingResponse as a0, type GetAdminReviewQueuesOptions as a1, type GithubPullRequest as a2, type GivenConfirmation as a3, HIDDEN_ITEM_SOURCES as a4, HIDDEN_ITEM_TYPES as a5, type HeatmapDay as a6, type HeatmapResponse as a7, type HiddenActivityItem as a8, type HiddenApp as a9, QUOTED_POSTS_BATCH_MAX as aA, type QuotedPostAuthor as aB, type QuotedPostImage as aC, type QuotedPostResult as aD, type QuotedPostView as aE, type ReactionError as aF, type ReactionResult as aG, type ReactionStatus as aH, type RefreshOrcidPublicationsResult as aI, type RefreshPdsResult as aJ, type RepoDeleteInput as aK, type ResetProfileResult as aL, type ResolveQuotedPostsOptions as aM, type RoadmapVoteError as aN, type RoadmapVoteResult as aO, type RoadmapVoter as aP, type RoadmapVotesResponse as aQ, type RpgClaimableResponse as aR, RpgClaimableResponseSchema as aS, type RpgItemStatus as aT, RpgItemStatusSchema as aU, type RpgStatusResponse as aV, RpgStatusResponseSchema as aW, type SifaQueryKey as aX, type SimilarProfile as aY, type SiteActivityPresetResponse as aZ, type StatsResponse as a_, type HiddenItemSource as aa, type HiddenItemType as ab, type HideActivityItemInput as ac, type HideProfileItemInput as ad, type InboxCounts as ae, type ListFeatureAllowlistOptions as af, type MyGithubPullRequestsResponse as ag, type OrgClaimBinding as ah, type OrgClaimResult as ai, type OrgDomainChallengeResult as aj, type OrgDomainVerifyResult as ak, type OrgNotificationEmailAddResult as al, type OrgNotificationEmailRemoveResult as am, type OrgProfileEcho as an, type OrgProfileUpdateResult as ao, PROFILE_COMPLETENESS_SIGNALS as ap, type PdsWipeOutcome as aq, type PendingConfirmation as ar, type PendingConfirmationsPage as as, type PrimarySection as at, type ProfileCompleteness as au, type ProfileCompletenessSignal as av, type ProfileIndustryInput as aw, type ProfileLocationAddress as ax, type ProfileLocationInput as ay, type ProfileSelfLocation as az, type AccountSummary as b, fetchRoadmapVotes as b$, type SuggestionProfile as b0, type SuggestionsResponse as b1, type UnhideActivityItemInput as b2, type UnlinkedPosition as b3, type UnlinkedPositionsResult as b4, type UpdateActivityPreferencesInput as b5, type UpdateProfileOverrideInput as b6, type UpdateProfileSelfInput as b7, type UploadAvatarResult as b8, type UploadPronunciationAudioResult as b9, deleteReaction as bA, deleteRepoRecords as bB, deleteSkill as bC, dismissCompletenessSignal as bD, dismissConfirmation as bE, dismissUnlinkedPosition as bF, fetchAccounts as bG, fetchActivityFeed as bH, fetchActivityPreferences as bI, fetchActivityTeaser as bJ, fetchAppsRegistry as bK, fetchExternalAccounts as bL, fetchFeaturedProfile as bM, fetchFollowing as bN, fetchFollowingFeed as bO, fetchFollowingFeedVersion as bP, fetchGivenConfirmations as bQ, fetchHeatmapData as bR, fetchHiddenActivityItems as bS, fetchHiddenApps as bT, fetchInboxCounts as bU, fetchMyGithubPullRequests as bV, fetchMyRoadmapVotes as bW, fetchPendingConfirmations as bX, fetchProfileCompleteness as bY, fetchReactionStatus as bZ, fetchRepoInventory as b_, type UserSettings as ba, type UserSettingsPatch as bb, UserSettingsSchema as bc, type VerifyExternalAccountResult as bd, type WipePreview as be, addFeatureAllowlist as bf, addOrgNotificationEmail as bg, bulkHideProfileItems as bh, bulkHideStandardPublications as bi, bulkUnhideProfileItems as bj, bulkUnhideStandardPublications as bk, castRoadmapVote as bl, checkAppAccount as bm, clearCompletenessDismissals as bn, confirmEndorsement as bo, createConfirmation as bp, createEndorsement as bq, createExternalAccount as br, createProfileLocation as bs, createReaction as bt, createSkill as bu, deleteAccount as bv, deleteAvatarOverride as bw, deleteExternalAccount as bx, deleteNamePronunciationAudio as by, deleteProfileLocation as bz, type ActivityFeedResponse as c, fetchRpgClaimable as c0, fetchRpgStatus as c1, fetchSimilarProfiles as c2, fetchSiteActivityPreset as c3, fetchStats as c4, fetchSuggestionCount as c5, fetchSuggestions as c6, fetchUnlinkedPositions as c7, fetchUserSettings as c8, fetchViewerPositionConfirmations as c9, submitOrgClaim as cA, switchAccount as cB, unfollowUser as cC, unhideActivityItem as cD, unhideOrcidPublication as cE, unhideProfileItem as cF, unhideSifaPublication as cG, unhideStandardPublication as cH, unsetExternalAccountPrimary as cI, unsetSectionPrimary as cJ, updateActivityPreferences as cK, updateExternalAccount as cL, updateOrgProfile as cM, updateProfileLocation as cN, updateProfileOverride as cO, updateProfileSelf as cP, updateSkill as cQ, updateSkillSubCategories as cR, updateUserSettings as cS, uploadAvatar as cT, uploadNamePronunciationAudio as cU, verifyExternalAccount as cV, verifyOrgDomain as cW, fetchWipePreview as ca, followUser as cb, getAdminReviewQueues as cc, getBlueskySuggestions as cd, getFollowers as ce, getFollowing as cf, getMutuals as cg, hideActivityItem as ch, hideOrcidPublication as ci, hideProfileItem as cj, hideSifaPublication as ck, hideStandardPublication as cl, isNewerFollowingFeed as cm, listFeatureAllowlist as cn, refreshOrcidPublications as co, refreshPds as cp, removeFeatureAllowlist as cq, removeOrgNotificationEmail as cr, repoExportUrl as cs, requestOrgDomainChallenge as ct, resetProfile as cu, resolveQuotedPosts as cv, retractRoadmapVote as cw, revokeConfirmation as cx, setExternalAccountPrimary as cy, setSectionPrimary as cz, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityPreferences as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type ConfirmationInput as l, type ConfirmationSubjectInput as m, type CreateExternalAccountResult as n, type DismissCompletenessSignalInput as o, type DismissUnlinkedPositionInput as p, type ExternalAccountInput as q, type FeaturedProfile as r, sifaQueryKeys as s, type FetchAccountsOptions as t, type FetchActivityFeedOptions as u, type FetchActivityPreferencesOptions as v, type FetchActivityTeaserOptions as w, type FetchConfirmationsOptions as x, type FetchFollowListOptions as y, type FetchFollowProfilePageOptions as z };
|
|
@@ -515,6 +515,12 @@ interface ProfileCompleteness {
|
|
|
515
515
|
total: number;
|
|
516
516
|
/** The signals still missing, for the checklist. */
|
|
517
517
|
missing: ProfileCompletenessSignal[];
|
|
518
|
+
/**
|
|
519
|
+
* Signals the user hid from the checklist. They stay in `missing` (the score
|
|
520
|
+
* is unchanged); clients hide them. Absent from an AppView that predates
|
|
521
|
+
* server-side dismissals.
|
|
522
|
+
*/
|
|
523
|
+
dismissed?: ProfileCompletenessSignal[];
|
|
518
524
|
}
|
|
519
525
|
interface FetchProfileCompletenessOptions extends ApiFetchOptions {
|
|
520
526
|
/**
|
|
@@ -532,6 +538,17 @@ interface FetchProfileCompletenessOptions extends ApiFetchOptions {
|
|
|
532
538
|
* nagging the user with a phantom checklist.
|
|
533
539
|
*/
|
|
534
540
|
declare function fetchProfileCompleteness(config: SifaApiConfig, options?: FetchProfileCompletenessOptions): Promise<ProfileCompleteness>;
|
|
541
|
+
/** Body accepted by {@link dismissCompletenessSignal}. */
|
|
542
|
+
interface DismissCompletenessSignalInput {
|
|
543
|
+
signal: ProfileCompletenessSignal;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Hide one "complete your profile" item for the signed-in user, on every
|
|
547
|
+
* device. Writes nothing to any PDS and leaves the score unchanged.
|
|
548
|
+
*/
|
|
549
|
+
declare function dismissCompletenessSignal(config: SifaApiConfig, data: DismissCompletenessSignalInput, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
550
|
+
/** Show every hidden "complete your profile" item again. */
|
|
551
|
+
declare function clearCompletenessDismissals(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
535
552
|
|
|
536
553
|
/** Extended result for {@link refreshOrcidPublications}. */
|
|
537
554
|
type RefreshOrcidPublicationsResult = WriteResult<{
|
|
@@ -1300,6 +1317,8 @@ interface AdminReviewQueues {
|
|
|
1300
1317
|
nameCorrections: number;
|
|
1301
1318
|
pendingCompanies: number;
|
|
1302
1319
|
duplicateOrgs: number;
|
|
1320
|
+
/** Pending reports of wrong Jev-inferred company facts (one per org + field). */
|
|
1321
|
+
inferredFactReports: number;
|
|
1303
1322
|
/** Sum of the queues. */
|
|
1304
1323
|
total: number;
|
|
1305
1324
|
generatedAt: string;
|
|
@@ -1812,6 +1831,11 @@ declare const sifaQueryKeys: {
|
|
|
1812
1831
|
/** Pending confirmation requests addressed to the signed-in organization. */
|
|
1813
1832
|
readonly attestationRequests: () => readonly ["sifa", "org", "attestation-requests"];
|
|
1814
1833
|
};
|
|
1834
|
+
readonly profileEmails: {
|
|
1835
|
+
readonly all: () => readonly ["sifa", "profile-emails"];
|
|
1836
|
+
/** The signed-in account's email addresses (#158). */
|
|
1837
|
+
readonly list: () => readonly ["sifa", "profile-emails", "list"];
|
|
1838
|
+
};
|
|
1815
1839
|
readonly verification: {
|
|
1816
1840
|
readonly all: () => readonly ["sifa", "verification"];
|
|
1817
1841
|
/** The append-only verification log of one position. */
|
|
@@ -1961,4 +1985,4 @@ declare function fetchUserSettings(config: SifaApiConfig, options?: FetchUserSet
|
|
|
1961
1985
|
/** Save the given preferences. Returns the stored settings, or `null` on failure. */
|
|
1962
1986
|
declare function updateUserSettings(config: SifaApiConfig, patch: UserSettingsPatch): Promise<UserSettings | null>;
|
|
1963
1987
|
|
|
1964
|
-
export { type
|
|
1988
|
+
export { type FollowingFeedVersion as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchFollowingFeedOptions as G, type FetchHiddenActivityItemsOptions as H, type FetchHiddenAppsOptions as I, type FetchInboxCountsOptions as J, type FetchMyGithubPullRequestsOptions as K, type FetchMyRoadmapVotesOptions as L, type FetchProfileCompletenessOptions as M, type FetchReactionStatusOptions as N, type FetchRpgClaimableOptions as O, type FetchRpgStatusOptions as P, type FetchSuggestionsOptions as Q, type FetchUnlinkedPositionsOptions as R, type FetchUserSettingsOptions as S, type FollowListPage as T, type FollowProfile as U, type FollowProfilePageResponse as V, type FollowUserResult as W, type FollowingFeedApp as X, type FollowingFeedBuild as Y, type FollowingFeedEmptyReason as Z, type FollowingFeedResponse as _, type ConfirmEndorsementResult as a, type SubCategoryBulkResult as a$, type FollowingResponse as a0, type GetAdminReviewQueuesOptions as a1, type GithubPullRequest as a2, type GivenConfirmation as a3, HIDDEN_ITEM_SOURCES as a4, HIDDEN_ITEM_TYPES as a5, type HeatmapDay as a6, type HeatmapResponse as a7, type HiddenActivityItem as a8, type HiddenApp as a9, QUOTED_POSTS_BATCH_MAX as aA, type QuotedPostAuthor as aB, type QuotedPostImage as aC, type QuotedPostResult as aD, type QuotedPostView as aE, type ReactionError as aF, type ReactionResult as aG, type ReactionStatus as aH, type RefreshOrcidPublicationsResult as aI, type RefreshPdsResult as aJ, type RepoDeleteInput as aK, type ResetProfileResult as aL, type ResolveQuotedPostsOptions as aM, type RoadmapVoteError as aN, type RoadmapVoteResult as aO, type RoadmapVoter as aP, type RoadmapVotesResponse as aQ, type RpgClaimableResponse as aR, RpgClaimableResponseSchema as aS, type RpgItemStatus as aT, RpgItemStatusSchema as aU, type RpgStatusResponse as aV, RpgStatusResponseSchema as aW, type SifaQueryKey as aX, type SimilarProfile as aY, type SiteActivityPresetResponse as aZ, type StatsResponse as a_, type HiddenItemSource as aa, type HiddenItemType as ab, type HideActivityItemInput as ac, type HideProfileItemInput as ad, type InboxCounts as ae, type ListFeatureAllowlistOptions as af, type MyGithubPullRequestsResponse as ag, type OrgClaimBinding as ah, type OrgClaimResult as ai, type OrgDomainChallengeResult as aj, type OrgDomainVerifyResult as ak, type OrgNotificationEmailAddResult as al, type OrgNotificationEmailRemoveResult as am, type OrgProfileEcho as an, type OrgProfileUpdateResult as ao, PROFILE_COMPLETENESS_SIGNALS as ap, type PdsWipeOutcome as aq, type PendingConfirmation as ar, type PendingConfirmationsPage as as, type PrimarySection as at, type ProfileCompleteness as au, type ProfileCompletenessSignal as av, type ProfileIndustryInput as aw, type ProfileLocationAddress as ax, type ProfileLocationInput as ay, type ProfileSelfLocation as az, type AccountSummary as b, fetchRoadmapVotes as b$, type SuggestionProfile as b0, type SuggestionsResponse as b1, type UnhideActivityItemInput as b2, type UnlinkedPosition as b3, type UnlinkedPositionsResult as b4, type UpdateActivityPreferencesInput as b5, type UpdateProfileOverrideInput as b6, type UpdateProfileSelfInput as b7, type UploadAvatarResult as b8, type UploadPronunciationAudioResult as b9, deleteReaction as bA, deleteRepoRecords as bB, deleteSkill as bC, dismissCompletenessSignal as bD, dismissConfirmation as bE, dismissUnlinkedPosition as bF, fetchAccounts as bG, fetchActivityFeed as bH, fetchActivityPreferences as bI, fetchActivityTeaser as bJ, fetchAppsRegistry as bK, fetchExternalAccounts as bL, fetchFeaturedProfile as bM, fetchFollowing as bN, fetchFollowingFeed as bO, fetchFollowingFeedVersion as bP, fetchGivenConfirmations as bQ, fetchHeatmapData as bR, fetchHiddenActivityItems as bS, fetchHiddenApps as bT, fetchInboxCounts as bU, fetchMyGithubPullRequests as bV, fetchMyRoadmapVotes as bW, fetchPendingConfirmations as bX, fetchProfileCompleteness as bY, fetchReactionStatus as bZ, fetchRepoInventory as b_, type UserSettings as ba, type UserSettingsPatch as bb, UserSettingsSchema as bc, type VerifyExternalAccountResult as bd, type WipePreview as be, addFeatureAllowlist as bf, addOrgNotificationEmail as bg, bulkHideProfileItems as bh, bulkHideStandardPublications as bi, bulkUnhideProfileItems as bj, bulkUnhideStandardPublications as bk, castRoadmapVote as bl, checkAppAccount as bm, clearCompletenessDismissals as bn, confirmEndorsement as bo, createConfirmation as bp, createEndorsement as bq, createExternalAccount as br, createProfileLocation as bs, createReaction as bt, createSkill as bu, deleteAccount as bv, deleteAvatarOverride as bw, deleteExternalAccount as bx, deleteNamePronunciationAudio as by, deleteProfileLocation as bz, type ActivityFeedResponse as c, fetchRpgClaimable as c0, fetchRpgStatus as c1, fetchSimilarProfiles as c2, fetchSiteActivityPreset as c3, fetchStats as c4, fetchSuggestionCount as c5, fetchSuggestions as c6, fetchUnlinkedPositions as c7, fetchUserSettings as c8, fetchViewerPositionConfirmations as c9, submitOrgClaim as cA, switchAccount as cB, unfollowUser as cC, unhideActivityItem as cD, unhideOrcidPublication as cE, unhideProfileItem as cF, unhideSifaPublication as cG, unhideStandardPublication as cH, unsetExternalAccountPrimary as cI, unsetSectionPrimary as cJ, updateActivityPreferences as cK, updateExternalAccount as cL, updateOrgProfile as cM, updateProfileLocation as cN, updateProfileOverride as cO, updateProfileSelf as cP, updateSkill as cQ, updateSkillSubCategories as cR, updateUserSettings as cS, uploadAvatar as cT, uploadNamePronunciationAudio as cU, verifyExternalAccount as cV, verifyOrgDomain as cW, fetchWipePreview as ca, followUser as cb, getAdminReviewQueues as cc, getBlueskySuggestions as cd, getFollowers as ce, getFollowing as cf, getMutuals as cg, hideActivityItem as ch, hideOrcidPublication as ci, hideProfileItem as cj, hideSifaPublication as ck, hideStandardPublication as cl, isNewerFollowingFeed as cm, listFeatureAllowlist as cn, refreshOrcidPublications as co, refreshPds as cp, removeFeatureAllowlist as cq, removeOrgNotificationEmail as cr, repoExportUrl as cs, requestOrgDomainChallenge as ct, resetProfile as cu, resolveQuotedPosts as cv, retractRoadmapVote as cw, revokeConfirmation as cx, setExternalAccountPrimary as cy, setSectionPrimary as cz, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityPreferences as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type ConfirmationInput as l, type ConfirmationSubjectInput as m, type CreateExternalAccountResult as n, type DismissCompletenessSignalInput as o, type DismissUnlinkedPositionInput as p, type ExternalAccountInput as q, type FeaturedProfile as r, sifaQueryKeys as s, type FetchAccountsOptions as t, type FetchActivityFeedOptions as u, type FetchActivityPreferencesOptions as v, type FetchActivityTeaserOptions as w, type FetchConfirmationsOptions as x, type FetchFollowListOptions as y, type FetchFollowProfilePageOptions as z };
|
package/package.json
CHANGED