@singi-labs/sifa-sdk 0.18.9 → 0.18.11

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.
Files changed (33) hide show
  1. package/dist/{index-CTzpbW81.d.cts → index-DIwi3bpk.d.cts} +17 -9
  2. package/dist/{index-CTzpbW81.d.ts → index-DIwi3bpk.d.ts} +17 -9
  3. package/dist/index.cjs +8 -2
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +35 -13
  6. package/dist/index.d.ts +35 -13
  7. package/dist/index.js +8 -3
  8. package/dist/index.js.map +1 -1
  9. package/dist/jsonld/index.cjs.map +1 -1
  10. package/dist/jsonld/index.d.cts +1 -1
  11. package/dist/jsonld/index.d.ts +1 -1
  12. package/dist/jsonld/index.js.map +1 -1
  13. package/dist/{network-map-CKTFPnYE.d.cts → network-map-CH37aj_Q.d.cts} +4 -4
  14. package/dist/{network-map-BfjOE-C3.d.ts → network-map-CMod-9od.d.ts} +4 -4
  15. package/dist/{org-CPEFdMmo.d.cts → org-3gFPQ_pC.d.cts} +2 -2
  16. package/dist/{org-BoLWIj_W.d.ts → org-CTSJ5zTZ.d.ts} +2 -2
  17. package/dist/{profile-summary-C557t4hr.d.cts → profile-summary-BnydsN4P.d.cts} +1 -1
  18. package/dist/{profile-summary-Bj_vVxkv.d.ts → profile-summary-H-R1juYp.d.ts} +1 -1
  19. package/dist/query/fetchers/index.d.cts +6 -6
  20. package/dist/query/fetchers/index.d.ts +6 -6
  21. package/dist/query/hooks/index.d.cts +5 -5
  22. package/dist/query/hooks/index.d.ts +5 -5
  23. package/dist/query/index.d.cts +8 -8
  24. package/dist/query/index.d.ts +8 -8
  25. package/dist/resume/index.cjs.map +1 -1
  26. package/dist/resume/index.d.cts +1 -1
  27. package/dist/resume/index.d.ts +1 -1
  28. package/dist/resume/index.js.map +1 -1
  29. package/dist/{types-DAEkBwRB.d.cts → types-Co7D0VfD.d.ts} +14 -6
  30. package/dist/{types-zjv3qDWz.d.ts → types-LElwqDU4.d.cts} +14 -6
  31. package/dist/{use-org-notification-emails-5oxcxXP9.d.cts → use-org-notification-emails-CdRgTAj4.d.cts} +3 -3
  32. package/dist/{use-org-notification-emails-LVo7z1M9.d.ts → use-org-notification-emails-J29DcsSu.d.ts} +3 -3
  33. package/package.json +1 -1
@@ -453,25 +453,33 @@ interface PresentationLinkView {
453
453
  label?: string;
454
454
  type?: string;
455
455
  }
456
- /**
457
- * A co-speaker on a delivery, hydrated from a stored DID to a profile card.
458
- * Any atproto account; `hasSifaProfile` is true when they have a claimed Sifa
459
- * profile (vs an unclaimed atproto account that still renders at /p/<handle>).
460
- */
461
456
  /**
462
457
  * Another person named on someone's record, as rendered by the AppView.
463
458
  *
464
- * `displayName` and `avatar` are present only when `confirmed` is true. An
465
- * unconfirmed claim renders as a bare handle with no identity attached and no
466
- * link to a profile: naming someone is a claim, and until they affirm it the
467
- * claim must not borrow their face.
459
+ * `displayName` and `avatar` are present when the person's identity may be
460
+ * shown -- i.e. when {@link actorShowsIdentity} holds (`confirmed` or
461
+ * `claimed`). Otherwise the card is a bare handle with no identity attached and
462
+ * no link to a profile: naming someone is a claim, and until they affirm it (or
463
+ * hold a claimed Sifa account that can be notified of the claim) the claim must
464
+ * not borrow their face.
468
465
  */
