@singi-labs/sifa-sdk 0.12.43 → 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.
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ai as RefreshPdsResult, ay as UpdateProfileOverrideInput, az as UpdateProfileSelfInput, aA as UploadAvatarResult, C as CreateResult, av as SubCategoryBulkResult, a6 as ProfileLocationInput, l as ExternalAccountInput, k as CreateExternalAccountResult, aB as VerifyExternalAccountResult, E as EndorsementInput, ah as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, T as HideProfileItemInput, au as StatsResponse, h as AppRegistryEntry, P as HiddenApp, y as FilterOptions, ap as SearchFilters, aq as SearchResponse, at as SkillSearchResult, m as FeaturedProfile, as as SimilarProfile, x as FetchSuggestionsOptions, ax as SuggestionsResponse, I as FollowUserResult, p as FetchFollowListOptions, z as FollowListPage, J as FollowingResponse, r as FetchFollowingFeedOptions, q as FetchFollowProfilePageOptions, H as FollowProfilePageResponse, F as FeatureAllowlistResponse, n as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, O as HeatmapResponse, V as MyGithubPullRequestsResponse, b as AccountCheckResult, ag as ReactionStatus, af as ReactionResult, ae as ReactionError, ao as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aj as ResetProfileResult, aC as WipePreview, Y as OrgClaimResult, a2 as OrgProfileUpdateResult, Z as OrgDomainChallengeResult, _ as OrgDomainVerifyResult, $ as OrgNotificationEmailAddResult, a0 as OrgNotificationEmailRemoveResult } from './org-C0OTQnnV.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aj as RefreshPdsResult, az as UpdateProfileOverrideInput, aA as UpdateProfileSelfInput, aB as UploadAvatarResult, C as CreateResult, aw as SubCategoryBulkResult, a7 as ProfileLocationInput, m as ExternalAccountInput, l as CreateExternalAccountResult, aC as VerifyExternalAccountResult, E as EndorsementInput, ai as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, U as HideProfileItemInput, av as StatsResponse, i as AppRegistryEntry, Q as HiddenApp, z as FilterOptions, aq as SearchFilters, ar as SearchResponse, au as SkillSearchResult, n as FeaturedProfile, at as SimilarProfile, y as FetchSuggestionsOptions, ay as SuggestionsResponse, J as FollowUserResult, q as FetchFollowListOptions, G as FollowListPage, K as FollowingResponse, t as FetchFollowingFeedOptions, r as FetchFollowProfilePageOptions, I as FollowProfilePageResponse, F as FeatureAllowlistResponse, o as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, P as HeatmapResponse, X as MyGithubPullRequestsResponse, c as AccountCheckResult, ah as ReactionStatus, ag as ReactionResult, af as ReactionError, ap as RoadmapVotesResponse, j as CastRoadmapVoteResult, D as DeleteAccountResult, ak as ResetProfileResult, aD as WipePreview, Z as OrgClaimResult, a3 as OrgProfileUpdateResult, _ as OrgDomainChallengeResult, $ as OrgDomainVerifyResult, a0 as OrgNotificationEmailAddResult, a1 as OrgNotificationEmailRemoveResult } from './org-D_0P4klw.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
6
  import { e as Profile, P as ProfileView, g as ProfilePosition, a7 as SkillRef, E as ExternalAccount, S as SkillSuggestion, N as OrgFloorVerdict } from './adult-content-JKDlPIbL.cjs';
@@ -1,4 +1,4 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-EA4mshbf.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-Bijq3reg.js';
2
2
  import { e as Profile, P as ProfileView, g as ProfilePosition, a7 as SkillRef } from './adult-content-JKDlPIbL.js';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-C8aHEPw4.js';
4
4
  import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-C9E-HPeP.js';
