@singi-labs/sifa-sdk 0.12.51 → 0.12.52

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 (35) hide show
  1. package/dist/{index-BzzF8wBs.d.cts → index-B-BExLL4.d.cts} +27 -3
  2. package/dist/{index-af5Pb60B.d.cts → index-B1F632lI.d.cts} +3 -3
  3. package/dist/{index-Dwo1bnqf.d.ts → index-BeiqwDak.d.ts} +27 -3
  4. package/dist/{index-C3EECrb2.d.ts → index-D9_yFc0m.d.ts} +3 -3
  5. package/dist/index.cjs +186 -1
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +3 -3
  8. package/dist/index.d.ts +3 -3
  9. package/dist/index.js +184 -2
  10. package/dist/index.js.map +1 -1
  11. package/dist/{org-BSx_0eKz.d.ts → org-lRzEl8je.d.ts} +51 -3
  12. package/dist/{org-DFwVpMIH.d.cts → org-xybLlTXW.d.cts} +51 -3
  13. package/dist/{profile-summary-7d0mbAwr.d.ts → profile-summary-elBg0fG6.d.ts} +1 -1
  14. package/dist/{profile-summary-TOt7K4ai.d.cts → profile-summary-jUtrgYrA.d.cts} +1 -1
  15. package/dist/query/fetchers/index.cjs +24 -0
  16. package/dist/query/fetchers/index.cjs.map +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/fetchers/index.js +22 -1
  20. package/dist/query/fetchers/index.js.map +1 -1
  21. package/dist/query/hooks/index.cjs +44 -0
  22. package/dist/query/hooks/index.cjs.map +1 -1
  23. package/dist/query/hooks/index.d.cts +3 -3
  24. package/dist/query/hooks/index.d.ts +3 -3
  25. package/dist/query/hooks/index.js +43 -1
  26. package/dist/query/hooks/index.js.map +1 -1
  27. package/dist/query/index.cjs +48 -0
  28. package/dist/query/index.cjs.map +1 -1
  29. package/dist/query/index.d.cts +7 -7
  30. package/dist/query/index.d.ts +7 -7
  31. package/dist/query/index.js +44 -1
  32. package/dist/query/index.js.map +1 -1
  33. package/dist/{adult-content-Bmk22agq.d.cts → types-CmS4Argp.d.cts} +145 -1
  34. package/dist/{adult-content-Bmk22agq.d.ts → types-CmS4Argp.d.ts} +145 -1
  35. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { b as ProfileSkill, c as ProfilePresentationDelivery, L as LocationValue, d as PdsProviderInfo, e as Profile, f as AccountFacetMode, g as ProfilePosition, h as ProfileCertification, i as ProfileEducation, j as ProfileHonor, k as ProfileLanguage, l as ProfileProject, m as ProfilePublication, n as ProfileInvolvement } from './adult-content-Bmk22agq.cjs';
