@singi-labs/sifa-sdk 0.19.19 → 0.19.21
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 +11 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1602,6 +1602,17 @@ interface ActivityItem {
|
|
|
1602
1602
|
* subject clause links out to what was acted on (the blog post, the event).
|
|
1603
1603
|
*/
|
|
1604
1604
|
subjectUrl?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Resolved handle of the person this record references, set by sifa-api, when
|
|
1607
|
+
* the subject is a bare DID (a follow, a block). Lets the line read
|
|
1608
|
+
* "Followed {name}" and link to the person's profile.
|
|
1609
|
+
*/
|
|
1610
|
+
subjectHandle?: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* Resolved display name of the referenced person, set by sifa-api alongside
|
|
1613
|
+
* {@link subjectHandle}. Preferred over the handle for the visible label.
|
|
1614
|
+
*/
|
|
1615
|
+
subjectDisplayName?: string;
|
|
1605
1616
|
/**
|
|
1606
1617
|
* Hypercert claim enrichment, set by sifa-api. Absent for non-hypercert
|
|
1607
1618
|
* items, for claims with neither contributors nor attachments, and for
|
package/dist/index.d.ts
CHANGED
|
@@ -1602,6 +1602,17 @@ interface ActivityItem {
|
|
|
1602
1602
|
* subject clause links out to what was acted on (the blog post, the event).
|
|
1603
1603
|
*/
|
|
1604
1604
|
subjectUrl?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Resolved handle of the person this record references, set by sifa-api, when
|
|
1607
|
+
* the subject is a bare DID (a follow, a block). Lets the line read
|
|
1608
|
+
* "Followed {name}" and link to the person's profile.
|
|
1609
|
+
*/
|
|
1610
|
+
subjectHandle?: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* Resolved display name of the referenced person, set by sifa-api alongside
|
|
1613
|
+
* {@link subjectHandle}. Preferred over the handle for the visible label.
|
|
1614
|
+
*/
|
|
1615
|
+
subjectDisplayName?: string;
|
|
1605
1616
|
/**
|
|
1606
1617
|
* Hypercert claim enrichment, set by sifa-api. Absent for non-hypercert
|
|
1607
1618
|
* items, for claims with neither contributors nor attachments, and for
|
package/dist/index.js
CHANGED
|
@@ -4562,8 +4562,7 @@ function recordHasSubjectRef(record) {
|
|
|
4562
4562
|
return false;
|
|
4563
4563
|
}
|
|
4564
4564
|
function resolveSourceUrl(item, record) {
|
|
4565
|
-
const authorDid = didFromUri(item.uri);
|
|
4566
|
-
if (!authorDid) return void 0;
|
|
4565
|
+
const authorDid = didFromUri(item.uri) ?? "";
|
|
4567
4566
|
const authorHandle = asNonEmptyString(item.authorHandle) ?? asNonEmptyString(record.handle);
|
|
4568
4567
|
const url = resolveCardUrl({
|
|
4569
4568
|
collection: item.collection,
|
|
@@ -5002,6 +5001,15 @@ function genericSubject(record) {
|
|
|
5002
5001
|
return void 0;
|
|
5003
5002
|
}
|
|
5004
5003
|
function withResolvedSubjectMeta(subject, item) {
|
|
5004
|
+
if (subject.kind === "person") {
|
|
5005
|
+
const handle = nonBlankString(item.subjectHandle) ?? subject.handle;
|
|
5006
|
+
const displayName = nonBlankString(item.subjectDisplayName) ?? subject.displayName;
|
|
5007
|
+
return {
|
|
5008
|
+
...subject,
|
|
5009
|
+
...handle ? { handle } : {},
|
|
5010
|
+
...displayName ? { displayName } : {}
|
|
5011
|
+
};
|
|
5012
|
+
}
|
|
5005
5013
|
if (subject.kind !== "record") return subject;
|
|
5006
5014
|
const title = nonBlankString(item.subjectTitle) ?? subject.title;
|
|
5007
5015
|
const url = nonBlankString(item.subjectUrl);
|
|
@@ -6599,7 +6607,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6599
6607
|
}
|
|
6600
6608
|
|
|
6601
6609
|
// src/index.ts
|
|
6602
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
6610
|
+
var SIFA_SDK_VERSION = "0.19.21";
|
|
6603
6611
|
|
|
6604
6612
|
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, INVESTMENT_ROLE_LABELS, INVESTMENT_ROLE_OPTIONS, INVESTMENT_STAGE_LABELS, INVESTMENT_STAGE_OPTIONS, INVESTMENT_STATUS_LABELS, INVESTMENT_STATUS_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, InvestmentAmountSchema, MIN_SKILLS, ON_BEHALF_OF_EMPLOYMENT_TYPES, 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_INVESTMENT_NSID, PROFILE_INVOLVEMENT_NSID, PROJECT_ROLES, PUBLICATION_TYPE_LABELS, PUBLICATION_TYPE_OPTIONS, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvestmentRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, ROADMAP_ISSUES_REPO, ROADMAP_ITEM_META, SECTION_GROUPS, SECTION_LABELS, SELF_APP_ID, SIFA_REPO_GROUPS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, actorShowsIdentity, agentRefSchema, atUriSchema, buildMetaDescription, buildProfileHighlights, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countRecentActivity, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, describeSifaRecord, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, excludeSelfApp, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDisplayUrl, formatDistanceToNow, formatEventDate, formatLocation, formatPresentationDuration, formatRelationship, formatRelativeTime, formatSingleDate, formatSpanDate, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, getActivityVerbsVersion, getAppCategoryIcon, getAppIdForCollection, getArtifactLinkKindLabel, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getInvestmentRoleLabel, getInvestmentStageLabel, getInvestmentStatusLabel, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublicationTypeLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isOnBehalfOfApplicable, isPseudoEmployer, isRegistrableDomainHandle, isRelationalActivity, isRoleLineRedundant, isSectionPopulated, isSelfAuthoredRich, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, locationSegments, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeDoi, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeSkillCategory, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseEndorsementComment, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryFlagged, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, renderAsLine, rendersCompanyProfile, rendersPersonalProfile, repoGroupForCollection, resolveAccountFacetMode, resolveAgentRef, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, shouldRenderHighlights, 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 };
|
|
6605
6613
|
//# sourceMappingURL=index.js.map
|