@singi-labs/sifa-sdk 0.12.68 → 0.12.69

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 (53) hide show
  1. package/dist/{feed-dOSy_48Z.d.cts → feed-BMm9Pkew.d.cts} +1 -1
  2. package/dist/{feed-dOSy_48Z.d.ts → feed-BMm9Pkew.d.ts} +1 -1
  3. package/dist/{index-Cj6jfpAE.d.cts → index-a3xqWsNm.d.cts} +38 -1
  4. package/dist/{index-Cj6jfpAE.d.ts → index-a3xqWsNm.d.ts} +38 -1
  5. package/dist/index.cjs +86 -1
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +47 -9
  8. package/dist/index.d.ts +47 -9
  9. package/dist/index.js +76 -2
  10. package/dist/index.js.map +1 -1
  11. package/dist/jsonld/index.d.cts +1 -1
  12. package/dist/jsonld/index.d.ts +1 -1
  13. package/dist/{index-BARfrksZ.d.cts → network-map-CpwO3k-e.d.cts} +5 -5
  14. package/dist/{index-C0iPs_NQ.d.ts → network-map-DpEQ65cq.d.ts} +5 -5
  15. package/dist/{org-ClPPJ3-J.d.cts → org-DJyiwPcL.d.cts} +4 -4
  16. package/dist/{org-wLJm-WXC.d.ts → org-DxhtogOn.d.ts} +4 -4
  17. package/dist/{org-settings-B8e01iZx.d.cts → org-settings-CZ_tmAYl.d.cts} +1 -1
  18. package/dist/{org-settings-B8e01iZx.d.ts → org-settings-CZ_tmAYl.d.ts} +1 -1
  19. package/dist/{shared-BibYErTJ.d.cts → profile-investment-DmtsZK8d.d.cts} +43 -1
  20. package/dist/{shared-BibYErTJ.d.ts → profile-investment-DmtsZK8d.d.ts} +43 -1
  21. package/dist/{profile-summary-sEHAdvfm.d.cts → profile-summary-BTZAwG1z.d.cts} +1 -1
  22. package/dist/{profile-summary-Cbtnh04E.d.ts → profile-summary-Do5FY7Q0.d.ts} +1 -1
  23. package/dist/query/fetchers/index.cjs +17 -0
  24. package/dist/query/fetchers/index.cjs.map +1 -1
  25. package/dist/query/fetchers/index.d.cts +27 -7
  26. package/dist/query/fetchers/index.d.ts +27 -7
  27. package/dist/query/fetchers/index.js +15 -1
  28. package/dist/query/fetchers/index.js.map +1 -1
  29. package/dist/query/hooks/index.cjs +67 -0
  30. package/dist/query/hooks/index.cjs.map +1 -1
  31. package/dist/query/hooks/index.d.cts +27 -7
  32. package/dist/query/hooks/index.d.ts +27 -7
  33. package/dist/query/hooks/index.js +65 -1
  34. package/dist/query/hooks/index.js.map +1 -1
  35. package/dist/query/index.d.cts +10 -10
  36. package/dist/query/index.d.ts +10 -10
  37. package/dist/schemas/index.cjs +33 -0
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +2 -2
  40. package/dist/schemas/index.d.ts +2 -2
  41. package/dist/schemas/index.js +32 -1
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/schemas/write/index.cjs +26 -0
  44. package/dist/schemas/write/index.cjs.map +1 -1
  45. package/dist/schemas/write/index.d.cts +37 -2
  46. package/dist/schemas/write/index.d.ts +37 -2
  47. package/dist/schemas/write/index.js +26 -1
  48. package/dist/schemas/write/index.js.map +1 -1
  49. package/dist/{types-BtoIc4cG.d.ts → types-C3xxTGUE.d.ts} +2 -2
  50. package/dist/{types-DNrRbi9D.d.cts → types-D0LWpGtY.d.cts} +2 -2
  51. package/dist/{index-B61EZesA.d.ts → use-org-notification-emails-C3TuUp8c.d.ts} +5 -5
  52. package/dist/{index-DQrudL91.d.cts → use-org-notification-emails-ChctAwP5.d.cts} +5 -5
  53. package/package.json +1 -1
