@singi-labs/sifa-sdk 0.19.9 → 0.19.10

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.
@@ -1,6 +1,6 @@
1
1
  import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from '../../org-Bfrfa9sD.cjs';
2
2
  export { c as AccountCheckResult, d as AccountSummary, e as ActivityFeedResponse, f as ActivityItem, g as ActivityItemLinkHealth, h as ActivityTeaserResponse, i as AdminReviewQueues, j as ApiError, k as AppRegistryEntry, B as BulkHideProfileItemInput, l as CastRoadmapVoteResult, m as CheckAppAccountOptions, cK as CompanySearchFilters, cL as CompanySearchResponse, cM as CompanySearchResult, a as ConfirmEndorsementInput, n as ConfirmationInput, o as ConfirmationSubjectInput, p as CreateExternalAccountResult, D as DeleteAccountResult, q as DismissUnlinkedPositionInput, E as EndorsementInput, r as ExternalAccountInput, F as FeatureAllowlistResponse, t as FeaturedProfile, u as FetchAccountsOptions, v as FetchActivityFeedOptions, w as FetchActivityTeaserOptions, x as FetchConfirmationsOptions, y as FetchFollowListOptions, z as FetchFollowProfilePageOptions, G as FetchFollowingFeedOptions, H as FetchHiddenActivityItemsOptions, I as FetchHiddenAppsOptions, J as FetchInboxCountsOptions, K as FetchMyGithubPullRequestsOptions, L as FetchMyRoadmapVotesOptions, M as FetchProfileCompletenessOptions, N as FetchReactionStatusOptions, O as FetchSuggestionsOptions, P as FetchUnlinkedPositionsOptions, Q as FilterOptions, R as FollowListPage, T as FollowProfile, U as FollowProfilePageResponse, V as FollowUserResult, X as FollowingFeedApp, Y as FollowingFeedEmptyReason, Z as FollowingFeedResponse, _ as FollowingResponse, $ as GetAdminReviewQueuesOptions, a0 as GithubPullRequest, a1 as GivenConfirmation, a2 as HIDDEN_ITEM_SOURCES, a3 as HIDDEN_ITEM_TYPES, a4 as HeatmapDay, a5 as HeatmapResponse, a6 as HiddenActivityItem, a7 as HiddenApp, a8 as HiddenItemSource, a9 as HiddenItemType, aa as HideActivityItemInput, ab as HideProfileItemInput, ac as InboxCounts, ad as ListFeatureAllowlistOptions, ae as MyGithubPullRequestsResponse, af as OrgClaimBinding, ag as OrgClaimResult, ah as OrgDomainChallengeResult, ai as OrgDomainVerifyResult, aj as OrgNotificationEmailAddResult, ak as OrgNotificationEmailRemoveResult, al as OrgProfileEcho, am as OrgProfileUpdateResult, an as PROFILE_COMPLETENESS_SIGNALS, ao as PdsWipeOutcome, ap as PendingConfirmation, aq as PendingConfirmationsPage, ar as PrimarySection, as as ProfileCompleteness, at as ProfileCompletenessSignal, au as ProfileIndustryInput, av as ProfileLocationAddress, aw as ProfileLocationInput, ax as ProfileSearchResult, ay as ProfileSelfLocation, az as QUOTED_POSTS_BATCH_MAX, aA as QuotedPostAuthor, aB as QuotedPostImage, aC as QuotedPostResult, aD as QuotedPostView, aE as ReactionError, aF as ReactionResult, aG as ReactionStatus, aH as RefreshOrcidPublicationsResult, aI as RefreshPdsResult, aJ as RepoDeleteInput, aK as ResetProfileResult, aL as ResolveQuotedPostsOptions, aM as RoadmapVoteError, aN as RoadmapVoteResult, aO as RoadmapVoter, aP as RoadmapVotesResponse, aQ as SearchFilters, aR as SearchResponse, aS as SifaQueryKey, aT as SimilarProfile, aU as SkillSearchResult, aV as StatsResponse, aX as SuggestionProfile, aY as SuggestionsResponse, aZ as UnhideActivityItemInput, a_ as UnlinkedPosition, a$ as UnlinkedPositionsResult, b0 as UpdateProfileOverrideInput, b1 as UpdateProfileSelfInput, b2 as UploadAvatarResult, b3 as UploadPronunciationAudioResult, b4 as VerifyExternalAccountResult, b5 as WipePreview, b6 as addFeatureAllowlist, b7 as addOrgNotificationEmail, b8 as apiFetch, b9 as apiFetchOrNull, ba as apiWrite, bb as apiWriteCreate, bc as bulkHideProfileItems, bd as bulkHideStandardPublications, be as bulkUnhideProfileItems, bf as bulkUnhideStandardPublications, bg as castRoadmapVote, bh as checkAppAccount, bi as confirmEndorsement, bj as createConfirmation, bk as createEndorsement, bl as createExternalAccount, bm as createProfileLocation, bn as createReaction, bo as createSkill, bp as deleteAccount, bq as deleteAvatarOverride, br as deleteExternalAccount, bs as deleteNamePronunciationAudio, bt as deleteProfileLocation, bu as deleteReaction, bv as deleteRepoRecords, bw as deleteSkill, bx as dismissConfirmation, by as dismissUnlinkedPosition, bz as fetchAccounts, bA as fetchActivityFeed, bB as fetchActivityTeaser, bC as fetchAppsRegistry, bD as fetchExternalAccounts, bE as fetchFeaturedProfile, bF as fetchFollowing, bG as fetchFollowingFeed, bH as fetchGivenConfirmations, bI as fetchHeatmapData, bJ as fetchHiddenActivityItems, bK as fetchHiddenApps, bL as fetchInboxCounts, bM as fetchMyGithubPullRequests, bN as fetchMyRoadmapVotes, bO as fetchPendingConfirmations, bP as fetchProfileCompleteness, bQ as fetchReactionStatus, bR as fetchRepoInventory, bS as fetchRoadmapVotes, cN as fetchSearchCompanies, bT as fetchSearchFilters, bU as fetchSearchProfiles, bV as fetchSimilarProfiles, bW as fetchSkillSuggestions, bX as fetchStats, bY as fetchSuggestionCount, bZ as fetchSuggestions, b_ as fetchUnlinkedPositions, b$ as fetchWipePreview, c0 as followUser, c1 as getAdminReviewQueues, c2 as getBlueskySuggestions, c3 as getFollowers, c4 as getFollowing, c5 as getMutuals, c6 as hideActivityItem, c7 as hideOrcidPublication, c8 as hideProfileItem, c9 as hideSifaPublication, ca as hideStandardPublication, cb as listFeatureAllowlist, cc as refreshOrcidPublications, cd as refreshPds, ce as removeFeatureAllowlist, cf as removeOrgNotificationEmail, cg as repoExportUrl, ch as requestOrgDomainChallenge, ci as resetProfile, cj as resolveQuotedPosts, ck as retractRoadmapVote, cl as revokeConfirmation, cm as searchSkills, cn as setExternalAccountPrimary, co as setSectionPrimary, s as sifaQueryKeys, cp as submitOrgClaim, cq as switchAccount, cr as unfollowUser, cs as unhideActivityItem, ct as unhideOrcidPublication, cu as unhideProfileItem, cv as unhideSifaPublication, cw as unhideStandardPublication, cx as unsetExternalAccountPrimary, cy as unsetSectionPrimary, cz as updateExternalAccount, cA as updateOrgProfile, cB as updateProfileLocation, cC as updateProfileOverride, cD as updateProfileSelf, cE as updateSkill, cG as uploadAvatar, cH as uploadNamePronunciationAudio, cI as verifyExternalAccount, cJ as verifyOrgDomain } from '../../org-Bfrfa9sD.cjs';