469
466
  interface ActorCard {
470
467
  did: string;
471
468
  handle: string;
472
469
  displayName?: string;
473
470
  avatar?: string;
471
+ /**
472
+ * True when Sifa has indexed this account at all -- including an unclaimed
473
+ * atproto account seen via the firehose, which still renders at /p/<handle>.
474
+ * Broader than {@link claimed}; not on its own a reason to show identity.
475
+ */
474
476
  hasSifaProfile?: boolean;
477
+ /**
478
+ * True when the named person has a claimed Sifa account (has authenticated
479
+ * via OAuth). A claimed account can be notified of a pending claim, so its
480
+ * identity is shown even before confirmation -- see {@link actorShowsIdentity}.
481
+ */
482
+ claimed?: boolean;
475
483
  /** True once the named person has published a matching `id.sifa.confirmation`. */
476
484
  confirmed?: boolean;
477
485
  /**
@@ -453,25 +453,33 @@ interface PresentationLinkView {
453
453
  label?: string;
454
454
  type?: string;
455
455
  }
456
- /**
457
- * A co-speaker on a delivery, hydrated from a stored DID to a profile card.
458
- * Any atproto account; `hasSifaProfile` is true when they have a claimed Sifa
459
- * profile (vs an unclaimed atproto account that still renders at /p/<handle>).
460
- */
461
456
  /**
462
457
  * Another person named on someone's record, as rendered by the AppView.
463
458
  *
464
- * `displayName` and `avatar` are present only when `confirmed` is true. An
465
- * unconfirmed claim renders as a bare handle with no identity attached and no
466
- * link to a profile: naming someone is a claim, and until they affirm it the
467
- * claim must not borrow their face.
459
+ * `displayName` and `avatar` are present when the person's identity may be
460
+ * shown -- i.e. when {@link actorShowsIdentity} holds (`confirmed` or
461
+ * `claimed`). Otherwise the card is a bare handle with no identity attached and
462
+ * no link to a profile: naming someone is a claim, and until they affirm it (or
463
+ * hold a claimed Sifa account that can be notified of the claim) the claim must
464
+ * not borrow their face.
468
465
  */
469
466
  interface ActorCard {
470
467
  did: string;
471
468
  handle: string;
472
469
  displayName?: string;
473
470
  avatar?: string;
471
+ /**
472
+ * True when Sifa has indexed this account at all -- including an unclaimed
473
+ * atproto account seen via the firehose, which still renders at /p/<handle>.
474
+ * Broader than {@link claimed}; not on its own a reason to show identity.
475
+ */
474
476
  hasSifaProfile?: boolean;
477
+ /**
478
+ * True when the named person has a claimed Sifa account (has authenticated
479
+ * via OAuth). A claimed account can be notified of a pending claim, so its
480
+ * identity is shown even before confirmation -- see {@link actorShowsIdentity}.
481
+ */
482
+ claimed?: boolean;
475
483
  /** True once the named person has published a matching `id.sifa.confirmation`. */
476
484
  confirmed?: boolean;
477
485
  /**
package/dist/index.cjs CHANGED
@@ -2918,7 +2918,6 @@ var SECTION_GROUPS = [
2918
2918
  var ALL_SECTIONS = [
2919
2919
  { id: "about", labelKey: "about", ns: "profile", group: "overview" },
2920
2920
  { id: "career", labelKey: "career", ns: "sections", group: "experience" },
2921
- { id: "skills", labelKey: "skills", ns: "sections", group: "experience" },
2922
2921
  { id: "projects", labelKey: "projects", ns: "sections", group: "experience" },
2923
2922
  {
2924
2923
  id: "presentations",
@@ -2932,6 +2931,7 @@ var ALL_SECTIONS = [
2932
2931
  ns: "sections",
2933
2932
  group: "experience"
2934
2933
  },
2934
+ { id: "skills", labelKey: "skills", ns: "sections", group: "experience" },
2935
2935
  {
2936
2936
  id: "credentials",
2937
2937
  labelKey: "credentials",
@@ -5306,6 +5306,11 @@ function excludeSelfApp(apps) {
5306
5306
  return apps.filter((app) => app.id !== SELF_APP_ID);
5307
5307
  }
5308
5308
 
5309
+ // src/logic/actor-identity.ts
5310
+ function actorShowsIdentity(actor) {
5311
+ return !!(actor.confirmed || actor.claimed);
5312
+ }
5313
+
5309
5314
  // src/profile/range-sort.ts
5310
5315
  var hasValue = (date) => !!date;
5311
5316
  function sortByActiveDateRange(items) {
@@ -6196,7 +6201,7 @@ function describeSifaRecord(collection, value) {
6196
6201
  }
6197
6202
 
6198
6203
  // src/index.ts
6199
- var SIFA_SDK_VERSION = "0.18.9";
6204
+ var SIFA_SDK_VERSION = "0.18.11";
6200
6205
 
6201
6206
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
6202
6207
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -6309,6 +6314,7 @@ exports.SifaFeedItemSchema = SifaFeedItemSchema;
6309
6314
  exports.VERIFICATION_PROVIDERS = VERIFICATION_PROVIDERS;
6310
6315
  exports.WORKPLACE_TYPE_LABELS = WORKPLACE_TYPE_LABELS;
6311
6316
  exports.WORKPLACE_TYPE_OPTIONS = WORKPLACE_TYPE_OPTIONS;
6317
+ exports.actorShowsIdentity = actorShowsIdentity;
6312
6318
  exports.atUriSchema = atUriSchema;
6313
6319
  exports.buildMetaDescription = buildMetaDescription;
6314
6320
  exports.buildTalkSlug = buildTalkSlug;