@singi-labs/sifa-sdk 0.12.61 → 0.12.63

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/{index-B1WYOzm1.d.ts → index-0YagaVMZ.d.ts} +2 -2
  2. package/dist/{index-czrerd84.d.ts → index-Bzz43OK-.d.ts} +3 -3
  3. package/dist/{index-Dqe0Nlck.d.cts → index-nKxVAIQB.d.cts} +3 -3
  4. package/dist/{index-BcKfdI4X.d.cts → index-wqDm7eYP.d.cts} +2 -2
  5. package/dist/index.cjs +23 -4
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +4 -4
  8. package/dist/index.d.ts +4 -4
  9. package/dist/index.js +23 -4
  10. package/dist/index.js.map +1 -1
  11. package/dist/{org-GI1GVjZw.d.cts → org-CP0v111-.d.cts} +1 -1
  12. package/dist/{org-66bQLHJd.d.ts → org-e-XmEErj.d.ts} +1 -1
  13. package/dist/{profile-summary-Bqj3TDVd.d.cts → profile-summary-2y26X2x_.d.cts} +1 -1
  14. package/dist/{profile-summary-YZXjMymn.d.ts → profile-summary-Yoz6yqZF.d.ts} +1 -1
  15. package/dist/query/fetchers/index.d.cts +4 -4
  16. package/dist/query/fetchers/index.d.ts +4 -4
  17. package/dist/query/hooks/index.d.cts +3 -3
  18. package/dist/query/hooks/index.d.ts +3 -3
  19. package/dist/query/index.d.cts +7 -7
  20. package/dist/query/index.d.ts +7 -7
  21. package/dist/schemas/index.cjs +11 -3
  22. package/dist/schemas/index.cjs.map +1 -1
  23. package/dist/schemas/index.d.cts +1 -1
  24. package/dist/schemas/index.d.ts +1 -1
  25. package/dist/schemas/index.js +11 -3
  26. package/dist/schemas/index.js.map +1 -1
  27. package/dist/schemas/write/index.cjs +5 -0
  28. package/dist/schemas/write/index.cjs.map +1 -1
  29. package/dist/schemas/write/index.d.cts +3 -0
  30. package/dist/schemas/write/index.d.ts +3 -0
  31. package/dist/schemas/write/index.js +5 -0
  32. package/dist/schemas/write/index.js.map +1 -1
  33. package/dist/{shared-B9ng04Kt.d.cts → shared-BibYErTJ.d.cts} +3 -0
  34. package/dist/{shared-B9ng04Kt.d.ts → shared-BibYErTJ.d.ts} +3 -0
  35. package/dist/{types-BkRDvKTp.d.ts → types-BreNOGZr.d.ts} +5 -0
  36. package/dist/{types-BiBx2Utr.d.cts → types-qfncrl4o.d.cts} +5 -0
  37. package/package.json +1 -1
@@ -1,10 +1,10 @@
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, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, C as CreateResult, aE as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aK 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, aD as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ay as SearchFilters, az as SearchResponse, aC as SkillSearchResult, q as FeaturedProfile, aB as SimilarProfile, H as FetchSuggestionsOptions, aG 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, ax as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, as as ResetProfileResult, aL as WipePreview, ar as RepoDeleteInput, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-66bQLHJd.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, C as CreateResult, aE as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aK 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, aD as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ay as SearchFilters, az as SearchResponse, aC as SkillSearchResult, q as FeaturedProfile, aB as SimilarProfile, H as FetchSuggestionsOptions, aG 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, ax as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, as as ResetProfileResult, aL as WipePreview, ar as RepoDeleteInput, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-e-XmEErj.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 { d as Profile, e as ProfilePosition, K as SkillRef, E as ExternalAccount, S as SkillSuggestion, s as OrgFloorVerdict } from './index-DMyroYoB.js';
7
- import { P as ProfileView, R as RepoDeleteResult, b as RepoInventory } from './types-BkRDvKTp.js';
7
+ import { P as ProfileView, R as RepoDeleteResult, b as RepoInventory } from './types-BreNOGZr.js';
8
8
  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';
9
9
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.js';
10
10
 
@@ -1,8 +1,8 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-66bQLHJd.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-e-XmEErj.js';
2
2
  import { d as Profile, e as ProfilePosition, K as SkillRef } from './index-DMyroYoB.js';
3
- import { P as ProfileView } from './types-BkRDvKTp.js';
3
+ import { P as ProfileView } from './types-BreNOGZr.js';
4
4
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.js';
5
- import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-YZXjMymn.js';
5
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-Yoz6yqZF.js';
6
6
 
