@singi-labs/sifa-sdk 0.12.43 → 0.12.45

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.
Files changed (51) hide show
  1. package/dist/{adult-content-JKDlPIbL.d.cts → adult-content-DPbdzRqN.d.cts} +57 -1
  2. package/dist/{adult-content-JKDlPIbL.d.ts → adult-content-DPbdzRqN.d.ts} +57 -1
  3. package/dist/{feed-C8aHEPw4.d.cts → feed-dOSy_48Z.d.cts} +1 -1
  4. package/dist/{feed-C8aHEPw4.d.ts → feed-dOSy_48Z.d.ts} +1 -1
  5. package/dist/{index-BsIdD2su.d.ts → index-8tpQ3aa6.d.ts} +13 -6
  6. package/dist/{index-ti9RAkMn.d.cts → index-C5bE9r3L.d.cts} +13 -6
  7. package/dist/{index-CIQinrgP.d.ts → index-CC03zp-c.d.ts} +31 -4
  8. package/dist/{index-DFSDtTFz.d.cts → index-DtpqwUb4.d.cts} +31 -4
  9. package/dist/index.cjs +37 -7
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +7 -7
  12. package/dist/index.d.ts +7 -7
  13. package/dist/index.js +37 -7
  14. package/dist/index.js.map +1 -1
  15. package/dist/{org-EA4mshbf.d.ts → org-C827hinr.d.ts} +107 -7
  16. package/dist/{org-C0OTQnnV.d.cts → org-DvskXMpB.d.cts} +107 -7
  17. package/dist/{profile-summary-CSmXD7ll.d.cts → profile-summary-BawHMAG9.d.cts} +1 -1
  18. package/dist/{profile-summary-C9E-HPeP.d.ts → profile-summary-M_mQaHdp.d.ts} +1 -1
  19. package/dist/query/fetchers/index.cjs +41 -1
  20. package/dist/query/fetchers/index.cjs.map +1 -1
  21. package/dist/query/fetchers/index.d.cts +5 -5
  22. package/dist/query/fetchers/index.d.ts +5 -5
  23. package/dist/query/fetchers/index.js +38 -2
  24. package/dist/query/fetchers/index.js.map +1 -1
  25. package/dist/query/hooks/index.cjs +103 -0
  26. package/dist/query/hooks/index.cjs.map +1 -1
  27. package/dist/query/hooks/index.d.cts +4 -4
  28. package/dist/query/hooks/index.d.ts +4 -4
  29. package/dist/query/hooks/index.js +100 -1
  30. package/dist/query/hooks/index.js.map +1 -1
  31. package/dist/query/index.cjs +111 -1
  32. package/dist/query/index.cjs.map +1 -1
  33. package/dist/query/index.d.cts +9 -9
  34. package/dist/query/index.d.ts +9 -9
  35. package/dist/query/index.js +104 -2
  36. package/dist/query/index.js.map +1 -1
  37. package/dist/schemas/index.cjs +44 -2
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +20 -589
  40. package/dist/schemas/index.d.ts +20 -589
  41. package/dist/schemas/index.js +43 -3
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/schemas/write/index.cjs +8 -0
  44. package/dist/schemas/write/index.cjs.map +1 -1
  45. package/dist/schemas/write/index.d.cts +9 -0
  46. package/dist/schemas/write/index.d.ts +9 -0
  47. package/dist/schemas/write/index.js +8 -0
  48. package/dist/schemas/write/index.js.map +1 -1
  49. package/dist/shared-CNr-iMpc.d.cts +614 -0
  50. package/dist/shared-CNr-iMpc.d.ts +614 -0
  51. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-JKDlPIbL.js';
2
- import { F as FollowFeedPage, a as FollowProfileItem, b as FeatureAllowlistEntry, c as FeatureFlag } from './feed-C8aHEPw4.js';
1
+ import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-DPbdzRqN.js';
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';
5
5
 
