@singi-labs/sifa-sdk 0.11.20 → 0.11.22

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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ProfileSkill, b as ProfilePresentationDelivery, L as LocationValue, c as PdsProviderInfo, d as Profile } from './adult-content-Qf1-uAyx.cjs';
2
- export { e as ADULT_CONTENT_LABELS, f as ActiveApp, a as ActivityLabel, A as AdultContentLabel, C as CoSpeaker, g as Endorsement, h as EndorsementData, E as ExternalAccount, i as ExternalAccountKeytraceClaim, F as FeedItem, j as LanguageProficiency, k as PresentationLinkView, l as ProfileCertification, m as ProfileCourse, n as ProfileEducation, o as ProfileHonor, p as ProfileIndustry, q as ProfileLanguage, r as ProfileLocation, s as ProfileOverrideSource, t as ProfilePosition, u as ProfilePresentation, v as ProfileProject, w as ProfilePublication, x as ProfileVolunteering, y as PublicationContributor, z as SkillRef, S as SkillSuggestion, T as TrustStat, V as VerifiedAccount, B as hasAdultContent } from './adult-content-Qf1-uAyx.cjs';
1
+ import { P as ProfileSkill, b as ProfilePresentationDelivery, L as LocationValue, c as PdsProviderInfo, d as Profile } from './adult-content-B6aagF8N.cjs';
2
+ export { e as ADULT_CONTENT_LABELS, f as ActiveApp, a as ActivityLabel, A as AdultContentLabel, C as CoSpeaker, g as Endorsement, h as EndorsementData, E as ExternalAccount, i as ExternalAccountKeytraceClaim, F as FeedItem, j as LanguageProficiency, k as PresentationLinkView, l as ProfileCertification, m as ProfileCourse, n as ProfileEducation, o as ProfileHonor, p as ProfileIndustry, q as ProfileLanguage, r as ProfileLocation, s as ProfileOverrideSource, t as ProfilePosition, u as ProfilePresentation, v as ProfileProject, w as ProfilePublication, x as ProfileVolunteering, y as PublicationContributor, z as SkillRef, S as SkillSuggestion, T as TrustStat, V as VerifiedAccount, B as hasAdultContent } from './adult-content-B6aagF8N.cjs';
3
3
  import { PresentationDuration, ProfilePresentationDeliveryRecord, ProfilePresentationRecord } from './schemas/index.cjs';
4
4
  export { EndorsementConfirmationRecord, EndorsementConfirmationRecordSchema, EndorsementRecord, EndorsementRecordSchema, GraphFollowRecord, GraphFollowRecordSchema, PresentationDurationSchema, PresentationLink, PresentationLinkSchema, ProfileCertificationRecord, ProfileCertificationRecordSchema, ProfileCourseRecord, ProfileCourseRecordSchema, ProfileEducationRecord, ProfileEducationRecordSchema, ProfileExternalAccountRecord, ProfileExternalAccountRecordSchema, ProfileHonorRecord, ProfileHonorRecordSchema, ProfileLanguageRecord, ProfileLanguageRecordSchema, ProfilePositionRecord, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecord, ProfileProjectRecordSchema, ProfilePublicationRecord, ProfilePublicationRecordSchema, ProfileSelfRecord, ProfileSelfRecordSchema, ProfileSkillRecord, ProfileSkillRecordSchema, ProfileVolunteeringRecord, ProfileVolunteeringRecordSchema, PublicationAuthor, PublicationAuthorSchema, atUriSchema, cidSchema, datetimeSchema, didSchema, externalRecordRefSchema, languageTagSchema, makeGraphFollowRecordSchema, maxGraphemes, selfLabelsSchema, strongRefSchema, uriSchema } from './schemas/index.cjs';
5
5
  import { E as EntitySearchResult } from './feed-BaHtJXYR.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ProfileSkill, b as ProfilePresentationDelivery, L as LocationValue, c as PdsProviderInfo, d as Profile } from './adult-content-Qf1-uAyx.js';
