@singi-labs/sifa-sdk 0.19.54 → 0.19.55

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 (39) hide show
  1. package/dist/badge/index.cjs.map +1 -1
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.d.cts +3 -3
  4. package/dist/index.d.ts +3 -3
  5. package/dist/index.js +1 -1
  6. package/dist/{network-map-Bj-s4akz.d.cts → network-map-CdYpUy-t.d.cts} +2 -2
  7. package/dist/{network-map-v_4bPC5p.d.ts → network-map-CiWrQ1fF.d.ts} +2 -2
  8. package/dist/{org-mUwICoPr.d.cts → org-fmpG85L0.d.cts} +32 -27
  9. package/dist/{org-DTHVhan9.d.ts → org-hxHnoBfg.d.ts} +32 -27
  10. package/dist/{profile-summary-D-Z_C6ZC.d.cts → profile-summary-5T1hDw6Q.d.cts} +1 -1
  11. package/dist/{profile-summary-BXG--PFN.d.ts → profile-summary-Bj7ufSDK.d.ts} +1 -1
  12. package/dist/query/client.js.map +1 -1
  13. package/dist/query/fetchers/destructive.js.map +1 -1
  14. package/dist/query/fetchers/external-accounts.js.map +1 -1
  15. package/dist/query/fetchers/follow.js.map +1 -1
  16. package/dist/query/fetchers/index.cjs.map +1 -1
  17. package/dist/query/fetchers/index.d.cts +5 -5
  18. package/dist/query/fetchers/index.d.ts +5 -5
  19. package/dist/query/fetchers/org.js.map +1 -1
  20. package/dist/query/fetchers/profile-mutations.js.map +1 -1
  21. package/dist/query/fetchers/publications.js.map +1 -1
  22. package/dist/query/fetchers/repo-inventory.js.map +1 -1
  23. package/dist/query/fetchers/skills.js.map +1 -1
  24. package/dist/query/hooks/index.cjs.map +1 -1
  25. package/dist/query/hooks/index.d.cts +3 -3
  26. package/dist/query/hooks/index.d.ts +3 -3
  27. package/dist/query/hooks/use-org-claim.js.map +1 -1
  28. package/dist/query/hooks/use-org-domains.js.map +1 -1
  29. package/dist/query/hooks/use-org-notification-emails.js.map +1 -1
  30. package/dist/query/hooks/use-org-profile-settings.js.map +1 -1
  31. package/dist/query/hooks/use-skill-mutations.js.map +1 -1
  32. package/dist/query/index.cjs.map +1 -1
  33. package/dist/query/index.d.cts +8 -8
  34. package/dist/query/index.d.ts +8 -8
  35. package/dist/{types-BeEuVVBo.d.cts → types-DHT7jcZc.d.cts} +26 -8
  36. package/dist/{types-Dblq-u-n.d.ts → types-jB67EFpw.d.ts} +26 -8
  37. package/dist/{use-org-notification-emails-CgEZnFTp.d.ts → use-org-notification-emails-CWLCWkmb.d.ts} +15 -15
  38. package/dist/{use-org-notification-emails-C8Z0U5rH.d.cts → use-org-notification-emails-Cj8IDI_7.d.cts} +15 -15
  39. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-BeEuVVBo.cjs';
2
- export { O as ApiError, a4 as CompanySearchFilters, a5 as CompanySearchResponse, a6 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, Y as apiFetch, Z as apiFetchOrNull, _ as apiWrite, $ as apiWriteCreate, a7 as fetchSearchCompanies, a0 as fetchSearchFilters, a1 as fetchSearchProfiles, a2 as fetchSkillSuggestions, a3 as searchSkills } from '../../types-BeEuVVBo.cjs';
3
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-Bj-s4akz.cjs';
4
- export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedEmptyReason, T as FollowingFeedResponse, U as FollowingFeedVersion, V as FollowingResponse, W as GetAdminReviewQueuesOptions, X as GithubPullRequest, Y as GivenConfirmation, Z as HIDDEN_ITEM_SOURCES, _ as HIDDEN_ITEM_TYPES, $ as HeatmapDay, a0 as HeatmapResponse, a1 as HiddenActivityItem, a2 as HiddenApp, a3 as HiddenItemSource, a4 as HiddenItemType, a5 as HideActivityItemInput, a6 as HideProfileItemInput, a7 as InboxCounts, a8 as ListFeatureAllowlistOptions, a9 as MyGithubPullRequestsResponse, aa as OrgClaimBinding, ab as OrgClaimResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult, ag as OrgProfileEcho, ah as OrgProfileUpdateResult, ai as PROFILE_COMPLETENESS_SIGNALS, aj as PdsWipeOutcome, ak as PendingConfirmation, al as PendingConfirmationsPage, am as PrimarySection, an as ProfileCompleteness, ao as ProfileCompletenessSignal, ap as ProfileIndustryInput, aq as ProfileLocationAddress, ar as ProfileLocationInput, as as ProfileSelfLocation, at as QUOTED_POSTS_BATCH_MAX, au as QuotedPostAuthor, av as QuotedPostImage, aw as QuotedPostResult, ax as QuotedPostView, ay as ReactionError, az as ReactionResult, aA as ReactionStatus, aB as RefreshOrcidPublicationsResult, aC as RefreshPdsResult, aD as RepoDeleteInput, aE as ResetProfileResult, aF as ResolveQuotedPostsOptions, aG as RoadmapVoteError, aH as RoadmapVoteResult, aI as RoadmapVoter, aJ as RoadmapVotesResponse, aK as SifaQueryKey, aL as SimilarProfile, aM as StatsResponse, aO as SuggestionProfile, aP as SuggestionsResponse, aQ as UnhideActivityItemInput, aR as UnlinkedPosition, aS as UnlinkedPositionsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, aX as VerifyExternalAccountResult, aY as WipePreview, aZ as addFeatureAllowlist, a_ as addOrgNotificationEmail, a$ as bulkHideProfileItems, b0 as bulkHideStandardPublications, b1 as bulkUnhideProfileItems, b2 as bulkUnhideStandardPublications, b3 as castRoadmapVote, b4 as checkAppAccount, b5 as confirmEndorsement, b6 as createConfirmation, b7 as createEndorsement, b8 as createExternalAccount, b9 as createProfileLocation, ba as createReaction, bb as createSkill, bc as deleteAccount, bd as deleteAvatarOverride, be as deleteExternalAccount, bf as deleteNamePronunciationAudio, bg as deleteProfileLocation, bh as deleteReaction, bi as deleteRepoRecords, bj as deleteSkill, bk as dismissConfirmation, bl as dismissUnlinkedPosition, bm as fetchAccounts, bn as fetchActivityFeed, bo as fetchActivityTeaser, bp as fetchAppsRegistry, bq as fetchExternalAccounts, br as fetchFeaturedProfile, bs as fetchFollowing, bt as fetchFollowingFeed, bu as fetchFollowingFeedVersion, bv as fetchGivenConfirmations, bw as fetchHeatmapData, bx as fetchHiddenActivityItems, by as fetchHiddenApps, bz as fetchInboxCounts, bA as fetchMyGithubPullRequests, bB as fetchMyRoadmapVotes, bC as fetchPendingConfirmations, bD as fetchProfileCompleteness, bE as fetchReactionStatus, bF as fetchRepoInventory, bG as fetchRoadmapVotes, bH as fetchSimilarProfiles, bI as fetchStats, bJ as fetchSuggestionCount, bK as fetchSuggestions, bL as fetchUnlinkedPositions, bM as fetchWipePreview, bN as followUser, bO as getAdminReviewQueues, bP as getBlueskySuggestions, bQ as getFollowers, bR as getFollowing, bS as getMutuals, bT as hideActivityItem, bU as hideOrcidPublication, bV as hideProfileItem, bW as hideSifaPublication, bX as hideStandardPublication, bY as isNewerFollowingFeed, bZ as listFeatureAllowlist, b_ as refreshOrcidPublications, b$ as refreshPds, c0 as removeFeatureAllowlist, c1 as removeOrgNotificationEmail, c2 as repoExportUrl, c3 as requestOrgDomainChallenge, c4 as resetProfile, c5 as resolveQuotedPosts, c6 as retractRoadmapVote, c7 as revokeConfirmation, c8 as setExternalAccountPrimary, c9 as setSectionPrimary, s as sifaQueryKeys, ca as submitOrgClaim, cb as switchAccount, cc as unfollowUser, cd as unhideActivityItem, ce as unhideOrcidPublication, cf as unhideProfileItem, cg as unhideSifaPublication, ch as unhideStandardPublication, ci as unsetExternalAccountPrimary, cj as unsetSectionPrimary, ck as updateExternalAccount, cl as updateOrgProfile, cm as updateProfileLocation, cn as updateProfileOverride, co as updateProfileSelf, cp as updateSkill, cr as uploadAvatar, cs as uploadNamePronunciationAudio, ct as verifyExternalAccount, cu as verifyOrgDomain } from '../../org-mUwICoPr.cjs';
1
+ import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-DHT7jcZc.cjs';
2
+ export { O as ApiError, a4 as CompanySearchFilters, a5 as CompanySearchResponse, a6 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, Y as apiFetch, Z as apiFetchOrNull, _ as apiWrite, $ as apiWriteCreate, a7 as fetchSearchCompanies, a0 as fetchSearchFilters, a1 as fetchSearchProfiles, a2 as fetchSkillSuggestions, a3 as searchSkills } from '../../types-DHT7jcZc.cjs';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-CdYpUy-t.cjs';
4
+ export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedEmptyReason, T as FollowingFeedResponse, U as FollowingFeedVersion, V as FollowingResponse, W as GetAdminReviewQueuesOptions, X as GithubPullRequest, Y as GivenConfirmation, Z as HIDDEN_ITEM_SOURCES, _ as HIDDEN_ITEM_TYPES, $ as HeatmapDay, a0 as HeatmapResponse, a1 as HiddenActivityItem, a2 as HiddenApp, a3 as HiddenItemSource, a4 as HiddenItemType, a5 as HideActivityItemInput, a6 as HideProfileItemInput, a7 as InboxCounts, a8 as ListFeatureAllowlistOptions, a9 as MyGithubPullRequestsResponse, aa as OrgClaimBinding, ab as OrgClaimResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult, ag as OrgProfileEcho, ah as OrgProfileUpdateResult, ai as PROFILE_COMPLETENESS_SIGNALS, aj as PdsWipeOutcome, ak as PendingConfirmation, al as PendingConfirmationsPage, am as PrimarySection, an as ProfileCompleteness, ao as ProfileCompletenessSignal, ap as ProfileIndustryInput, aq as ProfileLocationAddress, ar as ProfileLocationInput, as as ProfileSelfLocation, at as QUOTED_POSTS_BATCH_MAX, au as QuotedPostAuthor, av as QuotedPostImage, aw as QuotedPostResult, ax as QuotedPostView, ay as ReactionError, az as ReactionResult, aA as ReactionStatus, aB as RefreshOrcidPublicationsResult, aC as RefreshPdsResult, aD as RepoDeleteInput, aE as ResetProfileResult, aF as ResolveQuotedPostsOptions, aG as RoadmapVoteError, aH as RoadmapVoteResult, aI as RoadmapVoter, aJ as RoadmapVotesResponse, aK as SifaQueryKey, aL as SimilarProfile, aM as StatsResponse, aO as SuggestionProfile, aP as SuggestionsResponse, aQ as UnhideActivityItemInput, aR as UnlinkedPosition, aS as UnlinkedPositionsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, aX as VerifyExternalAccountResult, aY as WipePreview, aZ as addFeatureAllowlist, a_ as addOrgNotificationEmail, a$ as bulkHideProfileItems, b0 as bulkHideStandardPublications, b1 as bulkUnhideProfileItems, b2 as bulkUnhideStandardPublications, b3 as castRoadmapVote, b4 as checkAppAccount, b5 as confirmEndorsement, b6 as createConfirmation, b7 as createEndorsement, b8 as createExternalAccount, b9 as createProfileLocation, ba as createReaction, bb as createSkill, bc as deleteAccount, bd as deleteAvatarOverride, be as deleteExternalAccount, bf as deleteNamePronunciationAudio, bg as deleteProfileLocation, bh as deleteReaction, bi as deleteRepoRecords, bj as deleteSkill, bk as dismissConfirmation, bl as dismissUnlinkedPosition, bm as fetchAccounts, bn as fetchActivityFeed, bo as fetchActivityTeaser, bp as fetchAppsRegistry, bq as fetchExternalAccounts, br as fetchFeaturedProfile, bs as fetchFollowing, bt as fetchFollowingFeed, bu as fetchFollowingFeedVersion, bv as fetchGivenConfirmations, bw as fetchHeatmapData, bx as fetchHiddenActivityItems, by as fetchHiddenApps, bz as fetchInboxCounts, bA as fetchMyGithubPullRequests, bB as fetchMyRoadmapVotes, bC as fetchPendingConfirmations, bD as fetchProfileCompleteness, bE as fetchReactionStatus, bF as fetchRepoInventory, bG as fetchRoadmapVotes, bH as fetchSimilarProfiles, bI as fetchStats, bJ as fetchSuggestionCount, bK as fetchSuggestions, bL as fetchUnlinkedPositions, bM as fetchWipePreview, bN as followUser, bO as getAdminReviewQueues, bP as getBlueskySuggestions, bQ as getFollowers, bR as getFollowing, bS as getMutuals, bT as hideActivityItem, bU as hideOrcidPublication, bV as hideProfileItem, bW as hideSifaPublication, bX as hideStandardPublication, bY as isNewerFollowingFeed, bZ as listFeatureAllowlist, b_ as refreshOrcidPublications, b$ as refreshPds, c0 as removeFeatureAllowlist, c1 as removeOrgNotificationEmail, c2 as repoExportUrl, c3 as requestOrgDomainChallenge, c4 as resetProfile, c5 as resolveQuotedPosts, c6 as retractRoadmapVote, c7 as revokeConfirmation, c8 as setExternalAccountPrimary, c9 as setSectionPrimary, s as sifaQueryKeys, ca as submitOrgClaim, cb as switchAccount, cc as unfollowUser, cd as unhideActivityItem, ce as unhideOrcidPublication, cf as unhideProfileItem, cg as unhideSifaPublication, ch as unhideStandardPublication, ci as unsetExternalAccountPrimary, cj as unsetSectionPrimary, ck as updateExternalAccount, cl as updateOrgProfile, cm as updateProfileLocation, cn as updateProfileOverride, co as updateProfileSelf, cp as updateSkill, cr as uploadAvatar, cs as uploadNamePronunciationAudio, ct as verifyExternalAccount, cu as verifyOrgDomain } from '../../org-fmpG85L0.cjs';
5
5
  import '../../index-DmlIG8sJ.cjs';
