@singi-labs/sifa-sdk 0.18.10 → 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.
- package/dist/{index-CTzpbW81.d.cts → index-DIwi3bpk.d.cts} +17 -9
- package/dist/{index-CTzpbW81.d.ts → index-DIwi3bpk.d.ts} +17 -9
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -5
- package/dist/index.d.ts +27 -5
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.d.cts +1 -1
- package/dist/jsonld/index.d.ts +1 -1
- package/dist/{network-map-CKTFPnYE.d.cts → network-map-CH37aj_Q.d.cts} +4 -4
- package/dist/{network-map-BfjOE-C3.d.ts → network-map-CMod-9od.d.ts} +4 -4
- package/dist/{org-CPEFdMmo.d.cts → org-3gFPQ_pC.d.cts} +2 -2
- package/dist/{org-BoLWIj_W.d.ts → org-CTSJ5zTZ.d.ts} +2 -2
- package/dist/{profile-summary-C557t4hr.d.cts → profile-summary-BnydsN4P.d.cts} +1 -1
- package/dist/{profile-summary-Bj_vVxkv.d.ts → profile-summary-H-R1juYp.d.ts} +1 -1
- package/dist/query/fetchers/index.d.cts +6 -6
- package/dist/query/fetchers/index.d.ts +6 -6
- package/dist/query/hooks/index.d.cts +5 -5
- package/dist/query/hooks/index.d.ts +5 -5
- package/dist/query/index.d.cts +8 -8
- package/dist/query/index.d.ts +8 -8
- package/dist/resume/index.d.cts +1 -1
- package/dist/resume/index.d.ts +1 -1
- package/dist/{types-DAEkBwRB.d.cts → types-Co7D0VfD.d.ts} +14 -6
- package/dist/{types-zjv3qDWz.d.ts → types-LElwqDU4.d.cts} +14 -6
- package/dist/{use-org-notification-emails-5oxcxXP9.d.cts → use-org-notification-emails-CdRgTAj4.d.cts} +3 -3
- package/dist/{use-org-notification-emails-LVo7z1M9.d.ts → use-org-notification-emails-J29DcsSu.d.ts} +3 -3
- 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
|
|
465
|
-
*
|
|
466
|
-
*
|
|
467
|
-
* claim
|
|
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
|
|
465
|
-
*
|
|
466
|
-
*
|
|
467
|
-
* claim
|
|
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
|
@@ -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.
|
|
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;
|