@@ -1,8 +1,28 @@
1
- export { c as AccountCheckResult, d as ActivityFeedResponse, e as ActivityItem, f as ActivityItemLinkHealth, g as ActivityTeaserResponse, h as AdminReviewQueues, i as ApiError, A as ApiFetchOptions, j as AppRegistryEntry, B as BulkHideProfileItemInput, k as CastRoadmapVoteResult, l as CheckAppAccountOptions, a as ConfirmEndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, o as CreateExternalAccountResult, C as CreateResult, D as DeleteAccountResult, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchFollowListOptions, v as FetchFollowProfilePageOptions, w as FetchFollowingFeedOptions, x as FetchHiddenAppsOptions, y as FetchMyGithubPullRequestsOptions, z as FetchMyRoadmapVotesOptions, G as FetchReactionStatusOptions, H as FetchSuggestionsOptions, I as FilterOptions, J as FollowListPage, K as FollowProfile, L as FollowProfilePageResponse, M as FollowUserResult, N as FollowingResponse, O as GetAdminReviewQueuesOptions, P as GithubPullRequest, Q as GivenConfirmation, R as HIDDEN_ITEM_SOURCES, T as HIDDEN_ITEM_TYPES, U as HeatmapDay, V as HeatmapResponse, X as HiddenApp, Y as HiddenItemSource, Z as HiddenItemType, _ as HideProfileItemInput, $ as ListFeatureAllowlistOptions, a0 as MyGithubPullRequestsResponse, a1 as OrgClaimBinding, a2 as OrgClaimResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult, a7 as OrgProfileEcho, a8 as OrgProfileUpdateResult, a9 as PdsWipeOutcome, aa as PendingConfirmation, ab as PendingConfirmationsPage, ac as ProfileIndustryInput, ad as ProfileLocationAddress, ae as ProfileLocationInput, af as ProfileSearchResult, ag as ProfileSelfLocation, ah as QUOTED_POSTS_BATCH_MAX, ai as QuotedPostAuthor, aj as QuotedPostImage, ak as QuotedPostResult, al as QuotedPostView, am as ReactionError, an as ReactionResult, ao as ReactionStatus, ap as RefreshOrcidPublicationsResult, aq as RefreshPdsResult, ar as RepoDeleteInput, as as ResetProfileResult, at as ResolveQuotedPostsOptions, au as RoadmapVoteError, av as RoadmapVoteResult, aw as RoadmapVoter, ax as RoadmapVotesResponse, ay as SearchFilters, az as SearchResponse, S as SifaApiConfig, aA as SifaQueryKey, aB as SimilarProfile, aC as SkillSearchResult, aD as StatsResponse, aF as SuggestionProfile, aG as SuggestionsResponse, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, aK as VerifyExternalAccountResult, aL as WipePreview, W as WriteResult, aM as addFeatureAllowlist, aN as addOrgNotificationEmail, aO as apiFetch, aP as apiFetchOrNull, aQ as apiWrite, aR as apiWriteCreate, aS as bulkHideProfileItems, aT as bulkHideStandardPublications, aU as bulkUnhideProfileItems, aV as bulkUnhideStandardPublications, aW as castRoadmapVote, aX as checkAppAccount, aY as confirmEndorsement, aZ as createConfirmation, a_ as createEndorsement, a$ as createExternalAccount, b0 as createProfileLocation, b1 as createReaction, b2 as createSkill, b3 as deleteAccount, b4 as deleteAvatarOverride, b5 as deleteExternalAccount, b6 as deleteProfileLocation, b7 as deleteReaction, b8 as deleteRepoRecords, b9 as deleteSkill, ba as dismissConfirmation, bb as fetchActivityFeed, bc as fetchActivityTeaser, bd as fetchAppsRegistry, be as fetchExternalAccounts, bf as fetchFeaturedProfile, bg as fetchFollowing, bh as fetchGivenConfirmations, bi as fetchHeatmapData, bj as fetchHiddenApps, bk as fetchMyGithubPullRequests, bl as fetchMyRoadmapVotes, bm as fetchPendingConfirmations, bn as fetchReactionStatus, bo as fetchRepoInventory, bp as fetchRoadmapVotes, bq as fetchSearchFilters, br as fetchSearchProfiles, bs as fetchSimilarProfiles, bt as fetchSkillSuggestions, bu as fetchStats, bv as fetchSuggestionCount, bw as fetchSuggestions, bx as fetchWipePreview, by as followUser, bz as getAdminReviewQueues, bA as getBlueskySuggestions, bB as getFollowers, bC as getFollowing, bD as getFollowingFeed, bE as getMutuals, bF as hideOrcidPublication, bG as hideProfileItem, bH as hideSifaPublication, bI as hideStandardPublication, bJ as listFeatureAllowlist, bK as refreshOrcidPublications, bL as refreshPds, bM as removeFeatureAllowlist, bN as removeOrgNotificationEmail, bO as repoExportUrl, bP as requestOrgDomainChallenge, bQ as resetProfile, bR as resolveQuotedPosts, bS as retractRoadmapVote, bT as revokeConfirmation, bU as searchSkills, bV as setExternalAccountPrimary, s as sifaQueryKeys, bW as submitOrgClaim, bX as unfollowUser, bY as unhideOrcidPublication, bZ as unhideProfileItem, b_ as unhideSifaPublication, b$ as unhideStandardPublication, c0 as unsetExternalAccountPrimary, c1 as updateExternalAccount, c2 as updateOrgProfile, c3 as updateProfileLocation, c4 as updateProfileOverride, c5 as updateProfileSelf, c6 as updateSkill, c8 as uploadAvatar, c9 as verifyExternalAccount, ca as verifyOrgDomain } from '../../org-ClPPJ3-J.cjs';
2
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, a as NetworkMapGenerationJob, b as NetworkMapGraphData, c as NetworkMapNode, d as NetworkMapPendingJob, e as NetworkMapResponse, f as PendingEndorsement, P as PendingEndorsementsPage, g as checkNetworkMapJobStatus, h as createEducation, i as createPosition, j as createRecord, k as deleteEducation, l as deletePosition, m as deleteRecord, n as dismissEndorsement, o as fetchAtFundLink, p as fetchEndorsementCount, q as fetchEntitySearch, r as fetchGetProfileView, s as fetchNetworkMap, t as fetchNetworkStreamCount, u as fetchPendingEndorsements, v as fetchProfile, w as fetchProfileSummary, x as hideKeytraceClaim, y as importSearchEntities, z as initiateNetworkMapGeneration, A as isNetworkMapResponse, B as linkSkillToPosition, G as revealMarqueDomain, H as selectEntity, I as setPositionPrimary, J as unhideKeytraceClaim, K as unlinkSkillFromPosition, L as unrevealMarqueDomain, M as unsetPositionPrimary, O as updateEducation, Q as updatePosition, R as updateRecord } from '../../index-BARfrksZ.cjs';
3
- import '../../index-Cj6jfpAE.cjs';
4
- import '../../feed-dOSy_48Z.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from '../../org-DJyiwPcL.cjs';
2
+ export { c as AccountCheckResult, d as ActivityFeedResponse, e as ActivityItem, f as ActivityItemLinkHealth, g as ActivityTeaserResponse, h as AdminReviewQueues, i as ApiError, j as AppRegistryEntry, B as BulkHideProfileItemInput, k as CastRoadmapVoteResult, l as CheckAppAccountOptions, a as ConfirmEndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, o as CreateExternalAccountResult, D as DeleteAccountResult, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchFollowListOptions, v as FetchFollowProfilePageOptions, w as FetchFollowingFeedOptions, x as FetchHiddenAppsOptions, y as FetchMyGithubPullRequestsOptions, z as FetchMyRoadmapVotesOptions, G as FetchReactionStatusOptions, H as FetchSuggestionsOptions, I as FilterOptions, J as FollowListPage, K as FollowProfile, L as FollowProfilePageResponse, M as FollowUserResult, N as FollowingResponse, O as GetAdminReviewQueuesOptions, P as GithubPullRequest, Q as GivenConfirmation, R as HIDDEN_ITEM_SOURCES, T as HIDDEN_ITEM_TYPES, U as HeatmapDay, V as HeatmapResponse, X as HiddenApp, Y as HiddenItemSource, Z as HiddenItemType, _ as HideProfileItemInput, $ as ListFeatureAllowlistOptions, a0 as MyGithubPullRequestsResponse, a1 as OrgClaimBinding, a2 as OrgClaimResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult, a7 as OrgProfileEcho, a8 as OrgProfileUpdateResult, a9 as PdsWipeOutcome, aa as PendingConfirmation, ab as PendingConfirmationsPage, ac as ProfileIndustryInput, ad as ProfileLocationAddress, ae as ProfileLocationInput, af as ProfileSearchResult, ag as ProfileSelfLocation, ah as QUOTED_POSTS_BATCH_MAX, ai as QuotedPostAuthor, aj as QuotedPostImage, ak as QuotedPostResult, al as QuotedPostView, am as ReactionError, an as ReactionResult, ao as ReactionStatus, ap as RefreshOrcidPublicationsResult, aq as RefreshPdsResult, ar as RepoDeleteInput, as as ResetProfileResult, at as ResolveQuotedPostsOptions, au as RoadmapVoteError, av as RoadmapVoteResult, aw as RoadmapVoter, ax as RoadmapVotesResponse, ay as SearchFilters, az as SearchResponse, aA as SifaQueryKey, aB as SimilarProfile, aC as SkillSearchResult, aD as StatsResponse, aF as SuggestionProfile, aG as SuggestionsResponse, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, aK as VerifyExternalAccountResult, aL as WipePreview, aM as addFeatureAllowlist, aN as addOrgNotificationEmail, aO as apiFetch, aP as apiFetchOrNull, aQ as apiWrite, aR as apiWriteCreate, aS as bulkHideProfileItems, aT as bulkHideStandardPublications, aU as bulkUnhideProfileItems, aV as bulkUnhideStandardPublications, aW as castRoadmapVote, aX as checkAppAccount, aY as confirmEndorsement, aZ as createConfirmation, a_ as createEndorsement, a$ as createExternalAccount, b0 as createProfileLocation, b1 as createReaction, b2 as createSkill, b3 as deleteAccount, b4 as deleteAvatarOverride, b5 as deleteExternalAccount, b6 as deleteProfileLocation, b7 as deleteReaction, b8 as deleteRepoRecords, b9 as deleteSkill, ba as dismissConfirmation, bb as fetchActivityFeed, bc as fetchActivityTeaser, bd as fetchAppsRegistry, be as fetchExternalAccounts, bf as fetchFeaturedProfile, bg as fetchFollowing, bh as fetchGivenConfirmations, bi as fetchHeatmapData, bj as fetchHiddenApps, bk as fetchMyGithubPullRequests, bl as fetchMyRoadmapVotes, bm as fetchPendingConfirmations, bn as fetchReactionStatus, bo as fetchRepoInventory, bp as fetchRoadmapVotes, bq as fetchSearchFilters, br as fetchSearchProfiles, bs as fetchSimilarProfiles, bt as fetchSkillSuggestions, bu as fetchStats, bv as fetchSuggestionCount, bw as fetchSuggestions, bx as fetchWipePreview, by as followUser, bz as getAdminReviewQueues, bA as getBlueskySuggestions, bB as getFollowers, bC as getFollowing, bD as getFollowingFeed, bE as getMutuals, bF as hideOrcidPublication, bG as hideProfileItem, bH as hideSifaPublication, bI as hideStandardPublication, bJ as listFeatureAllowlist, bK as refreshOrcidPublications, bL as refreshPds, bM as removeFeatureAllowlist, bN as removeOrgNotificationEmail, bO as repoExportUrl, bP as requestOrgDomainChallenge, bQ as resetProfile, bR as resolveQuotedPosts, bS as retractRoadmapVote, bT as revokeConfirmation, bU as searchSkills, bV as setExternalAccountPrimary, s as sifaQueryKeys, bW as submitOrgClaim, bX as unfollowUser, bY as unhideOrcidPublication, bZ as unhideProfileItem, b_ as unhideSifaPublication, b$ as unhideStandardPublication, c0 as unsetExternalAccountPrimary, c1 as updateExternalAccount, c2 as updateOrgProfile, c3 as updateProfileLocation, c4 as updateProfileOverride, c5 as updateProfileSelf, c6 as updateSkill, c8 as uploadAvatar, c9 as verifyExternalAccount, ca as verifyOrgDomain } from '../../org-DJyiwPcL.cjs';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, a as NetworkMapGenerationJob, b as NetworkMapGraphData, c as NetworkMapNode, d as NetworkMapPendingJob, e as NetworkMapResponse, f as PendingEndorsement, P as PendingEndorsementsPage, g as checkNetworkMapJobStatus, h as createEducation, i as createPosition, j as createRecord, k as deleteEducation, l as deletePosition, m as deleteRecord, n as dismissEndorsement, o as fetchAtFundLink, p as fetchEndorsementCount, q as fetchEntitySearch, r as fetchGetProfileView, s as fetchNetworkMap, t as fetchNetworkStreamCount, u as fetchPendingEndorsements, v as fetchProfile, w as fetchProfileSummary, x as hideKeytraceClaim, y as importSearchEntities, z as initiateNetworkMapGeneration, A as isNetworkMapResponse, B as linkSkillToPosition, G as revealMarqueDomain, H as selectEntity, I as setPositionPrimary, J as unhideKeytraceClaim, K as unlinkSkillFromPosition, L as unrevealMarqueDomain, M as unsetPositionPrimary, O as updateEducation, Q as updatePosition, R as updateRecord } from '../../network-map-CpwO3k-e.cjs';
4
+ import '../../index-a3xqWsNm.cjs';
5
+ import '../../feed-BMm9Pkew.cjs';
5
6
  import 'zod';
