@singi-labs/sifa-sdk 0.12.50 → 0.12.51

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 (37) hide show
  1. package/dist/{adult-content-BUgP8bpf.d.cts → adult-content-Bmk22agq.d.cts} +8 -0
  2. package/dist/{adult-content-BUgP8bpf.d.ts → adult-content-Bmk22agq.d.ts} +8 -0
  3. package/dist/{index-10rMsh0Y.d.cts → index-BzzF8wBs.d.cts} +2 -2
  4. package/dist/{index-CatO6M_Y.d.ts → index-C3EECrb2.d.ts} +3 -3
  5. package/dist/{index-KQD7YLsb.d.ts → index-Dwo1bnqf.d.ts} +2 -2
  6. package/dist/{index-CxZBzRTC.d.cts → index-af5Pb60B.d.cts} +3 -3
  7. package/dist/index.cjs +33 -29
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +5 -5
  10. package/dist/index.d.ts +5 -5
  11. package/dist/index.js +33 -29
  12. package/dist/index.js.map +1 -1
  13. package/dist/{org-8ysVY69a.d.ts → org-BSx_0eKz.d.ts} +1 -1
  14. package/dist/{org-Be0SH7dO.d.cts → org-DFwVpMIH.d.cts} +1 -1
  15. package/dist/{profile-summary-DyX9EJzZ.d.ts → profile-summary-7d0mbAwr.d.ts} +1 -1
  16. package/dist/{profile-summary-DReI-P0i.d.cts → profile-summary-TOt7K4ai.d.cts} +1 -1
  17. package/dist/query/fetchers/index.d.cts +4 -4
  18. package/dist/query/fetchers/index.d.ts +4 -4
  19. package/dist/query/hooks/index.d.cts +3 -3
  20. package/dist/query/hooks/index.d.ts +3 -3
  21. package/dist/query/index.d.cts +7 -7
  22. package/dist/query/index.d.ts +7 -7
  23. package/dist/schemas/index.cjs +32 -28
  24. package/dist/schemas/index.cjs.map +1 -1
  25. package/dist/schemas/index.d.cts +1 -1
  26. package/dist/schemas/index.d.ts +1 -1
  27. package/dist/schemas/index.js +32 -28
  28. package/dist/schemas/index.js.map +1 -1
  29. package/dist/schemas/write/index.cjs +23 -17
  30. package/dist/schemas/write/index.cjs.map +1 -1
  31. package/dist/schemas/write/index.d.cts +9 -0
  32. package/dist/schemas/write/index.d.ts +9 -0
  33. package/dist/schemas/write/index.js +23 -17
  34. package/dist/schemas/write/index.js.map +1 -1
  35. package/dist/{shared-CqayM24g.d.cts → shared-B9ng04Kt.d.cts} +9 -0
  36. package/dist/{shared-CqayM24g.d.ts → shared-B9ng04Kt.d.ts} +9 -0
  37. package/package.json +1 -1
@@ -333,6 +333,10 @@ interface ProfileInvolvement {
333
333
  */
334
334
  legacy?: boolean;
335
335
  hidden?: boolean;
336
+ /** Other people named on this involvement, hydrated from the stored DIDs. */
337
+ collaborators?: ProjectMemberCard[];
338
+ /** AT-URI of the same involvement as recorded on another person's profile. */
339
+ sameAs?: string;
336
340
  }
337
341
  type LanguageProficiency = 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';
