@singi-labs/sifa-sdk 0.12.2 → 0.12.4

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 (47) hide show
  1. package/dist/{adult-content-DDGP8W1e.d.cts → adult-content-n2uy3rT3.d.cts} +31 -1
  2. package/dist/{adult-content-DDGP8W1e.d.ts → adult-content-n2uy3rT3.d.ts} +31 -1
  3. package/dist/{index-IMvNS08M.d.ts → index-BLv2bK_K.d.ts} +2 -2
  4. package/dist/{index-BS7zO7KI.d.cts → index-COjgkXRe.d.cts} +86 -3
  5. package/dist/{index-CNh-GI9A.d.cts → index-HTTNUcN4.d.cts} +2 -2
  6. package/dist/{index-iAzeLOcz.d.ts → index-tkWmoZAu.d.ts} +86 -3
  7. package/dist/index.cjs +73 -1
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +96 -5
  10. package/dist/index.d.ts +96 -5
  11. package/dist/index.js +68 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/{keys-5oyp950_.d.ts → org-BZcAnLab.d.ts} +88 -2
  14. package/dist/{keys-Bn36IA8Q.d.cts → org-lIB6pSYc.d.cts} +88 -2
  15. package/dist/org-settings-CmaSX5ZI.d.cts +74 -0
  16. package/dist/org-settings-CmaSX5ZI.d.ts +74 -0
  17. package/dist/query/fetchers/index.cjs +45 -0
  18. package/dist/query/fetchers/index.cjs.map +1 -1
  19. package/dist/query/fetchers/index.d.cts +4 -3
  20. package/dist/query/fetchers/index.d.ts +4 -3
  21. package/dist/query/fetchers/index.js +40 -1
  22. package/dist/query/fetchers/index.js.map +1 -1
  23. package/dist/query/hooks/index.cjs +118 -0
  24. package/dist/query/hooks/index.cjs.map +1 -1
  25. package/dist/query/hooks/index.d.cts +4 -3
  26. package/dist/query/hooks/index.d.ts +4 -3
  27. package/dist/query/hooks/index.js +112 -1
  28. package/dist/query/hooks/index.js.map +1 -1
  29. package/dist/query/index.cjs +122 -0
  30. package/dist/query/index.cjs.map +1 -1
  31. package/dist/query/index.d.cts +6 -5
  32. package/dist/query/index.d.ts +6 -5
  33. package/dist/query/index.js +110 -1
  34. package/dist/query/index.js.map +1 -1
  35. package/dist/schemas/index.cjs +27 -0
  36. package/dist/schemas/index.cjs.map +1 -1
  37. package/dist/schemas/index.d.cts +67 -1
  38. package/dist/schemas/index.d.ts +67 -1
  39. package/dist/schemas/index.js +26 -1
  40. package/dist/schemas/index.js.map +1 -1
  41. package/dist/schemas/write/index.cjs +161 -1
  42. package/dist/schemas/write/index.cjs.map +1 -1
  43. package/dist/schemas/write/index.d.cts +204 -8
  44. package/dist/schemas/write/index.d.ts +204 -8
  45. package/dist/schemas/write/index.js +146 -2
  46. package/dist/schemas/write/index.js.map +1 -1
  47. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
- import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-DDGP8W1e.js';
1
+ import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-n2uy3rT3.js';
2
2
  import { F as FollowFeedPage, a as FollowProfileItem, b as FeatureAllowlistEntry, c as FeatureFlag } from './feed-D2ZV8Eaj.js';
3
+ import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-CmaSX5ZI.js';
3
4
 
