@singi-labs/sifa-sdk 0.12.69 → 0.12.71

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
@@ -1103,6 +1103,9 @@ var APP_CATEGORY_MAP = {
1103
1103
  // Onboard from trezy.codes profile audit.
1104
1104
  atmobb: "Social",
1105
1105
  // app.atmobb.discussion.{thread,reply} — federated forum threads + replies
1106
+ // Onboard from aaronstevenwhite.io profile audit.
1107
+ chive: "Research",
1108
+ // pub.chive.eprint.submission — preprints on chive.pub
1106
1109
  // Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
1107
1110
  // no backend scan collection yet)
1108
1111
  linkat: "Links",
@@ -2721,6 +2724,9 @@ var ALL_SECTIONS = [
2721
2724
  { id: "courses", labelKey: "courses", ns: "sections", group: "qualifications" },
2722
2725
  { id: "awards", labelKey: "awards", ns: "sections", group: "more" },
2723
2726
  { id: "involvement", labelKey: "involvement", ns: "sections", group: "more" },
2727
+ // Its own section rather than a group under involvement: that record is about
2728
+ // work contributed, this one about capital deployed.
2729
+ { id: "investments", labelKey: "investments", ns: "sections", group: "more" },
2724
2730
  { id: "languages", labelKey: "languages", ns: "sections", group: "more" },
2725
2731
  {
2726
2732
  id: "other-profiles",
@@ -2751,6 +2757,8 @@ function isSectionPopulated(profile, id) {
2751
2757
  return Boolean(profile.presentations?.length) || Boolean(profile.presentationDeliveries?.length);
2752
2758
  case "involvement":
2753
2759
  return Boolean(profile.involvement?.length);
2760
+ case "investments":
2761
+ return Boolean(profile.investments?.length);
2754
2762
  case "awards":
2755
2763
  return Boolean(profile.honors?.length);
2756
2764
  case "languages":
@@ -2784,6 +2792,7 @@ var SECTION_LABELS = {
2784
2792
  courses: "Courses",
2785
2793
  awards: "Awards",
2786
2794
  involvement: "Involvement",
2795
+ investments: "Investments",
2787
2796
  languages: "Languages",
2788
2797
  "other-profiles": "Links"
2789
2798
  };
@@ -3174,6 +3183,14 @@ var APP_URL_PATTERNS = Object.freeze({
3174
3183
  // public per-record viewer. The card embeds the deck from the record; the
3175
3184
  // outbound link points at the author's Aether OS space (mirrors aetheros).
3176
3185
  profileUrlPattern: "https://aetheros.computer/{handle}"
3186
+ },
3187
+ chive: {
3188
+ // Chive's eprint route is a catch-all that decodes a single URI-encoded
3189
+ // at-uri segment: /eprints/<encodeURIComponent(at://did/nsid/rkey)>.
3190
+ // {did} and {rkey} are URI-encoded on interpolation, so the separators
3191
+ // are pre-encoded as literals here rather than resolved bespoke.
3192
+ urlPattern: "https://chive.pub/eprints/at%3A%2F%2F{did}%2Fpub.chive.eprint.submission%2F{rkey}",
3193
+ profileUrlPattern: "https://chive.pub/authors/{did}"
3177
3194
  }
3178
3195
  });
3179
3196
  var COLLECTION_TO_APP = [
@@ -3245,7 +3262,9 @@ var COLLECTION_TO_APP = [
3245
3262
  // Onboard from willow.sh profile audit.
3246
3263
  ["dev.baileytownsend.guestbook.", "guestbook"],
3247
3264
  // Onboard from trezy.codes profile audit.
3248
- ["app.atmobb.", "atmobb"]
3265
+ ["app.atmobb.", "atmobb"],
3266
+ // Onboard from aaronstevenwhite.io profile audit.
3267
+ ["pub.chive.", "chive"]
3249
3268
  ];
3250
3269
 
3251
3270
  // src/cards/resolve-card-url.ts
@@ -5437,6 +5456,7 @@ var InvestmentAmountSchema = zod.z.object({
5437
5456
  /** ISO 4217 three-letter code, uppercase. */
5438
5457
  currency: zod.z.string().length(3)
5439
5458
  });
5459
+ var PROFILE_INVESTMENT_NSID = "id.sifa.profile.investment";
5440
5460
  var ProfileInvestmentRecordSchema = zod.z.object({
5441
5461
  /** For a limited-partner entry this names the fund, not a portfolio company. */
5442
5462
  company: zod.z.string().min(1).refine(maxGraphemes(256)).max(2560),
@@ -5754,7 +5774,7 @@ function describeSifaRecord(collection, value) {
5754
5774
  }
5755
5775
 
5756
5776
  // src/index.ts
5757
- var SIFA_SDK_VERSION = "0.12.69";
5777
+ var SIFA_SDK_VERSION = "0.12.71";
5758
5778
 
5759
5779
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
5760
5780
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -5828,6 +5848,7 @@ exports.PRESENTATION_LINK_TYPE_LABELS = PRESENTATION_LINK_TYPE_LABELS;
5828
5848
  exports.PRESENTATION_LINK_TYPE_OPTIONS = PRESENTATION_LINK_TYPE_OPTIONS;
5829
5849
  exports.PRESENTATION_ROLE_LABELS = PRESENTATION_ROLE_LABELS;
5830
5850
  exports.PRESENTATION_ROLE_OPTIONS = PRESENTATION_ROLE_OPTIONS;
5851
+ exports.PROFILE_INVESTMENT_NSID = PROFILE_INVESTMENT_NSID;
5831
5852
  exports.PROFILE_INVOLVEMENT_NSID = PROFILE_INVOLVEMENT_NSID;
5832
5853
  exports.PROJECT_ROLES = PROJECT_ROLES;
5833
5854
  exports.PUBLISHERS = PUBLISHERS;