338
342
  interface ProfileLanguage {
@@ -848,6 +852,10 @@ interface InvolvementView {
848
852
  endedAt?: string;
849
853
  links: InvolvementLinkView[];
850
854
  legacy: boolean;
855
+ /** Other people named on this involvement, hydrated from the stored DIDs. */
856
+ collaborators?: ProjectMemberView[];
857
+ /** AT-URI of the same involvement as recorded on another person's profile. */
858
+ sameAs?: string;
851
859
  }
852
860
  interface ContributorView {
853
861
  name: string;
@@ -333,6 +333,10 @@ interface ProfileInvolvement {
333
333
  */
334
334
  legacy?: boolean;
335
335
  hidden?: boolean;
336
+ /** Other people named on this involvement, hydrated from the stored DIDs. */
337
+ collaborators?: ProjectMemberCard[];
338
+ /** AT-URI of the same involvement as recorded on another person's profile. */
339
+ sameAs?: string;
336
340
  }
337
341
  type LanguageProficiency = 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';
338
342
  interface ProfileLanguage {
@@ -848,6 +852,10 @@ interface InvolvementView {
848
852
  endedAt?: string;
849
853
  links: InvolvementLinkView[];
850
854
  legacy: boolean;
855
+ /** Other people named on this involvement, hydrated from the stored DIDs. */
856
+ collaborators?: ProjectMemberView[];
857
+ /** AT-URI of the same involvement as recorded on another person's profile. */
858
+ sameAs?: string;
851
859
  }
852
860
  interface ContributorView {
853
861
  name: string;
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aG as UpdateProfileOverrideInput, aH as UpdateProfileSelfInput, aI as UploadAvatarResult, C as CreateResult, aD as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aJ as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aC as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ax as SearchFilters, ay as SearchResponse, aB as SkillSearchResult, q as FeaturedProfile, aA as SimilarProfile, H as FetchSuggestionsOptions, aF as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, aw as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, ar as ResetProfileResult, aK as WipePreview, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-Be0SH7dO.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aG as UpdateProfileOverrideInput, aH as UpdateProfileSelfInput, aI as UploadAvatarResult, C as CreateResult, aD as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aJ as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aC as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ax as SearchFilters, ay as SearchResponse, aB as SkillSearchResult, q as FeaturedProfile, aA as SimilarProfile, H as FetchSuggestionsOptions, aF as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, aw as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, ar as ResetProfileResult, aK as WipePreview, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-DFwVpMIH.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef, E as ExternalAccount, S as SkillSuggestion, Q as OrgFloorVerdict } from './adult-content-BUgP8bpf.cjs';
6
+ import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef, E as ExternalAccount, S as SkillSuggestion, Q as OrgFloorVerdict } from './adult-content-Bmk22agq.cjs';
7
7
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, o as EntitySelectResponse, m as EntitySelectRequest, y as FollowFeedPage, s as FeatureFlag } from './feed-dOSy_48Z.cjs';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.cjs';
9
9
 
@@ -1,7 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-8ysVY69a.js';
2
- import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef } from './adult-content-BUgP8bpf.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-BSx_0eKz.js';
2
+ import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef } from './adult-content-Bmk22agq.js';
3
3
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.js';
4
- import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DyX9EJzZ.js';
4
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-7d0mbAwr.js';
5
5
 
6
6
  /**
7
7
  * Read the aggregated profile for a handle or DID.
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aG as UpdateProfileOverrideInput, aH as UpdateProfileSelfInput, aI as UploadAvatarResult, C as CreateResult, aD as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aJ as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aC as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ax as SearchFilters, ay as SearchResponse, aB as SkillSearchResult, q as FeaturedProfile, aA as SimilarProfile, H as FetchSuggestionsOptions, aF as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, aw as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, ar as ResetProfileResult, aK as WipePreview, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-8ysVY69a.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aG as UpdateProfileOverrideInput, aH as UpdateProfileSelfInput, aI as UploadAvatarResult, C as CreateResult, aD as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aJ as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aC as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ax as SearchFilters, ay as SearchResponse, aB as SkillSearchResult, q as FeaturedProfile, aA as SimilarProfile, H as FetchSuggestionsOptions, aF as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, aw as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, ar as ResetProfileResult, aK as WipePreview, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-BSx_0eKz.js';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef, E as ExternalAccount, S as SkillSuggestion, Q as OrgFloorVerdict } from './adult-content-BUgP8bpf.js';
6
+ import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef, E as ExternalAccount, S as SkillSuggestion, Q as OrgFloorVerdict } from './adult-content-Bmk22agq.js';
7
7
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, o as EntitySelectResponse, m as EntitySelectRequest, y as FollowFeedPage, s as FeatureFlag } from './feed-dOSy_48Z.js';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.js';
9
9
 
@@ -1,7 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-Be0SH7dO.cjs';
2
- import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef } from './adult-content-BUgP8bpf.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-DFwVpMIH.cjs';
2
+ import { e as Profile, P as ProfileView, g as ProfilePosition, ac as SkillRef } from './adult-content-Bmk22agq.cjs';
3
3
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.cjs';
4
- import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DReI-P0i.cjs';
4
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-TOt7K4ai.cjs';
5
5
 
6
6
  /**
7
7
  * Read the aggregated profile for a handle or DID.
package/dist/index.cjs CHANGED
@@ -5114,6 +5114,36 @@ var ProfileHonorRecordSchema = zod.z.object({
5114
5114
  awardedAt: partialDateSchema.optional(),
5115
5115
  createdAt: datetimeSchema
5116
5116
  });
5117
+ var projectMemberRefSchema = zod.z.object({
5118
+ did: didSchema,
5119
+ role: zod.z.string().optional(),
5120
+ title: zod.z.string().refine(maxGraphemes(128)).max(1280).optional()
5121
+ });
5122
+ var ProfileProjectRecordSchema = zod.z.object({
5123
+ name: zod.z.string().min(1).refine(maxGraphemes(256)).max(2560),
5124
+ description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
5125
+ url: uriSchema.optional(),
5126
+ members: zod.z.array(projectMemberRefSchema).max(50).optional(),
5127
+ /**
5128
+ * The canonical `id.sifa.project.self` this personal entry corresponds to.
5129
+ * A composition link. For the same project recorded on someone else's
5130
+ * profile, see `sameAs`.
5131
+ */
5132
+ projectRef: strongRefSchema.optional(),
5133
+ /**
5134
+ * The same project as recorded on another person's profile. Each side stays
5135
+ * its own record; this only says the two describe one thing. Resolves by
5136
+ * AT-URI, since they will keep editing their copy.
5137
+ */
5138
+ sameAs: externalRecordRefSchema.optional(),
5139
+ position: strongRefSchema.optional(),
5140
+ startedAt: partialDateSchema.optional(),
5141
+ endedAt: partialDateSchema.optional(),
5142
+ labels: selfLabelsSchema.optional(),
5143
+ createdAt: datetimeSchema
5144
+ });
5145
+
5146
+ // src/schemas/profile-involvement.ts
5117
5147
  var PROFILE_INVOLVEMENT_NSID = "id.sifa.profile.involvement";
