@singi-labs/sifa-sdk 0.19.21 → 0.19.23

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 CHANGED
@@ -4014,11 +4014,12 @@ function getPublisherFromSiteUrl(siteUrl) {
4014
4014
  // src/stream/verbs.json
4015
4015
  var verbs_default = {
4016
4016
  $schema: "https://sifa.id/schemas/activity-verbs/v1.json",
4017
- version: "1.4.0",
4018
- updated: "2026-09-18",
4017
+ version: "1.6.0",
4018
+ updated: "2026-09-20",
4019
4019
  defaultVerb: "created",
4020
4020
  verbs: {
4021
4021
  "agency.portable.membership": "joined",
4022
+ "app.beaconbits.beacon": "wasAt",
4022
4023
  "app.atmobb.discussion.reply": "replied",
4023
4024
  "app.bsky.feed.post": "posted",
4024
4025
  "app.bsky.feed.repost": "reposted",
@@ -4029,7 +4030,8 @@ var verbs_default = {
4029
4030
  "at.margin.bookmark": "bookmarked",
4030
4031
  "at.margin.note": "annotated",
4031
4032
  "at.marque.domain": "registered",
4032
- "at.youandme.connection": "followed",
4033
+ "at.youandme.connection": "metWith",
4034
+ "blog.pckt.mini.post": "wrote",
4033
4035
  "blue.flashes.feed.post": "posted",
4034
4036
  "buzz.bookhive.book": "reviewed",
4035
4037
  "com.whtwnd.blog.entry": "published",
@@ -4038,9 +4040,12 @@ var verbs_default = {
4038
4040
  "community.nooki.membership": "joined",
4039
4041
  "community.opensocial.membership": "joined",
4040
4042
  "computer.aetheros.page": "published",
4043
+ "dev.keytrace.claim": "verified",
4041
4044
  "eu.atcommons.member": "joined",
4042
4045
  "fm.plyr.comment": "commented",
4043
4046
  "forum.barazo.post": "posted",
4047
+ "fund.at.graph.endorse": "supported",
4048
+ "fyi.atstore.listing.review": "reviewed",
4044
4049
  "fyi.unravel.frontpage.post": "posted",
4045
4050
  "id.sifa.endorsement": "endorsed",
4046
4051
  "id.sifa.graph.connection": "joined",
@@ -4054,6 +4059,8 @@ var verbs_default = {
4054
4059
  "sh.tangled.repo.pull": "shipped",
4055
4060
  "site.standard.document": "published",
4056
4061
  "social.colibri.membership": "joined",
4062
+ "social.grain.gallery": "posted",
4063
+ "place.stream.livestream": "streamed",
4057
4064
  "social.kut.community.membership": "joined",
4058
4065
  "social.popfeed.feed.note": "posted",
4059
4066
  "social.popfeed.feed.post": "posted",
@@ -4083,7 +4090,13 @@ var STREAM_VERBS = [
4083
4090
  "followed",
4084
4091
  "bookmarked",
4085
4092
  "registered",
4086
- "annotated"
4093
+ "annotated",
4094
+ "streamed",
4095
+ "wrote",
4096
+ "wasAt",
4097
+ "metWith",
4098
+ "supported",
4099
+ "verified"
4087
4100
  ];
4088
4101
  var streamVerbSchema = zod.z.enum(STREAM_VERBS);
4089
4102
  var verbMapSchema = zod.z.object({
@@ -4541,7 +4554,13 @@ var TITLE_BY_VERB = {
4541
4554
  followed: () => "Followed",
4542
4555
  bookmarked: () => "Bookmarked",
4543
4556
  registered: () => "Registered",
4544
- annotated: () => "Annotated"
4557
+ annotated: () => "Annotated",
4558
+ streamed: () => "Streamed",
4559
+ wrote: () => "Wrote",
4560
+ wasAt: () => "Was at",
4561
+ metWith: () => "Met with",
4562
+ supported: () => "Supported",
4563
+ verified: () => "Verified"
4545
4564
  };
4546
4565
  function buildTitle(verb, label, hasSubject) {
4547
4566
  return TITLE_BY_VERB[verb](label, hasSubject);
@@ -4797,6 +4816,15 @@ function applyKeytraceVerification(vm, record) {
4797
4816
  const profileUrl = asNonEmptyString(identity.profileUrl);
4798
4817
  if (profileUrl) body.profileUrl = profileUrl;
4799
4818
  vm.body = body;
4819
+ const accountLabel = subjectLabel ?? asNonEmptyString(record.type);
4820
+ if (accountLabel) {
4821
+ vm.subject = {
4822
+ kind: "record",
4823
+ uri: "",
4824
+ title: accountLabel,
4825
+ ...profileUrl ? { url: profileUrl } : {}
4826
+ };
4827
+ }
4800
4828
  return vm;
4801
4829
  }
4802
4830
  function applyBskyVerification(vm, record) {
@@ -4889,9 +4917,9 @@ function applyStandardSite(vm, record) {
4889
4917
  vm.body = body;
4890
4918
  return vm;
4891
4919
  }
4892
- function applyYouAndMe(vm, record) {
4920
+ function applyYouAndMe(vm, record, item) {
4893
4921
  const did = asNonEmptyString(record.subject);
4894
- if (did) vm.subject = { kind: "person", did };
4922
+ if (did) vm.subject = withResolvedSubjectMeta({ kind: "person", did }, item);
4895
4923
  vm.body = { kind: "generic" };
4896
4924
  return vm;
4897
4925
  }
@@ -5159,7 +5187,7 @@ function toStreamCardVM(item, options = {}) {
5159
5187
  case "site.standard.document":
5160
5188
  return record ? applyStandardSite(vm, record) : withGeneric(vm);
5161
5189
  case "at.youandme.connection":
5162
- return record ? applyYouAndMe(vm, record) : withGeneric(vm);
5190
+ return record ? applyYouAndMe(vm, record, item) : withGeneric(vm);
5163
5191
  case "fyi.asq.answer":
5164
5192
  return record ? applyAsqAnswer(vm, record) : withGeneric(vm);
5165
5193
  case "fediverse.post":
@@ -6609,7 +6637,7 @@ function describeSifaRecord(collection, value) {
6609
6637
  }
6610
6638
 
6611
6639
  // src/index.ts
6612
- var SIFA_SDK_VERSION = "0.19.21";
6640
+ var SIFA_SDK_VERSION = "0.19.23";
6613
6641
 
6614
6642
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6615
6643
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;