3
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, N as NetworkMapEdge, c as NetworkMapGenerationJob, d as NetworkMapGraphData, e as NetworkMapNode, f as NetworkMapPendingJob, g as NetworkMapResponse, h as PendingEndorsement, P as PendingEndorsementsPage, i as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, j as ReciprocitySkill, S as SpeakerCard, k as SpeakerDirectoryFilters, l as SpeakerGroup, m as SpeakersResponse, T as TalkEvent, n as TalkRow, o as TalkSpeaker, p as TalksResponse, q as checkNetworkMapJobStatus, r as createEducation, s as createPosition, t as createRecord, u as deleteEducation, v as deletePosition, w as deleteRecord, x as dismissEndorsement, y as fetchAtFundLink, z as fetchEndorsementCount, A as fetchEntitySearch, B as fetchGetProfileView, C as fetchNetworkMap, E as fetchNetworkStreamCount, G as fetchPendingEndorsements, H as fetchProfile, I as fetchProfileSummary, J as fetchReceivedEndorsements, K as fetchReciprocityCandidate, L as fetchSpeakers, M as fetchTalks, O as hideKeytraceClaim, Q as importSearchEntities, U as initiateNetworkMapGeneration, V as isNetworkMapResponse, W as linkSkillToPosition, Z as revealMarqueDomain, _ as selectEntity, $ as setPositionPrimary, a0 as unhideKeytraceClaim, a1 as unlinkSkillFromPosition, a2 as unrevealMarqueDomain, a3 as unsetPositionPrimary, a4 as updateEducation, a5 as updatePosition, a6 as updateRecord } from '../../network-map-DUIEbJf9.cjs';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, N as NetworkMapEdge, c as NetworkMapGenerationJob, d as NetworkMapGraphData, e as NetworkMapNode, f as NetworkMapPendingJob, g as NetworkMapResponse, h as PendingEndorsement, P as PendingEndorsementsPage, i as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, j as ReciprocitySkill, S as SpeakerCard, k as SpeakerDirectoryFilters, l as SpeakerGroup, m as SpeakersResponse, T as TalkEvent, n as TalkRow, o as TalkSpeaker, p as TalksResponse, q as checkNetworkMapJobStatus, r as createEducation, s as createPosition, t as createRecord, u as deleteEducation, v as deletePosition, w as deleteRecord, x as dismissEndorsement, y as fetchAtFundLink, z as fetchEndorsementCount, A as fetchEntitySearch, B as fetchGetProfileView, C as fetchNetworkMap, E as fetchNetworkStreamCount, G as fetchPendingEndorsements, H as fetchProfile, I as fetchProfileSummary, J as fetchReceivedEndorsements, K as fetchReciprocityCandidate, L as fetchSpeakers, M as fetchTalks, O as hideKeytraceClaim, Q as importSearchEntities, U as initiateNetworkMapGeneration, V as isNetworkMapResponse, W as linkSkillToPosition, Z as revealMarqueDomain, _ as selectEntity, $ as setPositionPrimary, a0 as unhideKeytraceClaim, a1 as unlinkSkillFromPosition, a2 as unrevealMarqueDomain, a3 as unsetPositionPrimary, a4 as updateEducation, a5 as updatePosition, a6 as updateRecord } from '../../network-map-BH_qbSvm.cjs';
4
4
  import '../../index-DDlGa7CO.cjs';
