@singi-labs/sifa-sdk 0.12.83 → 0.12.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-B0hFFPZ-.d.cts → index-jNyd5QP7.d.cts} +12 -0
- package/dist/{index-B0hFFPZ-.d.ts → index-jNyd5QP7.d.ts} +12 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.d.cts +1 -1
- package/dist/jsonld/index.d.ts +1 -1
- package/dist/{network-map-D4fSIGnS.d.ts → network-map-GfIVEYpr.d.ts} +4 -4
- package/dist/{network-map-DSs6hrPJ.d.cts → network-map-y6U7m-hX.d.cts} +4 -4
- package/dist/{org-CSEOW8H6.d.cts → org-ClDqS3CM.d.cts} +20 -3
- package/dist/{org-C6MV4vE6.d.ts → org-GlACA06R.d.ts} +20 -3
- package/dist/{profile-investment-C97ssnBV.d.cts → profile-investment-CmiQxk5C.d.cts} +1 -0
- package/dist/{profile-investment-C97ssnBV.d.ts → profile-investment-CmiQxk5C.d.ts} +1 -0
- package/dist/{profile-summary-BG-cvwtJ.d.ts → profile-summary-8fapqzHv.d.ts} +1 -1
- package/dist/{profile-summary-CA40DYqQ.d.cts → profile-summary-DY78IoL9.d.cts} +1 -1
- package/dist/query/fetchers/index.cjs +30 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +6 -6
- package/dist/query/fetchers/index.d.ts +6 -6
- package/dist/query/fetchers/index.js +29 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +62 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +5 -5
- package/dist/query/hooks/index.d.ts +5 -5
- package/dist/query/hooks/index.js +61 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +64 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/query/index.js +61 -1
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/index.cjs +1 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +1 -0
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +1 -0
- package/dist/schemas/write/index.d.ts +1 -0
- package/dist/schemas/write/index.js +1 -0
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/{types-Dbvf5D_Q.d.ts → types-8JaS6abh.d.ts} +1 -1
- package/dist/{types-CIWnMcKx.d.cts → types-8wAWvS-T.d.cts} +1 -1
- package/dist/{use-org-notification-emails-C1kpS75h.d.cts → use-org-notification-emails-B-oGiDHo.d.cts} +11 -4
- package/dist/{use-org-notification-emails-lL0SKnbt.d.ts → use-org-notification-emails-DGzW9MH6.d.ts} +11 -4
- package/package.json +1 -1
package/dist/jsonld/index.d.cts
CHANGED
package/dist/jsonld/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as Profile, d as ProfilePosition, S as SkillRef } from './index-
|
|
2
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
3
|
-
import { n as ProfileView } from './types-
|
|
4
|
-
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-
|
|
1
|
+
import { c as Profile, d as ProfilePosition, S as SkillRef } from './index-jNyd5QP7.js';
|
|
2
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-GlACA06R.js';
|
|
3
|
+
import { n as ProfileView } from './types-8JaS6abh.js';
|
|
4
|
+
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-8fapqzHv.js';
|
|
5
5
|
import { j as EntitySearchResponse, E as EntitySearchResult, d as EntityMintDomainResponse, h as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-BMm9Pkew.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as Profile, d as ProfilePosition, S as SkillRef } from './index-
|
|
2
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
3
|
-
import { n as ProfileView } from './types-
|
|
4
|
-
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-
|
|
1
|
+
import { c as Profile, d as ProfilePosition, S as SkillRef } from './index-jNyd5QP7.cjs';
|
|
2
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-ClDqS3CM.cjs';
|
|
3
|
+
import { n as ProfileView } from './types-8wAWvS-T.cjs';
|
|
4
|
+
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DY78IoL9.cjs';
|
|
5
5
|
import { j as EntitySearchResponse, E as EntitySearchResult, d as EntityMintDomainResponse, h as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-BMm9Pkew.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as ExternalAccount, Q as SkillSuggestion } from './index-
|
|
1
|
+
import { p as ExternalAccount, Q as SkillSuggestion } from './index-jNyd5QP7.cjs';
|
|
2
2
|
import { y as FollowFeedPage, B as FollowProfileItem, q as FeatureAllowlistEntry, s as FeatureFlag } from './feed-BMm9Pkew.cjs';
|
|
3
|
-
import { b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-
|
|
3
|
+
import { b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-8wAWvS-T.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-CZ_tmAYl.cjs';
|
|
6
6
|
|
|
@@ -142,6 +142,8 @@ interface UpdateProfileSelfInput {
|
|
|
142
142
|
givenName?: string;
|
|
143
143
|
/** Schema.org Person.familyName from id.sifa.profile.self.familyName. */
|
|
144
144
|
familyName?: string;
|
|
145
|
+
/** Free-form phonetic respelling of the name from id.sifa.profile.self.namePronunciation. */
|
|
146
|
+
namePronunciation?: string;
|
|
145
147
|
industries?: ProfileIndustryInput[];
|
|
146
148
|
location?: ProfileSelfLocation;
|
|
147
149
|
website?: string;
|
|
@@ -190,6 +192,21 @@ interface UploadAvatarResult extends WriteResult {
|
|
|
190
192
|
declare function uploadAvatar(config: SifaApiConfig, file: Blob, options?: ApiFetchOptions): Promise<UploadAvatarResult>;
|
|
191
193
|
/** Delete the authenticated user's avatar override (revert to PDS avatar). */
|
|
192
194
|
declare function deleteAvatarOverride(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
195
|
+
/** Extended result for {@link uploadNamePronunciationAudio}. */
|
|
196
|
+
interface UploadPronunciationAudioResult extends WriteResult {
|
|
197
|
+
/** Publicly accessible URL of the newly uploaded audio clip. */
|
|
198
|
+
url?: string;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Upload a name-pronunciation audio clip via `multipart/form-data`. Pass a
|
|
202
|
+
* `File` (browser) or any `Blob` (Expo, node). The SDK leaves `Content-Type`
|
|
203
|
+
* unset so the runtime sets the multipart boundary automatically.
|
|
204
|
+
*
|
|
205
|
+
* Never throws -- inspect `result.success` and `result.url`.
|
|
206
|
+
*/
|
|
207
|
+
declare function uploadNamePronunciationAudio(config: SifaApiConfig, file: Blob, options?: ApiFetchOptions): Promise<UploadPronunciationAudioResult>;
|
|
208
|
+
/** Delete the name-pronunciation audio clip from the user's profile. */
|
|
209
|
+
declare function deleteNamePronunciationAudio(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
193
210
|
|
|
194
211
|
/**
|
|
195
212
|
* Create a new `id.sifa.profile.skill` record on the authenticated
|
|
@@ -1658,4 +1675,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1658
1675
|
*/
|
|
1659
1676
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1660
1677
|
|
|
1661
|
-
export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a,
|
|
1678
|
+
export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a, createEndorsement as a$, type MyGithubPullRequestsResponse as a0, type OrgClaimBinding as a1, type OrgClaimResult as a2, type OrgDomainChallengeResult as a3, type OrgDomainVerifyResult as a4, type OrgNotificationEmailAddResult as a5, type OrgNotificationEmailRemoveResult as a6, type OrgProfileEcho as a7, type OrgProfileUpdateResult as a8, type PdsWipeOutcome as a9, type SifaQueryKey as aA, type SimilarProfile as aB, type SkillSearchResult as aC, type StatsResponse as aD, type SubCategoryBulkResult as aE, type SuggestionProfile as aF, type SuggestionsResponse as aG, type UpdateProfileOverrideInput as aH, type UpdateProfileSelfInput as aI, type UploadAvatarResult as aJ, type UploadPronunciationAudioResult as aK, type VerifyExternalAccountResult as aL, type WipePreview as aM, addFeatureAllowlist as aN, addOrgNotificationEmail as aO, apiFetch as aP, apiFetchOrNull as aQ, apiWrite as aR, apiWriteCreate as aS, bulkHideProfileItems as aT, bulkHideStandardPublications as aU, bulkUnhideProfileItems as aV, bulkUnhideStandardPublications as aW, castRoadmapVote as aX, checkAppAccount as aY, confirmEndorsement as aZ, createConfirmation as a_, type PendingConfirmation as aa, type PendingConfirmationsPage as ab, type ProfileIndustryInput as ac, type ProfileLocationAddress as ad, type ProfileLocationInput as ae, type ProfileSearchResult as af, type ProfileSelfLocation as ag, QUOTED_POSTS_BATCH_MAX as ah, type QuotedPostAuthor as ai, type QuotedPostImage as aj, type QuotedPostResult as ak, type QuotedPostView as al, type ReactionError as am, type ReactionResult as an, type ReactionStatus as ao, type RefreshOrcidPublicationsResult as ap, type RefreshPdsResult as aq, type RepoDeleteInput as ar, type ResetProfileResult as as, type ResolveQuotedPostsOptions as at, type RoadmapVoteError as au, type RoadmapVoteResult as av, type RoadmapVoter as aw, type RoadmapVotesResponse as ax, type SearchFilters as ay, type SearchResponse as az, type ConfirmEndorsementResult as b, unhideProfileItem as b$, createExternalAccount as b0, createProfileLocation as b1, createReaction as b2, createSkill as b3, deleteAccount as b4, deleteAvatarOverride as b5, deleteExternalAccount as b6, deleteNamePronunciationAudio as b7, deleteProfileLocation as b8, deleteReaction as b9, followUser as bA, getAdminReviewQueues as bB, getBlueskySuggestions as bC, getFollowers as bD, getFollowing as bE, getFollowingFeed as bF, getMutuals as bG, hideOrcidPublication as bH, hideProfileItem as bI, hideSifaPublication as bJ, hideStandardPublication as bK, listFeatureAllowlist as bL, refreshOrcidPublications as bM, refreshPds as bN, removeFeatureAllowlist as bO, removeOrgNotificationEmail as bP, repoExportUrl as bQ, requestOrgDomainChallenge as bR, resetProfile as bS, resolveQuotedPosts as bT, retractRoadmapVote as bU, revokeConfirmation as bV, searchSkills as bW, setExternalAccountPrimary as bX, submitOrgClaim as bY, unfollowUser as bZ, unhideOrcidPublication as b_, deleteRepoRecords as ba, deleteSkill as bb, dismissConfirmation as bc, fetchActivityFeed as bd, fetchActivityTeaser as be, fetchAppsRegistry as bf, fetchExternalAccounts as bg, fetchFeaturedProfile as bh, fetchFollowing as bi, fetchGivenConfirmations as bj, fetchHeatmapData as bk, fetchHiddenApps as bl, fetchMyGithubPullRequests as bm, fetchMyRoadmapVotes as bn, fetchPendingConfirmations as bo, fetchReactionStatus as bp, fetchRepoInventory as bq, fetchRoadmapVotes as br, fetchSearchFilters as bs, fetchSearchProfiles as bt, fetchSimilarProfiles as bu, fetchSkillSuggestions as bv, fetchStats as bw, fetchSuggestionCount as bx, fetchSuggestions as by, fetchWipePreview as bz, type AccountCheckResult as c, unhideSifaPublication as c0, unhideStandardPublication as c1, unsetExternalAccountPrimary as c2, updateExternalAccount as c3, updateOrgProfile as c4, updateProfileLocation as c5, updateProfileOverride as c6, updateProfileSelf as c7, updateSkill as c8, updateSkillSubCategories as c9, uploadAvatar as ca, uploadNamePronunciationAudio as cb, verifyExternalAccount as cc, verifyOrgDomain as cd, type CompanySearchFilters as ce, type CompanySearchResponse as cf, type CompanySearchResult as cg, fetchSearchCompanies as ch, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as ExternalAccount, Q as SkillSuggestion } from './index-
|
|
1
|
+
import { p as ExternalAccount, Q as SkillSuggestion } from './index-jNyd5QP7.js';
|
|
2
2
|
import { y as FollowFeedPage, B as FollowProfileItem, q as FeatureAllowlistEntry, s as FeatureFlag } from './feed-BMm9Pkew.js';
|
|
3
|
-
import { b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-
|
|
3
|
+
import { b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-8JaS6abh.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-CZ_tmAYl.js';
|
|
6
6
|
|
|
@@ -142,6 +142,8 @@ interface UpdateProfileSelfInput {
|
|
|
142
142
|
givenName?: string;
|
|
143
143
|
/** Schema.org Person.familyName from id.sifa.profile.self.familyName. */
|
|
144
144
|
familyName?: string;
|
|
145
|
+
/** Free-form phonetic respelling of the name from id.sifa.profile.self.namePronunciation. */
|
|
146
|
+
namePronunciation?: string;
|
|
145
147
|
industries?: ProfileIndustryInput[];
|
|
146
148
|
location?: ProfileSelfLocation;
|
|
147
149
|
website?: string;
|
|
@@ -190,6 +192,21 @@ interface UploadAvatarResult extends WriteResult {
|
|
|
190
192
|
declare function uploadAvatar(config: SifaApiConfig, file: Blob, options?: ApiFetchOptions): Promise<UploadAvatarResult>;
|
|
191
193
|
/** Delete the authenticated user's avatar override (revert to PDS avatar). */
|
|
192
194
|
declare function deleteAvatarOverride(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
195
|
+
/** Extended result for {@link uploadNamePronunciationAudio}. */
|
|
196
|
+
interface UploadPronunciationAudioResult extends WriteResult {
|
|
197
|
+
/** Publicly accessible URL of the newly uploaded audio clip. */
|
|
198
|
+
url?: string;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Upload a name-pronunciation audio clip via `multipart/form-data`. Pass a
|
|
202
|
+
* `File` (browser) or any `Blob` (Expo, node). The SDK leaves `Content-Type`
|
|
203
|
+
* unset so the runtime sets the multipart boundary automatically.
|
|
204
|
+
*
|
|
205
|
+
* Never throws -- inspect `result.success` and `result.url`.
|
|
206
|
+
*/
|
|
207
|
+
declare function uploadNamePronunciationAudio(config: SifaApiConfig, file: Blob, options?: ApiFetchOptions): Promise<UploadPronunciationAudioResult>;
|
|
208
|
+
/** Delete the name-pronunciation audio clip from the user's profile. */
|
|
209
|
+
declare function deleteNamePronunciationAudio(config: SifaApiConfig, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
193
210
|
|
|
194
211
|
/**
|
|
195
212
|
* Create a new `id.sifa.profile.skill` record on the authenticated
|
|
@@ -1658,4 +1675,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1658
1675
|
*/
|
|
1659
1676
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1660
1677
|
|
|
1661
|
-
export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a,
|
|
1678
|
+
export { type ListFeatureAllowlistOptions as $, type ApiFetchOptions as A, type BulkHideProfileItemInput as B, type CreateResult as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchReactionStatusOptions as G, type FetchSuggestionsOptions as H, type FilterOptions as I, type FollowListPage as J, type FollowProfile as K, type FollowProfilePageResponse as L, type FollowUserResult as M, type FollowingResponse as N, type GetAdminReviewQueuesOptions as O, type GithubPullRequest as P, type GivenConfirmation as Q, HIDDEN_ITEM_SOURCES as R, type SifaApiConfig as S, HIDDEN_ITEM_TYPES as T, type HeatmapDay as U, type HeatmapResponse as V, type WriteResult as W, type HiddenApp as X, type HiddenItemSource as Y, type HiddenItemType as Z, type HideProfileItemInput as _, type ConfirmEndorsementInput as a, createEndorsement as a$, type MyGithubPullRequestsResponse as a0, type OrgClaimBinding as a1, type OrgClaimResult as a2, type OrgDomainChallengeResult as a3, type OrgDomainVerifyResult as a4, type OrgNotificationEmailAddResult as a5, type OrgNotificationEmailRemoveResult as a6, type OrgProfileEcho as a7, type OrgProfileUpdateResult as a8, type PdsWipeOutcome as a9, type SifaQueryKey as aA, type SimilarProfile as aB, type SkillSearchResult as aC, type StatsResponse as aD, type SubCategoryBulkResult as aE, type SuggestionProfile as aF, type SuggestionsResponse as aG, type UpdateProfileOverrideInput as aH, type UpdateProfileSelfInput as aI, type UploadAvatarResult as aJ, type UploadPronunciationAudioResult as aK, type VerifyExternalAccountResult as aL, type WipePreview as aM, addFeatureAllowlist as aN, addOrgNotificationEmail as aO, apiFetch as aP, apiFetchOrNull as aQ, apiWrite as aR, apiWriteCreate as aS, bulkHideProfileItems as aT, bulkHideStandardPublications as aU, bulkUnhideProfileItems as aV, bulkUnhideStandardPublications as aW, castRoadmapVote as aX, checkAppAccount as aY, confirmEndorsement as aZ, createConfirmation as a_, type PendingConfirmation as aa, type PendingConfirmationsPage as ab, type ProfileIndustryInput as ac, type ProfileLocationAddress as ad, type ProfileLocationInput as ae, type ProfileSearchResult as af, type ProfileSelfLocation as ag, QUOTED_POSTS_BATCH_MAX as ah, type QuotedPostAuthor as ai, type QuotedPostImage as aj, type QuotedPostResult as ak, type QuotedPostView as al, type ReactionError as am, type ReactionResult as an, type ReactionStatus as ao, type RefreshOrcidPublicationsResult as ap, type RefreshPdsResult as aq, type RepoDeleteInput as ar, type ResetProfileResult as as, type ResolveQuotedPostsOptions as at, type RoadmapVoteError as au, type RoadmapVoteResult as av, type RoadmapVoter as aw, type RoadmapVotesResponse as ax, type SearchFilters as ay, type SearchResponse as az, type ConfirmEndorsementResult as b, unhideProfileItem as b$, createExternalAccount as b0, createProfileLocation as b1, createReaction as b2, createSkill as b3, deleteAccount as b4, deleteAvatarOverride as b5, deleteExternalAccount as b6, deleteNamePronunciationAudio as b7, deleteProfileLocation as b8, deleteReaction as b9, followUser as bA, getAdminReviewQueues as bB, getBlueskySuggestions as bC, getFollowers as bD, getFollowing as bE, getFollowingFeed as bF, getMutuals as bG, hideOrcidPublication as bH, hideProfileItem as bI, hideSifaPublication as bJ, hideStandardPublication as bK, listFeatureAllowlist as bL, refreshOrcidPublications as bM, refreshPds as bN, removeFeatureAllowlist as bO, removeOrgNotificationEmail as bP, repoExportUrl as bQ, requestOrgDomainChallenge as bR, resetProfile as bS, resolveQuotedPosts as bT, retractRoadmapVote as bU, revokeConfirmation as bV, searchSkills as bW, setExternalAccountPrimary as bX, submitOrgClaim as bY, unfollowUser as bZ, unhideOrcidPublication as b_, deleteRepoRecords as ba, deleteSkill as bb, dismissConfirmation as bc, fetchActivityFeed as bd, fetchActivityTeaser as be, fetchAppsRegistry as bf, fetchExternalAccounts as bg, fetchFeaturedProfile as bh, fetchFollowing as bi, fetchGivenConfirmations as bj, fetchHeatmapData as bk, fetchHiddenApps as bl, fetchMyGithubPullRequests as bm, fetchMyRoadmapVotes as bn, fetchPendingConfirmations as bo, fetchReactionStatus as bp, fetchRepoInventory as bq, fetchRoadmapVotes as br, fetchSearchFilters as bs, fetchSearchProfiles as bt, fetchSimilarProfiles as bu, fetchSkillSuggestions as bv, fetchStats as bw, fetchSuggestionCount as bx, fetchSuggestions as by, fetchWipePreview as bz, type AccountCheckResult as c, unhideSifaPublication as c0, unhideStandardPublication as c1, unsetExternalAccountPrimary as c2, updateExternalAccount as c3, updateOrgProfile as c4, updateProfileLocation as c5, updateProfileOverride as c6, updateProfileSelf as c7, updateSkill as c8, updateSkillSubCategories as c9, uploadAvatar as ca, uploadNamePronunciationAudio as cb, verifyExternalAccount as cc, verifyOrgDomain as cd, type CompanySearchFilters as ce, type CompanySearchResponse as cf, type CompanySearchResult as cg, fetchSearchCompanies as ch, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, type AdminReviewQueues as h, ApiError as i, type AppRegistryEntry as j, type CastRoadmapVoteResult as k, type CheckAppAccountOptions as l, type ConfirmationInput as m, type ConfirmationSubjectInput as n, type CreateExternalAccountResult as o, type ExternalAccountInput as p, type FeaturedProfile as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchFollowListOptions as u, type FetchFollowProfilePageOptions as v, type FetchFollowingFeedOptions as w, type FetchHiddenAppsOptions as x, type FetchMyGithubPullRequestsOptions as y, type FetchMyRoadmapVotesOptions as z };
|
|
@@ -513,6 +513,7 @@ declare const ProfileSelfRecordSchema: z.ZodObject<{
|
|
|
513
513
|
industry: z.ZodOptional<z.ZodString>;
|
|
514
514
|
givenName: z.ZodOptional<z.ZodString>;
|
|
515
515
|
familyName: z.ZodOptional<z.ZodString>;
|
|
516
|
+
namePronunciation: z.ZodOptional<z.ZodString>;
|
|
516
517
|
location: z.ZodOptional<z.ZodUnknown>;
|
|
517
518
|
openTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
518
519
|
preferredWorkplace: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -513,6 +513,7 @@ declare const ProfileSelfRecordSchema: z.ZodObject<{
|
|
|
513
513
|
industry: z.ZodOptional<z.ZodString>;
|
|
514
514
|
givenName: z.ZodOptional<z.ZodString>;
|
|
515
515
|
familyName: z.ZodOptional<z.ZodString>;
|
|
516
|
+
namePronunciation: z.ZodOptional<z.ZodString>;
|
|
516
517
|
location: z.ZodOptional<z.ZodUnknown>;
|
|
517
518
|
openTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
518
519
|
preferredWorkplace: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -191,6 +191,34 @@ async function uploadAvatar(config, file, options = {}) {
|
|
|
191
191
|
function deleteAvatarOverride(config, options = {}) {
|
|
192
192
|
return apiWrite(config, "/api/profile/avatar", "DELETE", options);
|
|
193
193
|
}
|
|
194
|
+
async function uploadNamePronunciationAudio(config, file, options = {}) {
|
|
195
|
+
const fetchFn = config.fetch ?? globalThis.fetch;
|
|
196
|
+
const url = `${config.baseUrl}/api/profile/pronunciation-audio`;
|
|
197
|
+
const formData = new FormData();
|
|
198
|
+
formData.append("file", file);
|
|
199
|
+
try {
|
|
200
|
+
const res = await fetchFn(url, {
|
|
201
|
+
method: "POST",
|
|
202
|
+
credentials: options.credentials ?? "include",
|
|
203
|
+
body: formData,
|
|
204
|
+
signal: options.signal ?? AbortSignal.timeout(options.timeoutMs ?? 3e4),
|
|
205
|
+
headers: options.headers
|
|
206
|
+
});
|
|
207
|
+
if (!res.ok) {
|
|
208
|
+
const errBody = await res.json().catch(() => ({}));
|
|
209
|
+
const msg = errBody.message ?? `Request failed (${res.status})`;
|
|
210
|
+
const pdsHost = errBody.pdsHost;
|
|
211
|
+
return { success: false, error: msg, ...pdsHost ? { pdsHost } : {} };
|
|
212
|
+
}
|
|
213
|
+
const data = await res.json();
|
|
214
|
+
return { success: true, url: data.url };
|
|
215
|
+
} catch {
|
|
216
|
+
return { success: false, error: "Network error" };
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function deleteNamePronunciationAudio(config, options = {}) {
|
|
220
|
+
return apiWrite(config, "/api/profile/pronunciation-audio", "DELETE", options);
|
|
221
|
+
}
|
|
194
222
|
|
|
195
223
|
// src/query/fetchers/positions.ts
|
|
196
224
|
function createPosition(config, data, options = {}) {
|
|
@@ -1770,6 +1798,7 @@ exports.deleteAvatarOverride = deleteAvatarOverride;
|
|
|
1770
1798
|
exports.deleteEducation = deleteEducation;
|
|
1771
1799
|
exports.deleteExternalAccount = deleteExternalAccount;
|
|
1772
1800
|
exports.deleteInvestment = deleteInvestment;
|
|
1801
|
+
exports.deleteNamePronunciationAudio = deleteNamePronunciationAudio;
|
|
1773
1802
|
exports.deletePosition = deletePosition;
|
|
1774
1803
|
exports.deleteProfileLocation = deleteProfileLocation;
|
|
1775
1804
|
exports.deleteReaction = deleteReaction;
|
|
@@ -1868,6 +1897,7 @@ exports.updateProfileSelf = updateProfileSelf;
|
|
|
1868
1897
|
exports.updateRecord = updateRecord;
|
|
1869
1898
|
exports.updateSkill = updateSkill;
|
|
1870
1899
|
exports.uploadAvatar = uploadAvatar;
|
|
1900
|
+
exports.uploadNamePronunciationAudio = uploadNamePronunciationAudio;
|
|
1871
1901
|
exports.verifyExternalAccount = verifyExternalAccount;
|
|
1872
1902
|
exports.verifyOrgDomain = verifyOrgDomain;
|
|
1873
1903
|
//# sourceMappingURL=index.cjs.map
|