@singi-labs/sifa-sdk 0.11.21 → 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.cjs +16 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +15 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +5 -0
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +15 -0
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2731,6 +2731,9 @@ var ProfileCertificationRecordSchema = z.object({
|
|
|
2731
2731
|
name: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
|
|
2732
2732
|
authority: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2733
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(),
|
|
2734
2737
|
credentialId: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2735
2738
|
credentialUrl: uriSchema.optional(),
|
|
2736
2739
|
issuedAt: datetimeSchema.optional(),
|
|
@@ -2742,6 +2745,9 @@ var ProfileCourseRecordSchema = z.object({
|
|
|
2742
2745
|
name: z.string().min(1).refine(maxGraphemes(200)).max(2e3),
|
|
2743
2746
|
number: z.string().refine(maxGraphemes(50)).max(500).optional(),
|
|
2744
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(),
|
|
2745
2751
|
education: strongRefSchema.optional(),
|
|
2746
2752
|
// AT-URI of the associated id.sifa.profile.certification record. Plain
|
|
2747
2753
|
// at-uri (not a strongRef) so the link tracks the live certification.
|
|
@@ -2751,6 +2757,9 @@ var ProfileCourseRecordSchema = z.object({
|
|
|
2751
2757
|
var ProfileEducationRecordSchema = z.object({
|
|
2752
2758
|
institution: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
|
|
2753
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(),
|
|
2754
2763
|
degree: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2755
2764
|
fieldOfStudy: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2756
2765
|
grade: z.string().refine(maxGraphemes(50)).max(500).optional(),
|
|
@@ -2774,6 +2783,9 @@ var ProfileHonorRecordSchema = z.object({
|
|
|
2774
2783
|
title: z.string().min(1).refine(maxGraphemes(200)).max(2e3),
|
|
2775
2784
|
issuer: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2776
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(),
|
|
2777
2789
|
description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
2778
2790
|
awardedAt: datetimeSchema.optional(),
|
|
2779
2791
|
createdAt: datetimeSchema
|
|
@@ -2888,6 +2900,9 @@ var ProfileSkillRecordSchema = z.object({
|
|
|
2888
2900
|
var ProfileVolunteeringRecordSchema = z.object({
|
|
2889
2901
|
organization: z.string().min(1).refine(maxGraphemes(100)).max(1e3),
|
|
2890
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(),
|
|
2891
2906
|
role: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2892
2907
|
cause: z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2893
2908
|
description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
@@ -2897,7 +2912,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
2897
2912
|
});
|
|
2898
2913
|
|
|
2899
2914
|
// src/index.ts
|
|
2900
|
-
var SIFA_SDK_VERSION = "0.11.
|
|
2915
|
+
var SIFA_SDK_VERSION = "0.11.22";
|
|
2901
2916
|
|
|
2902
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 };
|
|
2903
2918
|
//# sourceMappingURL=index.js.map
|