@singi-labs/sifa-sdk 0.15.0 → 0.17.0
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 +83 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +83 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1154,8 +1154,8 @@ function categoryForApp(appId) {
|
|
|
1154
1154
|
// src/taxonomy/activity-tiers.json
|
|
1155
1155
|
var activity_tiers_default = {
|
|
1156
1156
|
$schema: "https://sifa.id/schemas/activity-tiers/v1.json",
|
|
1157
|
-
version: "1.
|
|
1158
|
-
updated: "2026-
|
|
1157
|
+
version: "1.2.0",
|
|
1158
|
+
updated: "2026-08-25",
|
|
1159
1159
|
tiers: {
|
|
1160
1160
|
creation: {
|
|
1161
1161
|
label: "Made",
|
|
@@ -1183,26 +1183,6 @@ var activity_tiers_default = {
|
|
|
1183
1183
|
tier: "creation",
|
|
1184
1184
|
app: "atmobb"
|
|
1185
1185
|
},
|
|
1186
|
-
"at.locale.project": {
|
|
1187
|
-
tier: "creation",
|
|
1188
|
-
app: "locale",
|
|
1189
|
-
notes: "A localization project the actor owns: git source, source and target locales."
|
|
1190
|
-
},
|
|
1191
|
-
"at.locale.translation": {
|
|
1192
|
-
tier: "creation",
|
|
1193
|
-
app: "locale",
|
|
1194
|
-
notes: "One authored translated string for a message key in a target locale."
|
|
1195
|
-
},
|
|
1196
|
-
"blog.pckt.mini.post": {
|
|
1197
|
-
tier: "creation",
|
|
1198
|
-
app: "pckt",
|
|
1199
|
-
notes: "A pckt microblog post. Long-form pckt posts are site.standard.document instead."
|
|
1200
|
-
},
|
|
1201
|
-
"app.photosky.collection": {
|
|
1202
|
-
tier: "creation",
|
|
1203
|
-
app: "zeens",
|
|
1204
|
-
notes: "A curated photo collection on Zeens (still the app.photosky namespace)."
|
|
1205
|
-
},
|
|
1206
1186
|
"app.beaconbits.beacon": {
|
|
1207
1187
|
tier: "creation",
|
|
1208
1188
|
app: "beaconbits"
|
|
@@ -1268,6 +1248,16 @@ var activity_tiers_default = {
|
|
|
1268
1248
|
app: "bluesky",
|
|
1269
1249
|
notes: "Diverges from app.bsky.graph.follow (action) on purpose: verifying another account's handle is a deliberate trust statement the actor authors, not a tap. Sifa renders it with its own card."
|
|
1270
1250
|
},
|
|
1251
|
+
"app.certified.actor.membership": {
|
|
1252
|
+
tier: "creation",
|
|
1253
|
+
app: "certified",
|
|
1254
|
+
notes: "Joining a group is a commitment, same shape as a Colibri or Open Social membership."
|
|
1255
|
+
},
|
|
1256
|
+
"app.certified.badge.award": {
|
|
1257
|
+
tier: "creation",
|
|
1258
|
+
app: "certified",
|
|
1259
|
+
notes: "An endorsement issued to another DID. A trust signal the actor contributes, like a Bluesky verification."
|
|
1260
|
+
},
|
|
1271
1261
|
"app.collectivesocial.feed.list": {
|
|
1272
1262
|
tier: "creation",
|
|
1273
1263
|
app: "collectivesocial",
|
|
@@ -1277,6 +1267,11 @@ var activity_tiers_default = {
|
|
|
1277
1267
|
tier: "creation",
|
|
1278
1268
|
app: "mcp"
|
|
1279
1269
|
},
|
|
1270
|
+
"app.photosky.collection": {
|
|
1271
|
+
tier: "creation",
|
|
1272
|
+
app: "zeens",
|
|
1273
|
+
notes: "A curated photo collection on Zeens (still the app.photosky namespace)."
|
|
1274
|
+
},
|
|
1280
1275
|
"app.sidetrail.trail": {
|
|
1281
1276
|
tier: "creation",
|
|
1282
1277
|
app: "semble"
|
|
@@ -1294,6 +1289,16 @@ var activity_tiers_default = {
|
|
|
1294
1289
|
app: "userinput",
|
|
1295
1290
|
notes: "Replies are authored text, consistent with app.bsky.feed.post covering replies."
|
|
1296
1291
|
},
|
|
1292
|
+
"at.locale.project": {
|
|
1293
|
+
tier: "creation",
|
|
1294
|
+
app: "locale",
|
|
1295
|
+
notes: "A localization project the actor owns: git source, source and target locales."
|
|
1296
|
+
},
|
|
1297
|
+
"at.locale.translation": {
|
|
1298
|
+
tier: "creation",
|
|
1299
|
+
app: "locale",
|
|
1300
|
+
notes: "One authored translated string for a message key in a target locale."
|
|
1301
|
+
},
|
|
1297
1302
|
"at.margin.annotation": {
|
|
1298
1303
|
tier: "creation",
|
|
1299
1304
|
app: "margin",
|
|
@@ -1321,6 +1326,11 @@ var activity_tiers_default = {
|
|
|
1321
1326
|
tier: "creation",
|
|
1322
1327
|
app: "youandme"
|
|
1323
1328
|
},
|
|
1329
|
+
"blog.pckt.mini.post": {
|
|
1330
|
+
tier: "creation",
|
|
1331
|
+
app: "pckt",
|
|
1332
|
+
notes: "A pckt microblog post. Long-form pckt posts are site.standard.document instead."
|
|
1333
|
+
},
|
|
1324
1334
|
"blue.flashes.feed.post": {
|
|
1325
1335
|
tier: "creation",
|
|
1326
1336
|
app: "flashes"
|
|
@@ -1338,6 +1348,11 @@ var activity_tiers_default = {
|
|
|
1338
1348
|
tier: "creation",
|
|
1339
1349
|
app: "minomobi"
|
|
1340
1350
|
},
|
|
1351
|
+
"com.shinolabs.pinksea.oekaki": {
|
|
1352
|
+
tier: "creation",
|
|
1353
|
+
app: "pinksea",
|
|
1354
|
+
notes: "A drawing made in PinkSea's canvas, stored as an image blob with alt text and tags."
|
|
1355
|
+
},
|
|
1341
1356
|
"com.voxport.podcast.series": {
|
|
1342
1357
|
tier: "creation",
|
|
1343
1358
|
app: "voxport"
|
|
@@ -1499,6 +1514,11 @@ var activity_tiers_default = {
|
|
|
1499
1514
|
app: "sifa",
|
|
1500
1515
|
notes: "OAuth scope record."
|
|
1501
1516
|
},
|
|
1517
|
+
"id.sifa.confirmation": {
|
|
1518
|
+
tier: "action",
|
|
1519
|
+
app: "sifa",
|
|
1520
|
+
notes: "Confirmation that a record naming the actor is accurate (co-speaker credit, project membership)."
|
|
1521
|
+
},
|
|
1502
1522
|
"id.sifa.endorsement": {
|
|
1503
1523
|
tier: "creation",
|
|
1504
1524
|
app: "sifa",
|
|
@@ -1509,11 +1529,6 @@ var activity_tiers_default = {
|
|
|
1509
1529
|
app: "sifa",
|
|
1510
1530
|
notes: "Confirmation/acceptance of an endorsement received."
|
|
1511
1531
|
},
|
|
1512
|
-
"id.sifa.confirmation": {
|
|
1513
|
-
tier: "action",
|
|
1514
|
-
app: "sifa",
|
|
1515
|
-
notes: "Confirmation that a record naming the actor is accurate (co-speaker credit, project membership)."
|
|
1516
|
-
},
|
|
1517
1532
|
"id.sifa.graph.connection": {
|
|
1518
1533
|
tier: "creation",
|
|
1519
1534
|
app: "sifa",
|
|
@@ -1674,6 +1689,31 @@ var activity_tiers_default = {
|
|
|
1674
1689
|
tier: "creation",
|
|
1675
1690
|
app: "papili"
|
|
1676
1691
|
},
|
|
1692
|
+
"org.hypercerts.claim.activity": {
|
|
1693
|
+
tier: "creation",
|
|
1694
|
+
app: "hypercerts",
|
|
1695
|
+
notes: "A hypercert: an authored claim of work done, with title, description, and weighted contributors."
|
|
1696
|
+
},
|
|
1697
|
+
"org.hypercerts.claim.collection": {
|
|
1698
|
+
tier: "creation",
|
|
1699
|
+
app: "hypercerts",
|
|
1700
|
+
notes: "Older shape of the project container that groups claims. Superseded by org.hypercerts.collection."
|
|
1701
|
+
},
|
|
1702
|
+
"org.hypercerts.claim.evaluation": {
|
|
1703
|
+
tier: "creation",
|
|
1704
|
+
app: "hypercerts",
|
|
1705
|
+
notes: "An assessment of a claim carrying a score and a written summary. An opinion with a body."
|
|
1706
|
+
},
|
|
1707
|
+
"org.hypercerts.collection": {
|
|
1708
|
+
tier: "creation",
|
|
1709
|
+
app: "hypercerts",
|
|
1710
|
+
notes: "An authored project container grouping hypercert claims, with its own title, banner, and description."
|
|
1711
|
+
},
|
|
1712
|
+
"org.impactindexer.review.comment": {
|
|
1713
|
+
tier: "creation",
|
|
1714
|
+
app: "impactindexer",
|
|
1715
|
+
notes: "A written review of a hypercert claim, like a Popfeed or BookHive review."
|
|
1716
|
+
},
|
|
1677
1717
|
"org.v-it.skill": {
|
|
1678
1718
|
tier: "creation",
|
|
1679
1719
|
app: "vit"
|
|
@@ -4030,6 +4070,18 @@ var streamCardSubjectSchema = zod.z.discriminatedUnion("kind", [
|
|
|
4030
4070
|
title: zod.z.string().optional()
|
|
4031
4071
|
})
|
|
4032
4072
|
]);
|
|
4073
|
+
var hypercertDetailsSchema = zod.z.object({
|
|
4074
|
+
contributors: zod.z.array(
|
|
4075
|
+
zod.z.object({
|
|
4076
|
+
displayName: zod.z.string(),
|
|
4077
|
+
imageUrl: zod.z.string().optional(),
|
|
4078
|
+
identifier: zod.z.string().optional(),
|
|
4079
|
+
weight: zod.z.number().optional()
|
|
4080
|
+
})
|
|
4081
|
+
),
|
|
4082
|
+
contributorCount: zod.z.number(),
|
|
4083
|
+
attachments: zod.z.array(zod.z.object({ title: zod.z.string().optional(), url: zod.z.string() }))
|
|
4084
|
+
});
|
|
4033
4085
|
var streamCardVMSchema = zod.z.lazy(
|
|
4034
4086
|
() => zod.z.object({
|
|
4035
4087
|
uri: zod.z.string(),
|
|
@@ -4045,7 +4097,8 @@ var streamCardVMSchema = zod.z.lazy(
|
|
|
4045
4097
|
media: zod.z.array(streamMediaSchema).optional(),
|
|
4046
4098
|
externalLink: streamExternalLinkSchema.optional(),
|
|
4047
4099
|
theme: streamThemeSchema.optional(),
|
|
4048
|
-
subject: zod.z.lazy(() => streamCardSubjectSchema).optional()
|
|
4100
|
+
subject: zod.z.lazy(() => streamCardSubjectSchema).optional(),
|
|
4101
|
+
hypercertDetails: hypercertDetailsSchema.optional()
|
|
4049
4102
|
})
|
|
4050
4103
|
);
|
|
4051
4104
|
function maxGraphemes(max) {
|
|
@@ -4768,6 +4821,7 @@ function toStreamCardVM(item, options = {}) {
|
|
|
4768
4821
|
const sourceUrl = resolveSourceUrl(item, record);
|
|
4769
4822
|
if (sourceUrl) vm.sourceUrl = sourceUrl;
|
|
4770
4823
|
}
|
|
4824
|
+
if (item.hypercertDetails) vm.hypercertDetails = item.hypercertDetails;
|
|
4771
4825
|
if (item.subject) {
|
|
4772
4826
|
vm.subject = { kind: "post", post: toStreamCardVM(item.subject, options) };
|
|
4773
4827
|
}
|
|
@@ -5984,7 +6038,7 @@ function describeSifaRecord(collection, value) {
|
|
|
5984
6038
|
}
|
|
5985
6039
|
|
|
5986
6040
|
// src/index.ts
|
|
5987
|
-
var SIFA_SDK_VERSION = "0.
|
|
6041
|
+
var SIFA_SDK_VERSION = "0.17.0";
|
|
5988
6042
|
|
|
5989
6043
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
5990
6044
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|