@singi-labs/sifa-sdk 0.12.49 → 0.12.51
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/{adult-content-BUgP8bpf.d.cts → adult-content-Bmk22agq.d.cts} +8 -0
- package/dist/{adult-content-BUgP8bpf.d.ts → adult-content-Bmk22agq.d.ts} +8 -0
- package/dist/{index-r5KywRfC.d.cts → index-BzzF8wBs.d.cts} +14 -3
- package/dist/{index-L1xPmzKP.d.ts → index-C3EECrb2.d.ts} +3 -3
- package/dist/{index-CddvYEbj.d.ts → index-Dwo1bnqf.d.ts} +14 -3
- package/dist/{index-wf6rbBZZ.d.cts → index-af5Pb60B.d.cts} +3 -3
- package/dist/index.cjs +33 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +33 -29
- package/dist/index.js.map +1 -1
- package/dist/{org-CZvX0wc7.d.ts → org-BSx_0eKz.d.ts} +34 -3
- package/dist/{org-CVLKBRsw.d.cts → org-DFwVpMIH.d.cts} +34 -3
- package/dist/{profile-summary-DyX9EJzZ.d.ts → profile-summary-7d0mbAwr.d.ts} +1 -1
- package/dist/{profile-summary-DReI-P0i.d.cts → profile-summary-TOt7K4ai.d.cts} +1 -1
- package/dist/query/fetchers/index.cjs +16 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +4 -4
- package/dist/query/fetchers/index.d.ts +4 -4
- 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 +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- 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 +7 -7
- package/dist/query/index.d.ts +7 -7
- package/dist/query/index.js +27 -2
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/index.cjs +32 -28
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +32 -28
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +23 -17
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +9 -0
- package/dist/schemas/write/index.d.ts +9 -0
- package/dist/schemas/write/index.js +23 -17
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/{shared-CqayM24g.d.cts → shared-B9ng04Kt.d.cts} +9 -0
- package/dist/{shared-CqayM24g.d.ts → shared-B9ng04Kt.d.ts} +9 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-
|
|
1
|
+
import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-Bmk22agq.js';
|
|
2
2
|
import { y as FollowFeedPage, B as FollowProfileItem, q as FeatureAllowlistEntry, s as FeatureFlag } from './feed-dOSy_48Z.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-B8e01iZx.js';
|
|
@@ -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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-
|
|
1
|
+
import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-Bmk22agq.cjs';
|
|
2
2
|
import { y as FollowFeedPage, B as FollowProfileItem, q as FeatureAllowlistEntry, s as FeatureFlag } from './feed-dOSy_48Z.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-B8e01iZx.cjs';
|
|
@@ -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;
|