@singi-labs/sifa-sdk 0.12.31 → 0.12.32
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/README.md +1 -1
- package/dist/{index-CZAG8uku.d.ts → index-CQx2Yk7v.d.ts} +1 -1
- package/dist/{index-ZoAKneCP.d.ts → index-D4DUzpXJ.d.ts} +11 -2
- package/dist/{index-O2oJHRq0.d.cts → index-DX-0n-2z.d.cts} +1 -1
- package/dist/{index-C95t5Gg5.d.cts → index-XXLVtfGw.d.cts} +11 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{org-Octhy3vS.d.ts → org-5dARVOZ9.d.ts} +32 -2
- package/dist/{org-DWAqK-TV.d.cts → org-DOQL077g.d.cts} +32 -2
- package/dist/query/fetchers/index.cjs +11 -0
- 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 +11 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +21 -0
- 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 +21 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +22 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +4 -4
- package/dist/query/index.d.ts +4 -4
- package/dist/query/index.js +21 -1
- package/dist/query/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1099,6 +1099,32 @@ interface PdsWipeOutcome {
|
|
|
1099
1099
|
*/
|
|
1100
1100
|
unknown: boolean;
|
|
1101
1101
|
}
|
|
1102
|
+
/**
|
|
1103
|
+
* What a PDS wipe could not remove with the grant the session holds today.
|
|
1104
|
+
*
|
|
1105
|
+
* Read this BEFORE the destructive step. Deleting an account destroys the
|
|
1106
|
+
* session, so a missing scope cannot be granted afterwards -- there is nobody
|
|
1107
|
+
* left to ask. A non-empty `needsScopeFor` means the wipe would strand those
|
|
1108
|
+
* records on the user's data server.
|
|
1109
|
+
*/
|
|
1110
|
+
interface WipePreview {
|
|
1111
|
+
/** id.sifa.* collections the current grant cannot delete. */
|
|
1112
|
+
needsScopeFor: string[];
|
|
1113
|
+
/**
|
|
1114
|
+
* The server could not enumerate the repo, so the gap list is not
|
|
1115
|
+
* authoritative. Distinct from an empty list, which means "nothing to ask for".
|
|
1116
|
+
*/
|
|
1117
|
+
unknown?: boolean;
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Ask which id.sifa.* collections the current grant cannot delete.
|
|
1121
|
+
*
|
|
1122
|
+
* Unlike most read fetchers in this file's neighbourhood, a failure is NOT
|
|
1123
|
+
* flattened into an empty result: an empty gap list reads as "a wipe will be
|
|
1124
|
+
* clean", and a caller must not promise that on the strength of a request that
|
|
1125
|
+
* never arrived. Let it throw and warn.
|
|
1126
|
+
*/
|
|
1127
|
+
declare function fetchWipePreview(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WipePreview>;
|
|
1102
1128
|
/** Extended write result for {@link resetProfile}. */
|
|
1103
1129
|
interface ResetProfileResult extends WriteResult {
|
|
1104
1130
|
/** Present when `deletePdsData: true`. See {@link PdsWipeOutcome}. */
|
|
@@ -1237,8 +1263,12 @@ declare const sifaQueryKeys: {
|
|
|
1237
1263
|
readonly all: () => readonly ["sifa", "bsky-preferences"];
|
|
1238
1264
|
readonly contentLabels: () => readonly ["sifa", "bsky-preferences", "content-labels"];
|
|
1239
1265
|
};
|
|
1266
|
+
readonly destructive: {
|
|
1267
|
+
readonly all: () => readonly ["sifa", "destructive"];
|
|
1268
|
+
readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
|
|
1269
|
+
};
|
|
1240
1270
|
};
|
|
1241
|
-
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.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>;
|
|
1271
|
+
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.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>;
|
|
1242
1272
|
|
|
1243
1273
|
/** How a single entity binding was resolved during a claim. */
|
|
1244
1274
|
interface OrgClaimBinding {
|
|
@@ -1325,4 +1355,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1325
1355
|
*/
|
|
1326
1356
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1327
1357
|
|
|
1328
|
-
export { type OrgNotificationEmailRemoveResult as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowProfilePageResponse as G, type FollowUserResult as H, type FollowingResponse as I, type GithubPullRequest as J, HIDDEN_ITEM_SOURCES as K, HIDDEN_ITEM_TYPES as L, type HeatmapDay as M, type HeatmapResponse as N, type HiddenApp as O, type HiddenItemSource as P, type HiddenItemType as Q, type HideProfileItemInput as R, type SifaApiConfig as S, type ListFeatureAllowlistOptions as T, type MyGithubPullRequestsResponse as U, type OrgClaimBinding as V, type WriteResult as W, type OrgClaimResult as X, type OrgDomainChallengeResult as Y, type OrgDomainVerifyResult as Z, type OrgNotificationEmailAddResult as _, type AccountCheckResult as a,
|
|
1358
|
+
export { type OrgNotificationEmailRemoveResult as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowProfilePageResponse as G, type FollowUserResult as H, type FollowingResponse as I, type GithubPullRequest as J, HIDDEN_ITEM_SOURCES as K, HIDDEN_ITEM_TYPES as L, type HeatmapDay as M, type HeatmapResponse as N, type HiddenApp as O, type HiddenItemSource as P, type HiddenItemType as Q, type HideProfileItemInput as R, type SifaApiConfig as S, type ListFeatureAllowlistOptions as T, type MyGithubPullRequestsResponse as U, type OrgClaimBinding as V, type WriteResult as W, type OrgClaimResult as X, type OrgDomainChallengeResult as Y, type OrgDomainVerifyResult as Z, type OrgNotificationEmailAddResult as _, type AccountCheckResult as a, fetchFollowing as a$, type OrgProfileEcho as a0, type OrgProfileUpdateResult as a1, type PdsWipeOutcome as a2, type ProfileIndustryInput as a3, type ProfileLocationAddress as a4, type ProfileLocationInput as a5, type ProfileSearchResult as a6, type ProfileSelfLocation as a7, QUOTED_POSTS_BATCH_MAX as a8, type QuotedPostAuthor as a9, type WipePreview as aA, addFeatureAllowlist as aB, addOrgNotificationEmail as aC, apiFetch as aD, apiFetchOrNull as aE, apiWrite as aF, apiWriteCreate as aG, bulkHideProfileItems as aH, bulkHideStandardPublications as aI, bulkUnhideProfileItems as aJ, bulkUnhideStandardPublications as aK, castRoadmapVote as aL, checkAppAccount as aM, createEndorsement as aN, createExternalAccount as aO, createProfileLocation as aP, createReaction as aQ, deleteAccount as aR, deleteAvatarOverride as aS, deleteExternalAccount as aT, deleteProfileLocation as aU, deleteReaction as aV, fetchActivityFeed as aW, fetchActivityTeaser as aX, fetchAppsRegistry as aY, fetchExternalAccounts as aZ, fetchFeaturedProfile as a_, type QuotedPostImage as aa, type QuotedPostResult as ab, type QuotedPostView as ac, type ReactionError as ad, type ReactionResult as ae, type ReactionStatus as af, type RefreshOrcidPublicationsResult as ag, type RefreshPdsResult as ah, type ResetProfileResult as ai, type ResolveQuotedPostsOptions as aj, type RoadmapVoteError as ak, type RoadmapVoteResult as al, type RoadmapVoter as am, type RoadmapVotesResponse as an, type SearchFilters as ao, type SearchResponse as ap, type SifaQueryKey as aq, type SimilarProfile as ar, type SkillSearchResult as as, type StatsResponse as at, type SuggestionProfile as au, type SuggestionsResponse as av, type UpdateProfileOverrideInput as aw, type UpdateProfileSelfInput as ax, type UploadAvatarResult as ay, type VerifyExternalAccountResult as az, type ActivityFeedResponse as b, fetchHeatmapData as b0, fetchHiddenApps as b1, fetchMyGithubPullRequests as b2, fetchMyRoadmapVotes as b3, fetchReactionStatus as b4, fetchRoadmapVotes as b5, fetchSearchFilters as b6, fetchSearchProfiles as b7, fetchSimilarProfiles as b8, fetchSkillSuggestions as b9, unfollowUser as bA, unhideOrcidPublication as bB, unhideProfileItem as bC, unhideSifaPublication as bD, unhideStandardPublication as bE, unsetExternalAccountPrimary as bF, updateExternalAccount as bG, updateOrgProfile as bH, updateProfileLocation as bI, updateProfileOverride as bJ, updateProfileSelf as bK, uploadAvatar as bL, verifyExternalAccount as bM, verifyOrgDomain as bN, fetchStats as ba, fetchSuggestionCount as bb, fetchSuggestions as bc, fetchWipePreview as bd, followUser as be, getBlueskySuggestions as bf, getFollowers as bg, getFollowing as bh, getFollowingFeed as bi, getMutuals as bj, hideOrcidPublication as bk, hideProfileItem as bl, hideSifaPublication as bm, hideStandardPublication as bn, listFeatureAllowlist as bo, refreshOrcidPublications as bp, refreshPds as bq, removeFeatureAllowlist as br, removeOrgNotificationEmail as bs, requestOrgDomainChallenge as bt, resetProfile as bu, resolveQuotedPosts as bv, retractRoadmapVote as bw, searchSkills as bx, setExternalAccountPrimary as by, submitOrgClaim as bz, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyGithubPullRequestsOptions as t, type FetchMyRoadmapVotesOptions as u, type FetchReactionStatusOptions as v, type FetchSuggestionsOptions as w, type FilterOptions as x, type FollowListPage as y, type FollowProfile as z };
|
|
@@ -1099,6 +1099,32 @@ interface PdsWipeOutcome {
|
|
|
1099
1099
|
*/
|
|
1100
1100
|
unknown: boolean;
|
|
1101
1101
|
}
|
|
1102
|
+
/**
|
|
1103
|
+
* What a PDS wipe could not remove with the grant the session holds today.
|
|
1104
|
+
*
|
|
1105
|
+
* Read this BEFORE the destructive step. Deleting an account destroys the
|
|
1106
|
+
* session, so a missing scope cannot be granted afterwards -- there is nobody
|
|
1107
|
+
* left to ask. A non-empty `needsScopeFor` means the wipe would strand those
|
|
1108
|
+
* records on the user's data server.
|
|
1109
|
+
*/
|
|
1110
|
+
interface WipePreview {
|
|
1111
|
+
/** id.sifa.* collections the current grant cannot delete. */
|
|
1112
|
+
needsScopeFor: string[];
|
|
1113
|
+
/**
|
|
1114
|
+
* The server could not enumerate the repo, so the gap list is not
|
|
1115
|
+
* authoritative. Distinct from an empty list, which means "nothing to ask for".
|
|
1116
|
+
*/
|
|
1117
|
+
unknown?: boolean;
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Ask which id.sifa.* collections the current grant cannot delete.
|
|
1121
|
+
*
|
|
1122
|
+
* Unlike most read fetchers in this file's neighbourhood, a failure is NOT
|
|
1123
|
+
* flattened into an empty result: an empty gap list reads as "a wipe will be
|
|
1124
|
+
* clean", and a caller must not promise that on the strength of a request that
|
|
1125
|
+
* never arrived. Let it throw and warn.
|
|
1126
|
+
*/
|
|
1127
|
+
declare function fetchWipePreview(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WipePreview>;
|
|
1102
1128
|
/** Extended write result for {@link resetProfile}. */
|
|
1103
1129
|
interface ResetProfileResult extends WriteResult {
|
|
1104
1130
|
/** Present when `deletePdsData: true`. See {@link PdsWipeOutcome}. */
|
|
@@ -1237,8 +1263,12 @@ declare const sifaQueryKeys: {
|
|
|
1237
1263
|
readonly all: () => readonly ["sifa", "bsky-preferences"];
|
|
1238
1264
|
readonly contentLabels: () => readonly ["sifa", "bsky-preferences", "content-labels"];
|
|
1239
1265
|
};
|
|
1266
|
+
readonly destructive: {
|
|
1267
|
+
readonly all: () => readonly ["sifa", "destructive"];
|
|
1268
|
+
readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
|
|
1269
|
+
};
|
|
1240
1270
|
};
|
|
1241
|
-
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.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>;
|
|
1271
|
+
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.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>;
|
|
1242
1272
|
|
|
1243
1273
|
/** How a single entity binding was resolved during a claim. */
|
|
1244
1274
|
interface OrgClaimBinding {
|
|
@@ -1325,4 +1355,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1325
1355
|
*/
|
|
1326
1356
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1327
1357
|
|
|
1328
|
-
export { type OrgNotificationEmailRemoveResult as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowProfilePageResponse as G, type FollowUserResult as H, type FollowingResponse as I, type GithubPullRequest as J, HIDDEN_ITEM_SOURCES as K, HIDDEN_ITEM_TYPES as L, type HeatmapDay as M, type HeatmapResponse as N, type HiddenApp as O, type HiddenItemSource as P, type HiddenItemType as Q, type HideProfileItemInput as R, type SifaApiConfig as S, type ListFeatureAllowlistOptions as T, type MyGithubPullRequestsResponse as U, type OrgClaimBinding as V, type WriteResult as W, type OrgClaimResult as X, type OrgDomainChallengeResult as Y, type OrgDomainVerifyResult as Z, type OrgNotificationEmailAddResult as _, type AccountCheckResult as a,
|
|
1358
|
+
export { type OrgNotificationEmailRemoveResult as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowProfilePageResponse as G, type FollowUserResult as H, type FollowingResponse as I, type GithubPullRequest as J, HIDDEN_ITEM_SOURCES as K, HIDDEN_ITEM_TYPES as L, type HeatmapDay as M, type HeatmapResponse as N, type HiddenApp as O, type HiddenItemSource as P, type HiddenItemType as Q, type HideProfileItemInput as R, type SifaApiConfig as S, type ListFeatureAllowlistOptions as T, type MyGithubPullRequestsResponse as U, type OrgClaimBinding as V, type WriteResult as W, type OrgClaimResult as X, type OrgDomainChallengeResult as Y, type OrgDomainVerifyResult as Z, type OrgNotificationEmailAddResult as _, type AccountCheckResult as a, fetchFollowing as a$, type OrgProfileEcho as a0, type OrgProfileUpdateResult as a1, type PdsWipeOutcome as a2, type ProfileIndustryInput as a3, type ProfileLocationAddress as a4, type ProfileLocationInput as a5, type ProfileSearchResult as a6, type ProfileSelfLocation as a7, QUOTED_POSTS_BATCH_MAX as a8, type QuotedPostAuthor as a9, type WipePreview as aA, addFeatureAllowlist as aB, addOrgNotificationEmail as aC, apiFetch as aD, apiFetchOrNull as aE, apiWrite as aF, apiWriteCreate as aG, bulkHideProfileItems as aH, bulkHideStandardPublications as aI, bulkUnhideProfileItems as aJ, bulkUnhideStandardPublications as aK, castRoadmapVote as aL, checkAppAccount as aM, createEndorsement as aN, createExternalAccount as aO, createProfileLocation as aP, createReaction as aQ, deleteAccount as aR, deleteAvatarOverride as aS, deleteExternalAccount as aT, deleteProfileLocation as aU, deleteReaction as aV, fetchActivityFeed as aW, fetchActivityTeaser as aX, fetchAppsRegistry as aY, fetchExternalAccounts as aZ, fetchFeaturedProfile as a_, type QuotedPostImage as aa, type QuotedPostResult as ab, type QuotedPostView as ac, type ReactionError as ad, type ReactionResult as ae, type ReactionStatus as af, type RefreshOrcidPublicationsResult as ag, type RefreshPdsResult as ah, type ResetProfileResult as ai, type ResolveQuotedPostsOptions as aj, type RoadmapVoteError as ak, type RoadmapVoteResult as al, type RoadmapVoter as am, type RoadmapVotesResponse as an, type SearchFilters as ao, type SearchResponse as ap, type SifaQueryKey as aq, type SimilarProfile as ar, type SkillSearchResult as as, type StatsResponse as at, type SuggestionProfile as au, type SuggestionsResponse as av, type UpdateProfileOverrideInput as aw, type UpdateProfileSelfInput as ax, type UploadAvatarResult as ay, type VerifyExternalAccountResult as az, type ActivityFeedResponse as b, fetchHeatmapData as b0, fetchHiddenApps as b1, fetchMyGithubPullRequests as b2, fetchMyRoadmapVotes as b3, fetchReactionStatus as b4, fetchRoadmapVotes as b5, fetchSearchFilters as b6, fetchSearchProfiles as b7, fetchSimilarProfiles as b8, fetchSkillSuggestions as b9, unfollowUser as bA, unhideOrcidPublication as bB, unhideProfileItem as bC, unhideSifaPublication as bD, unhideStandardPublication as bE, unsetExternalAccountPrimary as bF, updateExternalAccount as bG, updateOrgProfile as bH, updateProfileLocation as bI, updateProfileOverride as bJ, updateProfileSelf as bK, uploadAvatar as bL, verifyExternalAccount as bM, verifyOrgDomain as bN, fetchStats as ba, fetchSuggestionCount as bb, fetchSuggestions as bc, fetchWipePreview as bd, followUser as be, getBlueskySuggestions as bf, getFollowers as bg, getFollowing as bh, getFollowingFeed as bi, getMutuals as bj, hideOrcidPublication as bk, hideProfileItem as bl, hideSifaPublication as bm, hideStandardPublication as bn, listFeatureAllowlist as bo, refreshOrcidPublications as bp, refreshPds as bq, removeFeatureAllowlist as br, removeOrgNotificationEmail as bs, requestOrgDomainChallenge as bt, resetProfile as bu, resolveQuotedPosts as bv, retractRoadmapVote as bw, searchSkills as bx, setExternalAccountPrimary as by, submitOrgClaim as bz, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyGithubPullRequestsOptions as t, type FetchMyRoadmapVotesOptions as u, type FetchReactionStatusOptions as v, type FetchSuggestionsOptions as w, type FilterOptions as x, type FollowListPage as y, type FollowProfile as z };
|
|
@@ -1113,6 +1113,12 @@ function retractRoadmapVote(config, key, options = {}) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
1115
|
// src/query/fetchers/destructive.ts
|
|
1116
|
+
function fetchWipePreview(config, options = {}) {
|
|
1117
|
+
return apiFetch(config, "/api/profile/wipe-preview", {
|
|
1118
|
+
credentials: "include",
|
|
1119
|
+
...options
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1116
1122
|
function resetProfile(config, deletePdsData, options = {}) {
|
|
1117
1123
|
return apiWrite(config, "/api/profile/reset", "DELETE", {
|
|
1118
1124
|
body: { deletePdsData },
|
|
@@ -1405,6 +1411,10 @@ var sifaQueryKeys = {
|
|
|
1405
1411
|
bskyPreferences: {
|
|
1406
1412
|
all: () => ["sifa", "bsky-preferences"],
|
|
1407
1413
|
contentLabels: () => ["sifa", "bsky-preferences", "content-labels"]
|
|
1414
|
+
},
|
|
1415
|
+
destructive: {
|
|
1416
|
+
all: () => ["sifa", "destructive"],
|
|
1417
|
+
wipePreview: () => ["sifa", "destructive", "wipe-preview"]
|
|
1408
1418
|
}
|
|
1409
1419
|
};
|
|
1410
1420
|
|
|
@@ -1469,6 +1479,7 @@ exports.fetchSkillSuggestions = fetchSkillSuggestions;
|
|
|
1469
1479
|
exports.fetchStats = fetchStats;
|
|
1470
1480
|
exports.fetchSuggestionCount = fetchSuggestionCount;
|
|
1471
1481
|
exports.fetchSuggestions = fetchSuggestions;
|
|
1482
|
+
exports.fetchWipePreview = fetchWipePreview;
|
|
1472
1483
|
exports.followUser = followUser;
|
|
1473
1484
|
exports.getBlueskySuggestions = getBlueskySuggestions;
|
|
1474
1485
|
exports.getFollowers = getFollowers;
|