@singi-labs/sifa-sdk 0.19.55 → 0.19.57

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 (56) hide show
  1. package/dist/{follow-profile-D1l6pulB.d.ts → follow-profile-CQ3DTTak.d.cts} +3 -0
  2. package/dist/{follow-profile-D1l6pulB.d.cts → follow-profile-ceqefXAw.d.ts} +3 -0
  3. package/dist/{index-DmlIG8sJ.d.cts → index-BeQbepFn.d.cts} +7 -1
  4. package/dist/{index-D9GC0u__.d.ts → index-CT-A3BEe.d.ts} +7 -1
  5. package/dist/index.cjs +16 -2
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +10 -81
  8. package/dist/index.d.ts +10 -81
  9. package/dist/index.js +1 -1
  10. package/dist/jsonld/index.d.cts +2 -2
  11. package/dist/jsonld/index.d.ts +2 -2
  12. package/dist/{network-map-CiWrQ1fF.d.ts → network-map-CKF7Yozc.d.ts} +4 -4
  13. package/dist/{network-map-CdYpUy-t.d.cts → network-map-DHOOMSCP.d.cts} +4 -4
  14. package/dist/{org-fmpG85L0.d.cts → org-Bq3HbpLD.d.cts} +33 -6
  15. package/dist/{org-hxHnoBfg.d.ts → org-CelDIOiN.d.ts} +33 -6
  16. package/dist/{profile-summary-5T1hDw6Q.d.cts → profile-summary-CD3-QflX.d.cts} +1 -1
  17. package/dist/{profile-summary-Bj7ufSDK.d.ts → profile-summary-CyRzFe7f.d.ts} +1 -1
  18. package/dist/query/fetchers/discovery.js.map +1 -1
  19. package/dist/query/fetchers/follow.js +13 -4
  20. package/dist/query/fetchers/follow.js.map +1 -1
  21. package/dist/query/fetchers/index.cjs +21 -6
  22. package/dist/query/fetchers/index.cjs.map +1 -1
  23. package/dist/query/fetchers/index.d.cts +8 -8
  24. package/dist/query/fetchers/index.d.ts +8 -8
  25. package/dist/query/fetchers/index.js.map +1 -1
  26. package/dist/query/fetchers/search.js +8 -2
  27. package/dist/query/fetchers/search.js.map +1 -1
  28. package/dist/query/hooks/index.cjs +17 -4
  29. package/dist/query/hooks/index.cjs.map +1 -1
  30. package/dist/query/hooks/index.d.cts +6 -6
  31. package/dist/query/hooks/index.d.ts +6 -6
  32. package/dist/query/hooks/use-follow.js +1 -1
  33. package/dist/query/hooks/use-follow.js.map +1 -1
  34. package/dist/query/index.cjs +22 -7
  35. package/dist/query/index.cjs.map +1 -1
  36. package/dist/query/index.d.cts +12 -12
  37. package/dist/query/index.d.ts +12 -12
  38. package/dist/query/index.js.map +1 -1
  39. package/dist/resume/index.d.cts +2 -2
  40. package/dist/resume/index.d.ts +2 -2
  41. package/dist/schemas/follow-profile.js +18 -1
  42. package/dist/schemas/follow-profile.js.map +1 -1
  43. package/dist/schemas/index.cjs +53 -1
  44. package/dist/schemas/index.cjs.map +1 -1
  45. package/dist/schemas/index.d.cts +2 -2
  46. package/dist/schemas/index.d.ts +2 -2
  47. package/dist/types/index.js.map +1 -1
  48. package/dist/{types-jB67EFpw.d.ts → types-BHnGSJ3z.d.cts} +34 -4
  49. package/dist/{types-DHT7jcZc.d.cts → types-BKEBVobU.d.ts} +34 -4
  50. package/dist/{use-org-notification-emails-Cj8IDI_7.d.cts → use-org-notification-emails-BTR2Yxq8.d.cts} +9 -8
  51. package/dist/{use-org-notification-emails-CWLCWkmb.d.ts → use-org-notification-emails-DDIi6giD.d.ts} +9 -8
  52. package/dist/verification-providers-7il3kPQS.d.cts +158 -0
  53. package/dist/verification-providers-7il3kPQS.d.ts +158 -0
  54. package/package.json +1 -1
  55. package/dist/shared-v0vl5hov.d.cts +0 -87
  56. package/dist/shared-v0vl5hov.d.ts +0 -87
