@singi-labs/sifa-sdk 0.12.31 → 0.12.33

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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **Public client library for the Sifa AppView on AT Protocol.**
6
6
 
7
- [![Status: Alpha](https://img.shields.io/badge/status-alpha-orange)]()
7
+ [![Status: Alpha](https://img.shields.io/badge/status-alpha-orange)](<>)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
9
  [![CI](https://github.com/singi-labs/sifa-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/singi-labs/sifa-sdk/actions/workflows/ci.yml)
10
10
  [![npm](https://img.shields.io/npm/v/@singi-labs/sifa-sdk.svg)](https://www.npmjs.com/package/@singi-labs/sifa-sdk)
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, aw as UpdateProfileOverrideInput, ax as UpdateProfileSelfInput, ay as UploadAvatarResult, j as CreateResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, az as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, av as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-Octhy3vS.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, ax as UpdateProfileOverrideInput, ay as UpdateProfileSelfInput, az as UploadAvatarResult, j as CreateResult, au as SubCategoryBulkResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aA as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, aw as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, aB as WipePreview, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-BjiTIiWq.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 { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, M as OrgFloorVerdict } from './adult-content-BHIB4rxu.js';
@@ -128,6 +128,16 @@ interface UpdateSkillVariables {
128
128
  }
129
129
  /** React hook for updating a skill record. */
130
130
  declare function useUpdateSkill(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateSkillVariables>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, UpdateSkillVariables, unknown>;
131
+ /** Variables for {@link useUpdateSkillSubCategories}. */
132
+ interface UpdateSkillSubCategoriesVariables {
133
+ rkeys: string[];
134
+ subCategory: string;
135
+ }
136
+ /**
137
+ * React hook for setting (or clearing) the sub-category on many skills in a
138
+ * single request. An empty `subCategory` clears the field.
139
+ */
140
+ declare function useUpdateSkillSubCategories(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult & SubCategoryBulkResult, Error, UpdateSkillSubCategoriesVariables>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult & SubCategoryBulkResult, Error, UpdateSkillSubCategoriesVariables, unknown>;
131
141
  /** React hook for deleting a skill record. Variable: the `rkey` string. */
132
142
  declare function useDeleteSkill(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, string, unknown>;
133
143
 
@@ -624,6 +634,15 @@ declare function useCastRoadmapVote(options?: Omit<UseMutationOptions<CastRoadma
624
634
  /** React hook for retracting a previously-cast roadmap vote. */
625
635
  declare function useRetractRoadmapVote(options?: Omit<UseMutationOptions<WriteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, string, unknown>;
626
636
 
637
+ /**
638
+ * Read which id.sifa.* collections the current grant cannot delete, so a
639
+ * delete-account UI can ask for the missing scope BEFORE the destructive step.
640
+ *
641
+ * Not cached: the whole point is to reflect the grant as it stands right now,
642
+ * and the grant changes underneath this hook when the user returns from the
643
+ * consent screen. A stale "no gaps" here is the failure this exists to prevent.
644
+ */
645
+ declare function useWipePreview(options?: Omit<UseQueryOptions<WipePreview, Error, WipePreview, ReturnType<typeof sifaQueryKeys.destructive.wipePreview>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<WipePreview>, Error>;
627
646
  /**
628
647
  * React hook for resetting the authenticated user's Sifa profile.
629
648
  * Variable: `deletePdsData` boolean.
@@ -723,4 +742,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
723
742
  email: string;
724
743
  }, unknown>;
725
744
 
726
- export { useExternalAccounts as $, type AddFeatureAllowlistVariables as A, useCreateEndorsement as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateExternalAccount as E, type FollowVariables as F, useCreatePosition as G, useCreateProfileLocation as H, useCreateReaction as I, useCreateRecord as J, useCreateSkill as K, useDebouncedValue as L, useDeleteAccount as M, useDeleteAvatarOverride as N, useDeleteEducation as O, type PositionSkillLinkVariables as P, useDeleteExternalAccount as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeletePosition as T, type UnfollowVariables as U, useDeleteProfileLocation as V, useDeleteReaction as W, useDeleteRecord as X, useDeleteSkill as Y, useEndorsementCount as Z, useEntitySearch as _, type CreateRecordVariables as a, useUpdateProfileOverride as a$, useFeatureAllowlist as a0, useFeaturedProfile as a1, useFollow as a2, useFollowers as a3, useFollowing as a4, useFollowingFeed as a5, useFollowingList as a6, useGetProfileView as a7, useHeatmapData as a8, useHiddenApps as a9, useRoadmapVotes as aA, useSearchFilters as aB, useSearchProfiles as aC, useSelectEntity as aD, useSetExternalAccountPrimary as aE, useSetPositionPrimary as aF, useSifaConfig as aG, useSimilarProfiles as aH, useSkillSuggestions as aI, useStats as aJ, useSuggestionCount as aK, useSuggestions as aL, useUnfollow as aM, useUnhideKeytraceClaim as aN, useUnhideOrcidPublication as aO, useUnhideProfileItem as aP, useUnhideSifaPublication as aQ, useUnhideStandardPublication as aR, useUnlinkSkillFromPosition as aS, useUnrevealMarqueDomain as aT, useUnsetExternalAccountPrimary as aU, useUnsetPositionPrimary as aV, useUpdateEducation as aW, useUpdateExternalAccount as aX, useUpdateOrgProfile as aY, useUpdatePosition as aZ, useUpdateProfileLocation as a_, useHideKeytraceClaim as aa, useHideOrcidPublication as ab, useHideProfileItem as ac, useHideSifaPublication as ad, useHideStandardPublication as ae, useImportSearchEntities as af, useLinkSkillToPosition as ag, useMintEntityDomain as ah, useMutuals as ai, useMyGithubPullRequests as aj, useMyRoadmapVotes as ak, useNetworkStreamCount as al, useOrgClaim as am, useOrgDomainChallenge as an, useOrgDomainVerify as ao, useOrgProfile as ap, useProfile as aq, useReactionStatus as ar, useRefreshOrcidPublications as as, useRefreshPds as at, useRemoveFeatureAllowlist as au, useRemoveOrgNotificationEmail as av, useResetProfile as aw, useResolveEntityDomain as ax, useRetractRoadmapVote as ay, useRevealMarqueDomain as az, type DeleteRecordVariables as b, useUpdateProfileSelf as b0, useUpdateRecord as b1, useUpdateSkill as b2, useUploadAvatar as b3, useVerifyExternalAccount as b4, 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, type UseMyGithubPullRequestsParams as k, useActivityTeaser as l, useAddFeatureAllowlist as m, useAddOrgNotificationEmail as n, useAppAccountCheck as o, useAppsRegistry as p, useAtFundLink as q, useBlueskySuggestions as r, useBulkHideProfileItems as s, useBulkHideStandardPublications as t, useActivityFeed as u, useBulkUnhideProfileItems as v, useBulkUnhideStandardPublications as w, useCanonicalSkillSearch as x, useCastRoadmapVote as y, useCreateEducation as z };
745
+ export { useEntitySearch as $, type AddFeatureAllowlistVariables as A, useCreateEducation as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateEndorsement as E, type FollowVariables as F, useCreateExternalAccount as G, useCreatePosition as H, useCreateProfileLocation as I, useCreateReaction as J, useCreateRecord as K, useCreateSkill as L, useDebouncedValue as M, useDeleteAccount as N, useDeleteAvatarOverride as O, type PositionSkillLinkVariables as P, useDeleteEducation as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteExternalAccount as T, type UnfollowVariables as U, useDeletePosition as V, useDeleteProfileLocation as W, useDeleteReaction as X, useDeleteRecord as Y, useDeleteSkill as Z, useEndorsementCount as _, type CreateRecordVariables as a, useUpdateProfileLocation as a$, useExternalAccounts as a0, useFeatureAllowlist as a1, useFeaturedProfile as a2, useFollow as a3, useFollowers as a4, useFollowing as a5, useFollowingFeed as a6, useFollowingList as a7, useGetProfileView as a8, useHeatmapData as a9, useRevealMarqueDomain as aA, useRoadmapVotes as aB, useSearchFilters as aC, useSearchProfiles as aD, useSelectEntity as aE, useSetExternalAccountPrimary as aF, useSetPositionPrimary as aG, useSifaConfig as aH, useSimilarProfiles as aI, useSkillSuggestions as aJ, useStats as aK, useSuggestionCount as aL, useSuggestions as aM, useUnfollow as aN, useUnhideKeytraceClaim as aO, useUnhideOrcidPublication as aP, useUnhideProfileItem as aQ, useUnhideSifaPublication as aR, useUnhideStandardPublication as aS, useUnlinkSkillFromPosition as aT, useUnrevealMarqueDomain as aU, useUnsetExternalAccountPrimary as aV, useUnsetPositionPrimary as aW, useUpdateEducation as aX, useUpdateExternalAccount as aY, useUpdateOrgProfile as aZ, useUpdatePosition as a_, useHiddenApps as aa, useHideKeytraceClaim as ab, useHideOrcidPublication as ac, useHideProfileItem as ad, useHideSifaPublication as ae, useHideStandardPublication as af, useImportSearchEntities as ag, useLinkSkillToPosition as ah, useMintEntityDomain as ai, useMutuals as aj, useMyGithubPullRequests as ak, useMyRoadmapVotes as al, useNetworkStreamCount as am, useOrgClaim as an, useOrgDomainChallenge as ao, useOrgDomainVerify as ap, useOrgProfile as aq, useProfile as ar, useReactionStatus as as, useRefreshOrcidPublications as at, useRefreshPds as au, useRemoveFeatureAllowlist as av, useRemoveOrgNotificationEmail as aw, useResetProfile as ax, useResolveEntityDomain as ay, useRetractRoadmapVote as az, type DeleteRecordVariables as b, useUpdateProfileOverride as b0, useUpdateProfileSelf as b1, useUpdateRecord as b2, useUpdateSkill as b3, useUpdateSkillSubCategories as b4, useUploadAvatar as b5, useVerifyExternalAccount as b6, useWipePreview as b7, 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 UpdateSkillSubCategoriesVariables as i, type UpdateSkillVariables as j, type UseEntitySearchOptions as k, type UseMyGithubPullRequestsParams as l, useActivityTeaser as m, useAddFeatureAllowlist as n, useAddOrgNotificationEmail as o, useAppAccountCheck as p, useAppsRegistry as q, useAtFundLink as r, useBlueskySuggestions as s, useBulkHideProfileItems as t, useActivityFeed as u, useBulkHideStandardPublications as v, useBulkUnhideProfileItems as w, useBulkUnhideStandardPublications as x, useCanonicalSkillSearch as y, useCastRoadmapVote as z };
@@ -1,4 +1,4 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-Octhy3vS.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-BjiTIiWq.js';
2
2
  import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef } from './adult-content-BHIB4rxu.js';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.js';
4
4
  import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-sWTKu58A.js';
@@ -85,16 +85,6 @@ declare function updateEducation(config: SifaApiConfig, rkey: string, data: Reco
85
85
  /** Delete an education record by `rkey`. */
86
86
  declare function deleteEducation(config: SifaApiConfig, rkey: string, options?: ApiFetchOptions): Promise<WriteResult>;
87
87
 
88
- /**
89
- * Create a new `id.sifa.profile.skill` record on the authenticated
90
- * user's PDS.
91
- */
92
- declare function createSkill(config: SifaApiConfig, data: Record<string, unknown>, options?: ApiFetchOptions): Promise<CreateResult>;
93
- /** Update an existing skill record by `rkey`. */
94
- declare function updateSkill(config: SifaApiConfig, rkey: string, data: Record<string, unknown>, options?: ApiFetchOptions): Promise<WriteResult>;
95
- /** Delete a skill record by `rkey`. */
96
- declare function deleteSkill(config: SifaApiConfig, rkey: string, options?: ApiFetchOptions): Promise<WriteResult>;
97
-
98
88
  /**
99
89
  * Generic record-create escape hatch. Most callers should prefer the
100
90
  * dedicated section helpers (`createPosition`, `createEducation`, etc.)
@@ -283,4 +273,4 @@ declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string,
283
273
  */
284
274
  declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
285
275
 
286
- export { linkSkillToPosition as A, mintEntityDomain as B, resolveEntityDomain as C, revealMarqueDomain as D, selectEntity as E, type FetchNetworkStreamCountOptions as F, setPositionPrimary as G, unhideKeytraceClaim as H, unlinkSkillFromPosition as I, unrevealMarqueDomain as J, unsetPositionPrimary as K, updateEducation as L, updatePosition as M, type NetworkMapEdge as N, updateRecord as O, updateSkill as P, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchGetProfileView as r, fetchNetworkMap as s, fetchNetworkStreamCount as t, fetchProfile as u, fetchProfileSummary as v, hideKeytraceClaim as w, importSearchEntities as x, initiateNetworkMapGeneration as y, isNetworkMapResponse as z };
276
+ export { resolveEntityDomain as A, revealMarqueDomain as B, selectEntity as C, setPositionPrimary as D, unhideKeytraceClaim as E, type FetchNetworkStreamCountOptions as F, unlinkSkillFromPosition as G, unrevealMarqueDomain as H, unsetPositionPrimary as I, updateEducation as J, updatePosition as K, updateRecord as L, type NetworkMapEdge as N, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, deleteEducation as j, deletePosition as k, deleteRecord as l, fetchAtFundLink as m, fetchEndorsementCount as n, fetchEntitySearch as o, fetchGetProfileView as p, fetchNetworkMap as q, fetchNetworkStreamCount as r, fetchProfile as s, fetchProfileSummary as t, hideKeytraceClaim as u, importSearchEntities as v, initiateNetworkMapGeneration as w, isNetworkMapResponse as x, linkSkillToPosition as y, mintEntityDomain as z };
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, aw as UpdateProfileOverrideInput, ax as UpdateProfileSelfInput, ay as UploadAvatarResult, j as CreateResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, az as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, av as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-DWAqK-TV.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ah as RefreshPdsResult, ax as UpdateProfileOverrideInput, ay as UpdateProfileSelfInput, az as UploadAvatarResult, j as CreateResult, au as SubCategoryBulkResult, a5 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aA as VerifyExternalAccountResult, E as EndorsementInput, ag as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, R as HideProfileItemInput, at as StatsResponse, g as AppRegistryEntry, O as HiddenApp, x as FilterOptions, ao as SearchFilters, ap as SearchResponse, as as SkillSearchResult, l as FeaturedProfile, ar as SimilarProfile, w as FetchSuggestionsOptions, aw as SuggestionsResponse, H as FollowUserResult, o as FetchFollowListOptions, y as FollowListPage, I as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, G as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, N as HeatmapResponse, U as MyGithubPullRequestsResponse, a as AccountCheckResult, af as ReactionStatus, ae as ReactionResult, ad as ReactionError, an as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, ai as ResetProfileResult, aB as WipePreview, X as OrgClaimResult, a1 as OrgProfileUpdateResult, Y as OrgDomainChallengeResult, Z as OrgDomainVerifyResult, _ as OrgNotificationEmailAddResult, $ as OrgNotificationEmailRemoveResult } from './org-CcbXH1FW.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 { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, M as OrgFloorVerdict } from './adult-content-BHIB4rxu.cjs';
@@ -128,6 +128,16 @@ interface UpdateSkillVariables {
128
128
  }
129
129
  /** React hook for updating a skill record. */
130
130
  declare function useUpdateSkill(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateSkillVariables>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, UpdateSkillVariables, unknown>;
131
+ /** Variables for {@link useUpdateSkillSubCategories}. */
132
+ interface UpdateSkillSubCategoriesVariables {
133
+ rkeys: string[];
134
+ subCategory: string;
135
+ }
136
+ /**
137
+ * React hook for setting (or clearing) the sub-category on many skills in a
138
+ * single request. An empty `subCategory` clears the field.
139
+ */
140
+ declare function useUpdateSkillSubCategories(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult & SubCategoryBulkResult, Error, UpdateSkillSubCategoriesVariables>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult & SubCategoryBulkResult, Error, UpdateSkillSubCategoriesVariables, unknown>;
131
141
  /** React hook for deleting a skill record. Variable: the `rkey` string. */
132
142
  declare function useDeleteSkill(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, string, unknown>;
133
143
 
@@ -624,6 +634,15 @@ declare function useCastRoadmapVote(options?: Omit<UseMutationOptions<CastRoadma
624
634
  /** React hook for retracting a previously-cast roadmap vote. */
625
635
  declare function useRetractRoadmapVote(options?: Omit<UseMutationOptions<WriteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, string, unknown>;
626
636
 
637
+ /**
638
+ * Read which id.sifa.* collections the current grant cannot delete, so a
639
+ * delete-account UI can ask for the missing scope BEFORE the destructive step.
640
+ *
641
+ * Not cached: the whole point is to reflect the grant as it stands right now,
642
+ * and the grant changes underneath this hook when the user returns from the
643
+ * consent screen. A stale "no gaps" here is the failure this exists to prevent.
644
+ */
645
+ declare function useWipePreview(options?: Omit<UseQueryOptions<WipePreview, Error, WipePreview, ReturnType<typeof sifaQueryKeys.destructive.wipePreview>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<NoInfer<WipePreview>, Error>;
627
646
  /**
628
647
  * React hook for resetting the authenticated user's Sifa profile.
629
648
  * Variable: `deletePdsData` boolean.
@@ -723,4 +742,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
723
742
  email: string;
724
743
  }, unknown>;
725
744
 
726
- export { useExternalAccounts as $, type AddFeatureAllowlistVariables as A, useCreateEndorsement as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateExternalAccount as E, type FollowVariables as F, useCreatePosition as G, useCreateProfileLocation as H, useCreateReaction as I, useCreateRecord as J, useCreateSkill as K, useDebouncedValue as L, useDeleteAccount as M, useDeleteAvatarOverride as N, useDeleteEducation as O, type PositionSkillLinkVariables as P, useDeleteExternalAccount as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeletePosition as T, type UnfollowVariables as U, useDeleteProfileLocation as V, useDeleteReaction as W, useDeleteRecord as X, useDeleteSkill as Y, useEndorsementCount as Z, useEntitySearch as _, type CreateRecordVariables as a, useUpdateProfileOverride as a$, useFeatureAllowlist as a0, useFeaturedProfile as a1, useFollow as a2, useFollowers as a3, useFollowing as a4, useFollowingFeed as a5, useFollowingList as a6, useGetProfileView as a7, useHeatmapData as a8, useHiddenApps as a9, useRoadmapVotes as aA, useSearchFilters as aB, useSearchProfiles as aC, useSelectEntity as aD, useSetExternalAccountPrimary as aE, useSetPositionPrimary as aF, useSifaConfig as aG, useSimilarProfiles as aH, useSkillSuggestions as aI, useStats as aJ, useSuggestionCount as aK, useSuggestions as aL, useUnfollow as aM, useUnhideKeytraceClaim as aN, useUnhideOrcidPublication as aO, useUnhideProfileItem as aP, useUnhideSifaPublication as aQ, useUnhideStandardPublication as aR, useUnlinkSkillFromPosition as aS, useUnrevealMarqueDomain as aT, useUnsetExternalAccountPrimary as aU, useUnsetPositionPrimary as aV, useUpdateEducation as aW, useUpdateExternalAccount as aX, useUpdateOrgProfile as aY, useUpdatePosition as aZ, useUpdateProfileLocation as a_, useHideKeytraceClaim as aa, useHideOrcidPublication as ab, useHideProfileItem as ac, useHideSifaPublication as ad, useHideStandardPublication as ae, useImportSearchEntities as af, useLinkSkillToPosition as ag, useMintEntityDomain as ah, useMutuals as ai, useMyGithubPullRequests as aj, useMyRoadmapVotes as ak, useNetworkStreamCount as al, useOrgClaim as am, useOrgDomainChallenge as an, useOrgDomainVerify as ao, useOrgProfile as ap, useProfile as aq, useReactionStatus as ar, useRefreshOrcidPublications as as, useRefreshPds as at, useRemoveFeatureAllowlist as au, useRemoveOrgNotificationEmail as av, useResetProfile as aw, useResolveEntityDomain as ax, useRetractRoadmapVote as ay, useRevealMarqueDomain as az, type DeleteRecordVariables as b, useUpdateProfileSelf as b0, useUpdateRecord as b1, useUpdateSkill as b2, useUploadAvatar as b3, useVerifyExternalAccount as b4, 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, type UseMyGithubPullRequestsParams as k, useActivityTeaser as l, useAddFeatureAllowlist as m, useAddOrgNotificationEmail as n, useAppAccountCheck as o, useAppsRegistry as p, useAtFundLink as q, useBlueskySuggestions as r, useBulkHideProfileItems as s, useBulkHideStandardPublications as t, useActivityFeed as u, useBulkUnhideProfileItems as v, useBulkUnhideStandardPublications as w, useCanonicalSkillSearch as x, useCastRoadmapVote as y, useCreateEducation as z };
745
+ export { useEntitySearch as $, type AddFeatureAllowlistVariables as A, useCreateEducation as B, type CreateReactionVariables as C, type DeleteReactionVariables as D, useCreateEndorsement as E, type FollowVariables as F, useCreateExternalAccount as G, useCreatePosition as H, useCreateProfileLocation as I, useCreateReaction as J, useCreateRecord as K, useCreateSkill as L, useDebouncedValue as M, useDeleteAccount as N, useDeleteAvatarOverride as O, type PositionSkillLinkVariables as P, useDeleteEducation as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useDeleteExternalAccount as T, type UnfollowVariables as U, useDeletePosition as V, useDeleteProfileLocation as W, useDeleteReaction as X, useDeleteRecord as Y, useDeleteSkill as Z, useEndorsementCount as _, type CreateRecordVariables as a, useUpdateProfileLocation as a$, useExternalAccounts as a0, useFeatureAllowlist as a1, useFeaturedProfile as a2, useFollow as a3, useFollowers as a4, useFollowing as a5, useFollowingFeed as a6, useFollowingList as a7, useGetProfileView as a8, useHeatmapData as a9, useRevealMarqueDomain as aA, useRoadmapVotes as aB, useSearchFilters as aC, useSearchProfiles as aD, useSelectEntity as aE, useSetExternalAccountPrimary as aF, useSetPositionPrimary as aG, useSifaConfig as aH, useSimilarProfiles as aI, useSkillSuggestions as aJ, useStats as aK, useSuggestionCount as aL, useSuggestions as aM, useUnfollow as aN, useUnhideKeytraceClaim as aO, useUnhideOrcidPublication as aP, useUnhideProfileItem as aQ, useUnhideSifaPublication as aR, useUnhideStandardPublication as aS, useUnlinkSkillFromPosition as aT, useUnrevealMarqueDomain as aU, useUnsetExternalAccountPrimary as aV, useUnsetPositionPrimary as aW, useUpdateEducation as aX, useUpdateExternalAccount as aY, useUpdateOrgProfile as aZ, useUpdatePosition as a_, useHiddenApps as aa, useHideKeytraceClaim as ab, useHideOrcidPublication as ac, useHideProfileItem as ad, useHideSifaPublication as ae, useHideStandardPublication as af, useImportSearchEntities as ag, useLinkSkillToPosition as ah, useMintEntityDomain as ai, useMutuals as aj, useMyGithubPullRequests as ak, useMyRoadmapVotes as al, useNetworkStreamCount as am, useOrgClaim as an, useOrgDomainChallenge as ao, useOrgDomainVerify as ap, useOrgProfile as aq, useProfile as ar, useReactionStatus as as, useRefreshOrcidPublications as at, useRefreshPds as au, useRemoveFeatureAllowlist as av, useRemoveOrgNotificationEmail as aw, useResetProfile as ax, useResolveEntityDomain as ay, useRetractRoadmapVote as az, type DeleteRecordVariables as b, useUpdateProfileOverride as b0, useUpdateProfileSelf as b1, useUpdateRecord as b2, useUpdateSkill as b3, useUpdateSkillSubCategories as b4, useUploadAvatar as b5, useVerifyExternalAccount as b6, useWipePreview as b7, 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 UpdateSkillSubCategoriesVariables as i, type UpdateSkillVariables as j, type UseEntitySearchOptions as k, type UseMyGithubPullRequestsParams as l, useActivityTeaser as m, useAddFeatureAllowlist as n, useAddOrgNotificationEmail as o, useAppAccountCheck as p, useAppsRegistry as q, useAtFundLink as r, useBlueskySuggestions as s, useBulkHideProfileItems as t, useActivityFeed as u, useBulkHideStandardPublications as v, useBulkUnhideProfileItems as w, useBulkUnhideStandardPublications as x, useCanonicalSkillSearch as y, useCastRoadmapVote as z };
@@ -1,4 +1,4 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-DWAqK-TV.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-CcbXH1FW.cjs';
2
2
  import { e as Profile, P as ProfileView, f as ProfilePosition, a6 as SkillRef } from './adult-content-BHIB4rxu.cjs';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.cjs';
4
4
  import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DsaEk_GD.cjs';
@@ -85,16 +85,6 @@ declare function updateEducation(config: SifaApiConfig, rkey: string, data: Reco
85
85
  /** Delete an education record by `rkey`. */
86
86
  declare function deleteEducation(config: SifaApiConfig, rkey: string, options?: ApiFetchOptions): Promise<WriteResult>;
87
87
 
88
- /**
89
- * Create a new `id.sifa.profile.skill` record on the authenticated
90
- * user's PDS.
91
- */
92
- declare function createSkill(config: SifaApiConfig, data: Record<string, unknown>, options?: ApiFetchOptions): Promise<CreateResult>;
93
- /** Update an existing skill record by `rkey`. */
94
- declare function updateSkill(config: SifaApiConfig, rkey: string, data: Record<string, unknown>, options?: ApiFetchOptions): Promise<WriteResult>;
95
- /** Delete a skill record by `rkey`. */
96
- declare function deleteSkill(config: SifaApiConfig, rkey: string, options?: ApiFetchOptions): Promise<WriteResult>;
97
-
98
88
  /**
99
89
  * Generic record-create escape hatch. Most callers should prefer the
100
90
  * dedicated section helpers (`createPosition`, `createEducation`, etc.)
@@ -283,4 +273,4 @@ declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string,
283
273
  */
284
274
  declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
285
275
 
286
- export { linkSkillToPosition as A, mintEntityDomain as B, resolveEntityDomain as C, revealMarqueDomain as D, selectEntity as E, type FetchNetworkStreamCountOptions as F, setPositionPrimary as G, unhideKeytraceClaim as H, unlinkSkillFromPosition as I, unrevealMarqueDomain as J, unsetPositionPrimary as K, updateEducation as L, updatePosition as M, type NetworkMapEdge as N, updateRecord as O, updateSkill as P, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchGetProfileView as r, fetchNetworkMap as s, fetchNetworkStreamCount as t, fetchProfile as u, fetchProfileSummary as v, hideKeytraceClaim as w, importSearchEntities as x, initiateNetworkMapGeneration as y, isNetworkMapResponse as z };
276
+ export { resolveEntityDomain as A, revealMarqueDomain as B, selectEntity as C, setPositionPrimary as D, unhideKeytraceClaim as E, type FetchNetworkStreamCountOptions as F, unlinkSkillFromPosition as G, unrevealMarqueDomain as H, unsetPositionPrimary as I, updateEducation as J, updatePosition as K, updateRecord as L, type NetworkMapEdge as N, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, deleteEducation as j, deletePosition as k, deleteRecord as l, fetchAtFundLink as m, fetchEndorsementCount as n, fetchEntitySearch as o, fetchGetProfileView as p, fetchNetworkMap as q, fetchNetworkStreamCount as r, fetchProfile as s, fetchProfileSummary as t, hideKeytraceClaim as u, importSearchEntities as v, initiateNetworkMapGeneration as w, isNetworkMapResponse as x, linkSkillToPosition as y, mintEntityDomain as z };
package/dist/index.cjs CHANGED
@@ -4820,7 +4820,7 @@ function roadmapIssueUrl(issue) {
4820
4820
  }
4821
4821
 
4822
4822
  // src/index.ts
4823
- var SIFA_SDK_VERSION = "0.12.31";
4823
+ var SIFA_SDK_VERSION = "0.12.33";
4824
4824
 
4825
4825
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
4826
4826
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;