6
- import '../../types-DNrRbi9D.cjs';
7
- import '../../org-settings-B8e01iZx.cjs';
8
- import '../../profile-summary-sEHAdvfm.cjs';
7
+ import '../../types-D0LWpGtY.cjs';
8
+ import '../../org-settings-CZ_tmAYl.cjs';
9
+ import '../../profile-summary-BTZAwG1z.cjs';
10
+
11
+ /**
12
+ * Create a new `id.sifa.profile.investment` record on the authenticated user's PDS.
13
+ * The AppView signs and writes via the user's OAuth session.
14
+ *
15
+ * `data` should be a lexicon-shaped investment record (without `createdAt` or
16
+ * `rkey`; the AppView fills both). Validate with `InvestmentWriteSchema` first if
17
+ * you want client-side guarantees.
18
+ *
19
+ * Never throws -- inspect `result.success` and use `result.error` / `result.pdsHost`
20
+ * for UI messaging.
21
+ */
22
+ declare function createInvestment(config: SifaApiConfig, data: Record<string, unknown>, options?: ApiFetchOptions): Promise<CreateResult>;
23
+ /** Update an existing investment by `rkey`. */
24
+ declare function updateInvestment(config: SifaApiConfig, rkey: string, data: Record<string, unknown>, options?: ApiFetchOptions): Promise<WriteResult>;
25
+ /** Delete an investment by `rkey`. */
26
+ declare function deleteInvestment(config: SifaApiConfig, rkey: string, options?: ApiFetchOptions): Promise<WriteResult>;
27
+
28
+ export { ApiFetchOptions, CreateResult, SifaApiConfig, WriteResult, createInvestment, deleteInvestment, updateInvestment };
@@ -1,8 +1,28 @@
1
- export { c as AccountCheckResult, d as ActivityFeedResponse, e as ActivityItem, f as ActivityItemLinkHealth, g as ActivityTeaserResponse, h as AdminReviewQueues, i as ApiError, A as ApiFetchOptions, j as AppRegistryEntry, B as BulkHideProfileItemInput, k as CastRoadmapVoteResult, l as CheckAppAccountOptions, a as ConfirmEndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, o as CreateExternalAccountResult, C as CreateResult, D as DeleteAccountResult, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchFollowListOptions, v as FetchFollowProfilePageOptions, w as FetchFollowingFeedOptions, x as FetchHiddenAppsOptions, y as FetchMyGithubPullRequestsOptions, z as FetchMyRoadmapVotesOptions, G as FetchReactionStatusOptions, H as FetchSuggestionsOptions, I as FilterOptions, J as FollowListPage, K as FollowProfile, L as FollowProfilePageResponse, M as FollowUserResult, N as FollowingResponse, O as GetAdminReviewQueuesOptions, P as GithubPullRequest, Q as GivenConfirmation, R as HIDDEN_ITEM_SOURCES, T as HIDDEN_ITEM_TYPES, U as HeatmapDay, V as HeatmapResponse, X as HiddenApp, Y as HiddenItemSource, Z as HiddenItemType, _ as HideProfileItemInput, $ as ListFeatureAllowlistOptions, a0 as MyGithubPullRequestsResponse, a1 as OrgClaimBinding, a2 as OrgClaimResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult, a7 as OrgProfileEcho, a8 as OrgProfileUpdateResult, a9 as PdsWipeOutcome, aa as PendingConfirmation, ab as PendingConfirmationsPage, ac as ProfileIndustryInput, ad as ProfileLocationAddress, ae as ProfileLocationInput, af as ProfileSearchResult, ag as ProfileSelfLocation, ah as QUOTED_POSTS_BATCH_MAX, ai as QuotedPostAuthor, aj as QuotedPostImage, ak as QuotedPostResult, al as QuotedPostView, am as ReactionError, an as ReactionResult, ao as ReactionStatus, ap as RefreshOrcidPublicationsResult, aq as RefreshPdsResult, ar as RepoDeleteInput, as as ResetProfileResult, at as ResolveQuotedPostsOptions, au as RoadmapVoteError, av as RoadmapVoteResult, aw as RoadmapVoter, ax as RoadmapVotesResponse, ay as SearchFilters, az as SearchResponse, S as SifaApiConfig, aA as SifaQueryKey, aB as SimilarProfile, aC as SkillSearchResult, aD as StatsResponse, aF as SuggestionProfile, aG as SuggestionsResponse, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, aK as VerifyExternalAccountResult, aL as WipePreview, W as WriteResult, aM as addFeatureAllowlist, aN as addOrgNotificationEmail, aO as apiFetch, aP as apiFetchOrNull, aQ as apiWrite, aR as apiWriteCreate, aS as bulkHideProfileItems, aT as bulkHideStandardPublications, aU as bulkUnhideProfileItems, aV as bulkUnhideStandardPublications, aW as castRoadmapVote, aX as checkAppAccount, aY as confirmEndorsement, aZ as createConfirmation, a_ as createEndorsement, a$ as createExternalAccount, b0 as createProfileLocation, b1 as createReaction, b2 as createSkill, b3 as deleteAccount, b4 as deleteAvatarOverride, b5 as deleteExternalAccount, b6 as deleteProfileLocation, b7 as deleteReaction, b8 as deleteRepoRecords, b9 as deleteSkill, ba as dismissConfirmation, bb as fetchActivityFeed, bc as fetchActivityTeaser, bd as fetchAppsRegistry, be as fetchExternalAccounts, bf as fetchFeaturedProfile, bg as fetchFollowing, bh as fetchGivenConfirmations, bi as fetchHeatmapData, bj as fetchHiddenApps, bk as fetchMyGithubPullRequests, bl as fetchMyRoadmapVotes, bm as fetchPendingConfirmations, bn as fetchReactionStatus, bo as fetchRepoInventory, bp as fetchRoadmapVotes, bq as fetchSearchFilters, br as fetchSearchProfiles, bs as fetchSimilarProfiles, bt as fetchSkillSuggestions, bu as fetchStats, bv as fetchSuggestionCount, bw as fetchSuggestions, bx as fetchWipePreview, by as followUser, bz as getAdminReviewQueues, bA as getBlueskySuggestions, bB as getFollowers, bC as getFollowing, bD as getFollowingFeed, bE as getMutuals, bF as hideOrcidPublication, bG as hideProfileItem, bH as hideSifaPublication, bI as hideStandardPublication, bJ as listFeatureAllowlist, bK as refreshOrcidPublications, bL as refreshPds, bM as removeFeatureAllowlist, bN as removeOrgNotificationEmail, bO as repoExportUrl, bP as requestOrgDomainChallenge, bQ as resetProfile, bR as resolveQuotedPosts, bS as retractRoadmapVote, bT as revokeConfirmation, bU as searchSkills, bV as setExternalAccountPrimary, s as sifaQueryKeys, bW as submitOrgClaim, bX as unfollowUser, bY as unhideOrcidPublication, bZ as unhideProfileItem, b_ as unhideSifaPublication, b$ as unhideStandardPublication, c0 as unsetExternalAccountPrimary, c1 as updateExternalAccount, c2 as updateOrgProfile, c3 as updateProfileLocation, c4 as updateProfileOverride, c5 as updateProfileSelf, c6 as updateSkill, c8 as uploadAvatar, c9 as verifyExternalAccount, ca as verifyOrgDomain } from '../../org-wLJm-WXC.js';
2
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, a as NetworkMapGenerationJob, b as NetworkMapGraphData, c as NetworkMapNode, d as NetworkMapPendingJob, e as NetworkMapResponse, f as PendingEndorsement, P as PendingEndorsementsPage, g as checkNetworkMapJobStatus, h as createEducation, i as createPosition, j as createRecord, k as deleteEducation, l as deletePosition, m as deleteRecord, n as dismissEndorsement, o as fetchAtFundLink, p as fetchEndorsementCount, q as fetchEntitySearch, r as fetchGetProfileView, s as fetchNetworkMap, t as fetchNetworkStreamCount, u as fetchPendingEndorsements, v as fetchProfile, w as fetchProfileSummary, x as hideKeytraceClaim, y as importSearchEntities, z as initiateNetworkMapGeneration, A as isNetworkMapResponse, B as linkSkillToPosition, G as revealMarqueDomain, H as selectEntity, I as setPositionPrimary, J as unhideKeytraceClaim, K as unlinkSkillFromPosition, L as unrevealMarqueDomain, M as unsetPositionPrimary, O as updateEducation, Q as updatePosition, R as updateRecord } from '../../index-C0iPs_NQ.js';
3
- import '../../index-Cj6jfpAE.js';
4
- import '../../feed-dOSy_48Z.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from '../../org-DxhtogOn.js';
2
+ export { c as AccountCheckResult, d as ActivityFeedResponse, e as ActivityItem, f as ActivityItemLinkHealth, g as ActivityTeaserResponse, h as AdminReviewQueues, i as ApiError, j as AppRegistryEntry, B as BulkHideProfileItemInput, k as CastRoadmapVoteResult, l as CheckAppAccountOptions, a as ConfirmEndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, o as CreateExternalAccountResult, D as DeleteAccountResult, E as EndorsementInput, p as ExternalAccountInput, F as FeatureAllowlistResponse, q as FeaturedProfile, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchFollowListOptions, v as FetchFollowProfilePageOptions, w as FetchFollowingFeedOptions, x as FetchHiddenAppsOptions, y as FetchMyGithubPullRequestsOptions, z as FetchMyRoadmapVotesOptions, G as FetchReactionStatusOptions, H as FetchSuggestionsOptions, I as FilterOptions, J as FollowListPage, K as FollowProfile, L as FollowProfilePageResponse, M as FollowUserResult, N as FollowingResponse, O as GetAdminReviewQueuesOptions, P as GithubPullRequest, Q as GivenConfirmation, R as HIDDEN_ITEM_SOURCES, T as HIDDEN_ITEM_TYPES, U as HeatmapDay, V as HeatmapResponse, X as HiddenApp, Y as HiddenItemSource, Z as HiddenItemType, _ as HideProfileItemInput, $ as ListFeatureAllowlistOptions, a0 as MyGithubPullRequestsResponse, a1 as OrgClaimBinding, a2 as OrgClaimResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult, a7 as OrgProfileEcho, a8 as OrgProfileUpdateResult, a9 as PdsWipeOutcome, aa as PendingConfirmation, ab as PendingConfirmationsPage, ac as ProfileIndustryInput, ad as ProfileLocationAddress, ae as ProfileLocationInput, af as ProfileSearchResult, ag as ProfileSelfLocation, ah as QUOTED_POSTS_BATCH_MAX, ai as QuotedPostAuthor, aj as QuotedPostImage, ak as QuotedPostResult, al as QuotedPostView, am as ReactionError, an as ReactionResult, ao as ReactionStatus, ap as RefreshOrcidPublicationsResult, aq as RefreshPdsResult, ar as RepoDeleteInput, as as ResetProfileResult, at as ResolveQuotedPostsOptions, au as RoadmapVoteError, av as RoadmapVoteResult, aw as RoadmapVoter, ax as RoadmapVotesResponse, ay as SearchFilters, az as SearchResponse, aA as SifaQueryKey, aB as SimilarProfile, aC as SkillSearchResult, aD as StatsResponse, aF as SuggestionProfile, aG as SuggestionsResponse, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, aK as VerifyExternalAccountResult, aL as WipePreview, aM as addFeatureAllowlist, aN as addOrgNotificationEmail, aO as apiFetch, aP as apiFetchOrNull, aQ as apiWrite, aR as apiWriteCreate, aS as bulkHideProfileItems, aT as bulkHideStandardPublications, aU as bulkUnhideProfileItems, aV as bulkUnhideStandardPublications, aW as castRoadmapVote, aX as checkAppAccount, aY as confirmEndorsement, aZ as createConfirmation, a_ as createEndorsement, a$ as createExternalAccount, b0 as createProfileLocation, b1 as createReaction, b2 as createSkill, b3 as deleteAccount, b4 as deleteAvatarOverride, b5 as deleteExternalAccount, b6 as deleteProfileLocation, b7 as deleteReaction, b8 as deleteRepoRecords, b9 as deleteSkill, ba as dismissConfirmation, bb as fetchActivityFeed, bc as fetchActivityTeaser, bd as fetchAppsRegistry, be as fetchExternalAccounts, bf as fetchFeaturedProfile, bg as fetchFollowing, bh as fetchGivenConfirmations, bi as fetchHeatmapData, bj as fetchHiddenApps, bk as fetchMyGithubPullRequests, bl as fetchMyRoadmapVotes, bm as fetchPendingConfirmations, bn as fetchReactionStatus, bo as fetchRepoInventory, bp as fetchRoadmapVotes, bq as fetchSearchFilters, br as fetchSearchProfiles, bs as fetchSimilarProfiles, bt as fetchSkillSuggestions, bu as fetchStats, bv as fetchSuggestionCount, bw as fetchSuggestions, bx as fetchWipePreview, by as followUser, bz as getAdminReviewQueues, bA as getBlueskySuggestions, bB as getFollowers, bC as getFollowing, bD as getFollowingFeed, bE as getMutuals, bF as hideOrcidPublication, bG as hideProfileItem, bH as hideSifaPublication, bI as hideStandardPublication, bJ as listFeatureAllowlist, bK as refreshOrcidPublications, bL as refreshPds, bM as removeFeatureAllowlist, bN as removeOrgNotificationEmail, bO as repoExportUrl, bP as requestOrgDomainChallenge, bQ as resetProfile, bR as resolveQuotedPosts, bS as retractRoadmapVote, bT as revokeConfirmation, bU as searchSkills, bV as setExternalAccountPrimary, s as sifaQueryKeys, bW as submitOrgClaim, bX as unfollowUser, bY as unhideOrcidPublication, bZ as unhideProfileItem, b_ as unhideSifaPublication, b$ as unhideStandardPublication, c0 as unsetExternalAccountPrimary, c1 as updateExternalAccount, c2 as updateOrgProfile, c3 as updateProfileLocation, c4 as updateProfileOverride, c5 as updateProfileSelf, c6 as updateSkill, c8 as uploadAvatar, c9 as verifyExternalAccount, ca as verifyOrgDomain } from '../../org-DxhtogOn.js';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, N as NetworkMapEdge, a as NetworkMapGenerationJob, b as NetworkMapGraphData, c as NetworkMapNode, d as NetworkMapPendingJob, e as NetworkMapResponse, f as PendingEndorsement, P as PendingEndorsementsPage, g as checkNetworkMapJobStatus, h as createEducation, i as createPosition, j as createRecord, k as deleteEducation, l as deletePosition, m as deleteRecord, n as dismissEndorsement, o as fetchAtFundLink, p as fetchEndorsementCount, q as fetchEntitySearch, r as fetchGetProfileView, s as fetchNetworkMap, t as fetchNetworkStreamCount, u as fetchPendingEndorsements, v as fetchProfile, w as fetchProfileSummary, x as hideKeytraceClaim, y as importSearchEntities, z as initiateNetworkMapGeneration, A as isNetworkMapResponse, B as linkSkillToPosition, G as revealMarqueDomain, H as selectEntity, I as setPositionPrimary, J as unhideKeytraceClaim, K as unlinkSkillFromPosition, L as unrevealMarqueDomain, M as unsetPositionPrimary, O as updateEducation, Q as updatePosition, R as updateRecord } from '../../network-map-DpEQ65cq.js';
4
+ import '../../index-a3xqWsNm.js';
5
+ import '../../feed-BMm9Pkew.js';
5
6
  import 'zod';
