@singi-labs/sifa-sdk 0.19.74 → 0.19.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/format/index.js +2 -0
  2. package/dist/format/index.js.map +1 -1
  3. package/dist/format/openalex.js +10 -0
  4. package/dist/format/openalex.js.map +1 -0
  5. package/dist/{index-BFdNI6jA.d.ts → index-DAiJZvPg.d.ts} +8 -0
  6. package/dist/{index-BzkaABDb.d.cts → index-k6tBrbEU.d.cts} +8 -0
  7. package/dist/index.cjs +71 -1
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +14 -6
  10. package/dist/index.d.ts +14 -6
  11. package/dist/index.js +27 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/jsonld/index.d.cts +1 -1
  14. package/dist/jsonld/index.d.ts +1 -1
  15. package/dist/logic/index.js +26 -0
  16. package/dist/logic/index.js.map +1 -1
  17. package/dist/logic/site-activity-preset.js +68 -0
  18. package/dist/logic/site-activity-preset.js.map +1 -0
  19. package/dist/{network-map-BRBzAHrT.d.cts → network-map-DInAc_DB.d.cts} +3 -3
  20. package/dist/{network-map-DIUQSB0r.d.ts → network-map-DvALufF9.d.ts} +3 -3
  21. package/dist/{profile-summary-X4MGExfS.d.cts → profile-summary-BcbJrph1.d.cts} +1 -1
  22. package/dist/{profile-summary-6GySSJvO.d.ts → profile-summary-PRDqxAQT.d.ts} +1 -1
  23. package/dist/query/fetchers/activity-preferences.js +43 -0
  24. package/dist/query/fetchers/activity-preferences.js.map +1 -0
  25. package/dist/query/fetchers/activity.js +3 -0
  26. package/dist/query/fetchers/activity.js.map +1 -1
  27. package/dist/query/fetchers/index.cjs +88 -1
  28. package/dist/query/fetchers/index.cjs.map +1 -1
  29. package/dist/query/fetchers/index.d.cts +6 -6
  30. package/dist/query/fetchers/index.d.ts +6 -6
  31. package/dist/query/fetchers/index.js +16 -0
  32. package/dist/query/fetchers/index.js.map +1 -1
  33. package/dist/query/fetchers/user-settings.js +48 -0
  34. package/dist/query/fetchers/user-settings.js.map +1 -0
  35. package/dist/query/hooks/index.cjs +141 -1
  36. package/dist/query/hooks/index.cjs.map +1 -1
  37. package/dist/query/hooks/index.d.cts +4 -4
  38. package/dist/query/hooks/index.d.ts +4 -4
  39. package/dist/query/hooks/index.js +11 -0
  40. package/dist/query/hooks/index.js.map +1 -1
  41. package/dist/query/hooks/use-activity-preferences.js +53 -0
  42. package/dist/query/hooks/use-activity-preferences.js.map +1 -0
  43. package/dist/query/hooks/use-activity.js.map +1 -1
  44. package/dist/query/hooks/use-user-settings.js +34 -0
  45. package/dist/query/hooks/use-user-settings.js.map +1 -0
  46. package/dist/query/index.cjs +143 -1
  47. package/dist/query/index.cjs.map +1 -1
  48. package/dist/query/index.d.cts +9 -9
  49. package/dist/query/index.d.ts +9 -9
  50. package/dist/query/index.js +27 -0
  51. package/dist/query/index.js.map +1 -1
  52. package/dist/query/keys.js +7 -1
  53. package/dist/query/keys.js.map +1 -1
  54. package/dist/resume/index.d.cts +1 -1
  55. package/dist/resume/index.d.ts +1 -1
  56. package/dist/types/index.js.map +1 -1
  57. package/dist/{types-DxMMqOJo.d.ts → types-CI24asgo.d.ts} +72 -2
  58. package/dist/{types-DXep6553.d.cts → types-qw55KvoV.d.cts} +72 -2
  59. package/dist/{use-org-notification-emails-CfDfHwBl.d.ts → use-user-settings-B1rJmjQR.d.ts} +32 -5
  60. package/dist/{use-org-notification-emails-5V3ZAlRd.d.cts → use-user-settings-CYDXJNmI.d.cts} +32 -5
  61. package/dist/{org-Spq8yU-B.d.ts → user-settings-Qwi6wSnK.d.ts} +89 -4
  62. package/dist/{org-A9Tz-Uv9.d.cts → user-settings-lenJHz19.d.cts} +89 -4
  63. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { K as SifaApiConfig, M as ApiFetchOptions, W as WriteResult, n as ProfileView, N as CreateResult, Q as FilterOptions, S as SearchFilters, X as SearchResponse, Y as SkillSearchResult, a5 as CompanySearchFilters, a6 as CompanySearchResponse, t as RepoDeleteResult, w as RepoInventory } from './types-DXep6553.cjs';