2
- export { o as ADULT_CONTENT_LABELS, p as ActiveApp, q as ActiveAppView, a as ActivityLabel, r as ActorCard, A as AdultContentLabel, s as AtfundLinkView, t as CertificationView, C as CoSpeaker, u as CoSpeakerView, v as ContributorView, w as CourseView, D as DurationView, x as EducationView, y as Endorsement, z as EndorsementData, E as ExternalAccount, B as ExternalAccountKeytraceClaim, F as ExternalAccountView, G as FeedItem, H as HonorView, I as IndustryDomain, J as InvolvementLinkView, K as InvolvementView, M as LanguageProficiency, N as LanguageView, O as OrgAddressView, Q as OrgFloorVerdict, R as OrgLinkView, T as OrgProfileView, U as PROJECT_ROLES, V as PositionView, W as PresentationDeliveryView, X as PresentationLinkView, Y as PresentationView, Z as ProfileCourse, _ as ProfileIndustry, $ as ProfileInvolvementLink, a0 as ProfileLocation, a1 as ProfileLocationView, a2 as ProfileOverrideSource, a3 as ProfilePresentation, P as ProfileView, a4 as ProfileVolunteering, a5 as ProjectMemberCard, a6 as ProjectMemberView, a7 as ProjectRole, a8 as ProjectView, a9 as PublicationContributor, aa as PublicationView, ab as RecognizedEntity, ac as SkillRef, S as SkillSuggestion, ad as SkillView, ae as TrustStat, af as VerifiedAccount, ag as VolunteeringView, ah as hasAdultContent } from './adult-content-Bmk22agq.cjs';
1
+ import { c as ProfileSkill, d as ProfilePresentationDelivery, L as LocationValue, e as PdsProviderInfo, f as Profile, g as AccountFacetMode, h as ProfilePosition, i as ProfileCertification, j as ProfileEducation, k as ProfileHonor, l as ProfileLanguage, m as ProfileProject, n as ProfilePublication, o as ProfileInvolvement } from './types-CmS4Argp.cjs';
2
+ export { p as ADULT_CONTENT_LABELS, q as ActiveApp, r as ActiveAppView, a as ActivityLabel, s as ActorCard, A as AdultContentLabel, t as AtfundLinkView, u as CertificationView, C as CoSpeaker, v as CoSpeakerView, w as ContributorView, x as CourseView, D as DurationView, y as EducationView, z as Endorsement, B as EndorsementData, E as ExternalAccount, F as ExternalAccountKeytraceClaim, G as ExternalAccountView, H as FeedItem, I as HonorView, J as IndustryDomain, K as InvolvementLinkView, M as InvolvementView, N as LanguageProficiency, O as LanguageView, Q as OrgAddressView, T as OrgFloorVerdict, U as OrgLinkView, V as OrgProfileView, W as PROJECT_ROLES, X as PositionView, Y as PresentationDeliveryView, Z as PresentationLinkView, _ as PresentationView, $ as ProfileCourse, a0 as ProfileIndustry, a1 as ProfileInvolvementLink, a2 as ProfileLocation, a3 as ProfileLocationView, a4 as ProfileOverrideSource, a5 as ProfilePresentation, P as ProfileView, a6 as ProfileVolunteering, a7 as ProjectMemberCard, a8 as ProjectMemberView, a9 as ProjectRole, aa as ProjectView, ab as PublicationContributor, ac as PublicationView, ad as RecognizedEntity, ae as RepoCollectionGroup, af as RepoDeleteOutcome, ag as RepoDeleteRecordResult, R as RepoDeleteResult, ah as RepoGroupDefinition, ai as RepoGroupId, b as RepoInventory, aj as RepoRecordLabel, ak as RepoRecordSummary, al as SIFA_REPO_GROUPS, am as SkillRef, S as SkillSuggestion, an as SkillView, ao as TrustStat, ap as VerifiedAccount, aq as VolunteeringView, ar as describeSifaRecord, as as hasAdultContent, at as repoGroupForCollection } from './types-CmS4Argp.cjs';
3
3
  import { j as PresentationDuration, H as ProfilePresentationDeliveryRecord, J as ProfilePresentationRecord, h as OrgProfileRecord } from './shared-B9ng04Kt.cjs';
4
4
  export { A as ArtifactLink, a as ArtifactLinkSchema, B as BlobRef, b as BlobRefSchema, E as EndorsementConfirmationRecord, c as EndorsementConfirmationRecordSchema, d as EndorsementRecord, e as EndorsementRecordSchema, G as GraphFollowRecord, f as GraphFollowRecordSchema, O as OrgEmploymentAttestationRecord, g as OrgEmploymentAttestationRecordSchema, i as OrgProfileRecordSchema, P as PROFILE_INVOLVEMENT_NSID, k as PresentationDurationSchema, l as PresentationLink, m as PresentationLinkSchema, n as ProfileCertificationRecord, o as ProfileCertificationRecordSchema, p as ProfileCourseRecord, q as ProfileCourseRecordSchema, r as ProfileEducationRecord, s as ProfileEducationRecordSchema, t as ProfileExternalAccountRecord, u as ProfileExternalAccountRecordSchema, v as ProfileHonorRecord, w as ProfileHonorRecordSchema, x as ProfileInvolvementRecord, y as ProfileInvolvementRecordSchema, z as ProfileLanguageRecord, C as ProfileLanguageRecordSchema, D as ProfilePositionRecord, F as ProfilePositionRecordSchema, I as ProfilePresentationDeliveryRecordSchema, K as ProfilePresentationRecordSchema, L as ProfileProjectRecord, M as ProfileProjectRecordSchema, N as ProfilePublicationRecord, Q as ProfilePublicationRecordSchema, R as ProfileSelfRecord, S as ProfileSelfRecordSchema, T as ProfileSkillRecord, U as ProfileSkillRecordSchema, V as ProfileVolunteeringRecord, W as ProfileVolunteeringRecordSchema, X as PublicationAuthor, Y as PublicationAuthorSchema, Z as atUriSchema, _ as cidSchema, $ as datetimeSchema, a0 as didSchema, a1 as externalRecordRefSchema, a2 as languageTagSchema, a3 as makeGraphFollowRecordSchema, a4 as maxGraphemes, a5 as partialDateSchema, a6 as selfLabelsSchema, a7 as skillRefSchema, a8 as strongRefSchema, a9 as uriSchema } from './shared-B9ng04Kt.cjs';