5118
5148
  var ArtifactLinkSchema = zod.z.object({
5119
5149
  url: uriSchema,
@@ -5138,6 +5168,8 @@ var ProfileInvolvementRecordSchema = zod.z.object({
5138
5168
  // id.sifa.defs#skillRef references (at-uri to a skill record in the same repo).
5139
5169
  skills: zod.z.array(zod.z.object({ uri: zod.z.string() })).max(50).optional(),
5140
5170
  labels: selfLabelsSchema.optional(),
5171
+ collaborators: zod.z.array(projectMemberRefSchema).max(50).optional(),
5172
+ sameAs: externalRecordRefSchema.optional(),
5141
5173
  createdAt: datetimeSchema
5142
5174
  }).passthrough();
5143
5175
  var ProfileLanguageRecordSchema = zod.z.object({
@@ -5220,34 +5252,6 @@ var ProfilePresentationDeliveryRecordSchema = zod.z.object({
5220
5252
  coSpeakers: zod.z.array(zod.z.string().regex(/^did:[a-z]+:[^\s]+$/, "must be a DID")).max(20).optional(),
5221
5253
  createdAt: datetimeSchema
5222
5254
  });
5223
- var projectMemberRefSchema = zod.z.object({
5224
- did: didSchema,
5225
- role: zod.z.string().optional(),
5226
- title: zod.z.string().refine(maxGraphemes(128)).max(1280).optional()
5227
- });
5228
- var ProfileProjectRecordSchema = zod.z.object({
5229
- name: zod.z.string().min(1).refine(maxGraphemes(256)).max(2560),
5230
- description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
5231
- url: uriSchema.optional(),
5232
- members: zod.z.array(projectMemberRefSchema).max(50).optional(),
5233
- /**
5234
- * The canonical `id.sifa.project.self` this personal entry corresponds to.
5235
- * A composition link. For the same project recorded on someone else's
5236
- * profile, see `sameAs`.
5237
- */
5238
- projectRef: strongRefSchema.optional(),
5239
- /**
5240
- * The same project as recorded on another person's profile. Each side stays
5241
- * its own record; this only says the two describe one thing. Resolves by
5242
- * AT-URI, since they will keep editing their copy.
5243
- */
5244
- sameAs: externalRecordRefSchema.optional(),
5245
- position: strongRefSchema.optional(),
5246
- startedAt: partialDateSchema.optional(),
5247
- endedAt: partialDateSchema.optional(),
5248
- labels: selfLabelsSchema.optional(),
5249
- createdAt: datetimeSchema
5250
- });
5251
5255
  var PublicationAuthorSchema = zod.z.object({
5252
5256
  name: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
5253
5257
  did: didSchema.optional()
@@ -5393,7 +5397,7 @@ function roadmapIssueUrl(issue) {
5393
5397
  }
5394
5398
 
5395
5399
  // src/index.ts
5396
- var SIFA_SDK_VERSION = "0.12.50";
5400
+ var SIFA_SDK_VERSION = "0.12.51";
5397
5401
 
5398
5402
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
5399
5403
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;