@singi-labs/sifa-sdk 0.19.16 → 0.19.18

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.2.0",
4017
+ version: "1.4.0",
4018
4018
  updated: "2026-09-18",
4019
4019
  defaultVerb: "created",
4020
4020
  verbs: {
@@ -4025,7 +4025,10 @@ var verbs_default = {
4025
4025
  "app.sidetrail.trail": "shipped",
4026
4026
  "app.sidetrail.walk": "shipped",
4027
4027
  "app.userinput.reply": "replied",
4028
+ "at.margin.annotation": "annotated",
4028
4029
  "at.margin.bookmark": "bookmarked",
4030
+ "at.margin.note": "annotated",
4031
+ "at.marque.domain": "registered",
4029
4032
  "at.youandme.connection": "followed",
4030
4033
  "blue.flashes.feed.post": "posted",
4031
4034
  "buzz.bookhive.book": "reviewed",
@@ -4078,7 +4081,9 @@ var STREAM_VERBS = [
4078
4081
  "rsvped",
4079
4082
  "liked",
4080
4083
  "followed",
4081
- "bookmarked"
4084
+ "bookmarked",
4085
+ "registered",
4086
+ "annotated"
4082
4087
  ];
4083
4088
  var streamVerbSchema = zod.z.enum(STREAM_VERBS);
4084
4089
  var verbMapSchema = zod.z.object({
@@ -4534,7 +4539,9 @@ var TITLE_BY_VERB = {
4534
4539
  rsvped: (_label, hasSubject) => hasSubject ? "RSVP'd to" : "RSVP'd",
4535
4540
  liked: () => "Liked",
4536
4541
  followed: () => "Followed",
4537
- bookmarked: () => "Bookmarked"
4542
+ bookmarked: () => "Bookmarked",
4543
+ registered: () => "Registered",
4544
+ annotated: () => "Annotated"
4538
4545
  };
4539
4546
  function buildTitle(verb, label, hasSubject) {
4540
4547
  return TITLE_BY_VERB[verb](label, hasSubject);
@@ -4918,6 +4925,7 @@ var GENERIC_TEXT_ORDER = [
4918
4925
  "note",
4919
4926
  "caption",
4920
4927
  "summary",
4928
+ "domain",
4921
4929
  "status"
4922
4930
  ];
4923
4931
  function genericText(collection, record) {
@@ -4985,6 +4993,14 @@ function genericSubject(record) {
4985
4993
  if (uri && uri.startsWith("at://")) return { kind: "record", uri };
4986
4994
  const parentUri = nonBlankString(asRecord(asRecord(record.reply)?.parent)?.uri);
4987
4995
  if (parentUri && parentUri.startsWith("at://")) return { kind: "record", uri: parentUri };
4996
+ const target = asRecord(record.target);
4997
+ if (target) {
4998
+ const source = httpUrl(target.source);
4999
+ if (source) {
5000
+ const title = nonBlankString(target.title);
5001
+ return { kind: "record", uri: source, ...title ? { title } : {}, url: source };
5002
+ }
5003
+ }
4988
5004
  return void 0;
4989
5005
  }
4990
5006
  function withResolvedSubjectMeta(subject, item) {
@@ -6585,7 +6601,7 @@ function describeSifaRecord(collection, value) {
6585
6601
  }
6586
6602
 
6587
6603
  // src/index.ts
6588
- var SIFA_SDK_VERSION = "0.19.16";
6604
+ var SIFA_SDK_VERSION = "0.19.18";
6589
6605
 
6590
6606
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6591
6607
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;