5
5
  import { z } from 'zod';
6
- export { P as ProfileSummary, S as SummarizeProfileViewOptions, s as summarizeProfileView } from './profile-summary-TOt7K4ai.cjs';
6
+ export { P as ProfileSummary, S as SummarizeProfileViewOptions, s as summarizeProfileView } from './profile-summary-jUtrgYrA.cjs';
7
7
  import { k as EntitySearchResult } from './feed-dOSy_48Z.cjs';
8
8
  export { A as AtmosphereFeedItem, a as AtmosphereFeedItemSchema, E as EntityImportSearchResponse, b as EntityImportSearchResponseSchema, c as EntityMintDomainResponse, d as EntityMintDomainResponseSchema, e as EntityResolveDomainRequest, f as EntityResolveDomainRequestSchema, g as EntityResolveDomainResponse, h as EntityResolveDomainResponseSchema, i as EntitySearchResponse, j as EntitySearchResponseSchema, l as EntitySearchResultSchema, m as EntitySelectRequest, n as EntitySelectRequestSchema, o as EntitySelectResponse, p as EntitySelectResponseSchema, F as FEATURE_FLAGS, q as FeatureAllowlistEntry, r as FeatureAllowlistEntrySchema, s as FeatureFlag, t as FeedActor, u as FeedActorSchema, v as FeedCursor, w as FollowFeedItem, x as FollowFeedItemSchema, y as FollowFeedPage, z as FollowFeedPageSchema, B as FollowProfileItem, C as FollowProfilePage, D as FollowProfilePageSchema, G as FollowProfileSchema, S as SifaFeedItem, H as SifaFeedItemSchema, I as decodeFeedCursor, J as encodeFeedCursor } from './feed-dOSy_48Z.cjs';
