@singi-labs/sifa-sdk 0.12.4 → 0.12.5

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 (33) hide show
  1. package/dist/{adult-content-n2uy3rT3.d.cts → adult-content-BOY_T6j3.d.cts} +265 -1
  2. package/dist/{adult-content-n2uy3rT3.d.ts → adult-content-BOY_T6j3.d.ts} +265 -1
  3. package/dist/{index-HTTNUcN4.d.cts → index-BJV2XHOP.d.cts} +16 -3
  4. package/dist/{index-BLv2bK_K.d.ts → index-C1SIpwOj.d.ts} +16 -3
  5. package/dist/{index-tkWmoZAu.d.ts → index-m5MELVUQ.d.ts} +12 -3
  6. package/dist/{index-COjgkXRe.d.cts → index-xcu81B4E.d.cts} +12 -3
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +2 -2
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/{org-lIB6pSYc.d.cts → org-92bvwL8H.d.cts} +2 -1
  14. package/dist/{org-BZcAnLab.d.ts → org-Bxz__jbx.d.ts} +2 -1
  15. package/dist/query/fetchers/index.cjs +15 -0
  16. package/dist/query/fetchers/index.cjs.map +1 -1
  17. package/dist/query/fetchers/index.d.cts +3 -3
  18. package/dist/query/fetchers/index.d.ts +3 -3
  19. package/dist/query/fetchers/index.js +15 -1
  20. package/dist/query/fetchers/index.js.map +1 -1
  21. package/dist/query/hooks/index.cjs +26 -0
  22. package/dist/query/hooks/index.cjs.map +1 -1
  23. package/dist/query/hooks/index.d.cts +3 -3
  24. package/dist/query/hooks/index.d.ts +3 -3
  25. package/dist/query/hooks/index.js +26 -1
  26. package/dist/query/hooks/index.js.map +1 -1
  27. package/dist/query/index.cjs +25 -0
  28. package/dist/query/index.cjs.map +1 -1
  29. package/dist/query/index.d.cts +5 -5
  30. package/dist/query/index.d.ts +5 -5
  31. package/dist/query/index.js +24 -1
  32. package/dist/query/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ad as RefreshPdsResult, ar as UpdateProfileOverrideInput, as as UpdateProfileSelfInput, at as UploadAvatarResult, j as CreateResult, a1 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, au as VerifyExternalAccountResult, E as EndorsementInput, ac as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ao as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, aj as SearchFilters, ak as SearchResponse, an as SkillSearchResult, l as FeaturedProfile, am as SimilarProfile, v as FetchSuggestionsOptions, aq as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ab as ReactionStatus, aa as ReactionResult, a9 as ReactionError, ai as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-lIB6pSYc.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ad as RefreshPdsResult, ar as UpdateProfileOverrideInput, as as UpdateProfileSelfInput, at as UploadAvatarResult, j as CreateResult, a1 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, au as VerifyExternalAccountResult, E as EndorsementInput, ac as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ao as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, aj as SearchFilters, ak as SearchResponse, an as SkillSearchResult, l as FeaturedProfile, am as SimilarProfile, v as FetchSuggestionsOptions, aq as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ab as ReactionStatus, aa as ReactionResult, a9 as ReactionError, ai as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-92bvwL8H.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 { d as Profile, e as ProfilePosition, G as SkillRef, E as ExternalAccount, S as SkillSuggestion, O as OrgFloorVerdict } from './adult-content-n2uy3rT3.cjs';
6
+ import { d as Profile, _ as ProfileView, e as ProfilePosition, a3 as SkillRef, E as ExternalAccount, S as SkillSuggestion, O as OrgFloorVerdict } from './adult-content-BOY_T6j3.cjs';
7
7
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-D2ZV8Eaj.cjs';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.cjs';
9
9
 
