@singi-labs/sifa-sdk 0.12.8 → 0.12.9

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
@@ -2,9 +2,9 @@ import { P as ProfileSkill, b as ProfilePresentationDelivery, L as LocationValue
2
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, a4 as SkillView, a5 as TrustStat, a6 as VerifiedAccount, a7 as VolunteeringView, a8 as hasAdultContent } from './adult-content-DE7XOP9c.cjs';
3
3
  import { PresentationDuration, ProfilePresentationDeliveryRecord, ProfilePresentationRecord, OrgProfileRecord } from './schemas/index.cjs';
4
4
  export { ArtifactLink, ArtifactLinkSchema, 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
+ import { z } from 'zod';
5
6
  import { E as EntitySearchResult } from './feed-D2ZV8Eaj.cjs';
6
7
  export { A as AtmosphereFeedItem, d as AtmosphereFeedItemSchema, e as EntityImportSearchResponse, f as EntityImportSearchResponseSchema, g as EntityMintDomainResponse, h as EntityMintDomainResponseSchema, i as EntityResolveDomainRequest, j as EntityResolveDomainRequestSchema, k as EntityResolveDomainResponse, l as EntityResolveDomainResponseSchema, m as EntitySearchResponse, n as EntitySearchResponseSchema, o as EntitySearchResultSchema, p as EntitySelectRequest, q as EntitySelectRequestSchema, r as EntitySelectResponse, s as EntitySelectResponseSchema, t as FEATURE_FLAGS, b as FeatureAllowlistEntry, u as FeatureAllowlistEntrySchema, c as FeatureFlag, v as FeedActor, w as FeedActorSchema, x as FeedCursor, y as FollowFeedItem, z as FollowFeedItemSchema, F as FollowFeedPage, B as FollowFeedPageSchema, a as FollowProfileItem, C as FollowProfilePage, D as FollowProfilePageSchema, G as FollowProfileSchema, S as SifaFeedItem, H as SifaFeedItemSchema, I as decodeFeedCursor, J as encodeFeedCursor } from './feed-D2ZV8Eaj.cjs';
7
- import 'zod';
8
8
 
9
9
  type ContinentCode = 'AF' | 'AN' | 'AS' | 'EU' | 'NA' | 'OC' | 'SA';
10
10
  declare const CONTINENTS: ReadonlyArray<{
@@ -1100,6 +1100,245 @@ declare function getPublisherByHost(hostname: string): Publisher | undefined;
1100
1100
  */
1101
1101
  declare function getPublisherFromSiteUrl(siteUrl: string): Publisher;
1102
1102
 
1103
+ /**
1104
+ * The activity envelope the AppView emits and the SDK transform consumes.
1105
+ *
1106
+ * This mirrors the public fields of `sifa-api`'s `ActivityItem`
1107
+ * (`src/routes/activity/types.ts`) so the SDK never depends on the private
1108
+ * api package. Only the fields the shared view-model transform reads are
1109
+ * modelled here; api-only enrichments (quoted-post resolution, standard-site
1110
+ * embeds, content labels) are layered on in sifa-web and are not part of the
1111
+ * shared contract.
1112
+ */
1113
+ interface ActivityItem {
1114
+ /** Full at-uri of the record: stable key + permalink source. */
1115
+ uri: string;
1116
+ /** Content identifier of the record version. */
1117
+ cid: string;
1118
+ /** Collection NSID, e.g. `app.bsky.feed.post`. */
1119
+ collection: string;
1120
+ /** Record key. */
1121
+ rkey: string;
1122
+ /** The raw record from the PDS / AppView. Parsed defensively by the transform. */
1123
+ record: unknown;
1124
+ /** App id from the app registry, e.g. `bluesky`. */
1125
+ appId: string;
1126
+ /** Human app name from the app registry, e.g. `Bluesky`. */
1127
+ appName: string;
1128
+ /** App category from the app registry, e.g. `Posts`. */
1129
+ category: string;
1130
+ /** When the AppView indexed the record (ISO 8601). */
1131
+ indexedAt: string;
1132
+ /**
1133
+ * Repost / reply target, hydrated by the AppView. When present it is
1134
+ * normalized recursively through the same transform so a card's subject is
1135
+ * a `StreamCardVM` too.
1136
+ */
1137
+ subject?: ActivityItem;
1138
+ }
1139
+
1140
+ /**
1141
+ * The human action a stream item represents — a layer on top of `collection`
1142
+ * + `tier`. Groups semantically across apps ("published" spans WhiteWind and
1143
+ * standard-site; "posted" spans Bluesky and Picosky) so a day-grouped feed
1144
+ * reads like sentences.
1145
+ */
1146
+ declare const STREAM_VERBS: readonly ["posted", "reposted", "published", "presented", "endorsed", "joined", "shipped", "created"];
1147
+ type StreamVerb = (typeof STREAM_VERBS)[number];
1148
+ /** Zod enum for a {@link StreamVerb}, shared with the view-model schema. */
1149
+ declare const streamVerbSchema: z.ZodEnum<{
1150
+ created: "created";
1151
+ posted: "posted";
1152
+ reposted: "reposted";
1153
+ published: "published";
1154
+ presented: "presented";
1155
+ endorsed: "endorsed";
1156
+ shipped: "shipped";
1157
+ joined: "joined";
1158
+ }>;
1159
+ interface ActivityVerbMap {
1160
+ version: string;
1161
+ updated: string;
1162
+ /** Verb returned for any collection not present in `verbs`. */
1163
+ defaultVerb: StreamVerb;
1164
+ /** Verb keyed by lexicon NSID. */
1165
+ verbs: Record<string, StreamVerb>;
1166
+ }
1167
+ /**
1168
+ * The verb map, keyed by lexicon NSID. Versioned independently from
1169
+ * `activity-tiers.json` so tier and verb evolve on their own cadence.
1170
+ */
1171
+ declare const ACTIVITY_VERBS: Readonly<ActivityVerbMap>;
1172
+ /**
1173
+ * Returns the {@link StreamVerb} for an AT Protocol collection NSID. Unknown
1174
+ * or empty collections fall back to the map's `defaultVerb` (`created`).
1175
+ */
1176
+ declare function verbForCollection(collection: string): StreamVerb;
1177
+ /** Verb-map version + updated date, for diagnostics and version-skew checks. */
1178
+ declare function getActivityVerbsVersion(): {
1179
+ version: string;
1180
+ updated: string;
1181
+ };
1182
+
1183
+ /**
1184
+ * The app a stream item originated from, resolved from the app registry.
1185
+ * `color` is a design-token NAME (e.g. `slate`), never a hex literal — each
1186
+ * surface maps the token to a concrete value.
1187
+ */
1188
+ interface StreamSource {
1189
+ appId: string;
1190
+ label: string;
1191
+ color: string;
1192
+ }
1193
+ /**
1194
+ * A per-item theme distinct from the app-registry `source.color`. Publication
1195
+ * and standard-site cards carry a record-level RGB theme (WCAG-AA validated
1196
+ * before use). Absent for most items.
1197
+ */
1198
+ interface StreamTheme {
1199
+ background: RgbColor;
1200
+ foreground: RgbColor;
1201
+ accent: RgbColor;
1202
+ }
1203
+ /** Fields shared by every media variant. */
1204
+ interface StreamMediaBase {
1205
+ alt: string;
1206
+ aspectRatio?: {
1207
+ width: number;
1208
+ height: number;
1209
+ };
1210
+ mimeType?: string;
1211
+ }
1212
+ /** A media item whose URL is already resolved (e.g. a poster URL). */
1213
+ interface StreamMediaResolved extends StreamMediaBase {
1214
+ url: string;
1215
+ }
1216
+ /**
1217
+ * A media item carried as a raw blob ref. The transform stays host-agnostic
1218
+ * and pure — it does NOT build CDN URLs. Each surface constructs the URL from
1219
+ * `did` + `cid` itself (sifa-web via `buildBlobUrl`, page.sifa.id via its own
1220
+ * CDN base).
1221
+ */
1222
+ interface StreamMediaBlob extends StreamMediaBase {
1223
+ did: string;
1224
+ cid: string;
1225
+ }
1226
+ type StreamMedia = StreamMediaResolved | StreamMediaBlob;
1227
+ /** An outbound link card (Bluesky external embed, bookmark subject, etc.). */
1228
+ interface StreamExternalLink {
1229
+ url: string;
1230
+ title?: string;
1231
+ thumb?: string;
1232
+ }
1233
+ /**
1234
+ * The primary content body. A small discriminated union so both the React and
1235
+ * the string-HTML renderer switch on one field. `track` is reserved (dame
1236
+ * music scrobbles; no sifa-web card uses it yet). App-specific variants
1237
+ * (github-pr, book, event-rsvp, ...) layer in additively in later milestones.
1238
+ */
1239
+ type StreamCardBody = {
1240
+ kind: 'text';
1241
+ text: string;
1242
+ } | {
1243
+ kind: 'media';
1244
+ text?: string;
1245
+ } | {
1246
+ kind: 'link';
1247
+ text?: string;
1248
+ } | {
1249
+ kind: 'track';
1250
+ text?: string;
1251
+ trackTitle?: string;
1252
+ artist?: string;
1253
+ } | {
1254
+ kind: 'generic';
1255
+ text?: string;
1256
+ };
1257
+ /**
1258
+ * A repost / reply / quote target. Three shapes: a full post (normalized
1259
+ * through the same transform), a person (DID → hydrated client-side), or a
1260
+ * bare referenced record (e.g. the question an answer replies to).
1261
+ */
1262
+ type StreamCardSubject = {
1263
+ kind: 'post';
1264
+ post: StreamCardVM;
1265
+ } | {
1266
+ kind: 'person';
1267
+ did: string;
1268
+ handle?: string;
1269
+ displayName?: string;
1270
+ avatar?: string;
1271
+ } | {
1272
+ kind: 'record';
1273
+ uri: string;
1274
+ title?: string;
1275
+ };
1276
+ /**
1277
+ * Presentation-ready, framework-free, serializable view-model for one activity
1278
+ * item. Produced by {@link toStreamCardVM}. Common chrome fields are always
1279
+ * present; `body` is a discriminated union both renderers switch on.
1280
+ */
1281
+ interface StreamCardVM {
1282
+ /** at-uri: stable key + permalink source. */
1283
+ uri: string;
1284
+ cid: string;
1285
+ verb: StreamVerb;
1286
+ source: StreamSource;
1287
+ tier: ActivityTier;
1288
+ /** ISO 8601. Record `createdAt` when present, else the AppView index time. */
1289
+ timestamp: string;
1290
+ /** Human sentence fragment, verb-aware. */
1291
+ title: string;
1292
+ body?: StreamCardBody;
1293
+ media?: StreamMedia[];
1294
+ externalLink?: StreamExternalLink;
1295
+ theme?: StreamTheme;
1296
+ subject?: StreamCardSubject;
1297
+ }
1298
+
1299
+ declare const streamSourceSchema: z.ZodType<StreamSource>;
1300
+ declare const streamThemeSchema: z.ZodType<StreamTheme>;
1301
+ declare const streamMediaSchema: z.ZodType<StreamMedia>;
1302
+ declare const streamExternalLinkSchema: z.ZodType<StreamExternalLink>;
1303
+ declare const streamCardBodySchema: z.ZodType<StreamCardBody>;
1304
+ /**
1305
+ * A stream item's repost / reply / quote target. The `post` variant nests a
1306
+ * full {@link streamCardVMSchema} (deferred via `z.lazy` for recursion).
1307
+ */
1308
+ declare const streamCardSubjectSchema: z.ZodType<StreamCardSubject>;
1309
+ /** Zod schema for a {@link StreamCardVM}. Recursive through `subject.post`. */
1310
+ declare const streamCardVMSchema: z.ZodType<StreamCardVM>;
1311
+
1312
+ /**
1313
+ * Options for {@link toStreamCardVM}. Kept out of the record so the transform
1314
+ * stays pure (no I/O): the app registry is runtime data, so callers inject a
1315
+ * color resolver built from the registry they already fetched.
1316
+ */
1317
+ interface ToStreamCardVMOptions {
1318
+ /**
1319
+ * Resolve an app's design-token color NAME (not a hex literal) from its
1320
+ * appId. Falls back to `slate` when unresolved.
1321
+ */
1322
+ resolveSourceColor?: (appId: string) => string | undefined;
1323
+ }
1324
+ /**
1325
+ * Normalize one {@link ActivityItem} into a framework-free {@link StreamCardVM}.
1326
+ * Pure: no I/O, no React, no DOM, and no resolved CDN URLs (media carries raw
1327
+ * blob refs so each surface builds its own URL). Total: always returns a VM.
1328
+ *
1329
+ * Reference implementations: the generic/unknown case, `app.bsky.feed.post`
1330
+ * (text + images + external embed), and reposts (whose `subject` is normalized
1331
+ * through this same function). Other collections fall through to the generic
1332
+ * body variant until M2 enriches them.
1333
+ */
1334
+ declare function toStreamCardVM(item: ActivityItem, options?: ToStreamCardVMOptions): StreamCardVM;
1335
+ /**
1336
+ * Map a list of activity items to VMs, applying {@link isVisibleActivityItem}
1337
+ * first so both surfaces (sifa-web, page.sifa.id) filter identically — a
1338
+ * filtered item produces no VM rather than a null-rendering card.
1339
+ */
1340
+ declare function toStreamCardVMs(items: ActivityItem[], options?: ToStreamCardVMOptions): StreamCardVM[];
1341
+
1103
1342
  /**
1104
1343
  * Profile completeness scoring.
1105
1344
  *
@@ -1568,4 +1807,4 @@ declare function groupInvolvementByHeading(items: ProfileInvolvement[]): Involve
1568
1807
  */
1569
1808
  declare const SIFA_SDK_VERSION: string;
1570
1809
 
1571
- export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, type AccountVerification, type ActivityItemForUrl, type ActivityTaxonomy, type ActivityTier, type AppCategoryId, type AppUrlPatterns, type ArtifactLinkKindOption, 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, type CardHealth, type CardHealthStrategy, type CompanyFirmographics, type ContinentCode, type CsvRow, DIMENSIONS_MAX_SCORE, type DimensionKey, type DimensionMap, type DisambiguationFields, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, type EmploymentTypeGroup, type EmploymentTypeOption, type EntityRefAnchor, EntitySearchResult, INDUSTRY_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, type IndustryOption, type InvolvementGroup, type InvolvementKindOption, type KnownAppId, type LexiconEntry, LocationValue, MIN_SKILLS, type MergedProfileSkill, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, type OpenToGroup, type OpenToOption, OrgProfileRecord, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PUBLISHERS, type ParsedDelivery, type ParsedPresentation, type PdsProvider, PdsProviderInfo, type PlatformId, type PresentationDeliverySummary, PresentationDuration, type PresentationLinkTypeOption, type PresentationRoleOption, type PrimaryPositionCandidate, Profile, ProfileCertification, type ProfileCompletion, type ProfileDimensionInputs, ProfileEducation, ProfileHonor, ProfileInvolvement, ProfileLanguage, ProfilePosition, ProfilePresentationDelivery, ProfilePresentationDeliveryRecord, ProfilePresentationRecord, ProfileProject, ProfilePublication, ProfileSkill, type Publisher, type RgbColor, SECTION_GROUPS, SECTION_LABELS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, type SectionGroupId, type SectionId, type SkillCategory, type TierMeta, VERIFICATION_PROVIDERS, type VerificationProvider, type VerificationProviderId, type VerificationSource, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, type WorkplaceTypeOption, categoryForApp, certDateExtractor, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, dimensionsFromInputs, durationFromMinutes, entityDisambiguationLabel, entityResultKey, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, 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, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, lexiconDateExtractor, limitCombiningMarks, looksLikeDomain, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, resolveCardHealth, resolveCardUrl, resolveVerifierProvider, rgbToString, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, singleDateExtractor, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, stripHtmlToText, summarizePresentationDeliveries, truncateGraphemes, visibleItems };
1810
+ export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, type AccountVerification, type ActivityItem, type ActivityItemForUrl, type ActivityTaxonomy, type ActivityTier, type ActivityVerbMap, type AppCategoryId, type AppUrlPatterns, type ArtifactLinkKindOption, 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, type CardHealth, type CardHealthStrategy, type CompanyFirmographics, type ContinentCode, type CsvRow, DIMENSIONS_MAX_SCORE, type DimensionKey, type DimensionMap, type DisambiguationFields, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, type EmploymentTypeGroup, type EmploymentTypeOption, type EntityRefAnchor, EntitySearchResult, INDUSTRY_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, type IndustryOption, type InvolvementGroup, type InvolvementKindOption, type KnownAppId, type LexiconEntry, LocationValue, MIN_SKILLS, type MergedProfileSkill, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, type OpenToGroup, type OpenToOption, OrgProfileRecord, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PUBLISHERS, type ParsedDelivery, type ParsedPresentation, type PdsProvider, PdsProviderInfo, type PlatformId, type PresentationDeliverySummary, PresentationDuration, type PresentationLinkTypeOption, type PresentationRoleOption, type PrimaryPositionCandidate, Profile, ProfileCertification, type ProfileCompletion, type ProfileDimensionInputs, ProfileEducation, ProfileHonor, ProfileInvolvement, ProfileLanguage, ProfilePosition, ProfilePresentationDelivery, ProfilePresentationDeliveryRecord, ProfilePresentationRecord, ProfileProject, ProfilePublication, ProfileSkill, type Publisher, type RgbColor, SECTION_GROUPS, SECTION_LABELS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, type SectionGroupId, type SectionId, type SkillCategory, type StreamCardBody, type StreamCardSubject, type StreamCardVM, type StreamExternalLink, type StreamMedia, type StreamMediaBase, type StreamMediaBlob, type StreamMediaResolved, type StreamSource, type StreamTheme, type StreamVerb, type TierMeta, type ToStreamCardVMOptions, VERIFICATION_PROVIDERS, type VerificationProvider, type VerificationProviderId, type VerificationSource, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, type WorkplaceTypeOption, categoryForApp, certDateExtractor, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, dimensionsFromInputs, durationFromMinutes, entityDisambiguationLabel, entityResultKey, 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, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, lexiconDateExtractor, limitCombiningMarks, looksLikeDomain, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, resolveCardHealth, resolveCardUrl, resolveVerifierProvider, rgbToString, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, singleDateExtractor, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamMediaSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, summarizePresentationDeliveries, toStreamCardVM, toStreamCardVMs, truncateGraphemes, verbForCollection, visibleItems };
package/dist/index.d.ts CHANGED
@@ -2,9 +2,9 @@ import { P as ProfileSkill, b as ProfilePresentationDelivery, L as LocationValue
2
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, a4 as SkillView, a5 as TrustStat, a6 as VerifiedAccount, a7 as VolunteeringView, a8 as hasAdultContent } from './adult-content-DE7XOP9c.js';
3
3
  import { PresentationDuration, ProfilePresentationDeliveryRecord, ProfilePresentationRecord, OrgProfileRecord } from './schemas/index.js';