9
9
 
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { b as ProfileSkill, c as ProfilePresentationDelivery, L as LocationValue, d as PdsProviderInfo, e as Profile, f as AccountFacetMode, g as ProfilePosition, h as ProfileCertification, i as ProfileEducation, j as ProfileHonor, k as ProfileLanguage, l as ProfileProject, m as ProfilePublication, n as ProfileInvolvement } from './adult-content-Bmk22agq.js';
2
- export { o as ADULT_CONTENT_LABELS, p as ActiveApp, q as ActiveAppView, a as ActivityLabel, r as ActorCard, A as AdultContentLabel, s as AtfundLinkView, t as CertificationView, C as CoSpeaker, u as CoSpeakerView, v as ContributorView, w as CourseView, D as DurationView, x as EducationView, y as Endorsement, z as EndorsementData, E as ExternalAccount, B as ExternalAccountKeytraceClaim, F as ExternalAccountView, G as FeedItem, H as HonorView, I as IndustryDomain, J as InvolvementLinkView, K as InvolvementView, M as LanguageProficiency, N as LanguageView, O as OrgAddressView, Q as OrgFloorVerdict, R as OrgLinkView, T as OrgProfileView, U as PROJECT_ROLES, V as PositionView, W as PresentationDeliveryView, X as PresentationLinkView, Y as PresentationView, Z as ProfileCourse, _ as ProfileIndustry, $ as ProfileInvolvementLink, a0 as ProfileLocation, a1 as ProfileLocationView, a2 as ProfileOverrideSource, a3 as ProfilePresentation, P as ProfileView, a4 as ProfileVolunteering, a5 as ProjectMemberCard, a6 as ProjectMemberView, a7 as ProjectRole, a8 as ProjectView, a9 as PublicationContributor, aa as PublicationView, ab as RecognizedEntity, ac as SkillRef, S as SkillSuggestion, ad as SkillView, ae as TrustStat, af as VerifiedAccount, ag as VolunteeringView, ah as hasAdultContent } from './adult-content-Bmk22agq.js';
1
+ import { c as ProfileSkill, d as ProfilePresentationDelivery, L as LocationValue, e as PdsProviderInfo, f as Profile, g as AccountFacetMode, h as ProfilePosition, i as ProfileCertification, j as ProfileEducation, k as ProfileHonor, l as ProfileLanguage, m as ProfileProject, n as ProfilePublication, o as ProfileInvolvement } from './types-CmS4Argp.js';
2
+ export { p as ADULT_CONTENT_LABELS, q as ActiveApp, r as ActiveAppView, a as ActivityLabel, s as ActorCard, A as AdultContentLabel, t as AtfundLinkView, u as CertificationView, C as CoSpeaker, v as CoSpeakerView, w as ContributorView, x as CourseView, D as DurationView, y as EducationView, z as Endorsement, B as EndorsementData, E as ExternalAccount, F as ExternalAccountKeytraceClaim, G as ExternalAccountView, H as FeedItem, I as HonorView, J as IndustryDomain, K as InvolvementLinkView, M as InvolvementView, N as LanguageProficiency, O as LanguageView, Q as OrgAddressView, T as OrgFloorVerdict, U as OrgLinkView, V as OrgProfileView, W as PROJECT_ROLES, X as PositionView, Y as PresentationDeliveryView, Z as PresentationLinkView, _ as PresentationView, $ as ProfileCourse, a0 as ProfileIndustry, a1 as ProfileInvolvementLink, a2 as ProfileLocation, a3 as ProfileLocationView, a4 as ProfileOverrideSource, a5 as ProfilePresentation, P as ProfileView, a6 as ProfileVolunteering, a7 as ProjectMemberCard, a8 as ProjectMemberView, a9 as ProjectRole, aa as ProjectView, ab as PublicationContributor, ac as PublicationView, ad as RecognizedEntity, ae as RepoCollectionGroup, af as RepoDeleteOutcome, ag as RepoDeleteRecordResult, R as RepoDeleteResult, ah as RepoGroupDefinition, ai as RepoGroupId, b as RepoInventory, aj as RepoRecordLabel, ak as RepoRecordSummary, al as SIFA_REPO_GROUPS, am as SkillRef, S as SkillSuggestion, an as SkillView, ao as TrustStat, ap as VerifiedAccount, aq as VolunteeringView, ar as describeSifaRecord, as as hasAdultContent, at as repoGroupForCollection } from './types-CmS4Argp.js';
3
3
  import { j as PresentationDuration, H as ProfilePresentationDeliveryRecord, J as ProfilePresentationRecord, h as OrgProfileRecord } from './shared-B9ng04Kt.js';
4
4
  export { A as ArtifactLink, a as ArtifactLinkSchema, B as BlobRef, b as BlobRefSchema, E as EndorsementConfirmationRecord, c as EndorsementConfirmationRecordSchema, d as EndorsementRecord, e as EndorsementRecordSchema, G as GraphFollowRecord, f as GraphFollowRecordSchema, O as OrgEmploymentAttestationRecord, g as OrgEmploymentAttestationRecordSchema, i as OrgProfileRecordSchema, P as PROFILE_INVOLVEMENT_NSID, k as PresentationDurationSchema, l as PresentationLink, m as PresentationLinkSchema, n as ProfileCertificationRecord, o as ProfileCertificationRecordSchema, p as ProfileCourseRecord, q as ProfileCourseRecordSchema, r as ProfileEducationRecord, s as ProfileEducationRecordSchema, t as ProfileExternalAccountRecord, u as ProfileExternalAccountRecordSchema, v as ProfileHonorRecord, w as ProfileHonorRecordSchema, x as ProfileInvolvementRecord, y as ProfileInvolvementRecordSchema, z as ProfileLanguageRecord, C as ProfileLanguageRecordSchema, D as ProfilePositionRecord, F as ProfilePositionRecordSchema, I as ProfilePresentationDeliveryRecordSchema, K as ProfilePresentationRecordSchema, L as ProfileProjectRecord, M as ProfileProjectRecordSchema, N as ProfilePublicationRecord, Q as ProfilePublicationRecordSchema, R as ProfileSelfRecord, S as ProfileSelfRecordSchema, T as ProfileSkillRecord, U as ProfileSkillRecordSchema, V as ProfileVolunteeringRecord, W as ProfileVolunteeringRecordSchema, X as PublicationAuthor, Y as PublicationAuthorSchema, Z as atUriSchema, _ as cidSchema, $ as datetimeSchema, a0 as didSchema, a1 as externalRecordRefSchema, a2 as languageTagSchema, a3 as makeGraphFollowRecordSchema, a4 as maxGraphemes, a5 as partialDateSchema, a6 as selfLabelsSchema, a7 as skillRefSchema, a8 as strongRefSchema, a9 as uriSchema } from './shared-B9ng04Kt.js';
