@singi-labs/sifa-sdk 0.19.17 → 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.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", "registered"];
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,6 +1631,7 @@ declare const streamVerbSchema: z.ZodEnum<{
1631
1631
  posted: "posted";
1632
1632
  reposted: "reposted";
1633
1633
  shipped: "shipped";
1634
+ annotated: "annotated";
1634
1635
  bookmarked: "bookmarked";
1635
1636
  registered: "registered";
1636
1637
  followed: "followed";
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", "registered"];
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,6 +1631,7 @@ declare const streamVerbSchema: z.ZodEnum<{
1631
1631
  posted: "posted";
1632
1632
  reposted: "reposted";
1633
1633
  shipped: "shipped";
1634
+ annotated: "annotated";
1634
1635
  bookmarked: "bookmarked";
1635
1636
  registered: "registered";
1636
1637
  followed: "followed";
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.3.0",
4015
+ version: "1.4.0",
4016
4016
  updated: "2026-09-18",
4017
4017
  defaultVerb: "created",
4018
4018
  verbs: {
@@ -4023,7 +4023,9 @@ 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",
4027
4029
  "at.marque.domain": "registered",
4028
4030
  "at.youandme.connection": "followed",
4029
4031
  "blue.flashes.feed.post": "posted",
@@ -4078,7 +4080,8 @@ var STREAM_VERBS = [
4078
4080
  "liked",
4079
4081
  "followed",
4080
4082
  "bookmarked",
4081
- "registered"
4083
+ "registered",
4084
+ "annotated"
4082
4085
  ];
4083
4086
  var streamVerbSchema = z.enum(STREAM_VERBS);
4084
4087
  var verbMapSchema = z.object({
@@ -4535,7 +4538,8 @@ var TITLE_BY_VERB = {
4535
4538
  liked: () => "Liked",
4536
4539
  followed: () => "Followed",
4537
4540
  bookmarked: () => "Bookmarked",
4538
- registered: () => "Registered"
4541
+ registered: () => "Registered",
4542
+ annotated: () => "Annotated"
4539
4543
  };
4540
4544
  function buildTitle(verb, label, hasSubject) {
4541
4545
  return TITLE_BY_VERB[verb](label, hasSubject);
@@ -4987,6 +4991,14 @@ function genericSubject(record) {
4987
4991
  if (uri && uri.startsWith("at://")) return { kind: "record", uri };
4988
4992
  const parentUri = nonBlankString(asRecord(asRecord(record.reply)?.parent)?.uri);
4989
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
+ }
4990
5002
  return void 0;
4991
5003
  }
4992
5004
  function withResolvedSubjectMeta(subject, item) {
@@ -6587,7 +6599,7 @@ function describeSifaRecord(collection, value) {
6587
6599
  }
6588
6600
 
6589
6601
  // src/index.ts
6590
- var SIFA_SDK_VERSION = "0.19.17";
6602
+ var SIFA_SDK_VERSION = "0.19.18";
6591
6603
 
6592
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 };
6593
6605
  //# sourceMappingURL=index.js.map