@@ -1,13 +1,13 @@
1
- export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useAccounts, m as useActivityFeed, n as useActivityTeaser, o as useAddFeatureAllowlist, p as useAddOrgNotificationEmail, q as useAdminReviewQueues, r as useAppAccountCheck, s as useAppsRegistry, t as useAtFundLink, v as useBlueskySuggestions, w as useBulkHideProfileItems, x as useBulkHideStandardPublications, y as useBulkUnhideProfileItems, z as useBulkUnhideStandardPublications, B as useCanonicalSkillSearch, E as useCastRoadmapVote, G as useCreateConfirmation, H as useCreateEducation, I as useCreateEndorsement, J as useCreateExternalAccount, K as useCreatePosition, L as useCreateProfileLocation, M as useCreateReaction, N as useCreateRecord, O as useCreateSkill, Q as useDebouncedValue, T as useDeleteAccount, V as useDeleteAvatarOverride, W as useDeleteEducation, X as useDeleteExternalAccount, Y as useDeleteNamePronunciationAudio, Z as useDeletePosition, _ as useDeleteProfileLocation, $ as useDeleteReaction, a0 as useDeleteRecord, a1 as useDeleteRepoRecords, a2 as useDeleteSkill, a3 as useDismissConfirmation, a4 as useDismissUnlinkedPosition, a5 as useEndorsementCount, a6 as useEntitySearch, a7 as useExternalAccounts, a8 as useFeatureAllowlist, a9 as useFeaturedProfile, aa as useFollow, ab as useFollowers, ac as useFollowing, ad as useFollowingFeed, ae as useFollowingFeedVersion, af as useFollowingList, ag as useGetProfileView, ah as useGivenConfirmations, ai as useHeatmapData, aj as useHiddenActivityItems, ak as useHiddenApps, al as useHideActivityItem, am as useHideKeytraceClaim, an as useHideOrcidPublication, ao as useHideProfileItem, ap as useHideSifaPublication, aq as useHideStandardPublication, ar as useImportSearchEntities, as as useInboxCounts, at as useLinkSkillToPosition, av as useMutuals, aw as useMyGithubPullRequests, ax as useMyRoadmapVotes, ay as useNetworkStreamCount, az as useOrgClaim, aA as useOrgDomainChallenge, aB as useOrgDomainVerify, aC as useOrgProfile, aD as usePendingConfirmations, aE as useProfile, aF as useProfileCompleteness, aG as useReactionStatus, aH as useRefreshOrcidPublications, aI as useRefreshPds, aJ as useRemoveFeatureAllowlist, aK as useRemoveOrgNotificationEmail, aL as useRepoInventory, aM as useResetProfile, aO as useRetractRoadmapVote, aP as useRevealMarqueDomain, aQ as useRevokeConfirmation, aR as useRoadmapVotes, bt as useSearchCompanies, aS as useSearchFilters, aT as useSearchProfiles, aU as useSelectEntity, aV as useSetExternalAccountPrimary, aW as useSetPositionPrimary, aX as useSetSectionPrimary, aY as useSifaConfig, aZ as useSimilarProfiles, a_ as useSkillSuggestions, a$ as useStats, b0 as useSuggestionCount, b1 as useSuggestions, b2 as useUnfollow, b3 as useUnhideActivityItem, b4 as useUnhideKeytraceClaim, b5 as useUnhideOrcidPublication, b6 as useUnhideProfileItem, b7 as useUnhideSifaPublication, b8 as useUnhideStandardPublication, b9 as useUnlinkSkillFromPosition, ba as useUnlinkedPositions, bb as useUnrevealMarqueDomain, bc as useUnsetExternalAccountPrimary, bd as useUnsetPositionPrimary, be as useUnsetSectionPrimary, bf as useUpdateEducation, bg as useUpdateExternalAccount, bh as useUpdateOrgProfile, bi as useUpdatePosition, bj as useUpdateProfileLocation, bk as useUpdateProfileOverride, bl as useUpdateProfileSelf, bm as useUpdateRecord, bn as useUpdateSkill, bo as useUpdateSkillSubCategories, bp as useUploadAvatar, bq as useUploadNamePronunciationAudio, br as useVerifyExternalAccount, bs as useWipePreview } from '../../use-org-notification-emails-Cj8IDI_7.cjs';
2
- export { aK as SifaQueryKey, s as sifaQueryKeys } from '../../org-fmpG85L0.cjs';
1
+ export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useAccounts, m as useActivityFeed, n as useActivityTeaser, o as useAddFeatureAllowlist, p as useAddOrgNotificationEmail, q as useAdminReviewQueues, r as useAppAccountCheck, s as useAppsRegistry, t as useAtFundLink, v as useBlueskySuggestions, w as useBulkHideProfileItems, x as useBulkHideStandardPublications, y as useBulkUnhideProfileItems, z as useBulkUnhideStandardPublications, B as useCanonicalSkillSearch, E as useCastRoadmapVote, G as useCreateConfirmation, H as useCreateEducation, I as useCreateEndorsement, J as useCreateExternalAccount, K as useCreatePosition, L as useCreateProfileLocation, M as useCreateReaction, N as useCreateRecord, O as useCreateSkill, Q as useDebouncedValue, T as useDeleteAccount, V as useDeleteAvatarOverride, W as useDeleteEducation, X as useDeleteExternalAccount, Y as useDeleteNamePronunciationAudio, Z as useDeletePosition, _ as useDeleteProfileLocation, $ as useDeleteReaction, a0 as useDeleteRecord, a1 as useDeleteRepoRecords, a2 as useDeleteSkill, a3 as useDismissConfirmation, a4 as useDismissUnlinkedPosition, a5 as useEndorsementCount, a6 as useEntitySearch, a7 as useExternalAccounts, a8 as useFeatureAllowlist, a9 as useFeaturedProfile, aa as useFollow, ab as useFollowers, ac as useFollowing, ad as useFollowingFeed, ae as useFollowingFeedVersion, af as useFollowingList, ag as useGetProfileView, ah as useGivenConfirmations, ai as useHeatmapData, aj as useHiddenActivityItems, ak as useHiddenApps, al as useHideActivityItem, am as useHideKeytraceClaim, an as useHideOrcidPublication, ao as useHideProfileItem, ap as useHideSifaPublication, aq as useHideStandardPublication, ar as useImportSearchEntities, as as useInboxCounts, at as useLinkSkillToPosition, av as useMutuals, aw as useMyGithubPullRequests, ax as useMyRoadmapVotes, ay as useNetworkStreamCount, az as useOrgClaim, aA as useOrgDomainChallenge, aB as useOrgDomainVerify, aC as useOrgProfile, aD as usePendingConfirmations, aE as useProfile, aF as useProfileCompleteness, aG as useReactionStatus, aH as useRefreshOrcidPublications, aI as useRefreshPds, aJ as useRemoveFeatureAllowlist, aK as useRemoveOrgNotificationEmail, aL as useRepoInventory, aM as useResetProfile, aO as useRetractRoadmapVote, aP as useRevealMarqueDomain, aQ as useRevokeConfirmation, aR as useRoadmapVotes, bt as useSearchCompanies, aS as useSearchFilters, aT as useSearchProfiles, aU as useSelectEntity, aV as useSetExternalAccountPrimary, aW as useSetPositionPrimary, aX as useSetSectionPrimary, aY as useSifaConfig, aZ as useSimilarProfiles, a_ as useSkillSuggestions, a$ as useStats, b0 as useSuggestionCount, b1 as useSuggestions, b2 as useUnfollow, b3 as useUnhideActivityItem, b4 as useUnhideKeytraceClaim, b5 as useUnhideOrcidPublication, b6 as useUnhideProfileItem, b7 as useUnhideSifaPublication, b8 as useUnhideStandardPublication, b9 as useUnlinkSkillFromPosition, ba as useUnlinkedPositions, bb as useUnrevealMarqueDomain, bc as useUnsetExternalAccountPrimary, bd as useUnsetPositionPrimary, be as useUnsetSectionPrimary, bf as useUpdateEducation, bg as useUpdateExternalAccount, bh as useUpdateOrgProfile, bi as useUpdatePosition, bj as useUpdateProfileLocation, bk as useUpdateProfileOverride, bl as useUpdateProfileSelf, bm as useUpdateRecord, bn as useUpdateSkill, bo as useUpdateSkillSubCategories, bp as useUploadAvatar, bq as useUploadNamePronunciationAudio, br as useVerifyExternalAccount, bs as useWipePreview } from '../../use-org-notification-emails-BTR2Yxq8.cjs';
2
+ export { aL as SifaQueryKey, s as sifaQueryKeys } from '../../org-Bq3HbpLD.cjs';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { UseMutationOptions } from '@tanstack/react-query';
5
- import { N as CreateResult, W as WriteResult } from '../../types-DHT7jcZc.cjs';
5
+ import { N as CreateResult, W as WriteResult } from '../../types-BHnGSJ3z.cjs';
6
6
  import 'react';
