@singi-labs/sifa-sdk 0.19.12 → 0.19.13

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
@@ -2108,6 +2108,28 @@ function getActivityTaxonomyVersion() {
2108
2108
  return { version: ACTIVITY_TIERS.version, updated: ACTIVITY_TIERS.updated };
2109
2109
  }
2110
2110
 
2111
+ // src/taxonomy/relational.ts
2112
+ var RELATIONAL_SEGMENTS = /* @__PURE__ */ new Set([
2113
+ "comment",
2114
+ "reply",
2115
+ "like",
2116
+ "repost",
2117
+ "follow",
2118
+ "connection",
2119
+ "rsvp",
2120
+ "endorse",
2121
+ "endorsement",
2122
+ "bookmark",
2123
+ "member",
2124
+ "membership",
2125
+ "vouch"
2126
+ ]);
2127
+ function isRelationalActivity(nsid) {
2128
+ if (!nsid || !nsid.includes(".")) return false;
2129
+ const segment = nsid.slice(nsid.lastIndexOf(".") + 1);
2130
+ return RELATIONAL_SEGMENTS.has(segment);
2131
+ }
2132
+
2111
2133
  // src/taxonomy/presentation-role.ts
2112
2134
  var PRESENTATION_ROLE_OPTIONS = [
2113
2135
  { value: "id.sifa.defs#presenter", label: "Presenter" },
@@ -5075,6 +5097,9 @@ function toStreamCardVMs(items, options = {}) {
5075
5097
  }
5076
5098
 
5077
5099
  // src/stream/two-tier.ts
5100
+ function collectionOf(uri) {
5101
+ return uri.split("/")[3] ?? "";
5102
+ }
5078
5103
  var RICH_BODY_KINDS = /* @__PURE__ */ new Set([
5079
5104
  "github-pr",
5080
5105
  "book",
@@ -5089,6 +5114,7 @@ function isRich(vm) {
5089
5114
  return false;
5090
5115
  }
5091
5116
  function isSelfAuthoredRich(vm) {
5117
+ if (isRelationalActivity(collectionOf(vm.uri))) return false;
5092
5118
  return vm.tier === "creation" && isRich(vm);
5093
5119
  }
5094
5120
  function renderAsLine(vm) {
@@ -6499,7 +6525,7 @@ function describeSifaRecord(collection, value) {
6499
6525
  }
6500
6526
 
6501
6527
  // src/index.ts
6502
- var SIFA_SDK_VERSION = "0.19.12";
6528
+ var SIFA_SDK_VERSION = "0.19.13";
6503
6529
 
6504
6530
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6505
6531
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -6707,6 +6733,7 @@ exports.isLinked = isLinked;
6707
6733
  exports.isOnBehalfOfApplicable = isOnBehalfOfApplicable;
6708
6734
  exports.isPseudoEmployer = isPseudoEmployer;
6709
6735
  exports.isRegistrableDomainHandle = isRegistrableDomainHandle;
6736
+ exports.isRelationalActivity = isRelationalActivity;
6710
6737
  exports.isRoleLineRedundant = isRoleLineRedundant;
6711
6738
  exports.isSectionPopulated = isSectionPopulated;
6712
6739
  exports.isSelfAuthoredRich = isSelfAuthoredRich;