5
5
  import { z } from 'zod';
6
- export { P as ProfileSummary, S as SummarizeProfileViewOptions, s as summarizeProfileView } from './profile-summary-7d0mbAwr.js';
6
+ export { P as ProfileSummary, S as SummarizeProfileViewOptions, s as summarizeProfileView } from './profile-summary-elBg0fG6.js';
7
7
  import { k as EntitySearchResult } from './feed-dOSy_48Z.js';
8
8
  export { A as AtmosphereFeedItem, a as AtmosphereFeedItemSchema, E as EntityImportSearchResponse, b as EntityImportSearchResponseSchema, c as EntityMintDomainResponse, d as EntityMintDomainResponseSchema, e as EntityResolveDomainRequest, f as EntityResolveDomainRequestSchema, g as EntityResolveDomainResponse, h as EntityResolveDomainResponseSchema, i as EntitySearchResponse, j as EntitySearchResponseSchema, l as EntitySearchResultSchema, m as EntitySelectRequest, n as EntitySelectRequestSchema, o as EntitySelectResponse, p as EntitySelectResponseSchema, F as FEATURE_FLAGS, q as FeatureAllowlistEntry, r as FeatureAllowlistEntrySchema, s as FeatureFlag, t as FeedActor, u as FeedActorSchema, v as FeedCursor, w as FollowFeedItem, x as FollowFeedItemSchema, y as FollowFeedPage, z as FollowFeedPageSchema, B as FollowProfileItem, C as FollowProfilePage, D as FollowProfilePageSchema, G as FollowProfileSchema, S as SifaFeedItem, H as SifaFeedItemSchema, I as decodeFeedCursor, J as encodeFeedCursor } from './feed-dOSy_48Z.js';
9
9
 
package/dist/index.js CHANGED
@@ -5394,9 +5394,191 @@ function roadmapIssueUrl(issue) {
5394
5394
  return `https://github.com/${ROADMAP_ISSUES_REPO}/issues/${issue}`;
5395
5395
  }
5396
5396
 
