@singi-labs/sifa-sdk 0.12.15 → 0.12.17
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/{adult-content-D2Dy1w2s.d.cts → adult-content-B06bKHpA.d.cts} +35 -5
- package/dist/{adult-content-D2Dy1w2s.d.ts → adult-content-B06bKHpA.d.ts} +35 -5
- package/dist/{index-Br8vBw4N.d.ts → index-DrOzgNB8.d.ts} +2 -2
- package/dist/{index-B9aqJbsG.d.cts → index-NMOaWN-G.d.cts} +2 -2
- package/dist/{index-BQ46POs-.d.ts → index-QUCsiCnz.d.ts} +2 -2
- package/dist/{index-CZ8BkCCc.d.cts → index-nBCabKk0.d.cts} +2 -2
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -11
- package/dist/index.d.ts +2 -11
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/{org-Bflg9EiB.d.ts → org-DKbNPMry.d.ts} +1 -1
- package/dist/{org-Df5IjADP.d.cts → org-UaNOo0ya.d.cts} +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/index.d.cts +5 -5
- package/dist/query/index.d.ts +5 -5
- package/package.json +1 -1
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, e as ProfilePosition, f as ProfileCertification, g as ProfileEducation, h as ProfileHonor, i as ProfileLanguage, j as ProfileProject, k as ProfilePublication, l as ProfileInvolvement } from './adult-content-
|
|
2
|
-
export { m as ADULT_CONTENT_LABELS, n as ActiveApp, o as ActiveAppView, a as ActivityLabel, A as AdultContentLabel, p as AtfundLinkView, q as CertificationView, C as CoSpeaker, r as CoSpeakerView, s as ContributorView, t as CourseView, D as DurationView, u as EducationView, v as Endorsement, w as EndorsementData, E as ExternalAccount, x as ExternalAccountKeytraceClaim, y as ExternalAccountView, F as FeedItem, H as HonorView, I as IndustryDomain, z as InvolvementLinkView, B as InvolvementView, G as LanguageProficiency, J as LanguageView, O as OrgFloorVerdict, K as OrgProfileView, M as PositionView, N as PresentationDeliveryView, Q as PresentationLinkView, R as PresentationView, T as ProfileCourse, U as ProfileIndustry, V as ProfileInvolvementLink, W as ProfileLocation, X as ProfileLocationView, Y as ProfileOverrideSource, Z as ProfilePresentation, _ as ProfileView, $ as ProfileVolunteering, a0 as ProjectView, a1 as PublicationContributor, a2 as PublicationView, a3 as SkillRef, S as SkillSuggestion,
|
|
1
|
+
import { P as ProfileSkill, b as ProfilePresentationDelivery, L as LocationValue, c as PdsProviderInfo, d as Profile, e as ProfilePosition, f as ProfileCertification, g as ProfileEducation, h as ProfileHonor, i as ProfileLanguage, j as ProfileProject, k as ProfilePublication, l as ProfileInvolvement } from './adult-content-B06bKHpA.cjs';
|
|
2
|
+
export { m as ADULT_CONTENT_LABELS, n as ActiveApp, o as ActiveAppView, a as ActivityLabel, A as AdultContentLabel, p as AtfundLinkView, q as CertificationView, C as CoSpeaker, r as CoSpeakerView, s as ContributorView, t as CourseView, D as DurationView, u as EducationView, v as Endorsement, w as EndorsementData, E as ExternalAccount, x as ExternalAccountKeytraceClaim, y as ExternalAccountView, F as FeedItem, H as HonorView, I as IndustryDomain, z as InvolvementLinkView, B as InvolvementView, G as LanguageProficiency, J as LanguageView, O as OrgFloorVerdict, K as OrgProfileView, M as PositionView, N as PresentationDeliveryView, Q as PresentationLinkView, R as PresentationView, T as ProfileCourse, U as ProfileIndustry, V as ProfileInvolvementLink, W as ProfileLocation, X as ProfileLocationView, Y as ProfileOverrideSource, Z as ProfilePresentation, _ as ProfileView, $ as ProfileVolunteering, a0 as ProjectView, a1 as PublicationContributor, a2 as PublicationView, a3 as RecognizedEntity, a4 as SkillRef, S as SkillSuggestion, a5 as SkillView, a6 as TrustStat, a7 as VerifiedAccount, a8 as VolunteeringView, a9 as hasAdultContent } from './adult-content-B06bKHpA.cjs';
|
|
3
3
|
import { PresentationDuration, ProfilePresentationDeliveryRecord, ProfilePresentationRecord, OrgProfileRecord } from './schemas/index.cjs';
|
|
4
4
|
export { ArtifactLink, ArtifactLinkSchema, BlobRef, BlobRefSchema, EndorsementConfirmationRecord, EndorsementConfirmationRecordSchema, EndorsementRecord, EndorsementRecordSchema, GraphFollowRecord, GraphFollowRecordSchema, OrgEmploymentAttestationRecord, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PROFILE_INVOLVEMENT_NSID, PresentationDurationSchema, PresentationLink, PresentationLinkSchema, ProfileCertificationRecord, ProfileCertificationRecordSchema, ProfileCourseRecord, ProfileCourseRecordSchema, ProfileEducationRecord, ProfileEducationRecordSchema, ProfileExternalAccountRecord, ProfileExternalAccountRecordSchema, ProfileHonorRecord, ProfileHonorRecordSchema, ProfileInvolvementRecord, ProfileInvolvementRecordSchema, 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, partialDateSchema, selfLabelsSchema, strongRefSchema, uriSchema } from './schemas/index.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -158,15 +158,6 @@ declare const PLATFORM_LABELS: {
|
|
|
158
158
|
readonly keyoxide: "Keyoxide";
|
|
159
159
|
};
|
|
160
160
|
type PlatformId = keyof typeof PLATFORM_LABELS;
|
|
161
|
-
/**
|
|
162
|
-
* Normalize a platform value to the short code used throughout the app (the
|
|
163
|
-
* editor, the API `VALID_PLATFORMS` enum, the DB, and {@link PLATFORM_LABELS}).
|
|
164
|
-
*
|
|
165
|
-
* External-account records may carry `platform` as the raw lexicon knownValue
|
|
166
|
-
* token (`id.sifa.defs#platformLinkedin`) instead of the short code — written by
|
|
167
|
-
* some third-party apps. This maps the token to its lowercase suffix
|
|
168
|
-
* (`linkedin`) and passes short codes / unknown values through unchanged.
|
|
169
|
-
*/
|
|
170
161
|
declare function normalizePlatformId(platform: string): string;
|
|
171
162
|
declare function isKnownPlatform(platform: string): platform is PlatformId;
|
|
172
163
|
declare function getPlatformLabel(platform: string): string;
|
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, e as ProfilePosition, f as ProfileCertification, g as ProfileEducation, h as ProfileHonor, i as ProfileLanguage, j as ProfileProject, k as ProfilePublication, l as ProfileInvolvement } from './adult-content-
|
|
2
|
-
export { m as ADULT_CONTENT_LABELS, n as ActiveApp, o as ActiveAppView, a as ActivityLabel, A as AdultContentLabel, p as AtfundLinkView, q as CertificationView, C as CoSpeaker, r as CoSpeakerView, s as ContributorView, t as CourseView, D as DurationView, u as EducationView, v as Endorsement, w as EndorsementData, E as ExternalAccount, x as ExternalAccountKeytraceClaim, y as ExternalAccountView, F as FeedItem, H as HonorView, I as IndustryDomain, z as InvolvementLinkView, B as InvolvementView, G as LanguageProficiency, J as LanguageView, O as OrgFloorVerdict, K as OrgProfileView, M as PositionView, N as PresentationDeliveryView, Q as PresentationLinkView, R as PresentationView, T as ProfileCourse, U as ProfileIndustry, V as ProfileInvolvementLink, W as ProfileLocation, X as ProfileLocationView, Y as ProfileOverrideSource, Z as ProfilePresentation, _ as ProfileView, $ as ProfileVolunteering, a0 as ProjectView, a1 as PublicationContributor, a2 as PublicationView, a3 as SkillRef, S as SkillSuggestion,
|
|
1
|
+
import { P as ProfileSkill, b as ProfilePresentationDelivery, L as LocationValue, c as PdsProviderInfo, d as Profile, e as ProfilePosition, f as ProfileCertification, g as ProfileEducation, h as ProfileHonor, i as ProfileLanguage, j as ProfileProject, k as ProfilePublication, l as ProfileInvolvement } from './adult-content-B06bKHpA.js';
|
|
2
|
+
export { m as ADULT_CONTENT_LABELS, n as ActiveApp, o as ActiveAppView, a as ActivityLabel, A as AdultContentLabel, p as AtfundLinkView, q as CertificationView, C as CoSpeaker, r as CoSpeakerView, s as ContributorView, t as CourseView, D as DurationView, u as EducationView, v as Endorsement, w as EndorsementData, E as ExternalAccount, x as ExternalAccountKeytraceClaim, y as ExternalAccountView, F as FeedItem, H as HonorView, I as IndustryDomain, z as InvolvementLinkView, B as InvolvementView, G as LanguageProficiency, J as LanguageView, O as OrgFloorVerdict, K as OrgProfileView, M as PositionView, N as PresentationDeliveryView, Q as PresentationLinkView, R as PresentationView, T as ProfileCourse, U as ProfileIndustry, V as ProfileInvolvementLink, W as ProfileLocation, X as ProfileLocationView, Y as ProfileOverrideSource, Z as ProfilePresentation, _ as ProfileView, $ as ProfileVolunteering, a0 as ProjectView, a1 as PublicationContributor, a2 as PublicationView, a3 as RecognizedEntity, a4 as SkillRef, S as SkillSuggestion, a5 as SkillView, a6 as TrustStat, a7 as VerifiedAccount, a8 as VolunteeringView, a9 as hasAdultContent } from './adult-content-B06bKHpA.js';
|
|
3
3
|
import { PresentationDuration, ProfilePresentationDeliveryRecord, ProfilePresentationRecord, OrgProfileRecord } from './schemas/index.js';
|
|
4
4
|
export { ArtifactLink, ArtifactLinkSchema, BlobRef, BlobRefSchema, EndorsementConfirmationRecord, EndorsementConfirmationRecordSchema, EndorsementRecord, EndorsementRecordSchema, GraphFollowRecord, GraphFollowRecordSchema, OrgEmploymentAttestationRecord, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PROFILE_INVOLVEMENT_NSID, PresentationDurationSchema, PresentationLink, PresentationLinkSchema, ProfileCertificationRecord, ProfileCertificationRecordSchema, ProfileCourseRecord, ProfileCourseRecordSchema, ProfileEducationRecord, ProfileEducationRecordSchema, ProfileExternalAccountRecord, ProfileExternalAccountRecordSchema, ProfileHonorRecord, ProfileHonorRecordSchema, ProfileInvolvementRecord, ProfileInvolvementRecordSchema, 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, partialDateSchema, selfLabelsSchema, strongRefSchema, uriSchema } from './schemas/index.js';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -158,15 +158,6 @@ declare const PLATFORM_LABELS: {
|
|
|
158
158
|
readonly keyoxide: "Keyoxide";
|
|
159
159
|
};
|
|
160
160
|
type PlatformId = keyof typeof PLATFORM_LABELS;
|
|
161
|
-
/**
|
|
162
|
-
* Normalize a platform value to the short code used throughout the app (the
|
|
163
|
-
* editor, the API `VALID_PLATFORMS` enum, the DB, and {@link PLATFORM_LABELS}).
|
|
164
|
-
*
|
|
165
|
-
* External-account records may carry `platform` as the raw lexicon knownValue
|
|
166
|
-
* token (`id.sifa.defs#platformLinkedin`) instead of the short code — written by
|
|
167
|
-
* some third-party apps. This maps the token to its lowercase suffix
|
|
168
|
-
* (`linkedin`) and passes short codes / unknown values through unchanged.
|
|
169
|
-
*/
|
|
170
161
|
declare function normalizePlatformId(platform: string): string;
|
|
171
162
|
declare function isKnownPlatform(platform: string): platform is PlatformId;
|
|
172
163
|
declare function getPlatformLabel(platform: string): string;
|
package/dist/index.js
CHANGED
|
@@ -803,11 +803,13 @@ var PLATFORM_LABELS = {
|
|
|
803
803
|
keyoxide: "Keyoxide"
|
|
804
804
|
};
|
|
805
805
|
var PLATFORM_TOKEN_PREFIX = "id.sifa.defs#platform";
|
|
806
|
+
var PLATFORM_ALIASES = {
|
|
807
|
+
activitypub: "fediverse",
|
|
808
|
+
mastodon: "fediverse"
|
|
809
|
+
};
|
|
806
810
|
function normalizePlatformId(platform) {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
}
|
|
810
|
-
return platform;
|
|
811
|
+
const code = platform.startsWith(PLATFORM_TOKEN_PREFIX) ? platform.slice(PLATFORM_TOKEN_PREFIX.length).toLowerCase() : platform;
|
|
812
|
+
return PLATFORM_ALIASES[code.toLowerCase()] ?? code;
|
|
811
813
|
}
|
|
812
814
|
function isKnownPlatform(platform) {
|
|
813
815
|
return platform in PLATFORM_LABELS;
|
|
@@ -4561,7 +4563,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
4561
4563
|
});
|
|
4562
4564
|
|
|
4563
4565
|
// src/index.ts
|
|
4564
|
-
var SIFA_SDK_VERSION = "0.12.
|
|
4566
|
+
var SIFA_SDK_VERSION = "0.12.17";
|
|
4565
4567
|
|
|
4566
4568
|
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, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, 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, hasAdultContent, 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, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, singleDateExtractor, slugifyTitle, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamAddressSchema, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamGeoSchema, streamMediaSchema, streamRichSegmentSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, toStreamCardVM, toStreamCardVMs, truncateGraphemes, uriSchema, verbForCollection, visibleItems, youtubeThumbnailUrl, youtubeVideoId };
|
|
4567
4569
|
//# sourceMappingURL=index.js.map
|