3
+ import { a0 as SifaApiConfig, a1 as ApiFetchOptions, a3 as WriteResult, o as ProfileView, a2 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-qw55KvoV.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { c as Profile, d as ProfilePosition, W as SkillRef, p as ExternalAccount, X as SkillSuggestion, s as OrgFloorVerdict } from './index-BzkaABDb.cjs';
7
- import { s as sifaQueryKeys, aD as RefreshPdsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, an as PrimarySection, aO as SubCategoryBulkResult, as as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aY as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Z as GivenConfirmation, am as PendingConfirmationsPage, a8 as InboxCounts, n as DismissUnlinkedPositionInput, aT as UnlinkedPositionsResult, ao as ProfileCompleteness, aC as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a7 as HideProfileItemInput, a2 as HiddenActivityItem, a6 as HideActivityItemInput, aR as UnhideActivityItemInput, aN as StatsResponse, h as AppRegistryEntry, a3 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aM as SimilarProfile, L as FetchSuggestionsOptions, aQ as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, W as FollowingResponse, x as FetchFollowingFeedOptions, U as FollowingFeedResponse, V as FollowingFeedVersion, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a1 as HeatmapResponse, aa as MyGithubPullRequestsResponse, A as AccountCheckResult, aB as ReactionStatus, aA as ReactionResult, az as ReactionError, aK as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aF as ResetProfileResult, aZ as WipePreview, aE as RepoDeleteInput, ac as OrgClaimResult, ai as OrgProfileUpdateResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult } from './org-A9Tz-Uv9.cjs';
6
+ import { c as Profile, d as ProfilePosition, W as SkillRef, p as ExternalAccount, X as SkillSuggestion, s as OrgFloorVerdict } from './index-k6tBrbEU.cjs';
7
+ import { s as sifaQueryKeys, aG as RefreshPdsResult, aZ as UpdateProfileOverrideInput, a_ as UpdateProfileSelfInput, a$ as UploadAvatarResult, b0 as UploadPronunciationAudioResult, aq as PrimarySection, aS as SubCategoryBulkResult, av as ProfileLocationInput, p as ExternalAccountInput, n as CreateExternalAccountResult, b4 as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a0 as GivenConfirmation, ap as PendingConfirmationsPage, ab as InboxCounts, o as DismissUnlinkedPositionInput, aX as UnlinkedPositionsResult, ar as ProfileCompleteness, aF as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, aa as HideProfileItemInput, a5 as HiddenActivityItem, a9 as HideActivityItemInput, aV as UnhideActivityItemInput, f as ActivityPreferences, aQ as SiteActivityPresetResponse, aY as UpdateActivityPreferencesInput, aR as StatsResponse, i as AppRegistryEntry, a6 as HiddenApp, b as AccountSummary, q as FeaturedProfile, aP as SimilarProfile, N as FetchSuggestionsOptions, aU as SuggestionsResponse, T as FollowUserResult, x as FetchFollowListOptions, Q as FollowListPage, Z as FollowingResponse, z as FetchFollowingFeedOptions, X as FollowingFeedResponse, Y as FollowingFeedVersion, y as FetchFollowProfilePageOptions, S as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, t as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a4 as HeatmapResponse, ad as MyGithubPullRequestsResponse, A as AccountCheckResult, aE as ReactionStatus, aD as ReactionResult, aC as ReactionError, aN as RoadmapVotesResponse, j as CastRoadmapVoteResult, D as DeleteAccountResult, aI as ResetProfileResult, b5 as WipePreview, aH as RepoDeleteInput, af as OrgClaimResult, al as OrgProfileUpdateResult, ag as OrgDomainChallengeResult, ah as OrgDomainVerifyResult, ai as OrgNotificationEmailAddResult, aj as OrgNotificationEmailRemoveResult, b1 as UserSettings } from './user-settings-lenJHz19.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-CQ3DTTak.cjs';
10
10
  import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-C73Sin5E.cjs';
@@ -546,6 +546,13 @@ declare const useHideActivityItem: (options?: Omit<UseMutationOptions<WriteResul
546
546
  /** Restore a previously-hidden activity item. */
547
547
  declare const useUnhideActivityItem: (options?: Omit<UseMutationOptions<WriteResult, Error, UnhideActivityItemInput, unknown>, "mutationFn"> | undefined) => _tanstack_react_query.UseMutationResult<WriteResult, Error, UnhideActivityItemInput, unknown>;
548
548
 
549
+ /** The authenticated user's own activity preferences. */
550
+ declare function useActivityPreferences(options?: Omit<UseQueryOptions<ActivityPreferences | null, Error, ActivityPreferences | null, ReturnType<typeof sifaQueryKeys.activity.preferences>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<ActivityPreferences | null, Error>;
551
+ /** Anyone's personal-site preset, by handle or DID. */
552
+ declare function useSiteActivityPreset(handleOrDid: string | undefined | null, options?: Omit<UseQueryOptions<SiteActivityPresetResponse | null, Error, SiteActivityPresetResponse | null, ReturnType<typeof sifaQueryKeys.activity.sitePreset>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<SiteActivityPresetResponse | null, Error>;
553
+ /** Update the caller's own preferences, then refresh every activity query. */
554
+ declare function useUpdateActivityPreferences(options?: Omit<UseMutationOptions<WriteResult<Partial<ActivityPreferences>>, Error, UpdateActivityPreferencesInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<Partial<ActivityPreferences>>, Error, UpdateActivityPreferencesInput, unknown>;
555
+
549
556
  /**
550
557
  * React hook for the public homepage stats. Returns `null` data on error.
551
558
  */
@@ -831,7 +838,7 @@ declare function useAdminReviewQueues(options?: Omit<UseQueryOptions<AdminReview
831
838
 
832
839
  declare function useHeatmapData(handleOrDid: string | undefined | null, days: number, options?: Omit<UseQueryOptions<HeatmapResponse | null, Error, HeatmapResponse | null, ReturnType<typeof sifaQueryKeys.activity.heatmap>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<HeatmapResponse | null, Error>;
833
840
  declare function useActivityTeaser(handleOrDid: string | undefined | null, options?: Omit<UseQueryOptions<ActivityTeaserResponse | null, Error, ActivityTeaserResponse | null, ReturnType<typeof sifaQueryKeys.activity.teaser>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<ActivityTeaserResponse | null, Error>;
834
- declare function useActivityFeed(handleOrDid: string | undefined | null, opts?: Pick<FetchActivityFeedOptions, 'category' | 'limit' | 'cursor'>, options?: Omit<UseQueryOptions<ActivityFeedResponse | null, Error, ActivityFeedResponse | null, ReturnType<typeof sifaQueryKeys.activity.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<ActivityFeedResponse | null, Error>;
841
+ declare function useActivityFeed(handleOrDid: string | undefined | null, opts?: Pick<FetchActivityFeedOptions, 'category' | 'categories' | 'tags' | 'preset' | 'limit' | 'cursor'>, options?: Omit<UseQueryOptions<ActivityFeedResponse | null, Error, ActivityFeedResponse | null, ReturnType<typeof sifaQueryKeys.activity.feed>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<ActivityFeedResponse | null, Error>;
835
842
 
836
843
  interface UseMyGithubPullRequestsParams {
837
844
  limit?: number;
@@ -1100,4 +1107,24 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
1100
1107
  email: string;
1101
1108
  }, unknown>;
1102
1109
 
1103
- export { useAtFundLink as $, type AddFeatureAllowlistVariables as A, VerificationLogSchema as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, createOrgAttestation as E, type FetchOrgAttestationOptions as F, fetchAttestationRequests as G, fetchOrgAttestations as H, fetchVerificationLog as I, offboardOrgAttestation as J, rejectAttestationRequest as K, requestEmploymentConfirmation as L, revokeOrgAttestation as M, useAccounts as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, useActivityFeed as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useActivityTeaser as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, useAddFeatureAllowlist as W, useAddOrgNotificationEmail as X, useAdminReviewQueues as Y, useAppAccountCheck as Z, useAppsRegistry as _, type AttestationRequest as a, useOrgAttestations as a$, useAttestationRequests as a0, useBlueskySuggestions as a1, useBulkHideProfileItems as a2, useBulkHideStandardPublications as a3, useBulkUnhideProfileItems as a4, useBulkUnhideStandardPublications as a5, useCanonicalSkillSearch as a6, useCastRoadmapVote as a7, useCreateConfirmation as a8, useCreateEducation as a9, useFeaturedProfile as aA, useFollow as aB, useFollowers as aC, useFollowing as aD, useFollowingFeed as aE, useFollowingFeedVersion as aF, useFollowingList as aG, useGetProfileView as aH, useGivenConfirmations as aI, useHeatmapData as aJ, useHiddenActivityItems as aK, useHiddenApps as aL, useHideActivityItem as aM, useHideKeytraceClaim as aN, useHideOrcidPublication as aO, useHideProfileItem as aP, useHideSifaPublication as aQ, useHideStandardPublication as aR, useImportSearchEntities as aS, useInboxCounts as aT, useLinkSkillToPosition as aU, useMintEntityDomain as aV, useMutuals as aW, useMyGithubPullRequests as aX, useMyRoadmapVotes as aY, useNetworkStreamCount as aZ, useOffboardOrgAttestation as a_, useCreateEndorsement as aa, useCreateExternalAccount as ab, useCreateOrgAttestation as ac, useCreatePosition as ad, useCreateProfileLocation as ae, useCreateReaction as af, useCreateRecord as ag, useCreateSkill as ah, useDebouncedValue as ai, useDeleteAccount as aj, useDeleteAvatarOverride as ak, useDeleteEducation as al, useDeleteExternalAccount as am, useDeleteNamePronunciationAudio as an, useDeletePosition as ao, useDeleteProfileLocation as ap, useDeleteReaction as aq, useDeleteRecord as ar, useDeleteRepoRecords as as, useDeleteSkill as at, useDismissConfirmation as au, useDismissUnlinkedPosition as av, useEndorsementCount as aw, useEntitySearch as ax, useExternalAccounts as ay, useFeatureAllowlist as az, AttestationRequestSchema as b, useOrgClaim as b0, useOrgDomainChallenge as b1, useOrgDomainVerify as b2, useOrgProfile as b3, usePendingConfirmations as b4, useProfile as b5, useProfileCompleteness as b6, useReactionStatus as b7, useRefreshOrcidPublications as b8, useRefreshPds as b9, useUnhideKeytraceClaim as bA, useUnhideOrcidPublication as bB, useUnhideProfileItem as bC, useUnhideSifaPublication as bD, useUnhideStandardPublication as bE, useUnlinkSkillFromPosition as bF, useUnlinkedPositions as bG, useUnrevealMarqueDomain as bH, useUnsetExternalAccountPrimary as bI, useUnsetPositionPrimary as bJ, useUnsetSectionPrimary as bK, useUpdateEducation as bL, useUpdateExternalAccount as bM, useUpdateOrgProfile as bN, useUpdatePosition as bO, useUpdateProfileLocation as bP, useUpdateProfileOverride as bQ, useUpdateProfileSelf as bR, useUpdateRecord as bS, useUpdateSkill as bT, useUpdateSkillSubCategories as bU, useUploadAvatar as bV, useUploadNamePronunciationAudio as bW, useVerificationLog as bX, useVerifyExternalAccount as bY, useWipePreview as bZ, useSearchCompanies as b_, useRejectAttestationRequest as ba, useRemoveFeatureAllowlist as bb, useRemoveOrgNotificationEmail as bc, useRepoInventory as bd, useRequestEmploymentConfirmation as be, useResetProfile as bf, useResolveEntityDomain as bg, useRetractRoadmapVote as bh, useRevealMarqueDomain as bi, useRevokeConfirmation as bj, useRevokeOrgAttestation as bk, useRoadmapVotes as bl, useSearchFilters as bm, useSearchProfiles as bn, useSelectEntity as bo, useSetExternalAccountPrimary as bp, useSetPositionPrimary as bq, useSetSectionPrimary as br, useSifaConfig as bs, useSimilarProfiles as bt, useSkillSuggestions as bu, useStats as bv, useSuggestionCount as bw, useSuggestions as bx, useUnfollow as by, useUnhideActivityItem as bz, type AttestationStatus as c, type CreateOrgAttestationResult as d, type CreateReactionVariables as e, type CreateRecordVariables as f, type DeleteRecordVariables as g, type FetchVerificationLogOptions as h, type FollowVariables as i, OrgAttestationSchema as j, type RequestEmploymentConfirmationInput as k, type RequestEmploymentConfirmationResult as l, type SifaProviderProps as m, type UpdateEducationVariables as n, type UpdateExternalAccountVariables as o, type UpdatePositionVariables as p, type UpdateProfileLocationVariables as q, type UpdateRecordVariables as r, type UpdateSkillSubCategoriesVariables as s, type UpdateSkillVariables as t, type UseEntitySearchOptions as u, type UseMyGithubPullRequestsParams as v, type VerificationEventKind as w, type VerificationLog as x, type VerificationLogEntry as y, VerificationLogEntrySchema as z };
1110
+ /** The signed-in user's account preferences; `null` when signed out. */
1111
+ declare function useUserSettings(options?: Omit<UseQueryOptions<UserSettings | null, Error, UserSettings | null, ReturnType<typeof sifaQueryKeys.userSettings.all>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<{
1112
+ respectBskyBlocks: boolean;
1113
+ autoLinkCompanies: boolean;
1114
+ showCitationCounts: boolean;
1115
+ } | null, Error>;
1116
+ /**
1117
+ * Save one or more preferences, then write the stored result into the
1118
+ * settings cache. A failed save resolves to `null` and leaves the cache as is.
1119
+ */
1120
+ declare function useUpdateUserSettings(): _tanstack_react_query.UseMutationResult<{
1121
+ respectBskyBlocks: boolean;
1122
+ autoLinkCompanies: boolean;
1123
+ showCitationCounts: boolean;
1124
+ } | null, Error, Partial<{
1125
+ respectBskyBlocks: boolean;
1126
+ autoLinkCompanies: boolean;
1127
+ showCitationCounts: boolean;
1128
+ }>, unknown>;
1129
+
1130
+ export { useAppsRegistry as $, type AddFeatureAllowlistVariables as A, VerificationLogSchema as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, createOrgAttestation as E, type FetchOrgAttestationOptions as F, fetchAttestationRequests as G, fetchOrgAttestations as H, fetchVerificationLog as I, offboardOrgAttestation as J, rejectAttestationRequest as K, requestEmploymentConfirmation as L, revokeOrgAttestation as M, useAccounts as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, useActivityFeed as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useActivityPreferences as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, useActivityTeaser as W, useAddFeatureAllowlist as X, useAddOrgNotificationEmail as Y, useAdminReviewQueues as Z, useAppAccountCheck as _, type AttestationRequest as a, useOffboardOrgAttestation as a$, useAtFundLink as a0, useAttestationRequests as a1, useBlueskySuggestions as a2, useBulkHideProfileItems as a3, useBulkHideStandardPublications as a4, useBulkUnhideProfileItems as a5, useBulkUnhideStandardPublications as a6, useCanonicalSkillSearch as a7, useCastRoadmapVote as a8, useCreateConfirmation as a9, useFeatureAllowlist as aA, useFeaturedProfile as aB, useFollow as aC, useFollowers as aD, useFollowing as aE, useFollowingFeed as aF, useFollowingFeedVersion as aG, useFollowingList as aH, useGetProfileView as aI, useGivenConfirmations as aJ, useHeatmapData as aK, useHiddenActivityItems as aL, useHiddenApps as aM, useHideActivityItem as aN, useHideKeytraceClaim as aO, useHideOrcidPublication as aP, useHideProfileItem as aQ, useHideSifaPublication as aR, useHideStandardPublication as aS, useImportSearchEntities as aT, useInboxCounts as aU, useLinkSkillToPosition as aV, useMintEntityDomain as aW, useMutuals as aX, useMyGithubPullRequests as aY, useMyRoadmapVotes as aZ, useNetworkStreamCount as a_, useCreateEducation as aa, useCreateEndorsement as ab, useCreateExternalAccount as ac, useCreateOrgAttestation as ad, useCreatePosition as ae, useCreateProfileLocation as af, useCreateReaction as ag, useCreateRecord as ah, useCreateSkill as ai, useDebouncedValue as aj, useDeleteAccount as ak, useDeleteAvatarOverride as al, useDeleteEducation as am, useDeleteExternalAccount as an, useDeleteNamePronunciationAudio as ao, useDeletePosition as ap, useDeleteProfileLocation as aq, useDeleteReaction as ar, useDeleteRecord as as, useDeleteRepoRecords as at, useDeleteSkill as au, useDismissConfirmation as av, useDismissUnlinkedPosition as aw, useEndorsementCount as ax, useEntitySearch as ay, useExternalAccounts as az, AttestationRequestSchema as b, useUserSettings as b$, useOrgAttestations as b0, useOrgClaim as b1, useOrgDomainChallenge as b2, useOrgDomainVerify as b3, useOrgProfile as b4, usePendingConfirmations as b5, useProfile as b6, useProfileCompleteness as b7, useReactionStatus as b8, useRefreshOrcidPublications as b9, useUnfollow as bA, useUnhideActivityItem as bB, useUnhideKeytraceClaim as bC, useUnhideOrcidPublication as bD, useUnhideProfileItem as bE, useUnhideSifaPublication as bF, useUnhideStandardPublication as bG, useUnlinkSkillFromPosition as bH, useUnlinkedPositions as bI, useUnrevealMarqueDomain as bJ, useUnsetExternalAccountPrimary as bK, useUnsetPositionPrimary as bL, useUnsetSectionPrimary as bM, useUpdateActivityPreferences as bN, useUpdateEducation as bO, useUpdateExternalAccount as bP, useUpdateOrgProfile as bQ, useUpdatePosition as bR, useUpdateProfileLocation as bS, useUpdateProfileOverride as bT, useUpdateProfileSelf as bU, useUpdateRecord as bV, useUpdateSkill as bW, useUpdateSkillSubCategories as bX, useUpdateUserSettings as bY, useUploadAvatar as bZ, useUploadNamePronunciationAudio as b_, useRefreshPds as ba, useRejectAttestationRequest as bb, useRemoveFeatureAllowlist as bc, useRemoveOrgNotificationEmail as bd, useRepoInventory as be, useRequestEmploymentConfirmation as bf, useResetProfile as bg, useResolveEntityDomain as bh, useRetractRoadmapVote as bi, useRevealMarqueDomain as bj, useRevokeConfirmation as bk, useRevokeOrgAttestation as bl, useRoadmapVotes as bm, useSearchFilters as bn, useSearchProfiles as bo, useSelectEntity as bp, useSetExternalAccountPrimary as bq, useSetPositionPrimary as br, useSetSectionPrimary as bs, useSifaConfig as bt, useSimilarProfiles as bu, useSiteActivityPreset as bv, useSkillSuggestions as bw, useStats as bx, useSuggestionCount as by, useSuggestions as bz, type AttestationStatus as c, useVerificationLog as c0, useVerifyExternalAccount as c1, useWipePreview as c2, useSearchCompanies as c3, type CreateOrgAttestationResult as d, type CreateReactionVariables as e, type CreateRecordVariables as f, type DeleteRecordVariables as g, type FetchVerificationLogOptions as h, type FollowVariables as i, OrgAttestationSchema as j, type RequestEmploymentConfirmationInput as k, type RequestEmploymentConfirmationResult as l, type SifaProviderProps as m, type UpdateEducationVariables as n, type UpdateExternalAccountVariables as o, type UpdatePositionVariables as p, type UpdateProfileLocationVariables as q, type UpdateRecordVariables as r, type UpdateSkillSubCategoriesVariables as s, type UpdateSkillVariables as t, type UseEntitySearchOptions as u, type UseMyGithubPullRequestsParams as v, type VerificationEventKind as w, type VerificationLog as x, type VerificationLogEntry as y, VerificationLogEntrySchema as z };
@@ -1,5 +1,5 @@
1
- import { W as WriteResult, K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-DxMMqOJo.js';
2
- import { p as ExternalAccount, y as PositionViewerConfirmation } from './index-BFdNI6jA.js';
1
+ import { a3 as WriteResult, a0 as SifaApiConfig, a1 as ApiFetchOptions, a2 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-CI24asgo.js';
2
+ import { p as ExternalAccount, y as PositionViewerConfirmation } from './index-DAiJZvPg.js';
3
3
  import { a as AccountVerification } from './verification-providers-7il3kPQS.js';
4
4
  import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-ceqefXAw.js';
5
5
  import { z } from 'zod';
@@ -637,6 +637,49 @@ declare function unhideActivityItem(config: SifaApiConfig, input: UnhideActivity
637
637
  */
638
638
  declare function fetchHiddenActivityItems(config: SifaApiConfig, options?: FetchHiddenActivityItemsOptions): Promise<HiddenActivityItem[]>;
639
639
 
640
+ /**
641
+ * The authenticated user's activity preferences, resolved to an answer for
642
+ * every known key. `sitePreset` is the personal-site "show only" filter; both
643
+ * lists empty means no preset.
644
+ */
645
+ interface ActivityPreferences {
646
+ streamCategories: Record<string, boolean>;
647
+ digestItemTypes: Record<string, boolean>;
648
+ sitePreset: SiteActivityPreset;
649
+ }
650
+ /**
651
+ * Partial update. Only the keys present change. `sitePreset`, when present,
652
+ * replaces the whole stored preset; send empty lists to clear it.
653
+ */
654
+ interface UpdateActivityPreferencesInput {
655
+ streamCategories?: Record<string, boolean>;
656
+ digestItemTypes?: Record<string, boolean>;
657
+ sitePreset?: SiteActivityPreset;
658
+ }
659
+ /** A user's personal-site preset as anyone can read it. */
660
+ interface SiteActivityPresetResponse extends SiteActivityPreset {
661
+ did: string;
662
+ /** False when both lists are empty, i.e. the site shows all activity. */
663
+ active: boolean;
664
+ }
665
+ interface FetchActivityPreferencesOptions extends ApiFetchOptions {
666
+ /**
667
+ * Pass the caller's `Cookie` header on Next.js RSC server-side calls.
668
+ * `credentials: 'include'` does NOT propagate browser cookies in RSC.
669
+ */
670
+ cookieHeader?: string;
671
+ }
672
+ /** The caller's own preferences. Returns `null` on any error. */
673
+ declare function fetchActivityPreferences(config: SifaApiConfig, options?: FetchActivityPreferencesOptions): Promise<ActivityPreferences | null>;
674
+ /** Update the caller's own preferences. */
675
+ declare function updateActivityPreferences(config: SifaApiConfig, input: UpdateActivityPreferencesInput, options?: ApiFetchOptions): Promise<WriteResult<Partial<ActivityPreferences>>>;
676
+ /**
677
+ * Public read of a user's personal-site preset, by handle or DID. Site
678
+ * builders use it to show the same activity page.sifa.id shows. Returns
679
+ * `null` on any error.
680
+ */
681
+ declare function fetchSiteActivityPreset(config: SifaApiConfig, handleOrDid: string, options?: ApiFetchOptions): Promise<SiteActivityPresetResponse | null>;
682
+
640
683
  /** Public, aggregate stats shown on the homepage and similar surfaces. */
641
684
  interface StatsResponse {
642
685
  profileCount: number;
@@ -982,6 +1025,21 @@ interface FetchActivityTeaserOptions extends ApiFetchOptions {
982
1025
  declare function fetchActivityTeaser(config: SifaApiConfig, handleOrDid: string, options?: FetchActivityTeaserOptions): Promise<ActivityTeaserResponse | null>;
983
1026
  interface FetchActivityFeedOptions extends ApiFetchOptions {
984
1027
  category?: string;
1028
+ /**
1029
+ * Show only these app categories. Applies when `category` is unset (the
1030
+ * "all" view).
1031
+ */
1032
+ categories?: string[];
1033
+ /**
1034
+ * Show only long-form posts carrying one of these tags. Other activity is
1035
+ * not filtered on tags. See `SiteActivityPreset`.
1036
+ */
1037
+ tags?: string[];
1038
+ /**
1039
+ * Apply the profile owner's saved preset for this surface. Explicit
1040
+ * `categories` / `tags` override the matching half of the preset.
1041
+ */
1042
+ preset?: 'site';
985
1043
  limit?: number;
986
1044
  cursor?: string;
987
1045
  cookieHeader?: string;
@@ -1643,6 +1701,8 @@ declare const sifaQueryKeys: {
1643
1701
  readonly teaser: (handleOrDid: string) => readonly ["sifa", "activity", "teaser", string];
1644
1702
  readonly feed: (handleOrDid: string, opts: Record<string, unknown>) => readonly ["sifa", "activity", "feed", string, Record<string, unknown>];
1645
1703
  readonly hiddenItems: () => readonly ["sifa", "activity", "hidden-items"];
1704
+ readonly preferences: () => readonly ["sifa", "activity", "preferences"];
1705
+ readonly sitePreset: (handleOrDid: string) => readonly ["sifa", "activity", "site-preset", string];
1646
1706
  };
1647
1707
  readonly github: {
1648
1708
  readonly all: () => readonly ["sifa", "github"];
@@ -1697,6 +1757,9 @@ declare const sifaQueryKeys: {
1697
1757
  readonly all: () => readonly ["sifa", "bsky-preferences"];
1698
1758
  readonly contentLabels: () => readonly ["sifa", "bsky-preferences", "content-labels"];
1699
1759
  };
1760
+ readonly userSettings: {
1761
+ readonly all: () => readonly ["sifa", "user-settings"];
1762
+ };
1700
1763
  readonly repoInventory: {
1701
1764
  readonly all: () => readonly ["sifa", "repo-inventory"];
1702
1765
  readonly list: () => readonly ["sifa", "repo-inventory", "list"];
@@ -1706,7 +1769,7 @@ declare const sifaQueryKeys: {
1706
1769
  readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
1707
1770
  };
1708
1771
  };
1709
- type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.profile.completeness> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.position.unlinked> | ReturnType<typeof sifaQueryKeys.inbox.all> | ReturnType<typeof sifaQueryKeys.inbox.counts> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.admin.reviewQueues> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.activity.hiddenItems> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.endorsement.reciprocity> | ReturnType<typeof sifaQueryKeys.endorsement.received> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.confirmation.given> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview> | ReturnType<typeof sifaQueryKeys.repoInventory.all> | ReturnType<typeof sifaQueryKeys.repoInventory.list>;
1772
+ type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.profile.completeness> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.position.unlinked> | ReturnType<typeof sifaQueryKeys.inbox.all> | ReturnType<typeof sifaQueryKeys.inbox.counts> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.admin.reviewQueues> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.activity.hiddenItems> | ReturnType<typeof sifaQueryKeys.activity.preferences> | ReturnType<typeof sifaQueryKeys.activity.sitePreset> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.endorsement.reciprocity> | ReturnType<typeof sifaQueryKeys.endorsement.received> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.confirmation.given> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.userSettings.all> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview> | ReturnType<typeof sifaQueryKeys.repoInventory.all> | ReturnType<typeof sifaQueryKeys.repoInventory.list>;
1710
1773
 
1711
1774
  /** How a single entity binding was resolved during a claim. */
1712
1775
  interface OrgClaimBinding {
@@ -1798,4 +1861,26 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
1798
1861
  */
1799
1862
  declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult<Partial<OrgNotificationEmailRemoveResult>>>;
1800
1863
 
1801
- export { HIDDEN_ITEM_TYPES 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 FetchInboxCountsOptions as G, type FetchMyGithubPullRequestsOptions as H, type FetchMyRoadmapVotesOptions as I, type FetchProfileCompletenessOptions as J, type FetchReactionStatusOptions as K, type FetchSuggestionsOptions as L, type FetchUnlinkedPositionsOptions as M, type FollowListPage as N, type FollowProfile as O, type FollowProfilePageResponse as P, type FollowUserResult as Q, type FollowingFeedApp as R, type FollowingFeedBuild as S, type FollowingFeedEmptyReason as T, type FollowingFeedResponse as U, type FollowingFeedVersion as V, type FollowingResponse as W, type GetAdminReviewQueuesOptions as X, type GithubPullRequest as Y, type GivenConfirmation as Z, HIDDEN_ITEM_SOURCES as _, type ConfirmEndorsementResult as a, addOrgNotificationEmail as a$, type HeatmapDay as a0, type HeatmapResponse as a1, type HiddenActivityItem as a2, type HiddenApp as a3, type HiddenItemSource as a4, type HiddenItemType as a5, type HideActivityItemInput as a6, type HideProfileItemInput as a7, type InboxCounts as a8, type ListFeatureAllowlistOptions as a9, type ReactionResult as aA, type ReactionStatus as aB, type RefreshOrcidPublicationsResult as aC, type RefreshPdsResult as aD, type RepoDeleteInput as aE, type ResetProfileResult as aF, type ResolveQuotedPostsOptions as aG, type RoadmapVoteError as aH, type RoadmapVoteResult as aI, type RoadmapVoter as aJ, type RoadmapVotesResponse as aK, type SifaQueryKey as aL, type SimilarProfile as aM, type StatsResponse as aN, type SubCategoryBulkResult as aO, type SuggestionProfile as aP, type SuggestionsResponse as aQ, type UnhideActivityItemInput as aR, type UnlinkedPosition as aS, type UnlinkedPositionsResult as aT, type UpdateProfileOverrideInput as aU, type UpdateProfileSelfInput as aV, type UploadAvatarResult as aW, type UploadPronunciationAudioResult as aX, type VerifyExternalAccountResult as aY, type WipePreview as aZ, addFeatureAllowlist as a_, type MyGithubPullRequestsResponse as aa, type OrgClaimBinding as ab, type OrgClaimResult as ac, type OrgDomainChallengeResult as ad, type OrgDomainVerifyResult as ae, type OrgNotificationEmailAddResult as af, type OrgNotificationEmailRemoveResult as ag, type OrgProfileEcho as ah, type OrgProfileUpdateResult as ai, PROFILE_COMPLETENESS_SIGNALS as aj, type PdsWipeOutcome as ak, type PendingConfirmation as al, type PendingConfirmationsPage as am, type PrimarySection as an, type ProfileCompleteness as ao, type ProfileCompletenessSignal as ap, type ProfileIndustryInput as aq, type ProfileLocationAddress as ar, type ProfileLocationInput as as, type ProfileSelfLocation as at, QUOTED_POSTS_BATCH_MAX as au, type QuotedPostAuthor as av, type QuotedPostImage as aw, type QuotedPostResult as ax, type QuotedPostView as ay, type ReactionError as az, type AccountSummary as b, listFeatureAllowlist as b$, bulkHideProfileItems as b0, bulkHideStandardPublications as b1, bulkUnhideProfileItems as b2, bulkUnhideStandardPublications as b3, castRoadmapVote as b4, checkAppAccount as b5, confirmEndorsement as b6, createConfirmation as b7, createEndorsement as b8, createExternalAccount as b9, fetchInboxCounts as bA, fetchMyGithubPullRequests as bB, fetchMyRoadmapVotes as bC, fetchPendingConfirmations as bD, fetchProfileCompleteness as bE, fetchReactionStatus as bF, fetchRepoInventory as bG, fetchRoadmapVotes as bH, fetchSimilarProfiles as bI, fetchStats as bJ, fetchSuggestionCount as bK, fetchSuggestions as bL, fetchUnlinkedPositions as bM, fetchViewerPositionConfirmations as bN, fetchWipePreview as bO, followUser as bP, getAdminReviewQueues as bQ, getBlueskySuggestions as bR, getFollowers as bS, getFollowing as bT, getMutuals as bU, hideActivityItem as bV, hideOrcidPublication as bW, hideProfileItem as bX, hideSifaPublication as bY, hideStandardPublication as bZ, isNewerFollowingFeed as b_, createProfileLocation as ba, createReaction as bb, createSkill as bc, deleteAccount as bd, deleteAvatarOverride as be, deleteExternalAccount as bf, deleteNamePronunciationAudio as bg, deleteProfileLocation as bh, deleteReaction as bi, deleteRepoRecords as bj, deleteSkill as bk, dismissConfirmation as bl, dismissUnlinkedPosition as bm, fetchAccounts as bn, fetchActivityFeed 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, type ActivityFeedResponse as c, refreshOrcidPublications as c0, refreshPds as c1, removeFeatureAllowlist as c2, removeOrgNotificationEmail as c3, repoExportUrl as c4, requestOrgDomainChallenge as c5, resetProfile as c6, resolveQuotedPosts as c7, retractRoadmapVote as c8, revokeConfirmation as c9, setExternalAccountPrimary as ca, setSectionPrimary as cb, submitOrgClaim as cc, switchAccount as cd, unfollowUser as ce, unhideActivityItem as cf, unhideOrcidPublication as cg, unhideProfileItem as ch, unhideSifaPublication as ci, unhideStandardPublication as cj, unsetExternalAccountPrimary as ck, unsetSectionPrimary as cl, updateExternalAccount as cm, updateOrgProfile as cn, updateProfileLocation as co, updateProfileOverride as cp, updateProfileSelf as cq, updateSkill as cr, updateSkillSubCategories as cs, uploadAvatar as ct, uploadNamePronunciationAudio as cu, verifyExternalAccount as cv, verifyOrgDomain as cw, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityTeaserResponse as f, type AdminReviewQueues as g, type AppRegistryEntry as h, type CastRoadmapVoteResult as i, type CheckAppAccountOptions as j, type ConfirmationInput as k, type ConfirmationSubjectInput as l, type CreateExternalAccountResult as m, type DismissUnlinkedPositionInput as n, type ExternalAccountInput as o, type FeaturedProfile as p, type FetchAccountsOptions as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchConfirmationsOptions as u, type FetchFollowListOptions as v, type FetchFollowProfilePageOptions as w, type FetchFollowingFeedOptions as x, type FetchHiddenActivityItemsOptions as y, type FetchHiddenAppsOptions as z };
1864
+ /**
1865
+ * The signed-in user's account preferences (`/api/settings`). Kept on the
1866
+ * AppView, not in a PDS record: they change how Sifa treats the account, not
1867
+ * what the account says about itself.
1868
+ */
1869
+ declare const UserSettingsSchema: z.ZodObject<{
1870
+ respectBskyBlocks: z.ZodBoolean;
1871
+ autoLinkCompanies: z.ZodBoolean;
1872
+ showCitationCounts: z.ZodDefault<z.ZodBoolean>;
1873
+ }, z.core.$strip>;
1874
+ type UserSettings = z.infer<typeof UserSettingsSchema>;
1875
+ /** Body accepted by {@link updateUserSettings}: only the preferences to change. */
1876
+ type UserSettingsPatch = Partial<UserSettings>;
1877
+ interface FetchUserSettingsOptions extends ApiFetchOptions {
1878
+ /** Session cookie to forward when reading from a server context. */
1879
+ cookieHeader?: string;
1880
+ }
1881
+ /** The caller's settings, or `null` when signed out or the read fails. */
1882
+ declare function fetchUserSettings(config: SifaApiConfig, options?: FetchUserSettingsOptions): Promise<UserSettings | null>;
1883
+ /** Save the given preferences. Returns the stored settings, or `null` on failure. */
1884
+ declare function updateUserSettings(config: SifaApiConfig, patch: UserSettingsPatch): Promise<UserSettings | null>;
1885
+
1886
+ export { type GithubPullRequest 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 FetchHiddenActivityItemsOptions as G, type FetchHiddenAppsOptions as H, type FetchInboxCountsOptions as I, type FetchMyGithubPullRequestsOptions as J, type FetchMyRoadmapVotesOptions as K, type FetchProfileCompletenessOptions as L, type FetchReactionStatusOptions as M, type FetchSuggestionsOptions as N, type FetchUnlinkedPositionsOptions as O, type FetchUserSettingsOptions as P, type FollowListPage as Q, type FollowProfile as R, type FollowProfilePageResponse as S, type FollowUserResult as T, type FollowingFeedApp as U, type FollowingFeedBuild as V, type FollowingFeedEmptyReason as W, type FollowingFeedResponse as X, type FollowingFeedVersion as Y, type FollowingResponse as Z, type GetAdminReviewQueuesOptions as _, type ConfirmEndorsementResult as a, type UploadAvatarResult as a$, type GivenConfirmation as a0, HIDDEN_ITEM_SOURCES as a1, HIDDEN_ITEM_TYPES as a2, type HeatmapDay as a3, type HeatmapResponse as a4, type HiddenActivityItem as a5, type HiddenApp as a6, type HiddenItemSource as a7, type HiddenItemType as a8, type HideActivityItemInput as a9, type QuotedPostResult as aA, type QuotedPostView as aB, type ReactionError as aC, type ReactionResult as aD, type ReactionStatus as aE, type RefreshOrcidPublicationsResult as aF, type RefreshPdsResult as aG, type RepoDeleteInput as aH, type ResetProfileResult as aI, type ResolveQuotedPostsOptions as aJ, type RoadmapVoteError as aK, type RoadmapVoteResult as aL, type RoadmapVoter as aM, type RoadmapVotesResponse as aN, type SifaQueryKey as aO, type SimilarProfile as aP, type SiteActivityPresetResponse as aQ, type StatsResponse as aR, type SubCategoryBulkResult as aS, type SuggestionProfile as aT, type SuggestionsResponse as aU, type UnhideActivityItemInput as aV, type UnlinkedPosition as aW, type UnlinkedPositionsResult as aX, type UpdateActivityPreferencesInput as aY, type UpdateProfileOverrideInput as aZ, type UpdateProfileSelfInput as a_, type HideProfileItemInput as aa, type InboxCounts as ab, type ListFeatureAllowlistOptions as ac, type MyGithubPullRequestsResponse as ad, type OrgClaimBinding as ae, type OrgClaimResult as af, type OrgDomainChallengeResult as ag, type OrgDomainVerifyResult as ah, type OrgNotificationEmailAddResult as ai, type OrgNotificationEmailRemoveResult as aj, type OrgProfileEcho as ak, type OrgProfileUpdateResult as al, PROFILE_COMPLETENESS_SIGNALS as am, type PdsWipeOutcome as an, type PendingConfirmation as ao, type PendingConfirmationsPage as ap, type PrimarySection as aq, type ProfileCompleteness as ar, type ProfileCompletenessSignal as as, type ProfileIndustryInput as at, type ProfileLocationAddress as au, type ProfileLocationInput as av, type ProfileSelfLocation as aw, QUOTED_POSTS_BATCH_MAX as ax, type QuotedPostAuthor as ay, type QuotedPostImage as az, type AccountSummary as b, getAdminReviewQueues as b$, type UploadPronunciationAudioResult as b0, type UserSettings as b1, type UserSettingsPatch as b2, UserSettingsSchema as b3, type VerifyExternalAccountResult as b4, type WipePreview as b5, addFeatureAllowlist as b6, addOrgNotificationEmail as b7, bulkHideProfileItems as b8, bulkHideStandardPublications as b9, fetchExternalAccounts as bA, fetchFeaturedProfile as bB, fetchFollowing as bC, fetchFollowingFeed as bD, fetchFollowingFeedVersion as bE, fetchGivenConfirmations as bF, fetchHeatmapData as bG, fetchHiddenActivityItems as bH, fetchHiddenApps as bI, fetchInboxCounts as bJ, fetchMyGithubPullRequests as bK, fetchMyRoadmapVotes as bL, fetchPendingConfirmations as bM, fetchProfileCompleteness as bN, fetchReactionStatus as bO, fetchRepoInventory as bP, fetchRoadmapVotes as bQ, fetchSimilarProfiles as bR, fetchSiteActivityPreset as bS, fetchStats as bT, fetchSuggestionCount as bU, fetchSuggestions as bV, fetchUnlinkedPositions as bW, fetchUserSettings as bX, fetchViewerPositionConfirmations as bY, fetchWipePreview as bZ, followUser as b_, bulkUnhideProfileItems as ba, bulkUnhideStandardPublications as bb, castRoadmapVote as bc, checkAppAccount as bd, confirmEndorsement as be, createConfirmation as bf, createEndorsement as bg, createExternalAccount as bh, createProfileLocation as bi, createReaction as bj, createSkill as bk, deleteAccount as bl, deleteAvatarOverride as bm, deleteExternalAccount as bn, deleteNamePronunciationAudio as bo, deleteProfileLocation as bp, deleteReaction as bq, deleteRepoRecords as br, deleteSkill as bs, dismissConfirmation as bt, dismissUnlinkedPosition as bu, fetchAccounts as bv, fetchActivityFeed as bw, fetchActivityPreferences as bx, fetchActivityTeaser as by, fetchAppsRegistry as bz, type ActivityFeedResponse as c, getBlueskySuggestions as c0, getFollowers as c1, getFollowing as c2, getMutuals as c3, hideActivityItem as c4, hideOrcidPublication as c5, hideProfileItem as c6, hideSifaPublication as c7, hideStandardPublication as c8, isNewerFollowingFeed as c9, updateProfileLocation as cA, updateProfileOverride as cB, updateProfileSelf as cC, updateSkill as cD, updateSkillSubCategories as cE, updateUserSettings as cF, uploadAvatar as cG, uploadNamePronunciationAudio as cH, verifyExternalAccount as cI, verifyOrgDomain as cJ, listFeatureAllowlist as ca, refreshOrcidPublications as cb, refreshPds as cc, removeFeatureAllowlist as cd, removeOrgNotificationEmail as ce, repoExportUrl as cf, requestOrgDomainChallenge as cg, resetProfile as ch, resolveQuotedPosts as ci, retractRoadmapVote as cj, revokeConfirmation as ck, setExternalAccountPrimary as cl, setSectionPrimary as cm, submitOrgClaim as cn, switchAccount as co, unfollowUser as cp, unhideActivityItem as cq, unhideOrcidPublication as cr, unhideProfileItem as cs, unhideSifaPublication as ct, unhideStandardPublication as cu, unsetExternalAccountPrimary as cv, unsetSectionPrimary as cw, updateActivityPreferences as cx, updateExternalAccount as cy, updateOrgProfile as cz, type ActivityItem as d, 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 DismissUnlinkedPositionInput as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchAccountsOptions as r, sifaQueryKeys as s, type FetchActivityFeedOptions as t, type FetchActivityPreferencesOptions as u, type FetchActivityTeaserOptions as v, type FetchConfirmationsOptions as w, type FetchFollowListOptions as x, type FetchFollowProfilePageOptions as y, type FetchFollowingFeedOptions as z };
@@ -1,5 +1,5 @@
1
- import { W as WriteResult, K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-DXep6553.cjs';
2
- import { p as ExternalAccount, y as PositionViewerConfirmation } from './index-BzkaABDb.cjs';
1
+ import { a3 as WriteResult, a0 as SifaApiConfig, a1 as ApiFetchOptions, a2 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-qw55KvoV.cjs';
2
+ import { p as ExternalAccount, y as PositionViewerConfirmation } from './index-k6tBrbEU.cjs';
3
3
  import { a as AccountVerification } from './verification-providers-7il3kPQS.cjs';
4
4
  import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-CQ3DTTak.cjs';
5
5
  import { z } from 'zod';
@@ -637,6 +637,49 @@ declare function unhideActivityItem(config: SifaApiConfig, input: UnhideActivity
637
637
  */
638
638
  declare function fetchHiddenActivityItems(config: SifaApiConfig, options?: FetchHiddenActivityItemsOptions): Promise<HiddenActivityItem[]>;
639
639
 
640
+ /**
641
+ * The authenticated user's activity preferences, resolved to an answer for
642
+ * every known key. `sitePreset` is the personal-site "show only" filter; both
643
+ * lists empty means no preset.
644
+ */
645
+ interface ActivityPreferences {
646
+ streamCategories: Record<string, boolean>;
647
+ digestItemTypes: Record<string, boolean>;
648
+ sitePreset: SiteActivityPreset;
649
+ }
650
+ /**
651
+ * Partial update. Only the keys present change. `sitePreset`, when present,
652
+ * replaces the whole stored preset; send empty lists to clear it.
653
+ */
654
+ interface UpdateActivityPreferencesInput {
655
+ streamCategories?: Record<string, boolean>;
656
+ digestItemTypes?: Record<string, boolean>;
657
+ sitePreset?: SiteActivityPreset;
658
+ }
659
+ /** A user's personal-site preset as anyone can read it. */
660
+ interface SiteActivityPresetResponse extends SiteActivityPreset {
661
+ did: string;
662
+ /** False when both lists are empty, i.e. the site shows all activity. */
663
+ active: boolean;
664
+ }
665
+ interface FetchActivityPreferencesOptions extends ApiFetchOptions {
666
+ /**
667
+ * Pass the caller's `Cookie` header on Next.js RSC server-side calls.
668
+ * `credentials: 'include'` does NOT propagate browser cookies in RSC.
669
+ */
670
+ cookieHeader?: string;
671
+ }
672
+ /** The caller's own preferences. Returns `null` on any error. */
673
+ declare function fetchActivityPreferences(config: SifaApiConfig, options?: FetchActivityPreferencesOptions): Promise<ActivityPreferences | null>;
674
+ /** Update the caller's own preferences. */
675
+ declare function updateActivityPreferences(config: SifaApiConfig, input: UpdateActivityPreferencesInput, options?: ApiFetchOptions): Promise<WriteResult<Partial<ActivityPreferences>>>;
676
+ /**
677
+ * Public read of a user's personal-site preset, by handle or DID. Site
678
+ * builders use it to show the same activity page.sifa.id shows. Returns
679
+ * `null` on any error.
680
+ */
681
+ declare function fetchSiteActivityPreset(config: SifaApiConfig, handleOrDid: string, options?: ApiFetchOptions): Promise<SiteActivityPresetResponse | null>;
682
+
640
683
  /** Public, aggregate stats shown on the homepage and similar surfaces. */
641
684
  interface StatsResponse {
642
685
  profileCount: number;
@@ -982,6 +1025,21 @@ interface FetchActivityTeaserOptions extends ApiFetchOptions {
982
1025
  declare function fetchActivityTeaser(config: SifaApiConfig, handleOrDid: string, options?: FetchActivityTeaserOptions): Promise<ActivityTeaserResponse | null>;
983
1026
  interface FetchActivityFeedOptions extends ApiFetchOptions {
984
1027
  category?: string;
1028
+ /**
1029
+ * Show only these app categories. Applies when `category` is unset (the
1030
+ * "all" view).
1031
+ */
1032
+ categories?: string[];
1033
+ /**
1034
+ * Show only long-form posts carrying one of these tags. Other activity is
1035
+ * not filtered on tags. See `SiteActivityPreset`.
1036
+ */
1037
+ tags?: string[];
1038
+ /**
1039
+ * Apply the profile owner's saved preset for this surface. Explicit
1040
+ * `categories` / `tags` override the matching half of the preset.
1041
+ */
1042
+ preset?: 'site';
985
1043
  limit?: number;
986
1044
  cursor?: string;
987
1045
  cookieHeader?: string;
@@ -1643,6 +1701,8 @@ declare const sifaQueryKeys: {
1643
1701
  readonly teaser: (handleOrDid: string) => readonly ["sifa", "activity", "teaser", string];
1644
1702
  readonly feed: (handleOrDid: string, opts: Record<string, unknown>) => readonly ["sifa", "activity", "feed", string, Record<string, unknown>];
1645
1703
  readonly hiddenItems: () => readonly ["sifa", "activity", "hidden-items"];
1704
+ readonly preferences: () => readonly ["sifa", "activity", "preferences"];
1705
+ readonly sitePreset: (handleOrDid: string) => readonly ["sifa", "activity", "site-preset", string];
1646
1706
  };
1647
1707
  readonly github: {
1648
1708
  readonly all: () => readonly ["sifa", "github"];
@@ -1697,6 +1757,9 @@ declare const sifaQueryKeys: {
1697
1757
  readonly all: () => readonly ["sifa", "bsky-preferences"];
1698
1758
  readonly contentLabels: () => readonly ["sifa", "bsky-preferences", "content-labels"];
1699
1759
  };
1760
+ readonly userSettings: {
1761
+ readonly all: () => readonly ["sifa", "user-settings"];
1762
+ };
1700
1763
  readonly repoInventory: {
1701
1764
  readonly all: () => readonly ["sifa", "repo-inventory"];
1702
1765
  readonly list: () => readonly ["sifa", "repo-inventory", "list"];
@@ -1706,7 +1769,7 @@ declare const sifaQueryKeys: {
1706
1769
  readonly wipePreview: () => readonly ["sifa", "destructive", "wipe-preview"];
1707
1770
  };
1708
1771
  };
1709
- type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.profile.completeness> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.position.unlinked> | ReturnType<typeof sifaQueryKeys.inbox.all> | ReturnType<typeof sifaQueryKeys.inbox.counts> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.admin.reviewQueues> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.activity.hiddenItems> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.endorsement.reciprocity> | ReturnType<typeof sifaQueryKeys.endorsement.received> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.confirmation.given> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview> | ReturnType<typeof sifaQueryKeys.repoInventory.all> | ReturnType<typeof sifaQueryKeys.repoInventory.list>;
1772
+ type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.profile.completeness> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.position.unlinked> | ReturnType<typeof sifaQueryKeys.inbox.all> | ReturnType<typeof sifaQueryKeys.inbox.counts> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.admin.reviewQueues> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.activity.hiddenItems> | ReturnType<typeof sifaQueryKeys.activity.preferences> | ReturnType<typeof sifaQueryKeys.activity.sitePreset> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.endorsement.pending> | ReturnType<typeof sifaQueryKeys.endorsement.reciprocity> | ReturnType<typeof sifaQueryKeys.endorsement.received> | ReturnType<typeof sifaQueryKeys.confirmation.all> | ReturnType<typeof sifaQueryKeys.confirmation.pending> | ReturnType<typeof sifaQueryKeys.confirmation.given> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels> | ReturnType<typeof sifaQueryKeys.userSettings.all> | ReturnType<typeof sifaQueryKeys.destructive.all> | ReturnType<typeof sifaQueryKeys.destructive.wipePreview> | ReturnType<typeof sifaQueryKeys.repoInventory.all> | ReturnType<typeof sifaQueryKeys.repoInventory.list>;
1710
1773
 
1711
1774
  /** How a single entity binding was resolved during a claim. */
1712
1775
  interface OrgClaimBinding {
@@ -1798,4 +1861,26 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
1798
1861
  */
1799
1862
  declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult<Partial<OrgNotificationEmailRemoveResult>>>;
1800
1863
 
1801
- export { HIDDEN_ITEM_TYPES 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 FetchInboxCountsOptions as G, type FetchMyGithubPullRequestsOptions as H, type FetchMyRoadmapVotesOptions as I, type FetchProfileCompletenessOptions as J, type FetchReactionStatusOptions as K, type FetchSuggestionsOptions as L, type FetchUnlinkedPositionsOptions as M, type FollowListPage as N, type FollowProfile as O, type FollowProfilePageResponse as P, type FollowUserResult as Q, type FollowingFeedApp as R, type FollowingFeedBuild as S, type FollowingFeedEmptyReason as T, type FollowingFeedResponse as U, type FollowingFeedVersion as V, type FollowingResponse as W, type GetAdminReviewQueuesOptions as X, type GithubPullRequest as Y, type GivenConfirmation as Z, HIDDEN_ITEM_SOURCES as _, type ConfirmEndorsementResult as a, addOrgNotificationEmail as a$, type HeatmapDay as a0, type HeatmapResponse as a1, type HiddenActivityItem as a2, type HiddenApp as a3, type HiddenItemSource as a4, type HiddenItemType as a5, type HideActivityItemInput as a6, type HideProfileItemInput as a7, type InboxCounts as a8, type ListFeatureAllowlistOptions as a9, type ReactionResult as aA, type ReactionStatus as aB, type RefreshOrcidPublicationsResult as aC, type RefreshPdsResult as aD, type RepoDeleteInput as aE, type ResetProfileResult as aF, type ResolveQuotedPostsOptions as aG, type RoadmapVoteError as aH, type RoadmapVoteResult as aI, type RoadmapVoter as aJ, type RoadmapVotesResponse as aK, type SifaQueryKey as aL, type SimilarProfile as aM, type StatsResponse as aN, type SubCategoryBulkResult as aO, type SuggestionProfile as aP, type SuggestionsResponse as aQ, type UnhideActivityItemInput as aR, type UnlinkedPosition as aS, type UnlinkedPositionsResult as aT, type UpdateProfileOverrideInput as aU, type UpdateProfileSelfInput as aV, type UploadAvatarResult as aW, type UploadPronunciationAudioResult as aX, type VerifyExternalAccountResult as aY, type WipePreview as aZ, addFeatureAllowlist as a_, type MyGithubPullRequestsResponse as aa, type OrgClaimBinding as ab, type OrgClaimResult as ac, type OrgDomainChallengeResult as ad, type OrgDomainVerifyResult as ae, type OrgNotificationEmailAddResult as af, type OrgNotificationEmailRemoveResult as ag, type OrgProfileEcho as ah, type OrgProfileUpdateResult as ai, PROFILE_COMPLETENESS_SIGNALS as aj, type PdsWipeOutcome as ak, type PendingConfirmation as al, type PendingConfirmationsPage as am, type PrimarySection as an, type ProfileCompleteness as ao, type ProfileCompletenessSignal as ap, type ProfileIndustryInput as aq, type ProfileLocationAddress as ar, type ProfileLocationInput as as, type ProfileSelfLocation as at, QUOTED_POSTS_BATCH_MAX as au, type QuotedPostAuthor as av, type QuotedPostImage as aw, type QuotedPostResult as ax, type QuotedPostView as ay, type ReactionError as az, type AccountSummary as b, listFeatureAllowlist as b$, bulkHideProfileItems as b0, bulkHideStandardPublications as b1, bulkUnhideProfileItems as b2, bulkUnhideStandardPublications as b3, castRoadmapVote as b4, checkAppAccount as b5, confirmEndorsement as b6, createConfirmation as b7, createEndorsement as b8, createExternalAccount as b9, fetchInboxCounts as bA, fetchMyGithubPullRequests as bB, fetchMyRoadmapVotes as bC, fetchPendingConfirmations as bD, fetchProfileCompleteness as bE, fetchReactionStatus as bF, fetchRepoInventory as bG, fetchRoadmapVotes as bH, fetchSimilarProfiles as bI, fetchStats as bJ, fetchSuggestionCount as bK, fetchSuggestions as bL, fetchUnlinkedPositions as bM, fetchViewerPositionConfirmations as bN, fetchWipePreview as bO, followUser as bP, getAdminReviewQueues as bQ, getBlueskySuggestions as bR, getFollowers as bS, getFollowing as bT, getMutuals as bU, hideActivityItem as bV, hideOrcidPublication as bW, hideProfileItem as bX, hideSifaPublication as bY, hideStandardPublication as bZ, isNewerFollowingFeed as b_, createProfileLocation as ba, createReaction as bb, createSkill as bc, deleteAccount as bd, deleteAvatarOverride as be, deleteExternalAccount as bf, deleteNamePronunciationAudio as bg, deleteProfileLocation as bh, deleteReaction as bi, deleteRepoRecords as bj, deleteSkill as bk, dismissConfirmation as bl, dismissUnlinkedPosition as bm, fetchAccounts as bn, fetchActivityFeed 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, type ActivityFeedResponse as c, refreshOrcidPublications as c0, refreshPds as c1, removeFeatureAllowlist as c2, removeOrgNotificationEmail as c3, repoExportUrl as c4, requestOrgDomainChallenge as c5, resetProfile as c6, resolveQuotedPosts as c7, retractRoadmapVote as c8, revokeConfirmation as c9, setExternalAccountPrimary as ca, setSectionPrimary as cb, submitOrgClaim as cc, switchAccount as cd, unfollowUser as ce, unhideActivityItem as cf, unhideOrcidPublication as cg, unhideProfileItem as ch, unhideSifaPublication as ci, unhideStandardPublication as cj, unsetExternalAccountPrimary as ck, unsetSectionPrimary as cl, updateExternalAccount as cm, updateOrgProfile as cn, updateProfileLocation as co, updateProfileOverride as cp, updateProfileSelf as cq, updateSkill as cr, updateSkillSubCategories as cs, uploadAvatar as ct, uploadNamePronunciationAudio as cu, verifyExternalAccount as cv, verifyOrgDomain as cw, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityTeaserResponse as f, type AdminReviewQueues as g, type AppRegistryEntry as h, type CastRoadmapVoteResult as i, type CheckAppAccountOptions as j, type ConfirmationInput as k, type ConfirmationSubjectInput as l, type CreateExternalAccountResult as m, type DismissUnlinkedPositionInput as n, type ExternalAccountInput as o, type FeaturedProfile as p, type FetchAccountsOptions as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchConfirmationsOptions as u, type FetchFollowListOptions as v, type FetchFollowProfilePageOptions as w, type FetchFollowingFeedOptions as x, type FetchHiddenActivityItemsOptions as y, type FetchHiddenAppsOptions as z };
1864
+ /**
1865
+ * The signed-in user's account preferences (`/api/settings`). Kept on the
1866
+ * AppView, not in a PDS record: they change how Sifa treats the account, not
1867
+ * what the account says about itself.
1868
+ */
1869
+ declare const UserSettingsSchema: z.ZodObject<{
1870
+ respectBskyBlocks: z.ZodBoolean;
1871
+ autoLinkCompanies: z.ZodBoolean;
1872
+ showCitationCounts: z.ZodDefault<z.ZodBoolean>;
1873
+ }, z.core.$strip>;
1874
+ type UserSettings = z.infer<typeof UserSettingsSchema>;
1875
+ /** Body accepted by {@link updateUserSettings}: only the preferences to change. */
1876
+ type UserSettingsPatch = Partial<UserSettings>;
1877
+ interface FetchUserSettingsOptions extends ApiFetchOptions {
1878
+ /** Session cookie to forward when reading from a server context. */
1879
+ cookieHeader?: string;
1880
+ }
1881
+ /** The caller's settings, or `null` when signed out or the read fails. */
1882
+ declare function fetchUserSettings(config: SifaApiConfig, options?: FetchUserSettingsOptions): Promise<UserSettings | null>;
1883
+ /** Save the given preferences. Returns the stored settings, or `null` on failure. */
1884
+ declare function updateUserSettings(config: SifaApiConfig, patch: UserSettingsPatch): Promise<UserSettings | null>;
1885
+
1886
+ export { type GithubPullRequest 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 FetchHiddenActivityItemsOptions as G, type FetchHiddenAppsOptions as H, type FetchInboxCountsOptions as I, type FetchMyGithubPullRequestsOptions as J, type FetchMyRoadmapVotesOptions as K, type FetchProfileCompletenessOptions as L, type FetchReactionStatusOptions as M, type FetchSuggestionsOptions as N, type FetchUnlinkedPositionsOptions as O, type FetchUserSettingsOptions as P, type FollowListPage as Q, type FollowProfile as R, type FollowProfilePageResponse as S, type FollowUserResult as T, type FollowingFeedApp as U, type FollowingFeedBuild as V, type FollowingFeedEmptyReason as W, type FollowingFeedResponse as X, type FollowingFeedVersion as Y, type FollowingResponse as Z, type GetAdminReviewQueuesOptions as _, type ConfirmEndorsementResult as a, type UploadAvatarResult as a$, type GivenConfirmation as a0, HIDDEN_ITEM_SOURCES as a1, HIDDEN_ITEM_TYPES as a2, type HeatmapDay as a3, type HeatmapResponse as a4, type HiddenActivityItem as a5, type HiddenApp as a6, type HiddenItemSource as a7, type HiddenItemType as a8, type HideActivityItemInput as a9, type QuotedPostResult as aA, type QuotedPostView as aB, type ReactionError as aC, type ReactionResult as aD, type ReactionStatus as aE, type RefreshOrcidPublicationsResult as aF, type RefreshPdsResult as aG, type RepoDeleteInput as aH, type ResetProfileResult as aI, type ResolveQuotedPostsOptions as aJ, type RoadmapVoteError as aK, type RoadmapVoteResult as aL, type RoadmapVoter as aM, type RoadmapVotesResponse as aN, type SifaQueryKey as aO, type SimilarProfile as aP, type SiteActivityPresetResponse as aQ, type StatsResponse as aR, type SubCategoryBulkResult as aS, type SuggestionProfile as aT, type SuggestionsResponse as aU, type UnhideActivityItemInput as aV, type UnlinkedPosition as aW, type UnlinkedPositionsResult as aX, type UpdateActivityPreferencesInput as aY, type UpdateProfileOverrideInput as aZ, type UpdateProfileSelfInput as a_, type HideProfileItemInput as aa, type InboxCounts as ab, type ListFeatureAllowlistOptions as ac, type MyGithubPullRequestsResponse as ad, type OrgClaimBinding as ae, type OrgClaimResult as af, type OrgDomainChallengeResult as ag, type OrgDomainVerifyResult as ah, type OrgNotificationEmailAddResult as ai, type OrgNotificationEmailRemoveResult as aj, type OrgProfileEcho as ak, type OrgProfileUpdateResult as al, PROFILE_COMPLETENESS_SIGNALS as am, type PdsWipeOutcome as an, type PendingConfirmation as ao, type PendingConfirmationsPage as ap, type PrimarySection as aq, type ProfileCompleteness as ar, type ProfileCompletenessSignal as as, type ProfileIndustryInput as at, type ProfileLocationAddress as au, type ProfileLocationInput as av, type ProfileSelfLocation as aw, QUOTED_POSTS_BATCH_MAX as ax, type QuotedPostAuthor as ay, type QuotedPostImage as az, type AccountSummary as b, getAdminReviewQueues as b$, type UploadPronunciationAudioResult as b0, type UserSettings as b1, type UserSettingsPatch as b2, UserSettingsSchema as b3, type VerifyExternalAccountResult as b4, type WipePreview as b5, addFeatureAllowlist as b6, addOrgNotificationEmail as b7, bulkHideProfileItems as b8, bulkHideStandardPublications as b9, fetchExternalAccounts as bA, fetchFeaturedProfile as bB, fetchFollowing as bC, fetchFollowingFeed as bD, fetchFollowingFeedVersion as bE, fetchGivenConfirmations as bF, fetchHeatmapData as bG, fetchHiddenActivityItems as bH, fetchHiddenApps as bI, fetchInboxCounts as bJ, fetchMyGithubPullRequests as bK, fetchMyRoadmapVotes as bL, fetchPendingConfirmations as bM, fetchProfileCompleteness as bN, fetchReactionStatus as bO, fetchRepoInventory as bP, fetchRoadmapVotes as bQ, fetchSimilarProfiles as bR, fetchSiteActivityPreset as bS, fetchStats as bT, fetchSuggestionCount as bU, fetchSuggestions as bV, fetchUnlinkedPositions as bW, fetchUserSettings as bX, fetchViewerPositionConfirmations as bY, fetchWipePreview as bZ, followUser as b_, bulkUnhideProfileItems as ba, bulkUnhideStandardPublications as bb, castRoadmapVote as bc, checkAppAccount as bd, confirmEndorsement as be, createConfirmation as bf, createEndorsement as bg, createExternalAccount as bh, createProfileLocation as bi, createReaction as bj, createSkill as bk, deleteAccount as bl, deleteAvatarOverride as bm, deleteExternalAccount as bn, deleteNamePronunciationAudio as bo, deleteProfileLocation as bp, deleteReaction as bq, deleteRepoRecords as br, deleteSkill as bs, dismissConfirmation as bt, dismissUnlinkedPosition as bu, fetchAccounts as bv, fetchActivityFeed as bw, fetchActivityPreferences as bx, fetchActivityTeaser as by, fetchAppsRegistry as bz, type ActivityFeedResponse as c, getBlueskySuggestions as c0, getFollowers as c1, getFollowing as c2, getMutuals as c3, hideActivityItem as c4, hideOrcidPublication as c5, hideProfileItem as c6, hideSifaPublication as c7, hideStandardPublication as c8, isNewerFollowingFeed as c9, updateProfileLocation as cA, updateProfileOverride as cB, updateProfileSelf as cC, updateSkill as cD, updateSkillSubCategories as cE, updateUserSettings as cF, uploadAvatar as cG, uploadNamePronunciationAudio as cH, verifyExternalAccount as cI, verifyOrgDomain as cJ, listFeatureAllowlist as ca, refreshOrcidPublications as cb, refreshPds as cc, removeFeatureAllowlist as cd, removeOrgNotificationEmail as ce, repoExportUrl as cf, requestOrgDomainChallenge as cg, resetProfile as ch, resolveQuotedPosts as ci, retractRoadmapVote as cj, revokeConfirmation as ck, setExternalAccountPrimary as cl, setSectionPrimary as cm, submitOrgClaim as cn, switchAccount as co, unfollowUser as cp, unhideActivityItem as cq, unhideOrcidPublication as cr, unhideProfileItem as cs, unhideSifaPublication as ct, unhideStandardPublication as cu, unsetExternalAccountPrimary as cv, unsetSectionPrimary as cw, updateActivityPreferences as cx, updateExternalAccount as cy, updateOrgProfile as cz, type ActivityItem as d, 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 DismissUnlinkedPositionInput as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchAccountsOptions as r, sifaQueryKeys as s, type FetchActivityFeedOptions as t, type FetchActivityPreferencesOptions as u, type FetchActivityTeaserOptions as v, type FetchConfirmationsOptions as w, type FetchFollowListOptions as x, type FetchFollowProfilePageOptions as y, type FetchFollowingFeedOptions as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singi-labs/sifa-sdk",
3
- "version": "0.19.74",
3
+ "version": "0.19.76",
4
4
  "description": "Sifa SDK — public client library for the Sifa AppView on AT Protocol. Shared by sifa-web and sifa-app.",
5
5
  "license": "MIT",
6
6
  "type": "module",