5397
+ // src/repo/groups.ts
5398
+ var SIFA_REPO_GROUPS = [
5399
+ {
5400
+ id: "profile-basics",
5401
+ collections: [
5402
+ "id.sifa.profile.self",
5403
+ "id.sifa.profile.location",
5404
+ "id.sifa.profile.language",
5405
+ "id.sifa.profile.externalAccount",
5406
+ "id.sifa.org.profile"
5407
+ ]
5408
+ },
5409
+ {
5410
+ id: "work-history",
5411
+ collections: [
5412
+ "id.sifa.profile.position",
5413
+ "id.sifa.profile.volunteering",
5414
+ "id.sifa.org.employmentAttestation"
5415
+ ]
5416
+ },
5417
+ {
5418
+ id: "education",
5419
+ collections: [
5420
+ "id.sifa.profile.education",
5421
+ "id.sifa.profile.course",
5422
+ "id.sifa.profile.certification"
5423
+ ]
5424
+ },
5425
+ {
5426
+ id: "skills-endorsements",
5427
+ collections: [
5428
+ "id.sifa.profile.skill",
5429
+ "id.sifa.endorsement",
5430
+ "id.sifa.endorsement.confirmation"
5431
+ ]
5432
+ },
5433
+ {
5434
+ id: "projects",
5435
+ collections: [
5436
+ "id.sifa.profile.project",
5437
+ "id.sifa.profile.involvement",
5438
+ "id.sifa.project.self",
5439
+ "id.sifa.project.member",
5440
+ "id.sifa.project.membership"
5441
+ ]
5442
+ },
5443
+ {
5444
+ id: "publications-talks",
5445
+ collections: [
5446
+ "id.sifa.profile.publication",
5447
+ "id.sifa.profile.presentation",
5448
+ "id.sifa.profile.presentationDelivery",
5449
+ "id.sifa.profile.honor"
5450
+ ]
5451
+ },
5452
+ {
5453
+ id: "connections",
5454
+ collections: ["id.sifa.graph.follow", "id.sifa.graph.connection", "id.sifa.confirmation"]
5455
+ },
5456
+ {
5457
+ id: "consents-access",
5458
+ collections: [
5459
+ "id.sifa.authProfile",
5460
+ "id.sifa.authProfileAccess",
5461
+ "id.sifa.authConnection",
5462
+ "id.sifa.authMeet",
5463
+ "id.sifa.authProject",
5464
+ "id.sifa.meeting"
5465
+ ]
5466
+ }
5467
+ ];
5468
+ var GROUP_BY_COLLECTION = new Map(
5469
+ SIFA_REPO_GROUPS.flatMap(
5470
+ (group) => group.collections.map((collection) => [collection, group.id])
5471
+ )
5472
+ );
5473
+ function repoGroupForCollection(collection) {
5474
+ return GROUP_BY_COLLECTION.get(collection) ?? "other";
5475
+ }
5476
+
5477
+ // src/repo/labels.ts
5478
+ var LABEL_RULES = {
5479
+ "id.sifa.profile.self": { primary: ["headline"] },
5480
+ "id.sifa.profile.location": { primary: ["locality", "region", "country"] },
5481
+ "id.sifa.profile.language": { primary: ["name"], secondary: ["proficiency"] },
5482
+ "id.sifa.profile.externalAccount": { primary: ["label", "platform"], secondary: ["url"] },
5483
+ "id.sifa.org.profile": { primary: ["name"] },
5484
+ "id.sifa.profile.position": {
5485
+ primary: ["title"],
5486
+ secondary: ["company"],
5487
+ date: ["startedAt"]
5488
+ },
5489
+ "id.sifa.profile.volunteering": {
5490
+ primary: ["role", "organization"],
5491
+ secondary: ["organization"],
5492
+ date: ["startedAt"]
5493
+ },
5494
+ "id.sifa.org.employmentAttestation": {
5495
+ primary: ["title"],
5496
+ date: ["startedAt"],
5497
+ subjectDid: ["subject"]
5498
+ },
5499
+ "id.sifa.profile.education": {
5500
+ primary: ["degree", "fieldOfStudy"],
5501
+ secondary: ["institution"],
5502
+ date: ["startedAt"]
5503
+ },
5504
+ "id.sifa.profile.course": {
5505
+ primary: ["name"],
5506
+ secondary: ["institution"],
5507
+ date: ["completedAt"]
5508
+ },
5509
+ "id.sifa.profile.certification": {
5510
+ primary: ["name"],
5511
+ secondary: ["authority"],
5512
+ date: ["issuedAt"]
5513
+ },
5514
+ "id.sifa.profile.skill": { primary: ["name"], secondary: ["category"] },
5515
+ "id.sifa.endorsement": { primary: ["skillName"], subjectDid: ["subject"] },
5516
+ "id.sifa.endorsement.confirmation": { primary: ["skill"] },
5517
+ "id.sifa.profile.project": {
5518
+ primary: ["title", "name"],
5519
+ secondary: ["role"],
5520
+ date: ["startedAt"]
5521
+ },
5522
+ "id.sifa.profile.involvement": {
5523
+ primary: ["role", "upstream"],
5524
+ secondary: ["upstream"],
5525
+ date: ["startedAt"]
5526
+ },
5527
+ "id.sifa.project.self": { primary: ["name", "title"] },
5528
+ "id.sifa.project.member": { primary: ["role"], subjectDid: ["subject", "did"] },
5529
+ "id.sifa.project.membership": { primary: ["role"], subjectDid: ["subject", "did"] },
5530
+ "id.sifa.profile.publication": {
5531
+ primary: ["title", "name"],
5532
+ secondary: ["publisher"],
5533
+ date: ["publishedAt"]
5534
+ },
5535
+ "id.sifa.profile.presentation": { primary: ["title", "label"] },
5536
+ "id.sifa.profile.presentationDelivery": {
5537
+ primary: ["title"],
5538
+ secondary: ["eventName"],
5539
+ date: ["date"]
5540
+ },
5541
+ "id.sifa.profile.honor": { primary: ["title"], secondary: ["issuer"], date: ["awardedAt"] },
5542
+ "id.sifa.graph.follow": { subjectDid: ["subject"] },
5543
+ "id.sifa.graph.connection": { subjectDid: ["subject"] },
5544
+ "id.sifa.confirmation": {
5545
+ primary: ["subjectName"],
5546
+ secondary: ["relation"],
5547
+ subjectDid: ["subject"]
5548
+ }
5549
+ };
5550
+ function collectionLeaf(collection) {
5551
+ return collection.slice(collection.lastIndexOf(".") + 1);
5552
+ }
5553
+ function pickString(record, fields) {
5554
+ for (const field of fields) {
5555
+ const raw = record[field];
5556
+ if (typeof raw !== "string") continue;
5557
+ const trimmed = raw.trim();
5558
+ if (trimmed.length > 0) return trimmed;
5559
+ }
5560
+ return void 0;
5561
+ }
5562
+ function describeSifaRecord(collection, value) {
5563
+ const leaf = collectionLeaf(collection);
5564
+ const rule = LABEL_RULES[collection];
5565
+ if (!rule || typeof value !== "object" || value === null) return { primary: leaf };
5566
+ const record = value;
5567
+ const label = {
5568
+ primary: (rule.primary && pickString(record, rule.primary)) ?? leaf
5569
+ };
5570
+ const secondary = rule.secondary && pickString(record, rule.secondary);
5571
+ if (secondary !== void 0 && secondary !== label.primary) label.secondary = secondary;
5572
+ const date = rule.date && pickString(record, rule.date);
5573
+ if (date !== void 0) label.date = date;
5574
+ const subjectDid = rule.subjectDid && pickString(record, rule.subjectDid);
5575
+ if (subjectDid !== void 0) label.subjectDid = subjectDid;
5576
+ return label;
5577
+ }
5578
+
5397
5579
  // src/index.ts