6
- import '../../types-BtoIc4cG.js';
7
- import '../../org-settings-B8e01iZx.js';
8
- import '../../profile-summary-Cbtnh04E.js';
7
+ import '../../types-C3xxTGUE.js';
8
+ import '../../org-settings-CZ_tmAYl.js';
9
+ import '../../profile-summary-Do5FY7Q0.js';
10
+
11
+ /**
12
+ * Create a new `id.sifa.profile.investment` record on the authenticated user's PDS.
13
+ * The AppView signs and writes via the user's OAuth session.
14
+ *
15
+ * `data` should be a lexicon-shaped investment record (without `createdAt` or
16
+ * `rkey`; the AppView fills both). Validate with `InvestmentWriteSchema` first if
17
+ * you want client-side guarantees.
18
+ *
19
+ * Never throws -- inspect `result.success` and use `result.error` / `result.pdsHost`
20
+ * for UI messaging.
21
+ */
22
+ declare function createInvestment(config: SifaApiConfig, data: Record<string, unknown>, options?: ApiFetchOptions): Promise<CreateResult>;
23
+ /** Update an existing investment by `rkey`. */
24
+ declare function updateInvestment(config: SifaApiConfig, rkey: string, data: Record<string, unknown>, options?: ApiFetchOptions): Promise<WriteResult>;
25
+ /** Delete an investment by `rkey`. */
26
+ declare function deleteInvestment(config: SifaApiConfig, rkey: string, options?: ApiFetchOptions): Promise<WriteResult>;
27
+
28
+ export { ApiFetchOptions, CreateResult, SifaApiConfig, WriteResult, createInvestment, deleteInvestment, updateInvestment };
@@ -1547,6 +1547,20 @@ var sifaQueryKeys = {
1547
1547
  }
