@singi-labs/sifa-sdk 0.19.95 → 0.19.97

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 (46) hide show
  1. package/dist/index.cjs +7 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +11 -1
  4. package/dist/index.d.ts +11 -1
  5. package/dist/index.js +5 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/jev/index.cjs +20 -0
  8. package/dist/jev/index.cjs.map +1 -1
  9. package/dist/jev/index.d.cts +29 -1
  10. package/dist/jev/index.d.ts +29 -1
  11. package/dist/jev/index.js +20 -0
  12. package/dist/jev/index.js.map +1 -1
  13. package/dist/jev/issue.cjs.map +1 -1
  14. package/dist/logic/index.js +5 -1
  15. package/dist/logic/index.js.map +1 -1
  16. package/dist/logic/profile-completeness.js +7 -1
  17. package/dist/logic/profile-completeness.js.map +1 -1
  18. package/dist/query/fetchers/admin-review-queues.js +3 -1
  19. package/dist/query/fetchers/admin-review-queues.js.map +1 -1
  20. package/dist/query/fetchers/index.cjs +20 -2
  21. package/dist/query/fetchers/index.cjs.map +1 -1
  22. package/dist/query/fetchers/index.d.cts +1 -1
  23. package/dist/query/fetchers/index.d.ts +1 -1
  24. package/dist/query/fetchers/index.js +4 -0
  25. package/dist/query/fetchers/index.js.map +1 -1
  26. package/dist/query/fetchers/profile-completeness.js +21 -2
  27. package/dist/query/fetchers/profile-completeness.js.map +1 -1
  28. package/dist/query/hooks/index.cjs +53 -2
  29. package/dist/query/hooks/index.cjs.map +1 -1
  30. package/dist/query/hooks/index.d.cts +2 -2
  31. package/dist/query/hooks/index.d.ts +2 -2
  32. package/dist/query/hooks/index.js +7 -1
  33. package/dist/query/hooks/index.js.map +1 -1
  34. package/dist/query/hooks/use-profile-completeness.js +43 -1
  35. package/dist/query/hooks/use-profile-completeness.js.map +1 -1
  36. package/dist/query/index.cjs +55 -2
  37. package/dist/query/index.cjs.map +1 -1
  38. package/dist/query/index.d.cts +3 -3
  39. package/dist/query/index.d.ts +3 -3
  40. package/dist/query/index.js +11 -1
  41. package/dist/query/index.js.map +1 -1
  42. package/dist/{use-user-settings-CBH1CeDP.d.cts → use-user-settings-CNbF2SR5.d.cts} +13 -2
  43. package/dist/{use-user-settings-CFhaGcAq.d.ts → use-user-settings-GNjzBIGz.d.ts} +13 -2
  44. package/dist/{user-settings-D1zKOWa2.d.ts → user-settings-D77MWX_w.d.ts} +20 -1
  45. package/dist/{user-settings-ChPm0BFN.d.cts → user-settings-DWNbF59w.d.cts} +20 -1
  46. package/package.json +1 -1
@@ -515,6 +515,12 @@ interface ProfileCompleteness {
515
515
  total: number;
516
516
  /** The signals still missing, for the checklist. */
517
517
  missing: ProfileCompletenessSignal[];
518
+ /**
519
+ * Signals the user hid from the checklist. They stay in `missing` (the score
520
+ * is unchanged); clients hide them. Absent from an AppView that predates
521
+ * server-side dismissals.
522
+ */
523
+ dismissed?: ProfileCompletenessSignal[];
518
524
  }