6
6
  import '../../shared-v0vl5hov.cjs';
7
7
  import 'zod';
8
- import '../../profile-summary-D-Z_C6ZC.cjs';
8
+ import '../../profile-summary-5T1hDw6Q.cjs';
9
9
  import '../../follow-profile-D1l6pulB.cjs';
10
10
  import '../../org-settings-C73Sin5E.cjs';
11
11
 
@@ -1,11 +1,11 @@
1
- import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-Dblq-u-n.js';
2
- export { O as ApiError, a4 as CompanySearchFilters, a5 as CompanySearchResponse, a6 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, Y as apiFetch, Z as apiFetchOrNull, _ as apiWrite, $ as apiWriteCreate, a7 as fetchSearchCompanies, a0 as fetchSearchFilters, a1 as fetchSearchProfiles, a2 as fetchSkillSuggestions, a3 as searchSkills } from '../../types-Dblq-u-n.js';
3
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-v_4bPC5p.js';
4
- export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedEmptyReason, T as FollowingFeedResponse, U as FollowingFeedVersion, V as FollowingResponse, W as GetAdminReviewQueuesOptions, X as GithubPullRequest, Y as GivenConfirmation, Z as HIDDEN_ITEM_SOURCES, _ as HIDDEN_ITEM_TYPES, $ as HeatmapDay, a0 as HeatmapResponse, a1 as HiddenActivityItem, a2 as HiddenApp, a3 as HiddenItemSource, a4 as HiddenItemType, a5 as HideActivityItemInput, a6 as HideProfileItemInput, a7 as InboxCounts, a8 as ListFeatureAllowlistOptions, a9 as MyGithubPullRequestsResponse, aa as OrgClaimBinding, ab as OrgClaimResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult, ag as OrgProfileEcho, ah as OrgProfileUpdateResult, ai as PROFILE_COMPLETENESS_SIGNALS, aj as PdsWipeOutcome, ak as PendingConfirmation, al as PendingConfirmationsPage, am as PrimarySection, an as ProfileCompleteness, ao as ProfileCompletenessSignal, ap as ProfileIndustryInput, aq as ProfileLocationAddress, ar as ProfileLocationInput, as as ProfileSelfLocation, at as QUOTED_POSTS_BATCH_MAX, au as QuotedPostAuthor, av as QuotedPostImage, aw as QuotedPostResult, ax as QuotedPostView, ay as ReactionError, az as ReactionResult, aA as ReactionStatus, aB as RefreshOrcidPublicationsResult, aC as RefreshPdsResult, aD as RepoDeleteInput, aE as ResetProfileResult, aF as ResolveQuotedPostsOptions, aG as RoadmapVoteError, aH as RoadmapVoteResult, aI as RoadmapVoter, aJ as RoadmapVotesResponse, aK as SifaQueryKey, aL as SimilarProfile, aM as StatsResponse, aO as SuggestionProfile, aP as SuggestionsResponse, aQ as UnhideActivityItemInput, aR as UnlinkedPosition, aS as UnlinkedPositionsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, aX as VerifyExternalAccountResult, aY as WipePreview, aZ as addFeatureAllowlist, a_ as addOrgNotificationEmail, a$ as bulkHideProfileItems, b0 as bulkHideStandardPublications, b1 as bulkUnhideProfileItems, b2 as bulkUnhideStandardPublications, b3 as castRoadmapVote, b4 as checkAppAccount, b5 as confirmEndorsement, b6 as createConfirmation, b7 as createEndorsement, b8 as createExternalAccount, b9 as createProfileLocation, ba as createReaction, bb as createSkill, bc as deleteAccount, bd as deleteAvatarOverride, be as deleteExternalAccount, bf as deleteNamePronunciationAudio, bg as deleteProfileLocation, bh as deleteReaction, bi as deleteRepoRecords, bj as deleteSkill, bk as dismissConfirmation, bl as dismissUnlinkedPosition, bm as fetchAccounts, bn as fetchActivityFeed, bo as fetchActivityTeaser, bp as fetchAppsRegistry, bq as fetchExternalAccounts, br as fetchFeaturedProfile, bs as fetchFollowing, bt as fetchFollowingFeed, bu as fetchFollowingFeedVersion, bv as fetchGivenConfirmations, bw as fetchHeatmapData, bx as fetchHiddenActivityItems, by as fetchHiddenApps, bz as fetchInboxCounts, bA as fetchMyGithubPullRequests, bB as fetchMyRoadmapVotes, bC as fetchPendingConfirmations, bD as fetchProfileCompleteness, bE as fetchReactionStatus, bF as fetchRepoInventory, bG as fetchRoadmapVotes, bH as fetchSimilarProfiles, bI as fetchStats, bJ as fetchSuggestionCount, bK as fetchSuggestions, bL as fetchUnlinkedPositions, bM as fetchWipePreview, bN as followUser, bO as getAdminReviewQueues, bP as getBlueskySuggestions, bQ as getFollowers, bR as getFollowing, bS as getMutuals, bT as hideActivityItem, bU as hideOrcidPublication, bV as hideProfileItem, bW as hideSifaPublication, bX as hideStandardPublication, bY as isNewerFollowingFeed, bZ as listFeatureAllowlist, b_ as refreshOrcidPublications, b$ as refreshPds, c0 as removeFeatureAllowlist, c1 as removeOrgNotificationEmail, c2 as repoExportUrl, c3 as requestOrgDomainChallenge, c4 as resetProfile, c5 as resolveQuotedPosts, c6 as retractRoadmapVote, c7 as revokeConfirmation, c8 as setExternalAccountPrimary, c9 as setSectionPrimary, s as sifaQueryKeys, ca as submitOrgClaim, cb as switchAccount, cc as unfollowUser, cd as unhideActivityItem, ce as unhideOrcidPublication, cf as unhideProfileItem, cg as unhideSifaPublication, ch as unhideStandardPublication, ci as unsetExternalAccountPrimary, cj as unsetSectionPrimary, ck as updateExternalAccount, cl as updateOrgProfile, cm as updateProfileLocation, cn as updateProfileOverride, co as updateProfileSelf, cp as updateSkill, cr as uploadAvatar, cs as uploadNamePronunciationAudio, ct as verifyExternalAccount, cu as verifyOrgDomain } from '../../org-DTHVhan9.js';
1
+ import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-jB67EFpw.js';
2
+ export { O as ApiError, a4 as CompanySearchFilters, a5 as CompanySearchResponse, a6 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, S as SearchFilters, U as SearchResponse, X as SkillSearchResult, Y as apiFetch, Z as apiFetchOrNull, _ as apiWrite, $ as apiWriteCreate, a7 as fetchSearchCompanies, a0 as fetchSearchFilters, a1 as fetchSearchProfiles, a2 as fetchSkillSuggestions, a3 as searchSkills } from '../../types-jB67EFpw.js';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-CiWrQ1fF.js';
4
+ export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedEmptyReason, T as FollowingFeedResponse, U as FollowingFeedVersion, V as FollowingResponse, W as GetAdminReviewQueuesOptions, X as GithubPullRequest, Y as GivenConfirmation, Z as HIDDEN_ITEM_SOURCES, _ as HIDDEN_ITEM_TYPES, $ as HeatmapDay, a0 as HeatmapResponse, a1 as HiddenActivityItem, a2 as HiddenApp, a3 as HiddenItemSource, a4 as HiddenItemType, a5 as HideActivityItemInput, a6 as HideProfileItemInput, a7 as InboxCounts, a8 as ListFeatureAllowlistOptions, a9 as MyGithubPullRequestsResponse, aa as OrgClaimBinding, ab as OrgClaimResult, ac as OrgDomainChallengeResult, ad as OrgDomainVerifyResult, ae as OrgNotificationEmailAddResult, af as OrgNotificationEmailRemoveResult, ag as OrgProfileEcho, ah as OrgProfileUpdateResult, ai as PROFILE_COMPLETENESS_SIGNALS, aj as PdsWipeOutcome, ak as PendingConfirmation, al as PendingConfirmationsPage, am as PrimarySection, an as ProfileCompleteness, ao as ProfileCompletenessSignal, ap as ProfileIndustryInput, aq as ProfileLocationAddress, ar as ProfileLocationInput, as as ProfileSelfLocation, at as QUOTED_POSTS_BATCH_MAX, au as QuotedPostAuthor, av as QuotedPostImage, aw as QuotedPostResult, ax as QuotedPostView, ay as ReactionError, az as ReactionResult, aA as ReactionStatus, aB as RefreshOrcidPublicationsResult, aC as RefreshPdsResult, aD as RepoDeleteInput, aE as ResetProfileResult, aF as ResolveQuotedPostsOptions, aG as RoadmapVoteError, aH as RoadmapVoteResult, aI as RoadmapVoter, aJ as RoadmapVotesResponse, aK as SifaQueryKey, aL as SimilarProfile, aM as StatsResponse, aO as SuggestionProfile, aP as SuggestionsResponse, aQ as UnhideActivityItemInput, aR as UnlinkedPosition, aS as UnlinkedPositionsResult, aT as UpdateProfileOverrideInput, aU as UpdateProfileSelfInput, aV as UploadAvatarResult, aW as UploadPronunciationAudioResult, aX as VerifyExternalAccountResult, aY as WipePreview, aZ as addFeatureAllowlist, a_ as addOrgNotificationEmail, a$ as bulkHideProfileItems, b0 as bulkHideStandardPublications, b1 as bulkUnhideProfileItems, b2 as bulkUnhideStandardPublications, b3 as castRoadmapVote, b4 as checkAppAccount, b5 as confirmEndorsement, b6 as createConfirmation, b7 as createEndorsement, b8 as createExternalAccount, b9 as createProfileLocation, ba as createReaction, bb as createSkill, bc as deleteAccount, bd as deleteAvatarOverride, be as deleteExternalAccount, bf as deleteNamePronunciationAudio, bg as deleteProfileLocation, bh as deleteReaction, bi as deleteRepoRecords, bj as deleteSkill, bk as dismissConfirmation, bl as dismissUnlinkedPosition, bm as fetchAccounts, bn as fetchActivityFeed, bo as fetchActivityTeaser, bp as fetchAppsRegistry, bq as fetchExternalAccounts, br as fetchFeaturedProfile, bs as fetchFollowing, bt as fetchFollowingFeed, bu as fetchFollowingFeedVersion, bv as fetchGivenConfirmations, bw as fetchHeatmapData, bx as fetchHiddenActivityItems, by as fetchHiddenApps, bz as fetchInboxCounts, bA as fetchMyGithubPullRequests, bB as fetchMyRoadmapVotes, bC as fetchPendingConfirmations, bD as fetchProfileCompleteness, bE as fetchReactionStatus, bF as fetchRepoInventory, bG as fetchRoadmapVotes, bH as fetchSimilarProfiles, bI as fetchStats, bJ as fetchSuggestionCount, bK as fetchSuggestions, bL as fetchUnlinkedPositions, bM as fetchWipePreview, bN as followUser, bO as getAdminReviewQueues, bP as getBlueskySuggestions, bQ as getFollowers, bR as getFollowing, bS as getMutuals, bT as hideActivityItem, bU as hideOrcidPublication, bV as hideProfileItem, bW as hideSifaPublication, bX as hideStandardPublication, bY as isNewerFollowingFeed, bZ as listFeatureAllowlist, b_ as refreshOrcidPublications, b$ as refreshPds, c0 as removeFeatureAllowlist, c1 as removeOrgNotificationEmail, c2 as repoExportUrl, c3 as requestOrgDomainChallenge, c4 as resetProfile, c5 as resolveQuotedPosts, c6 as retractRoadmapVote, c7 as revokeConfirmation, c8 as setExternalAccountPrimary, c9 as setSectionPrimary, s as sifaQueryKeys, ca as submitOrgClaim, cb as switchAccount, cc as unfollowUser, cd as unhideActivityItem, ce as unhideOrcidPublication, cf as unhideProfileItem, cg as unhideSifaPublication, ch as unhideStandardPublication, ci as unsetExternalAccountPrimary, cj as unsetSectionPrimary, ck as updateExternalAccount, cl as updateOrgProfile, cm as updateProfileLocation, cn as updateProfileOverride, co as updateProfileSelf, cp as updateSkill, cr as uploadAvatar, cs as uploadNamePronunciationAudio, ct as verifyExternalAccount, cu as verifyOrgDomain } from '../../org-hxHnoBfg.js';
5
5
  import '../../index-D9GC0u__.js';