1548
1548
  };
1549
1549
 
1550
- export { ApiError, HIDDEN_ITEM_SOURCES, HIDDEN_ITEM_TYPES, QUOTED_POSTS_BATCH_MAX, addFeatureAllowlist, addOrgNotificationEmail, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideProfileItems, bulkHideStandardPublications, bulkUnhideProfileItems, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, confirmEndorsement, createConfirmation, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteRepoRecords, deleteSkill, dismissConfirmation, dismissEndorsement, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchEntitySearch, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchGetProfileView, fetchGivenConfirmations, fetchHeatmapData, fetchHiddenApps, fetchMyGithubPullRequests, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchPendingConfirmations, fetchPendingEndorsements, fetchProfile, fetchProfileSummary, fetchReactionStatus, fetchRepoInventory, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, fetchWipePreview, followUser, getAdminReviewQueues, getBlueskySuggestions, getFollowers, getFollowing, getFollowingFeed, getMutuals, hideKeytraceClaim, hideOrcidPublication, hideProfileItem, hideSifaPublication, hideStandardPublication, importSearchEntities, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, listFeatureAllowlist, refreshOrcidPublications, refreshPds, removeFeatureAllowlist, removeOrgNotificationEmail, repoExportUrl, requestOrgDomainChallenge, resetProfile, resolveQuotedPosts, retractRoadmapVote, revealMarqueDomain, revokeConfirmation, searchSkills, selectEntity, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, submitOrgClaim, unfollowUser, unhideKeytraceClaim, unhideOrcidPublication, unhideProfileItem, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unrevealMarqueDomain, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updateOrgProfile, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount, verifyOrgDomain };
1550
+ // src/query/fetchers/investments.ts
1551
+ function createInvestment(config, data, options = {}) {
1552
+ return apiWriteCreate(config, "/api/profile/investment", data, options);
1553
+ }
1554
+ function updateInvestment(config, rkey, data, options = {}) {
1555
+ return apiWrite(config, `/api/profile/investment/${encodeURIComponent(rkey)}`, "PUT", {
1556
+ body: data,
1557
+ ...options
1558
+ });
1559
+ }
1560
+ function deleteInvestment(config, rkey, options = {}) {
1561
+ return apiWrite(config, `/api/profile/investment/${encodeURIComponent(rkey)}`, "DELETE", options);
1562
+ }
1563
+
1564
+ export { ApiError, HIDDEN_ITEM_SOURCES, HIDDEN_ITEM_TYPES, QUOTED_POSTS_BATCH_MAX, addFeatureAllowlist, addOrgNotificationEmail, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideProfileItems, bulkHideStandardPublications, bulkUnhideProfileItems, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, confirmEndorsement, createConfirmation, createEducation, createEndorsement, createExternalAccount, createInvestment, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deleteInvestment, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteRepoRecords, deleteSkill, dismissConfirmation, dismissEndorsement, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchEntitySearch, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchGetProfileView, fetchGivenConfirmations, fetchHeatmapData, fetchHiddenApps, fetchMyGithubPullRequests, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchPendingConfirmations, fetchPendingEndorsements, fetchProfile, fetchProfileSummary, fetchReactionStatus, fetchRepoInventory, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, fetchWipePreview, followUser, getAdminReviewQueues, getBlueskySuggestions, getFollowers, getFollowing, getFollowingFeed, getMutuals, hideKeytraceClaim, hideOrcidPublication, hideProfileItem, hideSifaPublication, hideStandardPublication, importSearchEntities, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, listFeatureAllowlist, refreshOrcidPublications, refreshPds, removeFeatureAllowlist, removeOrgNotificationEmail, repoExportUrl, requestOrgDomainChallenge, resetProfile, resolveQuotedPosts, retractRoadmapVote, revealMarqueDomain, revokeConfirmation, searchSkills, selectEntity, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, submitOrgClaim, unfollowUser, unhideKeytraceClaim, unhideOrcidPublication, unhideProfileItem, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unrevealMarqueDomain, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updateInvestment, updateOrgProfile, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, verifyExternalAccount, verifyOrgDomain };
1551
1565
  //# sourceMappingURL=index.js.map
1552
1566
  //# sourceMappingURL=index.js.map