@singi-labs/sifa-sdk 0.12.3 → 0.12.5

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-BOY_T6j3.d.cts} +295 -1
  2. package/dist/{adult-content-DDGP8W1e.d.ts → adult-content-BOY_T6j3.d.ts} +295 -1
  3. package/dist/{index-CNh-GI9A.d.cts → index-BJV2XHOP.d.cts} +16 -3
  4. package/dist/{index-IMvNS08M.d.ts → index-C1SIpwOj.d.ts} +16 -3
  5. package/dist/{index-iAzeLOcz.d.ts → index-m5MELVUQ.d.ts} +95 -3
  6. package/dist/{index-BS7zO7KI.d.cts → index-xcu81B4E.d.cts} +95 -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-Bn36IA8Q.d.cts → org-92bvwL8H.d.cts} +89 -2
  14. package/dist/{keys-5oyp950_.d.ts → org-Bxz__jbx.d.ts} +89 -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 +60 -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 +54 -1
  22. package/dist/query/fetchers/index.js.map +1 -1
  23. package/dist/query/hooks/index.cjs +144 -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 +137 -1
  28. package/dist/query/hooks/index.js.map +1 -1
  29. package/dist/query/index.cjs +147 -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 +133 -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 +36 -0
  42. package/dist/schemas/write/index.cjs.map +1 -1
  43. package/dist/schemas/write/index.d.cts +1 -0
  44. package/dist/schemas/write/index.d.ts +1 -0
  45. package/dist/schemas/write/index.js +32 -1
  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.cjs';
1
+ import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-BOY_T6j3.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.
@@ -1078,6 +1079,7 @@ declare const sifaQueryKeys: {
1078
1079
  readonly all: () => readonly ["sifa", "profile"];
1079
1080
  readonly byHandle: (handleOrDid: string) => readonly ["sifa", "profile", string];
1080
1081
  readonly atFundLink: (did: string) => readonly ["sifa", "profile", "at-fund-link", string];
1082
+ readonly view: (actor: string) => readonly ["sifa", "profile", "view", string];
1081
1083
  readonly externalAccounts: (handleOrDid: string) => readonly ["sifa", "profile", "external-accounts", string];
1082
1084
  };
