@singi-labs/sifa-sdk 0.19.22 → 0.19.24

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,7 +4014,7 @@ 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.5.0",
4017
+ version: "1.6.0",
4018
4018
  updated: "2026-09-20",
4019
4019
  defaultVerb: "created",
4020
4020
  verbs: {
@@ -4040,9 +4040,11 @@ var verbs_default = {
4040
4040
  "community.nooki.membership": "joined",
4041
4041
  "community.opensocial.membership": "joined",
4042
4042
  "computer.aetheros.page": "published",
4043
+ "dev.keytrace.claim": "verified",
4043
4044
  "eu.atcommons.member": "joined",
4044
4045
  "fm.plyr.comment": "commented",
4045
4046
  "forum.barazo.post": "posted",
4047
+ "fund.at.graph.endorse": "supported",
4046
4048
  "fyi.atstore.listing.review": "reviewed",
4047
4049
  "fyi.unravel.frontpage.post": "posted",
4048
4050
  "id.sifa.endorsement": "endorsed",
@@ -4092,7 +4094,9 @@ var STREAM_VERBS = [
4092
4094
  "streamed",
4093
4095
  "wrote",
4094
4096
  "wasAt",
4095
- "metWith"
4097
+ "metWith",
4098
+ "supported",
4099
+ "verified"
4096
4100
  ];
4097
4101
  var streamVerbSchema = zod.z.enum(STREAM_VERBS);
4098
4102
  var verbMapSchema = zod.z.object({
@@ -4553,8 +4557,10 @@ var TITLE_BY_VERB = {
4553
4557
  annotated: () => "Annotated",
4554
4558
  streamed: () => "Streamed",
4555
4559
  wrote: () => "Wrote",
4556
- wasAt: (_label, hasSubject) => hasSubject ? "Was at" : "Was at",
4557
- metWith: (_label, hasSubject) => hasSubject ? "Met with" : "Met with"
4560
+ wasAt: () => "Was at",
4561
+ metWith: () => "Met with",
4562
+ supported: () => "Supported",
4563
+ verified: () => "Verified"
4558
4564
  };
4559
4565
  function buildTitle(verb, label, hasSubject) {
4560
4566
  return TITLE_BY_VERB[verb](label, hasSubject);
@@ -4810,6 +4816,15 @@ function applyKeytraceVerification(vm, record) {
4810
4816
  const profileUrl = asNonEmptyString(identity.profileUrl);
4811
4817
  if (profileUrl) body.profileUrl = profileUrl;
4812
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
+ }
4813
4828
  return vm;
4814
4829
  }
4815
4830
  function applyBskyVerification(vm, record) {
@@ -6622,7 +6637,7 @@ function describeSifaRecord(collection, value) {
6622
6637
  }
6623
6638
 
6624
6639
  // src/index.ts
6625
- var SIFA_SDK_VERSION = "0.19.22";
6640
+ var SIFA_SDK_VERSION = "0.19.24";
6626
6641
 
6627
6642
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6628
6643
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;