@singi-labs/sifa-sdk 0.11.5 → 0.11.7
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/{adult-content-Bwr392Yu.d.cts → adult-content-B5hAdi76.d.cts} +1 -1
- package/dist/{adult-content-Bwr392Yu.d.ts → adult-content-B5hAdi76.d.ts} +1 -1
- package/dist/index.cjs +49 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +49 -3
- package/dist/index.js.map +1 -1
- package/dist/{keys-BfRke4RH.d.ts → keys-_UjR-zwC.d.ts} +1 -1
- package/dist/{keys-opBDjxEP.d.cts → keys-qoNpril5.d.cts} +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -406,4 +406,4 @@ declare function hasAdultContent(item: {
|
|
|
406
406
|
labels?: ActivityLabel[];
|
|
407
407
|
}): boolean;
|
|
408
408
|
|
|
409
|
-
export { type AdultContentLabel as A, hasAdultContent as B, type ExternalAccount as E, type FeedItem as F, type LocationValue as L, type ProfileSkill as P, type SkillSuggestion as S, type TrustStat as T, type VerifiedAccount as V, type ActivityLabel as a, type
|
|
409
|
+
export { type AdultContentLabel as A, hasAdultContent as B, type ExternalAccount as E, type FeedItem as F, type LocationValue as L, type ProfileSkill as P, type SkillSuggestion as S, type TrustStat as T, type VerifiedAccount as V, type ActivityLabel as a, type ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, ADULT_CONTENT_LABELS as e, type ActiveApp as f, type Endorsement as g, type EndorsementData as h, type ExternalAccountKeytraceClaim as i, type LanguageProficiency as j, type PresentationLinkView as k, type ProfileCertification as l, type ProfileCourse as m, type ProfileEducation as n, type ProfileHonor as o, type ProfileIndustry as p, type ProfileLanguage as q, type ProfileLocation as r, type ProfileOverrideSource as s, type ProfilePosition as t, type ProfilePresentation as u, type ProfileProject as v, type ProfilePublication as w, type ProfileVolunteering as x, type PublicationContributor as y, type SkillRef as z };
|
|
@@ -406,4 +406,4 @@ declare function hasAdultContent(item: {
|
|
|
406
406
|
labels?: ActivityLabel[];
|
|
407
407
|
}): boolean;
|
|
408
408
|
|
|
409
|
-
export { type AdultContentLabel as A, hasAdultContent as B, type ExternalAccount as E, type FeedItem as F, type LocationValue as L, type ProfileSkill as P, type SkillSuggestion as S, type TrustStat as T, type VerifiedAccount as V, type ActivityLabel as a, type
|
|
409
|
+
export { type AdultContentLabel as A, hasAdultContent as B, type ExternalAccount as E, type FeedItem as F, type LocationValue as L, type ProfileSkill as P, type SkillSuggestion as S, type TrustStat as T, type VerifiedAccount as V, type ActivityLabel as a, type ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, ADULT_CONTENT_LABELS as e, type ActiveApp as f, type Endorsement as g, type EndorsementData as h, type ExternalAccountKeytraceClaim as i, type LanguageProficiency as j, type PresentationLinkView as k, type ProfileCertification as l, type ProfileCourse as m, type ProfileEducation as n, type ProfileHonor as o, type ProfileIndustry as p, type ProfileLanguage as q, type ProfileLocation as r, type ProfileOverrideSource as s, type ProfilePosition as t, type ProfilePresentation as u, type ProfileProject as v, type ProfilePublication as w, type ProfileVolunteering as x, type PublicationContributor as y, type SkillRef as z };
|
package/dist/index.cjs
CHANGED
|
@@ -968,6 +968,10 @@ var APP_CATEGORY_MAP = {
|
|
|
968
968
|
// Marque domain registrar — a domain registration record is a dated
|
|
969
969
|
// identity/ownership action, surfaced as a "registered a domain" event.
|
|
970
970
|
marque: "Domains",
|
|
971
|
+
// ATCR (io.atcr) — distributed OCI container registry. The portfolio entry
|
|
972
|
+
// is io.atcr.repo.page (a published repository with a markdown README);
|
|
973
|
+
// manifests and tags are low-level artifacts excluded backend-side.
|
|
974
|
+
atcr: "Code",
|
|
971
975
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
972
976
|
// no backend scan collection yet)
|
|
973
977
|
linkat: "Links",
|
|
@@ -1414,6 +1418,40 @@ function formatPresentationDuration(duration) {
|
|
|
1414
1418
|
return `${minMinutes} min`;
|
|
1415
1419
|
}
|
|
1416
1420
|
|
|
1421
|
+
// src/format/summarize-deliveries.ts
|
|
1422
|
+
var CANCELLED_STATUS = "community.lexicon.calendar.event#cancelled";
|
|
1423
|
+
var KEYNOTE_ROLE = "id.sifa.defs#keynote";
|
|
1424
|
+
function summarizePresentationDeliveries(deliveries, options = {}) {
|
|
1425
|
+
const venueLimit = options.venueLimit ?? 3;
|
|
1426
|
+
const counted = (deliveries ?? []).filter((delivery) => delivery.status !== CANCELLED_STATUS);
|
|
1427
|
+
const sorted = [...counted].sort((a, b) => (b.date ?? "").localeCompare(a.date ?? ""));
|
|
1428
|
+
let recentYear;
|
|
1429
|
+
for (const delivery of counted) {
|
|
1430
|
+
if (!delivery.date) continue;
|
|
1431
|
+
const year = Number(delivery.date.slice(0, 4));
|
|
1432
|
+
if (!Number.isNaN(year) && (recentYear === void 0 || year > recentYear)) {
|
|
1433
|
+
recentYear = year;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1437
|
+
const distinctVenues = [];
|
|
1438
|
+
for (const delivery of sorted) {
|
|
1439
|
+
const name = delivery.eventName?.trim();
|
|
1440
|
+
if (name && !seen.has(name)) {
|
|
1441
|
+
seen.add(name);
|
|
1442
|
+
distinctVenues.push(name);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
const venues = distinctVenues.slice(0, venueLimit);
|
|
1446
|
+
return {
|
|
1447
|
+
count: counted.length,
|
|
1448
|
+
recentYear,
|
|
1449
|
+
keynoteCount: counted.filter((delivery) => delivery.role === KEYNOTE_ROLE).length,
|
|
1450
|
+
venues,
|
|
1451
|
+
moreVenues: distinctVenues.length - venues.length
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1417
1455
|
// src/format/sort-by-date.ts
|
|
1418
1456
|
var FAR_FUTURE = "9999-12-31";
|
|
1419
1457
|
var FAR_PAST = "0000-01-01";
|
|
@@ -1870,6 +1908,13 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1870
1908
|
// Kevara (professional network) has no live public web surface yet — its
|
|
1871
1909
|
// domain doesn't resolve and there's no per-record viewer. Recognized so
|
|
1872
1910
|
// the speaker-directory card renders with the right pill, but non-clickable.
|
|
1911
|
+
},
|
|
1912
|
+
atcr: {
|
|
1913
|
+
// ATCR repositories live at /r/{handle}/{repository}, where the rkey of an
|
|
1914
|
+
// io.atcr.repo.page record is the repository name. Verified live: GET
|
|
1915
|
+
// /r/{handle}/{rkey} and /u/{handle} both return 200.
|
|
1916
|
+
urlPattern: "https://atcr.io/r/{handle}/{rkey}",
|
|
1917
|
+
profileUrlPattern: "https://atcr.io/u/{handle}"
|
|
1873
1918
|
}
|
|
1874
1919
|
});
|
|
1875
1920
|
var COLLECTION_TO_APP = [
|
|
@@ -1915,7 +1960,8 @@ var COLLECTION_TO_APP = [
|
|
|
1915
1960
|
["social.crate.", "crate"],
|
|
1916
1961
|
["quest.atmo.", "atmorsvp"],
|
|
1917
1962
|
["community.opensocial.", "opensocial"],
|
|
1918
|
-
["is.kevara.", "kevara"]
|
|
1963
|
+
["is.kevara.", "kevara"],
|
|
1964
|
+
["io.atcr.", "atcr"]
|
|
1919
1965
|
];
|
|
1920
1966
|
|
|
1921
1967
|
// src/cards/resolve-card-url.ts
|
|
@@ -2550,7 +2596,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
2550
2596
|
});
|
|
2551
2597
|
|
|
2552
2598
|
// src/index.ts
|
|
2553
|
-
var SIFA_SDK_VERSION = "0.11.
|
|
2599
|
+
var SIFA_SDK_VERSION = "0.11.7";
|
|
2554
2600
|
|
|
2555
2601
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
2556
2602
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|
|
@@ -2705,6 +2751,7 @@ exports.singleDateExtractor = singleDateExtractor;
|
|
|
2705
2751
|
exports.sortByDateDesc = sortByDateDesc;
|
|
2706
2752
|
exports.stripHtmlToText = stripHtmlToText;
|
|
2707
2753
|
exports.strongRefSchema = strongRefSchema;
|
|
2754
|
+
exports.summarizePresentationDeliveries = summarizePresentationDeliveries;
|
|
2708
2755
|
exports.truncateGraphemes = truncateGraphemes;
|
|
2709
2756
|
exports.uriSchema = uriSchema;
|
|
2710
2757
|
//# sourceMappingURL=index.cjs.map
|