519
525
  interface FetchProfileCompletenessOptions extends ApiFetchOptions {
520
526
  /**
@@ -532,6 +538,17 @@ interface FetchProfileCompletenessOptions extends ApiFetchOptions {
532
538
  * nagging the user with a phantom checklist.
533
539
  */
534
540
  declare function fetchProfileCompleteness(config: SifaApiConfig, options?: FetchProfileCompletenessOptions): Promise<ProfileCompleteness>;
541
+ /** Body accepted by {@link dismissCompletenessSignal}. */
542
+ interface DismissCompletenessSignalInput {
543
+ signal: ProfileCompletenessSignal;
544
+ }
545
+ /**
546
+ * Hide one "complete your profile" item for the signed-in user, on every
547
+ * device. Writes nothing to any PDS and leaves the score unchanged.
548
+ */
549
+ declare function dismissCompletenessSignal(config: SifaApiConfig, data: DismissCompletenessSignalInput, options?: ApiFetchOptions): Promise<WriteResult>;
550
+ /** Show every hidden "complete your profile" item again. */
551
+ declare function clearCompletenessDismissals(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WriteResult>;
535
552
 
536
553
  /** Extended result for {@link refreshOrcidPublications}. */
537
554
  type RefreshOrcidPublicationsResult = WriteResult<{
@@ -1300,6 +1317,8 @@ interface AdminReviewQueues {
1300
1317
  nameCorrections: number;
1301
1318
  pendingCompanies: number;
1302
1319
  duplicateOrgs: number;
1320
+ /** Pending reports of wrong Jev-inferred company facts (one per org + field). */
1321
+ inferredFactReports: number;
1303
1322
  /** Sum of the queues. */
1304
1323
  total: number;
1305
1324
  generatedAt: string;
@@ -1961,4 +1980,4 @@ declare function fetchUserSettings(config: SifaApiConfig, options?: FetchUserSet
1961
1980
  /** Save the given preferences. Returns the stored settings, or `null` on failure. */
1962
1981
  declare function updateUserSettings(config: SifaApiConfig, patch: UserSettingsPatch): Promise<UserSettings | null>;
1963
1982
 
1964
- export { type FollowingResponse as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchHiddenActivityItemsOptions as G, type FetchHiddenAppsOptions as H, type FetchInboxCountsOptions as I, type FetchMyGithubPullRequestsOptions as J, type FetchMyRoadmapVotesOptions as K, type FetchProfileCompletenessOptions as L, type FetchReactionStatusOptions as M, type FetchRpgClaimableOptions as N, type FetchRpgStatusOptions as O, type FetchSuggestionsOptions as P, type FetchUnlinkedPositionsOptions as Q, type FetchUserSettingsOptions as R, type FollowListPage as S, type FollowProfile as T, type FollowProfilePageResponse as U, type FollowUserResult as V, type FollowingFeedApp as W, type FollowingFeedBuild as X, type FollowingFeedEmptyReason as Y, type FollowingFeedResponse as Z, type FollowingFeedVersion as _, type ConfirmEndorsementResult as a, type SuggestionProfile as a$, type GetAdminReviewQueuesOptions as a0, type GithubPullRequest as a1, type GivenConfirmation as a2, HIDDEN_ITEM_SOURCES as a3, HIDDEN_ITEM_TYPES as a4, type HeatmapDay as a5, type HeatmapResponse as a6, type HiddenActivityItem as a7, type HiddenApp as a8, type HiddenItemSource as a9, type QuotedPostAuthor as aA, type QuotedPostImage as aB, type QuotedPostResult as aC, type QuotedPostView as aD, type ReactionError as aE, type ReactionResult as aF, type ReactionStatus as aG, type RefreshOrcidPublicationsResult as aH, type RefreshPdsResult as aI, type RepoDeleteInput as aJ, type ResetProfileResult as aK, type ResolveQuotedPostsOptions as aL, type RoadmapVoteError as aM, type RoadmapVoteResult as aN, type RoadmapVoter as aO, type RoadmapVotesResponse as aP, type RpgClaimableResponse as aQ, RpgClaimableResponseSchema as aR, type RpgItemStatus as aS, RpgItemStatusSchema as aT, type RpgStatusResponse as aU, RpgStatusResponseSchema as aV, type SifaQueryKey as aW, type SimilarProfile as aX, type SiteActivityPresetResponse as aY, type StatsResponse as aZ, type SubCategoryBulkResult as a_, type HiddenItemType as aa, type HideActivityItemInput as ab, type HideProfileItemInput as ac, type InboxCounts as ad, type ListFeatureAllowlistOptions as ae, type MyGithubPullRequestsResponse as af, type OrgClaimBinding as ag, type OrgClaimResult as ah, type OrgDomainChallengeResult as ai, type OrgDomainVerifyResult as aj, type OrgNotificationEmailAddResult as ak, type OrgNotificationEmailRemoveResult as al, type OrgProfileEcho as am, type OrgProfileUpdateResult as an, PROFILE_COMPLETENESS_SIGNALS as ao, type PdsWipeOutcome as ap, type PendingConfirmation as aq, type PendingConfirmationsPage as ar, type PrimarySection as as, type ProfileCompleteness as at, type ProfileCompletenessSignal as au, type ProfileIndustryInput as av, type ProfileLocationAddress as aw, type ProfileLocationInput as ax, type ProfileSelfLocation as ay, QUOTED_POSTS_BATCH_MAX as az, type AccountSummary as b, fetchSimilarProfiles as b$, type SuggestionsResponse as b0, type UnhideActivityItemInput as b1, type UnlinkedPosition as b2, type UnlinkedPositionsResult as b3, type UpdateActivityPreferencesInput as b4, type UpdateProfileOverrideInput as b5, type UpdateProfileSelfInput as b6, type UploadAvatarResult as b7, type UploadPronunciationAudioResult as b8, type UserSettings as b9, deleteSkill as bA, dismissConfirmation as bB, dismissUnlinkedPosition as bC, fetchAccounts as bD, fetchActivityFeed as bE, fetchActivityPreferences as bF, fetchActivityTeaser as bG, fetchAppsRegistry as bH, fetchExternalAccounts as bI, fetchFeaturedProfile as bJ, fetchFollowing as bK, fetchFollowingFeed as bL, fetchFollowingFeedVersion as bM, fetchGivenConfirmations as bN, fetchHeatmapData as bO, fetchHiddenActivityItems as bP, fetchHiddenApps as bQ, fetchInboxCounts as bR, fetchMyGithubPullRequests as bS, fetchMyRoadmapVotes as bT, fetchPendingConfirmations as bU, fetchProfileCompleteness as bV, fetchReactionStatus as bW, fetchRepoInventory as bX, fetchRoadmapVotes as bY, fetchRpgClaimable as bZ, fetchRpgStatus as b_, type UserSettingsPatch as ba, UserSettingsSchema as bb, type VerifyExternalAccountResult as bc, type WipePreview as bd, addFeatureAllowlist as be, addOrgNotificationEmail as bf, bulkHideProfileItems as bg, bulkHideStandardPublications as bh, bulkUnhideProfileItems as bi, bulkUnhideStandardPublications as bj, castRoadmapVote as bk, checkAppAccount as bl, confirmEndorsement as bm, createConfirmation as bn, createEndorsement as bo, createExternalAccount as bp, createProfileLocation as bq, createReaction as br, createSkill as bs, deleteAccount as bt, deleteAvatarOverride as bu, deleteExternalAccount as bv, deleteNamePronunciationAudio as bw, deleteProfileLocation as bx, deleteReaction as by, deleteRepoRecords as bz, type ActivityFeedResponse as c, fetchSiteActivityPreset as c0, fetchStats as c1, fetchSuggestionCount as c2, fetchSuggestions as c3, fetchUnlinkedPositions as c4, fetchUserSettings as c5, fetchViewerPositionConfirmations as c6, fetchWipePreview as c7, followUser as c8, getAdminReviewQueues as c9, unhideActivityItem as cA, unhideOrcidPublication as cB, unhideProfileItem as cC, unhideSifaPublication as cD, unhideStandardPublication as cE, unsetExternalAccountPrimary as cF, unsetSectionPrimary as cG, updateActivityPreferences as cH, updateExternalAccount as cI, updateOrgProfile as cJ, updateProfileLocation as cK, updateProfileOverride as cL, updateProfileSelf as cM, updateSkill as cN, updateSkillSubCategories as cO, updateUserSettings as cP, uploadAvatar as cQ, uploadNamePronunciationAudio as cR, verifyExternalAccount as cS, verifyOrgDomain as cT, getBlueskySuggestions as ca, getFollowers as cb, getFollowing as cc, getMutuals as cd, hideActivityItem as ce, hideOrcidPublication as cf, hideProfileItem as cg, hideSifaPublication as ch, hideStandardPublication as ci, isNewerFollowingFeed as cj, listFeatureAllowlist as ck, refreshOrcidPublications as cl, refreshPds as cm, removeFeatureAllowlist as cn, removeOrgNotificationEmail as co, repoExportUrl as cp, requestOrgDomainChallenge as cq, resetProfile as cr, resolveQuotedPosts as cs, retractRoadmapVote as ct, revokeConfirmation as cu, setExternalAccountPrimary as cv, setSectionPrimary as cw, submitOrgClaim as cx, switchAccount as cy, unfollowUser as cz, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityPreferences as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type ConfirmationInput as l, type ConfirmationSubjectInput as m, type CreateExternalAccountResult as n, type DismissUnlinkedPositionInput as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchAccountsOptions as r, sifaQueryKeys as s, type FetchActivityFeedOptions as t, type FetchActivityPreferencesOptions as u, type FetchActivityTeaserOptions as v, type FetchConfirmationsOptions as w, type FetchFollowListOptions as x, type FetchFollowProfilePageOptions as y, type FetchFollowingFeedOptions as z };
1983
+ export { type FollowingFeedVersion as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchFollowingFeedOptions as G, type FetchHiddenActivityItemsOptions as H, type FetchHiddenAppsOptions as I, type FetchInboxCountsOptions as J, type FetchMyGithubPullRequestsOptions as K, type FetchMyRoadmapVotesOptions as L, type FetchProfileCompletenessOptions as M, type FetchReactionStatusOptions as N, type FetchRpgClaimableOptions as O, type FetchRpgStatusOptions as P, type FetchSuggestionsOptions as Q, type FetchUnlinkedPositionsOptions as R, type FetchUserSettingsOptions as S, type FollowListPage as T, type FollowProfile as U, type FollowProfilePageResponse as V, type FollowUserResult as W, type FollowingFeedApp as X, type FollowingFeedBuild as Y, type FollowingFeedEmptyReason as Z, type FollowingFeedResponse as _, type ConfirmEndorsementResult as a, type SubCategoryBulkResult as a$, type FollowingResponse as a0, type GetAdminReviewQueuesOptions as a1, type GithubPullRequest as a2, type GivenConfirmation as a3, HIDDEN_ITEM_SOURCES as a4, HIDDEN_ITEM_TYPES as a5, type HeatmapDay as a6, type HeatmapResponse as a7, type HiddenActivityItem as a8, type HiddenApp as a9, QUOTED_POSTS_BATCH_MAX as aA, type QuotedPostAuthor as aB, type QuotedPostImage as aC, type QuotedPostResult as aD, type QuotedPostView as aE, type ReactionError as aF, type ReactionResult as aG, type ReactionStatus as aH, type RefreshOrcidPublicationsResult as aI, type RefreshPdsResult as aJ, type RepoDeleteInput as aK, type ResetProfileResult as aL, type ResolveQuotedPostsOptions as aM, type RoadmapVoteError as aN, type RoadmapVoteResult as aO, type RoadmapVoter as aP, type RoadmapVotesResponse as aQ, type RpgClaimableResponse as aR, RpgClaimableResponseSchema as aS, type RpgItemStatus as aT, RpgItemStatusSchema as aU, type RpgStatusResponse as aV, RpgStatusResponseSchema as aW, type SifaQueryKey as aX, type SimilarProfile as aY, type SiteActivityPresetResponse as aZ, type StatsResponse as a_, type HiddenItemSource as aa, type HiddenItemType as ab, type HideActivityItemInput as ac, type HideProfileItemInput as ad, type InboxCounts as ae, type ListFeatureAllowlistOptions as af, type MyGithubPullRequestsResponse as ag, type OrgClaimBinding as ah, type OrgClaimResult as ai, type OrgDomainChallengeResult as aj, type OrgDomainVerifyResult as ak, type OrgNotificationEmailAddResult as al, type OrgNotificationEmailRemoveResult as am, type OrgProfileEcho as an, type OrgProfileUpdateResult as ao, PROFILE_COMPLETENESS_SIGNALS as ap, type PdsWipeOutcome as aq, type PendingConfirmation as ar, type PendingConfirmationsPage as as, type PrimarySection as at, type ProfileCompleteness as au, type ProfileCompletenessSignal as av, type ProfileIndustryInput as aw, type ProfileLocationAddress as ax, type ProfileLocationInput as ay, type ProfileSelfLocation as az, type AccountSummary as b, fetchRoadmapVotes as b$, type SuggestionProfile as b0, type SuggestionsResponse as b1, type UnhideActivityItemInput as b2, type UnlinkedPosition as b3, type UnlinkedPositionsResult as b4, type UpdateActivityPreferencesInput as b5, type UpdateProfileOverrideInput as b6, type UpdateProfileSelfInput as b7, type UploadAvatarResult as b8, type UploadPronunciationAudioResult as b9, deleteReaction as bA, deleteRepoRecords as bB, deleteSkill as bC, dismissCompletenessSignal as bD, dismissConfirmation as bE, dismissUnlinkedPosition as bF, fetchAccounts as bG, fetchActivityFeed as bH, fetchActivityPreferences as bI, fetchActivityTeaser as bJ, fetchAppsRegistry as bK, fetchExternalAccounts as bL, fetchFeaturedProfile as bM, fetchFollowing as bN, fetchFollowingFeed as bO, fetchFollowingFeedVersion as bP, fetchGivenConfirmations as bQ, fetchHeatmapData as bR, fetchHiddenActivityItems as bS, fetchHiddenApps as bT, fetchInboxCounts as bU, fetchMyGithubPullRequests as bV, fetchMyRoadmapVotes as bW, fetchPendingConfirmations as bX, fetchProfileCompleteness as bY, fetchReactionStatus as bZ, fetchRepoInventory as b_, type UserSettings as ba, type UserSettingsPatch as bb, UserSettingsSchema as bc, type VerifyExternalAccountResult as bd, type WipePreview as be, addFeatureAllowlist as bf, addOrgNotificationEmail as bg, bulkHideProfileItems as bh, bulkHideStandardPublications as bi, bulkUnhideProfileItems as bj, bulkUnhideStandardPublications as bk, castRoadmapVote as bl, checkAppAccount as bm, clearCompletenessDismissals as bn, confirmEndorsement as bo, createConfirmation as bp, createEndorsement as bq, createExternalAccount as br, createProfileLocation as bs, createReaction as bt, createSkill as bu, deleteAccount as bv, deleteAvatarOverride as bw, deleteExternalAccount as bx, deleteNamePronunciationAudio as by, deleteProfileLocation as bz, type ActivityFeedResponse as c, fetchRpgClaimable as c0, fetchRpgStatus as c1, fetchSimilarProfiles as c2, fetchSiteActivityPreset as c3, fetchStats as c4, fetchSuggestionCount as c5, fetchSuggestions as c6, fetchUnlinkedPositions as c7, fetchUserSettings as c8, fetchViewerPositionConfirmations as c9, submitOrgClaim as cA, switchAccount as cB, unfollowUser as cC, unhideActivityItem as cD, unhideOrcidPublication as cE, unhideProfileItem as cF, unhideSifaPublication as cG, unhideStandardPublication as cH, unsetExternalAccountPrimary as cI, unsetSectionPrimary as cJ, updateActivityPreferences as cK, updateExternalAccount as cL, updateOrgProfile as cM, updateProfileLocation as cN, updateProfileOverride as cO, updateProfileSelf as cP, updateSkill as cQ, updateSkillSubCategories as cR, updateUserSettings as cS, uploadAvatar as cT, uploadNamePronunciationAudio as cU, verifyExternalAccount as cV, verifyOrgDomain as cW, fetchWipePreview as ca, followUser as cb, getAdminReviewQueues as cc, getBlueskySuggestions as cd, getFollowers as ce, getFollowing as cf, getMutuals as cg, hideActivityItem as ch, hideOrcidPublication as ci, hideProfileItem as cj, hideSifaPublication as ck, hideStandardPublication as cl, isNewerFollowingFeed as cm, listFeatureAllowlist as cn, refreshOrcidPublications as co, refreshPds as cp, removeFeatureAllowlist as cq, removeOrgNotificationEmail as cr, repoExportUrl as cs, requestOrgDomainChallenge as ct, resetProfile as cu, resolveQuotedPosts as cv, retractRoadmapVote as cw, revokeConfirmation as cx, setExternalAccountPrimary as cy, setSectionPrimary as cz, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityPreferences as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type ConfirmationInput as l, type ConfirmationSubjectInput as m, type CreateExternalAccountResult as n, type DismissCompletenessSignalInput as o, type DismissUnlinkedPositionInput as p, type ExternalAccountInput as q, type FeaturedProfile as r, sifaQueryKeys as s, type FetchAccountsOptions as t, type FetchActivityFeedOptions as u, type FetchActivityPreferencesOptions as v, type FetchActivityTeaserOptions as w, type FetchConfirmationsOptions as x, type FetchFollowListOptions as y, type FetchFollowProfilePageOptions as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singi-labs/sifa-sdk",
3
- "version": "0.19.95",
3
+ "version": "0.19.97",
4
4
  "description": "Sifa SDK — public client library for the Sifa AppView on AT Protocol. Shared by sifa-web and sifa-app.",
5
5
  "license": "MIT",
6
6
  "type": "module",