4
4
  export { ArtifactLink, ArtifactLinkSchema, 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
+ import { z } from 'zod';
5
6
  import { E as EntitySearchResult } from './feed-D2ZV8Eaj.js';
6
7
  export { A as AtmosphereFeedItem, d as AtmosphereFeedItemSchema, e as EntityImportSearchResponse, f as EntityImportSearchResponseSchema, g as EntityMintDomainResponse, h as EntityMintDomainResponseSchema, i as EntityResolveDomainRequest, j as EntityResolveDomainRequestSchema, k as EntityResolveDomainResponse, l as EntityResolveDomainResponseSchema, m as EntitySearchResponse, n as EntitySearchResponseSchema, o as EntitySearchResultSchema, p as EntitySelectRequest, q as EntitySelectRequestSchema, r as EntitySelectResponse, s as EntitySelectResponseSchema, t as FEATURE_FLAGS, b as FeatureAllowlistEntry, u as FeatureAllowlistEntrySchema, c as FeatureFlag, v as FeedActor, w as FeedActorSchema, x as FeedCursor, y as FollowFeedItem, z as FollowFeedItemSchema, F as FollowFeedPage, B as FollowFeedPageSchema, a as FollowProfileItem, C as FollowProfilePage, D as FollowProfilePageSchema, G as FollowProfileSchema, S as SifaFeedItem, H as SifaFeedItemSchema, I as decodeFeedCursor, J as encodeFeedCursor } from './feed-D2ZV8Eaj.js';
7
- import 'zod';
8
8
 
9
9
  type ContinentCode = 'AF' | 'AN' | 'AS' | 'EU' | 'NA' | 'OC' | 'SA';
10
10
  declare const CONTINENTS: ReadonlyArray<{
@@ -1100,6 +1100,245 @@ declare function getPublisherByHost(hostname: string): Publisher | undefined;
1100
1100
  */
1101
1101
  declare function getPublisherFromSiteUrl(siteUrl: string): Publisher;
1102
1102
 
1103
+ /**
1104
+ * The activity envelope the AppView emits and the SDK transform consumes.
1105
+ *
1106
+ * This mirrors the public fields of `sifa-api`'s `ActivityItem`
1107
+ * (`src/routes/activity/types.ts`) so the SDK never depends on the private
1108
+ * api package. Only the fields the shared view-model transform reads are
1109
+ * modelled here; api-only enrichments (quoted-post resolution, standard-site
1110
+ * embeds, content labels) are layered on in sifa-web and are not part of the
1111
+ * shared contract.
1112
+ */
1113
+ interface ActivityItem {
1114
+ /** Full at-uri of the record: stable key + permalink source. */
1115
+ uri: string;
1116
+ /** Content identifier of the record version. */
1117
+ cid: string;
1118
+ /** Collection NSID, e.g. `app.bsky.feed.post`. */
1119
+ collection: string;
1120
+ /** Record key. */
1121
+ rkey: string;
1122
+ /** The raw record from the PDS / AppView. Parsed defensively by the transform. */
1123
+ record: unknown;
1124
+ /** App id from the app registry, e.g. `bluesky`. */
1125
+ appId: string;
1126
+ /** Human app name from the app registry, e.g. `Bluesky`. */
1127
+ appName: string;
1128
+ /** App category from the app registry, e.g. `Posts`. */
1129
+ category: string;
1130
+ /** When the AppView indexed the record (ISO 8601). */
1131
+ indexedAt: string;
1132
+ /**
1133
+ * Repost / reply target, hydrated by the AppView. When present it is
1134
+ * normalized recursively through the same transform so a card's subject is
1135
+ * a `StreamCardVM` too.
1136
+ */
1137
+ subject?: ActivityItem;
1138
+ }
1139
+
1140
+ /**
1141
+ * The human action a stream item represents — a layer on top of `collection`
1142
+ * + `tier`. Groups semantically across apps ("published" spans WhiteWind and
1143
+ * standard-site; "posted" spans Bluesky and Picosky) so a day-grouped feed
1144
+ * reads like sentences.
1145
+ */
1146
+ declare const STREAM_VERBS: readonly ["posted", "reposted", "published", "presented", "endorsed", "joined", "shipped", "created"];
1147
+ type StreamVerb = (typeof STREAM_VERBS)[number];
1148
+ /** Zod enum for a {@link StreamVerb}, shared with the view-model schema. */
1149
+ declare const streamVerbSchema: z.ZodEnum<{
1150
+ created: "created";
1151
+ posted: "posted";
1152
+ reposted: "reposted";
1153
+ published: "published";
1154
+ presented: "presented";
1155
+ endorsed: "endorsed";
1156
+ shipped: "shipped";
1157
+ joined: "joined";
1158
+ }>;
1159
+ interface ActivityVerbMap {
1160
+ version: string;
1161
+ updated: string;
1162
+ /** Verb returned for any collection not present in `verbs`. */
1163
+ defaultVerb: StreamVerb;
1164
+ /** Verb keyed by lexicon NSID. */
1165
+ verbs: Record<string, StreamVerb>;
1166
+ }
1167
+ /**
1168
+ * The verb map, keyed by lexicon NSID. Versioned independently from
1169
+ * `activity-tiers.json` so tier and verb evolve on their own cadence.
1170
+ */
1171
+ declare const ACTIVITY_VERBS: Readonly<ActivityVerbMap>;
1172
+ /**
1173
+ * Returns the {@link StreamVerb} for an AT Protocol collection NSID. Unknown
1174
+ * or empty collections fall back to the map's `defaultVerb` (`created`).
1175
+ */
1176
+ declare function verbForCollection(collection: string): StreamVerb;
1177
+ /** Verb-map version + updated date, for diagnostics and version-skew checks. */
1178
+ declare function getActivityVerbsVersion(): {
1179
+ version: string;
1180
+ updated: string;
1181
+ };
1182
+
1183
+ /**
1184
+ * The app a stream item originated from, resolved from the app registry.
1185
+ * `color` is a design-token NAME (e.g. `slate`), never a hex literal — each
1186
+ * surface maps the token to a concrete value.
1187
+ */
1188
+ interface StreamSource {
1189
+ appId: string;
1190
+ label: string;
1191
+ color: string;
1192
+ }
1193
+ /**
1194
+ * A per-item theme distinct from the app-registry `source.color`. Publication
1195
+ * and standard-site cards carry a record-level RGB theme (WCAG-AA validated
1196
+ * before use). Absent for most items.
1197
+ */
1198
+ interface StreamTheme {
1199
+ background: RgbColor;
1200
+ foreground: RgbColor;
1201
+ accent: RgbColor;
1202
+ }
1203
+ /** Fields shared by every media variant. */
1204
+ interface StreamMediaBase {
1205
+ alt: string;
1206
+ aspectRatio?: {
1207
+ width: number;
1208
+ height: number;
1209
+ };
1210
+ mimeType?: string;
1211
+ }
1212
+ /** A media item whose URL is already resolved (e.g. a poster URL). */
1213
+ interface StreamMediaResolved extends StreamMediaBase {
1214
+ url: string;
1215
+ }
1216
+ /**
1217
+ * A media item carried as a raw blob ref. The transform stays host-agnostic
1218
+ * and pure — it does NOT build CDN URLs. Each surface constructs the URL from
1219
+ * `did` + `cid` itself (sifa-web via `buildBlobUrl`, page.sifa.id via its own
1220
+ * CDN base).
1221
+ */
1222
+ interface StreamMediaBlob extends StreamMediaBase {
1223
+ did: string;
1224
+ cid: string;
1225
+ }
1226
+ type StreamMedia = StreamMediaResolved | StreamMediaBlob;
1227
+ /** An outbound link card (Bluesky external embed, bookmark subject, etc.). */
1228
+ interface StreamExternalLink {
1229
+ url: string;
1230
+ title?: string;
1231
+ thumb?: string;
1232
+ }
1233
+ /**
1234
+ * The primary content body. A small discriminated union so both the React and
1235
+ * the string-HTML renderer switch on one field. `track` is reserved (dame
1236
+ * music scrobbles; no sifa-web card uses it yet). App-specific variants
1237
+ * (github-pr, book, event-rsvp, ...) layer in additively in later milestones.
1238
+ */
1239
+ type StreamCardBody = {
1240
+ kind: 'text';
1241
+ text: string;
1242
+ } | {
1243
+ kind: 'media';
1244
+ text?: string;
1245
+ } | {
1246
+ kind: 'link';
1247
+ text?: string;
1248
+ } | {
1249
+ kind: 'track';
1250
+ text?: string;
1251
+ trackTitle?: string;
1252
+ artist?: string;
1253
+ } | {
1254
+ kind: 'generic';
1255
+ text?: string;
1256
+ };
1257
+ /**
1258
+ * A repost / reply / quote target. Three shapes: a full post (normalized
1259
+ * through the same transform), a person (DID → hydrated client-side), or a
1260
+ * bare referenced record (e.g. the question an answer replies to).
1261
+ */
1262
+ type StreamCardSubject = {
1263
+ kind: 'post';
1264
+ post: StreamCardVM;
1265
+ } | {
1266
+ kind: 'person';
1267
+ did: string;
1268
+ handle?: string;
1269
+ displayName?: string;
1270
+ avatar?: string;
1271
+ } | {
1272
+ kind: 'record';
1273
+ uri: string;
1274
+ title?: string;
1275
+ };
1276
+ /**
1277
+ * Presentation-ready, framework-free, serializable view-model for one activity
1278
+ * item. Produced by {@link toStreamCardVM}. Common chrome fields are always
1279
+ * present; `body` is a discriminated union both renderers switch on.
1280
+ */
1281
+ interface StreamCardVM {
1282
+ /** at-uri: stable key + permalink source. */
1283
+ uri: string;
1284
+ cid: string;
1285
+ verb: StreamVerb;
1286
+ source: StreamSource;
1287
+ tier: ActivityTier;
1288
+ /** ISO 8601. Record `createdAt` when present, else the AppView index time. */
1289
+ timestamp: string;
1290
+ /** Human sentence fragment, verb-aware. */
1291
+ title: string;
1292
+ body?: StreamCardBody;
1293
+ media?: StreamMedia[];
1294
+ externalLink?: StreamExternalLink;
1295
+ theme?: StreamTheme;
1296
+ subject?: StreamCardSubject;
1297
+ }
1298
+
1299
+ declare const streamSourceSchema: z.ZodType<StreamSource>;
1300
+ declare const streamThemeSchema: z.ZodType<StreamTheme>;
1301
+ declare const streamMediaSchema: z.ZodType<StreamMedia>;
1302
+ declare const streamExternalLinkSchema: z.ZodType<StreamExternalLink>;
1303
+ declare const streamCardBodySchema: z.ZodType<StreamCardBody>;
1304
+ /**
1305
+ * A stream item's repost / reply / quote target. The `post` variant nests a
1306
+ * full {@link streamCardVMSchema} (deferred via `z.lazy` for recursion).
1307
+ */
1308
+ declare const streamCardSubjectSchema: z.ZodType<StreamCardSubject>;
1309
+ /** Zod schema for a {@link StreamCardVM}. Recursive through `subject.post`. */
1310
+ declare const streamCardVMSchema: z.ZodType<StreamCardVM>;
1311
+
1312
+ /**
1313
+ * Options for {@link toStreamCardVM}. Kept out of the record so the transform
1314
+ * stays pure (no I/O): the app registry is runtime data, so callers inject a
1315
+ * color resolver built from the registry they already fetched.
1316
+ */
1317
+ interface ToStreamCardVMOptions {
1318
+ /**
1319
+ * Resolve an app's design-token color NAME (not a hex literal) from its
1320
+ * appId. Falls back to `slate` when unresolved.
1321
+ */
1322
+ resolveSourceColor?: (appId: string) => string | undefined;
1323
+ }
1324
+ /**
1325
+ * Normalize one {@link ActivityItem} into a framework-free {@link StreamCardVM}.
1326
+ * Pure: no I/O, no React, no DOM, and no resolved CDN URLs (media carries raw
1327
+ * blob refs so each surface builds its own URL). Total: always returns a VM.
1328
+ *
1329
+ * Reference implementations: the generic/unknown case, `app.bsky.feed.post`
1330
+ * (text + images + external embed), and reposts (whose `subject` is normalized
1331
+ * through this same function). Other collections fall through to the generic
1332
+ * body variant until M2 enriches them.
1333
+ */
1334
+ declare function toStreamCardVM(item: ActivityItem, options?: ToStreamCardVMOptions): StreamCardVM;
1335
+ /**
1336
+ * Map a list of activity items to VMs, applying {@link isVisibleActivityItem}
1337
+ * first so both surfaces (sifa-web, page.sifa.id) filter identically — a
1338
+ * filtered item produces no VM rather than a null-rendering card.
1339
+ */
1340
+ declare function toStreamCardVMs(items: ActivityItem[], options?: ToStreamCardVMOptions): StreamCardVM[];
1341
+
1103
1342
  /**
1104
1343
  * Profile completeness scoring.
1105
1344
  *
@@ -1568,4 +1807,4 @@ declare function groupInvolvementByHeading(items: ProfileInvolvement[]): Involve
1568
1807
  */
1569
1808
  declare const SIFA_SDK_VERSION: string;
1570
1809
 
1571
- export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, type AccountVerification, type ActivityItemForUrl, type ActivityTaxonomy, type ActivityTier, type AppCategoryId, type AppUrlPatterns, type ArtifactLinkKindOption, 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, type CardHealth, type CardHealthStrategy, type CompanyFirmographics, type ContinentCode, type CsvRow, DIMENSIONS_MAX_SCORE, type DimensionKey, type DimensionMap, type DisambiguationFields, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, type EmploymentTypeGroup, type EmploymentTypeOption, type EntityRefAnchor, EntitySearchResult, INDUSTRY_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, type IndustryOption, type InvolvementGroup, type InvolvementKindOption, type KnownAppId, type LexiconEntry, LocationValue, MIN_SKILLS, type MergedProfileSkill, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, type OpenToGroup, type OpenToOption, OrgProfileRecord, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PUBLISHERS, type ParsedDelivery, type ParsedPresentation, type PdsProvider, PdsProviderInfo, type PlatformId, type PresentationDeliverySummary, PresentationDuration, type PresentationLinkTypeOption, type PresentationRoleOption, type PrimaryPositionCandidate, Profile, ProfileCertification, type ProfileCompletion, type ProfileDimensionInputs, ProfileEducation, ProfileHonor, ProfileInvolvement, ProfileLanguage, ProfilePosition, ProfilePresentationDelivery, ProfilePresentationDeliveryRecord, ProfilePresentationRecord, ProfileProject, ProfilePublication, ProfileSkill, type Publisher, type RgbColor, SECTION_GROUPS, SECTION_LABELS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, type SectionGroupId, type SectionId, type SkillCategory, type TierMeta, VERIFICATION_PROVIDERS, type VerificationProvider, type VerificationProviderId, type VerificationSource, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, type WorkplaceTypeOption, categoryForApp, certDateExtractor, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, dimensionsFromInputs, durationFromMinutes, entityDisambiguationLabel, entityResultKey, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, 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, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, lexiconDateExtractor, limitCombiningMarks, looksLikeDomain, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, resolveCardHealth, resolveCardUrl, resolveVerifierProvider, rgbToString, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, singleDateExtractor, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, stripHtmlToText, summarizePresentationDeliveries, truncateGraphemes, visibleItems };
1810
+ export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, type AccountVerification, type ActivityItem, type ActivityItemForUrl, type ActivityTaxonomy, type ActivityTier, type ActivityVerbMap, type AppCategoryId, type AppUrlPatterns, type ArtifactLinkKindOption, 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, type CardHealth, type CardHealthStrategy, type CompanyFirmographics, type ContinentCode, type CsvRow, DIMENSIONS_MAX_SCORE, type DimensionKey, type DimensionMap, type DisambiguationFields, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, type EmploymentTypeGroup, type EmploymentTypeOption, type EntityRefAnchor, EntitySearchResult, INDUSTRY_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, type IndustryOption, type InvolvementGroup, type InvolvementKindOption, type KnownAppId, type LexiconEntry, LocationValue, MIN_SKILLS, type MergedProfileSkill, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, type OpenToGroup, type OpenToOption, OrgProfileRecord, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PUBLISHERS, type ParsedDelivery, type ParsedPresentation, type PdsProvider, PdsProviderInfo, type PlatformId, type PresentationDeliverySummary, PresentationDuration, type PresentationLinkTypeOption, type PresentationRoleOption, type PrimaryPositionCandidate, Profile, ProfileCertification, type ProfileCompletion, type ProfileDimensionInputs, ProfileEducation, ProfileHonor, ProfileInvolvement, ProfileLanguage, ProfilePosition, ProfilePresentationDelivery, ProfilePresentationDeliveryRecord, ProfilePresentationRecord, ProfileProject, ProfilePublication, ProfileSkill, type Publisher, type RgbColor, SECTION_GROUPS, SECTION_LABELS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, type SectionGroupId, type SectionId, type SkillCategory, type StreamCardBody, type StreamCardSubject, type StreamCardVM, type StreamExternalLink, type StreamMedia, type StreamMediaBase, type StreamMediaBlob, type StreamMediaResolved, type StreamSource, type StreamTheme, type StreamVerb, type TierMeta, type ToStreamCardVMOptions, VERIFICATION_PROVIDERS, type VerificationProvider, type VerificationProviderId, type VerificationSource, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, type WorkplaceTypeOption, categoryForApp, certDateExtractor, classifyEntityRef, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, dimensionsFromInputs, durationFromMinutes, entityDisambiguationLabel, entityResultKey, 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, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isPseudoEmployer, isRegistrableDomainHandle, isSectionPopulated, isValidRgbColor, isVisibleActivityItem, lexiconDateExtractor, limitCombiningMarks, looksLikeDomain, meetsContrastAA, normalizeCompanyKey, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, relativeLuminance, resolveCardHealth, resolveCardUrl, resolveVerifierProvider, rgbToString, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, singleDateExtractor, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamMediaSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, summarizePresentationDeliveries, toStreamCardVM, toStreamCardVMs, truncateGraphemes, verbForCollection, visibleItems };