7
7
  /**
8
8
  * Read the aggregated profile for a handle or DID.
@@ -1,8 +1,8 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-GI1GVjZw.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-CP0v111-.cjs';
2
2
  import { d as Profile, e as ProfilePosition, K as SkillRef } from './index-DMyroYoB.cjs';
3
- import { P as ProfileView } from './types-BiBx2Utr.cjs';
3
+ import { P as ProfileView } from './types-qfncrl4o.cjs';
4
4
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.cjs';
5
- import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-Bqj3TDVd.cjs';
5
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-2y26X2x_.cjs';
6
6
 
7
7
  /**
8
8
  * Read the aggregated profile for a handle or DID.
@@ -1,10 +1,10 @@
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, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, C as CreateResult, aE as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aK 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, aD as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ay as SearchFilters, az as SearchResponse, aC as SkillSearchResult, q as FeaturedProfile, aB as SimilarProfile, H as FetchSuggestionsOptions, aG 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, ax as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, as as ResetProfileResult, aL as WipePreview, ar as RepoDeleteInput, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-GI1GVjZw.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, C as CreateResult, aE as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aK 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, aD as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ay as SearchFilters, az as SearchResponse, aC as SkillSearchResult, q as FeaturedProfile, aB as SimilarProfile, H as FetchSuggestionsOptions, aG 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, ax as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, as as ResetProfileResult, aL as WipePreview, ar as RepoDeleteInput, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-CP0v111-.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 { d as Profile, e as ProfilePosition, K as SkillRef, E as ExternalAccount, S as SkillSuggestion, s as OrgFloorVerdict } from './index-DMyroYoB.cjs';
7
- import { P as ProfileView, R as RepoDeleteResult, b as RepoInventory } from './types-BiBx2Utr.cjs';
7
+ import { P as ProfileView, R as RepoDeleteResult, b as RepoInventory } from './types-qfncrl4o.cjs';
8
8
  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';
9
9
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.cjs';
10
10
 
package/dist/index.cjs CHANGED
@@ -448,6 +448,17 @@ var EMPLOYMENT_TYPE_GROUPS = [
448
448
  { value: "id.sifa.defs#fellowship", label: "Fellowship" },
449
449
  { value: "id.sifa.defs#trainee", label: "Trainee" }
450
450
  ]
451
+ },
452
+ // A non-executive director is normally not an employee, and neither is a volunteer:
453
+ // this axis was never payroll-only. These roles carry a title, duties and a term, so
454
+ // they belong on a position rather than on the investment record.
455
+ {
456
+ label: "Governance & advisory",
457
+ items: [
458
+ { value: "id.sifa.defs#boardMember", label: "Board member" },
459
+ { value: "id.sifa.defs#boardObserver", label: "Board observer" },
460
+ { value: "id.sifa.defs#advisor", label: "Advisor" }
461
+ ]
451
462
  }
452
463
  ];
453
464
  var EMPLOYMENT_TYPE_LABELS = {
@@ -5233,15 +5244,23 @@ var ProfileLanguageRecordSchema = zod.z.object({
5233
5244
  proficiency: zod.z.string().optional(),
5234
5245
  createdAt: datetimeSchema
5235
5246
  });
5247
+ var entityRefField = zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional();
5236
5248
  var ProfilePositionRecordSchema = zod.z.object({
5237
5249
  company: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3).optional(),
5238
5250
  companyDid: didSchema.optional(),
5239
- // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
5240
- // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
5241
- entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
5251
+ entityRef: entityRefField,
5242
5252
  title: zod.z.string().min(1).refine(maxGraphemes(100)).max(1e3),
5243
5253
  description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
5244
5254
  employmentType: zod.z.string().optional(),
5255
+ // Disclosure that the role is held as someone else's representative -- most often
5256
+ // a fund whose board seat this is. Capped at the lexicon's 256 graphemes rather
5257
+ // than the tighter limit used for `company`: a schema stricter than the lexicon
5258
+ // would reject records other clients can legally write.
5259
+ onBehalfOf: zod.z.string().refine(maxGraphemes(256)).max(2560).optional(),
5260
+ // May resolve to an organization or to a person (a family-office principal); a DID
5261
+ // does not distinguish the two, so this stays permissive.
5262
+ onBehalfOfDid: didSchema.optional(),
5263
+ onBehalfOfEntityRef: entityRefField,
5245
5264
  workplaceType: zod.z.string().optional(),
5246
5265
  location: zod.z.unknown().optional(),
5247
5266
  startedAt: partialDateSchema,
@@ -5648,7 +5667,7 @@ function describeSifaRecord(collection, value) {
5648
5667
  }
5649
5668
 
5650
5669
  // src/index.ts
5651
- var SIFA_SDK_VERSION = "0.12.61";
5670
+ var SIFA_SDK_VERSION = "0.12.63";
5652
5671
 
5653
5672
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
5654
5673
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;