6
6
  import '../../shared-v0vl5hov.js';
7
7
  import 'zod';
8
- import '../../profile-summary-BXG--PFN.js';
8
+ import '../../profile-summary-Bj7ufSDK.js';
9
9
  import '../../follow-profile-D1l6pulB.js';
10
10
  import '../../org-settings-BShvhyFp.js';
11
11
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/org.ts"],"sourcesContent":["import { apiWrite, type ApiFetchOptions, type SifaApiConfig, type WriteResult } from '../client.js';\nimport type { OrgClaimRequestInput } from '../../schemas/write/org-claim.js';\nimport type {\n OrgDomainChallengeRequestInput,\n OrgDomainVerifyRequestInput,\n OrgNotificationEmailRequestInput,\n OrgProfileUpdateRequestInput,\n} from '../../schemas/write/org-settings.js';\n\n/** How a single entity binding was resolved during a claim. */\nexport interface OrgClaimBinding {\n entityId: number;\n entityRef: string;\n validatedBy: string | null;\n status: 'active' | 'pending';\n dissolved: boolean;\n}\n\n/** The public org-profile echo returned by claim / update endpoints (no `contact`). */\nexport interface OrgProfileEcho {\n name: string;\n description: string | null;\n website: string | null;\n entityRefs: string[];\n}\n\n/** Response body of `POST /api/org/claim`. */\nexport interface OrgClaimResult {\n orgDid: string;\n status: 'active' | 'review';\n bindings: OrgClaimBinding[];\n orgProfile: OrgProfileEcho;\n}\n\n/** Response body of `PUT /api/org/profile`. */\nexport interface OrgProfileUpdateResult {\n ok: boolean;\n orgProfile: OrgProfileEcho;\n}\n\n/** Response body of `POST /api/org/domains/challenge`. */\nexport interface OrgDomainChallengeResult {\n domain: string;\n txtRecordName: string;\n txtRecordValue: string;\n}\n\n/** Response body of `POST /api/org/domains/verify` (happy path). */\nexport interface OrgDomainVerifyResult {\n status: 'verified' | 'pending';\n domain: string;\n}\n\n/** Response body of `POST /api/org/notification-emails`. */\nexport interface OrgNotificationEmailAddResult {\n ok: boolean;\n status: string;\n}\n\n/** Response body of `DELETE /api/org/notification-emails`. */\nexport interface OrgNotificationEmailRemoveResult {\n ok: boolean;\n removed: number;\n}\n\n/**\n * Finalize an org profile claim (`POST /api/org/claim`). Auth-gated (org-claim\n * JIT scope) and floor-checked server-side. Never throws -- returns the\n * structured {@link OrgClaimResult} folded into a {@link WriteResult} on success,\n * or `{ success: false, error, pdsHost? }` on failure.\n */\nexport function submitOrgClaim(\n config: SifaApiConfig,\n body: OrgClaimRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult & Partial<OrgClaimResult>> {\n return apiWrite<Partial<OrgClaimResult>>(config, '/api/org/claim', 'POST', { body, ...options });\n}\n\n/**\n * Edit the org record (`PUT /api/org/profile`). Fresh-from-body server-side PUT\n * (a cleared optional field is dropped, no spread-merge). Never throws.\n */\nexport function updateOrgProfile(\n config: SifaApiConfig,\n body: OrgProfileUpdateRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult & Partial<OrgProfileUpdateResult>> {\n return apiWrite<Partial<OrgProfileUpdateResult>>(config, '/api/org/profile', 'PUT', {\n body,\n ...options,\n });\n}\n\n/**\n * Issue a one-time DNS TXT domain challenge (`POST /api/org/domains/challenge`).\n * Returns the TXT record name + value the org must publish. Never throws.\n */\nexport function requestOrgDomainChallenge(\n config: SifaApiConfig,\n body: OrgDomainChallengeRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult & Partial<OrgDomainChallengeResult>> {\n return apiWrite<Partial<OrgDomainChallengeResult>>(config, '/api/org/domains/challenge', 'POST', {\n body,\n ...options,\n });\n}\n\n/**\n * Verify a DNS TXT domain challenge (`POST /api/org/domains/verify`). On success\n * `status` is `verified` or `pending`. Expired / confusable / not-found map to\n * non-2xx server responses and surface as `{ success: false, error }`. Never\n * throws.\n */\nexport function verifyOrgDomain(\n config: SifaApiConfig,\n body: OrgDomainVerifyRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult & Partial<OrgDomainVerifyResult>> {\n return apiWrite<Partial<OrgDomainVerifyResult>>(config, '/api/org/domains/verify', 'POST', {\n body,\n ...options,\n });\n}\n\n/**\n * Add an org notification email (`POST /api/org/notification-emails`). The\n * address must use a domain the org controls (checked server-side). An\n * individual verification email is enqueued through the (dormant) sending\n * pipeline. Never throws.\n */\nexport function addOrgNotificationEmail(\n config: SifaApiConfig,\n body: OrgNotificationEmailRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult & Partial<OrgNotificationEmailAddResult>> {\n return apiWrite<Partial<OrgNotificationEmailAddResult>>(\n config,\n '/api/org/notification-emails',\n 'POST',\n { body, ...options },\n );\n}\n\n/**\n * Remove an org notification email (`DELETE /api/org/notification-emails`).\n * Never throws.\n */\nexport function removeOrgNotificationEmail(\n config: SifaApiConfig,\n body: OrgNotificationEmailRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>> {\n return apiWrite<Partial<OrgNotificationEmailRemoveResult>>(\n config,\n '/api/org/notification-emails',\n 'DELETE',\n { body, ...options },\n );\n}\n"],"mappings":";AAAA,SAAS,gBAA4E;AAuE9E,SAAS,eACd,QACA,MACA,UAAoD,CAAC,GACL;AAChD,SAAO,SAAkC,QAAQ,kBAAkB,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;AACjG;AAMO,SAAS,iBACd,QACA,MACA,UAAoD,CAAC,GACG;AACxD,SAAO,SAA0C,QAAQ,oBAAoB,OAAO;AAAA,IAClF;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH;AAMO,SAAS,0BACd,QACA,MACA,UAAoD,CAAC,GACK;AAC1D,SAAO,SAA4C,QAAQ,8BAA8B,QAAQ;AAAA,IAC/F;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH;AAQO,SAAS,gBACd,QACA,MACA,UAAoD,CAAC,GACE;AACvD,SAAO,SAAyC,QAAQ,2BAA2B,QAAQ;AAAA,IACzF;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH;AAQO,SAAS,wBACd,QACA,MACA,UAAoD,CAAC,GACU;AAC/D,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,EAAE,MAAM,GAAG,QAAQ;AAAA,EACrB;AACF;AAMO,SAAS,2BACd,QACA,MACA,UAAoD,CAAC,GACa;AAClE,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,EAAE,MAAM,GAAG,QAAQ;AAAA,EACrB;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/org.ts"],"sourcesContent":["import { apiWrite, type ApiFetchOptions, type SifaApiConfig, type WriteResult } from '../client.js';\nimport type { OrgClaimRequestInput } from '../../schemas/write/org-claim.js';\nimport type {\n OrgDomainChallengeRequestInput,\n OrgDomainVerifyRequestInput,\n OrgNotificationEmailRequestInput,\n OrgProfileUpdateRequestInput,\n} from '../../schemas/write/org-settings.js';\n\n/** How a single entity binding was resolved during a claim. */\nexport interface OrgClaimBinding {\n entityId: number;\n entityRef: string;\n validatedBy: string | null;\n status: 'active' | 'pending';\n dissolved: boolean;\n}\n\n/** The public org-profile echo returned by claim / update endpoints (no `contact`). */\nexport interface OrgProfileEcho {\n name: string;\n description: string | null;\n website: string | null;\n entityRefs: string[];\n}\n\n/** Response body of `POST /api/org/claim`. */\nexport interface OrgClaimResult {\n orgDid: string;\n status: 'active' | 'review';\n bindings: OrgClaimBinding[];\n orgProfile: OrgProfileEcho;\n}\n\n/** Response body of `PUT /api/org/profile`. */\nexport interface OrgProfileUpdateResult {\n ok: boolean;\n orgProfile: OrgProfileEcho;\n}\n\n/** Response body of `POST /api/org/domains/challenge`. */\nexport interface OrgDomainChallengeResult {\n domain: string;\n txtRecordName: string;\n txtRecordValue: string;\n}\n\n/** Response body of `POST /api/org/domains/verify` (happy path). */\nexport interface OrgDomainVerifyResult {\n status: 'verified' | 'pending';\n domain: string;\n}\n\n/** Response body of `POST /api/org/notification-emails`. */\nexport interface OrgNotificationEmailAddResult {\n ok: boolean;\n /**\n * Outcome of the verification email: `verification_sent` (accepted by the\n * mail provider), `sends_paused` (sending is off, nothing went out) or\n * `send_failed` (rejected or unreachable).\n */\n status: 'verification_sent' | 'sends_paused' | 'send_failed';\n}\n\n/** Response body of `DELETE /api/org/notification-emails`. */\nexport interface OrgNotificationEmailRemoveResult {\n ok: boolean;\n removed: number;\n}\n\n/**\n * Finalize an org profile claim (`POST /api/org/claim`). Auth-gated (org-claim\n * JIT scope) and floor-checked server-side. Never throws -- returns the\n * structured {@link OrgClaimResult} folded into a {@link WriteResult} on success,\n * or `{ success: false, error, pdsHost? }` on failure.\n */\nexport function submitOrgClaim(\n config: SifaApiConfig,\n body: OrgClaimRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult<Partial<OrgClaimResult>>> {\n return apiWrite<Partial<OrgClaimResult>>(config, '/api/org/claim', 'POST', { body, ...options });\n}\n\n/**\n * Edit the org record (`PUT /api/org/profile`). Fresh-from-body server-side PUT\n * (a cleared optional field is dropped, no spread-merge). Never throws.\n */\nexport function updateOrgProfile(\n config: SifaApiConfig,\n body: OrgProfileUpdateRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult<Partial<OrgProfileUpdateResult>>> {\n return apiWrite<Partial<OrgProfileUpdateResult>>(config, '/api/org/profile', 'PUT', {\n body,\n ...options,\n });\n}\n\n/**\n * Issue a one-time DNS TXT domain challenge (`POST /api/org/domains/challenge`).\n * Returns the TXT record name + value the org must publish. Never throws.\n */\nexport function requestOrgDomainChallenge(\n config: SifaApiConfig,\n body: OrgDomainChallengeRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult<Partial<OrgDomainChallengeResult>>> {\n return apiWrite<Partial<OrgDomainChallengeResult>>(config, '/api/org/domains/challenge', 'POST', {\n body,\n ...options,\n });\n}\n\n/**\n * Verify a DNS TXT domain challenge (`POST /api/org/domains/verify`). On success\n * `status` is `verified` or `pending`. Expired / confusable / not-found map to\n * non-2xx server responses and surface as `{ success: false, error }`. Never\n * throws.\n */\nexport function verifyOrgDomain(\n config: SifaApiConfig,\n body: OrgDomainVerifyRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult<Partial<OrgDomainVerifyResult>>> {\n return apiWrite<Partial<OrgDomainVerifyResult>>(config, '/api/org/domains/verify', 'POST', {\n body,\n ...options,\n });\n}\n\n/**\n * Add an org notification email (`POST /api/org/notification-emails`). The\n * address must use a domain the org controls (checked server-side). An\n * individual verification email is enqueued through the (dormant) sending\n * pipeline. Never throws.\n */\nexport function addOrgNotificationEmail(\n config: SifaApiConfig,\n body: OrgNotificationEmailRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult<Partial<OrgNotificationEmailAddResult>>> {\n return apiWrite<Partial<OrgNotificationEmailAddResult>>(\n config,\n '/api/org/notification-emails',\n 'POST',\n { body, ...options },\n );\n}\n\n/**\n * Remove an org notification email (`DELETE /api/org/notification-emails`).\n * Never throws.\n */\nexport function removeOrgNotificationEmail(\n config: SifaApiConfig,\n body: OrgNotificationEmailRequestInput,\n options: Omit<ApiFetchOptions, 'method' | 'body'> = {},\n): Promise<WriteResult<Partial<OrgNotificationEmailRemoveResult>>> {\n return apiWrite<Partial<OrgNotificationEmailRemoveResult>>(\n config,\n '/api/org/notification-emails',\n 'DELETE',\n { body, ...options },\n );\n}\n"],"mappings":";AAAA,SAAS,gBAA4E;AA4E9E,SAAS,eACd,QACA,MACA,UAAoD,CAAC,GACN;AAC/C,SAAO,SAAkC,QAAQ,kBAAkB,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;AACjG;AAMO,SAAS,iBACd,QACA,MACA,UAAoD,CAAC,GACE;AACvD,SAAO,SAA0C,QAAQ,oBAAoB,OAAO;AAAA,IAClF;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH;AAMO,SAAS,0BACd,QACA,MACA,UAAoD,CAAC,GACI;AACzD,SAAO,SAA4C,QAAQ,8BAA8B,QAAQ;AAAA,IAC/F;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH;AAQO,SAAS,gBACd,QACA,MACA,UAAoD,CAAC,GACC;AACtD,SAAO,SAAyC,QAAQ,2BAA2B,QAAQ;AAAA,IACzF;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH;AAQO,SAAS,wBACd,QACA,MACA,UAAoD,CAAC,GACS;AAC9D,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,EAAE,MAAM,GAAG,QAAQ;AAAA,EACrB;AACF;AAMO,SAAS,2BACd,QACA,MACA,UAAoD,CAAC,GACY;AACjE,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,EAAE,MAAM,GAAG,QAAQ;AAAA,EACrB;AACF;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/profile-mutations.ts"],"sourcesContent":["import { apiWrite, type ApiFetchOptions, type SifaApiConfig, type WriteResult } from '../client.js';\n\n/** Industry/domain entry on the profile self record. */\nexport interface ProfileIndustryInput {\n industry: string;\n domain?: string;\n}\n\n/**\n * Location payload accepted by `updateProfileSelf`.\n *\n * Accepts both shapes during the community.lexicon.location.address\n * migration. Prefer `locality` (new) over `city` (legacy) when sending.\n * The API's locationSchema is a Zod union that resolves either input.\n */\nexport interface ProfileSelfLocation {\n country: string;\n countryCode?: string;\n region?: string;\n city?: string;\n locality?: string;\n}\n\n/** Body accepted by {@link updateProfileSelf}. */\nexport interface UpdateProfileSelfInput {\n headline?: string;\n about?: string;\n /** Schema.org Person.givenName from id.sifa.profile.self.givenName. */\n givenName?: string;\n /** Schema.org Person.familyName from id.sifa.profile.self.familyName. */\n familyName?: string;\n /** Free-form phonetic respelling of the name from id.sifa.profile.self.namePronunciation. */\n namePronunciation?: string;\n industries?: ProfileIndustryInput[];\n location?: ProfileSelfLocation;\n website?: string;\n openTo?: string[];\n preferredWorkplace?: string[];\n availableFromUtc?: number;\n availableToUtc?: number;\n}\n\n/** Update the authenticated user's `id.sifa.profile.self` record. */\nexport function updateProfileSelf(\n config: SifaApiConfig,\n data: UpdateProfileSelfInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/self', 'PUT', { body: data, ...options });\n}\n\n/** Body accepted by {@link updateProfileOverride}. */\nexport interface UpdateProfileOverrideInput {\n headline?: string | null;\n about?: string | null;\n displayName?: string | null;\n pronouns?: string | null;\n}\n\n/**\n * Override aggregated profile fields with sifa-specific values. `null`\n * clears the override and falls back to the upstream PDS value.\n */\nexport function updateProfileOverride(\n config: SifaApiConfig,\n data: UpdateProfileOverrideInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/override', 'PUT', { body: data, ...options });\n}\n\n/** Extended result for {@link refreshPds}. */\nexport interface RefreshPdsResult extends WriteResult {\n displayName?: string | null;\n avatar?: string | null;\n}\n\n/**\n * Re-pull the authenticated user's `app.bsky.actor.profile` from their\n * PDS. Returns the freshly resolved `displayName` and `avatar` on\n * success so the UI can update without a full profile refetch.\n */\nexport function refreshPds(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<RefreshPdsResult> {\n return apiWrite<{ displayName?: string | null; avatar?: string | null }>(\n config,\n '/api/profile/refresh-pds',\n 'POST',\n options,\n );\n}\n\n/** Extended result for {@link uploadAvatar}. */\nexport interface UploadAvatarResult extends WriteResult {\n /** Publicly accessible URL of the newly uploaded avatar. */\n url?: string;\n}\n\n/**\n * Upload a new avatar via `multipart/form-data`. Pass either a `File`\n * (browser) or any `Blob` (Expo, node). The SDK leaves `Content-Type`\n * unset so the runtime can set the multipart boundary automatically.\n *\n * Never throws -- inspect `result.success` and `result.url`.\n */\nexport async function uploadAvatar(\n config: SifaApiConfig,\n file: Blob,\n options: ApiFetchOptions = {},\n): Promise<UploadAvatarResult> {\n const fetchFn = config.fetch ?? globalThis.fetch;\n const url = `${config.baseUrl}/api/profile/avatar`;\n const formData = new FormData();\n formData.append('file', file);\n\n try {\n const res = await fetchFn(url, {\n method: 'POST',\n credentials: options.credentials ?? 'include',\n body: formData,\n signal: options.signal ?? AbortSignal.timeout(options.timeoutMs ?? 30_000),\n headers: options.headers,\n });\n if (!res.ok) {\n const errBody = (await res.json().catch(() => ({}))) as {\n message?: string;\n pdsHost?: string;\n };\n const msg = errBody.message ?? `Request failed (${res.status})`;\n const pdsHost = errBody.pdsHost;\n return { success: false, error: msg, ...(pdsHost ? { pdsHost } : {}) };\n }\n const data = (await res.json()) as { url: string };\n return { success: true, url: data.url };\n } catch {\n return { success: false, error: 'Network error' };\n }\n}\n\n/** Delete the authenticated user's avatar override (revert to PDS avatar). */\nexport function deleteAvatarOverride(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/avatar', 'DELETE', options);\n}\n\n/** Extended result for {@link uploadNamePronunciationAudio}. */\nexport interface UploadPronunciationAudioResult extends WriteResult {\n /** Publicly accessible URL of the newly uploaded audio clip. */\n url?: string;\n}\n\n/**\n * Upload a name-pronunciation audio clip via `multipart/form-data`. Pass a\n * `File` (browser) or any `Blob` (Expo, node). The SDK leaves `Content-Type`\n * unset so the runtime sets the multipart boundary automatically.\n *\n * Never throws -- inspect `result.success` and `result.url`.\n */\nexport async function uploadNamePronunciationAudio(\n config: SifaApiConfig,\n file: Blob,\n options: ApiFetchOptions = {},\n): Promise<UploadPronunciationAudioResult> {\n const fetchFn = config.fetch ?? globalThis.fetch;\n const url = `${config.baseUrl}/api/profile/pronunciation-audio`;\n const formData = new FormData();\n formData.append('file', file);\n\n try {\n const res = await fetchFn(url, {\n method: 'POST',\n credentials: options.credentials ?? 'include',\n body: formData,\n signal: options.signal ?? AbortSignal.timeout(options.timeoutMs ?? 30_000),\n headers: options.headers,\n });\n if (!res.ok) {\n const errBody = (await res.json().catch(() => ({}))) as {\n message?: string;\n pdsHost?: string;\n };\n const msg = errBody.message ?? `Request failed (${res.status})`;\n const pdsHost = errBody.pdsHost;\n return { success: false, error: msg, ...(pdsHost ? { pdsHost } : {}) };\n }\n const data = (await res.json()) as { url: string };\n return { success: true, url: data.url };\n } catch {\n return { success: false, error: 'Network error' };\n }\n}\n\n/** Delete the name-pronunciation audio clip from the user's profile. */\nexport function deleteNamePronunciationAudio(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/pronunciation-audio', 'DELETE', options);\n}\n"],"mappings":";AAAA,SAAS,gBAA4E;AA2C9E,SAAS,kBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,qBAAqB,OAAO,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AAChF;AAcO,SAAS,sBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,yBAAyB,OAAO,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AACpF;AAaO,SAAS,WACd,QACA,UAA2B,CAAC,GACD;AAC3B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAeA,eAAsB,aACpB,QACA,MACA,UAA2B,CAAC,GACC;AAC7B,QAAM,UAAU,OAAO,SAAS,WAAW;AAC3C,QAAM,MAAM,GAAG,OAAO,OAAO;AAC7B,QAAM,WAAW,IAAI,SAAS;AAC9B,WAAS,OAAO,QAAQ,IAAI;AAE5B,MAAI;AACF,UAAM,MAAM,MAAM,QAAQ,KAAK;AAAA,MAC7B,QAAQ;AAAA,MACR,aAAa,QAAQ,eAAe;AAAA,MACpC,MAAM;AAAA,MACN,QAAQ,QAAQ,UAAU,YAAY,QAAQ,QAAQ,aAAa,GAAM;AAAA,MACzE,SAAS,QAAQ;AAAA,IACnB,CAAC;AACD,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,UAAW,MAAM,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC,EAAE;AAIlD,YAAM,MAAM,QAAQ,WAAW,mBAAmB,IAAI,MAAM;AAC5D,YAAM,UAAU,QAAQ;AACxB,aAAO,EAAE,SAAS,OAAO,OAAO,KAAK,GAAI,UAAU,EAAE,QAAQ,IAAI,CAAC,EAAG;AAAA,IACvE;AACA,UAAM,OAAQ,MAAM,IAAI,KAAK;AAC7B,WAAO,EAAE,SAAS,MAAM,KAAK,KAAK,IAAI;AAAA,EACxC,QAAQ;AACN,WAAO,EAAE,SAAS,OAAO,OAAO,gBAAgB;AAAA,EAClD;AACF;AAGO,SAAS,qBACd,QACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,uBAAuB,UAAU,OAAO;AAClE;AAeA,eAAsB,6BACpB,QACA,MACA,UAA2B,CAAC,GACa;AACzC,QAAM,UAAU,OAAO,SAAS,WAAW;AAC3C,QAAM,MAAM,GAAG,OAAO,OAAO;AAC7B,QAAM,WAAW,IAAI,SAAS;AAC9B,WAAS,OAAO,QAAQ,IAAI;AAE5B,MAAI;AACF,UAAM,MAAM,MAAM,QAAQ,KAAK;AAAA,MAC7B,QAAQ;AAAA,MACR,aAAa,QAAQ,eAAe;AAAA,MACpC,MAAM;AAAA,MACN,QAAQ,QAAQ,UAAU,YAAY,QAAQ,QAAQ,aAAa,GAAM;AAAA,MACzE,SAAS,QAAQ;AAAA,IACnB,CAAC;AACD,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,UAAW,MAAM,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC,EAAE;AAIlD,YAAM,MAAM,QAAQ,WAAW,mBAAmB,IAAI,MAAM;AAC5D,YAAM,UAAU,QAAQ;AACxB,aAAO,EAAE,SAAS,OAAO,OAAO,KAAK,GAAI,UAAU,EAAE,QAAQ,IAAI,CAAC,EAAG;AAAA,IACvE;AACA,UAAM,OAAQ,MAAM,IAAI,KAAK;AAC7B,WAAO,EAAE,SAAS,MAAM,KAAK,KAAK,IAAI;AAAA,EACxC,QAAQ;AACN,WAAO,EAAE,SAAS,OAAO,OAAO,gBAAgB;AAAA,EAClD;AACF;AAGO,SAAS,6BACd,QACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,oCAAoC,UAAU,OAAO;AAC/E;","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/profile-mutations.ts"],"sourcesContent":["import { apiWrite, type ApiFetchOptions, type SifaApiConfig, type WriteResult } from '../client.js';\n\n/** Industry/domain entry on the profile self record. */\nexport interface ProfileIndustryInput {\n industry: string;\n domain?: string;\n}\n\n/**\n * Location payload accepted by `updateProfileSelf`.\n *\n * Accepts both shapes during the community.lexicon.location.address\n * migration. Prefer `locality` (new) over `city` (legacy) when sending.\n * The API's locationSchema is a Zod union that resolves either input.\n */\nexport interface ProfileSelfLocation {\n country: string;\n countryCode?: string;\n region?: string;\n city?: string;\n locality?: string;\n}\n\n/** Body accepted by {@link updateProfileSelf}. */\nexport interface UpdateProfileSelfInput {\n headline?: string;\n about?: string;\n /** Schema.org Person.givenName from id.sifa.profile.self.givenName. */\n givenName?: string;\n /** Schema.org Person.familyName from id.sifa.profile.self.familyName. */\n familyName?: string;\n /** Free-form phonetic respelling of the name from id.sifa.profile.self.namePronunciation. */\n namePronunciation?: string;\n industries?: ProfileIndustryInput[];\n location?: ProfileSelfLocation;\n website?: string;\n openTo?: string[];\n preferredWorkplace?: string[];\n availableFromUtc?: number;\n availableToUtc?: number;\n}\n\n/** Update the authenticated user's `id.sifa.profile.self` record. */\nexport function updateProfileSelf(\n config: SifaApiConfig,\n data: UpdateProfileSelfInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/self', 'PUT', { body: data, ...options });\n}\n\n/** Body accepted by {@link updateProfileOverride}. */\nexport interface UpdateProfileOverrideInput {\n headline?: string | null;\n about?: string | null;\n displayName?: string | null;\n pronouns?: string | null;\n}\n\n/**\n * Override aggregated profile fields with sifa-specific values. `null`\n * clears the override and falls back to the upstream PDS value.\n */\nexport function updateProfileOverride(\n config: SifaApiConfig,\n data: UpdateProfileOverrideInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/override', 'PUT', { body: data, ...options });\n}\n\n/** Extended result for {@link refreshPds}. */\nexport type RefreshPdsResult = WriteResult<{\n displayName?: string | null;\n avatar?: string | null;\n}>;\n\n/**\n * Re-pull the authenticated user's `app.bsky.actor.profile` from their\n * PDS. Returns the freshly resolved `displayName` and `avatar` on\n * success so the UI can update without a full profile refetch.\n */\nexport function refreshPds(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<RefreshPdsResult> {\n return apiWrite<{ displayName?: string | null; avatar?: string | null }>(\n config,\n '/api/profile/refresh-pds',\n 'POST',\n options,\n );\n}\n\n/** Extended result for {@link uploadAvatar}. */\nexport type UploadAvatarResult = WriteResult<{\n /** Publicly accessible URL of the newly uploaded avatar. */\n url?: string;\n}>;\n\n/**\n * Upload a new avatar via `multipart/form-data`. Pass either a `File`\n * (browser) or any `Blob` (Expo, node). The SDK leaves `Content-Type`\n * unset so the runtime can set the multipart boundary automatically.\n *\n * Never throws -- inspect `result.success` and `result.url`.\n */\nexport async function uploadAvatar(\n config: SifaApiConfig,\n file: Blob,\n options: ApiFetchOptions = {},\n): Promise<UploadAvatarResult> {\n const fetchFn = config.fetch ?? globalThis.fetch;\n const url = `${config.baseUrl}/api/profile/avatar`;\n const formData = new FormData();\n formData.append('file', file);\n\n try {\n const res = await fetchFn(url, {\n method: 'POST',\n credentials: options.credentials ?? 'include',\n body: formData,\n signal: options.signal ?? AbortSignal.timeout(options.timeoutMs ?? 30_000),\n headers: options.headers,\n });\n if (!res.ok) {\n const errBody = (await res.json().catch(() => ({}))) as {\n message?: string;\n pdsHost?: string;\n };\n const msg = errBody.message ?? `Request failed (${res.status})`;\n const pdsHost = errBody.pdsHost;\n return { success: false, error: msg, ...(pdsHost ? { pdsHost } : {}) };\n }\n const data = (await res.json()) as { url: string };\n return { success: true, url: data.url };\n } catch {\n return { success: false, error: 'Network error' };\n }\n}\n\n/** Delete the authenticated user's avatar override (revert to PDS avatar). */\nexport function deleteAvatarOverride(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/avatar', 'DELETE', options);\n}\n\n/** Extended result for {@link uploadNamePronunciationAudio}. */\nexport type UploadPronunciationAudioResult = WriteResult<{\n /** Publicly accessible URL of the newly uploaded audio clip. */\n url?: string;\n}>;\n\n/**\n * Upload a name-pronunciation audio clip via `multipart/form-data`. Pass a\n * `File` (browser) or any `Blob` (Expo, node). The SDK leaves `Content-Type`\n * unset so the runtime sets the multipart boundary automatically.\n *\n * Never throws -- inspect `result.success` and `result.url`.\n */\nexport async function uploadNamePronunciationAudio(\n config: SifaApiConfig,\n file: Blob,\n options: ApiFetchOptions = {},\n): Promise<UploadPronunciationAudioResult> {\n const fetchFn = config.fetch ?? globalThis.fetch;\n const url = `${config.baseUrl}/api/profile/pronunciation-audio`;\n const formData = new FormData();\n formData.append('file', file);\n\n try {\n const res = await fetchFn(url, {\n method: 'POST',\n credentials: options.credentials ?? 'include',\n body: formData,\n signal: options.signal ?? AbortSignal.timeout(options.timeoutMs ?? 30_000),\n headers: options.headers,\n });\n if (!res.ok) {\n const errBody = (await res.json().catch(() => ({}))) as {\n message?: string;\n pdsHost?: string;\n };\n const msg = errBody.message ?? `Request failed (${res.status})`;\n const pdsHost = errBody.pdsHost;\n return { success: false, error: msg, ...(pdsHost ? { pdsHost } : {}) };\n }\n const data = (await res.json()) as { url: string };\n return { success: true, url: data.url };\n } catch {\n return { success: false, error: 'Network error' };\n }\n}\n\n/** Delete the name-pronunciation audio clip from the user's profile. */\nexport function deleteNamePronunciationAudio(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/pronunciation-audio', 'DELETE', options);\n}\n"],"mappings":";AAAA,SAAS,gBAA4E;AA2C9E,SAAS,kBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,qBAAqB,OAAO,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AAChF;AAcO,SAAS,sBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,yBAAyB,OAAO,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AACpF;AAaO,SAAS,WACd,QACA,UAA2B,CAAC,GACD;AAC3B,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAeA,eAAsB,aACpB,QACA,MACA,UAA2B,CAAC,GACC;AAC7B,QAAM,UAAU,OAAO,SAAS,WAAW;AAC3C,QAAM,MAAM,GAAG,OAAO,OAAO;AAC7B,QAAM,WAAW,IAAI,SAAS;AAC9B,WAAS,OAAO,QAAQ,IAAI;AAE5B,MAAI;AACF,UAAM,MAAM,MAAM,QAAQ,KAAK;AAAA,MAC7B,QAAQ;AAAA,MACR,aAAa,QAAQ,eAAe;AAAA,MACpC,MAAM;AAAA,MACN,QAAQ,QAAQ,UAAU,YAAY,QAAQ,QAAQ,aAAa,GAAM;AAAA,MACzE,SAAS,QAAQ;AAAA,IACnB,CAAC;AACD,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,UAAW,MAAM,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC,EAAE;AAIlD,YAAM,MAAM,QAAQ,WAAW,mBAAmB,IAAI,MAAM;AAC5D,YAAM,UAAU,QAAQ;AACxB,aAAO,EAAE,SAAS,OAAO,OAAO,KAAK,GAAI,UAAU,EAAE,QAAQ,IAAI,CAAC,EAAG;AAAA,IACvE;AACA,UAAM,OAAQ,MAAM,IAAI,KAAK;AAC7B,WAAO,EAAE,SAAS,MAAM,KAAK,KAAK,IAAI;AAAA,EACxC,QAAQ;AACN,WAAO,EAAE,SAAS,OAAO,OAAO,gBAAgB;AAAA,EAClD;AACF;AAGO,SAAS,qBACd,QACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,uBAAuB,UAAU,OAAO;AAClE;AAeA,eAAsB,6BACpB,QACA,MACA,UAA2B,CAAC,GACa;AACzC,QAAM,UAAU,OAAO,SAAS,WAAW;AAC3C,QAAM,MAAM,GAAG,OAAO,OAAO;AAC7B,QAAM,WAAW,IAAI,SAAS;AAC9B,WAAS,OAAO,QAAQ,IAAI;AAE5B,MAAI;AACF,UAAM,MAAM,MAAM,QAAQ,KAAK;AAAA,MAC7B,QAAQ;AAAA,MACR,aAAa,QAAQ,eAAe;AAAA,MACpC,MAAM;AAAA,MACN,QAAQ,QAAQ,UAAU,YAAY,QAAQ,QAAQ,aAAa,GAAM;AAAA,MACzE,SAAS,QAAQ;AAAA,IACnB,CAAC;AACD,QAAI,CAAC,IAAI,IAAI;AACX,YAAM,UAAW,MAAM,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC,EAAE;AAIlD,YAAM,MAAM,QAAQ,WAAW,mBAAmB,IAAI,MAAM;AAC5D,YAAM,UAAU,QAAQ;AACxB,aAAO,EAAE,SAAS,OAAO,OAAO,KAAK,GAAI,UAAU,EAAE,QAAQ,IAAI,CAAC,EAAG;AAAA,IACvE;AACA,UAAM,OAAQ,MAAM,IAAI,KAAK;AAC7B,WAAO,EAAE,SAAS,MAAM,KAAK,KAAK,IAAI;AAAA,EACxC,QAAQ;AACN,WAAO,EAAE,SAAS,OAAO,OAAO,gBAAgB;AAAA,EAClD;AACF;AAGO,SAAS,6BACd,QACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,oCAAoC,UAAU,OAAO;AAC/E;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/publications.ts"],"sourcesContent":["import { apiWrite, type ApiFetchOptions, type SifaApiConfig, type WriteResult } from '../client.js';\n\n/** Extended result for {@link refreshOrcidPublications}. */\nexport interface RefreshOrcidPublicationsResult extends WriteResult {\n added?: number;\n removed?: number;\n}\n\n/**\n * Hide an ORCID-imported publication from the user's profile. The\n * `putCode` is the ORCID-side identifier; the underlying record stays\n * in the index, only its display is suppressed.\n */\nexport function hideOrcidPublication(\n config: SifaApiConfig,\n putCode: number,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/orcid-publications/${putCode}/hide`, 'POST', options);\n}\n\n/** Restore a previously-hidden ORCID publication. */\nexport function unhideOrcidPublication(\n config: SifaApiConfig,\n putCode: number,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/orcid-publications/${putCode}/hide`, 'DELETE', options);\n}\n\n/** Hide a standard (auto-imported) publication by its AT URI. */\nexport function hideStandardPublication(\n config: SifaApiConfig,\n uri: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(\n config,\n `/api/profile/standard-publications/${encodeURIComponent(uri)}/hide`,\n 'POST',\n options,\n );\n}\n\n/** Restore a previously-hidden standard publication. */\nexport function unhideStandardPublication(\n config: SifaApiConfig,\n uri: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(\n config,\n `/api/profile/standard-publications/${encodeURIComponent(uri)}/hide`,\n 'DELETE',\n options,\n );\n}\n\n/** Bulk-hide standard publications by AT URI list. */\nexport function bulkHideStandardPublications(\n config: SifaApiConfig,\n uris: string[],\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/standard-publications/bulk-hide', 'POST', {\n body: { uris },\n ...options,\n });\n}\n\n/** Bulk-unhide standard publications by AT URI list. */\nexport function bulkUnhideStandardPublications(\n config: SifaApiConfig,\n uris: string[],\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/standard-publications/bulk-hide', 'DELETE', {\n body: { uris },\n ...options,\n });\n}\n\n/** Hide an `id.sifa.profile.publication` (user-authored publication record). */\nexport function hideSifaPublication(\n config: SifaApiConfig,\n rkey: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/publications/${rkey}/hide`, 'POST', options);\n}\n\n/** Restore a previously-hidden Sifa publication. */\nexport function unhideSifaPublication(\n config: SifaApiConfig,\n rkey: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/publications/${rkey}/hide`, 'DELETE', options);\n}\n\n/**\n * Re-pull the authenticated user's ORCID publications. Returns counts\n * of added and removed records. The server returns `{ error: '...' }`\n * inline (not via HTTP status) on quota / linkage failures; the SDK\n * folds that into `{ success: false, error }` to keep the contract\n * consistent with other mutations.\n */\nexport async function refreshOrcidPublications(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<RefreshOrcidPublicationsResult> {\n const result = await apiWrite<{ added?: number; removed?: number; error?: string }>(\n config,\n '/api/profile/orcid-publications/refresh',\n 'POST',\n { body: {}, ...options },\n );\n if (result.success && result.error) {\n return { success: false, error: result.error };\n }\n return result;\n}\n"],"mappings":";AAAA,SAAS,gBAA4E;AAa9E,SAAS,qBACd,QACA,SACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,mCAAmC,OAAO,SAAS,QAAQ,OAAO;AAC5F;AAGO,SAAS,uBACd,QACA,SACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,mCAAmC,OAAO,SAAS,UAAU,OAAO;AAC9F;AAGO,SAAS,wBACd,QACA,KACA,UAA2B,CAAC,GACN;AACtB,SAAO;AAAA,IACL;AAAA,IACA,sCAAsC,mBAAmB,GAAG,CAAC;AAAA,IAC7D;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,0BACd,QACA,KACA,UAA2B,CAAC,GACN;AACtB,SAAO;AAAA,IACL;AAAA,IACA,sCAAsC,mBAAmB,GAAG,CAAC;AAAA,IAC7D;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,6BACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,gDAAgD,QAAQ;AAAA,IAC9E,MAAM,EAAE,KAAK;AAAA,IACb,GAAG;AAAA,EACL,CAAC;AACH;AAGO,SAAS,+BACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,gDAAgD,UAAU;AAAA,IAChF,MAAM,EAAE,KAAK;AAAA,IACb,GAAG;AAAA,EACL,CAAC;AACH;AAGO,SAAS,oBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,6BAA6B,IAAI,SAAS,QAAQ,OAAO;AACnF;AAGO,SAAS,sBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,6BAA6B,IAAI,SAAS,UAAU,OAAO;AACrF;AASA,eAAsB,yBACpB,QACA,UAA2B,CAAC,GACa;AACzC,QAAM,SAAS,MAAM;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,IACA,EAAE,MAAM,CAAC,GAAG,GAAG,QAAQ;AAAA,EACzB;AACA,MAAI,OAAO,WAAW,OAAO,OAAO;AAClC,WAAO,EAAE,SAAS,OAAO,OAAO,OAAO,MAAM;AAAA,EAC/C;AACA,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/publications.ts"],"sourcesContent":["import { apiWrite, type ApiFetchOptions, type SifaApiConfig, type WriteResult } from '../client.js';\n\n/** Extended result for {@link refreshOrcidPublications}. */\nexport type RefreshOrcidPublicationsResult = WriteResult<{\n added?: number;\n removed?: number;\n}>;\n\n/**\n * Hide an ORCID-imported publication from the user's profile. The\n * `putCode` is the ORCID-side identifier; the underlying record stays\n * in the index, only its display is suppressed.\n */\nexport function hideOrcidPublication(\n config: SifaApiConfig,\n putCode: number,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/orcid-publications/${putCode}/hide`, 'POST', options);\n}\n\n/** Restore a previously-hidden ORCID publication. */\nexport function unhideOrcidPublication(\n config: SifaApiConfig,\n putCode: number,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/orcid-publications/${putCode}/hide`, 'DELETE', options);\n}\n\n/** Hide a standard (auto-imported) publication by its AT URI. */\nexport function hideStandardPublication(\n config: SifaApiConfig,\n uri: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(\n config,\n `/api/profile/standard-publications/${encodeURIComponent(uri)}/hide`,\n 'POST',\n options,\n );\n}\n\n/** Restore a previously-hidden standard publication. */\nexport function unhideStandardPublication(\n config: SifaApiConfig,\n uri: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(\n config,\n `/api/profile/standard-publications/${encodeURIComponent(uri)}/hide`,\n 'DELETE',\n options,\n );\n}\n\n/** Bulk-hide standard publications by AT URI list. */\nexport function bulkHideStandardPublications(\n config: SifaApiConfig,\n uris: string[],\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/standard-publications/bulk-hide', 'POST', {\n body: { uris },\n ...options,\n });\n}\n\n/** Bulk-unhide standard publications by AT URI list. */\nexport function bulkUnhideStandardPublications(\n config: SifaApiConfig,\n uris: string[],\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/profile/standard-publications/bulk-hide', 'DELETE', {\n body: { uris },\n ...options,\n });\n}\n\n/** Hide an `id.sifa.profile.publication` (user-authored publication record). */\nexport function hideSifaPublication(\n config: SifaApiConfig,\n rkey: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/publications/${rkey}/hide`, 'POST', options);\n}\n\n/** Restore a previously-hidden Sifa publication. */\nexport function unhideSifaPublication(\n config: SifaApiConfig,\n rkey: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/publications/${rkey}/hide`, 'DELETE', options);\n}\n\n/**\n * Re-pull the authenticated user's ORCID publications. Returns counts\n * of added and removed records. The server returns `{ error: '...' }`\n * inline (not via HTTP status) on quota / linkage failures; the SDK\n * folds that into `{ success: false, error }` to keep the contract\n * consistent with other mutations.\n */\nexport async function refreshOrcidPublications(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<RefreshOrcidPublicationsResult> {\n const result = await apiWrite<{ added?: number; removed?: number; error?: string }>(\n config,\n '/api/profile/orcid-publications/refresh',\n 'POST',\n { body: {}, ...options },\n );\n if (result.success && result.error) {\n return { success: false, error: result.error };\n }\n return result;\n}\n"],"mappings":";AAAA,SAAS,gBAA4E;AAa9E,SAAS,qBACd,QACA,SACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,mCAAmC,OAAO,SAAS,QAAQ,OAAO;AAC5F;AAGO,SAAS,uBACd,QACA,SACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,mCAAmC,OAAO,SAAS,UAAU,OAAO;AAC9F;AAGO,SAAS,wBACd,QACA,KACA,UAA2B,CAAC,GACN;AACtB,SAAO;AAAA,IACL;AAAA,IACA,sCAAsC,mBAAmB,GAAG,CAAC;AAAA,IAC7D;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,0BACd,QACA,KACA,UAA2B,CAAC,GACN;AACtB,SAAO;AAAA,IACL;AAAA,IACA,sCAAsC,mBAAmB,GAAG,CAAC;AAAA,IAC7D;AAAA,IACA;AAAA,EACF;AACF;AAGO,SAAS,6BACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,gDAAgD,QAAQ;AAAA,IAC9E,MAAM,EAAE,KAAK;AAAA,IACb,GAAG;AAAA,EACL,CAAC;AACH;AAGO,SAAS,+BACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,gDAAgD,UAAU;AAAA,IAChF,MAAM,EAAE,KAAK;AAAA,IACb,GAAG;AAAA,EACL,CAAC;AACH;AAGO,SAAS,oBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,6BAA6B,IAAI,SAAS,QAAQ,OAAO;AACnF;AAGO,SAAS,sBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,6BAA6B,IAAI,SAAS,UAAU,OAAO;AACrF;AASA,eAAsB,yBACpB,QACA,UAA2B,CAAC,GACa;AACzC,QAAM,SAAS,MAAM;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,IACA,EAAE,MAAM,CAAC,GAAG,GAAG,QAAQ;AAAA,EACzB;AACA,MAAI,OAAO,WAAW,OAAO,OAAO;AAClC,WAAO,EAAE,SAAS,OAAO,OAAO,OAAO,MAAM;AAAA,EAC/C;AACA,SAAO;AACT;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/repo-inventory.ts"],"sourcesContent":["import type { RepoDeleteResult, RepoInventory } from '../../repo/types.js';\nimport { apiFetch, apiWrite, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/**\n * Read what the user's PDS actually holds under id.sifa.*.\n *\n * A failure is not flattened into an empty inventory. Zero records reads as\n * \"Sifa has stored nothing about you\", and a request that never arrived must\n * not be allowed to say that. Let it throw.\n */\nexport function fetchRepoInventory(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<RepoInventory> {\n return apiFetch<RepoInventory>(config, '/api/me/repo-inventory', {\n credentials: 'include',\n ...options,\n });\n}\n\nexport interface RepoDeleteInput {\n collection: string;\n /** The records to remove. Omit and set `all` to remove the whole collection. */\n rkeys?: string[];\n /**\n * Remove every record in the collection, including ones written between the\n * inventory read and this call. A UI offering \"delete all of X\" must send\n * this rather than the rkeys it happened to see, or a record created in\n * between silently survives a delete the user believes was complete.\n */\n all?: boolean;\n}\n\n/**\n * Delete records from the user's own repo.\n *\n * The returned `success` means the request was accepted, NOT that the records\n * are gone: read `results` for that, per record. `needsScopeUpgrade` means\n * nothing was attempted and the user has to grant the scope first.\n *\n * Destructive and not undoable -- a deleted record's CID cannot be restored.\n * The server enforces the id.sifa.* boundary and the session check; the SDK\n * adds no confirmation step, so wrap call sites in one.\n */\nexport function deleteRepoRecords(\n config: SifaApiConfig,\n input: RepoDeleteInput,\n options: ApiFetchOptions = {},\n): Promise<RepoDeleteResult & { success: boolean; error?: string }> {\n return apiWrite<RepoDeleteResult>(config, '/api/me/repo-delete', 'POST', {\n body: input,\n ...options,\n });\n}\n\n/**\n * URL of the raw-record download.\n *\n * A URL rather than a fetcher: the response is a file the browser saves, and\n * routing it through fetch would buffer the whole repo in memory to hand it\n * straight back to a download anchor.\n */\nexport function repoExportUrl(config: SifaApiConfig): string {\n return `${config.baseUrl}/api/me/repo-export`;\n}\n"],"mappings":";AACA,SAAS,UAAU,gBAA0D;AAStE,SAAS,mBACd,QACA,UAA2B,CAAC,GACJ;AACxB,SAAO,SAAwB,QAAQ,0BAA0B;AAAA,IAC/D,aAAa;AAAA,IACb,GAAG;AAAA,EACL,CAAC;AACH;AA0BO,SAAS,kBACd,QACA,OACA,UAA2B,CAAC,GACsC;AAClE,SAAO,SAA2B,QAAQ,uBAAuB,QAAQ;AAAA,IACvE,MAAM;AAAA,IACN,GAAG;AAAA,EACL,CAAC;AACH;AASO,SAAS,cAAc,QAA+B;AAC3D,SAAO,GAAG,OAAO,OAAO;AAC1B;","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/repo-inventory.ts"],"sourcesContent":["import type { RepoDeleteResult, RepoInventory } from '../../repo/types.js';\nimport { apiFetch, apiWrite, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/**\n * Read what the user's PDS actually holds under id.sifa.*.\n *\n * A failure is not flattened into an empty inventory. Zero records reads as\n * \"Sifa has stored nothing about you\", and a request that never arrived must\n * not be allowed to say that. Let it throw.\n */\nexport function fetchRepoInventory(\n config: SifaApiConfig,\n options: ApiFetchOptions = {},\n): Promise<RepoInventory> {\n return apiFetch<RepoInventory>(config, '/api/me/repo-inventory', {\n credentials: 'include',\n ...options,\n });\n}\n\nexport interface RepoDeleteInput {\n collection: string;\n /** The records to remove. Omit and set `all` to remove the whole collection. */\n rkeys?: string[];\n /**\n * Remove every record in the collection, including ones written between the\n * inventory read and this call. A UI offering \"delete all of X\" must send\n * this rather than the rkeys it happened to see, or a record created in\n * between silently survives a delete the user believes was complete.\n */\n all?: boolean;\n}\n\n/**\n * Delete records from the user's own repo.\n *\n * The returned `success` means the request was accepted, NOT that the records\n * are gone: read `results` for that, per record. `needsScopeUpgrade` means\n * nothing was attempted and the user has to grant the scope first.\n *\n * Destructive and not undoable -- a deleted record's CID cannot be restored.\n * The server enforces the id.sifa.* boundary and the session check; the SDK\n * adds no confirmation step, so wrap call sites in one.\n */\nexport function deleteRepoRecords(\n config: SifaApiConfig,\n input: RepoDeleteInput,\n options: ApiFetchOptions = {},\n): Promise<RepoDeleteResult & { success: boolean; error?: string }> {\n // The declared shape predates the discriminated WriteResult; kept as is so\n // callers reading `results` without narrowing on `success` still compile.\n return apiWrite<RepoDeleteResult>(config, '/api/me/repo-delete', 'POST', {\n body: input,\n ...options,\n }) as Promise<RepoDeleteResult & { success: boolean; error?: string }>;\n}\n\n/**\n * URL of the raw-record download.\n *\n * A URL rather than a fetcher: the response is a file the browser saves, and\n * routing it through fetch would buffer the whole repo in memory to hand it\n * straight back to a download anchor.\n */\nexport function repoExportUrl(config: SifaApiConfig): string {\n return `${config.baseUrl}/api/me/repo-export`;\n}\n"],"mappings":";AACA,SAAS,UAAU,gBAA0D;AAStE,SAAS,mBACd,QACA,UAA2B,CAAC,GACJ;AACxB,SAAO,SAAwB,QAAQ,0BAA0B;AAAA,IAC/D,aAAa;AAAA,IACb,GAAG;AAAA,EACL,CAAC;AACH;AA0BO,SAAS,kBACd,QACA,OACA,UAA2B,CAAC,GACsC;AAGlE,SAAO,SAA2B,QAAQ,uBAAuB,QAAQ;AAAA,IACvE,MAAM;AAAA,IACN,GAAG;AAAA,EACL,CAAC;AACH;AASO,SAAS,cAAc,QAA+B;AAC3D,SAAO,GAAG,OAAO,OAAO;AAC1B;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/skills.ts"],"sourcesContent":["import {\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type CreateResult,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\n/**\n * Create a new `id.sifa.profile.skill` record on the authenticated\n * user's PDS.\n */\nexport function createSkill(\n config: SifaApiConfig,\n data: Record<string, unknown>,\n options: ApiFetchOptions = {},\n): Promise<CreateResult> {\n return apiWriteCreate(config, '/api/profile/skill', data, options);\n}\n\n/** Update an existing skill record by `rkey`. */\nexport function updateSkill(\n config: SifaApiConfig,\n rkey: string,\n data: Record<string, unknown>,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/skill/${encodeURIComponent(rkey)}`, 'PUT', {\n body: data,\n ...options,\n });\n}\n\n/** Outcome of a bulk sub-category assign. */\nexport interface SubCategoryBulkResult {\n /** Records written. */\n updated: number;\n /** Records that already carried the label, so no write was needed. */\n unchanged: number;\n /** Requested rkeys with no matching record on the PDS. */\n skipped: string[];\n}\n\n/**\n * Set (or clear) the sub-category on many skills in one request.\n *\n * A single call replaces one PUT per skill, which tripped the AppView's\n * per-IP rate limit on any sizeable profile (#324). An empty `subCategory`\n * clears the field.\n */\nexport function updateSkillSubCategories(\n config: SifaApiConfig,\n rkeys: string[],\n subCategory: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult & SubCategoryBulkResult> {\n return apiWrite<SubCategoryBulkResult>(config, '/api/profile/skills/subcategory', 'POST', {\n body: { rkeys, subCategory },\n ...options,\n });\n}\n\n/** Delete a skill record by `rkey`. */\nexport function deleteSkill(\n config: SifaApiConfig,\n rkey: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/skill/${encodeURIComponent(rkey)}`, 'DELETE', options);\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,OAKK;AAMA,SAAS,YACd,QACA,MACA,UAA2B,CAAC,GACL;AACvB,SAAO,eAAe,QAAQ,sBAAsB,MAAM,OAAO;AACnE;AAGO,SAAS,YACd,QACA,MACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,sBAAsB,mBAAmB,IAAI,CAAC,IAAI,OAAO;AAAA,IAC/E,MAAM;AAAA,IACN,GAAG;AAAA,EACL,CAAC;AACH;AAmBO,SAAS,yBACd,QACA,OACA,aACA,UAA2B,CAAC,GACkB;AAC9C,SAAO,SAAgC,QAAQ,mCAAmC,QAAQ;AAAA,IACxF,MAAM,EAAE,OAAO,YAAY;AAAA,IAC3B,GAAG;AAAA,EACL,CAAC;AACH;AAGO,SAAS,YACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,sBAAsB,mBAAmB,IAAI,CAAC,IAAI,UAAU,OAAO;AAC7F;","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/skills.ts"],"sourcesContent":["import {\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type CreateResult,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\n/**\n * Create a new `id.sifa.profile.skill` record on the authenticated\n * user's PDS.\n */\nexport function createSkill(\n config: SifaApiConfig,\n data: Record<string, unknown>,\n options: ApiFetchOptions = {},\n): Promise<CreateResult> {\n return apiWriteCreate(config, '/api/profile/skill', data, options);\n}\n\n/** Update an existing skill record by `rkey`. */\nexport function updateSkill(\n config: SifaApiConfig,\n rkey: string,\n data: Record<string, unknown>,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/skill/${encodeURIComponent(rkey)}`, 'PUT', {\n body: data,\n ...options,\n });\n}\n\n/** Outcome of a bulk sub-category assign. */\nexport interface SubCategoryBulkResult {\n /** Records written. */\n updated: number;\n /** Records that already carried the label, so no write was needed. */\n unchanged: number;\n /** Requested rkeys with no matching record on the PDS. */\n skipped: string[];\n}\n\n/**\n * Set (or clear) the sub-category on many skills in one request.\n *\n * A single call replaces one PUT per skill, which tripped the AppView's\n * per-IP rate limit on any sizeable profile (#324). An empty `subCategory`\n * clears the field.\n */\nexport function updateSkillSubCategories(\n config: SifaApiConfig,\n rkeys: string[],\n subCategory: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult<SubCategoryBulkResult>> {\n return apiWrite<SubCategoryBulkResult>(config, '/api/profile/skills/subcategory', 'POST', {\n body: { rkeys, subCategory },\n ...options,\n });\n}\n\n/** Delete a skill record by `rkey`. */\nexport function deleteSkill(\n config: SifaApiConfig,\n rkey: string,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, `/api/profile/skill/${encodeURIComponent(rkey)}`, 'DELETE', options);\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,OAKK;AAMA,SAAS,YACd,QACA,MACA,UAA2B,CAAC,GACL;AACvB,SAAO,eAAe,QAAQ,sBAAsB,MAAM,OAAO;AACnE;AAGO,SAAS,YACd,QACA,MACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,sBAAsB,mBAAmB,IAAI,CAAC,IAAI,OAAO;AAAA,IAC/E,MAAM;AAAA,IACN,GAAG;AAAA,EACL,CAAC;AACH;AAmBO,SAAS,yBACd,QACA,OACA,aACA,UAA2B,CAAC,GACiB;AAC7C,SAAO,SAAgC,QAAQ,mCAAmC,QAAQ;AAAA,IACxF,MAAM,EAAE,OAAO,YAAY;AAAA,IAC3B,GAAG;AAAA,EACL,CAAC;AACH;AAGO,SAAS,YACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,sBAAsB,mBAAmB,IAAI,CAAC,IAAI,UAAU,OAAO;AAC7F;","names":[]}