4
5
  /**
5
6
  * Foundation HTTP client for talking to the Sifa AppView.
@@ -1155,4 +1156,89 @@ declare const sifaQueryKeys: {
1155
1156
  };
1156
1157
  type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels>;
1157
1158
 
1158
- export { type QuotedPostResult as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowUserResult as G, type FollowingResponse as H, HIDDEN_ITEM_SOURCES as I, HIDDEN_ITEM_TYPES as J, type HeatmapDay as K, type HeatmapResponse as L, type HiddenApp as M, type HiddenItemSource as N, type HiddenItemType as O, type HideProfileItemInput as P, type ListFeatureAllowlistOptions as Q, type ProfileIndustryInput as R, type SifaApiConfig as S, type ProfileLocationAddress as T, type ProfileLocationInput as U, type ProfileSearchResult as V, type WriteResult as W, type ProfileSelfLocation as X, QUOTED_POSTS_BATCH_MAX as Y, type QuotedPostAuthor as Z, type QuotedPostImage as _, type AccountCheckResult as a, getFollowers as a$, type QuotedPostView as a0, type ReactionError as a1, type ReactionResult as a2, type ReactionStatus as a3, type RefreshOrcidPublicationsResult as a4, type RefreshPdsResult as a5, type ResolveQuotedPostsOptions as a6, type RoadmapVoteError as a7, type RoadmapVoteResult as a8, type RoadmapVoter as a9, createProfileLocation as aA, createReaction as aB, deleteAccount as aC, deleteAvatarOverride as aD, deleteExternalAccount as aE, deleteProfileLocation as aF, deleteReaction as aG, fetchActivityFeed as aH, fetchActivityTeaser as aI, fetchAppsRegistry as aJ, fetchExternalAccounts as aK, fetchFeaturedProfile as aL, fetchFollowing as aM, fetchHeatmapData as aN, fetchHiddenApps as aO, fetchMyRoadmapVotes as aP, fetchReactionStatus as aQ, fetchRoadmapVotes as aR, fetchSearchFilters as aS, fetchSearchProfiles as aT, fetchSimilarProfiles as aU, fetchSkillSuggestions as aV, fetchStats as aW, fetchSuggestionCount as aX, fetchSuggestions as aY, followUser as aZ, getBlueskySuggestions as a_, type RoadmapVotesResponse as aa, type SearchFilters as ab, type SearchResponse as ac, type SifaQueryKey as ad, type SimilarProfile as ae, type SkillSearchResult as af, type StatsResponse as ag, type SuggestionProfile as ah, type SuggestionsResponse as ai, type UpdateProfileOverrideInput as aj, type UpdateProfileSelfInput as ak, type UploadAvatarResult as al, type VerifyExternalAccountResult as am, addFeatureAllowlist as an, apiFetch as ao, apiFetchOrNull as ap, apiWrite as aq, apiWriteCreate as ar, bulkHideProfileItems as as, bulkHideStandardPublications as at, bulkUnhideProfileItems as au, bulkUnhideStandardPublications as av, castRoadmapVote as aw, checkAppAccount as ax, createEndorsement as ay, createExternalAccount as az, type ActivityFeedResponse as b, getFollowing as b0, getFollowingFeed as b1, getMutuals as b2, hideOrcidPublication as b3, hideProfileItem as b4, hideSifaPublication as b5, hideStandardPublication as b6, listFeatureAllowlist as b7, refreshOrcidPublications as b8, refreshPds as b9, removeFeatureAllowlist as ba, resetProfile as bb, resolveQuotedPosts as bc, retractRoadmapVote as bd, searchSkills as be, setExternalAccountPrimary as bf, unfollowUser as bg, unhideOrcidPublication as bh, unhideProfileItem as bi, unhideSifaPublication as bj, unhideStandardPublication as bk, unsetExternalAccountPrimary as bl, updateExternalAccount as bm, updateProfileLocation as bn, updateProfileOverride as bo, updateProfileSelf as bp, uploadAvatar as bq, verifyExternalAccount as br, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyRoadmapVotesOptions as t, type FetchReactionStatusOptions as u, type FetchSuggestionsOptions as v, type FilterOptions as w, type FollowListPage as x, type FollowProfile as y, type FollowProfilePageResponse as z };
1159
+ /** How a single entity binding was resolved during a claim. */
1160
+ interface OrgClaimBinding {
1161
+ entityId: number;
1162
+ entityRef: string;
1163
+ validatedBy: string | null;
1164
+ status: 'active' | 'pending';
1165
+ dissolved: boolean;
1166
+ }
1167
+ /** The public org-profile echo returned by claim / update endpoints (no `contact`). */
1168
+ interface OrgProfileEcho {
1169
+ name: string;
1170
+ description: string | null;
1171
+ website: string | null;
1172
+ entityRefs: string[];
1173
+ }
1174
+ /** Response body of `POST /api/org/claim`. */
1175
+ interface OrgClaimResult {
1176
+ orgDid: string;
1177
+ status: 'active' | 'review';
1178
+ bindings: OrgClaimBinding[];
1179
+ orgProfile: OrgProfileEcho;
1180
+ }
1181
+ /** Response body of `PUT /api/org/profile`. */
1182
+ interface OrgProfileUpdateResult {
1183
+ ok: boolean;
1184
+ orgProfile: OrgProfileEcho;
1185
+ }
1186
+ /** Response body of `POST /api/org/domains/challenge`. */
1187
+ interface OrgDomainChallengeResult {
1188
+ domain: string;
1189
+ txtRecordName: string;
1190
+ txtRecordValue: string;
1191
+ }
1192
+ /** Response body of `POST /api/org/domains/verify` (happy path). */
1193
+ interface OrgDomainVerifyResult {
1194
+ status: 'verified' | 'pending';
1195
+ domain: string;
1196
+ }
1197
+ /** Response body of `POST /api/org/notification-emails`. */
1198
+ interface OrgNotificationEmailAddResult {
1199
+ ok: boolean;
1200
+ status: string;
1201
+ }
1202
+ /** Response body of `DELETE /api/org/notification-emails`. */
1203
+ interface OrgNotificationEmailRemoveResult {
1204
+ ok: boolean;
1205
+ removed: number;
1206
+ }
1207
+ /**
1208
+ * Finalize an org profile claim (`POST /api/org/claim`). Auth-gated (org-claim
1209
+ * JIT scope) and floor-checked server-side. Never throws -- returns the
1210
+ * structured {@link OrgClaimResult} folded into a {@link WriteResult} on success,
1211
+ * or `{ success: false, error, pdsHost? }` on failure.
1212
+ */
1213
+ declare function submitOrgClaim(config: SifaApiConfig, body: OrgClaimRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgClaimResult>>;
1214
+ /**
1215
+ * Edit the org record (`PUT /api/org/profile`). Fresh-from-body server-side PUT
1216
+ * (a cleared optional field is dropped, no spread-merge). Never throws.
1217
+ */
1218
+ declare function updateOrgProfile(config: SifaApiConfig, body: OrgProfileUpdateRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgProfileUpdateResult>>;
1219
+ /**
1220
+ * Issue a one-time DNS TXT domain challenge (`POST /api/org/domains/challenge`).
1221
+ * Returns the TXT record name + value the org must publish. Never throws.
1222
+ */
1223
+ declare function requestOrgDomainChallenge(config: SifaApiConfig, body: OrgDomainChallengeRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgDomainChallengeResult>>;
1224
+ /**
1225
+ * Verify a DNS TXT domain challenge (`POST /api/org/domains/verify`). On success
1226
+ * `status` is `verified` or `pending`. Expired / confusable / not-found map to
1227
+ * non-2xx server responses and surface as `{ success: false, error }`. Never
1228
+ * throws.
1229
+ */
1230
+ declare function verifyOrgDomain(config: SifaApiConfig, body: OrgDomainVerifyRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgDomainVerifyResult>>;
1231
+ /**
1232
+ * Add an org notification email (`POST /api/org/notification-emails`). The
1233
+ * address must use a domain the org controls (checked server-side). An
1234
+ * individual verification email is enqueued through the (dormant) sending
1235
+ * pipeline. Never throws.
1236
+ */
1237
+ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailAddResult>>;
1238
+ /**
1239
+ * Remove an org notification email (`DELETE /api/org/notification-emails`).
1240
+ * Never throws.
1241
+ */
1242
+ declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1243
+
1244
+ export { type ProfileIndustryInput as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowUserResult as G, type FollowingResponse as H, HIDDEN_ITEM_SOURCES as I, HIDDEN_ITEM_TYPES as J, type HeatmapDay as K, type HeatmapResponse as L, type HiddenApp as M, type HiddenItemSource as N, type HiddenItemType as O, type HideProfileItemInput as P, type ListFeatureAllowlistOptions as Q, type OrgClaimBinding as R, type SifaApiConfig as S, type OrgClaimResult as T, type OrgDomainChallengeResult as U, type OrgDomainVerifyResult as V, type WriteResult as W, type OrgNotificationEmailAddResult as X, type OrgNotificationEmailRemoveResult as Y, type OrgProfileEcho as Z, type OrgProfileUpdateResult as _, type AccountCheckResult as a, fetchSearchFilters as a$, type ProfileLocationAddress as a0, type ProfileLocationInput as a1, type ProfileSearchResult as a2, type ProfileSelfLocation as a3, QUOTED_POSTS_BATCH_MAX as a4, type QuotedPostAuthor as a5, type QuotedPostImage as a6, type QuotedPostResult as a7, type QuotedPostView as a8, type ReactionError as a9, apiWriteCreate as aA, bulkHideProfileItems as aB, bulkHideStandardPublications as aC, bulkUnhideProfileItems as aD, bulkUnhideStandardPublications as aE, castRoadmapVote as aF, checkAppAccount as aG, createEndorsement as aH, createExternalAccount as aI, createProfileLocation as aJ, createReaction as aK, deleteAccount as aL, deleteAvatarOverride as aM, deleteExternalAccount as aN, deleteProfileLocation as aO, deleteReaction as aP, fetchActivityFeed as aQ, fetchActivityTeaser as aR, fetchAppsRegistry as aS, fetchExternalAccounts as aT, fetchFeaturedProfile as aU, fetchFollowing as aV, fetchHeatmapData as aW, fetchHiddenApps as aX, fetchMyRoadmapVotes as aY, fetchReactionStatus as aZ, fetchRoadmapVotes as a_, type ReactionResult as aa, type ReactionStatus as ab, type RefreshOrcidPublicationsResult as ac, type RefreshPdsResult as ad, type ResolveQuotedPostsOptions as ae, type RoadmapVoteError as af, type RoadmapVoteResult as ag, type RoadmapVoter as ah, type RoadmapVotesResponse as ai, type SearchFilters as aj, type SearchResponse as ak, type SifaQueryKey as al, type SimilarProfile as am, type SkillSearchResult as an, type StatsResponse as ao, type SuggestionProfile as ap, type SuggestionsResponse as aq, type UpdateProfileOverrideInput as ar, type UpdateProfileSelfInput as as, type UploadAvatarResult as at, type VerifyExternalAccountResult as au, addFeatureAllowlist as av, addOrgNotificationEmail as aw, apiFetch as ax, apiFetchOrNull as ay, apiWrite as az, type ActivityFeedResponse as b, fetchSearchProfiles as b0, fetchSimilarProfiles as b1, fetchSkillSuggestions as b2, fetchStats as b3, fetchSuggestionCount as b4, fetchSuggestions as b5, followUser as b6, getBlueskySuggestions as b7, getFollowers as b8, getFollowing as b9, updateProfileLocation as bA, updateProfileOverride as bB, updateProfileSelf as bC, uploadAvatar as bD, verifyExternalAccount as bE, verifyOrgDomain as bF, getFollowingFeed as ba, getMutuals as bb, hideOrcidPublication as bc, hideProfileItem as bd, hideSifaPublication as be, hideStandardPublication as bf, listFeatureAllowlist as bg, refreshOrcidPublications as bh, refreshPds as bi, removeFeatureAllowlist as bj, removeOrgNotificationEmail as bk, requestOrgDomainChallenge as bl, resetProfile as bm, resolveQuotedPosts as bn, retractRoadmapVote as bo, searchSkills as bp, setExternalAccountPrimary as bq, submitOrgClaim as br, unfollowUser as bs, unhideOrcidPublication as bt, unhideProfileItem as bu, unhideSifaPublication as bv, unhideStandardPublication as bw, unsetExternalAccountPrimary as bx, updateExternalAccount as by, updateOrgProfile as bz, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyRoadmapVotesOptions as t, type FetchReactionStatusOptions as u, type FetchSuggestionsOptions as v, type FilterOptions as w, type FollowListPage as x, type FollowProfile as y, type FollowProfilePageResponse as z };
@@ -1,5 +1,6 @@
1
- import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-DDGP8W1e.cjs';
1
+ import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-n2uy3rT3.cjs';
2
2
  import { F as FollowFeedPage, a as FollowProfileItem, b as FeatureAllowlistEntry, c as FeatureFlag } from './feed-D2ZV8Eaj.cjs';
3
+ import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-CmaSX5ZI.cjs';
3
4
 
4
5
  /**
5
6
  * Foundation HTTP client for talking to the Sifa AppView.
@@ -1155,4 +1156,89 @@ declare const sifaQueryKeys: {
1155
1156
  };
1156
1157
  type SifaQueryKey = ReturnType<typeof sifaQueryKeys.all> | ReturnType<typeof sifaQueryKeys.profile.all> | ReturnType<typeof sifaQueryKeys.profile.byHandle> | ReturnType<typeof sifaQueryKeys.profile.atFundLink> | ReturnType<typeof sifaQueryKeys.profile.externalAccounts> | ReturnType<typeof sifaQueryKeys.position.all> | ReturnType<typeof sifaQueryKeys.position.byOwner> | ReturnType<typeof sifaQueryKeys.search.all> | ReturnType<typeof sifaQueryKeys.search.profiles> | ReturnType<typeof sifaQueryKeys.search.canonicalSkills> | ReturnType<typeof sifaQueryKeys.search.skills> | ReturnType<typeof sifaQueryKeys.search.filters> | ReturnType<typeof sifaQueryKeys.entity.all> | ReturnType<typeof sifaQueryKeys.entity.search> | ReturnType<typeof sifaQueryKeys.discovery.all> | ReturnType<typeof sifaQueryKeys.discovery.similar> | ReturnType<typeof sifaQueryKeys.discovery.suggestions> | ReturnType<typeof sifaQueryKeys.discovery.suggestionCount> | ReturnType<typeof sifaQueryKeys.discovery.featured> | ReturnType<typeof sifaQueryKeys.follow.all> | ReturnType<typeof sifaQueryKeys.follow.following> | ReturnType<typeof sifaQueryKeys.follow.followers> | ReturnType<typeof sifaQueryKeys.follow.followingOf> | ReturnType<typeof sifaQueryKeys.follow.feed> | ReturnType<typeof sifaQueryKeys.follow.mutuals> | ReturnType<typeof sifaQueryKeys.follow.blueskySuggestions> | ReturnType<typeof sifaQueryKeys.admin.all> | ReturnType<typeof sifaQueryKeys.admin.featureAllowlist> | ReturnType<typeof sifaQueryKeys.stats.all> | ReturnType<typeof sifaQueryKeys.stats.homepage> | ReturnType<typeof sifaQueryKeys.apps.all> | ReturnType<typeof sifaQueryKeys.apps.registry> | ReturnType<typeof sifaQueryKeys.apps.hidden> | ReturnType<typeof sifaQueryKeys.activity.all> | ReturnType<typeof sifaQueryKeys.activity.heatmap> | ReturnType<typeof sifaQueryKeys.activity.teaser> | ReturnType<typeof sifaQueryKeys.activity.feed> | ReturnType<typeof sifaQueryKeys.endorsement.all> | ReturnType<typeof sifaQueryKeys.endorsement.count> | ReturnType<typeof sifaQueryKeys.stream.all> | ReturnType<typeof sifaQueryKeys.stream.networkCount> | ReturnType<typeof sifaQueryKeys.reactions.all> | ReturnType<typeof sifaQueryKeys.reactions.status> | ReturnType<typeof sifaQueryKeys.reactions.accountCheck> | ReturnType<typeof sifaQueryKeys.roadmap.all> | ReturnType<typeof sifaQueryKeys.roadmap.votes> | ReturnType<typeof sifaQueryKeys.roadmap.myVotes> | ReturnType<typeof sifaQueryKeys.bskyPreferences.all> | ReturnType<typeof sifaQueryKeys.bskyPreferences.contentLabels>;
1157
1158
 
1158
- export { type QuotedPostResult as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowUserResult as G, type FollowingResponse as H, HIDDEN_ITEM_SOURCES as I, HIDDEN_ITEM_TYPES as J, type HeatmapDay as K, type HeatmapResponse as L, type HiddenApp as M, type HiddenItemSource as N, type HiddenItemType as O, type HideProfileItemInput as P, type ListFeatureAllowlistOptions as Q, type ProfileIndustryInput as R, type SifaApiConfig as S, type ProfileLocationAddress as T, type ProfileLocationInput as U, type ProfileSearchResult as V, type WriteResult as W, type ProfileSelfLocation as X, QUOTED_POSTS_BATCH_MAX as Y, type QuotedPostAuthor as Z, type QuotedPostImage as _, type AccountCheckResult as a, getFollowers as a$, type QuotedPostView as a0, type ReactionError as a1, type ReactionResult as a2, type ReactionStatus as a3, type RefreshOrcidPublicationsResult as a4, type RefreshPdsResult as a5, type ResolveQuotedPostsOptions as a6, type RoadmapVoteError as a7, type RoadmapVoteResult as a8, type RoadmapVoter as a9, createProfileLocation as aA, createReaction as aB, deleteAccount as aC, deleteAvatarOverride as aD, deleteExternalAccount as aE, deleteProfileLocation as aF, deleteReaction as aG, fetchActivityFeed as aH, fetchActivityTeaser as aI, fetchAppsRegistry as aJ, fetchExternalAccounts as aK, fetchFeaturedProfile as aL, fetchFollowing as aM, fetchHeatmapData as aN, fetchHiddenApps as aO, fetchMyRoadmapVotes as aP, fetchReactionStatus as aQ, fetchRoadmapVotes as aR, fetchSearchFilters as aS, fetchSearchProfiles as aT, fetchSimilarProfiles as aU, fetchSkillSuggestions as aV, fetchStats as aW, fetchSuggestionCount as aX, fetchSuggestions as aY, followUser as aZ, getBlueskySuggestions as a_, type RoadmapVotesResponse as aa, type SearchFilters as ab, type SearchResponse as ac, type SifaQueryKey as ad, type SimilarProfile as ae, type SkillSearchResult as af, type StatsResponse as ag, type SuggestionProfile as ah, type SuggestionsResponse as ai, type UpdateProfileOverrideInput as aj, type UpdateProfileSelfInput as ak, type UploadAvatarResult as al, type VerifyExternalAccountResult as am, addFeatureAllowlist as an, apiFetch as ao, apiFetchOrNull as ap, apiWrite as aq, apiWriteCreate as ar, bulkHideProfileItems as as, bulkHideStandardPublications as at, bulkUnhideProfileItems as au, bulkUnhideStandardPublications as av, castRoadmapVote as aw, checkAppAccount as ax, createEndorsement as ay, createExternalAccount as az, type ActivityFeedResponse as b, getFollowing as b0, getFollowingFeed as b1, getMutuals as b2, hideOrcidPublication as b3, hideProfileItem as b4, hideSifaPublication as b5, hideStandardPublication as b6, listFeatureAllowlist as b7, refreshOrcidPublications as b8, refreshPds as b9, removeFeatureAllowlist as ba, resetProfile as bb, resolveQuotedPosts as bc, retractRoadmapVote as bd, searchSkills as be, setExternalAccountPrimary as bf, unfollowUser as bg, unhideOrcidPublication as bh, unhideProfileItem as bi, unhideSifaPublication as bj, unhideStandardPublication as bk, unsetExternalAccountPrimary as bl, updateExternalAccount as bm, updateProfileLocation as bn, updateProfileOverride as bo, updateProfileSelf as bp, uploadAvatar as bq, verifyExternalAccount as br, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyRoadmapVotesOptions as t, type FetchReactionStatusOptions as u, type FetchSuggestionsOptions as v, type FilterOptions as w, type FollowListPage as x, type FollowProfile as y, type FollowProfilePageResponse as z };
1159
+ /** How a single entity binding was resolved during a claim. */
1160
+ interface OrgClaimBinding {
1161
+ entityId: number;
1162
+ entityRef: string;
1163
+ validatedBy: string | null;
1164
+ status: 'active' | 'pending';
1165
+ dissolved: boolean;
1166
+ }
1167
+ /** The public org-profile echo returned by claim / update endpoints (no `contact`). */
1168
+ interface OrgProfileEcho {
1169
+ name: string;
1170
+ description: string | null;
1171
+ website: string | null;
1172
+ entityRefs: string[];
1173
+ }
1174
+ /** Response body of `POST /api/org/claim`. */
1175
+ interface OrgClaimResult {
1176
+ orgDid: string;
1177
+ status: 'active' | 'review';
1178
+ bindings: OrgClaimBinding[];
1179
+ orgProfile: OrgProfileEcho;
1180
+ }
1181
+ /** Response body of `PUT /api/org/profile`. */
1182
+ interface OrgProfileUpdateResult {
1183
+ ok: boolean;
1184
+ orgProfile: OrgProfileEcho;
1185
+ }
1186
+ /** Response body of `POST /api/org/domains/challenge`. */
1187
+ interface OrgDomainChallengeResult {
1188
+ domain: string;
1189
+ txtRecordName: string;
1190
+ txtRecordValue: string;
1191
+ }
1192
+ /** Response body of `POST /api/org/domains/verify` (happy path). */
1193
+ interface OrgDomainVerifyResult {
1194
+ status: 'verified' | 'pending';
1195
+ domain: string;
1196
+ }
1197
+ /** Response body of `POST /api/org/notification-emails`. */
1198
+ interface OrgNotificationEmailAddResult {
1199
+ ok: boolean;
1200
+ status: string;
1201
+ }
1202
+ /** Response body of `DELETE /api/org/notification-emails`. */
1203
+ interface OrgNotificationEmailRemoveResult {
1204
+ ok: boolean;
1205
+ removed: number;
1206
+ }
1207
+ /**
1208
+ * Finalize an org profile claim (`POST /api/org/claim`). Auth-gated (org-claim
1209
+ * JIT scope) and floor-checked server-side. Never throws -- returns the
1210
+ * structured {@link OrgClaimResult} folded into a {@link WriteResult} on success,
1211
+ * or `{ success: false, error, pdsHost? }` on failure.
1212
+ */
1213
+ declare function submitOrgClaim(config: SifaApiConfig, body: OrgClaimRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgClaimResult>>;
1214
+ /**
1215
+ * Edit the org record (`PUT /api/org/profile`). Fresh-from-body server-side PUT
1216
+ * (a cleared optional field is dropped, no spread-merge). Never throws.
1217
+ */
1218
+ declare function updateOrgProfile(config: SifaApiConfig, body: OrgProfileUpdateRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgProfileUpdateResult>>;
1219
+ /**
1220
+ * Issue a one-time DNS TXT domain challenge (`POST /api/org/domains/challenge`).
1221
+ * Returns the TXT record name + value the org must publish. Never throws.
1222
+ */
1223
+ declare function requestOrgDomainChallenge(config: SifaApiConfig, body: OrgDomainChallengeRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgDomainChallengeResult>>;
1224
+ /**
1225
+ * Verify a DNS TXT domain challenge (`POST /api/org/domains/verify`). On success
1226
+ * `status` is `verified` or `pending`. Expired / confusable / not-found map to
1227
+ * non-2xx server responses and surface as `{ success: false, error }`. Never
1228
+ * throws.
1229
+ */
1230
+ declare function verifyOrgDomain(config: SifaApiConfig, body: OrgDomainVerifyRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgDomainVerifyResult>>;
1231
+ /**
1232
+ * Add an org notification email (`POST /api/org/notification-emails`). The
1233
+ * address must use a domain the org controls (checked server-side). An
1234
+ * individual verification email is enqueued through the (dormant) sending
1235
+ * pipeline. Never throws.
1236
+ */
1237
+ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailAddResult>>;
1238
+ /**
1239
+ * Remove an org notification email (`DELETE /api/org/notification-emails`).
1240
+ * Never throws.
1241
+ */
1242
+ declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1243
+
1244
+ export { type ProfileIndustryInput as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CastRoadmapVoteResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FollowUserResult as G, type FollowingResponse as H, HIDDEN_ITEM_SOURCES as I, HIDDEN_ITEM_TYPES as J, type HeatmapDay as K, type HeatmapResponse as L, type HiddenApp as M, type HiddenItemSource as N, type HiddenItemType as O, type HideProfileItemInput as P, type ListFeatureAllowlistOptions as Q, type OrgClaimBinding as R, type SifaApiConfig as S, type OrgClaimResult as T, type OrgDomainChallengeResult as U, type OrgDomainVerifyResult as V, type WriteResult as W, type OrgNotificationEmailAddResult as X, type OrgNotificationEmailRemoveResult as Y, type OrgProfileEcho as Z, type OrgProfileUpdateResult as _, type AccountCheckResult as a, fetchSearchFilters as a$, type ProfileLocationAddress as a0, type ProfileLocationInput as a1, type ProfileSearchResult as a2, type ProfileSelfLocation as a3, QUOTED_POSTS_BATCH_MAX as a4, type QuotedPostAuthor as a5, type QuotedPostImage as a6, type QuotedPostResult as a7, type QuotedPostView as a8, type ReactionError as a9, apiWriteCreate as aA, bulkHideProfileItems as aB, bulkHideStandardPublications as aC, bulkUnhideProfileItems as aD, bulkUnhideStandardPublications as aE, castRoadmapVote as aF, checkAppAccount as aG, createEndorsement as aH, createExternalAccount as aI, createProfileLocation as aJ, createReaction as aK, deleteAccount as aL, deleteAvatarOverride as aM, deleteExternalAccount as aN, deleteProfileLocation as aO, deleteReaction as aP, fetchActivityFeed as aQ, fetchActivityTeaser as aR, fetchAppsRegistry as aS, fetchExternalAccounts as aT, fetchFeaturedProfile as aU, fetchFollowing as aV, fetchHeatmapData as aW, fetchHiddenApps as aX, fetchMyRoadmapVotes as aY, fetchReactionStatus as aZ, fetchRoadmapVotes as a_, type ReactionResult as aa, type ReactionStatus as ab, type RefreshOrcidPublicationsResult as ac, type RefreshPdsResult as ad, type ResolveQuotedPostsOptions as ae, type RoadmapVoteError as af, type RoadmapVoteResult as ag, type RoadmapVoter as ah, type RoadmapVotesResponse as ai, type SearchFilters as aj, type SearchResponse as ak, type SifaQueryKey as al, type SimilarProfile as am, type SkillSearchResult as an, type StatsResponse as ao, type SuggestionProfile as ap, type SuggestionsResponse as aq, type UpdateProfileOverrideInput as ar, type UpdateProfileSelfInput as as, type UploadAvatarResult as at, type VerifyExternalAccountResult as au, addFeatureAllowlist as av, addOrgNotificationEmail as aw, apiFetch as ax, apiFetchOrNull as ay, apiWrite as az, type ActivityFeedResponse as b, fetchSearchProfiles as b0, fetchSimilarProfiles as b1, fetchSkillSuggestions as b2, fetchStats as b3, fetchSuggestionCount as b4, fetchSuggestions as b5, followUser as b6, getBlueskySuggestions as b7, getFollowers as b8, getFollowing as b9, updateProfileLocation as bA, updateProfileOverride as bB, updateProfileSelf as bC, uploadAvatar as bD, verifyExternalAccount as bE, verifyOrgDomain as bF, getFollowingFeed as ba, getMutuals as bb, hideOrcidPublication as bc, hideProfileItem as bd, hideSifaPublication as be, hideStandardPublication as bf, listFeatureAllowlist as bg, refreshOrcidPublications as bh, refreshPds as bi, removeFeatureAllowlist as bj, removeOrgNotificationEmail as bk, requestOrgDomainChallenge as bl, resetProfile as bm, resolveQuotedPosts as bn, retractRoadmapVote as bo, searchSkills as bp, setExternalAccountPrimary as bq, submitOrgClaim as br, unfollowUser as bs, unhideOrcidPublication as bt, unhideProfileItem as bu, unhideSifaPublication as bv, unhideStandardPublication as bw, unsetExternalAccountPrimary as bx, updateExternalAccount as by, updateOrgProfile as bz, type ActivityItem as c, type ActivityItemLinkHealth as d, type ActivityTeaserResponse as e, ApiError as f, type AppRegistryEntry as g, type CheckAppAccountOptions as h, type CreateExternalAccountResult as i, type CreateResult as j, type ExternalAccountInput as k, type FeaturedProfile as l, type FetchActivityFeedOptions as m, type FetchActivityTeaserOptions as n, type FetchFollowListOptions as o, type FetchFollowProfilePageOptions as p, type FetchFollowingFeedOptions as q, type FetchHiddenAppsOptions as r, sifaQueryKeys as s, type FetchMyRoadmapVotesOptions as t, type FetchReactionStatusOptions as u, type FetchSuggestionsOptions as v, type FilterOptions as w, type FollowListPage as x, type FollowProfile as y, type FollowProfilePageResponse as z };
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Body accepted by `POST /api/org/claim` (the org claim wizard finalize).
5
+ *
6
+ * Mirrors `claimBodySchema` in sifa-api `src/routes/org-claim.ts` EXACTLY: the
7
+ * editable profile fields plus `entityRefs` (at least one -- a claim without a
8
+ * binding renders but aggregates nothing) and the `authorityAck` checkbox
9
+ * (`literal(true)` -- the logged "I am authorized to represent this org"
10
+ * assertion). `logo`/`createdAt` are NOT part of the claim body (the endpoint
11
+ * sets `createdAt` server-side and the logo is uploaded separately).
12
+ */
13
+ declare const OrgClaimRequestSchema: z.ZodObject<{
14
+ name: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ website: z.ZodOptional<z.ZodString>;
17
+ contact: z.ZodOptional<z.ZodString>;
18
+ entityRefs: z.ZodArray<z.ZodString>;
19
+ authorityAck: z.ZodLiteral<true>;
20
+ }, z.core.$strip>;
21
+ type OrgClaimRequestInput = z.infer<typeof OrgClaimRequestSchema>;
22
+
23
+ /**
24
+ * Body accepted by `PUT /api/org/profile` (edit the org record).
25
+ *
26
+ * Mirrors `profileBodySchema` in sifa-api `src/routes/org-settings.ts` EXACTLY.
27
+ * Distinct from {@link OrgClaimRequestSchema}: no `authorityAck` (already
28
+ * asserted at claim time), and an optional `logo` blob ref (a cleared field is
29
+ * omitted, driving the fresh-from-body PDS PUT -- no spread-merge).
30
+ */
31
+ declare const OrgProfileUpdateRequestSchema: z.ZodObject<{
32
+ name: z.ZodString;
33
+ description: z.ZodOptional<z.ZodString>;
34
+ website: z.ZodOptional<z.ZodString>;
35
+ contact: z.ZodOptional<z.ZodString>;
36
+ entityRefs: z.ZodArray<z.ZodString>;
37
+ logo: z.ZodOptional<z.ZodObject<{
38
+ $type: z.ZodLiteral<"blob">;
39
+ ref: z.ZodObject<{
40
+ $link: z.ZodString;
41
+ }, z.core.$strip>;
42
+ mimeType: z.ZodString;
43
+ size: z.ZodNumber;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ type OrgProfileUpdateRequestInput = z.infer<typeof OrgProfileUpdateRequestSchema>;
47
+ /**
48
+ * Body accepted by `POST /api/org/domains/challenge` (issue a one-time DNS TXT
49
+ * challenge). Mirrors `challengeBodySchema` in sifa-api.
50
+ */
51
+ declare const OrgDomainChallengeRequestSchema: z.ZodObject<{
52
+ domain: z.ZodString;
53
+ }, z.core.$strip>;
54
+ type OrgDomainChallengeRequestInput = z.infer<typeof OrgDomainChallengeRequestSchema>;
55
+ /**
56
+ * Body accepted by `POST /api/org/domains/verify` (verify a challenge via DoH
57
+ * TXT lookup). Mirrors `verifyBodySchema` in sifa-api.
58
+ */
59
+ declare const OrgDomainVerifyRequestSchema: z.ZodObject<{
60
+ token: z.ZodString;
61
+ }, z.core.$strip>;
62
+ type OrgDomainVerifyRequestInput = z.infer<typeof OrgDomainVerifyRequestSchema>;
63
+ /**
64
+ * Body accepted by `POST` and `DELETE /api/org/notification-emails` (add /
65
+ * remove a notification address). Mirrors `notificationEmailBodySchema` in
66
+ * sifa-api. The bound-domain check is server-side (the address must use a
67
+ * domain the org controls).
68
+ */
69
+ declare const OrgNotificationEmailRequestSchema: z.ZodObject<{
70
+ email: z.ZodString;
71
+ }, z.core.$strip>;
72
+ type OrgNotificationEmailRequestInput = z.infer<typeof OrgNotificationEmailRequestSchema>;
73
+
74
+ export { type OrgClaimRequestInput as O, OrgClaimRequestSchema as a, type OrgDomainChallengeRequestInput as b, OrgDomainChallengeRequestSchema as c, type OrgDomainVerifyRequestInput as d, OrgDomainVerifyRequestSchema as e, type OrgNotificationEmailRequestInput as f, OrgNotificationEmailRequestSchema as g, type OrgProfileUpdateRequestInput as h, OrgProfileUpdateRequestSchema as i };
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Body accepted by `POST /api/org/claim` (the org claim wizard finalize).
5
+ *
6
+ * Mirrors `claimBodySchema` in sifa-api `src/routes/org-claim.ts` EXACTLY: the
7
+ * editable profile fields plus `entityRefs` (at least one -- a claim without a
8
+ * binding renders but aggregates nothing) and the `authorityAck` checkbox
9
+ * (`literal(true)` -- the logged "I am authorized to represent this org"
10
+ * assertion). `logo`/`createdAt` are NOT part of the claim body (the endpoint
11
+ * sets `createdAt` server-side and the logo is uploaded separately).
12
+ */
13
+ declare const OrgClaimRequestSchema: z.ZodObject<{
14
+ name: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ website: z.ZodOptional<z.ZodString>;
17
+ contact: z.ZodOptional<z.ZodString>;
18
+ entityRefs: z.ZodArray<z.ZodString>;
19
+ authorityAck: z.ZodLiteral<true>;
20
+ }, z.core.$strip>;
21
+ type OrgClaimRequestInput = z.infer<typeof OrgClaimRequestSchema>;
22
+
23
+ /**
24
+ * Body accepted by `PUT /api/org/profile` (edit the org record).
25
+ *
26
+ * Mirrors `profileBodySchema` in sifa-api `src/routes/org-settings.ts` EXACTLY.
27
+ * Distinct from {@link OrgClaimRequestSchema}: no `authorityAck` (already
28
+ * asserted at claim time), and an optional `logo` blob ref (a cleared field is
29
+ * omitted, driving the fresh-from-body PDS PUT -- no spread-merge).
30
+ */
31
+ declare const OrgProfileUpdateRequestSchema: z.ZodObject<{
32
+ name: z.ZodString;
33
+ description: z.ZodOptional<z.ZodString>;
34
+ website: z.ZodOptional<z.ZodString>;
35
+ contact: z.ZodOptional<z.ZodString>;
36
+ entityRefs: z.ZodArray<z.ZodString>;
37
+ logo: z.ZodOptional<z.ZodObject<{
38
+ $type: z.ZodLiteral<"blob">;
39
+ ref: z.ZodObject<{
40
+ $link: z.ZodString;
41
+ }, z.core.$strip>;
42
+ mimeType: z.ZodString;
43
+ size: z.ZodNumber;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ type OrgProfileUpdateRequestInput = z.infer<typeof OrgProfileUpdateRequestSchema>;
47
+ /**
48
+ * Body accepted by `POST /api/org/domains/challenge` (issue a one-time DNS TXT
49
+ * challenge). Mirrors `challengeBodySchema` in sifa-api.
50
+ */
51
+ declare const OrgDomainChallengeRequestSchema: z.ZodObject<{
52
+ domain: z.ZodString;
53
+ }, z.core.$strip>;
54
+ type OrgDomainChallengeRequestInput = z.infer<typeof OrgDomainChallengeRequestSchema>;
55
+ /**
56
+ * Body accepted by `POST /api/org/domains/verify` (verify a challenge via DoH
57
+ * TXT lookup). Mirrors `verifyBodySchema` in sifa-api.
58
+ */
59
+ declare const OrgDomainVerifyRequestSchema: z.ZodObject<{
60
+ token: z.ZodString;
61
+ }, z.core.$strip>;
62
+ type OrgDomainVerifyRequestInput = z.infer<typeof OrgDomainVerifyRequestSchema>;
63
+ /**
64
+ * Body accepted by `POST` and `DELETE /api/org/notification-emails` (add /
65
+ * remove a notification address). Mirrors `notificationEmailBodySchema` in
66
+ * sifa-api. The bound-domain check is server-side (the address must use a
67
+ * domain the org controls).
68
+ */
69
+ declare const OrgNotificationEmailRequestSchema: z.ZodObject<{
70
+ email: z.ZodString;
71
+ }, z.core.$strip>;
72
+ type OrgNotificationEmailRequestInput = z.infer<typeof OrgNotificationEmailRequestSchema>;
73
+
74
+ export { type OrgClaimRequestInput as O, OrgClaimRequestSchema as a, type OrgDomainChallengeRequestInput as b, OrgDomainChallengeRequestSchema as c, type OrgDomainVerifyRequestInput as d, OrgDomainVerifyRequestSchema as e, type OrgNotificationEmailRequestInput as f, OrgNotificationEmailRequestSchema as g, type OrgProfileUpdateRequestInput as h, OrgProfileUpdateRequestSchema as i };
@@ -1181,6 +1181,45 @@ async function importSearchEntities(config, query, options = {}) {
1181
1181
  return EntityImportSearchResponseSchema.parse(data).results;
1182
1182
  }
1183
1183
 
1184
+ // src/query/fetchers/org.ts
1185
+ function submitOrgClaim(config, body, options = {}) {
1186
+ return apiWrite(config, "/api/org/claim", "POST", { body, ...options });
1187
+ }
1188
+ function updateOrgProfile(config, body, options = {}) {
1189
+ return apiWrite(config, "/api/org/profile", "PUT", {
1190
+ body,
1191
+ ...options
1192
+ });
1193
+ }
1194
+ function requestOrgDomainChallenge(config, body, options = {}) {
1195
+ return apiWrite(config, "/api/org/domains/challenge", "POST", {
1196
+ body,
1197
+ ...options
1198
+ });
1199
+ }
1200
+ function verifyOrgDomain(config, body, options = {}) {
1201
+ return apiWrite(config, "/api/org/domains/verify", "POST", {
1202
+ body,
1203
+ ...options
1204
+ });
1205
+ }
1206
+ function addOrgNotificationEmail(config, body, options = {}) {
1207
+ return apiWrite(
1208
+ config,
1209
+ "/api/org/notification-emails",
1210
+ "POST",
1211
+ { body, ...options }
1212
+ );
1213
+ }
1214
+ function removeOrgNotificationEmail(config, body, options = {}) {
1215
+ return apiWrite(
1216
+ config,
1217
+ "/api/org/notification-emails",
1218
+ "DELETE",
1219
+ { body, ...options }
1220
+ );
1221
+ }
1222
+
1184
1223
  // src/query/keys.ts
1185
1224
  var sifaQueryKeys = {
1186
1225
  all: () => ["sifa"],
@@ -1269,6 +1308,7 @@ exports.HIDDEN_ITEM_SOURCES = HIDDEN_ITEM_SOURCES;
1269
1308
  exports.HIDDEN_ITEM_TYPES = HIDDEN_ITEM_TYPES;
1270
1309
  exports.QUOTED_POSTS_BATCH_MAX = QUOTED_POSTS_BATCH_MAX;
1271
1310
  exports.addFeatureAllowlist = addFeatureAllowlist;
1311
+ exports.addOrgNotificationEmail = addOrgNotificationEmail;
1272
1312
  exports.apiFetch = apiFetch;
1273
1313
  exports.apiFetchOrNull = apiFetchOrNull;
1274
1314
  exports.apiWrite = apiWrite;
@@ -1340,6 +1380,8 @@ exports.listFeatureAllowlist = listFeatureAllowlist;
1340
1380
  exports.refreshOrcidPublications = refreshOrcidPublications;
1341
1381
  exports.refreshPds = refreshPds;
1342
1382
  exports.removeFeatureAllowlist = removeFeatureAllowlist;
1383
+ exports.removeOrgNotificationEmail = removeOrgNotificationEmail;
1384
+ exports.requestOrgDomainChallenge = requestOrgDomainChallenge;
1343
1385
  exports.resetProfile = resetProfile;
1344
1386
  exports.resolveQuotedPosts = resolveQuotedPosts;
1345
1387
  exports.retractRoadmapVote = retractRoadmapVote;
@@ -1349,6 +1391,7 @@ exports.selectEntity = selectEntity;
1349
1391
  exports.setExternalAccountPrimary = setExternalAccountPrimary;
1350
1392
  exports.setPositionPrimary = setPositionPrimary;
1351
1393
  exports.sifaQueryKeys = sifaQueryKeys;
1394
+ exports.submitOrgClaim = submitOrgClaim;
1352
1395
  exports.unfollowUser = unfollowUser;
1353
1396
  exports.unhideKeytraceClaim = unhideKeytraceClaim;
1354
1397
  exports.unhideOrcidPublication = unhideOrcidPublication;
@@ -1361,6 +1404,7 @@ exports.unsetExternalAccountPrimary = unsetExternalAccountPrimary;
1361
1404
  exports.unsetPositionPrimary = unsetPositionPrimary;
1362
1405
  exports.updateEducation = updateEducation;
1363
1406
  exports.updateExternalAccount = updateExternalAccount;
1407
+ exports.updateOrgProfile = updateOrgProfile;
1364
1408
  exports.updatePosition = updatePosition;
1365
1409
  exports.updateProfileLocation = updateProfileLocation;
1366
1410
  exports.updateProfileOverride = updateProfileOverride;
@@ -1369,5 +1413,6 @@ exports.updateRecord = updateRecord;
1369
1413
  exports.updateSkill = updateSkill;
1370
1414
  exports.uploadAvatar = uploadAvatar;
1371
1415
  exports.verifyExternalAccount = verifyExternalAccount;
1416
+ exports.verifyOrgDomain = verifyOrgDomain;
1372
1417
  //# sourceMappingURL=index.cjs.map
1373
1418
  //# sourceMappingURL=index.cjs.map