@@ -123,8 +123,15 @@ interface PendingEndorsement {
123
123
  * AppView resolves it from the endorser's PDS when it is not.
124
124
  */
125
125
  cid?: string;
126
- skillUri: string;
127
- skillCid: string;
126
+ /** Absent when this endorsement proposes a skill the subject does not have. */
127
+ skillUri?: string;
128
+ skillCid?: string;
129
+ /**
130
+ * True when accepting this will add `skillName` to the profile as well as
131
+ * publishing the endorsement. The UI must say so: it is a bigger action than
132
+ * confirming an endorsement of a skill already listed.
133
+ */
134
+ proposesNewSkill?: boolean;
128
135
  skillName: string;
129
136
  comment?: string;
130
137
  createdAt: string;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ai as RefreshPdsResult, ay as UpdateProfileOverrideInput, az as UpdateProfileSelfInput, aA as UploadAvatarResult, C as CreateResult, av as SubCategoryBulkResult, a6 as ProfileLocationInput, l as ExternalAccountInput, k as CreateExternalAccountResult, aB as VerifyExternalAccountResult, E as EndorsementInput, ah as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, T as HideProfileItemInput, au as StatsResponse, h as AppRegistryEntry, P as HiddenApp, y as FilterOptions, ap as SearchFilters, aq as SearchResponse, at as SkillSearchResult, m as FeaturedProfile, as as SimilarProfile, x as FetchSuggestionsOptions, ax as SuggestionsResponse, I as FollowUserResult, p as FetchFollowListOptions, z as FollowListPage, J as FollowingResponse, r as FetchFollowingFeedOptions, q as FetchFollowProfilePageOptions, H as FollowProfilePageResponse, F as FeatureAllowlistResponse, n as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, O as HeatmapResponse, V as MyGithubPullRequestsResponse, b as AccountCheckResult, ag as ReactionStatus, af as ReactionResult, ae as ReactionError, ao as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aj as ResetProfileResult, aC as WipePreview, Y as OrgClaimResult, a2 as OrgProfileUpdateResult, Z as OrgDomainChallengeResult, _ as OrgDomainVerifyResult, $ as OrgNotificationEmailAddResult, a0 as OrgNotificationEmailRemoveResult } from './org-EA4mshbf.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aj as RefreshPdsResult, az as UpdateProfileOverrideInput, aA as UpdateProfileSelfInput, aB as UploadAvatarResult, C as CreateResult, aw as SubCategoryBulkResult, a7 as ProfileLocationInput, m as ExternalAccountInput, l as CreateExternalAccountResult, aC as VerifyExternalAccountResult, E as EndorsementInput, ai as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, U as HideProfileItemInput, av as StatsResponse, i as AppRegistryEntry, Q as HiddenApp, z as FilterOptions, aq as SearchFilters, ar as SearchResponse, au as SkillSearchResult, n as FeaturedProfile, at as SimilarProfile, y as FetchSuggestionsOptions, ay as SuggestionsResponse, J as FollowUserResult, q as FetchFollowListOptions, G as FollowListPage, K as FollowingResponse, t as FetchFollowingFeedOptions, r as FetchFollowProfilePageOptions, I as FollowProfilePageResponse, F as FeatureAllowlistResponse, o as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, P as HeatmapResponse, X as MyGithubPullRequestsResponse, c as AccountCheckResult, ah as ReactionStatus, ag as ReactionResult, af as ReactionError, ap as RoadmapVotesResponse, j as CastRoadmapVoteResult, D as DeleteAccountResult, ak as ResetProfileResult, aD as WipePreview, Z as OrgClaimResult, a3 as OrgProfileUpdateResult, _ as OrgDomainChallengeResult, $ as OrgDomainVerifyResult, a0 as OrgNotificationEmailAddResult, a1 as OrgNotificationEmailRemoveResult } from './org-Bijq3reg.js';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
6
  import { e as Profile, P as ProfileView, g as ProfilePosition, a7 as SkillRef, E as ExternalAccount, S as SkillSuggestion, N as OrgFloorVerdict } from './adult-content-JKDlPIbL.js';
@@ -1,4 +1,4 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-C0OTQnnV.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-D_0P4klw.cjs';
2
2
  import { e as Profile, P as ProfileView, g as ProfilePosition, a7 as SkillRef } from './adult-content-JKDlPIbL.cjs';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-C8aHEPw4.cjs';
4
4
  import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-CSmXD7ll.cjs';
@@ -123,8 +123,15 @@ interface PendingEndorsement {
123
123
  * AppView resolves it from the endorser's PDS when it is not.
124
124
  */
125
125
  cid?: string;
126
- skillUri: string;
127
- skillCid: string;
126
+ /** Absent when this endorsement proposes a skill the subject does not have. */
127
+ skillUri?: string;
128
+ skillCid?: string;
129
+ /**
130
+ * True when accepting this will add `skillName` to the profile as well as
131
+ * publishing the endorsement. The UI must say so: it is a bigger action than
132
+ * confirming an endorsement of a skill already listed.
133
+ */
134
+ proposesNewSkill?: boolean;
128
135
  skillName: string;
129
136
  comment?: string;
130
137
  createdAt: string;
package/dist/index.cjs CHANGED
@@ -4808,6 +4808,13 @@ var BlobRefSchema = zod.z.object({
4808
4808
  });
4809
4809
  var EndorsementConfirmationRecordSchema = zod.z.object({
4810
4810
  endorsement: strongRefSchema,
4811
+ /**
4812
+ * Skill record this endorsement applies to. Set when the endorsement proposed
4813
+ * a skill: the subject creates the record and links it here, because the
4814
+ * endorser cannot write to the subject's repository. Also set when a proposed
4815
+ * name matched a skill the subject already had.
4816
+ */
4817
+ skill: strongRefSchema.optional(),
4811
4818
  createdAt: datetimeSchema
4812
4819
  });
4813
4820
  var httpUrlNullable = zod.z.string().refine((s) => /^https?:\/\//i.test(s), { message: "must be an http(s) URL" }).nullable();
@@ -4873,7 +4880,12 @@ var EntityMintDomainResponseSchema = zod.z.object({
4873
4880
  });
4874
4881
  var EndorsementRecordSchema = zod.z.object({
4875
4882
  subject: didSchema,
4876
- skill: strongRefSchema,
4883
+ /**
4884
+ * Absent when the endorser is proposing a skill the subject has not listed,
4885
+ * named by `skillName`. The record it becomes is linked from the subject's
4886
+ * confirmation, since only they can write to their own repository.
4887
+ */
4888
+ skill: strongRefSchema.optional(),
4877
4889
  skillName: zod.z.string().min(1).refine(maxGraphemes(64)).max(640),
4878
4890
  comment: zod.z.string().refine(maxGraphemes(300)).max(3e3).optional(),
4879
4891
  createdAt: datetimeSchema
@@ -5351,7 +5363,7 @@ function roadmapIssueUrl(issue) {
5351
5363
  }
5352
5364
 
5353
5365
  // src/index.ts
5354
- var SIFA_SDK_VERSION = "0.12.43";
5366
+ var SIFA_SDK_VERSION = "0.12.44";
5355
5367
 
5356
5368
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
5357
5369
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;