@singi-labs/sifa-sdk 0.19.74 → 0.19.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +63 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/logic/index.js +26 -0
- package/dist/logic/index.js.map +1 -1
- package/dist/logic/site-activity-preset.js +68 -0
- package/dist/logic/site-activity-preset.js.map +1 -0
- package/dist/{network-map-DIUQSB0r.d.ts → network-map-73EK_ow8.d.ts} +2 -2
- package/dist/{network-map-BRBzAHrT.d.cts → network-map-DPt0o-vA.d.cts} +2 -2
- package/dist/{org-A9Tz-Uv9.d.cts → org-Bb1cRhJu.d.cts} +63 -3
- package/dist/{org-Spq8yU-B.d.ts → org-aUopODEW.d.ts} +63 -3
- package/dist/{profile-summary-6GySSJvO.d.ts → profile-summary-8TYJWh1y.d.ts} +1 -1
- package/dist/{profile-summary-X4MGExfS.d.cts → profile-summary-CaPVQo_x.d.cts} +1 -1
- package/dist/query/fetchers/activity-preferences.js +43 -0
- package/dist/query/fetchers/activity-preferences.js.map +1 -0
- package/dist/query/fetchers/activity.js +3 -0
- package/dist/query/fetchers/activity.js.map +1 -1
- package/dist/query/fetchers/index.cjs +43 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +5 -5
- package/dist/query/fetchers/index.d.ts +5 -5
- package/dist/query/fetchers/index.js +8 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +76 -1
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +8 -0
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/hooks/use-activity-preferences.js +53 -0
- package/dist/query/hooks/use-activity-preferences.js.map +1 -0
- package/dist/query/hooks/use-activity.js.map +1 -1
- package/dist/query/index.cjs +77 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/query/index.js +16 -0
- package/dist/query/index.js.map +1 -1
- package/dist/query/keys.js +4 -1
- package/dist/query/keys.js.map +1 -1
- package/dist/{types-DXep6553.d.cts → types-BY3qFPDf.d.cts} +67 -1
- package/dist/{types-DxMMqOJo.d.ts → types-Dl-uk0Ds.d.ts} +67 -1
- package/dist/{use-org-notification-emails-CfDfHwBl.d.ts → use-org-notification-emails-ObFoUWP3.d.ts} +11 -4
- package/dist/{use-org-notification-emails-5V3ZAlRd.d.cts → use-org-notification-emails-u0AQu9Ez.d.cts} +11 -4
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z as PresentationLinkView, b as PdsProviderInfo, X as SkillSuggestion } from './index-BFdNI6jA.js';
|
|
2
2
|
import { a as AccountVerification } from './verification-providers-7il3kPQS.js';
|
|
3
|
+
import { z } from 'zod';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Types for the `id.sifa.getProfileView` XRPC query: the aggregated public
|
|
@@ -693,6 +694,71 @@ declare function hasAdultContent(item: {
|
|
|
693
694
|
labels?: ActivityLabel[];
|
|
694
695
|
}): boolean;
|
|
695
696
|
|
|
697
|
+
declare const SITE_PRESET_MAX_TAGS = 20;
|
|
698
|
+
declare const SITE_PRESET_MAX_TAG_LENGTH = 64;
|
|
699
|
+
/** A preset as the API returns it. */
|
|
700
|
+
declare const siteActivityPresetSchema: z.ZodObject<{
|
|
701
|
+
categories: z.ZodArray<z.ZodString>;
|
|
702
|
+
tags: z.ZodArray<z.ZodString>;
|
|
703
|
+
}, z.core.$strip>;
|
|
704
|
+
/**
|
|
705
|
+
* Per-site activity filter ("show only") for a personal site (page.sifa.id and
|
|
706
|
+
* third-party site builders that read Sifa data).
|
|
707
|
+
*
|
|
708
|
+
* Two independent allow-lists:
|
|
709
|
+
*
|
|
710
|
+
* - `categories`: app categories (see `APP_CATEGORY_IDS`) the site shows. Empty
|
|
711
|
+
* means every category.
|
|
712
|
+
* - `tags`: tags a long-form post must carry to show. Empty means every
|
|
713
|
+
* long-form post. Applies to the `Articles` category only; other activity is
|
|
714
|
+
* never filtered on tags.
|
|
715
|
+
*
|
|
716
|
+
* Tags are read from `record.tags` (a string array). Of the long-form sources
|
|
717
|
+
* Sifa tracks, Standard.site documents (`site.standard.document`, which
|
|
718
|
+
* Leaflet, pckt and other blogs write) and Crate content and notes carry tags.
|
|
719
|
+
* WhiteWind, GreenGale and RSS/Atom feed items have no tags, so with a tag
|
|
720
|
+
* filter set they never match.
|
|
721
|
+
*
|
|
722
|
+
* Both lists empty is "no preset": the site shows the same activity it does
|
|
723
|
+
* without one.
|
|
724
|
+
*/
|
|
725
|
+
type SiteActivityPreset = z.infer<typeof siteActivityPresetSchema>;
|
|
726
|
+
declare const EMPTY_SITE_ACTIVITY_PRESET: SiteActivityPreset;
|
|
727
|
+
/** The only category the tag filter applies to. */
|
|
728
|
+
declare const SITE_PRESET_TAG_CATEGORY = "Articles";
|
|
729
|
+
/**
|
|
730
|
+
* Canonical form of a tag: trimmed, without a leading `#`, lowercased, inner
|
|
731
|
+
* whitespace collapsed. Returns `null` for an empty or over-long tag.
|
|
732
|
+
*/
|
|
733
|
+
declare function normalizeSitePresetTag(raw: string): string | null;
|
|
734
|
+
/**
|
|
735
|
+
* Parse free-text tag input (comma- or newline-separated, or an array of such
|
|
736
|
+
* strings) into a normalized, de-duplicated, capped list.
|
|
737
|
+
*/
|
|
738
|
+
declare function parseSitePresetTags(input: string | readonly string[]): string[];
|
|
739
|
+
declare function isSiteActivityPresetActive(preset: SiteActivityPreset): boolean;
|
|
740
|
+
/** Normalized string tags off a record's `tags` field, or `[]`. */
|
|
741
|
+
declare function recordTags(record: unknown): string[];
|
|
742
|
+
interface PresetItem {
|
|
743
|
+
category: string;
|
|
744
|
+
record: unknown;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Tag half of the preset. Items outside long-form posts always pass; a
|
|
748
|
+
* long-form post passes when no tags are set or it carries one of them.
|
|
749
|
+
*/
|
|
750
|
+
declare function matchesSitePresetTags(item: PresetItem, tags: readonly string[]): boolean;
|
|
751
|
+
/** Whether an activity item shows on a site with this preset. */
|
|
752
|
+
declare function matchesSiteActivityPreset(item: PresetItem, preset: SiteActivityPreset): boolean;
|
|
753
|
+
/**
|
|
754
|
+
* A preset as a client sends it. Categories must be known app categories;
|
|
755
|
+
* tags are normalized and de-duplicated. Replaces the whole stored preset.
|
|
756
|
+
*/
|
|
757
|
+
declare const siteActivityPresetUpdateSchema: z.ZodObject<{
|
|
758
|
+
categories: z.ZodPipe<z.ZodArray<z.ZodString & z.ZodType<"Code" | "Art" | "Articles" | "Chat" | "Domains" | "Endorsements" | "Events" | "Impact" | "Links" | "Lists" | "Music" | "Pages" | "Pastes" | "Photos" | "Places" | "Posts" | "Q&A" | "Recipes" | "Research" | "Reviews" | "Slides" | "Social" | "Translations" | "Verification" | "Video", string, z.core.$ZodTypeInternals<"Code" | "Art" | "Articles" | "Chat" | "Domains" | "Endorsements" | "Events" | "Impact" | "Links" | "Lists" | "Music" | "Pages" | "Pastes" | "Photos" | "Places" | "Posts" | "Q&A" | "Recipes" | "Research" | "Reviews" | "Slides" | "Social" | "Translations" | "Verification" | "Video", string>>>, z.ZodTransform<("Code" | "Art" | "Articles" | "Chat" | "Domains" | "Endorsements" | "Events" | "Impact" | "Links" | "Lists" | "Music" | "Pages" | "Pastes" | "Photos" | "Places" | "Posts" | "Q&A" | "Recipes" | "Research" | "Reviews" | "Slides" | "Social" | "Translations" | "Verification" | "Video")[], ("Code" | "Art" | "Articles" | "Chat" | "Domains" | "Endorsements" | "Events" | "Impact" | "Links" | "Lists" | "Music" | "Pages" | "Pastes" | "Photos" | "Places" | "Posts" | "Q&A" | "Recipes" | "Research" | "Reviews" | "Slides" | "Social" | "Translations" | "Verification" | "Video")[]>>;
|
|
759
|
+
tags: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
|
|
696
762
|
/**
|
|
697
763
|
* The buckets a repo data-management UI shows instead of raw collections.
|
|
698
764
|
*
|
|
@@ -859,4 +925,4 @@ interface RepoDeleteResult {
|
|
|
859
925
|
};
|
|
860
926
|
}
|
|
861
927
|
|
|
862
|
-
export {
|
|
928
|
+
export { siteActivityPresetUpdateSchema as $, ADULT_CONTENT_LABELS as A, SIFA_REPO_GROUPS as B, type CertificationView as C, type DurationView as D, EMPTY_SITE_ACTIVITY_PRESET as E, SITE_PRESET_MAX_TAGS as F, SITE_PRESET_MAX_TAG_LENGTH as G, type HonorView as H, type IndustryDomain as I, SITE_PRESET_TAG_CATEGORY as J, type SiteActivityPreset as K, type LanguageView as L, type SkillView as M, describeSifaRecord as N, hasAdultContent as O, type PositionView as P, isSiteActivityPresetActive as Q, type RepoCollectionGroup as R, type SearchFilters as S, matchesSiteActivityPreset as T, matchesSitePresetTags as U, type VolunteeringView as V, normalizeSitePresetTag as W, parseSitePresetTags as X, recordTags as Y, repoGroupForCollection as Z, siteActivityPresetSchema as _, type ActiveAppView as a, type SifaApiConfig as a0, type ApiFetchOptions as a1, type CreateResult as a2, type WriteResult as a3, ApiError as a4, type FilterOptions as a5, type ProfileSearchResult as a6, type ProfileSearchSuggestion as a7, type SearchResponse as a8, type SkillSearchResult as a9, apiFetch as aa, apiFetchOrNull as ab, apiWrite as ac, apiWriteCreate as ad, fetchSearchFilters as ae, fetchSearchProfiles as af, fetchSkillSuggestions as ag, searchSkills as ah, type CompanySearchFilters as ai, type CompanySearchResponse as aj, type CompanySearchResult as ak, fetchSearchCompanies as al, type ActivityLabel as b, type AdultContentLabel as c, type AtfundLinkView as d, type CoSpeakerView as e, type ContributorView as f, type CourseView as g, type EducationView as h, type ExternalAccountView as i, type InvolvementLinkView as j, type InvolvementView as k, type PresentationDeliveryView as l, type PresentationView as m, type ProfileLocationView as n, type ProfileView as o, type ProjectMemberView as p, type ProjectView as q, type PublicationView as r, type RepoDeleteOutcome as s, type RepoDeleteRecordResult as t, type RepoDeleteResult as u, type RepoGroupDefinition as v, type RepoGroupId as w, type RepoInventory as x, type RepoRecordLabel as y, type RepoRecordSummary as z };
|
package/dist/{use-org-notification-emails-CfDfHwBl.d.ts → use-org-notification-emails-ObFoUWP3.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
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-Dl-uk0Ds.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { c as Profile, d as ProfilePosition, W as SkillRef, p as ExternalAccount, X as SkillSuggestion, s as OrgFloorVerdict } from './index-BFdNI6jA.js';
|
|
7
|
-
import { s as sifaQueryKeys,
|
|
7
|
+
import { s as sifaQueryKeys, aF as RefreshPdsResult, aY as UpdateProfileOverrideInput, aZ as UpdateProfileSelfInput, a_ as UploadAvatarResult, a$ as UploadPronunciationAudioResult, ap as PrimarySection, aR as SubCategoryBulkResult, au as ProfileLocationInput, p as ExternalAccountInput, n as CreateExternalAccountResult, b0 as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, $ as GivenConfirmation, ao as PendingConfirmationsPage, aa as InboxCounts, o as DismissUnlinkedPositionInput, aW as UnlinkedPositionsResult, aq as ProfileCompleteness, aE as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a9 as HideProfileItemInput, a4 as HiddenActivityItem, a8 as HideActivityItemInput, aU as UnhideActivityItemInput, f as ActivityPreferences, aP as SiteActivityPresetResponse, aX as UpdateActivityPreferencesInput, aQ as StatsResponse, i as AppRegistryEntry, a5 as HiddenApp, b as AccountSummary, q as FeaturedProfile, aO as SimilarProfile, N as FetchSuggestionsOptions, aT as SuggestionsResponse, S as FollowUserResult, x as FetchFollowListOptions, P as FollowListPage, Y as FollowingResponse, z as FetchFollowingFeedOptions, W as FollowingFeedResponse, X as FollowingFeedVersion, y as FetchFollowProfilePageOptions, R as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, t as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a3 as HeatmapResponse, ac as MyGithubPullRequestsResponse, A as AccountCheckResult, aD as ReactionStatus, aC as ReactionResult, aB as ReactionError, aM as RoadmapVotesResponse, j as CastRoadmapVoteResult, D as DeleteAccountResult, aH as ResetProfileResult, b1 as WipePreview, aG as RepoDeleteInput, ae as OrgClaimResult, ak as OrgProfileUpdateResult, af as OrgDomainChallengeResult, ag as OrgDomainVerifyResult, ah as OrgNotificationEmailAddResult, ai as OrgNotificationEmailRemoveResult } from './org-aUopODEW.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-ceqefXAw.js';
|
|
10
10
|
import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-BShvhyFp.js';
|
|
@@ -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,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
1100
1107
|
email: string;
|
|
1101
1108
|
}, unknown>;
|
|
1102
1109
|
|
|
1103
|
-
export {
|
|
1110
|
+
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, useVerifyExternalAccount 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, useUploadAvatar as bY, useUploadNamePronunciationAudio as bZ, useVerificationLog 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, useWipePreview as c0, useSearchCompanies as c1, 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,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
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-BY3qFPDf.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { c as Profile, d as ProfilePosition, W as SkillRef, p as ExternalAccount, X as SkillSuggestion, s as OrgFloorVerdict } from './index-BzkaABDb.cjs';
|
|
7
|
-
import { s as sifaQueryKeys,
|
|
7
|
+
import { s as sifaQueryKeys, aF as RefreshPdsResult, aY as UpdateProfileOverrideInput, aZ as UpdateProfileSelfInput, a_ as UploadAvatarResult, a$ as UploadPronunciationAudioResult, ap as PrimarySection, aR as SubCategoryBulkResult, au as ProfileLocationInput, p as ExternalAccountInput, n as CreateExternalAccountResult, b0 as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, $ as GivenConfirmation, ao as PendingConfirmationsPage, aa as InboxCounts, o as DismissUnlinkedPositionInput, aW as UnlinkedPositionsResult, aq as ProfileCompleteness, aE as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a9 as HideProfileItemInput, a4 as HiddenActivityItem, a8 as HideActivityItemInput, aU as UnhideActivityItemInput, f as ActivityPreferences, aP as SiteActivityPresetResponse, aX as UpdateActivityPreferencesInput, aQ as StatsResponse, i as AppRegistryEntry, a5 as HiddenApp, b as AccountSummary, q as FeaturedProfile, aO as SimilarProfile, N as FetchSuggestionsOptions, aT as SuggestionsResponse, S as FollowUserResult, x as FetchFollowListOptions, P as FollowListPage, Y as FollowingResponse, z as FetchFollowingFeedOptions, W as FollowingFeedResponse, X as FollowingFeedVersion, y as FetchFollowProfilePageOptions, R as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, t as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a3 as HeatmapResponse, ac as MyGithubPullRequestsResponse, A as AccountCheckResult, aD as ReactionStatus, aC as ReactionResult, aB as ReactionError, aM as RoadmapVotesResponse, j as CastRoadmapVoteResult, D as DeleteAccountResult, aH as ResetProfileResult, b1 as WipePreview, aG as RepoDeleteInput, ae as OrgClaimResult, ak as OrgProfileUpdateResult, af as OrgDomainChallengeResult, ag as OrgDomainVerifyResult, ah as OrgNotificationEmailAddResult, ai as OrgNotificationEmailRemoveResult } from './org-Bb1cRhJu.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,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
1100
1107
|
email: string;
|
|
1101
1108
|
}, unknown>;
|
|
1102
1109
|
|
|
1103
|
-
export {
|
|
1110
|
+
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, useVerifyExternalAccount 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, useUploadAvatar as bY, useUploadNamePronunciationAudio as bZ, useVerificationLog 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, useWipePreview as c0, useSearchCompanies as c1, 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 };
|
package/package.json
CHANGED