@@ -294,8 +294,12 @@ declare function verifyExternalAccount(config: SifaApiConfig, rkey: string, opti
294
294
  interface EndorsementInput {
295
295
  /** DID of the person being endorsed. */
296
296
  subjectDid: string;
297
- /** AT-URI of the subject's `id.sifa.profile.skill` record. */
298
- skillUri: string;
297
+ /**
298
+ * AT-URI of the subject's `id.sifa.profile.skill` record. Omit to propose a
299
+ * skill they have not listed; `skillName` then names what is proposed, and
300
+ * the record is created when they accept.
301
+ */
302
+ skillUri?: string;
299
303
  /**
300
304
  * CID of that skill record, pinning the endorsement to the version endorsed.
301
305
  * Optional: the AppView resolves it when omitted, which is the common case
@@ -310,6 +314,12 @@ interface EndorsementInput {
310
314
  comment?: string;
311
315
  }
312
316
  /** Body accepted by {@link confirmEndorsement}. */
317
+ interface ConfirmEndorsementResult {
318
+ /** Skill the endorsement resolved to, created if it was a proposal. */
319
+ skillUri?: string;
320
+ /** True when accepting added a new skill to the profile. */
321
+ skillCreated?: boolean;
322
+ }
313
323
  interface ConfirmEndorsementInput {
314
324
  endorsementUri: string;
315
325
  /**
@@ -332,7 +342,93 @@ declare function createEndorsement(config: SifaApiConfig, data: EndorsementInput
332
342
  * signed-in user's PDS. This is what makes the endorsement public: until the
333
343
  * confirmation exists, the endorsement is indexed but displays nowhere.
334
344
  */
335
- declare function confirmEndorsement(config: SifaApiConfig, data: ConfirmEndorsementInput, options?: ApiFetchOptions): Promise<CreateResult>;
345
+ declare function confirmEndorsement(config: SifaApiConfig, data: ConfirmEndorsementInput, options?: ApiFetchOptions): Promise<CreateResult & ConfirmEndorsementResult>;
346
+
347
+ /** A claim naming the signed-in user that they have neither confirmed nor dismissed. */
348
+ interface PendingConfirmation {
349
+ /** DID of the person who wrote the claim. */
350
+ claimerDid: string;
351
+ /**
352
+ * Claimer's handle, when the AppView has resolved one. Absent when they have
353
+ * no Sifa profile: a claim can be written by any AT Protocol app, so the UI
354
+ * needs a fallback for having no name to show.
355
+ */
356
+ claimerHandle?: string;
357
+ claimerDisplayName?: string;
358
+ claimerAvatar?: string;
359
+ /** AT-URI of the record that names you. The confirm mutation needs a strongRef. */
360
+ subjectUri: string;
361
+ /**
362
+ * CID of that record, when the AppView has it. Often absent, since a record
363
+ * indexed from another app can arrive without one. Pass it through when
364
+ * present; the AppView resolves it from the claimer's PDS when it is not.
365
+ * Never substitute a different record's CID.
366
+ */
367
+ subjectCid?: string;
368
+ relation: string;
369
+ /** Name or title the subject record carries right now, for display and snapshotting. */
370
+ subjectName: string;
371
+ /** Role the claimer assigned you, for `projectMember`. Display only. */
372
+ role?: string;
373
+ title?: string;
374
+ createdAt: string;
375
+ }
376
+ interface PendingConfirmationsPage {
377
+ confirmations: PendingConfirmation[];
378
+ cursor?: string;
379
+ }
380
+ /** Body accepted by {@link createConfirmation}. */
381
+ interface ConfirmationInput {
382
+ subjectUri: string;
383
+ subjectCid?: string;
384
+ relation: string;
385
+ /**
386
+ * Snapshot of the subject's name at confirmation time. Stored in your own
387
+ * repo, out of the claimer's reach, so a later rename is detectable.
388
+ */
389
+ subjectName?: string;
390
+ }
391
+ /** Body accepted by {@link dismissConfirmation} and {@link revokeConfirmation}. */
392
+ interface ConfirmationSubjectInput {
393
+ subjectUri: string;
394
+ }
395
+ /**
396
+ * Claims awaiting the signed-in user's decision. Requires credentials -- the
397
+ * AppView reads the subject DID from the session, not from a parameter, so
398
+ * there is no way to read someone else's inbox.
399
+ *
400
+ * Returns an empty page on failure so a broken inbox degrades to "nothing
401
+ * pending" rather than breaking the surface hosting it.
402
+ */
403
+ declare function fetchPendingConfirmations(config: SifaApiConfig, options?: ApiFetchOptions): Promise<PendingConfirmationsPage>;
404
+ /**
405
+ * Affirm that a record naming you is accurate, writing an `id.sifa.confirmation`
406
+ * to your own PDS. Until this exists the claim renders as a bare handle with no
407
+ * display name, avatar, or link back to you.
408
+ *
409
+ * Confirming does not put the claimer's record on your profile. That record
410
+ * lives in their repository and they can rename it at will; keeping your own
411
+ * entry is a separate, deliberate step.
412
+ */
413
+ declare function createConfirmation(config: SifaApiConfig, data: ConfirmationInput, options?: ApiFetchOptions): Promise<CreateResult>;
414
+ /**
415
+ * Take a claim out of the inbox without confirming it.
416
+ *
417
+ * This writes nothing to any PDS. A claim only gains your identity once you
418
+ * have confirmed it, so declining is already the default state -- the dismissal
419
+ * is a local flag that stops it reappearing, not a published rejection the
420
+ * claimer can read.
421
+ */
422
+ declare function dismissConfirmation(config: SifaApiConfig, data: ConfirmationSubjectInput, options?: ApiFetchOptions): Promise<WriteResult>;
423
+ /**
424
+ * Withdraw a confirmation you previously gave, deleting the record from your
425
+ * PDS. The claim reverts to rendering as a bare handle.
426
+ *
427
+ * The usual reason is drift: the claimer renamed the project or changed the
428
+ * role after you confirmed, so what you affirmed is no longer what is shown.
429
+ * Also writes a dismissal, or the still-live claim returns to your inbox.
430
+ */
431
+ declare function revokeConfirmation(config: SifaApiConfig, data: ConfirmationSubjectInput, options?: ApiFetchOptions): Promise<WriteResult>;
336
432
 
337
433
  /** Extended result for {@link refreshOrcidPublications}. */
338
434
  interface RefreshOrcidPublicationsResult extends WriteResult {
@@ -1304,6 +1400,10 @@ declare const sifaQueryKeys: {
1304
1400
  readonly count: (did: string) => readonly ["sifa", "endorsement", "count", string];
1305
1401
  readonly pending: () => readonly ["sifa", "endorsement", "pending"];
1306
1402
  };
1403
+ readonly confirmation: {
1404
+ readonly all: () => readonly ["sifa", "confirmation"];
1405
+ readonly pending: () => readonly ["sifa", "confirmation", "pending"];
1406
+ };
1307
1407
  readonly stream: {
1308
1408
  readonly all: () => readonly ["sifa", "stream"];
1309
1409
  readonly networkCount: (did: string) => readonly ["sifa", "stream", "network-count", string];
@@ -1327,7 +1427,7 @@ declare const sifaQueryKeys: {
1327
1427
  readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
1328
1428
  };
1329
1429
  };
1330
- type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.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>;
1430
+ type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
1331
1431
 
1332
1432
  /** How a single entity binding was resolved during a claim. */
1333
1433
  interface OrgClaimBinding {
@@ -1414,4 +1514,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
1414
1514
  */
1415
1515
  declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1416
1516
 
1417
- export { type OrgNotificationEmailAddResult 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 FollowProfile as G, type FollowProfilePageResponse as H, type FollowUserResult as I, type FollowingResponse as J, type GithubPullRequest as K, HIDDEN_ITEM_SOURCES as L, HIDDEN_ITEM_TYPES as M, type HeatmapDay as N, type HeatmapResponse as O, type HiddenApp as P, type HiddenItemSource as Q, type HiddenItemType as R, type SifaApiConfig as S, type HideProfileItemInput as T, type ListFeatureAllowlistOptions as U, type MyGithubPullRequestsResponse as V, type WriteResult as W, type OrgClaimBinding as X, type OrgClaimResult as Y, type OrgDomainChallengeResult as Z, type OrgDomainVerifyResult as _, type ConfirmEndorsementInput as a, fetchActivityFeed as a$, type OrgNotificationEmailRemoveResult as a0, type OrgProfileEcho as a1, type OrgProfileUpdateResult as a2, type PdsWipeOutcome as a3, type ProfileIndustryInput as a4, type ProfileLocationAddress as a5, type ProfileLocationInput as a6, type ProfileSearchResult as a7, type ProfileSelfLocation as a8, QUOTED_POSTS_BATCH_MAX as a9, type UploadAvatarResult as aA, type VerifyExternalAccountResult as aB, type WipePreview as aC, addFeatureAllowlist as aD, addOrgNotificationEmail as aE, apiFetch as aF, apiFetchOrNull as aG, apiWrite as aH, apiWriteCreate as aI, bulkHideProfileItems as aJ, bulkHideStandardPublications as aK, bulkUnhideProfileItems as aL, bulkUnhideStandardPublications as aM, castRoadmapVote as aN, checkAppAccount as aO, confirmEndorsement as aP, createEndorsement as aQ, createExternalAccount as aR, createProfileLocation as aS, createReaction as aT, createSkill as aU, deleteAccount as aV, deleteAvatarOverride as aW, deleteExternalAccount as aX, deleteProfileLocation as aY, deleteReaction as aZ, deleteSkill as a_, type QuotedPostAuthor as aa, type QuotedPostImage as ab, type QuotedPostResult as ac, type QuotedPostView as ad, type ReactionError as ae, type ReactionResult as af, type ReactionStatus as ag, type RefreshOrcidPublicationsResult as ah, type RefreshPdsResult as ai, type ResetProfileResult as aj, type ResolveQuotedPostsOptions as ak, type RoadmapVoteError as al, type RoadmapVoteResult as am, type RoadmapVoter as an, type RoadmapVotesResponse as ao, type SearchFilters as ap, type SearchResponse as aq, type SifaQueryKey as ar, type SimilarProfile as as, type SkillSearchResult as at, type StatsResponse as au, type SubCategoryBulkResult as av, type SuggestionProfile as aw, type SuggestionsResponse as ax, type UpdateProfileOverrideInput as ay, type UpdateProfileSelfInput as az, type AccountCheckResult as b, fetchActivityTeaser as b0, fetchAppsRegistry as b1, fetchExternalAccounts as b2, fetchFeaturedProfile as b3, fetchFollowing as b4, fetchHeatmapData as b5, fetchHiddenApps as b6, fetchMyGithubPullRequests as b7, fetchMyRoadmapVotes as b8, fetchReactionStatus as b9, resolveQuotedPosts as bA, retractRoadmapVote as bB, searchSkills as bC, setExternalAccountPrimary as bD, submitOrgClaim as bE, unfollowUser as bF, unhideOrcidPublication as bG, unhideProfileItem as bH, unhideSifaPublication as bI, unhideStandardPublication as bJ, unsetExternalAccountPrimary as bK, updateExternalAccount as bL, updateOrgProfile as bM, updateProfileLocation as bN, updateProfileOverride as bO, updateProfileSelf as bP, updateSkill as bQ, updateSkillSubCategories as bR, uploadAvatar as bS, verifyExternalAccount as bT, verifyOrgDomain as bU, fetchRoadmapVotes as ba, fetchSearchFilters as bb, fetchSearchProfiles as bc, fetchSimilarProfiles as bd, fetchSkillSuggestions as be, fetchStats as bf, fetchSuggestionCount as bg, fetchSuggestions as bh, fetchWipePreview as bi, followUser as bj, getBlueskySuggestions as bk, getFollowers as bl, getFollowing as bm, getFollowingFeed as bn, getMutuals as bo, hideOrcidPublication as bp, hideProfileItem as bq, hideSifaPublication as br, hideStandardPublication as bs, listFeatureAllowlist as bt, refreshOrcidPublications as bu, refreshPds as bv, removeFeatureAllowlist as bw, removeOrgNotificationEmail as bx, requestOrgDomainChallenge as by, resetProfile as bz, type ActivityFeedResponse as c, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityTeaserResponse as f, ApiError as g, type AppRegistryEntry as h, type CastRoadmapVoteResult as i, type CheckAppAccountOptions as j, type CreateExternalAccountResult as k, type ExternalAccountInput as l, type FeaturedProfile as m, type FetchActivityFeedOptions as n, type FetchActivityTeaserOptions as o, type FetchFollowListOptions as p, type FetchFollowProfilePageOptions as q, type FetchFollowingFeedOptions as r, sifaQueryKeys as s, type FetchHiddenAppsOptions as t, type FetchMyGithubPullRequestsOptions as u, type FetchMyRoadmapVotesOptions as v, type FetchReactionStatusOptions as w, type FetchSuggestionsOptions as x, type FilterOptions as y, type FollowListPage as z };
1517
+ export { type OrgClaimResult 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 FetchSuggestionsOptions as G, type FilterOptions as H, type FollowListPage as I, type FollowProfile as J, type FollowProfilePageResponse as K, type FollowUserResult as L, type FollowingResponse as M, type GithubPullRequest as N, HIDDEN_ITEM_SOURCES as O, HIDDEN_ITEM_TYPES as P, type HeatmapDay as Q, type HeatmapResponse as R, type SifaApiConfig as S, type HiddenApp as T, type HiddenItemSource as U, type HiddenItemType as V, type WriteResult as W, type HideProfileItemInput as X, type ListFeatureAllowlistOptions as Y, type MyGithubPullRequestsResponse as Z, type OrgClaimBinding as _, type ConfirmEndorsementInput as a, deleteAccount as a$, type OrgDomainChallengeResult as a0, type OrgDomainVerifyResult as a1, type OrgNotificationEmailAddResult as a2, type OrgNotificationEmailRemoveResult as a3, type OrgProfileEcho as a4, type OrgProfileUpdateResult as a5, type PdsWipeOutcome as a6, type PendingConfirmation as a7, type PendingConfirmationsPage as a8, type ProfileIndustryInput as a9, type SubCategoryBulkResult as aA, type SuggestionProfile as aB, type SuggestionsResponse as aC, type UpdateProfileOverrideInput as aD, type UpdateProfileSelfInput as aE, type UploadAvatarResult as aF, type VerifyExternalAccountResult as aG, type WipePreview as aH, addFeatureAllowlist as aI, addOrgNotificationEmail as aJ, apiFetch as aK, apiFetchOrNull as aL, apiWrite as aM, apiWriteCreate as aN, bulkHideProfileItems as aO, bulkHideStandardPublications as aP, bulkUnhideProfileItems as aQ, bulkUnhideStandardPublications as aR, castRoadmapVote as aS, checkAppAccount as aT, confirmEndorsement as aU, createConfirmation as aV, createEndorsement as aW, createExternalAccount as aX, createProfileLocation as aY, createReaction as aZ, createSkill as a_, type ProfileLocationAddress as aa, type ProfileLocationInput as ab, type ProfileSearchResult as ac, type ProfileSelfLocation as ad, QUOTED_POSTS_BATCH_MAX as ae, type QuotedPostAuthor as af, type QuotedPostImage as ag, type QuotedPostResult as ah, type QuotedPostView as ai, type ReactionError as aj, type ReactionResult as ak, type ReactionStatus as al, type RefreshOrcidPublicationsResult as am, type RefreshPdsResult as an, type ResetProfileResult as ao, type ResolveQuotedPostsOptions as ap, type RoadmapVoteError as aq, type RoadmapVoteResult as ar, type RoadmapVoter as as, type RoadmapVotesResponse as at, type SearchFilters as au, type SearchResponse as av, type SifaQueryKey as aw, type SimilarProfile as ax, type SkillSearchResult as ay, type StatsResponse as az, type ConfirmEndorsementResult as b, uploadAvatar as b$, deleteAvatarOverride as b0, deleteExternalAccount as b1, deleteProfileLocation as b2, deleteReaction as b3, deleteSkill as b4, dismissConfirmation as b5, fetchActivityFeed as b6, fetchActivityTeaser as b7, fetchAppsRegistry as b8, fetchExternalAccounts as b9, hideStandardPublication as bA, listFeatureAllowlist as bB, refreshOrcidPublications as bC, refreshPds as bD, removeFeatureAllowlist as bE, removeOrgNotificationEmail as bF, requestOrgDomainChallenge as bG, resetProfile as bH, resolveQuotedPosts as bI, retractRoadmapVote as bJ, revokeConfirmation as bK, searchSkills as bL, setExternalAccountPrimary as bM, submitOrgClaim as bN, unfollowUser as bO, unhideOrcidPublication as bP, unhideProfileItem as bQ, unhideSifaPublication as bR, unhideStandardPublication as bS, unsetExternalAccountPrimary as bT, updateExternalAccount as bU, updateOrgProfile as bV, updateProfileLocation as bW, updateProfileOverride as bX, updateProfileSelf as bY, updateSkill as bZ, updateSkillSubCategories as b_, fetchFeaturedProfile as ba, fetchFollowing as bb, fetchHeatmapData as bc, fetchHiddenApps as bd, fetchMyGithubPullRequests as be, fetchMyRoadmapVotes as bf, fetchPendingConfirmations as bg, fetchReactionStatus as bh, fetchRoadmapVotes as bi, fetchSearchFilters as bj, fetchSearchProfiles as bk, fetchSimilarProfiles as bl, fetchSkillSuggestions as bm, fetchStats as bn, fetchSuggestionCount as bo, fetchSuggestions as bp, fetchWipePreview as bq, followUser as br, getBlueskySuggestions as bs, getFollowers as bt, getFollowing as bu, getFollowingFeed as bv, getMutuals as bw, hideOrcidPublication as bx, hideProfileItem as by, hideSifaPublication as bz, type AccountCheckResult as c, verifyExternalAccount as c0, verifyOrgDomain as c1, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, ApiError as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type ConfirmationInput as l, type ConfirmationSubjectInput as m, type CreateExternalAccountResult as n, type ExternalAccountInput as o, type FeaturedProfile as p, type FetchActivityFeedOptions as q, type FetchActivityTeaserOptions as r, sifaQueryKeys as s, type FetchFollowListOptions as t, type FetchFollowProfilePageOptions as u, type FetchFollowingFeedOptions as v, type FetchHiddenAppsOptions as w, type FetchMyGithubPullRequestsOptions as x, type FetchMyRoadmapVotesOptions as y, type FetchReactionStatusOptions as z };
@@ -1,5 +1,5 @@
1
- import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-JKDlPIbL.cjs';
2
- import { F as FollowFeedPage, a as FollowProfileItem, b as FeatureAllowlistEntry, c as FeatureFlag } from './feed-C8aHEPw4.cjs';
1
+ import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-DPbdzRqN.cjs';
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';
5
5
 
@@ -294,8 +294,12 @@ declare function verifyExternalAccount(config: SifaApiConfig, rkey: string, opti
294
294
  interface EndorsementInput {
295
295
  /** DID of the person being endorsed. */
296
296
  subjectDid: string;
297
- /** AT-URI of the subject's `id.sifa.profile.skill` record. */
298
- skillUri: string;
297
+ /**
298
+ * AT-URI of the subject's `id.sifa.profile.skill` record. Omit to propose a
299
+ * skill they have not listed; `skillName` then names what is proposed, and
300
+ * the record is created when they accept.
301
+ */
302
+ skillUri?: string;
299
303
  /**
300
304
  * CID of that skill record, pinning the endorsement to the version endorsed.
301
305
  * Optional: the AppView resolves it when omitted, which is the common case
@@ -310,6 +314,12 @@ interface EndorsementInput {
310
314
  comment?: string;
311
315
  }
312
316
  /** Body accepted by {@link confirmEndorsement}. */
317
+ interface ConfirmEndorsementResult {
318
+ /** Skill the endorsement resolved to, created if it was a proposal. */
319
+ skillUri?: string;
320
+ /** True when accepting added a new skill to the profile. */
321
+ skillCreated?: boolean;
322
+ }
313
323
  interface ConfirmEndorsementInput {
314
324
  endorsementUri: string;
315
325
  /**
@@ -332,7 +342,93 @@ declare function createEndorsement(config: SifaApiConfig, data: EndorsementInput
332
342
  * signed-in user's PDS. This is what makes the endorsement public: until the
333
343
  * confirmation exists, the endorsement is indexed but displays nowhere.
334
344
  */
335
- declare function confirmEndorsement(config: SifaApiConfig, data: ConfirmEndorsementInput, options?: ApiFetchOptions): Promise<CreateResult>;
345
+ declare function confirmEndorsement(config: SifaApiConfig, data: ConfirmEndorsementInput, options?: ApiFetchOptions): Promise<CreateResult & ConfirmEndorsementResult>;
346
+
347
+ /** A claim naming the signed-in user that they have neither confirmed nor dismissed. */
348
+ interface PendingConfirmation {
349
+ /** DID of the person who wrote the claim. */
350
+ claimerDid: string;
351
+ /**
352
+ * Claimer's handle, when the AppView has resolved one. Absent when they have
353
+ * no Sifa profile: a claim can be written by any AT Protocol app, so the UI
354
+ * needs a fallback for having no name to show.
355
+ */
356
+ claimerHandle?: string;
357
+ claimerDisplayName?: string;
358
+ claimerAvatar?: string;
359
+ /** AT-URI of the record that names you. The confirm mutation needs a strongRef. */
360
+ subjectUri: string;
361
+ /**
362
+ * CID of that record, when the AppView has it. Often absent, since a record
363
+ * indexed from another app can arrive without one. Pass it through when
364
+ * present; the AppView resolves it from the claimer's PDS when it is not.
365
+ * Never substitute a different record's CID.
366
+ */
367
+ subjectCid?: string;
368
+ relation: string;
369
+ /** Name or title the subject record carries right now, for display and snapshotting. */
370
+ subjectName: string;
371
+ /** Role the claimer assigned you, for `projectMember`. Display only. */
372
+ role?: string;
373
+ title?: string;
374
+ createdAt: string;
375
+ }
376
+ interface PendingConfirmationsPage {
377
+ confirmations: PendingConfirmation[];
378
+ cursor?: string;
379
+ }
380
+ /** Body accepted by {@link createConfirmation}. */
381
+ interface ConfirmationInput {
382
+ subjectUri: string;
383
+ subjectCid?: string;
384
+ relation: string;
385
+ /**
386
+ * Snapshot of the subject's name at confirmation time. Stored in your own
387
+ * repo, out of the claimer's reach, so a later rename is detectable.
388
+ */
389
+ subjectName?: string;
390
+ }
391
+ /** Body accepted by {@link dismissConfirmation} and {@link revokeConfirmation}. */
392
+ interface ConfirmationSubjectInput {
393
+ subjectUri: string;
394
+ }
395
+ /**
396
+ * Claims awaiting the signed-in user's decision. Requires credentials -- the
397
+ * AppView reads the subject DID from the session, not from a parameter, so
398
+ * there is no way to read someone else's inbox.
399
+ *
400
+ * Returns an empty page on failure so a broken inbox degrades to "nothing
401
+ * pending" rather than breaking the surface hosting it.
402
+ */
403
+ declare function fetchPendingConfirmations(config: SifaApiConfig, options?: ApiFetchOptions): Promise<PendingConfirmationsPage>;
404
+ /**
405
+ * Affirm that a record naming you is accurate, writing an `id.sifa.confirmation`
406
+ * to your own PDS. Until this exists the claim renders as a bare handle with no
407
+ * display name, avatar, or link back to you.
408
+ *
409
+ * Confirming does not put the claimer's record on your profile. That record
410
+ * lives in their repository and they can rename it at will; keeping your own
411
+ * entry is a separate, deliberate step.
412
+ */
413
+ declare function createConfirmation(config: SifaApiConfig, data: ConfirmationInput, options?: ApiFetchOptions): Promise<CreateResult>;
414
+ /**
415
+ * Take a claim out of the inbox without confirming it.
416
+ *
417
+ * This writes nothing to any PDS. A claim only gains your identity once you
418
+ * have confirmed it, so declining is already the default state -- the dismissal
419
+ * is a local flag that stops it reappearing, not a published rejection the
420
+ * claimer can read.
421
+ */
422
+ declare function dismissConfirmation(config: SifaApiConfig, data: ConfirmationSubjectInput, options?: ApiFetchOptions): Promise<WriteResult>;
423
+ /**
424
+ * Withdraw a confirmation you previously gave, deleting the record from your
425
+ * PDS. The claim reverts to rendering as a bare handle.
426
+ *
427
+ * The usual reason is drift: the claimer renamed the project or changed the
428
+ * role after you confirmed, so what you affirmed is no longer what is shown.
429
+ * Also writes a dismissal, or the still-live claim returns to your inbox.
430
+ */
431
+ declare function revokeConfirmation(config: SifaApiConfig, data: ConfirmationSubjectInput, options?: ApiFetchOptions): Promise<WriteResult>;
336
432
 
337
433
  /** Extended result for {@link refreshOrcidPublications}. */
338
434
  interface RefreshOrcidPublicationsResult extends WriteResult {
@@ -1304,6 +1400,10 @@ declare const sifaQueryKeys: {
1304
1400
  readonly count: (did: string) => readonly ["sifa", "endorsement", "count", string];
1305
1401
  readonly pending: () => readonly ["sifa", "endorsement", "pending"];
1306
1402
  };
1403
+ readonly confirmation: {
1404
+ readonly all: () => readonly ["sifa", "confirmation"];
1405
+ readonly pending: () => readonly ["sifa", "confirmation", "pending"];
1406
+ };
1307
1407
  readonly stream: {
1308
1408
  readonly all: () => readonly ["sifa", "stream"];
1309
1409
  readonly networkCount: (did: string) => readonly ["sifa", "stream", "network-count", string];
@@ -1327,7 +1427,7 @@ declare const sifaQueryKeys: {
1327
1427
  readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
1328
1428
  };
1329
1429
  };
1330
- type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.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>;
1430
+ type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview>;
1331
1431
 
1332
1432
  /** How a single entity binding was resolved during a claim. */
1333
1433
  interface OrgClaimBinding {
@@ -1414,4 +1514,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
1414
1514
  */
1415
1515
  declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1416
1516
 
1417
- export { type OrgNotificationEmailAddResult 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 FollowProfile as G, type FollowProfilePageResponse as H, type FollowUserResult as I, type FollowingResponse as J, type GithubPullRequest as K, HIDDEN_ITEM_SOURCES as L, HIDDEN_ITEM_TYPES as M, type HeatmapDay as N, type HeatmapResponse as O, type HiddenApp as P, type HiddenItemSource as Q, type HiddenItemType as R, type SifaApiConfig as S, type HideProfileItemInput as T, type ListFeatureAllowlistOptions as U, type MyGithubPullRequestsResponse as V, type WriteResult as W, type OrgClaimBinding as X, type OrgClaimResult as Y, type OrgDomainChallengeResult as Z, type OrgDomainVerifyResult as _, type ConfirmEndorsementInput as a, fetchActivityFeed as a$, type OrgNotificationEmailRemoveResult as a0, type OrgProfileEcho as a1, type OrgProfileUpdateResult as a2, type PdsWipeOutcome as a3, type ProfileIndustryInput as a4, type ProfileLocationAddress as a5, type ProfileLocationInput as a6, type ProfileSearchResult as a7, type ProfileSelfLocation as a8, QUOTED_POSTS_BATCH_MAX as a9, type UploadAvatarResult as aA, type VerifyExternalAccountResult as aB, type WipePreview as aC, addFeatureAllowlist as aD, addOrgNotificationEmail as aE, apiFetch as aF, apiFetchOrNull as aG, apiWrite as aH, apiWriteCreate as aI, bulkHideProfileItems as aJ, bulkHideStandardPublications as aK, bulkUnhideProfileItems as aL, bulkUnhideStandardPublications as aM, castRoadmapVote as aN, checkAppAccount as aO, confirmEndorsement as aP, createEndorsement as aQ, createExternalAccount as aR, createProfileLocation as aS, createReaction as aT, createSkill as aU, deleteAccount as aV, deleteAvatarOverride as aW, deleteExternalAccount as aX, deleteProfileLocation as aY, deleteReaction as aZ, deleteSkill as a_, type QuotedPostAuthor as aa, type QuotedPostImage as ab, type QuotedPostResult as ac, type QuotedPostView as ad, type ReactionError as ae, type ReactionResult as af, type ReactionStatus as ag, type RefreshOrcidPublicationsResult as ah, type RefreshPdsResult as ai, type ResetProfileResult as aj, type ResolveQuotedPostsOptions as ak, type RoadmapVoteError as al, type RoadmapVoteResult as am, type RoadmapVoter as an, type RoadmapVotesResponse as ao, type SearchFilters as ap, type SearchResponse as aq, type SifaQueryKey as ar, type SimilarProfile as as, type SkillSearchResult as at, type StatsResponse as au, type SubCategoryBulkResult as av, type SuggestionProfile as aw, type SuggestionsResponse as ax, type UpdateProfileOverrideInput as ay, type UpdateProfileSelfInput as az, type AccountCheckResult as b, fetchActivityTeaser as b0, fetchAppsRegistry as b1, fetchExternalAccounts as b2, fetchFeaturedProfile as b3, fetchFollowing as b4, fetchHeatmapData as b5, fetchHiddenApps as b6, fetchMyGithubPullRequests as b7, fetchMyRoadmapVotes as b8, fetchReactionStatus as b9, resolveQuotedPosts as bA, retractRoadmapVote as bB, searchSkills as bC, setExternalAccountPrimary as bD, submitOrgClaim as bE, unfollowUser as bF, unhideOrcidPublication as bG, unhideProfileItem as bH, unhideSifaPublication as bI, unhideStandardPublication as bJ, unsetExternalAccountPrimary as bK, updateExternalAccount as bL, updateOrgProfile as bM, updateProfileLocation as bN, updateProfileOverride as bO, updateProfileSelf as bP, updateSkill as bQ, updateSkillSubCategories as bR, uploadAvatar as bS, verifyExternalAccount as bT, verifyOrgDomain as bU, fetchRoadmapVotes as ba, fetchSearchFilters as bb, fetchSearchProfiles as bc, fetchSimilarProfiles as bd, fetchSkillSuggestions as be, fetchStats as bf, fetchSuggestionCount as bg, fetchSuggestions as bh, fetchWipePreview as bi, followUser as bj, getBlueskySuggestions as bk, getFollowers as bl, getFollowing as bm, getFollowingFeed as bn, getMutuals as bo, hideOrcidPublication as bp, hideProfileItem as bq, hideSifaPublication as br, hideStandardPublication as bs, listFeatureAllowlist as bt, refreshOrcidPublications as bu, refreshPds as bv, removeFeatureAllowlist as bw, removeOrgNotificationEmail as bx, requestOrgDomainChallenge as by, resetProfile as bz, type ActivityFeedResponse as c, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityTeaserResponse as f, ApiError as g, type AppRegistryEntry as h, type CastRoadmapVoteResult as i, type CheckAppAccountOptions as j, type CreateExternalAccountResult as k, type ExternalAccountInput as l, type FeaturedProfile as m, type FetchActivityFeedOptions as n, type FetchActivityTeaserOptions as o, type FetchFollowListOptions as p, type FetchFollowProfilePageOptions as q, type FetchFollowingFeedOptions as r, sifaQueryKeys as s, type FetchHiddenAppsOptions as t, type FetchMyGithubPullRequestsOptions as u, type FetchMyRoadmapVotesOptions as v, type FetchReactionStatusOptions as w, type FetchSuggestionsOptions as x, type FilterOptions as y, type FollowListPage as z };
1517
+ export { type OrgClaimResult 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 FetchSuggestionsOptions as G, type FilterOptions as H, type FollowListPage as I, type FollowProfile as J, type FollowProfilePageResponse as K, type FollowUserResult as L, type FollowingResponse as M, type GithubPullRequest as N, HIDDEN_ITEM_SOURCES as O, HIDDEN_ITEM_TYPES as P, type HeatmapDay as Q, type HeatmapResponse as R, type SifaApiConfig as S, type HiddenApp as T, type HiddenItemSource as U, type HiddenItemType as V, type WriteResult as W, type HideProfileItemInput as X, type ListFeatureAllowlistOptions as Y, type MyGithubPullRequestsResponse as Z, type OrgClaimBinding as _, type ConfirmEndorsementInput as a, deleteAccount as a$, type OrgDomainChallengeResult as a0, type OrgDomainVerifyResult as a1, type OrgNotificationEmailAddResult as a2, type OrgNotificationEmailRemoveResult as a3, type OrgProfileEcho as a4, type OrgProfileUpdateResult as a5, type PdsWipeOutcome as a6, type PendingConfirmation as a7, type PendingConfirmationsPage as a8, type ProfileIndustryInput as a9, type SubCategoryBulkResult as aA, type SuggestionProfile as aB, type SuggestionsResponse as aC, type UpdateProfileOverrideInput as aD, type UpdateProfileSelfInput as aE, type UploadAvatarResult as aF, type VerifyExternalAccountResult as aG, type WipePreview as aH, addFeatureAllowlist as aI, addOrgNotificationEmail as aJ, apiFetch as aK, apiFetchOrNull as aL, apiWrite as aM, apiWriteCreate as aN, bulkHideProfileItems as aO, bulkHideStandardPublications as aP, bulkUnhideProfileItems as aQ, bulkUnhideStandardPublications as aR, castRoadmapVote as aS, checkAppAccount as aT, confirmEndorsement as aU, createConfirmation as aV, createEndorsement as aW, createExternalAccount as aX, createProfileLocation as aY, createReaction as aZ, createSkill as a_, type ProfileLocationAddress as aa, type ProfileLocationInput as ab, type ProfileSearchResult as ac, type ProfileSelfLocation as ad, QUOTED_POSTS_BATCH_MAX as ae, type QuotedPostAuthor as af, type QuotedPostImage as ag, type QuotedPostResult as ah, type QuotedPostView as ai, type ReactionError as aj, type ReactionResult as ak, type ReactionStatus as al, type RefreshOrcidPublicationsResult as am, type RefreshPdsResult as an, type ResetProfileResult as ao, type ResolveQuotedPostsOptions as ap, type RoadmapVoteError as aq, type RoadmapVoteResult as ar, type RoadmapVoter as as, type RoadmapVotesResponse as at, type SearchFilters as au, type SearchResponse as av, type SifaQueryKey as aw, type SimilarProfile as ax, type SkillSearchResult as ay, type StatsResponse as az, type ConfirmEndorsementResult as b, uploadAvatar as b$, deleteAvatarOverride as b0, deleteExternalAccount as b1, deleteProfileLocation as b2, deleteReaction as b3, deleteSkill as b4, dismissConfirmation as b5, fetchActivityFeed as b6, fetchActivityTeaser as b7, fetchAppsRegistry as b8, fetchExternalAccounts as b9, hideStandardPublication as bA, listFeatureAllowlist as bB, refreshOrcidPublications as bC, refreshPds as bD, removeFeatureAllowlist as bE, removeOrgNotificationEmail as bF, requestOrgDomainChallenge as bG, resetProfile as bH, resolveQuotedPosts as bI, retractRoadmapVote as bJ, revokeConfirmation as bK, searchSkills as bL, setExternalAccountPrimary as bM, submitOrgClaim as bN, unfollowUser as bO, unhideOrcidPublication as bP, unhideProfileItem as bQ, unhideSifaPublication as bR, unhideStandardPublication as bS, unsetExternalAccountPrimary as bT, updateExternalAccount as bU, updateOrgProfile as bV, updateProfileLocation as bW, updateProfileOverride as bX, updateProfileSelf as bY, updateSkill as bZ, updateSkillSubCategories as b_, fetchFeaturedProfile as ba, fetchFollowing as bb, fetchHeatmapData as bc, fetchHiddenApps as bd, fetchMyGithubPullRequests as be, fetchMyRoadmapVotes as bf, fetchPendingConfirmations as bg, fetchReactionStatus as bh, fetchRoadmapVotes as bi, fetchSearchFilters as bj, fetchSearchProfiles as bk, fetchSimilarProfiles as bl, fetchSkillSuggestions as bm, fetchStats as bn, fetchSuggestionCount as bo, fetchSuggestions as bp, fetchWipePreview as bq, followUser as br, getBlueskySuggestions as bs, getFollowers as bt, getFollowing as bu, getFollowingFeed as bv, getMutuals as bw, hideOrcidPublication as bx, hideProfileItem as by, hideSifaPublication as bz, type AccountCheckResult as c, verifyExternalAccount as c0, verifyOrgDomain as c1, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, ApiError as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type ConfirmationInput as l, type ConfirmationSubjectInput as m, type CreateExternalAccountResult as n, type ExternalAccountInput as o, type FeaturedProfile as p, type FetchActivityFeedOptions as q, type FetchActivityTeaserOptions as r, sifaQueryKeys as s, type FetchFollowListOptions as t, type FetchFollowProfilePageOptions as u, type FetchFollowingFeedOptions as v, type FetchHiddenAppsOptions as w, type FetchMyGithubPullRequestsOptions as x, type FetchMyRoadmapVotesOptions as y, type FetchReactionStatusOptions as z };
@@ -1,4 +1,4 @@
1
- import { P as ProfileView } from './adult-content-JKDlPIbL.cjs';
1
+ import { P as ProfileView } from './adult-content-DPbdzRqN.cjs';
2
2
 
3
3
  /**
4
4
  * Compact professional summary derived from a {@link ProfileView}.
@@ -1,4 +1,4 @@
1
- import { P as ProfileView } from './adult-content-JKDlPIbL.js';
1
+ import { P as ProfileView } from './adult-content-DPbdzRqN.js';
2
2
 
3
3
  /**
4
4
  * Compact professional summary derived from a {@link ProfileView}.
@@ -381,7 +381,12 @@ function createEndorsement(config, data, options = {}) {
381
381
  return apiWriteCreate(config, "/api/endorsement", data, options);
382
382
  }
383
383
  function confirmEndorsement(config, data, options = {}) {
384
- return apiWriteCreate(config, "/api/endorsement/confirm", data, options);
384
+ return apiWriteCreate(
385
+ config,
386
+ "/api/endorsement/confirm",
387
+ data,
388
+ options
389
+ );
385
390
  }
386
391
 
387
392
  // src/query/fetchers/endorsement-inbox.ts
@@ -402,6 +407,30 @@ function dismissEndorsement(config, data, options = {}) {
402
407
  return apiWrite(config, "/api/endorsement/dismiss", "POST", { body: data, ...options });
403
408
  }
404
409
 
410
+ // src/query/fetchers/confirmations.ts
411
+ async function fetchPendingConfirmations(config, options = {}) {
412
+ try {
413
+ const data = await apiFetch(config, "/api/confirmations/pending", {
414
+ cache: "no-store",
415
+ credentials: "include",
416
+ timeoutMs: 5e3,
417
+ ...options
418
+ });
419
+ return { confirmations: data?.confirmations ?? [], cursor: data?.cursor };
420
+ } catch {
421
+ return { confirmations: [] };
422
+ }
423
+ }
424
+ function createConfirmation(config, data, options = {}) {
425
+ return apiWriteCreate(config, "/api/confirmation", data, options);
426
+ }
427
+ function dismissConfirmation(config, data, options = {}) {
428
+ return apiWrite(config, "/api/confirmation/dismiss", "POST", { body: data, ...options });
429
+ }
430
+ function revokeConfirmation(config, data, options = {}) {
431
+ return apiWrite(config, "/api/confirmation/revoke", "POST", { body: data, ...options });
432
+ }
433
+
405
434
  // src/query/fetchers/keytrace-claims.ts
406
435
  function hideKeytraceClaim(config, rkey, options = {}) {
407
436
  return apiWrite(
@@ -1429,6 +1458,13 @@ var sifaQueryKeys = {
1429
1458
  // from the session cookie, so there is only ever one inbox per client.
1430
1459
  pending: () => ["sifa", "endorsement", "pending"]
1431
1460
  },
1461
+ confirmation: {
1462
+ all: () => ["sifa", "confirmation"],
1463
+ // Scoped to the session for the same reason as the endorsement inbox: the
1464
+ // AppView reads the subject from the session cookie, so there is only ever
1465
+ // one inbox per client.
1466
+ pending: () => ["sifa", "confirmation", "pending"]
1467
+ },
1432
1468
  stream: {
1433
1469
  all: () => ["sifa", "stream"],
1434
1470
  networkCount: (did) => ["sifa", "stream", "network-count", did]
@@ -1471,6 +1507,7 @@ exports.castRoadmapVote = castRoadmapVote;
1471
1507
  exports.checkAppAccount = checkAppAccount;
1472
1508
  exports.checkNetworkMapJobStatus = checkNetworkMapJobStatus;
1473
1509
  exports.confirmEndorsement = confirmEndorsement;
1510
+ exports.createConfirmation = createConfirmation;
1474
1511
  exports.createEducation = createEducation;
1475
1512
  exports.createEndorsement = createEndorsement;
1476
1513
  exports.createExternalAccount = createExternalAccount;
@@ -1488,6 +1525,7 @@ exports.deleteProfileLocation = deleteProfileLocation;
1488
1525
  exports.deleteReaction = deleteReaction;
1489
1526
  exports.deleteRecord = deleteRecord;
1490
1527
  exports.deleteSkill = deleteSkill;
1528
+ exports.dismissConfirmation = dismissConfirmation;
1491
1529
  exports.dismissEndorsement = dismissEndorsement;
1492
1530
  exports.fetchActivityFeed = fetchActivityFeed;
1493
1531
  exports.fetchActivityTeaser = fetchActivityTeaser;
@@ -1505,6 +1543,7 @@ exports.fetchMyGithubPullRequests = fetchMyGithubPullRequests;
1505
1543
  exports.fetchMyRoadmapVotes = fetchMyRoadmapVotes;
1506
1544
  exports.fetchNetworkMap = fetchNetworkMap;
1507
1545
  exports.fetchNetworkStreamCount = fetchNetworkStreamCount;
1546
+ exports.fetchPendingConfirmations = fetchPendingConfirmations;
1508
1547
  exports.fetchPendingEndorsements = fetchPendingEndorsements;
1509
1548
  exports.fetchProfile = fetchProfile;
1510
1549
  exports.fetchProfileSummary = fetchProfileSummary;
@@ -1543,6 +1582,7 @@ exports.resetProfile = resetProfile;
1543
1582
  exports.resolveQuotedPosts = resolveQuotedPosts;
1544
1583
  exports.retractRoadmapVote = retractRoadmapVote;
1545
1584
  exports.revealMarqueDomain = revealMarqueDomain;
1585
+ exports.revokeConfirmation = revokeConfirmation;
1546
1586
  exports.searchSkills = searchSkills;
1547
1587
  exports.selectEntity = selectEntity;
1548
1588
  exports.setExternalAccountPrimary = setExternalAccountPrimary;