1083
1085
  readonly position: {
@@ -1155,4 +1157,89 @@ declare const sifaQueryKeys: {
1155
1157
  };
1156
1158
  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
1159
 
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 };
1160
+ /** How a single entity binding was resolved during a claim. */
1161
+ interface OrgClaimBinding {
1162
+ entityId: number;
1163
+ entityRef: string;
1164
+ validatedBy: string | null;
1165
+ status: 'active' | 'pending';
1166
+ dissolved: boolean;
1167
+ }
1168
+ /** The public org-profile echo returned by claim / update endpoints (no `contact`). */
1169
+ interface OrgProfileEcho {
1170
+ name: string;
1171
+ description: string | null;
1172
+ website: string | null;
1173
+ entityRefs: string[];
1174
+ }
1175
+ /** Response body of `POST /api/org/claim`. */
1176
+ interface OrgClaimResult {
1177
+ orgDid: string;
1178
+ status: 'active' | 'review';
1179
+ bindings: OrgClaimBinding[];
1180
+ orgProfile: OrgProfileEcho;
1181
+ }
1182
+ /** Response body of `PUT /api/org/profile`. */
1183
+ interface OrgProfileUpdateResult {
1184
+ ok: boolean;
1185
+ orgProfile: OrgProfileEcho;
1186
+ }
1187
+ /** Response body of `POST /api/org/domains/challenge`. */
1188
+ interface OrgDomainChallengeResult {
1189
+ domain: string;
1190
+ txtRecordName: string;
1191
+ txtRecordValue: string;
1192
+ }
1193
+ /** Response body of `POST /api/org/domains/verify` (happy path). */
1194
+ interface OrgDomainVerifyResult {
1195
+ status: 'verified' | 'pending';
1196
+ domain: string;
1197
+ }
1198
+ /** Response body of `POST /api/org/notification-emails`. */
1199
+ interface OrgNotificationEmailAddResult {
1200
+ ok: boolean;
1201
+ status: string;
1202
+ }
1203
+ /** Response body of `DELETE /api/org/notification-emails`. */
1204
+ interface OrgNotificationEmailRemoveResult {
1205
+ ok: boolean;
1206
+ removed: number;
1207
+ }
1208
+ /**
1209
+ * Finalize an org profile claim (`POST /api/org/claim`). Auth-gated (org-claim
1210
+ * JIT scope) and floor-checked server-side. Never throws -- returns the
1211
+ * structured {@link OrgClaimResult} folded into a {@link WriteResult} on success,
1212
+ * or `{ success: false, error, pdsHost? }` on failure.
1213
+ */
1214
+ declare function submitOrgClaim(config: SifaApiConfig, body: OrgClaimRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgClaimResult>>;
1215
+ /**
1216
+ * Edit the org record (`PUT /api/org/profile`). Fresh-from-body server-side PUT
1217
+ * (a cleared optional field is dropped, no spread-merge). Never throws.
1218
+ */
1219
+ declare function updateOrgProfile(config: SifaApiConfig, body: OrgProfileUpdateRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgProfileUpdateResult>>;
1220
+ /**
1221
+ * Issue a one-time DNS TXT domain challenge (`POST /api/org/domains/challenge`).
1222
+ * Returns the TXT record name + value the org must publish. Never throws.
1223
+ */
1224
+ declare function requestOrgDomainChallenge(config: SifaApiConfig, body: OrgDomainChallengeRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgDomainChallengeResult>>;
1225
+ /**
1226
+ * Verify a DNS TXT domain challenge (`POST /api/org/domains/verify`). On success
1227
+ * `status` is `verified` or `pending`. Expired / confusable / not-found map to
1228
+ * non-2xx server responses and surface as `{ success: false, error }`. Never
1229
+ * throws.
1230
+ */
1231
+ declare function verifyOrgDomain(config: SifaApiConfig, body: OrgDomainVerifyRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgDomainVerifyResult>>;
1232
+ /**
1233
+ * Add an org notification email (`POST /api/org/notification-emails`). The
1234
+ * address must use a domain the org controls (checked server-side). An
1235
+ * individual verification email is enqueued through the (dormant) sending
1236
+ * pipeline. Never throws.
1237
+ */
1238
+ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailAddResult>>;
1239
+ /**
1240
+ * Remove an org notification email (`DELETE /api/org/notification-emails`).
1241
+ * Never throws.
1242
+ */
1243
+ declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1244
+
1245
+ 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.js';
1
+ import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-BOY_T6j3.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.
@@ -1078,6 +1079,7 @@ declare const sifaQueryKeys: {
1078
1079
  readonly all: () => readonly ["sifa", "profile"];
1079
1080
  readonly byHandle: (handleOrDid: string) => readonly ["sifa", "profile", string];
1080
1081
  readonly atFundLink: (did: string) => readonly ["sifa", "profile", "at-fund-link", string];
1082
+ readonly view: (actor: string) => readonly ["sifa", "profile", "view", string];
1081
1083
  readonly externalAccounts: (handleOrDid: string) => readonly ["sifa", "profile", "external-accounts", string];
1082
1084
  };
1083
1085
  readonly position: {
@@ -1155,4 +1157,89 @@ declare const sifaQueryKeys: {
1155
1157
  };
1156
1158
  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
1159
 
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 };
1160
+ /** How a single entity binding was resolved during a claim. */
1161
+ interface OrgClaimBinding {
1162
+ entityId: number;
1163
+ entityRef: string;
1164
+ validatedBy: string | null;
1165
+ status: 'active' | 'pending';
1166
+ dissolved: boolean;
1167
+ }
1168
+ /** The public org-profile echo returned by claim / update endpoints (no `contact`). */
1169
+ interface OrgProfileEcho {
1170
+ name: string;
1171
+ description: string | null;
1172
+ website: string | null;
1173
+ entityRefs: string[];
1174
+ }
1175
+ /** Response body of `POST /api/org/claim`. */
1176
+ interface OrgClaimResult {
1177
+ orgDid: string;
1178
+ status: 'active' | 'review';
1179
+ bindings: OrgClaimBinding[];
1180
+ orgProfile: OrgProfileEcho;
1181
+ }
1182
+ /** Response body of `PUT /api/org/profile`. */
1183
+ interface OrgProfileUpdateResult {
1184
+ ok: boolean;
1185
+ orgProfile: OrgProfileEcho;
1186
+ }
1187
+ /** Response body of `POST /api/org/domains/challenge`. */
1188
+ interface OrgDomainChallengeResult {
1189
+ domain: string;
1190
+ txtRecordName: string;
1191
+ txtRecordValue: string;
1192
+ }
1193
+ /** Response body of `POST /api/org/domains/verify` (happy path). */
1194
+ interface OrgDomainVerifyResult {
1195
+ status: 'verified' | 'pending';
1196
+ domain: string;
1197
+ }
1198
+ /** Response body of `POST /api/org/notification-emails`. */
1199
+ interface OrgNotificationEmailAddResult {
1200
+ ok: boolean;
1201
+ status: string;
1202
+ }
1203
+ /** Response body of `DELETE /api/org/notification-emails`. */
1204
+ interface OrgNotificationEmailRemoveResult {
1205
+ ok: boolean;
1206
+ removed: number;
1207
+ }
1208
+ /**
1209
+ * Finalize an org profile claim (`POST /api/org/claim`). Auth-gated (org-claim
1210
+ * JIT scope) and floor-checked server-side. Never throws -- returns the
1211
+ * structured {@link OrgClaimResult} folded into a {@link WriteResult} on success,
1212
+ * or `{ success: false, error, pdsHost? }` on failure.
1213
+ */
1214
+ declare function submitOrgClaim(config: SifaApiConfig, body: OrgClaimRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgClaimResult>>;
1215
+ /**
1216
+ * Edit the org record (`PUT /api/org/profile`). Fresh-from-body server-side PUT
1217
+ * (a cleared optional field is dropped, no spread-merge). Never throws.
1218
+ */
1219
+ declare function updateOrgProfile(config: SifaApiConfig, body: OrgProfileUpdateRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgProfileUpdateResult>>;
1220
+ /**
1221
+ * Issue a one-time DNS TXT domain challenge (`POST /api/org/domains/challenge`).
1222
+ * Returns the TXT record name + value the org must publish. Never throws.
1223
+ */
1224
+ declare function requestOrgDomainChallenge(config: SifaApiConfig, body: OrgDomainChallengeRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgDomainChallengeResult>>;
1225
+ /**
1226
+ * Verify a DNS TXT domain challenge (`POST /api/org/domains/verify`). On success
1227
+ * `status` is `verified` or `pending`. Expired / confusable / not-found map to
1228
+ * non-2xx server responses and surface as `{ success: false, error }`. Never
1229
+ * throws.
1230
+ */
1231
+ declare function verifyOrgDomain(config: SifaApiConfig, body: OrgDomainVerifyRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgDomainVerifyResult>>;
1232
+ /**
1233
+ * Add an org notification email (`POST /api/org/notification-emails`). The
1234
+ * address must use a domain the org controls (checked server-side). An
1235
+ * individual verification email is enqueued through the (dormant) sending
1236
+ * pipeline. Never throws.
1237
+ */
1238
+ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailAddResult>>;
1239
+ /**
1240
+ * Remove an org notification email (`DELETE /api/org/notification-emails`).
1241
+ * Never throws.
1242
+ */
1243
+ declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
1244
+
1245
+ 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 };
@@ -132,6 +132,19 @@ async function fetchAtFundLink(config, did, options = {}) {
132
132
  }
133
133
  }
134
134
 
135
+ // src/query/fetchers/get-profile-view.ts
136
+ async function fetchGetProfileView(config, actor, options = {}) {
137
+ const path = `/xrpc/id.sifa.getProfileView?actor=${encodeIdentifier(actor)}`;
138
+ try {
139
+ return await apiFetch(config, path, { retryOn429: true, ...options });
140
+ } catch (e) {
141
+ if (e instanceof ApiError && e.status === 400 && typeof e.body === "object" && e.body !== null && e.body.error === "ProfileNotFound") {
142
+ return null;
143
+ }
144
+ throw e;
145
+ }
146
+ }
147
+
135
148
  // src/query/fetchers/profile-mutations.ts
136
149
  function updateProfileSelf(config, data, options = {}) {
137
150
  return apiWrite(config, "/api/profile/self", "PUT", { body: data, ...options });
@@ -1181,6 +1194,45 @@ async function importSearchEntities(config, query, options = {}) {
1181
1194
  return EntityImportSearchResponseSchema.parse(data).results;
1182
1195
  }
1183
1196
 
1197
+ // src/query/fetchers/org.ts
1198
+ function submitOrgClaim(config, body, options = {}) {
1199
+ return apiWrite(config, "/api/org/claim", "POST", { body, ...options });
1200
+ }
1201
+ function updateOrgProfile(config, body, options = {}) {
1202
+ return apiWrite(config, "/api/org/profile", "PUT", {
1203
+ body,
1204
+ ...options
1205
+ });
1206
+ }
1207
+ function requestOrgDomainChallenge(config, body, options = {}) {
1208
+ return apiWrite(config, "/api/org/domains/challenge", "POST", {
1209
+ body,
1210
+ ...options
1211
+ });
1212
+ }
1213
+ function verifyOrgDomain(config, body, options = {}) {
1214
+ return apiWrite(config, "/api/org/domains/verify", "POST", {
1215
+ body,
1216
+ ...options
1217
+ });
1218
+ }
1219
+ function addOrgNotificationEmail(config, body, options = {}) {
1220
+ return apiWrite(
1221
+ config,
1222
+ "/api/org/notification-emails",
1223
+ "POST",
1224
+ { body, ...options }
1225
+ );
1226
+ }
1227
+ function removeOrgNotificationEmail(config, body, options = {}) {
1228
+ return apiWrite(
1229
+ config,
1230
+ "/api/org/notification-emails",
1231
+ "DELETE",
1232
+ { body, ...options }
1233
+ );
1234
+ }
1235
+
1184
1236
  // src/query/keys.ts
1185
1237
  var sifaQueryKeys = {
1186
1238
  all: () => ["sifa"],
@@ -1188,6 +1240,7 @@ var sifaQueryKeys = {
1188
1240
  all: () => ["sifa", "profile"],
1189
1241
  byHandle: (handleOrDid) => ["sifa", "profile", handleOrDid],
1190
1242
  atFundLink: (did) => ["sifa", "profile", "at-fund-link", did],
1243
+ view: (actor) => ["sifa", "profile", "view", actor],
1191
1244
  externalAccounts: (handleOrDid) => ["sifa", "profile", "external-accounts", handleOrDid]
1192
1245
  },
1193
1246
  position: {
@@ -1269,6 +1322,7 @@ exports.HIDDEN_ITEM_SOURCES = HIDDEN_ITEM_SOURCES;
1269
1322
  exports.HIDDEN_ITEM_TYPES = HIDDEN_ITEM_TYPES;
1270
1323
  exports.QUOTED_POSTS_BATCH_MAX = QUOTED_POSTS_BATCH_MAX;
1271
1324
  exports.addFeatureAllowlist = addFeatureAllowlist;
1325
+ exports.addOrgNotificationEmail = addOrgNotificationEmail;
1272
1326
  exports.apiFetch = apiFetch;
1273
1327
  exports.apiFetchOrNull = apiFetchOrNull;
1274
1328
  exports.apiWrite = apiWrite;
@@ -1306,6 +1360,7 @@ exports.fetchEntitySearch = fetchEntitySearch;
1306
1360
  exports.fetchExternalAccounts = fetchExternalAccounts;
1307
1361
  exports.fetchFeaturedProfile = fetchFeaturedProfile;
1308
1362
  exports.fetchFollowing = fetchFollowing;
1363
+ exports.fetchGetProfileView = fetchGetProfileView;
1309
1364
  exports.fetchHeatmapData = fetchHeatmapData;
1310
1365
  exports.fetchHiddenApps = fetchHiddenApps;
1311
1366
  exports.fetchMyRoadmapVotes = fetchMyRoadmapVotes;
@@ -1340,6 +1395,8 @@ exports.listFeatureAllowlist = listFeatureAllowlist;
1340
1395
  exports.refreshOrcidPublications = refreshOrcidPublications;
1341
1396
  exports.refreshPds = refreshPds;
1342
1397
  exports.removeFeatureAllowlist = removeFeatureAllowlist;
1398
+ exports.removeOrgNotificationEmail = removeOrgNotificationEmail;
1399
+ exports.requestOrgDomainChallenge = requestOrgDomainChallenge;
1343
1400
  exports.resetProfile = resetProfile;
1344
1401
  exports.resolveQuotedPosts = resolveQuotedPosts;
1345
1402
  exports.retractRoadmapVote = retractRoadmapVote;
@@ -1349,6 +1406,7 @@ exports.selectEntity = selectEntity;
1349
1406
  exports.setExternalAccountPrimary = setExternalAccountPrimary;
1350
1407
  exports.setPositionPrimary = setPositionPrimary;
1351
1408
  exports.sifaQueryKeys = sifaQueryKeys;
1409
+ exports.submitOrgClaim = submitOrgClaim;
1352
1410
  exports.unfollowUser = unfollowUser;
1353
1411
  exports.unhideKeytraceClaim = unhideKeytraceClaim;
1354
1412
  exports.unhideOrcidPublication = unhideOrcidPublication;
@@ -1361,6 +1419,7 @@ exports.unsetExternalAccountPrimary = unsetExternalAccountPrimary;
1361
1419
  exports.unsetPositionPrimary = unsetPositionPrimary;
1362
1420
  exports.updateEducation = updateEducation;
1363
1421
  exports.updateExternalAccount = updateExternalAccount;
1422
+ exports.updateOrgProfile = updateOrgProfile;
1364
1423
  exports.updatePosition = updatePosition;
1365
1424
  exports.updateProfileLocation = updateProfileLocation;
1366
1425
  exports.updateProfileOverride = updateProfileOverride;
@@ -1369,5 +1428,6 @@ exports.updateRecord = updateRecord;
1369
1428
  exports.updateSkill = updateSkill;
1370
1429
  exports.uploadAvatar = uploadAvatar;
1371
1430
  exports.verifyExternalAccount = verifyExternalAccount;
1431
+ exports.verifyOrgDomain = verifyOrgDomain;
1372
1432
  //# sourceMappingURL=index.cjs.map
1373
1433
  //# sourceMappingURL=index.cjs.map