5398
- var SIFA_SDK_VERSION = "0.12.51";
5580
+ var SIFA_SDK_VERSION = "0.12.52";
5399
5581
 
5400
- export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, ArtifactLinkSchema, AtmosphereFeedItemSchema, BlobRefSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntityMintDomainResponseSchema, EntityResolveDomainRequestSchema, EntityResolveDomainResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PROFILE_INVOLVEMENT_NSID, PROJECT_ROLES, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, ROADMAP_ISSUES_REPO, ROADMAP_ITEM_META, SECTION_GROUPS, SECTION_LABELS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, getActivityVerbsVersion, getAppCategoryIcon, getAppIdForCollection, getArtifactLinkKindLabel, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, rendersCompanyProfile, rendersPersonalProfile, resolveAccountFacetMode, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, skillRefSchema, slugifyTitle, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamAddressSchema, streamAuthorSchema, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamGeoSchema, streamMediaSchema, streamRichSegmentSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, summarizeProfileView, toStreamCardVM, toStreamCardVMs, truncateGraphemes, uriSchema, verbForCollection, visibleItems, youtubeThumbnailUrl, youtubeVideoId };
5582
+ export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, ArtifactLinkSchema, AtmosphereFeedItemSchema, BlobRefSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntityMintDomainResponseSchema, EntityResolveDomainRequestSchema, EntityResolveDomainResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PROFILE_INVOLVEMENT_NSID, PROJECT_ROLES, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, ROADMAP_ISSUES_REPO, ROADMAP_ITEM_META, SECTION_GROUPS, SECTION_LABELS, SIFA_REPO_GROUPS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, describeSifaRecord, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, getActivityVerbsVersion, getAppCategoryIcon, getAppIdForCollection, getArtifactLinkKindLabel, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, rendersCompanyProfile, rendersPersonalProfile, repoGroupForCollection, resolveAccountFacetMode, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, skillRefSchema, slugifyTitle, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamAddressSchema, streamAuthorSchema, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamGeoSchema, streamMediaSchema, streamRichSegmentSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, summarizeProfileView, toStreamCardVM, toStreamCardVMs, truncateGraphemes, uriSchema, verbForCollection, visibleItems, youtubeThumbnailUrl, youtubeVideoId };
5401
5583
  //# sourceMappingURL=index.js.map
5402
5584
  //# sourceMappingURL=index.js.map