2
- export { e as ADULT_CONTENT_LABELS, f as ActiveApp, a as ActivityLabel, A as AdultContentLabel, C as CoSpeaker, g as Endorsement, h as EndorsementData, E as ExternalAccount, i as ExternalAccountKeytraceClaim, F as FeedItem, j as LanguageProficiency, k as PresentationLinkView, l as ProfileCertification, m as ProfileCourse, n as ProfileEducation, o as ProfileHonor, p as ProfileIndustry, q as ProfileLanguage, r as ProfileLocation, s as ProfileOverrideSource, t as ProfilePosition, u as ProfilePresentation, v as ProfileProject, w as ProfilePublication, x as ProfileVolunteering, y as PublicationContributor, z as SkillRef, S as SkillSuggestion, T as TrustStat, V as VerifiedAccount, B as hasAdultContent } from './adult-content-Qf1-uAyx.js';
1
+ import { P as ProfileSkill, b as ProfilePresentationDelivery, L as LocationValue, c as PdsProviderInfo, d as Profile } from './adult-content-B6aagF8N.js';
2
+ export { e as ADULT_CONTENT_LABELS, f as ActiveApp, a as ActivityLabel, A as AdultContentLabel, C as CoSpeaker, g as Endorsement, h as EndorsementData, E as ExternalAccount, i as ExternalAccountKeytraceClaim, F as FeedItem, j as LanguageProficiency, k as PresentationLinkView, l as ProfileCertification, m as ProfileCourse, n as ProfileEducation, o as ProfileHonor, p as ProfileIndustry, q as ProfileLanguage, r as ProfileLocation, s as ProfileOverrideSource, t as ProfilePosition, u as ProfilePresentation, v as ProfileProject, w as ProfilePublication, x as ProfileVolunteering, y as PublicationContributor, z as SkillRef, S as SkillSuggestion, T as TrustStat, V as VerifiedAccount, B as hasAdultContent } from './adult-content-B6aagF8N.js';
3
3
  import { PresentationDuration, ProfilePresentationDeliveryRecord, ProfilePresentationRecord } from './schemas/index.js';
4
4
  export { EndorsementConfirmationRecord, EndorsementConfirmationRecordSchema, EndorsementRecord, EndorsementRecordSchema, GraphFollowRecord, GraphFollowRecordSchema, PresentationDurationSchema, PresentationLink, PresentationLinkSchema, ProfileCertificationRecord, ProfileCertificationRecordSchema, ProfileCourseRecord, ProfileCourseRecordSchema, ProfileEducationRecord, ProfileEducationRecordSchema, ProfileExternalAccountRecord, ProfileExternalAccountRecordSchema, ProfileHonorRecord, ProfileHonorRecordSchema, ProfileLanguageRecord, ProfileLanguageRecordSchema, ProfilePositionRecord, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecord, ProfileProjectRecordSchema, ProfilePublicationRecord, ProfilePublicationRecordSchema, ProfileSelfRecord, ProfileSelfRecordSchema, ProfileSkillRecord, ProfileSkillRecordSchema, ProfileVolunteeringRecord, ProfileVolunteeringRecordSchema, PublicationAuthor, PublicationAuthorSchema, atUriSchema, cidSchema, datetimeSchema, didSchema, externalRecordRefSchema, languageTagSchema, makeGraphFollowRecordSchema, maxGraphemes, selfLabelsSchema, strongRefSchema, uriSchema } from './schemas/index.js';
5
5
  import { E as EntitySearchResult } from './feed-BaHtJXYR.js';
package/dist/index.js CHANGED
@@ -439,15 +439,19 @@ var EMPLOYMENT_TYPE_GROUPS = [
439
439
  { value: "id.sifa.defs#fellowship", label: "Fellowship" },
440
440
  { value: "id.sifa.defs#trainee", label: "Trainee" }
441
441
  ]
442
- },
443
- {
444
- label: "Other",
445
- items: [{ value: "id.sifa.defs#volunteer", label: "Volunteer" }]
446
442
  }
447
443
  ];
