@singi-labs/sifa-sdk 0.19.87 → 0.19.88

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 (43) hide show
  1. package/dist/{follow-profile-ceqefXAw.d.ts → follow-profile-CcMgQDsh.d.ts} +1 -1
  2. package/dist/{follow-profile-CQ3DTTak.d.cts → follow-profile-D3zDoDll.d.cts} +1 -1
  3. package/dist/{index-BrWWVQLL.d.cts → index-C2n-GjH2.d.cts} +1 -1
  4. package/dist/{index-B0BDMGLm.d.ts → index-LxGL5I-J.d.ts} +1 -1
  5. package/dist/index.cjs +30 -7
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +9 -9
  8. package/dist/index.d.ts +9 -9
  9. package/dist/index.js +3 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/jsonld/index.d.cts +2 -2
  12. package/dist/jsonld/index.d.ts +2 -2
  13. package/dist/{network-map-BRoBXwPG.d.cts → network-map-CFZx_xXE.d.cts} +4 -4
  14. package/dist/{network-map-NbEQwn91.d.ts → network-map-k2QxGpGf.d.ts} +4 -4
  15. package/dist/{profile-summary-BGIJ6ovO.d.ts → profile-summary-2pFtukEK.d.ts} +1 -1
  16. package/dist/{profile-summary-BpfRgE0z.d.cts → profile-summary-CwJD0-wo.d.cts} +1 -1
  17. package/dist/query/fetchers/index.d.cts +8 -8
  18. package/dist/query/fetchers/index.d.ts +8 -8
  19. package/dist/query/hooks/index.d.cts +6 -6
  20. package/dist/query/hooks/index.d.ts +6 -6
  21. package/dist/query/index.d.cts +11 -11
  22. package/dist/query/index.d.ts +11 -11
  23. package/dist/resume/index.d.cts +2 -2
  24. package/dist/resume/index.d.ts +2 -2
  25. package/dist/schemas/follow-profile.js +3 -1
  26. package/dist/schemas/follow-profile.js.map +1 -1
  27. package/dist/schemas/index.cjs +9 -5
  28. package/dist/schemas/index.cjs.map +1 -1
  29. package/dist/schemas/index.d.cts +2 -2
  30. package/dist/schemas/index.d.ts +2 -2
  31. package/dist/taxonomy/index.js +2 -0
  32. package/dist/taxonomy/index.js.map +1 -1
  33. package/dist/taxonomy/verification-providers.js +26 -5
  34. package/dist/taxonomy/verification-providers.js.map +1 -1
  35. package/dist/{types-D2IffOnb.d.ts → types-CICITVJa.d.ts} +2 -2
  36. package/dist/{types-CPi-Xcur.d.cts → types-DkrZo5eF.d.cts} +2 -2
  37. package/dist/{use-user-settings-BxIVvuk3.d.cts → use-user-settings-Azxf51V9.d.cts} +4 -4
  38. package/dist/{use-user-settings-D_APuRP2.d.ts → use-user-settings-DQNz9PYA.d.ts} +4 -4
  39. package/dist/{user-settings-BFyyuR3C.d.cts → user-settings-BDZ9i-Pk.d.cts} +4 -4
  40. package/dist/{user-settings-BSlRJc0W.d.ts → user-settings-DvqRXhdC.d.ts} +4 -4
  41. package/dist/{verification-providers-7il3kPQS.d.cts → verification-providers-BPdY3KyH.d.cts} +43 -9
  42. package/dist/{verification-providers-7il3kPQS.d.ts → verification-providers-BPdY3KyH.d.ts} +43 -9
  43. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { a as AccountVerification } from './verification-providers-7il3kPQS.js';
2
+ import { a as AccountVerification } from './verification-providers-BPdY3KyH.js';
3
3
 