@@ -45,6 +45,15 @@ declare function useProfile(handleOrDid: string | undefined | null, options?: Om
45
45
  */
46
46
  declare function useAtFundLink(did: string | undefined | null, options?: Omit<UseQueryOptions<string | null, Error, string | null, ReturnType<typeof sifaQueryKeys.profile.atFundLink>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<string | null, Error>;
47
47
 
48
+ /**
49
+ * React hook that reads the aggregated public profile view via the
50
+ * `id.sifa.getProfileView` XRPC query. Returns `null` data when the profile
51
+ * does not exist.
52
+ *
53
+ * Pass `{ enabled: false }` (or an empty `actor`) to defer the fetch.
54
+ */
55
+ declare function useGetProfileView(actor: string | undefined | null, options?: Omit<UseQueryOptions<ProfileView | null, Error, ProfileView | null, ReturnType<typeof sifaQueryKeys.profile.view>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<ProfileView | null>, Error>;
56
+
48
57
  /**
49
58
  * React hook for updating the authenticated user's profile self record.
50
59
  * On success, invalidates the owner's profile cache.
@@ -691,4 +700,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
691
700
  email: string;
692
701
  }, unknown>;
693
702
 
694
- export { useFeatureAllowlist as $, type AddFeatureAllowlistVariables as A, useCreateExternalAccount as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreatePosition as E, type FollowVariables as F, useCreateProfileLocation as G, useCreateReaction as H, useCreateRecord as I, useCreateSkill as J, useDebouncedValue as K, useDeleteAccount as L, useDeleteAvatarOverride as M, useDeleteEducation as N, useDeleteExternalAccount as O, type PositionSkillLinkVariables as P, useDeletePosition as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteProfileLocation as T, type UnfollowVariables as U, useDeleteReaction as V, useDeleteRecord as W, useDeleteSkill as X, useEndorsementCount as Y, useEntitySearch as Z, useExternalAccounts as _, type CreateRecordVariables as a, useUpdateSkill as a$, useFeaturedProfile as a0, useFollow as a1, useFollowers as a2, useFollowing as a3, useFollowingFeed as a4, useFollowingList as a5, useHeatmapData as a6, useHiddenApps as a7, useHideKeytraceClaim as a8, useHideOrcidPublication as a9, useSelectEntity as aA, useSetExternalAccountPrimary as aB, useSetPositionPrimary as aC, useSifaConfig as aD, useSimilarProfiles as aE, useSkillSuggestions as aF, useStats as aG, useSuggestionCount as aH, useSuggestions as aI, useUnfollow as aJ, useUnhideKeytraceClaim as aK, useUnhideOrcidPublication as aL, useUnhideProfileItem as aM, useUnhideSifaPublication as aN, useUnhideStandardPublication as aO, useUnlinkSkillFromPosition as aP, useUnrevealMarqueDomain as aQ, useUnsetExternalAccountPrimary as aR, useUnsetPositionPrimary as aS, useUpdateEducation as aT, useUpdateExternalAccount as aU, useUpdateOrgProfile as aV, useUpdatePosition as aW, useUpdateProfileLocation as aX, useUpdateProfileOverride as aY, useUpdateProfileSelf as aZ, useUpdateRecord as a_, useHideProfileItem as aa, useHideSifaPublication as ab, useHideStandardPublication as ac, useImportSearchEntities as ad, useLinkSkillToPosition as ae, useMintEntityDomain as af, useMutuals as ag, useMyRoadmapVotes as ah, useNetworkStreamCount as ai, useOrgClaim as aj, useOrgDomainChallenge as ak, useOrgDomainVerify as al, useOrgProfile as am, useProfile as an, useReactionStatus as ao, useRefreshOrcidPublications as ap, useRefreshPds as aq, useRemoveFeatureAllowlist as ar, useRemoveOrgNotificationEmail as as, useResetProfile as at, useResolveEntityDomain as au, useRetractRoadmapVote as av, useRevealMarqueDomain as aw, useRoadmapVotes as ax, useSearchFilters as ay, useSearchProfiles as az, type DeleteRecordVariables as b, useUploadAvatar as b0, useVerifyExternalAccount as b1, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillVariables as i, type UseEntitySearchOptions as j, useActivityTeaser as k, useAddFeatureAllowlist as l, useAddOrgNotificationEmail as m, useAppAccountCheck as n, useAppsRegistry as o, useAtFundLink as p, useBlueskySuggestions as q, useBulkHideProfileItems as r, useBulkHideStandardPublications as s, useBulkUnhideProfileItems as t, useActivityFeed as u, useBulkUnhideStandardPublications as v, useCanonicalSkillSearch as w, useCastRoadmapVote as x, useCreateEducation as y, useCreateEndorsement as z };
703
+ export { useFeatureAllowlist as $, type AddFeatureAllowlistVariables as A, useCreateExternalAccount as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreatePosition as E, type FollowVariables as F, useCreateProfileLocation as G, useCreateReaction as H, useCreateRecord as I, useCreateSkill as J, useDebouncedValue as K, useDeleteAccount as L, useDeleteAvatarOverride as M, useDeleteEducation as N, useDeleteExternalAccount as O, type PositionSkillLinkVariables as P, useDeletePosition as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteProfileLocation as T, type UnfollowVariables as U, useDeleteReaction as V, useDeleteRecord as W, useDeleteSkill as X, useEndorsementCount as Y, useEntitySearch as Z, useExternalAccounts as _, type CreateRecordVariables as a, useUpdateRecord as a$, useFeaturedProfile as a0, useFollow as a1, useFollowers as a2, useFollowing as a3, useFollowingFeed as a4, useFollowingList as a5, useGetProfileView as a6, useHeatmapData as a7, useHiddenApps as a8, useHideKeytraceClaim as a9, useSearchProfiles as aA, useSelectEntity as aB, useSetExternalAccountPrimary as aC, useSetPositionPrimary as aD, useSifaConfig as aE, useSimilarProfiles as aF, useSkillSuggestions as aG, useStats as aH, useSuggestionCount as aI, useSuggestions as aJ, useUnfollow as aK, useUnhideKeytraceClaim as aL, useUnhideOrcidPublication as aM, useUnhideProfileItem as aN, useUnhideSifaPublication as aO, useUnhideStandardPublication as aP, useUnlinkSkillFromPosition as aQ, useUnrevealMarqueDomain as aR, useUnsetExternalAccountPrimary as aS, useUnsetPositionPrimary as aT, useUpdateEducation as aU, useUpdateExternalAccount as aV, useUpdateOrgProfile as aW, useUpdatePosition as aX, useUpdateProfileLocation as aY, useUpdateProfileOverride as aZ, useUpdateProfileSelf as a_, useHideOrcidPublication as aa, useHideProfileItem as ab, useHideSifaPublication as ac, useHideStandardPublication as ad, useImportSearchEntities as ae, useLinkSkillToPosition as af, useMintEntityDomain as ag, useMutuals as ah, useMyRoadmapVotes as ai, useNetworkStreamCount as aj, useOrgClaim as ak, useOrgDomainChallenge as al, useOrgDomainVerify as am, useOrgProfile as an, useProfile as ao, useReactionStatus as ap, useRefreshOrcidPublications as aq, useRefreshPds as ar, useRemoveFeatureAllowlist as as, useRemoveOrgNotificationEmail as at, useResetProfile as au, useResolveEntityDomain as av, useRetractRoadmapVote as aw, useRevealMarqueDomain as ax, useRoadmapVotes as ay, useSearchFilters as az, type DeleteRecordVariables as b, useUpdateSkill as b0, useUploadAvatar as b1, useVerifyExternalAccount as b2, type SifaProviderProps as c, type UpdateEducationVariables as d, type UpdateExternalAccountVariables as e, type UpdatePositionVariables as f, type UpdateProfileLocationVariables as g, type UpdateRecordVariables as h, type UpdateSkillVariables as i, type UseEntitySearchOptions as j, useActivityTeaser as k, useAddFeatureAllowlist as l, useAddOrgNotificationEmail as m, useAppAccountCheck as n, useAppsRegistry as o, useAtFundLink as p, useBlueskySuggestions as q, useBulkHideProfileItems as r, useBulkHideStandardPublications as s, useBulkUnhideProfileItems as t, useActivityFeed as u, useBulkUnhideStandardPublications as v, useCanonicalSkillSearch as w, useCastRoadmapVote as x, useCreateEducation as y, useCreateEndorsement as z };
package/dist/index.cjs CHANGED
@@ -3432,7 +3432,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
3432
3432
  });
3433
3433
 
3434
3434
  // src/index.ts
3435
- var SIFA_SDK_VERSION = "0.12.4";
3435
+ var SIFA_SDK_VERSION = "0.12.5";
3436
3436
 
3437
3437
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
3438
3438
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;