@singi-labs/sifa-sdk 0.12.42 → 0.12.44
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-DFSDtTFz.d.cts → index-BFO1nfxZ.d.cts} +1 -1
- package/dist/{index-BsIdD2su.d.ts → index-BzfWwovU.d.ts} +10 -3
- package/dist/{index-CIQinrgP.d.ts → index-C-k5JuRG.d.ts} +1 -1
- package/dist/{index-ti9RAkMn.d.cts → index-DRSrcDoq.d.cts} +10 -3
- package/dist/index.cjs +639 -160
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +639 -160
- package/dist/index.js.map +1 -1
- package/dist/{org-EA4mshbf.d.ts → org-Bijq3reg.d.ts} +14 -4
- package/dist/{org-C0OTQnnV.d.cts → org-D_0P4klw.d.cts} +14 -4
- package/dist/query/fetchers/index.cjs +6 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +2 -2
- package/dist/query/fetchers/index.d.ts +2 -2
- package/dist/query/fetchers/index.js +6 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +2 -2
- package/dist/query/hooks/index.d.ts +2 -2
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +6 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +6 -6
- package/dist/query/index.d.ts +6 -6
- package/dist/query/index.js +6 -1
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/index.cjs +13 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +6 -2
- package/dist/schemas/index.d.ts +6 -2
- package/dist/schemas/index.js +13 -1
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -294,8 +294,12 @@ declare function verifyExternalAccount(config: SifaApiConfig, rkey: string, opti
|
|
|
294
294
|
interface EndorsementInput {
|
|
295
295
|
/** DID of the person being endorsed. */
|
|
296
296
|
subjectDid: string;
|
|
297
|
-
/**
|
|
298
|
-
|
|
297
|
+
/**
|
|
298
|
+
* AT-URI of the subject's `id.sifa.profile.skill` record. Omit to propose a
|
|
299
|
+
* skill they have not listed; `skillName` then names what is proposed, and
|
|
300
|
+
* the record is created when they accept.
|
|
301
|
+
*/
|
|
302
|
+
skillUri?: string;
|
|
299
303
|
/**
|
|
300
304
|
* CID of that skill record, pinning the endorsement to the version endorsed.
|
|
301
305
|
* Optional: the AppView resolves it when omitted, which is the common case
|
|
@@ -310,6 +314,12 @@ interface EndorsementInput {
|
|
|
310
314
|
comment?: string;
|
|
311
315
|
}
|
|
312
316
|
/** Body accepted by {@link confirmEndorsement}. */
|
|
317
|
+
interface ConfirmEndorsementResult {
|
|
318
|
+
/** Skill the endorsement resolved to, created if it was a proposal. */
|
|
319
|
+
skillUri?: string;
|
|
320
|
+
/** True when accepting added a new skill to the profile. */
|
|
321
|
+
skillCreated?: boolean;
|
|
322
|
+
}
|
|
313
323
|
interface ConfirmEndorsementInput {
|
|
314
324
|
endorsementUri: string;
|
|
315
325
|
/**
|
|
@@ -332,7 +342,7 @@ declare function createEndorsement(config: SifaApiConfig, data: EndorsementInput
|
|
|
332
342
|
* signed-in user's PDS. This is what makes the endorsement public: until the
|
|
333
343
|
* confirmation exists, the endorsement is indexed but displays nowhere.
|
|
334
344
|
*/
|
|
335
|
-
declare function confirmEndorsement(config: SifaApiConfig, data: ConfirmEndorsementInput, options?: ApiFetchOptions): Promise<CreateResult>;
|
|
345
|
+
declare function confirmEndorsement(config: SifaApiConfig, data: ConfirmEndorsementInput, options?: ApiFetchOptions): Promise<CreateResult & ConfirmEndorsementResult>;
|
|
336
346
|
|
|
337
347
|
/** Extended result for {@link refreshOrcidPublications}. */
|
|
338
348
|
interface RefreshOrcidPublicationsResult extends WriteResult {
|
|
@@ -1414,4 +1424,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1414
1424
|
*/
|
|
1415
1425
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1416
1426
|
|
|
1417
|
-
export { type
|
|
1427
|
+
export { type OrgDomainVerifyResult 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 FollowListPage as G, type FollowProfile as H, type FollowProfilePageResponse as I, type FollowUserResult as J, type FollowingResponse as K, type GithubPullRequest as L, HIDDEN_ITEM_SOURCES as M, HIDDEN_ITEM_TYPES as N, type HeatmapDay as O, type HeatmapResponse as P, type HiddenApp as Q, type HiddenItemSource as R, type SifaApiConfig as S, type HiddenItemType as T, type HideProfileItemInput as U, type ListFeatureAllowlistOptions as V, type WriteResult as W, type MyGithubPullRequestsResponse as X, type OrgClaimBinding as Y, type OrgClaimResult as Z, type OrgDomainChallengeResult as _, type ConfirmEndorsementInput as a, deleteSkill as a$, type OrgNotificationEmailAddResult as a0, type OrgNotificationEmailRemoveResult as a1, type OrgProfileEcho as a2, type OrgProfileUpdateResult as a3, type PdsWipeOutcome as a4, type ProfileIndustryInput as a5, type ProfileLocationAddress as a6, type ProfileLocationInput as a7, type ProfileSearchResult as a8, type ProfileSelfLocation as a9, type UpdateProfileSelfInput as aA, type UploadAvatarResult as aB, type VerifyExternalAccountResult as aC, type WipePreview as aD, addFeatureAllowlist as aE, addOrgNotificationEmail as aF, apiFetch as aG, apiFetchOrNull as aH, apiWrite as aI, apiWriteCreate as aJ, bulkHideProfileItems as aK, bulkHideStandardPublications as aL, bulkUnhideProfileItems as aM, bulkUnhideStandardPublications as aN, castRoadmapVote as aO, checkAppAccount as aP, confirmEndorsement as aQ, createEndorsement as aR, createExternalAccount as aS, createProfileLocation as aT, createReaction as aU, createSkill as aV, deleteAccount as aW, deleteAvatarOverride as aX, deleteExternalAccount as aY, deleteProfileLocation as aZ, deleteReaction as a_, QUOTED_POSTS_BATCH_MAX as aa, type QuotedPostAuthor as ab, type QuotedPostImage as ac, type QuotedPostResult as ad, type QuotedPostView as ae, type ReactionError as af, type ReactionResult as ag, type ReactionStatus as ah, type RefreshOrcidPublicationsResult as ai, type RefreshPdsResult as aj, type ResetProfileResult as ak, type ResolveQuotedPostsOptions as al, type RoadmapVoteError as am, type RoadmapVoteResult as an, type RoadmapVoter as ao, type RoadmapVotesResponse as ap, type SearchFilters as aq, type SearchResponse as ar, type SifaQueryKey as as, type SimilarProfile as at, type SkillSearchResult as au, type StatsResponse as av, type SubCategoryBulkResult as aw, type SuggestionProfile as ax, type SuggestionsResponse as ay, type UpdateProfileOverrideInput as az, type ConfirmEndorsementResult as b, fetchActivityFeed as b0, fetchActivityTeaser as b1, fetchAppsRegistry as b2, fetchExternalAccounts as b3, fetchFeaturedProfile as b4, fetchFollowing as b5, fetchHeatmapData as b6, fetchHiddenApps as b7, fetchMyGithubPullRequests as b8, fetchMyRoadmapVotes as b9, resetProfile as bA, resolveQuotedPosts as bB, retractRoadmapVote as bC, searchSkills as bD, setExternalAccountPrimary as bE, submitOrgClaim as bF, unfollowUser as bG, unhideOrcidPublication as bH, unhideProfileItem as bI, unhideSifaPublication as bJ, unhideStandardPublication as bK, unsetExternalAccountPrimary as bL, updateExternalAccount as bM, updateOrgProfile as bN, updateProfileLocation as bO, updateProfileOverride as bP, updateProfileSelf as bQ, updateSkill as bR, updateSkillSubCategories as bS, uploadAvatar as bT, verifyExternalAccount as bU, verifyOrgDomain as bV, fetchReactionStatus as ba, fetchRoadmapVotes as bb, fetchSearchFilters as bc, fetchSearchProfiles as bd, fetchSimilarProfiles as be, fetchSkillSuggestions as bf, fetchStats as bg, fetchSuggestionCount as bh, fetchSuggestions as bi, fetchWipePreview as bj, followUser as bk, getBlueskySuggestions as bl, getFollowers as bm, getFollowing as bn, getFollowingFeed as bo, getMutuals as bp, hideOrcidPublication as bq, hideProfileItem as br, hideSifaPublication as bs, hideStandardPublication as bt, listFeatureAllowlist as bu, refreshOrcidPublications as bv, refreshPds as bw, removeFeatureAllowlist as bx, removeOrgNotificationEmail as by, requestOrgDomainChallenge as bz, type AccountCheckResult as c, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, ApiError as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type CreateExternalAccountResult as l, type ExternalAccountInput as m, type FeaturedProfile as n, type FetchActivityFeedOptions as o, type FetchActivityTeaserOptions as p, type FetchFollowListOptions as q, type FetchFollowProfilePageOptions as r, sifaQueryKeys as s, type FetchFollowingFeedOptions as t, type FetchHiddenAppsOptions as u, type FetchMyGithubPullRequestsOptions as v, type FetchMyRoadmapVotesOptions as w, type FetchReactionStatusOptions as x, type FetchSuggestionsOptions as y, type FilterOptions as z };
|
|
@@ -294,8 +294,12 @@ declare function verifyExternalAccount(config: SifaApiConfig, rkey: string, opti
|
|
|
294
294
|
interface EndorsementInput {
|
|
295
295
|
/** DID of the person being endorsed. */
|
|
296
296
|
subjectDid: string;
|
|
297
|
-
/**
|
|
298
|
-
|
|
297
|
+
/**
|
|
298
|
+
* AT-URI of the subject's `id.sifa.profile.skill` record. Omit to propose a
|
|
299
|
+
* skill they have not listed; `skillName` then names what is proposed, and
|
|
300
|
+
* the record is created when they accept.
|
|
301
|
+
*/
|
|
302
|
+
skillUri?: string;
|
|
299
303
|
/**
|
|
300
304
|
* CID of that skill record, pinning the endorsement to the version endorsed.
|
|
301
305
|
* Optional: the AppView resolves it when omitted, which is the common case
|
|
@@ -310,6 +314,12 @@ interface EndorsementInput {
|
|
|
310
314
|
comment?: string;
|
|
311
315
|
}
|
|
312
316
|
/** Body accepted by {@link confirmEndorsement}. */
|
|
317
|
+
interface ConfirmEndorsementResult {
|
|
318
|
+
/** Skill the endorsement resolved to, created if it was a proposal. */
|
|
319
|
+
skillUri?: string;
|
|
320
|
+
/** True when accepting added a new skill to the profile. */
|
|
321
|
+
skillCreated?: boolean;
|
|
322
|
+
}
|
|
313
323
|
interface ConfirmEndorsementInput {
|
|
314
324
|
endorsementUri: string;
|
|
315
325
|
/**
|
|
@@ -332,7 +342,7 @@ declare function createEndorsement(config: SifaApiConfig, data: EndorsementInput
|
|
|
332
342
|
* signed-in user's PDS. This is what makes the endorsement public: until the
|
|
333
343
|
* confirmation exists, the endorsement is indexed but displays nowhere.
|
|
334
344
|
*/
|
|
335
|
-
declare function confirmEndorsement(config: SifaApiConfig, data: ConfirmEndorsementInput, options?: ApiFetchOptions): Promise<CreateResult>;
|
|
345
|
+
declare function confirmEndorsement(config: SifaApiConfig, data: ConfirmEndorsementInput, options?: ApiFetchOptions): Promise<CreateResult & ConfirmEndorsementResult>;
|
|
336
346
|
|
|
337
347
|
/** Extended result for {@link refreshOrcidPublications}. */
|
|
338
348
|
interface RefreshOrcidPublicationsResult extends WriteResult {
|
|
@@ -1414,4 +1424,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1414
1424
|
*/
|
|
1415
1425
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult & Partial<OrgNotificationEmailRemoveResult>>;
|
|
1416
1426
|
|
|
1417
|
-
export { type
|
|
1427
|
+
export { type OrgDomainVerifyResult 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 FollowListPage as G, type FollowProfile as H, type FollowProfilePageResponse as I, type FollowUserResult as J, type FollowingResponse as K, type GithubPullRequest as L, HIDDEN_ITEM_SOURCES as M, HIDDEN_ITEM_TYPES as N, type HeatmapDay as O, type HeatmapResponse as P, type HiddenApp as Q, type HiddenItemSource as R, type SifaApiConfig as S, type HiddenItemType as T, type HideProfileItemInput as U, type ListFeatureAllowlistOptions as V, type WriteResult as W, type MyGithubPullRequestsResponse as X, type OrgClaimBinding as Y, type OrgClaimResult as Z, type OrgDomainChallengeResult as _, type ConfirmEndorsementInput as a, deleteSkill as a$, type OrgNotificationEmailAddResult as a0, type OrgNotificationEmailRemoveResult as a1, type OrgProfileEcho as a2, type OrgProfileUpdateResult as a3, type PdsWipeOutcome as a4, type ProfileIndustryInput as a5, type ProfileLocationAddress as a6, type ProfileLocationInput as a7, type ProfileSearchResult as a8, type ProfileSelfLocation as a9, type UpdateProfileSelfInput as aA, type UploadAvatarResult as aB, type VerifyExternalAccountResult as aC, type WipePreview as aD, addFeatureAllowlist as aE, addOrgNotificationEmail as aF, apiFetch as aG, apiFetchOrNull as aH, apiWrite as aI, apiWriteCreate as aJ, bulkHideProfileItems as aK, bulkHideStandardPublications as aL, bulkUnhideProfileItems as aM, bulkUnhideStandardPublications as aN, castRoadmapVote as aO, checkAppAccount as aP, confirmEndorsement as aQ, createEndorsement as aR, createExternalAccount as aS, createProfileLocation as aT, createReaction as aU, createSkill as aV, deleteAccount as aW, deleteAvatarOverride as aX, deleteExternalAccount as aY, deleteProfileLocation as aZ, deleteReaction as a_, QUOTED_POSTS_BATCH_MAX as aa, type QuotedPostAuthor as ab, type QuotedPostImage as ac, type QuotedPostResult as ad, type QuotedPostView as ae, type ReactionError as af, type ReactionResult as ag, type ReactionStatus as ah, type RefreshOrcidPublicationsResult as ai, type RefreshPdsResult as aj, type ResetProfileResult as ak, type ResolveQuotedPostsOptions as al, type RoadmapVoteError as am, type RoadmapVoteResult as an, type RoadmapVoter as ao, type RoadmapVotesResponse as ap, type SearchFilters as aq, type SearchResponse as ar, type SifaQueryKey as as, type SimilarProfile as at, type SkillSearchResult as au, type StatsResponse as av, type SubCategoryBulkResult as aw, type SuggestionProfile as ax, type SuggestionsResponse as ay, type UpdateProfileOverrideInput as az, type ConfirmEndorsementResult as b, fetchActivityFeed as b0, fetchActivityTeaser as b1, fetchAppsRegistry as b2, fetchExternalAccounts as b3, fetchFeaturedProfile as b4, fetchFollowing as b5, fetchHeatmapData as b6, fetchHiddenApps as b7, fetchMyGithubPullRequests as b8, fetchMyRoadmapVotes as b9, resetProfile as bA, resolveQuotedPosts as bB, retractRoadmapVote as bC, searchSkills as bD, setExternalAccountPrimary as bE, submitOrgClaim as bF, unfollowUser as bG, unhideOrcidPublication as bH, unhideProfileItem as bI, unhideSifaPublication as bJ, unhideStandardPublication as bK, unsetExternalAccountPrimary as bL, updateExternalAccount as bM, updateOrgProfile as bN, updateProfileLocation as bO, updateProfileOverride as bP, updateProfileSelf as bQ, updateSkill as bR, updateSkillSubCategories as bS, uploadAvatar as bT, verifyExternalAccount as bU, verifyOrgDomain as bV, fetchReactionStatus as ba, fetchRoadmapVotes as bb, fetchSearchFilters as bc, fetchSearchProfiles as bd, fetchSimilarProfiles as be, fetchSkillSuggestions as bf, fetchStats as bg, fetchSuggestionCount as bh, fetchSuggestions as bi, fetchWipePreview as bj, followUser as bk, getBlueskySuggestions as bl, getFollowers as bm, getFollowing as bn, getFollowingFeed as bo, getMutuals as bp, hideOrcidPublication as bq, hideProfileItem as br, hideSifaPublication as bs, hideStandardPublication as bt, listFeatureAllowlist as bu, refreshOrcidPublications as bv, refreshPds as bw, removeFeatureAllowlist as bx, removeOrgNotificationEmail as by, requestOrgDomainChallenge as bz, type AccountCheckResult as c, type ActivityFeedResponse as d, type ActivityItem as e, type ActivityItemLinkHealth as f, type ActivityTeaserResponse as g, ApiError as h, type AppRegistryEntry as i, type CastRoadmapVoteResult as j, type CheckAppAccountOptions as k, type CreateExternalAccountResult as l, type ExternalAccountInput as m, type FeaturedProfile as n, type FetchActivityFeedOptions as o, type FetchActivityTeaserOptions as p, type FetchFollowListOptions as q, type FetchFollowProfilePageOptions as r, sifaQueryKeys as s, type FetchFollowingFeedOptions as t, type FetchHiddenAppsOptions as u, type FetchMyGithubPullRequestsOptions as v, type FetchMyRoadmapVotesOptions as w, type FetchReactionStatusOptions as x, type FetchSuggestionsOptions as y, type FilterOptions as z };
|
|
@@ -381,7 +381,12 @@ function createEndorsement(config, data, options = {}) {
|
|
|
381
381
|
return apiWriteCreate(config, "/api/endorsement", data, options);
|
|
382
382
|
}
|
|
383
383
|
function confirmEndorsement(config, data, options = {}) {
|
|
384
|
-
return apiWriteCreate(
|
|
384
|
+
return apiWriteCreate(
|
|
385
|
+
config,
|
|
386
|
+
"/api/endorsement/confirm",
|
|
387
|
+
data,
|
|
388
|
+
options
|
|
389
|
+
);
|
|
385
390
|
}
|
|
386
391
|
|
|
387
392
|
// src/query/fetchers/endorsement-inbox.ts
|