448
- var EMPLOYMENT_TYPE_LABELS = Object.fromEntries(
449
- EMPLOYMENT_TYPE_GROUPS.flatMap((g) => g.items).map((o) => [o.value, o.label])
450
- );
444
+ var EMPLOYMENT_TYPE_LABELS = {
445
+ ...Object.fromEntries(
446
+ EMPLOYMENT_TYPE_GROUPS.flatMap((g) => g.items).map((o) => [o.value, o.label])
447
+ ),
448
+ // `volunteer` is retained for legacy records but no longer offered in the
449
+ // editor dropdown. Volunteering is a distinct thing (no payroll, no formal
450
+ // role, no obligation) rather than a kind of employment, so it lives in the
451
+ // dedicated `id.sifa.profile.volunteering` section, not on the employment-type
452
+ // axis. Kept here so old positions still render a human label, not the raw NSID.
453
+ "id.sifa.defs#volunteer": "Volunteer"
454
+ };
451
455
  function getEmploymentTypeLabel(value) {
452
456
  if (!value) return void 0;
453
457
  return EMPLOYMENT_TYPE_LABELS[value] ?? value;
@@ -2727,6 +2731,9 @@ var ProfileCertificationRecordSchema = z.object({
2727
2731
  name: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2728
2732
  authority: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2729
2733
  authorityDid: didSchema.optional(),
2734
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2735
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2736
+ entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2730
2737
  credentialId: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2731
2738
  credentialUrl: uriSchema.optional(),
2732
2739
  issuedAt: datetimeSchema.optional(),
@@ -2738,6 +2745,9 @@ var ProfileCourseRecordSchema = z.object({
2738
2745
  name: z.string().min(1).refine(maxGraphemes(200)).max(2e3),
2739
2746
  number: z.string().refine(maxGraphemes(50)).max(500).optional(),
2740
2747
  institution: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2748
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2749
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2750
+ entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2741
2751
  education: strongRefSchema.optional(),
2742
2752
  // AT-URI of the associated id.sifa.profile.certification record. Plain
2743
2753
  // at-uri (not a strongRef) so the link tracks the live certification.
@@ -2747,6 +2757,9 @@ var ProfileCourseRecordSchema = z.object({
2747
2757
  var ProfileEducationRecordSchema = z.object({
2748
2758
  institution: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2749
2759
  institutionDid: didSchema.optional(),
2760
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2761
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2762
+ entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2750
2763
  degree: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2751
2764
  fieldOfStudy: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2752
2765
  grade: z.string().refine(maxGraphemes(50)).max(500).optional(),
@@ -2770,6 +2783,9 @@ var ProfileHonorRecordSchema = z.object({
2770
2783
  title: z.string().min(1).refine(maxGraphemes(200)).max(2e3),
2771
2784
  issuer: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2772
2785
  issuerDid: didSchema.optional(),
2786
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2787
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2788
+ entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2773
2789
  description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
2774
2790
  awardedAt: datetimeSchema.optional(),
2775
2791
  createdAt: datetimeSchema
@@ -2884,6 +2900,9 @@ var ProfileSkillRecordSchema = z.object({
2884
2900
  var ProfileVolunteeringRecordSchema = z.object({
2885
2901
  organization: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
2886
2902
  organizationDid: didSchema.optional(),
2903
+ // Portable org entity identifier (Wikidata/ROR/LEI URI) from the typeahead.
2904
+ // Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
2905
+ entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
2887
2906
  role: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2888
2907
  cause: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
2889
2908
  description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
@@ -2893,7 +2912,7 @@ var ProfileVolunteeringRecordSchema = z.object({
2893
2912
  });
2894
2913
 
2895
2914
  // src/index.ts
2896
- var SIFA_SDK_VERSION = "0.11.20";
2915
+ var SIFA_SDK_VERSION = "0.11.22";
2897
2916
 
2898
2917
  export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, AtmosphereFeedItemSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, SifaFeedItemSchema, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, externalRecordRefSchema, findIndustry, formatCompanyName, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, getActivityTaxonomyVersion, getActivityTier, getAppCategoryIcon, getAppIdForCollection, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getWorkplaceTypeLabel, groupSkillsByCategory, hasAdultContent, isAppCategory, isCompanyRequired, isKnownAppId, isKnownPlatform, isLinked, isPseudoEmployer, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, profileToDimensionInputs, relativeLuminance, resolveCardHealth, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, sortByDateDesc, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, truncateGraphemes, uriSchema };
2899
2918
  //# sourceMappingURL=index.js.map