@singi-labs/sifa-sdk 0.10.10 → 0.10.11
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 +45 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +45 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -306,6 +306,9 @@ declare const APP_CATEGORY_MAP: {
|
|
|
306
306
|
readonly anisota: "Posts";
|
|
307
307
|
readonly atfund: "Endorsements";
|
|
308
308
|
readonly crate: "Articles";
|
|
309
|
+
readonly atmorsvp: "Events";
|
|
310
|
+
readonly opensocial: "Social";
|
|
311
|
+
readonly kevara: "Events";
|
|
309
312
|
readonly linkat: "Links";
|
|
310
313
|
readonly kipclip: "Links";
|
|
311
314
|
readonly statusphere: "Social";
|
package/dist/index.d.ts
CHANGED
|
@@ -306,6 +306,9 @@ declare const APP_CATEGORY_MAP: {
|
|
|
306
306
|
readonly anisota: "Posts";
|
|
307
307
|
readonly atfund: "Endorsements";
|
|
308
308
|
readonly crate: "Articles";
|
|
309
|
+
readonly atmorsvp: "Events";
|
|
310
|
+
readonly opensocial: "Social";
|
|
311
|
+
readonly kevara: "Events";
|
|
309
312
|
readonly linkat: "Links";
|
|
310
313
|
readonly kipclip: "Links";
|
|
311
314
|
readonly statusphere: "Social";
|
package/dist/index.js
CHANGED
|
@@ -913,6 +913,12 @@ var APP_CATEGORY_MAP = {
|
|
|
913
913
|
anisota: "Posts",
|
|
914
914
|
atfund: "Endorsements",
|
|
915
915
|
crate: "Articles",
|
|
916
|
+
atmorsvp: "Events",
|
|
917
|
+
opensocial: "Social",
|
|
918
|
+
// Kevara speaker-directory listing — a professional speaking-availability
|
|
919
|
+
// declaration (talk topics, formats like keynote/panel/conference-talk).
|
|
920
|
+
// Grouped under Events as the closest fit (speaking engagements).
|
|
921
|
+
kevara: "Events",
|
|
916
922
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
917
923
|
// no backend scan collection yet)
|
|
918
924
|
linkat: "Links",
|
|
@@ -1635,6 +1641,23 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1635
1641
|
// render on the maker's own site. `content` cards link out via
|
|
1636
1642
|
// record.canonicalUrl (handled in resolveCardUrl); `note` records have no
|
|
1637
1643
|
// public URL and render non-clickable. So no app-level pattern applies.
|
|
1644
|
+
},
|
|
1645
|
+
atmorsvp: {
|
|
1646
|
+
// atmo.rsvp events live at /p/{did}/e/{rkey}. The per-item pattern is used
|
|
1647
|
+
// for the event record itself; checkin records build their URL from the
|
|
1648
|
+
// referenced event uri in resolveCardUrl (mirrors smokesignal rsvp).
|
|
1649
|
+
urlPattern: "https://atmo.rsvp/p/{did}/e/{rkey}",
|
|
1650
|
+
profileUrlPattern: "https://atmo.rsvp/p/{did}"
|
|
1651
|
+
},
|
|
1652
|
+
opensocial: {
|
|
1653
|
+
// Open Social (opensocial.community) is community-management infrastructure
|
|
1654
|
+
// with no public per-membership permalink. Profile fallback only.
|
|
1655
|
+
profileUrlPattern: "https://opensocial.community"
|
|
1656
|
+
},
|
|
1657
|
+
kevara: {
|
|
1658
|
+
// Kevara (professional network) has no live public web surface yet — its
|
|
1659
|
+
// domain doesn't resolve and there's no per-record viewer. Recognized so
|
|
1660
|
+
// the speaker-directory card renders with the right pill, but non-clickable.
|
|
1638
1661
|
}
|
|
1639
1662
|
});
|
|
1640
1663
|
var COLLECTION_TO_APP = [
|
|
@@ -1677,7 +1700,10 @@ var COLLECTION_TO_APP = [
|
|
|
1677
1700
|
["fyi.atstore.", "atstore"],
|
|
1678
1701
|
["fm.plyr.", "plyr"],
|
|
1679
1702
|
["fund.at.", "atfund"],
|
|
1680
|
-
["social.crate.", "crate"]
|
|
1703
|
+
["social.crate.", "crate"],
|
|
1704
|
+
["quest.atmo.", "atmorsvp"],
|
|
1705
|
+
["community.opensocial.", "opensocial"],
|
|
1706
|
+
["is.kevara.", "kevara"]
|
|
1681
1707
|
];
|
|
1682
1708
|
|
|
1683
1709
|
// src/cards/resolve-card-url.ts
|
|
@@ -1777,6 +1803,23 @@ function resolveCardUrl(item) {
|
|
|
1777
1803
|
}
|
|
1778
1804
|
return null;
|
|
1779
1805
|
}
|
|
1806
|
+
if (collection === "quest.atmo.event") {
|
|
1807
|
+
const parsed2 = parseAtUri(uri);
|
|
1808
|
+
if (parsed2) {
|
|
1809
|
+
return `https://atmo.rsvp/p/${parsed2.did}/e/${parsed2.rkey}`;
|
|
1810
|
+
}
|
|
1811
|
+
return null;
|
|
1812
|
+
}
|
|
1813
|
+
if (collection === "quest.atmo.checkin") {
|
|
1814
|
+
const eventUri = stringOrNull(record.event);
|
|
1815
|
+
if (eventUri) {
|
|
1816
|
+
const parsed2 = parseAtUri(eventUri);
|
|
1817
|
+
if (parsed2) {
|
|
1818
|
+
return `https://atmo.rsvp/p/${parsed2.did}/e/${parsed2.rkey}`;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
return null;
|
|
1822
|
+
}
|
|
1780
1823
|
if (collection === "fyi.atstore.listing.review") {
|
|
1781
1824
|
const listingMeta = record.listingMeta;
|
|
1782
1825
|
if (listingMeta != null && typeof listingMeta === "object") {
|
|
@@ -2248,7 +2291,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
2248
2291
|
});
|
|
2249
2292
|
|
|
2250
2293
|
// src/index.ts
|
|
2251
|
-
var SIFA_SDK_VERSION = "0.10.
|
|
2294
|
+
var SIFA_SDK_VERSION = "0.10.11";
|
|
2252
2295
|
|
|
2253
2296
|
export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, AtmosphereFeedItemSchema, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, PLATFORM_LABELS, PLATFORM_OPTIONS, PUBLISHERS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, SifaFeedItemSchema, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, categoryForApp, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, encodeFeedCursor, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getActivityTaxonomyVersion, getActivityTier, getAppCategoryIcon, getAppIdForCollection, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getWorkplaceTypeLabel, groupSkillsByCategory, hasAdultContent, isAppCategory, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, openToTokenToValue, openToValueToToken, parseLocationString, pdsProviderFromApi, pickPrimaryPosition, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
|
|
2254
2297
|
//# sourceMappingURL=index.js.map
|