4
4
  /**
5
5
  * A single typeahead row. Discriminated on `source`: a curated `entity` row
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { a as AccountVerification } from './verification-providers-7il3kPQS.cjs';
2
+ import { a as AccountVerification } from './verification-providers-BPdY3KyH.cjs';
3
3
 
4
4
  /**
5
5
  * A single typeahead row. Discriminated on `source`: a curated `entity` row
@@ -1,4 +1,4 @@
1
- import { A as AgentRef, a as AccountVerification } from './verification-providers-7il3kPQS.cjs';
1
+ import { A as AgentRef, a as AccountVerification } from './verification-providers-BPdY3KyH.cjs';
2
2
 
3
3
  interface LocationValue {
4
4
  city?: string;
@@ -1,4 +1,4 @@
1
- import { A as AgentRef, a as AccountVerification } from './verification-providers-7il3kPQS.js';
1
+ import { A as AgentRef, a as AccountVerification } from './verification-providers-BPdY3KyH.js';
2
2
 
3
3
  interface LocationValue {
4
4
  city?: string;
package/dist/index.cjs CHANGED
@@ -2566,9 +2566,9 @@ function getArtifactLinkKindLabel(value) {
2566
2566
  }
2567
2567
 
2568
2568
  // src/taxonomy/verification-providers.ts
2569
- var MU_VERIFIER_DIDS = [
2570
- "did:plc:ooensn4mr5mhznzypvxelfa3",
2571
- // eurosky.social -- coordinates the trusted-verifier program
2569
+ var MU_ROOT_DID = "did:plc:ooensn4mr5mhznzypvxelfa3";
2570
+ var MU_VERIFIER_LIST_URI = `at://${MU_ROOT_DID}/app.bsky.graph.list/3mogaw2g4an23`;
2571
+ var MU_FALLBACK_VERIFIER_DIDS = [
2572
2572
  "did:plc:durcipmx2rwgzzagbiumobs5",
2573
2573
  // france-atmosphe.re
2574
2574
  "did:plc:zsf5p7rqilz2qvyd7ezmxrfj",
@@ -2597,7 +2597,9 @@ var VERIFICATION_PROVIDERS = {
2597
2597
  label: "mu (Eurosky)",
2598
2598
  priority: 1,
2599
2599
  source: "firehose",
2600
- verifierDids: MU_VERIFIER_DIDS
2600
+ verifierDids: [MU_ROOT_DID],
2601
+ verifierListUri: MU_VERIFIER_LIST_URI,
2602
+ fallbackVerifierDids: MU_FALLBACK_VERIFIER_DIDS
2601
2603
  }
2602
2604
  };
2603
2605
  function isKnownVerificationProvider(id) {
@@ -2606,13 +2608,31 @@ function isKnownVerificationProvider(id) {
2606
2608
  function getVerificationProvider(id) {
2607
2609
  return isKnownVerificationProvider(id) ? VERIFICATION_PROVIDERS[id] : void 0;
2608
2610
  }
2609
- function resolveVerifierProvider(issuerDid) {
2611
+ function resolveVerifierProvider(issuerDid, listMembers) {
2610
2612
  for (const provider of Object.values(VERIFICATION_PROVIDERS)) {
2611
2613
  if (provider.source !== "firehose") continue;
2612
2614
  if (provider.verifierDids.includes(issuerDid)) return provider.id;
2615
+ if (!listMembers && provider.fallbackVerifierDids?.includes(issuerDid)) return provider.id;
2613
2616
  }
2617
+ const fromList = listMembers?.get(issuerDid);
2618
+ if (fromList && getVerificationProvider(fromList)?.source === "firehose") return fromList;
2614
2619
  return null;
2615
2620
  }
2621
+ function buildVerifierListMembers(items) {
2622
+ const members = /* @__PURE__ */ new Map();
2623
+ for (const provider of Object.values(VERIFICATION_PROVIDERS)) {
2624
+ if (provider.source !== "firehose" || !provider.verifierListUri) continue;
2625
+ const owner = provider.verifierListUri.split("/")[2];
2626
+ if (!owner || !provider.verifierDids.includes(owner)) continue;
2627
+ for (const item of items) {
2628
+ if (item.repoDid !== owner || item.list !== provider.verifierListUri) continue;
2629
+ if (typeof item.subject !== "string" || !/^did:[a-z]+:[A-Za-z0-9._:%-]+$/.test(item.subject))
2630
+ continue;
2631
+ if (!members.has(item.subject)) members.set(item.subject, provider.id);
2632
+ }
2633
+ }
2634
+ return members;
2635
+ }
2616
2636
  function primaryVerification(verifications) {
2617
2637
  let best = null;
2618
2638
  let bestPriority = Number.POSITIVE_INFINITY;
@@ -6948,7 +6968,9 @@ var AccountVerificationSchema = zod.z.object({
6948
6968
  (value) => typeof value === "string" && Object.hasOwn(VERIFICATION_PROVIDERS, value)
6949
6969
  ),
6950
6970
  verifiedAt: datetimeSchema.nullable().optional(),
6951
- issuerDid: didSchema.nullable().optional()
6971
+ issuerDid: didSchema.nullable().optional(),
6972
+ // Bluesky caps displayName at 640 bytes; anything longer is not a real name.
6973
+ issuerName: zod.z.string().max(640).nullable().optional()
6952
6974
  });
6953
6975
  var VerificationBadgesSchema = zod.z.array(zod.z.unknown()).transform(
6954
6976
  (items) => items.flatMap((item) => {
@@ -7654,7 +7676,7 @@ function describeSifaRecord(collection, value) {
7654
7676
  }
7655
7677
 
7656
7678
  // src/index.ts
7657
- var SIFA_SDK_VERSION = "0.19.87";
7679
+ var SIFA_SDK_VERSION = "0.19.88";
7658
7680
 
7659
7681
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
7660
7682
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
@@ -7798,6 +7820,7 @@ exports.blobProxyUrl = blobProxyUrl;
7798
7820
  exports.buildMetaDescription = buildMetaDescription;
7799
7821
  exports.buildProfileHighlights = buildProfileHighlights;
7800
7822
  exports.buildTalkSlug = buildTalkSlug;
7823
+ exports.buildVerifierListMembers = buildVerifierListMembers;
7801
7824
  exports.categoryForApp = categoryForApp;
7802
7825
  exports.certDateExtractor = certDateExtractor;
7803
7826
  exports.cidSchema = cidSchema;