@singi-labs/sifa-sdk 0.19.16 → 0.19.18
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 +20 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1621,7 +1621,7 @@ interface ActivityItem {
|
|
|
1621
1621
|
* standard-site; "posted" spans Bluesky and Picosky) so a day-grouped feed
|
|
1622
1622
|
* reads like sentences.
|
|
1623
1623
|
*/
|
|
1624
|
-
declare const STREAM_VERBS: readonly ["posted", "reposted", "published", "presented", "endorsed", "joined", "shipped", "reviewed", "created", "commented", "replied", "rsvped", "liked", "followed", "bookmarked"];
|
|
1624
|
+
declare const STREAM_VERBS: readonly ["posted", "reposted", "published", "presented", "endorsed", "joined", "shipped", "reviewed", "created", "commented", "replied", "rsvped", "liked", "followed", "bookmarked", "registered", "annotated"];
|
|
1625
1625
|
type StreamVerb = (typeof STREAM_VERBS)[number];
|
|
1626
1626
|
/** Zod enum for a {@link StreamVerb}, shared with the view-model schema. */
|
|
1627
1627
|
declare const streamVerbSchema: z.ZodEnum<{
|
|
@@ -1631,7 +1631,9 @@ declare const streamVerbSchema: z.ZodEnum<{
|
|
|
1631
1631
|
posted: "posted";
|
|
1632
1632
|
reposted: "reposted";
|
|
1633
1633
|
shipped: "shipped";
|
|
1634
|
+
annotated: "annotated";
|
|
1634
1635
|
bookmarked: "bookmarked";
|
|
1636
|
+
registered: "registered";
|
|
1635
1637
|
followed: "followed";
|
|
1636
1638
|
reviewed: "reviewed";
|
|
1637
1639
|
published: "published";
|
package/dist/index.d.ts
CHANGED
|
@@ -1621,7 +1621,7 @@ interface ActivityItem {
|
|
|
1621
1621
|
* standard-site; "posted" spans Bluesky and Picosky) so a day-grouped feed
|
|
1622
1622
|
* reads like sentences.
|
|
1623
1623
|
*/
|
|
1624
|
-
declare const STREAM_VERBS: readonly ["posted", "reposted", "published", "presented", "endorsed", "joined", "shipped", "reviewed", "created", "commented", "replied", "rsvped", "liked", "followed", "bookmarked"];
|
|
1624
|
+
declare const STREAM_VERBS: readonly ["posted", "reposted", "published", "presented", "endorsed", "joined", "shipped", "reviewed", "created", "commented", "replied", "rsvped", "liked", "followed", "bookmarked", "registered", "annotated"];
|
|
1625
1625
|
type StreamVerb = (typeof STREAM_VERBS)[number];
|
|
1626
1626
|
/** Zod enum for a {@link StreamVerb}, shared with the view-model schema. */
|
|
1627
1627
|
declare const streamVerbSchema: z.ZodEnum<{
|
|
@@ -1631,7 +1631,9 @@ declare const streamVerbSchema: z.ZodEnum<{
|
|
|
1631
1631
|
posted: "posted";
|
|
1632
1632
|
reposted: "reposted";
|
|
1633
1633
|
shipped: "shipped";
|
|
1634
|
+
annotated: "annotated";
|
|
1634
1635
|
bookmarked: "bookmarked";
|
|
1636
|
+
registered: "registered";
|
|
1635
1637
|
followed: "followed";
|
|
1636
1638
|
reviewed: "reviewed";
|
|
1637
1639
|
published: "published";
|
package/dist/index.js
CHANGED
|
@@ -4012,7 +4012,7 @@ function getPublisherFromSiteUrl(siteUrl) {
|
|
|
4012
4012
|
// src/stream/verbs.json
|
|
4013
4013
|
var verbs_default = {
|
|
4014
4014
|
$schema: "https://sifa.id/schemas/activity-verbs/v1.json",
|
|
4015
|
-
version: "1.
|
|
4015
|
+
version: "1.4.0",
|
|
4016
4016
|
updated: "2026-09-18",
|
|
4017
4017
|
defaultVerb: "created",
|
|
4018
4018
|
verbs: {
|
|
@@ -4023,7 +4023,10 @@ var verbs_default = {
|
|
|
4023
4023
|
"app.sidetrail.trail": "shipped",
|
|
4024
4024
|
"app.sidetrail.walk": "shipped",
|
|
4025
4025
|
"app.userinput.reply": "replied",
|
|
4026
|
+
"at.margin.annotation": "annotated",
|
|
4026
4027
|
"at.margin.bookmark": "bookmarked",
|
|
4028
|
+
"at.margin.note": "annotated",
|
|
4029
|
+
"at.marque.domain": "registered",
|
|
4027
4030
|
"at.youandme.connection": "followed",
|
|
4028
4031
|
"blue.flashes.feed.post": "posted",
|
|
4029
4032
|
"buzz.bookhive.book": "reviewed",
|
|
@@ -4076,7 +4079,9 @@ var STREAM_VERBS = [
|
|
|
4076
4079
|
"rsvped",
|
|
4077
4080
|
"liked",
|
|
4078
4081
|
"followed",
|
|
4079
|
-
"bookmarked"
|
|
4082
|
+
"bookmarked",
|
|
4083
|
+
"registered",
|
|
4084
|
+
"annotated"
|
|
4080
4085
|
];
|
|
4081
4086
|
var streamVerbSchema = z.enum(STREAM_VERBS);
|
|
4082
4087
|
var verbMapSchema = z.object({
|
|
@@ -4532,7 +4537,9 @@ var TITLE_BY_VERB = {
|
|
|
4532
4537
|
rsvped: (_label, hasSubject) => hasSubject ? "RSVP'd to" : "RSVP'd",
|
|
4533
4538
|
liked: () => "Liked",
|
|
4534
4539
|
followed: () => "Followed",
|
|
4535
|
-
bookmarked: () => "Bookmarked"
|
|
4540
|
+
bookmarked: () => "Bookmarked",
|
|
4541
|
+
registered: () => "Registered",
|
|
4542
|
+
annotated: () => "Annotated"
|
|
4536
4543
|
};
|
|
4537
4544
|
function buildTitle(verb, label, hasSubject) {
|
|
4538
4545
|
return TITLE_BY_VERB[verb](label, hasSubject);
|
|
@@ -4916,6 +4923,7 @@ var GENERIC_TEXT_ORDER = [
|
|
|
4916
4923
|
"note",
|
|
4917
4924
|
"caption",
|
|
4918
4925
|
"summary",
|
|
4926
|
+
"domain",
|
|
4919
4927
|
"status"
|
|
4920
4928
|
];
|
|
4921
4929
|
function genericText(collection, record) {
|
|
@@ -4983,6 +4991,14 @@ function genericSubject(record) {
|
|
|
4983
4991
|
if (uri && uri.startsWith("at://")) return { kind: "record", uri };
|
|
4984
4992
|
const parentUri = nonBlankString(asRecord(asRecord(record.reply)?.parent)?.uri);
|
|
4985
4993
|
if (parentUri && parentUri.startsWith("at://")) return { kind: "record", uri: parentUri };
|
|
4994
|
+
const target = asRecord(record.target);
|
|
4995
|
+
if (target) {
|
|
4996
|
+
const source = httpUrl(target.source);
|
|
4997
|
+
if (source) {
|
|
4998
|
+
const title = nonBlankString(target.title);
|
|
4999
|
+
return { kind: "record", uri: source, ...title ? { title } : {}, url: source };
|
|
5000
|
+
}
|
|
5001
|
+
}
|
|
4986
5002
|
return void 0;
|
|
4987
5003
|
}
|
|
4988
5004
|
function withResolvedSubjectMeta(subject, item) {
|
|
@@ -6583,7 +6599,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6583
6599
|
}
|
|
6584
6600
|
|
|
6585
6601
|
// src/index.ts
|
|
6586
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
6602
|
+
var SIFA_SDK_VERSION = "0.19.18";
|
|
6587
6603
|
|
|
6588
6604
|
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 };
|
|
6589
6605
|
//# sourceMappingURL=index.js.map
|