5
5
  import '../../shared-v0vl5hov.cjs';
6
6
  import 'zod';
@@ -1,6 +1,6 @@
1
1
  import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from '../../org-H2bPqXeC.js';
2
2
  export { c as AccountCheckResult, d as AccountSummary, e as ActivityFeedResponse, f as ActivityItem, g as ActivityItemLinkHealth, h as ActivityTeaserResponse, i as AdminReviewQueues, j as ApiError, k as AppRegistryEntry, B as BulkHideProfileItemInput, l as CastRoadmapVoteResult, m as CheckAppAccountOptions, cK as CompanySearchFilters, cL as CompanySearchResponse, cM as CompanySearchResult, a as ConfirmEndorsementInput, n as ConfirmationInput, o as ConfirmationSubjectInput, p as CreateExternalAccountResult, D as DeleteAccountResult, q as DismissUnlinkedPositionInput, E as EndorsementInput, r as ExternalAccountInput, F as FeatureAllowlistResponse, t as FeaturedProfile, u as FetchAccountsOptions, v as FetchActivityFeedOptions, w as FetchActivityTeaserOptions, x as FetchConfirmationsOptions, y as FetchFollowListOptions, z as FetchFollowProfilePageOptions, G as FetchFollowingFeedOptions, H as FetchHiddenActivityItemsOptions, I as FetchHiddenAppsOptions, J as FetchInboxCountsOptions, K as FetchMyGithubPullRequestsOptions, L as FetchMyRoadmapVotesOptions, M as FetchProfileCompletenessOptions, N as FetchReactionStatusOptions, O as FetchSuggestionsOptions, P as FetchUnlinkedPositionsOptions, Q as FilterOptions, R as FollowListPage, T as FollowProfile, U as FollowProfilePageResponse, V as FollowUserResult, X as FollowingFeedApp, Y as FollowingFeedEmptyReason, Z as FollowingFeedResponse, _ as FollowingResponse, $ as GetAdminReviewQueuesOptions, a0 as GithubPullRequest, a1 as GivenConfirmation, a2 as HIDDEN_ITEM_SOURCES, a3 as HIDDEN_ITEM_TYPES, a4 as HeatmapDay, a5 as HeatmapResponse, a6 as HiddenActivityItem, a7 as HiddenApp, a8 as HiddenItemSource, a9 as HiddenItemType, aa as HideActivityItemInput, ab as HideProfileItemInput, ac as InboxCounts, ad as ListFeatureAllowlistOptions, ae as MyGithubPullRequestsResponse, af as OrgClaimBinding, ag as OrgClaimResult, ah as OrgDomainChallengeResult, ai as OrgDomainVerifyResult, aj as OrgNotificationEmailAddResult, ak as OrgNotificationEmailRemoveResult, al as OrgProfileEcho, am as OrgProfileUpdateResult, an as PROFILE_COMPLETENESS_SIGNALS, ao as PdsWipeOutcome, ap as PendingConfirmation, aq as PendingConfirmationsPage, ar as PrimarySection, as as ProfileCompleteness, at as ProfileCompletenessSignal, au as ProfileIndustryInput, av as ProfileLocationAddress, aw as ProfileLocationInput, ax as ProfileSearchResult, ay as ProfileSelfLocation, az as QUOTED_POSTS_BATCH_MAX, aA as QuotedPostAuthor, aB as QuotedPostImage, aC as QuotedPostResult, aD as QuotedPostView, aE as ReactionError, aF as ReactionResult, aG as ReactionStatus, aH as RefreshOrcidPublicationsResult, aI as RefreshPdsResult, aJ as RepoDeleteInput, aK as ResetProfileResult, aL as ResolveQuotedPostsOptions, aM as RoadmapVoteError, aN as RoadmapVoteResult, aO as RoadmapVoter, aP as RoadmapVotesResponse, aQ as SearchFilters, aR as SearchResponse, aS as SifaQueryKey, aT as SimilarProfile, aU as SkillSearchResult, aV as StatsResponse, aX as SuggestionProfile, aY as SuggestionsResponse, aZ as UnhideActivityItemInput, a_ as UnlinkedPosition, a$ as UnlinkedPositionsResult, b0 as UpdateProfileOverrideInput, b1 as UpdateProfileSelfInput, b2 as UploadAvatarResult, b3 as UploadPronunciationAudioResult, b4 as VerifyExternalAccountResult, b5 as WipePreview, b6 as addFeatureAllowlist, b7 as addOrgNotificationEmail, b8 as apiFetch, b9 as apiFetchOrNull, ba as apiWrite, bb as apiWriteCreate, bc as bulkHideProfileItems, bd as bulkHideStandardPublications, be as bulkUnhideProfileItems, bf as bulkUnhideStandardPublications, bg as castRoadmapVote, bh as checkAppAccount, bi as confirmEndorsement, bj as createConfirmation, bk as createEndorsement, bl as createExternalAccount, bm as createProfileLocation, bn as createReaction, bo as createSkill, bp as deleteAccount, bq as deleteAvatarOverride, br as deleteExternalAccount, bs as deleteNamePronunciationAudio, bt as deleteProfileLocation, bu as deleteReaction, bv as deleteRepoRecords, bw as deleteSkill, bx as dismissConfirmation, by as dismissUnlinkedPosition, bz as fetchAccounts, bA as fetchActivityFeed, bB as fetchActivityTeaser, bC as fetchAppsRegistry, bD as fetchExternalAccounts, bE as fetchFeaturedProfile, bF as fetchFollowing, bG as fetchFollowingFeed, bH as fetchGivenConfirmations, bI as fetchHeatmapData, bJ as fetchHiddenActivityItems, bK as fetchHiddenApps, bL as fetchInboxCounts, bM as fetchMyGithubPullRequests, bN as fetchMyRoadmapVotes, bO as fetchPendingConfirmations, bP as fetchProfileCompleteness, bQ as fetchReactionStatus, bR as fetchRepoInventory, bS as fetchRoadmapVotes, cN as fetchSearchCompanies, bT as fetchSearchFilters, bU as fetchSearchProfiles, bV as fetchSimilarProfiles, bW as fetchSkillSuggestions, bX as fetchStats, bY as fetchSuggestionCount, bZ as fetchSuggestions, b_ as fetchUnlinkedPositions, b$ as fetchWipePreview, c0 as followUser, c1 as getAdminReviewQueues, c2 as getBlueskySuggestions, c3 as getFollowers, c4 as getFollowing, c5 as getMutuals, c6 as hideActivityItem, c7 as hideOrcidPublication, c8 as hideProfileItem, c9 as hideSifaPublication, ca as hideStandardPublication, cb as listFeatureAllowlist, cc as refreshOrcidPublications, cd as refreshPds, ce as removeFeatureAllowlist, cf as removeOrgNotificationEmail, cg as repoExportUrl, ch as requestOrgDomainChallenge, ci as resetProfile, cj as resolveQuotedPosts, ck as retractRoadmapVote, cl as revokeConfirmation, cm as searchSkills, cn as setExternalAccountPrimary, co as setSectionPrimary, s as sifaQueryKeys, cp as submitOrgClaim, cq as switchAccount, cr as unfollowUser, cs as unhideActivityItem, ct as unhideOrcidPublication, cu as unhideProfileItem, cv as unhideSifaPublication, cw as unhideStandardPublication, cx as unsetExternalAccountPrimary, cy as unsetSectionPrimary, cz as updateExternalAccount, cA as updateOrgProfile, cB as updateProfileLocation, cC as updateProfileOverride, cD as updateProfileSelf, cE as updateSkill, cG as uploadAvatar, cH as uploadNamePronunciationAudio, cI as verifyExternalAccount, cJ as verifyOrgDomain } from '../../org-H2bPqXeC.js';
