@singi-labs/sifa-sdk 0.19.53 → 0.19.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge/index.cjs +18 -2
- package/dist/badge/index.cjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/{network-map-C-p-k3gB.d.cts → network-map-Bj-s4akz.d.cts} +2 -2
- package/dist/{network-map-CnVlBE0G.d.ts → network-map-v_4bPC5p.d.ts} +2 -2
- package/dist/{org-Bp4mNT8K.d.ts → org-DTHVhan9.d.ts} +1 -1
- package/dist/{org-CFzRg61Q.d.cts → org-mUwICoPr.d.cts} +1 -1
- package/dist/{profile-summary-Qtfk-52i.d.ts → profile-summary-BXG--PFN.d.ts} +1 -1
- package/dist/{profile-summary-C_wdHGj6.d.cts → profile-summary-D-Z_C6ZC.d.cts} +1 -1
- package/dist/query/client.js +26 -6
- package/dist/query/client.js.map +1 -1
- package/dist/query/fetchers/index.cjs +26 -6
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +5 -5
- package/dist/query/fetchers/index.d.ts +5 -5
- package/dist/query/hooks/index.cjs +26 -6
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/index.cjs +26 -6
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/roadmap/index.js +1 -1
- package/dist/roadmap/index.js.map +1 -1
- package/dist/schemas/write/external-account.js +2 -1
- package/dist/schemas/write/external-account.js.map +1 -1
- package/dist/schemas/write/index.cjs +2 -1
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +1 -1
- package/dist/schemas/write/index.d.ts +1 -1
- package/dist/{types-DAGqE0b9.d.cts → types-BeEuVVBo.d.cts} +11 -1
- package/dist/{types-CK8KgdqA.d.ts → types-Dblq-u-n.d.ts} +11 -1
- package/dist/{use-org-notification-emails-Dk084Rrw.d.cts → use-org-notification-emails-C8Z0U5rH.d.cts} +2 -2
- package/dist/{use-org-notification-emails-CJ0hKqco.d.ts → use-org-notification-emails-CgEZnFTp.d.ts} +2 -2
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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';
|
|
5
5
|
import '../../index-DmlIG8sJ.cjs';
|
|
6
6
|
import '../../shared-v0vl5hov.cjs';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../../profile-summary-
|
|
8
|
+
import '../../profile-summary-D-Z_C6ZC.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-
|
|
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-
|
|
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-
|
|
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-
|
|
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';
|
|
5
5
|
import '../../index-D9GC0u__.js';
|
|
6
6
|
import '../../shared-v0vl5hov.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../../profile-summary-
|
|
8
|
+
import '../../profile-summary-BXG--PFN.js';
|
|
9
9
|
import '../../follow-profile-D1l6pulB.js';
|
|
10
10
|
import '../../org-settings-BShvhyFp.js';
|
|
11
11
|
|
|
@@ -24,16 +24,27 @@ function useSifaConfig() {
|
|
|
24
24
|
var ApiError = class extends Error {
|
|
25
25
|
status;
|
|
26
26
|
body;
|
|
27
|
-
|
|
27
|
+
/** Seconds until a rate limit resets, read from the headers of a 429. */
|
|
28
|
+
retryAfterSeconds;
|
|
29
|
+
constructor(message, status, body, retryAfterSeconds) {
|
|
28
30
|
super(message);
|
|
29
31
|
this.name = "ApiError";
|
|
30
32
|
this.status = status;
|
|
31
33
|
this.body = body;
|
|
34
|
+
if (retryAfterSeconds !== void 0) this.retryAfterSeconds = retryAfterSeconds;
|
|
32
35
|
}
|
|
33
36
|
};
|
|
34
37
|
var DEFAULT_TIMEOUT_MS = 1e4;
|
|
35
38
|
var MAX_RATE_LIMIT_RETRIES = 3;
|
|
36
39
|
var RATE_LIMIT_RETRY_CAP_SECONDS = 3;
|
|
40
|
+
var RATE_LIMIT_RESET_HEADERS = ["retry-after", "x-ratelimit-reset"];
|
|
41
|
+
function parseRetryAfterSeconds(headers) {
|
|
42
|
+
for (const name of RATE_LIMIT_RESET_HEADERS) {
|
|
43
|
+
const seconds = Number.parseInt(headers.get(name) ?? "", 10);
|
|
44
|
+
if (Number.isFinite(seconds) && seconds > 0) return seconds;
|
|
45
|
+
}
|
|
46
|
+
return void 0;
|
|
47
|
+
}
|
|
37
48
|
function encodeIdentifier(value) {
|
|
38
49
|
let decoded = value;
|
|
39
50
|
try {
|
|
@@ -85,7 +96,12 @@ async function apiFetch(config, path, options = {}) {
|
|
|
85
96
|
errBody = void 0;
|
|
86
97
|
}
|
|
87
98
|
}
|
|
88
|
-
throw new ApiError(
|
|
99
|
+
throw new ApiError(
|
|
100
|
+
`Sifa API ${res.status} on ${path}`,
|
|
101
|
+
res.status,
|
|
102
|
+
errBody,
|
|
103
|
+
res.status === 429 ? parseRetryAfterSeconds(res.headers) : void 0
|
|
104
|
+
);
|
|
89
105
|
}
|
|
90
106
|
if (res.status === 204 || res.status === 205) {
|
|
91
107
|
return void 0;
|
|
@@ -102,10 +118,14 @@ async function apiFetchOrNull(config, path, options = {}) {
|
|
|
102
118
|
throw e;
|
|
103
119
|
}
|
|
104
120
|
}
|
|
105
|
-
function extractWriteError(
|
|
106
|
-
const body =
|
|
121
|
+
function extractWriteError(e) {
|
|
122
|
+
const body = e.body && typeof e.body === "object" ? e.body : {};
|
|
107
123
|
return {
|
|
108
|
-
|
|
124
|
+
// Fastify puts the detail in `message` and the status phrase in `error`;
|
|
125
|
+
// sifa-api's own handlers (and the rate limiter) only set `error`.
|
|
126
|
+
error: body.message ?? body.error ?? `Request failed (${e.status})`,
|
|
127
|
+
status: e.status,
|
|
128
|
+
...e.retryAfterSeconds !== void 0 ? { retryAfterSeconds: e.retryAfterSeconds } : {},
|
|
109
129
|
...body.pdsHost ? { pdsHost: body.pdsHost } : {}
|
|
110
130
|
};
|
|
111
131
|
}
|
|
@@ -119,7 +139,7 @@ async function apiWrite(config, path, method, options = {}) {
|
|
|
119
139
|
return { success: true, ...data ?? {} };
|
|
120
140
|
} catch (e) {
|
|
121
141
|
if (e instanceof ApiError) {
|
|
122
|
-
return { success: false, ...extractWriteError(e
|
|
142
|
+
return { success: false, ...extractWriteError(e) };
|
|
123
143
|
}
|
|
124
144
|
return { success: false, error: "Network error" };
|
|
125
145
|
}
|