@singi-labs/sifa-sdk 0.20.0 → 0.20.2
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.map +1 -1
- package/dist/index.cjs +53 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/{network-map-CrkLq2Gz.d.ts → network-map-2OKh3wSB.d.ts} +2 -2
- package/dist/{network-map-BwM-Wvxt.d.cts → network-map-DJonNOl0.d.cts} +2 -2
- package/dist/{profile-summary-TkVxvll4.d.cts → profile-summary-BCOKt3qS.d.cts} +1 -1
- package/dist/{profile-summary-CwJymH9d.d.ts → profile-summary-DF8-evvA.d.ts} +1 -1
- package/dist/query/client.js +2 -1
- package/dist/query/client.js.map +1 -1
- package/dist/query/fetchers/index.cjs +57 -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/fetchers/index.js +6 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/fetchers/org.js.map +1 -1
- package/dist/query/fetchers/roadmap.js +56 -3
- package/dist/query/fetchers/roadmap.js.map +1 -1
- package/dist/query/hooks/index.cjs +68 -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/hooks/index.js +8 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/hooks/use-roadmap-mutations.js +36 -0
- package/dist/query/hooks/use-roadmap-mutations.js.map +1 -1
- package/dist/query/index.cjs +91 -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/query/index.js +14 -1
- package/dist/query/index.js.map +1 -1
- package/dist/roadmap/board-body.js +55 -0
- package/dist/roadmap/board-body.js.map +1 -0
- package/dist/{types-CQA_vO39.d.ts → types-CkomzDlY.d.ts} +11 -2
- package/dist/{types-DMTHqi2m.d.cts → types-JydVIhN5.d.cts} +11 -2
- package/dist/{use-user-settings-BmuAd8D4.d.cts → use-user-settings-Cq_AHkkM.d.cts} +15 -3
- package/dist/{use-user-settings-1zgi6qwl.d.ts → use-user-settings-DoNP3tNl.d.ts} +15 -3
- package/dist/{user-settings-Btvrox4G.d.ts → user-settings-CBtacio1.d.ts} +55 -3
- package/dist/{user-settings-D4vdBf0A.d.cts → user-settings-DDP76dZH.d.cts} +55 -3
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ai as CompanySearchFilters, aj as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-
|
|
3
|
+
import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ai as CompanySearchFilters, aj as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-JydVIhN5.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { c as Profile, d as ProfilePosition, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-BQAKeEoj.cjs';
|
|
7
|
-
import { s as sifaQueryKeys,
|
|
7
|
+
import { s as sifaQueryKeys, aK as RefreshPdsResult, bb as UpdateProfileOverrideInput, bc as UpdateProfileSelfInput, bd as UploadAvatarResult, be as UploadPronunciationAudioResult, au as PrimarySection, b4 as SubCategoryBulkResult, az as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bi as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a4 as GivenConfirmation, at as PendingConfirmationsPage, af as InboxCounts, p as DismissUnlinkedPositionInput, b9 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, av as ProfileCompleteness, aW as RpgClaimableResponse, a_ as RpgStatusResponse, aJ as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ae as HideProfileItemInput, a9 as HiddenActivityItem, ad as HideActivityItemInput, b7 as UnhideActivityItemInput, f as ActivityPreferences, b2 as SiteActivityPresetResponse, ba as UpdateActivityPreferencesInput, b3 as StatsResponse, i as AppRegistryEntry, aa as HiddenApp, b as AccountSummary, r as FeaturedProfile, b1 as SimilarProfile, R as FetchSuggestionsOptions, b6 as SuggestionsResponse, X as FollowUserResult, y as FetchFollowListOptions, U as FollowListPage, a1 as FollowingResponse, G as FetchFollowingFeedOptions, $ as FollowingFeedResponse, a0 as FollowingFeedVersion, z as FetchFollowProfilePageOptions, W as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a8 as HeatmapResponse, ah as MyGithubPullRequestsResponse, A as AccountCheckResult, aI as ReactionStatus, aH as ReactionResult, aG as ReactionError, aV as RoadmapVotesResponse, j as CastRoadmapVoteResult, aR as RoadmapItemRef, D as DeleteAccountResult, aM as ResetProfileResult, bj as WipePreview, aL as RepoDeleteInput, aj as OrgClaimResult, ap as OrgProfileUpdateResult, ak as OrgDomainChallengeResult, al as OrgDomainVerifyResult, am as OrgNotificationEmailAddResult, an as OrgNotificationEmailRemoveResult, bf as UserSettings } from './user-settings-DDP76dZH.cjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-CgLLLQtJ.cjs';
|
|
10
10
|
import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-C73Sin5E.cjs';
|
|
@@ -1060,6 +1060,18 @@ declare function useMyRoadmapVotes(options?: Omit<UseQueryOptions<string[], Erro
|
|
|
1060
1060
|
declare function useCastRoadmapVote(options?: Omit<UseMutationOptions<CastRoadmapVoteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<CastRoadmapVoteResult, Error, string, unknown>;
|
|
1061
1061
|
/** React hook for retracting a previously-cast roadmap vote. */
|
|
1062
1062
|
declare function useRetractRoadmapVote(options?: Omit<UseMutationOptions<WriteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, string, unknown>;
|
|
1063
|
+
/**
|
|
1064
|
+
* React hook for voting on a roadmap board item. Variable: the item's
|
|
1065
|
+
* `{ did, rkey }`. Returns the same discriminated-union result as
|
|
1066
|
+
* {@link useCastRoadmapVote}.
|
|
1067
|
+
*
|
|
1068
|
+
* Board data from `fetchRoadmap` is usually server-rendered, so the
|
|
1069
|
+
* invalidation here does not refresh it: keep optimistic local state or call
|
|
1070
|
+
* `router.refresh()`. Voting twice is safe; the API answers 200.
|
|
1071
|
+
*/
|
|
1072
|
+
declare function useCastRoadmapItemVote(options?: Omit<UseMutationOptions<CastRoadmapVoteResult, Error, RoadmapItemRef>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<CastRoadmapVoteResult, Error, RoadmapItemRef, unknown>;
|
|
1073
|
+
/** React hook for retracting a vote on a roadmap board item. */
|
|
1074
|
+
declare function useRetractRoadmapItemVote(options?: Omit<UseMutationOptions<WriteResult, Error, RoadmapItemRef>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, RoadmapItemRef, unknown>;
|
|
1063
1075
|
|
|
1064
1076
|
/**
|
|
1065
1077
|
* Read which id.sifa.* collections the current grant cannot delete, so a
|
|
@@ -1255,4 +1267,4 @@ declare function useUpdateUserSettings(): _tanstack_react_query.UseMutationResul
|
|
|
1255
1267
|
showCitationCounts: boolean;
|
|
1256
1268
|
}>, unknown>;
|
|
1257
1269
|
|
|
1258
|
-
export { revokeOrgAttestation as $, type AddFeatureAllowlistVariables as A, type UseMyGithubPullRequestsParams as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, type VerificationEventKind as E, type FetchOrgAttestationOptions as F, type VerificationLog as G, type VerificationLogEntry as H, VerificationLogEntrySchema as I, VerificationLogSchema as J, addProfileEmail as K, createOrgAttestation as L, fetchAttestationRequests as M, fetchOrgAttestations as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, fetchProfileEmails as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, fetchVerificationLog as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, offboardOrgAttestation as W, rejectAttestationRequest as X, removeProfileEmail as Y, requestEmploymentConfirmation as Z, resendProfileEmailVerification as _, type AttestationRequest as a,
|
|
1270
|
+
export { revokeOrgAttestation as $, type AddFeatureAllowlistVariables as A, type UseMyGithubPullRequestsParams as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, type VerificationEventKind as E, type FetchOrgAttestationOptions as F, type VerificationLog as G, type VerificationLogEntry as H, VerificationLogEntrySchema as I, VerificationLogSchema as J, addProfileEmail as K, createOrgAttestation as L, fetchAttestationRequests as M, fetchOrgAttestations as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, fetchProfileEmails as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, fetchVerificationLog as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, offboardOrgAttestation as W, rejectAttestationRequest as X, removeProfileEmail as Y, requestEmploymentConfirmation as Z, resendProfileEmailVerification as _, type AttestationRequest as a, useHideKeytraceClaim as a$, useAccounts as a0, useActivityFeed as a1, useActivityPreferences as a2, useActivityTeaser as a3, useAddFeatureAllowlist as a4, useAddOrgNotificationEmail as a5, useAddProfileEmail as a6, useAdminReviewQueues as a7, useAppAccountCheck as a8, useAppsRegistry as a9, useDeleteNamePronunciationAudio as aA, useDeletePosition as aB, useDeleteProfileLocation as aC, useDeleteReaction as aD, useDeleteRecord as aE, useDeleteRepoRecords as aF, useDeleteSkill as aG, useDismissCompletenessSignal as aH, useDismissConfirmation as aI, useDismissUnlinkedPosition as aJ, useEndorsementCount as aK, useEntitySearch as aL, useExternalAccounts as aM, useFeatureAllowlist as aN, useFeaturedProfile as aO, useFollow as aP, useFollowers as aQ, useFollowing as aR, useFollowingFeed as aS, useFollowingFeedVersion as aT, useFollowingList as aU, useGetProfileView as aV, useGivenConfirmations as aW, useHeatmapData as aX, useHiddenActivityItems as aY, useHiddenApps as aZ, useHideActivityItem as a_, useAtFundLink as aa, useAttestationRequests as ab, useBlueskySuggestions as ac, useBulkHideProfileItems as ad, useBulkHideStandardPublications as ae, useBulkUnhideProfileItems as af, useBulkUnhideStandardPublications as ag, useCanonicalSkillSearch as ah, useCastRoadmapItemVote as ai, useCastRoadmapVote as aj, useClearCompletenessDismissals as ak, useCreateConfirmation as al, useCreateEducation as am, useCreateEndorsement as an, useCreateExternalAccount as ao, useCreateOrgAttestation as ap, useCreatePosition as aq, useCreateProfileLocation as ar, useCreateReaction as as, useCreateRecord as at, useCreateSkill as au, useDebouncedValue as av, useDeleteAccount as aw, useDeleteAvatarOverride as ax, useDeleteEducation as ay, useDeleteExternalAccount as az, AttestationRequestSchema as b, useUnlinkedPositions as b$, useHideOrcidPublication as b0, useHideProfileItem as b1, useHideSifaPublication as b2, useHideStandardPublication as b3, useImportSearchEntities as b4, useInboxCounts as b5, useLinkSkillToPosition as b6, useMintEntityDomain as b7, useMutuals as b8, useMyGithubPullRequests as b9, useRevealMarqueDomain as bA, useRevokeConfirmation as bB, useRevokeOrgAttestation as bC, useRoadmapVotes as bD, useRpgClaimable as bE, useRpgStatus as bF, useSearchFilters as bG, useSearchProfiles as bH, useSelectEntity as bI, useSetExternalAccountPrimary as bJ, useSetPositionPrimary as bK, useSetSectionPrimary as bL, useSifaConfig as bM, useSimilarProfiles as bN, useSiteActivityPreset as bO, useSkillSuggestions as bP, useStats as bQ, useSuggestionCount as bR, useSuggestions as bS, useUnfollow as bT, useUnhideActivityItem as bU, useUnhideKeytraceClaim as bV, useUnhideOrcidPublication as bW, useUnhideProfileItem as bX, useUnhideSifaPublication as bY, useUnhideStandardPublication as bZ, useUnlinkSkillFromPosition as b_, useMyRoadmapVotes as ba, useNetworkStreamCount as bb, useOffboardOrgAttestation as bc, useOrgAttestations as bd, useOrgClaim as be, useOrgDomainChallenge as bf, useOrgDomainVerify as bg, useOrgProfile as bh, usePendingConfirmations as bi, useProfile as bj, useProfileCompleteness as bk, useProfileEmails as bl, useReactionStatus as bm, useRefreshOrcidPublications as bn, useRefreshPds as bo, useRejectAttestationRequest as bp, useRemoveFeatureAllowlist as bq, useRemoveOrgNotificationEmail as br, useRemoveProfileEmail as bs, useRepoInventory as bt, useRequestEmploymentConfirmation as bu, useResendProfileEmailVerification as bv, useResetProfile as bw, useResolveEntityDomain as bx, useRetractRoadmapItemVote as by, useRetractRoadmapVote as bz, type AttestationStatus as c, useUnrevealMarqueDomain as c0, useUnsetExternalAccountPrimary as c1, useUnsetPositionPrimary as c2, useUnsetSectionPrimary as c3, useUpdateActivityPreferences as c4, useUpdateEducation as c5, useUpdateExternalAccount as c6, useUpdateOrgProfile as c7, useUpdatePosition as c8, useUpdateProfileLocation as c9, useUpdateProfileOverride as ca, useUpdateProfileSelf as cb, useUpdateRecord as cc, useUpdateSkill as cd, useUpdateSkillSubCategories as ce, useUpdateUserSettings as cf, useUploadAvatar as cg, useUploadNamePronunciationAudio as ch, useUserSettings as ci, useVerificationLog as cj, useVerifyExternalAccount as ck, useWipePreview as cl, useSearchCompanies as cm, type CreateOrgAttestationResult as d, type CreateReactionVariables as e, type CreateRecordVariables as f, type DeleteRecordVariables as g, type FetchProfileEmailsOptions as h, type FetchVerificationLogOptions as i, type FollowVariables as j, OrgAttestationSchema as k, type ProfileEmail as l, ProfileEmailSchema as m, type ProfileEmailSendStatus as n, type ProfileEmails as o, type RequestEmploymentConfirmationInput as p, type RequestEmploymentConfirmationResult as q, type SifaProviderProps as r, type UpdateEducationVariables as s, type UpdateExternalAccountVariables as t, type UpdatePositionVariables as u, type UpdateProfileLocationVariables as v, type UpdateRecordVariables as w, type UpdateSkillSubCategoriesVariables as x, type UpdateSkillVariables as y, type UseEntitySearchOptions as z };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ai as CompanySearchFilters, aj as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-
|
|
3
|
+
import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ai as CompanySearchFilters, aj as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-CkomzDlY.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { c as Profile, d as ProfilePosition, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-DDh2RLvx.js';
|
|
7
|
-
import { s as sifaQueryKeys,
|
|
7
|
+
import { s as sifaQueryKeys, aK as RefreshPdsResult, bb as UpdateProfileOverrideInput, bc as UpdateProfileSelfInput, bd as UploadAvatarResult, be as UploadPronunciationAudioResult, au as PrimarySection, b4 as SubCategoryBulkResult, az as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bi as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a4 as GivenConfirmation, at as PendingConfirmationsPage, af as InboxCounts, p as DismissUnlinkedPositionInput, b9 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, av as ProfileCompleteness, aW as RpgClaimableResponse, a_ as RpgStatusResponse, aJ as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ae as HideProfileItemInput, a9 as HiddenActivityItem, ad as HideActivityItemInput, b7 as UnhideActivityItemInput, f as ActivityPreferences, b2 as SiteActivityPresetResponse, ba as UpdateActivityPreferencesInput, b3 as StatsResponse, i as AppRegistryEntry, aa as HiddenApp, b as AccountSummary, r as FeaturedProfile, b1 as SimilarProfile, R as FetchSuggestionsOptions, b6 as SuggestionsResponse, X as FollowUserResult, y as FetchFollowListOptions, U as FollowListPage, a1 as FollowingResponse, G as FetchFollowingFeedOptions, $ as FollowingFeedResponse, a0 as FollowingFeedVersion, z as FetchFollowProfilePageOptions, W as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a8 as HeatmapResponse, ah as MyGithubPullRequestsResponse, A as AccountCheckResult, aI as ReactionStatus, aH as ReactionResult, aG as ReactionError, aV as RoadmapVotesResponse, j as CastRoadmapVoteResult, aR as RoadmapItemRef, D as DeleteAccountResult, aM as ResetProfileResult, bj as WipePreview, aL as RepoDeleteInput, aj as OrgClaimResult, ap as OrgProfileUpdateResult, ak as OrgDomainChallengeResult, al as OrgDomainVerifyResult, am as OrgNotificationEmailAddResult, an as OrgNotificationEmailRemoveResult, bf as UserSettings } from './user-settings-CBtacio1.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-CVcA2w1v.js';
|
|
10
10
|
import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-BShvhyFp.js';
|
|
@@ -1060,6 +1060,18 @@ declare function useMyRoadmapVotes(options?: Omit<UseQueryOptions<string[], Erro
|
|
|
1060
1060
|
declare function useCastRoadmapVote(options?: Omit<UseMutationOptions<CastRoadmapVoteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<CastRoadmapVoteResult, Error, string, unknown>;
|
|
1061
1061
|
/** React hook for retracting a previously-cast roadmap vote. */
|
|
1062
1062
|
declare function useRetractRoadmapVote(options?: Omit<UseMutationOptions<WriteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, string, unknown>;
|
|
1063
|
+
/**
|
|
1064
|
+
* React hook for voting on a roadmap board item. Variable: the item's
|
|
1065
|
+
* `{ did, rkey }`. Returns the same discriminated-union result as
|
|
1066
|
+
* {@link useCastRoadmapVote}.
|
|
1067
|
+
*
|
|
1068
|
+
* Board data from `fetchRoadmap` is usually server-rendered, so the
|
|
1069
|
+
* invalidation here does not refresh it: keep optimistic local state or call
|
|
1070
|
+
* `router.refresh()`. Voting twice is safe; the API answers 200.
|
|
1071
|
+
*/
|
|
1072
|
+
declare function useCastRoadmapItemVote(options?: Omit<UseMutationOptions<CastRoadmapVoteResult, Error, RoadmapItemRef>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<CastRoadmapVoteResult, Error, RoadmapItemRef, unknown>;
|
|
1073
|
+
/** React hook for retracting a vote on a roadmap board item. */
|
|
1074
|
+
declare function useRetractRoadmapItemVote(options?: Omit<UseMutationOptions<WriteResult, Error, RoadmapItemRef>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, RoadmapItemRef, unknown>;
|
|
1063
1075
|
|
|
1064
1076
|
/**
|
|
1065
1077
|
* Read which id.sifa.* collections the current grant cannot delete, so a
|
|
@@ -1255,4 +1267,4 @@ declare function useUpdateUserSettings(): _tanstack_react_query.UseMutationResul
|
|
|
1255
1267
|
showCitationCounts: boolean;
|
|
1256
1268
|
}>, unknown>;
|
|
1257
1269
|
|
|
1258
|
-
export { revokeOrgAttestation as $, type AddFeatureAllowlistVariables as A, type UseMyGithubPullRequestsParams as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, type VerificationEventKind as E, type FetchOrgAttestationOptions as F, type VerificationLog as G, type VerificationLogEntry as H, VerificationLogEntrySchema as I, VerificationLogSchema as J, addProfileEmail as K, createOrgAttestation as L, fetchAttestationRequests as M, fetchOrgAttestations as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, fetchProfileEmails as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, fetchVerificationLog as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, offboardOrgAttestation as W, rejectAttestationRequest as X, removeProfileEmail as Y, requestEmploymentConfirmation as Z, resendProfileEmailVerification as _, type AttestationRequest as a,
|
|
1270
|
+
export { revokeOrgAttestation as $, type AddFeatureAllowlistVariables as A, type UseMyGithubPullRequestsParams as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, type VerificationEventKind as E, type FetchOrgAttestationOptions as F, type VerificationLog as G, type VerificationLogEntry as H, VerificationLogEntrySchema as I, VerificationLogSchema as J, addProfileEmail as K, createOrgAttestation as L, fetchAttestationRequests as M, fetchOrgAttestations as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, fetchProfileEmails as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, fetchVerificationLog as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, offboardOrgAttestation as W, rejectAttestationRequest as X, removeProfileEmail as Y, requestEmploymentConfirmation as Z, resendProfileEmailVerification as _, type AttestationRequest as a, useHideKeytraceClaim as a$, useAccounts as a0, useActivityFeed as a1, useActivityPreferences as a2, useActivityTeaser as a3, useAddFeatureAllowlist as a4, useAddOrgNotificationEmail as a5, useAddProfileEmail as a6, useAdminReviewQueues as a7, useAppAccountCheck as a8, useAppsRegistry as a9, useDeleteNamePronunciationAudio as aA, useDeletePosition as aB, useDeleteProfileLocation as aC, useDeleteReaction as aD, useDeleteRecord as aE, useDeleteRepoRecords as aF, useDeleteSkill as aG, useDismissCompletenessSignal as aH, useDismissConfirmation as aI, useDismissUnlinkedPosition as aJ, useEndorsementCount as aK, useEntitySearch as aL, useExternalAccounts as aM, useFeatureAllowlist as aN, useFeaturedProfile as aO, useFollow as aP, useFollowers as aQ, useFollowing as aR, useFollowingFeed as aS, useFollowingFeedVersion as aT, useFollowingList as aU, useGetProfileView as aV, useGivenConfirmations as aW, useHeatmapData as aX, useHiddenActivityItems as aY, useHiddenApps as aZ, useHideActivityItem as a_, useAtFundLink as aa, useAttestationRequests as ab, useBlueskySuggestions as ac, useBulkHideProfileItems as ad, useBulkHideStandardPublications as ae, useBulkUnhideProfileItems as af, useBulkUnhideStandardPublications as ag, useCanonicalSkillSearch as ah, useCastRoadmapItemVote as ai, useCastRoadmapVote as aj, useClearCompletenessDismissals as ak, useCreateConfirmation as al, useCreateEducation as am, useCreateEndorsement as an, useCreateExternalAccount as ao, useCreateOrgAttestation as ap, useCreatePosition as aq, useCreateProfileLocation as ar, useCreateReaction as as, useCreateRecord as at, useCreateSkill as au, useDebouncedValue as av, useDeleteAccount as aw, useDeleteAvatarOverride as ax, useDeleteEducation as ay, useDeleteExternalAccount as az, AttestationRequestSchema as b, useUnlinkedPositions as b$, useHideOrcidPublication as b0, useHideProfileItem as b1, useHideSifaPublication as b2, useHideStandardPublication as b3, useImportSearchEntities as b4, useInboxCounts as b5, useLinkSkillToPosition as b6, useMintEntityDomain as b7, useMutuals as b8, useMyGithubPullRequests as b9, useRevealMarqueDomain as bA, useRevokeConfirmation as bB, useRevokeOrgAttestation as bC, useRoadmapVotes as bD, useRpgClaimable as bE, useRpgStatus as bF, useSearchFilters as bG, useSearchProfiles as bH, useSelectEntity as bI, useSetExternalAccountPrimary as bJ, useSetPositionPrimary as bK, useSetSectionPrimary as bL, useSifaConfig as bM, useSimilarProfiles as bN, useSiteActivityPreset as bO, useSkillSuggestions as bP, useStats as bQ, useSuggestionCount as bR, useSuggestions as bS, useUnfollow as bT, useUnhideActivityItem as bU, useUnhideKeytraceClaim as bV, useUnhideOrcidPublication as bW, useUnhideProfileItem as bX, useUnhideSifaPublication as bY, useUnhideStandardPublication as bZ, useUnlinkSkillFromPosition as b_, useMyRoadmapVotes as ba, useNetworkStreamCount as bb, useOffboardOrgAttestation as bc, useOrgAttestations as bd, useOrgClaim as be, useOrgDomainChallenge as bf, useOrgDomainVerify as bg, useOrgProfile as bh, usePendingConfirmations as bi, useProfile as bj, useProfileCompleteness as bk, useProfileEmails as bl, useReactionStatus as bm, useRefreshOrcidPublications as bn, useRefreshPds as bo, useRejectAttestationRequest as bp, useRemoveFeatureAllowlist as bq, useRemoveOrgNotificationEmail as br, useRemoveProfileEmail as bs, useRepoInventory as bt, useRequestEmploymentConfirmation as bu, useResendProfileEmailVerification as bv, useResetProfile as bw, useResolveEntityDomain as bx, useRetractRoadmapItemVote as by, useRetractRoadmapVote as bz, type AttestationStatus as c, useUnrevealMarqueDomain as c0, useUnsetExternalAccountPrimary as c1, useUnsetPositionPrimary as c2, useUnsetSectionPrimary as c3, useUpdateActivityPreferences as c4, useUpdateEducation as c5, useUpdateExternalAccount as c6, useUpdateOrgProfile as c7, useUpdatePosition as c8, useUpdateProfileLocation as c9, useUpdateProfileOverride as ca, useUpdateProfileSelf as cb, useUpdateRecord as cc, useUpdateSkill as cd, useUpdateSkillSubCategories as ce, useUpdateUserSettings as cf, useUploadAvatar as cg, useUploadNamePronunciationAudio as ch, useUserSettings as ci, useVerificationLog as cj, useVerifyExternalAccount as ck, useWipePreview as cl, useSearchCompanies as cm, type CreateOrgAttestationResult as d, type CreateReactionVariables as e, type CreateRecordVariables as f, type DeleteRecordVariables as g, type FetchProfileEmailsOptions as h, type FetchVerificationLogOptions as i, type FollowVariables as j, OrgAttestationSchema as k, type ProfileEmail as l, ProfileEmailSchema as m, type ProfileEmailSendStatus as n, type ProfileEmails as o, type RequestEmploymentConfirmationInput as p, type RequestEmploymentConfirmationResult as q, type SifaProviderProps as r, type UpdateEducationVariables as s, type UpdateExternalAccountVariables as t, type UpdatePositionVariables as u, type UpdateProfileLocationVariables as v, type UpdateRecordVariables as w, type UpdateSkillSubCategoriesVariables as x, type UpdateSkillVariables as y, type UseEntitySearchOptions as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-
|
|
1
|
+
import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-CkomzDlY.js';
|
|
2
2
|
import { p as ExternalAccount, B as PositionViewerConfirmation } from './index-DDh2RLvx.js';
|
|
3
3
|
import { a as AccountVerification } from './verification-providers-DeyGqaoC.js';
|
|
4
4
|
import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-CVcA2w1v.js';
|
|
@@ -1582,6 +1582,57 @@ type CastRoadmapVoteResult = {
|
|
|
1582
1582
|
declare function castRoadmapVote(config: SifaApiConfig, key: string, options?: ApiFetchOptions): Promise<CastRoadmapVoteResult>;
|
|
1583
1583
|
/** Retract a previously-cast roadmap vote. */
|
|
1584
1584
|
declare function retractRoadmapVote(config: SifaApiConfig, key: string, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
1585
|
+
/** Roadmap group of a board item (sifa-api `GET /api/roadmap`). */
|
|
1586
|
+
type RoadmapBoardStatus = 'done' | 'in-progress' | 'planned' | 'later' | 'under-review';
|
|
1587
|
+
type RoadmapBoardSize = 'small' | 'medium' | 'epic';
|
|
1588
|
+
/** One item on the roadmap, read from Sifa's userinput.app board. */
|
|
1589
|
+
interface RoadmapBoardItem {
|
|
1590
|
+
/** The `app.userinput.discussion` record URI. */
|
|
1591
|
+
uri: string;
|
|
1592
|
+
/** Author of the discussion (sifa.id or anyone who posted an idea). */
|
|
1593
|
+
did: string;
|
|
1594
|
+
rkey: string;
|
|
1595
|
+
title: string;
|
|
1596
|
+
/** Free text from the record. Render as plain text. */
|
|
1597
|
+
body: string | null;
|
|
1598
|
+
/** Tags without the size tag. */
|
|
1599
|
+
tags: string[];
|
|
1600
|
+
size: RoadmapBoardSize | null;
|
|
1601
|
+
status: RoadmapBoardStatus;
|
|
1602
|
+
votable: boolean;
|
|
1603
|
+
votes: {
|
|
1604
|
+
count: number;
|
|
1605
|
+
voters: RoadmapVoter[];
|
|
1606
|
+
};
|
|
1607
|
+
createdAt: string;
|
|
1608
|
+
/** Whether the signed-in viewer voted. False without a session. */
|
|
1609
|
+
viewerVoted: boolean;
|
|
1610
|
+
}
|
|
1611
|
+
/** Identifies a board item for voting. */
|
|
1612
|
+
interface RoadmapItemRef {
|
|
1613
|
+
did: string;
|
|
1614
|
+
rkey: string;
|
|
1615
|
+
}
|
|
1616
|
+
interface FetchRoadmapOptions extends ApiFetchOptions {
|
|
1617
|
+
/**
|
|
1618
|
+
* Pass the caller's `Cookie` header on Next.js RSC server-side calls so
|
|
1619
|
+
* `viewerVoted` reflects the viewer.
|
|
1620
|
+
*/
|
|
1621
|
+
cookieHeader?: string;
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* The roadmap as built from Sifa's userinput.app board, grouped and ordered
|
|
1625
|
+
* by the API. Returns `null` on any error, so callers can tell an outage from
|
|
1626
|
+
* an empty roadmap.
|
|
1627
|
+
*/
|
|
1628
|
+
declare function fetchRoadmap(config: SifaApiConfig, options?: FetchRoadmapOptions): Promise<RoadmapBoardItem[] | null>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Vote on a roadmap board item. Same result shape and scope handling as
|
|
1631
|
+
* {@link castRoadmapVote}. Never throws.
|
|
1632
|
+
*/
|
|
1633
|
+
declare function castRoadmapItemVote(config: SifaApiConfig, item: RoadmapItemRef, options?: ApiFetchOptions): Promise<CastRoadmapVoteResult>;
|
|
1634
|
+
/** Retract a vote on a roadmap board item. */
|
|
1635
|
+
declare function retractRoadmapItemVote(config: SifaApiConfig, item: RoadmapItemRef, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
1585
1636
|
|
|
1586
1637
|
/**
|
|
1587
1638
|
* What the server managed to remove from the user's PDS.
|
|
@@ -1930,7 +1981,8 @@ interface OrgNotificationEmailRemoveResult {
|
|
|
1930
1981
|
* Finalize an org profile claim (`POST /api/org/claim`). Auth-gated (org-claim
|
|
1931
1982
|
* JIT scope) and floor-checked server-side. Never throws -- returns the
|
|
1932
1983
|
* structured {@link OrgClaimResult} folded into a {@link WriteResult} on success,
|
|
1933
|
-
* or `{ success: false, error, pdsHost? }` on failure.
|
|
1984
|
+
* or `{ success: false, error, pdsHost?, code? }` on failure. A claim refused for
|
|
1985
|
+
* a handle without a custom domain carries `code: 'CustomDomainRequired'`.
|
|
1934
1986
|
*/
|
|
1935
1987
|
declare function submitOrgClaim(config: SifaApiConfig, body: OrgClaimRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult<Partial<OrgClaimResult>>>;
|
|
1936
1988
|
/**
|
|
@@ -1985,4 +2037,4 @@ declare function fetchUserSettings(config: SifaApiConfig, options?: FetchUserSet
|
|
|
1985
2037
|
/** Save the given preferences. Returns the stored settings, or `null` on failure. */
|
|
1986
2038
|
declare function updateUserSettings(config: SifaApiConfig, patch: UserSettingsPatch): Promise<UserSettings | null>;
|
|
1987
2039
|
|
|
1988
|
-
export { type
|
|
2040
|
+
export { type FollowingFeedResponse as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchFollowingFeedOptions as G, type FetchHiddenActivityItemsOptions as H, type FetchHiddenAppsOptions as I, type FetchInboxCountsOptions as J, type FetchMyGithubPullRequestsOptions as K, type FetchMyRoadmapVotesOptions as L, type FetchProfileCompletenessOptions as M, type FetchReactionStatusOptions as N, type FetchRoadmapOptions as O, type FetchRpgClaimableOptions as P, type FetchRpgStatusOptions as Q, type FetchSuggestionsOptions as R, type FetchUnlinkedPositionsOptions as S, type FetchUserSettingsOptions as T, type FollowListPage as U, type FollowProfile as V, type FollowProfilePageResponse as W, type FollowUserResult as X, type FollowingFeedApp as Y, type FollowingFeedBuild as Z, type FollowingFeedEmptyReason as _, type ConfirmEndorsementResult as a, RpgStatusResponseSchema as a$, type FollowingFeedVersion as a0, type FollowingResponse as a1, type GetAdminReviewQueuesOptions as a2, type GithubPullRequest as a3, type GivenConfirmation as a4, HIDDEN_ITEM_SOURCES as a5, HIDDEN_ITEM_TYPES as a6, type HeatmapDay as a7, type HeatmapResponse as a8, type HiddenActivityItem as a9, type ProfileSelfLocation as aA, QUOTED_POSTS_BATCH_MAX as aB, type QuotedPostAuthor as aC, type QuotedPostImage as aD, type QuotedPostResult as aE, type QuotedPostView as aF, type ReactionError as aG, type ReactionResult as aH, type ReactionStatus as aI, type RefreshOrcidPublicationsResult as aJ, type RefreshPdsResult as aK, type RepoDeleteInput as aL, type ResetProfileResult as aM, type ResolveQuotedPostsOptions as aN, type RoadmapBoardItem as aO, type RoadmapBoardSize as aP, type RoadmapBoardStatus as aQ, type RoadmapItemRef as aR, type RoadmapVoteError as aS, type RoadmapVoteResult as aT, type RoadmapVoter as aU, type RoadmapVotesResponse as aV, type RpgClaimableResponse as aW, RpgClaimableResponseSchema as aX, type RpgItemStatus as aY, RpgItemStatusSchema as aZ, type RpgStatusResponse as a_, type HiddenApp as aa, type HiddenItemSource as ab, type HiddenItemType as ac, type HideActivityItemInput as ad, type HideProfileItemInput as ae, type InboxCounts as af, type ListFeatureAllowlistOptions as ag, type MyGithubPullRequestsResponse as ah, type OrgClaimBinding as ai, type OrgClaimResult as aj, type OrgDomainChallengeResult as ak, type OrgDomainVerifyResult as al, type OrgNotificationEmailAddResult as am, type OrgNotificationEmailRemoveResult as an, type OrgProfileEcho as ao, type OrgProfileUpdateResult as ap, PROFILE_COMPLETENESS_SIGNALS as aq, type PdsWipeOutcome as ar, type PendingConfirmation as as, type PendingConfirmationsPage as at, type PrimarySection as au, type ProfileCompleteness as av, type ProfileCompletenessSignal as aw, type ProfileIndustryInput as ax, type ProfileLocationAddress as ay, type ProfileLocationInput as az, type AccountSummary as b, fetchMyGithubPullRequests as b$, type SifaQueryKey as b0, type SimilarProfile as b1, type SiteActivityPresetResponse as b2, type StatsResponse as b3, type SubCategoryBulkResult as b4, type SuggestionProfile as b5, type SuggestionsResponse as b6, type UnhideActivityItemInput as b7, type UnlinkedPosition as b8, type UnlinkedPositionsResult as b9, createSkill as bA, deleteAccount as bB, deleteAvatarOverride as bC, deleteExternalAccount as bD, deleteNamePronunciationAudio as bE, deleteProfileLocation as bF, deleteReaction as bG, deleteRepoRecords as bH, deleteSkill as bI, dismissCompletenessSignal as bJ, dismissConfirmation as bK, dismissUnlinkedPosition as bL, fetchAccounts as bM, fetchActivityFeed as bN, fetchActivityPreferences as bO, fetchActivityTeaser as bP, fetchAppsRegistry as bQ, fetchExternalAccounts as bR, fetchFeaturedProfile as bS, fetchFollowing as bT, fetchFollowingFeed as bU, fetchFollowingFeedVersion as bV, fetchGivenConfirmations as bW, fetchHeatmapData as bX, fetchHiddenActivityItems as bY, fetchHiddenApps as bZ, fetchInboxCounts as b_, type UpdateActivityPreferencesInput as ba, type UpdateProfileOverrideInput as bb, type UpdateProfileSelfInput as bc, type UploadAvatarResult as bd, type UploadPronunciationAudioResult as be, type UserSettings as bf, type UserSettingsPatch as bg, UserSettingsSchema as bh, type VerifyExternalAccountResult as bi, type WipePreview as bj, addFeatureAllowlist as bk, addOrgNotificationEmail as bl, bulkHideProfileItems as bm, bulkHideStandardPublications as bn, bulkUnhideProfileItems as bo, bulkUnhideStandardPublications as bp, castRoadmapItemVote as bq, castRoadmapVote as br, checkAppAccount as bs, clearCompletenessDismissals as bt, confirmEndorsement as bu, createConfirmation as bv, createEndorsement as bw, createExternalAccount as bx, createProfileLocation as by, createReaction as bz, type ActivityFeedResponse as c, uploadAvatar as c$, fetchMyRoadmapVotes as c0, fetchPendingConfirmations as c1, fetchProfileCompleteness as c2, fetchReactionStatus as c3, fetchRepoInventory as c4, fetchRoadmap as c5, fetchRoadmapVotes as c6, fetchRpgClaimable as c7, fetchRpgStatus as c8, fetchSimilarProfiles as c9, requestOrgDomainChallenge as cA, resetProfile as cB, resolveQuotedPosts as cC, retractRoadmapItemVote as cD, retractRoadmapVote as cE, revokeConfirmation as cF, setExternalAccountPrimary as cG, setSectionPrimary as cH, submitOrgClaim as cI, switchAccount as cJ, unfollowUser as cK, unhideActivityItem as cL, unhideOrcidPublication as cM, unhideProfileItem as cN, unhideSifaPublication as cO, unhideStandardPublication as cP, unsetExternalAccountPrimary as cQ, unsetSectionPrimary as cR, updateActivityPreferences as cS, updateExternalAccount as cT, updateOrgProfile as cU, updateProfileLocation as cV, updateProfileOverride as cW, updateProfileSelf as cX, updateSkill as cY, updateSkillSubCategories as cZ, updateUserSettings as c_, fetchSiteActivityPreset as ca, fetchStats as cb, fetchSuggestionCount as cc, fetchSuggestions as cd, fetchUnlinkedPositions as ce, fetchUserSettings as cf, fetchViewerPositionConfirmations as cg, fetchWipePreview as ch, followUser as ci, getAdminReviewQueues as cj, getBlueskySuggestions as ck, getFollowers as cl, getFollowing as cm, getMutuals as cn, hideActivityItem as co, hideOrcidPublication as cp, hideProfileItem as cq, hideSifaPublication as cr, hideStandardPublication as cs, isNewerFollowingFeed as ct, listFeatureAllowlist as cu, refreshOrcidPublications as cv, refreshPds as cw, removeFeatureAllowlist as cx, removeOrgNotificationEmail as cy, repoExportUrl as cz, type ActivityItem as d, uploadNamePronunciationAudio as d0, verifyExternalAccount as d1, verifyOrgDomain as d2, type ActivityItemLinkHealth as e, type ActivityPreferences as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type ConfirmationInput as l, type ConfirmationSubjectInput as m, type CreateExternalAccountResult as n, type DismissCompletenessSignalInput as o, type DismissUnlinkedPositionInput as p, type ExternalAccountInput as q, type FeaturedProfile as r, sifaQueryKeys as s, type FetchAccountsOptions as t, type FetchActivityFeedOptions as u, type FetchActivityPreferencesOptions as v, type FetchActivityTeaserOptions as w, type FetchConfirmationsOptions as x, type FetchFollowListOptions as y, type FetchFollowProfilePageOptions as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-
|
|
1
|
+
import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-JydVIhN5.cjs';
|
|
2
2
|
import { p as ExternalAccount, B as PositionViewerConfirmation } from './index-BQAKeEoj.cjs';
|
|
3
3
|
import { a as AccountVerification } from './verification-providers-DeyGqaoC.cjs';
|
|
4
4
|
import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-CgLLLQtJ.cjs';
|
|
@@ -1582,6 +1582,57 @@ type CastRoadmapVoteResult = {
|
|
|
1582
1582
|
declare function castRoadmapVote(config: SifaApiConfig, key: string, options?: ApiFetchOptions): Promise<CastRoadmapVoteResult>;
|
|
1583
1583
|
/** Retract a previously-cast roadmap vote. */
|
|
1584
1584
|
declare function retractRoadmapVote(config: SifaApiConfig, key: string, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
1585
|
+
/** Roadmap group of a board item (sifa-api `GET /api/roadmap`). */
|
|
1586
|
+
type RoadmapBoardStatus = 'done' | 'in-progress' | 'planned' | 'later' | 'under-review';
|
|
1587
|
+
type RoadmapBoardSize = 'small' | 'medium' | 'epic';
|
|
1588
|
+
/** One item on the roadmap, read from Sifa's userinput.app board. */
|
|
1589
|
+
interface RoadmapBoardItem {
|
|
1590
|
+
/** The `app.userinput.discussion` record URI. */
|
|
1591
|
+
uri: string;
|
|
1592
|
+
/** Author of the discussion (sifa.id or anyone who posted an idea). */
|
|
1593
|
+
did: string;
|
|
1594
|
+
rkey: string;
|
|
1595
|
+
title: string;
|
|
1596
|
+
/** Free text from the record. Render as plain text. */
|
|
1597
|
+
body: string | null;
|
|
1598
|
+
/** Tags without the size tag. */
|
|
1599
|
+
tags: string[];
|
|
1600
|
+
size: RoadmapBoardSize | null;
|
|
1601
|
+
status: RoadmapBoardStatus;
|
|
1602
|
+
votable: boolean;
|
|
1603
|
+
votes: {
|
|
1604
|
+
count: number;
|
|
1605
|
+
voters: RoadmapVoter[];
|
|
1606
|
+
};
|
|
1607
|
+
createdAt: string;
|
|
1608
|
+
/** Whether the signed-in viewer voted. False without a session. */
|
|
1609
|
+
viewerVoted: boolean;
|
|
1610
|
+
}
|
|
1611
|
+
/** Identifies a board item for voting. */
|
|
1612
|
+
interface RoadmapItemRef {
|
|
1613
|
+
did: string;
|
|
1614
|
+
rkey: string;
|
|
1615
|
+
}
|
|
1616
|
+
interface FetchRoadmapOptions extends ApiFetchOptions {
|
|
1617
|
+
/**
|
|
1618
|
+
* Pass the caller's `Cookie` header on Next.js RSC server-side calls so
|
|
1619
|
+
* `viewerVoted` reflects the viewer.
|
|
1620
|
+
*/
|
|
1621
|
+
cookieHeader?: string;
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* The roadmap as built from Sifa's userinput.app board, grouped and ordered
|
|
1625
|
+
* by the API. Returns `null` on any error, so callers can tell an outage from
|
|
1626
|
+
* an empty roadmap.
|
|
1627
|
+
*/
|
|
1628
|
+
declare function fetchRoadmap(config: SifaApiConfig, options?: FetchRoadmapOptions): Promise<RoadmapBoardItem[] | null>;
|
|
1629
|
+
/**
|
|
1630
|
+
* Vote on a roadmap board item. Same result shape and scope handling as
|
|
1631
|
+
* {@link castRoadmapVote}. Never throws.
|
|
1632
|
+
*/
|
|
1633
|
+
declare function castRoadmapItemVote(config: SifaApiConfig, item: RoadmapItemRef, options?: ApiFetchOptions): Promise<CastRoadmapVoteResult>;
|
|
1634
|
+
/** Retract a vote on a roadmap board item. */
|
|
1635
|
+
declare function retractRoadmapItemVote(config: SifaApiConfig, item: RoadmapItemRef, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
1585
1636
|
|
|
1586
1637
|
/**
|
|
1587
1638
|
* What the server managed to remove from the user's PDS.
|
|
@@ -1930,7 +1981,8 @@ interface OrgNotificationEmailRemoveResult {
|
|
|
1930
1981
|
* Finalize an org profile claim (`POST /api/org/claim`). Auth-gated (org-claim
|
|
1931
1982
|
* JIT scope) and floor-checked server-side. Never throws -- returns the
|
|
1932
1983
|
* structured {@link OrgClaimResult} folded into a {@link WriteResult} on success,
|
|
1933
|
-
* or `{ success: false, error, pdsHost? }` on failure.
|
|
1984
|
+
* or `{ success: false, error, pdsHost?, code? }` on failure. A claim refused for
|
|
1985
|
+
* a handle without a custom domain carries `code: 'CustomDomainRequired'`.
|
|
1934
1986
|
*/
|
|
1935
1987
|
declare function submitOrgClaim(config: SifaApiConfig, body: OrgClaimRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult<Partial<OrgClaimResult>>>;
|
|
1936
1988
|
/**
|
|
@@ -1985,4 +2037,4 @@ declare function fetchUserSettings(config: SifaApiConfig, options?: FetchUserSet
|
|
|
1985
2037
|
/** Save the given preferences. Returns the stored settings, or `null` on failure. */
|
|
1986
2038
|
declare function updateUserSettings(config: SifaApiConfig, patch: UserSettingsPatch): Promise<UserSettings | null>;
|
|
1987
2039
|
|
|
1988
|
-
export { type
|
|
2040
|
+
export { type FollowingFeedResponse as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchFollowingFeedOptions as G, type FetchHiddenActivityItemsOptions as H, type FetchHiddenAppsOptions as I, type FetchInboxCountsOptions as J, type FetchMyGithubPullRequestsOptions as K, type FetchMyRoadmapVotesOptions as L, type FetchProfileCompletenessOptions as M, type FetchReactionStatusOptions as N, type FetchRoadmapOptions as O, type FetchRpgClaimableOptions as P, type FetchRpgStatusOptions as Q, type FetchSuggestionsOptions as R, type FetchUnlinkedPositionsOptions as S, type FetchUserSettingsOptions as T, type FollowListPage as U, type FollowProfile as V, type FollowProfilePageResponse as W, type FollowUserResult as X, type FollowingFeedApp as Y, type FollowingFeedBuild as Z, type FollowingFeedEmptyReason as _, type ConfirmEndorsementResult as a, RpgStatusResponseSchema as a$, type FollowingFeedVersion as a0, type FollowingResponse as a1, type GetAdminReviewQueuesOptions as a2, type GithubPullRequest as a3, type GivenConfirmation as a4, HIDDEN_ITEM_SOURCES as a5, HIDDEN_ITEM_TYPES as a6, type HeatmapDay as a7, type HeatmapResponse as a8, type HiddenActivityItem as a9, type ProfileSelfLocation as aA, QUOTED_POSTS_BATCH_MAX as aB, type QuotedPostAuthor as aC, type QuotedPostImage as aD, type QuotedPostResult as aE, type QuotedPostView as aF, type ReactionError as aG, type ReactionResult as aH, type ReactionStatus as aI, type RefreshOrcidPublicationsResult as aJ, type RefreshPdsResult as aK, type RepoDeleteInput as aL, type ResetProfileResult as aM, type ResolveQuotedPostsOptions as aN, type RoadmapBoardItem as aO, type RoadmapBoardSize as aP, type RoadmapBoardStatus as aQ, type RoadmapItemRef as aR, type RoadmapVoteError as aS, type RoadmapVoteResult as aT, type RoadmapVoter as aU, type RoadmapVotesResponse as aV, type RpgClaimableResponse as aW, RpgClaimableResponseSchema as aX, type RpgItemStatus as aY, RpgItemStatusSchema as aZ, type RpgStatusResponse as a_, type HiddenApp as aa, type HiddenItemSource as ab, type HiddenItemType as ac, type HideActivityItemInput as ad, type HideProfileItemInput as ae, type InboxCounts as af, type ListFeatureAllowlistOptions as ag, type MyGithubPullRequestsResponse as ah, type OrgClaimBinding as ai, type OrgClaimResult as aj, type OrgDomainChallengeResult as ak, type OrgDomainVerifyResult as al, type OrgNotificationEmailAddResult as am, type OrgNotificationEmailRemoveResult as an, type OrgProfileEcho as ao, type OrgProfileUpdateResult as ap, PROFILE_COMPLETENESS_SIGNALS as aq, type PdsWipeOutcome as ar, type PendingConfirmation as as, type PendingConfirmationsPage as at, type PrimarySection as au, type ProfileCompleteness as av, type ProfileCompletenessSignal as aw, type ProfileIndustryInput as ax, type ProfileLocationAddress as ay, type ProfileLocationInput as az, type AccountSummary as b, fetchMyGithubPullRequests as b$, type SifaQueryKey as b0, type SimilarProfile as b1, type SiteActivityPresetResponse as b2, type StatsResponse as b3, type SubCategoryBulkResult as b4, type SuggestionProfile as b5, type SuggestionsResponse as b6, type UnhideActivityItemInput as b7, type UnlinkedPosition as b8, type UnlinkedPositionsResult as b9, createSkill as bA, deleteAccount as bB, deleteAvatarOverride as bC, deleteExternalAccount as bD, deleteNamePronunciationAudio as bE, deleteProfileLocation as bF, deleteReaction as bG, deleteRepoRecords as bH, deleteSkill as bI, dismissCompletenessSignal as bJ, dismissConfirmation as bK, dismissUnlinkedPosition as bL, fetchAccounts as bM, fetchActivityFeed as bN, fetchActivityPreferences as bO, fetchActivityTeaser as bP, fetchAppsRegistry as bQ, fetchExternalAccounts as bR, fetchFeaturedProfile as bS, fetchFollowing as bT, fetchFollowingFeed as bU, fetchFollowingFeedVersion as bV, fetchGivenConfirmations as bW, fetchHeatmapData as bX, fetchHiddenActivityItems as bY, fetchHiddenApps as bZ, fetchInboxCounts as b_, type UpdateActivityPreferencesInput as ba, type UpdateProfileOverrideInput as bb, type UpdateProfileSelfInput as bc, type UploadAvatarResult as bd, type UploadPronunciationAudioResult as be, type UserSettings as bf, type UserSettingsPatch as bg, UserSettingsSchema as bh, type VerifyExternalAccountResult as bi, type WipePreview as bj, addFeatureAllowlist as bk, addOrgNotificationEmail as bl, bulkHideProfileItems as bm, bulkHideStandardPublications as bn, bulkUnhideProfileItems as bo, bulkUnhideStandardPublications as bp, castRoadmapItemVote as bq, castRoadmapVote as br, checkAppAccount as bs, clearCompletenessDismissals as bt, confirmEndorsement as bu, createConfirmation as bv, createEndorsement as bw, createExternalAccount as bx, createProfileLocation as by, createReaction as bz, type ActivityFeedResponse as c, uploadAvatar as c$, fetchMyRoadmapVotes as c0, fetchPendingConfirmations as c1, fetchProfileCompleteness as c2, fetchReactionStatus as c3, fetchRepoInventory as c4, fetchRoadmap as c5, fetchRoadmapVotes as c6, fetchRpgClaimable as c7, fetchRpgStatus as c8, fetchSimilarProfiles as c9, requestOrgDomainChallenge as cA, resetProfile as cB, resolveQuotedPosts as cC, retractRoadmapItemVote as cD, retractRoadmapVote as cE, revokeConfirmation as cF, setExternalAccountPrimary as cG, setSectionPrimary as cH, submitOrgClaim as cI, switchAccount as cJ, unfollowUser as cK, unhideActivityItem as cL, unhideOrcidPublication as cM, unhideProfileItem as cN, unhideSifaPublication as cO, unhideStandardPublication as cP, unsetExternalAccountPrimary as cQ, unsetSectionPrimary as cR, updateActivityPreferences as cS, updateExternalAccount as cT, updateOrgProfile as cU, updateProfileLocation as cV, updateProfileOverride as cW, updateProfileSelf as cX, updateSkill as cY, updateSkillSubCategories as cZ, updateUserSettings as c_, fetchSiteActivityPreset as ca, fetchStats as cb, fetchSuggestionCount as cc, fetchSuggestions as cd, fetchUnlinkedPositions as ce, fetchUserSettings as cf, fetchViewerPositionConfirmations as cg, fetchWipePreview as ch, followUser as ci, getAdminReviewQueues as cj, getBlueskySuggestions as ck, getFollowers as cl, getFollowing as cm, getMutuals as cn, hideActivityItem as co, hideOrcidPublication as cp, hideProfileItem as cq, hideSifaPublication as cr, hideStandardPublication as cs, isNewerFollowingFeed as ct, listFeatureAllowlist as cu, refreshOrcidPublications as cv, refreshPds as cw, removeFeatureAllowlist as cx, removeOrgNotificationEmail as cy, repoExportUrl as cz, type ActivityItem as d, uploadNamePronunciationAudio as d0, verifyExternalAccount as d1, verifyOrgDomain as d2, type ActivityItemLinkHealth as e, type ActivityPreferences as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type ConfirmationInput as l, type ConfirmationSubjectInput as m, type CreateExternalAccountResult as n, type DismissCompletenessSignalInput as o, type DismissUnlinkedPositionInput as p, type ExternalAccountInput as q, type FeaturedProfile as r, sifaQueryKeys as s, type FetchAccountsOptions as t, type FetchActivityFeedOptions as u, type FetchActivityPreferencesOptions as v, type FetchActivityTeaserOptions as w, type FetchConfirmationsOptions as x, type FetchFollowListOptions as y, type FetchFollowProfilePageOptions as z };
|
package/package.json
CHANGED