7
- import '../../index-DmlIG8sJ.cjs';
8
- import '../../shared-v0vl5hov.cjs';
7
+ import '../../index-BeQbepFn.cjs';
8
+ import '../../verification-providers-7il3kPQS.cjs';
9
9
  import 'zod';
10
- import '../../follow-profile-D1l6pulB.cjs';
10
+ import '../../follow-profile-CQ3DTTak.cjs';
11
11
  import '../../org-settings-C73Sin5E.cjs';
12
12
 
13
13
  /**
@@ -1,13 +1,13 @@
1
- export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useAccounts, m as useActivityFeed, n as useActivityTeaser, o as useAddFeatureAllowlist, p as useAddOrgNotificationEmail, q as useAdminReviewQueues, r as useAppAccountCheck, s as useAppsRegistry, t as useAtFundLink, v as useBlueskySuggestions, w as useBulkHideProfileItems, x as useBulkHideStandardPublications, y as useBulkUnhideProfileItems, z as useBulkUnhideStandardPublications, B as useCanonicalSkillSearch, E as useCastRoadmapVote, G as useCreateConfirmation, H as useCreateEducation, I as useCreateEndorsement, J as useCreateExternalAccount, K as useCreatePosition, L as useCreateProfileLocation, M as useCreateReaction, N as useCreateRecord, O as useCreateSkill, Q as useDebouncedValue, T as useDeleteAccount, V as useDeleteAvatarOverride, W as useDeleteEducation, X as useDeleteExternalAccount, Y as useDeleteNamePronunciationAudio, Z as useDeletePosition, _ as useDeleteProfileLocation, $ as useDeleteReaction, a0 as useDeleteRecord, a1 as useDeleteRepoRecords, a2 as useDeleteSkill, a3 as useDismissConfirmation, a4 as useDismissUnlinkedPosition, a5 as useEndorsementCount, a6 as useEntitySearch, a7 as useExternalAccounts, a8 as useFeatureAllowlist, a9 as useFeaturedProfile, aa as useFollow, ab as useFollowers, ac as useFollowing, ad as useFollowingFeed, ae as useFollowingFeedVersion, af as useFollowingList, ag as useGetProfileView, ah as useGivenConfirmations, ai as useHeatmapData, aj as useHiddenActivityItems, ak as useHiddenApps, al as useHideActivityItem, am as useHideKeytraceClaim, an as useHideOrcidPublication, ao as useHideProfileItem, ap as useHideSifaPublication, aq as useHideStandardPublication, ar as useImportSearchEntities, as as useInboxCounts, at as useLinkSkillToPosition, av as useMutuals, aw as useMyGithubPullRequests, ax as useMyRoadmapVotes, ay as useNetworkStreamCount, az as useOrgClaim, aA as useOrgDomainChallenge, aB as useOrgDomainVerify, aC as useOrgProfile, aD as usePendingConfirmations, aE as useProfile, aF as useProfileCompleteness, aG as useReactionStatus, aH as useRefreshOrcidPublications, aI as useRefreshPds, aJ as useRemoveFeatureAllowlist, aK as useRemoveOrgNotificationEmail, aL as useRepoInventory, aM as useResetProfile, aO as useRetractRoadmapVote, aP as useRevealMarqueDomain, aQ as useRevokeConfirmation, aR as useRoadmapVotes, bt as useSearchCompanies, aS as useSearchFilters, aT as useSearchProfiles, aU as useSelectEntity, aV as useSetExternalAccountPrimary, aW as useSetPositionPrimary, aX as useSetSectionPrimary, aY as useSifaConfig, aZ as useSimilarProfiles, a_ as useSkillSuggestions, a$ as useStats, b0 as useSuggestionCount, b1 as useSuggestions, b2 as useUnfollow, b3 as useUnhideActivityItem, b4 as useUnhideKeytraceClaim, b5 as useUnhideOrcidPublication, b6 as useUnhideProfileItem, b7 as useUnhideSifaPublication, b8 as useUnhideStandardPublication, b9 as useUnlinkSkillFromPosition, ba as useUnlinkedPositions, bb as useUnrevealMarqueDomain, bc as useUnsetExternalAccountPrimary, bd as useUnsetPositionPrimary, be as useUnsetSectionPrimary, bf as useUpdateEducation, bg as useUpdateExternalAccount, bh as useUpdateOrgProfile, bi as useUpdatePosition, bj as useUpdateProfileLocation, bk as useUpdateProfileOverride, bl as useUpdateProfileSelf, bm as useUpdateRecord, bn as useUpdateSkill, bo as useUpdateSkillSubCategories, bp as useUploadAvatar, bq as useUploadNamePronunciationAudio, br as useVerifyExternalAccount, bs as useWipePreview } from '../../use-org-notification-emails-CWLCWkmb.js';
2
- export { aK as SifaQueryKey, s as sifaQueryKeys } from '../../org-hxHnoBfg.js';
1
+ export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useAccounts, m as useActivityFeed, n as useActivityTeaser, o as useAddFeatureAllowlist, p as useAddOrgNotificationEmail, q as useAdminReviewQueues, r as useAppAccountCheck, s as useAppsRegistry, t as useAtFundLink, v as useBlueskySuggestions, w as useBulkHideProfileItems, x as useBulkHideStandardPublications, y as useBulkUnhideProfileItems, z as useBulkUnhideStandardPublications, B as useCanonicalSkillSearch, E as useCastRoadmapVote, G as useCreateConfirmation, H as useCreateEducation, I as useCreateEndorsement, J as useCreateExternalAccount, K as useCreatePosition, L as useCreateProfileLocation, M as useCreateReaction, N as useCreateRecord, O as useCreateSkill, Q as useDebouncedValue, T as useDeleteAccount, V as useDeleteAvatarOverride, W as useDeleteEducation, X as useDeleteExternalAccount, Y as useDeleteNamePronunciationAudio, Z as useDeletePosition, _ as useDeleteProfileLocation, $ as useDeleteReaction, a0 as useDeleteRecord, a1 as useDeleteRepoRecords, a2 as useDeleteSkill, a3 as useDismissConfirmation, a4 as useDismissUnlinkedPosition, a5 as useEndorsementCount, a6 as useEntitySearch, a7 as useExternalAccounts, a8 as useFeatureAllowlist, a9 as useFeaturedProfile, aa as useFollow, ab as useFollowers, ac as useFollowing, ad as useFollowingFeed, ae as useFollowingFeedVersion, af as useFollowingList, ag as useGetProfileView, ah as useGivenConfirmations, ai as useHeatmapData, aj as useHiddenActivityItems, ak as useHiddenApps, al as useHideActivityItem, am as useHideKeytraceClaim, an as useHideOrcidPublication, ao as useHideProfileItem, ap as useHideSifaPublication, aq as useHideStandardPublication, ar as useImportSearchEntities, as as useInboxCounts, at as useLinkSkillToPosition, av as useMutuals, aw as useMyGithubPullRequests, ax as useMyRoadmapVotes, ay as useNetworkStreamCount, az as useOrgClaim, aA as useOrgDomainChallenge, aB as useOrgDomainVerify, aC as useOrgProfile, aD as usePendingConfirmations, aE as useProfile, aF as useProfileCompleteness, aG as useReactionStatus, aH as useRefreshOrcidPublications, aI as useRefreshPds, aJ as useRemoveFeatureAllowlist, aK as useRemoveOrgNotificationEmail, aL as useRepoInventory, aM as useResetProfile, aO as useRetractRoadmapVote, aP as useRevealMarqueDomain, aQ as useRevokeConfirmation, aR as useRoadmapVotes, bt as useSearchCompanies, aS as useSearchFilters, aT as useSearchProfiles, aU as useSelectEntity, aV as useSetExternalAccountPrimary, aW as useSetPositionPrimary, aX as useSetSectionPrimary, aY as useSifaConfig, aZ as useSimilarProfiles, a_ as useSkillSuggestions, a$ as useStats, b0 as useSuggestionCount, b1 as useSuggestions, b2 as useUnfollow, b3 as useUnhideActivityItem, b4 as useUnhideKeytraceClaim, b5 as useUnhideOrcidPublication, b6 as useUnhideProfileItem, b7 as useUnhideSifaPublication, b8 as useUnhideStandardPublication, b9 as useUnlinkSkillFromPosition, ba as useUnlinkedPositions, bb as useUnrevealMarqueDomain, bc as useUnsetExternalAccountPrimary, bd as useUnsetPositionPrimary, be as useUnsetSectionPrimary, bf as useUpdateEducation, bg as useUpdateExternalAccount, bh as useUpdateOrgProfile, bi as useUpdatePosition, bj as useUpdateProfileLocation, bk as useUpdateProfileOverride, bl as useUpdateProfileSelf, bm as useUpdateRecord, bn as useUpdateSkill, bo as useUpdateSkillSubCategories, bp as useUploadAvatar, bq as useUploadNamePronunciationAudio, br as useVerifyExternalAccount, bs as useWipePreview } from '../../use-org-notification-emails-DDIi6giD.js';
2
+ export { aL as SifaQueryKey, s as sifaQueryKeys } from '../../org-CelDIOiN.js';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { UseMutationOptions } from '@tanstack/react-query';
5
- import { N as CreateResult, W as WriteResult } from '../../types-jB67EFpw.js';
5
+ import { N as CreateResult, W as WriteResult } from '../../types-BKEBVobU.js';
6
6
  import 'react';
7
- import '../../index-D9GC0u__.js';
8
- import '../../shared-v0vl5hov.js';
7
+ import '../../index-CT-A3BEe.js';
8
+ import '../../verification-providers-7il3kPQS.js';
9
9
  import 'zod';
10
- import '../../follow-profile-D1l6pulB.js';
10
+ import '../../follow-profile-ceqefXAw.js';
11
11
  import '../../org-settings-BShvhyFp.js';
12
12
 
13
13
  /**
@@ -117,7 +117,7 @@ function useFollowingFeedVersion(opts = {}, options) {
117
117
  includeBluesky: opts.includeBluesky,
118
118
  app: opts.app
119
119
  }),
120
- queryFn: async () => (await fetchFollowingFeedVersion(config, opts))?.builtAt ?? null,
120
+ queryFn: () => fetchFollowingFeedVersion(config, opts),
121
121
  ...options
122
122
  });
123
123
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/hooks/use-follow.ts"],"sourcesContent":["'use client';\n\nimport {\n useInfiniteQuery,\n useMutation,\n useQuery,\n useQueryClient,\n type InfiniteData,\n type UseInfiniteQueryOptions,\n type UseMutationOptions,\n type UseQueryOptions,\n} from '@tanstack/react-query';\n\nimport { type WriteResult } from '../client.js';\nimport { useSifaConfig } from '../config.js';\nimport {\n fetchFollowing,\n fetchFollowingFeed,\n fetchFollowingFeedVersion,\n followUser,\n getFollowers,\n getFollowing,\n unfollowUser,\n type FetchFollowListOptions,\n type FetchFollowingFeedOptions,\n type FollowListPage,\n type FollowProfile,\n type FollowUserResult,\n type FollowingResponse,\n} from '../fetchers/follow.js';\nimport type { FollowingFeedResponse } from '../fetchers/follow.js';\nimport { sifaQueryKeys } from '../keys.js';\n\n/**\n * Legacy \"people I follow\" query. Kept as-is for back-compat with sifa-web\n * call sites that pre-date the V5 feed work. New code should use\n * {@link useFollowingList} (paginated per-profile) or\n * {@link useFollowingFeed} (V5 feed).\n */\nexport function useFollowing(\n opts: { source?: string; cursor?: string; limit?: number } = {},\n options?: Omit<\n UseQueryOptions<\n FollowingResponse,\n Error,\n FollowingResponse,\n ReturnType<typeof sifaQueryKeys.follow.following>\n >,\n 'queryKey' | 'queryFn'\n >,\n) {\n const config = useSifaConfig();\n return useQuery({\n queryKey: sifaQueryKeys.follow.following(opts as Record<string, unknown>),\n queryFn: () => fetchFollowing(config, opts),\n ...options,\n });\n}\n\n/** Variables for {@link useFollow}. */\nexport interface FollowVariables {\n handle: string;\n /** Server-resolved DID of the subject, when known. Used for optimistic cache writes. */\n subjectDid?: string;\n /** Optional Sifa-only \"why I followed\" note (max 200 graphemes). */\n note?: string;\n}\n\n/** Variables for {@link useUnfollow}. */\nexport interface UnfollowVariables {\n handle: string;\n}\n\n/**\n * Mutation hook for following a handle. Optimistically marks the\n * follow-state cache as `true` and rolls back on failure (per\n * sifa-api#673 TR8 / iter-1 plan TR8). Invalidates the followers /\n * following lists and the V5 feed on success so they refetch.\n *\n * Optimistic cache entry: `sifaQueryKeys.follow.followers(handle)`\n * receives the viewer prepended to the list shape; the optimistic update\n * is intentionally conservative — it only flips per-handle state and\n * doesn't try to invent rich `FollowProfile` fields.\n */\nexport function useFollow(\n options?: Omit<UseMutationOptions<FollowUserResult, Error, FollowVariables>, 'mutationFn'>,\n) {\n const config = useSifaConfig();\n const queryClient = useQueryClient();\n return useMutation({\n // Spread first: a consumer-supplied handler would otherwise replace the\n // one below and silently drop cache invalidation (#453).\n ...options,\n mutationFn: ({ handle, note }: FollowVariables) => followUser(config, handle, { note }),\n onSuccess: async (result, variables, onMutateResult, context) => {\n if (result.success) {\n await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });\n }\n await options?.onSuccess?.(result, variables, onMutateResult, context);\n },\n onError: async (error, variables, onMutateResult, context) => {\n // Rollback: refetch the affected lists so stale optimistic state is reset.\n await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });\n await options?.onError?.(error, variables, onMutateResult, context);\n },\n });\n}\n\n/**\n * Mutation hook for unfollowing a handle. Optimistic + rollback mirror\n * of {@link useFollow}.\n */\nexport function useUnfollow(\n options?: Omit<UseMutationOptions<WriteResult, Error, UnfollowVariables>, 'mutationFn'>,\n) {\n const config = useSifaConfig();\n const queryClient = useQueryClient();\n return useMutation({\n // Spread first: a consumer-supplied handler would otherwise replace the\n // one below and silently drop cache invalidation (#453).\n ...options,\n mutationFn: ({ handle }: UnfollowVariables) => unfollowUser(config, handle),\n onSuccess: async (result, variables, onMutateResult, context) => {\n if (result.success) {\n await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });\n }\n await options?.onSuccess?.(result, variables, onMutateResult, context);\n },\n onError: async (error, variables, onMutateResult, context) => {\n await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });\n await options?.onError?.(error, variables, onMutateResult, context);\n },\n });\n}\n\n/** Infinite-query hook for `handle`'s followers list. */\nexport function useFollowers(\n handle: string,\n opts: Omit<FetchFollowListOptions, 'cursor'> = {},\n options?: Omit<\n UseInfiniteQueryOptions<\n FollowListPage,\n Error,\n InfiniteData<FollowListPage>,\n ReturnType<typeof sifaQueryKeys.follow.followers>,\n string | undefined\n >,\n 'queryKey' | 'queryFn' | 'initialPageParam' | 'getNextPageParam'\n >,\n) {\n const config = useSifaConfig();\n return useInfiniteQuery({\n queryKey: sifaQueryKeys.follow.followers(handle),\n queryFn: ({ pageParam }) => getFollowers(config, handle, { ...opts, cursor: pageParam }),\n initialPageParam: undefined as string | undefined,\n getNextPageParam: (lastPage: FollowListPage) => lastPage.cursor ?? undefined,\n enabled: handle.length > 0,\n ...options,\n });\n}\n\n/** Infinite-query hook for who `handle` follows. */\nexport function useFollowingList(\n handle: string,\n opts: Omit<FetchFollowListOptions, 'cursor'> = {},\n options?: Omit<\n UseInfiniteQueryOptions<\n FollowListPage,\n Error,\n InfiniteData<FollowListPage>,\n ReturnType<typeof sifaQueryKeys.follow.followingOf>,\n string | undefined\n >,\n 'queryKey' | 'queryFn' | 'initialPageParam' | 'getNextPageParam'\n >,\n) {\n const config = useSifaConfig();\n return useInfiniteQuery({\n queryKey: sifaQueryKeys.follow.followingOf(handle),\n queryFn: ({ pageParam }) => getFollowing(config, handle, { ...opts, cursor: pageParam }),\n initialPageParam: undefined as string | undefined,\n getNextPageParam: (lastPage: FollowListPage) => lastPage.cursor ?? undefined,\n enabled: handle.length > 0,\n ...options,\n });\n}\n\n/**\n * Infinite-query hook for the V5 home feed (authenticated viewer).\n *\n * The viewer's cross-app following feed: what OTHER apps their connections use.\n * See {@link fetchFollowingFeed}. v1 is a finite first page (no infinite scroll\n * yet). The native app must set `config.getAuthToken`; web uses its cookie.\n */\nexport function useFollowingFeed(\n opts: FetchFollowingFeedOptions = {},\n options?: Omit<\n UseQueryOptions<\n FollowingFeedResponse,\n Error,\n FollowingFeedResponse,\n ReturnType<typeof sifaQueryKeys.follow.feed>\n >,\n 'queryKey' | 'queryFn'\n >,\n) {\n const config = useSifaConfig();\n return useQuery({\n // `app` is part of the key: each source tab is its own cache entry, so\n // switching tabs does not serve the previous tab's items.\n queryKey: sifaQueryKeys.follow.feed({\n limit: opts.limit,\n includeBluesky: opts.includeBluesky,\n app: opts.app,\n }),\n // A failed request is an error, not an empty feed: React Query retries it,\n // and the client can tell \"could not load\" from \"nothing yet\".\n queryFn: async () => {\n const feed = await fetchFollowingFeed(config, opts);\n if (!feed) throw new Error('Following feed unavailable');\n return feed;\n },\n ...options,\n });\n}\n\n/**\n * When the cached following feed for the same query was built (ISO 8601, or\n * null). Poll it while a `stale` feed is shown, e.g. with `refetchInterval`,\n * and offer the newer feed once {@link isNewerFollowingFeed} is true.\n */\nexport function useFollowingFeedVersion(\n opts: FetchFollowingFeedOptions = {},\n options?: Omit<\n UseQueryOptions<\n string | null,\n Error,\n string | null,\n ReturnType<typeof sifaQueryKeys.follow.feedVersion>\n >,\n 'queryKey' | 'queryFn'\n >,\n) {\n const config = useSifaConfig();\n return useQuery({\n queryKey: sifaQueryKeys.follow.feedVersion({\n limit: opts.limit,\n includeBluesky: opts.includeBluesky,\n app: opts.app,\n }),\n queryFn: async () => (await fetchFollowingFeedVersion(config, opts))?.builtAt ?? null,\n ...options,\n });\n}\n\n// Re-export for convenience so consumers only need one import path for the type.\nexport type { FollowProfile };\n"],"mappings":";;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAEP,OAAiC;AACjC,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AAEP,SAAS,qBAAqB;AAQvB,SAAS,aACd,OAA6D,CAAC,GAC9D,SASA;AACA,QAAM,SAAS,cAAc;AAC7B,SAAO,SAAS;AAAA,IACd,UAAU,cAAc,OAAO,UAAU,IAA+B;AAAA,IACxE,SAAS,MAAM,eAAe,QAAQ,IAAI;AAAA,IAC1C,GAAG;AAAA,EACL,CAAC;AACH;AA2BO,SAAS,UACd,SACA;AACA,QAAM,SAAS,cAAc;AAC7B,QAAM,cAAc,eAAe;AACnC,SAAO,YAAY;AAAA;AAAA;AAAA,IAGjB,GAAG;AAAA,IACH,YAAY,CAAC,EAAE,QAAQ,KAAK,MAAuB,WAAW,QAAQ,QAAQ,EAAE,KAAK,CAAC;AAAA,IACtF,WAAW,OAAO,QAAQ,WAAW,gBAAgB,YAAY;AAC/D,UAAI,OAAO,SAAS;AAClB,cAAM,YAAY,kBAAkB,EAAE,UAAU,cAAc,OAAO,IAAI,EAAE,CAAC;AAAA,MAC9E;AACA,YAAM,SAAS,YAAY,QAAQ,WAAW,gBAAgB,OAAO;AAAA,IACvE;AAAA,IACA,SAAS,OAAO,OAAO,WAAW,gBAAgB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;AAAA,IACtB,UAAU,cAAc,OAAO,YAAY,MAAM;AAAA,IACjD,SAAS,CAAC,EAAE,UAAU,MAAM,aAAa,QAAQ,QAAQ,EAAE,GAAG,MAAM,QAAQ,UAAU,CAAC;AAAA,IACvF,kBAAkB;AAAA,IAClB,kBAAkB,CAAC,aAA6B,SAAS,UAAU;AAAA,IACnE,SAAS,OAAO,SAAS;AAAA,IACzB,GAAG;AAAA,EACL,CAAC;AACH;AASO,SAAS,iBACd,OAAkC,CAAC,GACnC,SASA;AACA,QAAM,SAAS,cAAc;AAC7B,SAAO,SAAS;AAAA;AAAA;AAAA,IAGd,UAAU,cAAc,OAAO,KAAK;AAAA,MAClC,OAAO,KAAK;AAAA,MACZ,gBAAgB,KAAK;AAAA,MACrB,KAAK,KAAK;AAAA,IACZ,CAAC;AAAA;AAAA;AAAA,IAGD,SAAS,YAAY;AACnB,YAAM,OAAO,MAAM,mBAAmB,QAAQ,IAAI;AAClD,UAAI,CAAC,KAAM,OAAM,IAAI,MAAM,4BAA4B;AACvD,aAAO;AAAA,IACT;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH;AAOO,SAAS,wBACd,OAAkC,CAAC,GACnC,SASA;AACA,QAAM,SAAS,cAAc;AAC7B,SAAO,SAAS;AAAA,IACd,UAAU,cAAc,OAAO,YAAY;AAAA,MACzC,OAAO,KAAK;AAAA,MACZ,gBAAgB,KAAK;AAAA,MACrB,KAAK,KAAK;AAAA,IACZ,CAAC;AAAA,IACD,SAAS,aAAa,MAAM,0BAA0B,QAAQ,IAAI,IAAI,WAAW;AAAA,IACjF,GAAG;AAAA,EACL,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../../src/query/hooks/use-follow.ts"],"sourcesContent":["'use client';\n\nimport {\n useInfiniteQuery,\n useMutation,\n useQuery,\n useQueryClient,\n type InfiniteData,\n type UseInfiniteQueryOptions,\n type UseMutationOptions,\n type UseQueryOptions,\n} from '@tanstack/react-query';\n\nimport { type WriteResult } from '../client.js';\nimport { useSifaConfig } from '../config.js';\nimport {\n fetchFollowing,\n fetchFollowingFeed,\n fetchFollowingFeedVersion,\n type FollowingFeedVersion,\n followUser,\n getFollowers,\n getFollowing,\n unfollowUser,\n type FetchFollowListOptions,\n type FetchFollowingFeedOptions,\n type FollowListPage,\n type FollowProfile,\n type FollowUserResult,\n type FollowingResponse,\n} from '../fetchers/follow.js';\nimport type { FollowingFeedResponse } from '../fetchers/follow.js';\nimport { sifaQueryKeys } from '../keys.js';\n\n/**\n * Legacy \"people I follow\" query. Kept as-is for back-compat with sifa-web\n * call sites that pre-date the V5 feed work. New code should use\n * {@link useFollowingList} (paginated per-profile) or\n * {@link useFollowingFeed} (V5 feed).\n */\nexport function useFollowing(\n opts: { source?: string; cursor?: string; limit?: number } = {},\n options?: Omit<\n UseQueryOptions<\n FollowingResponse,\n Error,\n FollowingResponse,\n ReturnType<typeof sifaQueryKeys.follow.following>\n >,\n 'queryKey' | 'queryFn'\n >,\n) {\n const config = useSifaConfig();\n return useQuery({\n queryKey: sifaQueryKeys.follow.following(opts as Record<string, unknown>),\n queryFn: () => fetchFollowing(config, opts),\n ...options,\n });\n}\n\n/** Variables for {@link useFollow}. */\nexport interface FollowVariables {\n handle: string;\n /** Server-resolved DID of the subject, when known. Used for optimistic cache writes. */\n subjectDid?: string;\n /** Optional Sifa-only \"why I followed\" note (max 200 graphemes). */\n note?: string;\n}\n\n/** Variables for {@link useUnfollow}. */\nexport interface UnfollowVariables {\n handle: string;\n}\n\n/**\n * Mutation hook for following a handle. Optimistically marks the\n * follow-state cache as `true` and rolls back on failure (per\n * sifa-api#673 TR8 / iter-1 plan TR8). Invalidates the followers /\n * following lists and the V5 feed on success so they refetch.\n *\n * Optimistic cache entry: `sifaQueryKeys.follow.followers(handle)`\n * receives the viewer prepended to the list shape; the optimistic update\n * is intentionally conservative — it only flips per-handle state and\n * doesn't try to invent rich `FollowProfile` fields.\n */\nexport function useFollow(\n options?: Omit<UseMutationOptions<FollowUserResult, Error, FollowVariables>, 'mutationFn'>,\n) {\n const config = useSifaConfig();\n const queryClient = useQueryClient();\n return useMutation({\n // Spread first: a consumer-supplied handler would otherwise replace the\n // one below and silently drop cache invalidation (#453).\n ...options,\n mutationFn: ({ handle, note }: FollowVariables) => followUser(config, handle, { note }),\n onSuccess: async (result, variables, onMutateResult, context) => {\n if (result.success) {\n await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });\n }\n await options?.onSuccess?.(result, variables, onMutateResult, context);\n },\n onError: async (error, variables, onMutateResult, context) => {\n // Rollback: refetch the affected lists so stale optimistic state is reset.\n await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });\n await options?.onError?.(error, variables, onMutateResult, context);\n },\n });\n}\n\n/**\n * Mutation hook for unfollowing a handle. Optimistic + rollback mirror\n * of {@link useFollow}.\n */\nexport function useUnfollow(\n options?: Omit<UseMutationOptions<WriteResult, Error, UnfollowVariables>, 'mutationFn'>,\n) {\n const config = useSifaConfig();\n const queryClient = useQueryClient();\n return useMutation({\n // Spread first: a consumer-supplied handler would otherwise replace the\n // one below and silently drop cache invalidation (#453).\n ...options,\n mutationFn: ({ handle }: UnfollowVariables) => unfollowUser(config, handle),\n onSuccess: async (result, variables, onMutateResult, context) => {\n if (result.success) {\n await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });\n }\n await options?.onSuccess?.(result, variables, onMutateResult, context);\n },\n onError: async (error, variables, onMutateResult, context) => {\n await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });\n await options?.onError?.(error, variables, onMutateResult, context);\n },\n });\n}\n\n/** Infinite-query hook for `handle`'s followers list. */\nexport function useFollowers(\n handle: string,\n opts: Omit<FetchFollowListOptions, 'cursor'> = {},\n options?: Omit<\n UseInfiniteQueryOptions<\n FollowListPage,\n Error,\n InfiniteData<FollowListPage>,\n ReturnType<typeof sifaQueryKeys.follow.followers>,\n string | undefined\n >,\n 'queryKey' | 'queryFn' | 'initialPageParam' | 'getNextPageParam'\n >,\n) {\n const config = useSifaConfig();\n return useInfiniteQuery({\n queryKey: sifaQueryKeys.follow.followers(handle),\n queryFn: ({ pageParam }) => getFollowers(config, handle, { ...opts, cursor: pageParam }),\n initialPageParam: undefined as string | undefined,\n getNextPageParam: (lastPage: FollowListPage) => lastPage.cursor ?? undefined,\n enabled: handle.length > 0,\n ...options,\n });\n}\n\n/** Infinite-query hook for who `handle` follows. */\nexport function useFollowingList(\n handle: string,\n opts: Omit<FetchFollowListOptions, 'cursor'> = {},\n options?: Omit<\n UseInfiniteQueryOptions<\n FollowListPage,\n Error,\n InfiniteData<FollowListPage>,\n ReturnType<typeof sifaQueryKeys.follow.followingOf>,\n string | undefined\n >,\n 'queryKey' | 'queryFn' | 'initialPageParam' | 'getNextPageParam'\n >,\n) {\n const config = useSifaConfig();\n return useInfiniteQuery({\n queryKey: sifaQueryKeys.follow.followingOf(handle),\n queryFn: ({ pageParam }) => getFollowing(config, handle, { ...opts, cursor: pageParam }),\n initialPageParam: undefined as string | undefined,\n getNextPageParam: (lastPage: FollowListPage) => lastPage.cursor ?? undefined,\n enabled: handle.length > 0,\n ...options,\n });\n}\n\n/**\n * Infinite-query hook for the V5 home feed (authenticated viewer).\n *\n * The viewer's cross-app following feed: what OTHER apps their connections use.\n * See {@link fetchFollowingFeed}. v1 is a finite first page (no infinite scroll\n * yet). The native app must set `config.getAuthToken`; web uses its cookie.\n */\nexport function useFollowingFeed(\n opts: FetchFollowingFeedOptions = {},\n options?: Omit<\n UseQueryOptions<\n FollowingFeedResponse,\n Error,\n FollowingFeedResponse,\n ReturnType<typeof sifaQueryKeys.follow.feed>\n >,\n 'queryKey' | 'queryFn'\n >,\n) {\n const config = useSifaConfig();\n return useQuery({\n // `app` is part of the key: each source tab is its own cache entry, so\n // switching tabs does not serve the previous tab's items.\n queryKey: sifaQueryKeys.follow.feed({\n limit: opts.limit,\n includeBluesky: opts.includeBluesky,\n app: opts.app,\n }),\n // A failed request is an error, not an empty feed: React Query retries it,\n // and the client can tell \"could not load\" from \"nothing yet\".\n queryFn: async () => {\n const feed = await fetchFollowingFeed(config, opts);\n if (!feed) throw new Error('Following feed unavailable');\n return feed;\n },\n ...options,\n });\n}\n\n/**\n * When the cached following feed for the same query was built, and a\n * fingerprint of its items (or null). Poll it while a `stale` feed is shown,\n * e.g. with `refetchInterval`, and offer the newer feed once\n * {@link isNewerFollowingFeed} is true.\n */\nexport function useFollowingFeedVersion(\n opts: FetchFollowingFeedOptions = {},\n options?: Omit<\n UseQueryOptions<\n FollowingFeedVersion | null,\n Error,\n FollowingFeedVersion | null,\n ReturnType<typeof sifaQueryKeys.follow.feedVersion>\n >,\n 'queryKey' | 'queryFn'\n >,\n) {\n const config = useSifaConfig();\n return useQuery({\n queryKey: sifaQueryKeys.follow.feedVersion({\n limit: opts.limit,\n includeBluesky: opts.includeBluesky,\n app: opts.app,\n }),\n queryFn: () => fetchFollowingFeedVersion(config, opts),\n ...options,\n });\n}\n\n// Re-export for convenience so consumers only need one import path for the type.\nexport type { FollowProfile };\n"],"mappings":";;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAEP,OAAiC;AACjC,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AAEP,SAAS,qBAAqB;AAQvB,SAAS,aACd,OAA6D,CAAC,GAC9D,SASA;AACA,QAAM,SAAS,cAAc;AAC7B,SAAO,SAAS;AAAA,IACd,UAAU,cAAc,OAAO,UAAU,IAA+B;AAAA,IACxE,SAAS,MAAM,eAAe,QAAQ,IAAI;AAAA,IAC1C,GAAG;AAAA,EACL,CAAC;AACH;AA2BO,SAAS,UACd,SACA;AACA,QAAM,SAAS,cAAc;AAC7B,QAAM,cAAc,eAAe;AACnC,SAAO,YAAY;AAAA;AAAA;AAAA,IAGjB,GAAG;AAAA,IACH,YAAY,CAAC,EAAE,QAAQ,KA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SAAS,MAAM,0BAA0B,QAAQ,IAAI;AAAA,IACrD,GAAG;AAAA,EACL,CAAC;AACH;","names":[]}
@@ -948,11 +948,17 @@ async function switchAccount(config, did, options = {}) {
948
948
  // src/query/fetchers/search.ts
949
949
  var EMPTY_SEARCH = { profiles: [], total: 0, limit: 20, offset: 0 };
950
950
  var EMPTY_FILTERS = { countries: [], industries: [], apps: [], openTo: [] };
951
+ function appendAll(params, key, value) {
952
+ if (!value) return;
953
+ for (const v of Array.isArray(value) ? value : [value]) {
954
+ if (v) params.append(key, v);
955
+ }
956
+ }
951
957
  async function fetchSearchProfiles(config, filters, options = {}) {
952
958
  const params = new URLSearchParams();
953
959
  if (filters.q) params.set("q", filters.q);
954
- if (filters.skill) params.set("skill", filters.skill);
955
- if (filters.country) params.set("country", filters.country);
960
+ appendAll(params, "skill", filters.skill);
961
+ appendAll(params, "country", filters.country);
956
962
  if (filters.industry) params.set("industry", filters.industry);
957
963
  if (filters.domain) params.set("domain", filters.domain);
958
964
  if (filters.workplace) params.set("workplace", filters.workplace);
@@ -1308,19 +1314,28 @@ async function fetchFollowingFeed(config, opts = {}) {
1308
1314
  async function fetchFollowingFeedVersion(config, opts = {}) {
1309
1315
  const { query, headers } = await followingFeedRequest(config, opts);
1310
1316
  try {
1311
- return await apiFetch(config, `/api/following/feed/version${query}`, {
1317
+ const body = await apiFetch(config, `/api/following/feed/version${query}`, {
1312
1318
  credentials: "include",
1313
1319
  cache: "no-store",
1314
1320
  ...opts,
1315
1321
  headers
1316
1322
  });
1323
+ return isFollowingFeedVersion(body) ? body : null;
1317
1324
  } catch {
1318
1325
  return null;
1319
1326
  }
1320
1327
  }
1321
- function isNewerFollowingFeed(shownBuiltAt, latestBuiltAt) {
1322
- if (!shownBuiltAt || !latestBuiltAt) return false;
1323
- return Date.parse(latestBuiltAt) > Date.parse(shownBuiltAt);
1328
+ function isFollowingFeedVersion(value) {
1329
+ if (typeof value !== "object" || value === null) return false;
1330
+ const { builtAt, contentHash } = value;
1331
+ const stringOrNull = (v) => v === null || typeof v === "string";
1332
+ return stringOrNull(builtAt) && stringOrNull(contentHash) && (builtAt === null || !Number.isNaN(Date.parse(builtAt)));
1333
+ }
1334
+ function isNewerFollowingFeed(shown, latest) {
1335
+ if (shown?.builtAt == null || latest?.builtAt == null || shown.contentHash == null || latest.contentHash == null) {
1336
+ return false;
1337
+ }
1338
+ return Date.parse(latest.builtAt) > Date.parse(shown.builtAt) && latest.contentHash !== shown.contentHash;
1324
1339
  }
1325
1340
 
1326
1341
  // src/query/fetchers/follow-extras.ts
@@ -3279,7 +3294,7 @@ function useFollowingFeedVersion(opts = {}, options) {
3279
3294
  includeBluesky: opts.includeBluesky,
3280
3295
  app: opts.app
3281
3296
  }),
3282
- queryFn: async () => (await fetchFollowingFeedVersion(config, opts))?.builtAt ?? null,
3297
+ queryFn: () => fetchFollowingFeedVersion(config, opts),
3283
3298
  ...options
3284
3299
  });
3285
3300
  }