@singi-labs/sifa-sdk 0.12.49 → 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-r5KywRfC.d.cts → index-10rMsh0Y.d.cts} +13 -2
- package/dist/{index-L1xPmzKP.d.ts → index-CatO6M_Y.d.ts} +1 -1
- package/dist/{index-wf6rbBZZ.d.cts → index-CxZBzRTC.d.cts} +1 -1
- package/dist/{index-CddvYEbj.d.ts → index-KQD7YLsb.d.ts} +13 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{org-CZvX0wc7.d.ts → org-8ysVY69a.d.ts} +33 -2
- package/dist/{org-CVLKBRsw.d.cts → org-Be0SH7dO.d.cts} +33 -2
- package/dist/query/fetchers/index.cjs +16 -1
- 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 +16 -2
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +27 -1
- 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 +27 -2
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +28 -1
- 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 +27 -2
- 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
|
|
@@ -782,4 +793,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
782
793
|
email: string;
|
|
783
794
|
}, unknown>;
|
|
784
795
|
|
|
785
|
-
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,
|
|
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
|
|
@@ -782,4 +793,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
782
793
|
email: string;
|
|
783
794
|
}, unknown>;
|
|
784
795
|
|
|
785
|
-
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,
|
|
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
|
|
@@ -1430,6 +1459,8 @@ declare const sifaQueryKeys: {
|
|
|
1430
1459
|
readonly confirmation: {
|
|
1431
1460
|
readonly all: () => readonly ["sifa", "confirmation"];
|
|
1432
1461
|
readonly pending: () => readonly ["sifa", "confirmation", "pending"];
|
|
1462
|
+
/** Confirmations this session has given, for the withdraw surface. */
|
|
1463
|
+
readonly given: () => readonly ["sifa", "confirmation", "given"];
|
|
1433
1464
|
};
|
|
1434
1465
|
readonly stream: {
|
|
1435
1466
|
readonly all: () => readonly ["sifa", "stream"];
|
|
@@ -1454,7 +1485,7 @@ declare const sifaQueryKeys: {
|
|
|
1454
1485
|
readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
|
|
1455
1486
|
};
|
|
1456
1487
|
};
|
|
1457
|
-
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.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>;
|
|
1458
1489
|
|
|
1459
1490
|
/** How a single entity binding was resolved during a claim. */
|
|
1460
1491
|
interface OrgClaimBinding {
|
|
@@ -1541,4 +1572,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1541
1572
|
*/
|
|
1542
1573
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1543
1574
|
|
|
1544
|
-
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
|
|
@@ -1430,6 +1459,8 @@ declare const sifaQueryKeys: {
|
|
|
1430
1459
|
readonly confirmation: {
|
|
1431
1460
|
readonly all: () => readonly ["sifa", "confirmation"];
|
|
1432
1461
|
readonly pending: () => readonly ["sifa", "confirmation", "pending"];
|
|
1462
|
+
/** Confirmations this session has given, for the withdraw surface. */
|
|
1463
|
+
readonly given: () => readonly ["sifa", "confirmation", "given"];
|
|
1433
1464
|
};
|
|
1434
1465
|
readonly stream: {
|
|
1435
1466
|
readonly all: () => readonly ["sifa", "stream"];
|
|
@@ -1454,7 +1485,7 @@ declare const sifaQueryKeys: {
|
|
|
1454
1485
|
readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
|
|
1455
1486
|
};
|
|
1456
1487
|
};
|
|
1457
|
-
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.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>;
|
|
1458
1489
|
|
|
1459
1490
|
/** How a single entity binding was resolved during a claim. */
|
|
1460
1491
|
interface OrgClaimBinding {
|
|
@@ -1541,4 +1572,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1541
1572
|
*/
|
|
1542
1573
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1543
1574
|
|
|
1544
|
-
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
|
}
|
|
@@ -1488,7 +1500,9 @@ var sifaQueryKeys = {
|
|
|
1488
1500
|
// Scoped to the session for the same reason as the endorsement inbox: the
|
|
1489
1501
|
// AppView reads the subject from the session cookie, so there is only ever
|
|
1490
1502
|
// one inbox per client.
|
|
1491
|
-
pending: () => ["sifa", "confirmation", "pending"]
|
|
1503
|
+
pending: () => ["sifa", "confirmation", "pending"],
|
|
1504
|
+
/** Confirmations this session has given, for the withdraw surface. */
|
|
1505
|
+
given: () => ["sifa", "confirmation", "given"]
|
|
1492
1506
|
},
|
|
1493
1507
|
stream: {
|
|
1494
1508
|
all: () => ["sifa", "stream"],
|
|
@@ -1562,6 +1576,7 @@ exports.fetchExternalAccounts = fetchExternalAccounts;
|
|
|
1562
1576
|
exports.fetchFeaturedProfile = fetchFeaturedProfile;
|
|
1563
1577
|
exports.fetchFollowing = fetchFollowing;
|
|
1564
1578
|
exports.fetchGetProfileView = fetchGetProfileView;
|
|
1579
|
+
exports.fetchGivenConfirmations = fetchGivenConfirmations;
|
|
1565
1580
|
exports.fetchHeatmapData = fetchHeatmapData;
|
|
1566
1581
|
exports.fetchHiddenApps = fetchHiddenApps;
|
|
1567
1582
|
exports.fetchMyGithubPullRequests = fetchMyGithubPullRequests;
|