@singi-labs/sifa-sdk 0.19.38 → 0.19.40
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 +35 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +35 -6
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.cjs +49 -2
- package/dist/jsonld/index.cjs.map +1 -1
- package/dist/jsonld/index.d.cts +14 -0
- package/dist/jsonld/index.d.ts +14 -0
- package/dist/jsonld/index.js +49 -2
- package/dist/jsonld/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1364,6 +1364,8 @@ var APP_CATEGORY_MAP = {
|
|
|
1364
1364
|
// ma.tokono.byov.video — authored videos hosted via the tokono.ma "bring your own video" feature
|
|
1365
1365
|
portable: "Social",
|
|
1366
1366
|
// agency.portable.membership — joining a community (a commitment), attested by another actor
|
|
1367
|
+
rpgactor: "Art",
|
|
1368
|
+
// actor.rpg.sprite + equipment.rpg.item: a pixel-art RPG character and the equipment items it was given
|
|
1367
1369
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
1368
1370
|
// no backend scan collection yet)
|
|
1369
1371
|
linkat: "Links",
|
|
@@ -1400,6 +1402,16 @@ var activity_tiers_default = {
|
|
|
1400
1402
|
}
|
|
1401
1403
|
},
|
|
1402
1404
|
lexicons: {
|
|
1405
|
+
"actor.rpg.sprite": {
|
|
1406
|
+
tier: "creation",
|
|
1407
|
+
app: "rpgactor",
|
|
1408
|
+
notes: "The player's pixel-art RPG character sprite sheet (rkey self), portable across games."
|
|
1409
|
+
},
|
|
1410
|
+
"equipment.rpg.item": {
|
|
1411
|
+
tier: "creation",
|
|
1412
|
+
app: "rpgactor",
|
|
1413
|
+
notes: "An equipment item the player accepted from a provider, in the player's own repo. The provider-side equipment.rpg.give stays filtered."
|
|
1414
|
+
},
|
|
1403
1415
|
"agency.portable.membership": {
|
|
1404
1416
|
tier: "creation",
|
|
1405
1417
|
app: "portable",
|
|
@@ -3848,6 +3860,13 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
3848
3860
|
portable: {
|
|
3849
3861
|
// agency.portable (handle portable.agency) has no resolving website, and a
|
|
3850
3862
|
// membership record has no page of its own. Cards render non-clickable.
|
|
3863
|
+
},
|
|
3864
|
+
rpgactor: {
|
|
3865
|
+
// rpg.actor renders one character page per player, holding the sprite and
|
|
3866
|
+
// every equipped item. Sprites (rkey self) and items (rkey = item id) have
|
|
3867
|
+
// no page of their own, so both link to the player. Verified live:
|
|
3868
|
+
// GET /{handle} returns 200 with og:url https://rpg.actor/{handle}.
|
|
3869
|
+
profileUrlPattern: "https://rpg.actor/{handle}"
|
|
3851
3870
|
}
|
|
3852
3871
|
});
|
|
3853
3872
|
var COLLECTION_TO_APP = [
|
|
@@ -3940,7 +3959,9 @@ var COLLECTION_TO_APP = [
|
|
|
3940
3959
|
// Onboard from the upcoming profile-of-the-day audit.
|
|
3941
3960
|
["in.atmob.paste.", "atmob"],
|
|
3942
3961
|
["ma.tokono.byov.", "tokono"],
|
|
3943
|
-
["agency.portable.", "portable"]
|
|
3962
|
+
["agency.portable.", "portable"],
|
|
3963
|
+
["actor.rpg.", "rpgactor"],
|
|
3964
|
+
["equipment.rpg.", "rpgactor"]
|
|
3944
3965
|
];
|
|
3945
3966
|
|
|
3946
3967
|
// src/cards/resolve-card-url.ts
|
|
@@ -4269,10 +4290,11 @@ function getPublisherFromSiteUrl(siteUrl) {
|
|
|
4269
4290
|
// src/stream/verbs.json
|
|
4270
4291
|
var verbs_default = {
|
|
4271
4292
|
$schema: "https://sifa.id/schemas/activity-verbs/v1.json",
|
|
4272
|
-
version: "1.
|
|
4273
|
-
updated: "2026-09-
|
|
4293
|
+
version: "1.7.0",
|
|
4294
|
+
updated: "2026-09-26",
|
|
4274
4295
|
defaultVerb: "created",
|
|
4275
4296
|
verbs: {
|
|
4297
|
+
"actor.rpg.sprite": "styledCharacter",
|
|
4276
4298
|
"agency.portable.membership": "joined",
|
|
4277
4299
|
"app.beaconbits.beacon": "wasAt",
|
|
4278
4300
|
"app.atmobb.discussion.reply": "replied",
|
|
@@ -4296,6 +4318,7 @@ var verbs_default = {
|
|
|
4296
4318
|
"community.opensocial.membership": "joined",
|
|
4297
4319
|
"computer.aetheros.page": "published",
|
|
4298
4320
|
"dev.keytrace.claim": "verified",
|
|
4321
|
+
"equipment.rpg.item": "received",
|
|
4299
4322
|
"eu.atcommons.member": "joined",
|
|
4300
4323
|
"fm.plyr.comment": "commented",
|
|
4301
4324
|
"forum.barazo.post": "posted",
|
|
@@ -4351,7 +4374,11 @@ var STREAM_VERBS = [
|
|
|
4351
4374
|
"wasAt",
|
|
4352
4375
|
"metWith",
|
|
4353
4376
|
"supported",
|
|
4354
|
-
"verified"
|
|
4377
|
+
"verified",
|
|
4378
|
+
// rpg.actor: accepting an equipment item, and (re)composing the character's
|
|
4379
|
+
// pixel-art sprite.
|
|
4380
|
+
"received",
|
|
4381
|
+
"styledCharacter"
|
|
4355
4382
|
];
|
|
4356
4383
|
var streamVerbSchema = zod.z.enum(STREAM_VERBS);
|
|
4357
4384
|
var verbMapSchema = zod.z.object({
|
|
@@ -4815,7 +4842,9 @@ var TITLE_BY_VERB = {
|
|
|
4815
4842
|
wasAt: () => "Was at",
|
|
4816
4843
|
metWith: () => "Met with",
|
|
4817
4844
|
supported: () => "Supported",
|
|
4818
|
-
verified: () => "Verified"
|
|
4845
|
+
verified: () => "Verified",
|
|
4846
|
+
received: () => "Received",
|
|
4847
|
+
styledCharacter: () => "Styled a character"
|
|
4819
4848
|
};
|
|
4820
4849
|
function buildTitle(verb, label, hasSubject) {
|
|
4821
4850
|
return TITLE_BY_VERB[verb](label, hasSubject);
|
|
@@ -7008,7 +7037,7 @@ function describeSifaRecord(collection, value) {
|
|
|
7008
7037
|
}
|
|
7009
7038
|
|
|
7010
7039
|
// src/index.ts
|
|
7011
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
7040
|
+
var SIFA_SDK_VERSION = "0.19.40";
|
|
7012
7041
|
|
|
7013
7042
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
7014
7043
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|