3
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, N as NetworkMapEdge, c as NetworkMapGenerationJob, d as NetworkMapGraphData, e as NetworkMapNode, f as NetworkMapPendingJob, g as NetworkMapResponse, h as PendingEndorsement, P as PendingEndorsementsPage, i as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, j as ReciprocitySkill, S as SpeakerCard, k as SpeakerDirectoryFilters, l as SpeakerGroup, m as SpeakersResponse, T as TalkEvent, n as TalkRow, o as TalkSpeaker, p as TalksResponse, q as checkNetworkMapJobStatus, r as createEducation, s as createPosition, t as createRecord, u as deleteEducation, v as deletePosition, w as deleteRecord, x as dismissEndorsement, y as fetchAtFundLink, z as fetchEndorsementCount, A as fetchEntitySearch, B as fetchGetProfileView, C as fetchNetworkMap, E as fetchNetworkStreamCount, G as fetchPendingEndorsements, H as fetchProfile, I as fetchProfileSummary, J as fetchReceivedEndorsements, K as fetchReciprocityCandidate, L as fetchSpeakers, M as fetchTalks, O as hideKeytraceClaim, Q as importSearchEntities, U as initiateNetworkMapGeneration, V as isNetworkMapResponse, W as linkSkillToPosition, Z as revealMarqueDomain, _ as selectEntity, $ as setPositionPrimary, a0 as unhideKeytraceClaim, a1 as unlinkSkillFromPosition, a2 as unrevealMarqueDomain, a3 as unsetPositionPrimary, a4 as updateEducation, a5 as updatePosition, a6 as updateRecord } from '../../network-map-BXpm9LIk.js';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, N as NetworkMapEdge, c as NetworkMapGenerationJob, d as NetworkMapGraphData, e as NetworkMapNode, f as NetworkMapPendingJob, g as NetworkMapResponse, h as PendingEndorsement, P as PendingEndorsementsPage, i as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, j as ReciprocitySkill, S as SpeakerCard, k as SpeakerDirectoryFilters, l as SpeakerGroup, m as SpeakersResponse, T as TalkEvent, n as TalkRow, o as TalkSpeaker, p as TalksResponse, q as checkNetworkMapJobStatus, r as createEducation, s as createPosition, t as createRecord, u as deleteEducation, v as deletePosition, w as deleteRecord, x as dismissEndorsement, y as fetchAtFundLink, z as fetchEndorsementCount, A as fetchEntitySearch, B as fetchGetProfileView, C as fetchNetworkMap, E as fetchNetworkStreamCount, G as fetchPendingEndorsements, H as fetchProfile, I as fetchProfileSummary, J as fetchReceivedEndorsements, K as fetchReciprocityCandidate, L as fetchSpeakers, M as fetchTalks, O as hideKeytraceClaim, Q as importSearchEntities, U as initiateNetworkMapGeneration, V as isNetworkMapResponse, W as linkSkillToPosition, Z as revealMarqueDomain, _ as selectEntity, $ as setPositionPrimary, a0 as unhideKeytraceClaim, a1 as unlinkSkillFromPosition, a2 as unrevealMarqueDomain, a3 as unsetPositionPrimary, a4 as updateEducation, a5 as updatePosition, a6 as updateRecord } from '../../network-map-CBllUH38.js';
4
4
  import '../../index-HgcjpMWO.js';
5
5
  import '../../shared-v0vl5hov.js';
6
6
  import 'zod';
@@ -469,10 +469,15 @@ async function fetchReciprocityCandidate(config, options = {}) {
469
469
  }
470
470
 
471
471
  // src/query/fetchers/endorsement-inbox.ts
472
+ var PENDING_ENDORSEMENTS_LXM = "id.sifa.endorsement.getPending";
472
473
  async function fetchPendingEndorsements(config, options = {}) {
473
474
  const { cookieHeader, ...rest } = options;
474
475
  const headers = { ...rest.headers ?? {} };
475
476
  if (cookieHeader) headers.cookie = cookieHeader;
477
+ if (config.getAuthToken) {
478
+ const token = await config.getAuthToken(PENDING_ENDORSEMENTS_LXM);
479
+ if (token) headers.Authorization = `Bearer ${token}`;
480
+ }
476
481
  try {
477
482
  const data = await apiFetch(config, "/api/endorsements/pending", {
478
483
  cache: "no-store",