@singi-labs/sifa-sdk 0.19.55 → 0.19.57

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 (56) hide show
  1. package/dist/{follow-profile-D1l6pulB.d.ts → follow-profile-CQ3DTTak.d.cts} +3 -0
  2. package/dist/{follow-profile-D1l6pulB.d.cts → follow-profile-ceqefXAw.d.ts} +3 -0
  3. package/dist/{index-DmlIG8sJ.d.cts → index-BeQbepFn.d.cts} +7 -1
  4. package/dist/{index-D9GC0u__.d.ts → index-CT-A3BEe.d.ts} +7 -1
  5. package/dist/index.cjs +16 -2
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +10 -81
  8. package/dist/index.d.ts +10 -81
  9. package/dist/index.js +1 -1
  10. package/dist/jsonld/index.d.cts +2 -2
  11. package/dist/jsonld/index.d.ts +2 -2
  12. package/dist/{network-map-CiWrQ1fF.d.ts → network-map-CKF7Yozc.d.ts} +4 -4
  13. package/dist/{network-map-CdYpUy-t.d.cts → network-map-DHOOMSCP.d.cts} +4 -4
  14. package/dist/{org-fmpG85L0.d.cts → org-Bq3HbpLD.d.cts} +33 -6
  15. package/dist/{org-hxHnoBfg.d.ts → org-CelDIOiN.d.ts} +33 -6
  16. package/dist/{profile-summary-5T1hDw6Q.d.cts → profile-summary-CD3-QflX.d.cts} +1 -1
  17. package/dist/{profile-summary-Bj7ufSDK.d.ts → profile-summary-CyRzFe7f.d.ts} +1 -1
  18. package/dist/query/fetchers/discovery.js.map +1 -1
  19. package/dist/query/fetchers/follow.js +13 -4
  20. package/dist/query/fetchers/follow.js.map +1 -1
  21. package/dist/query/fetchers/index.cjs +21 -6
  22. package/dist/query/fetchers/index.cjs.map +1 -1
  23. package/dist/query/fetchers/index.d.cts +8 -8
  24. package/dist/query/fetchers/index.d.ts +8 -8
  25. package/dist/query/fetchers/index.js.map +1 -1
  26. package/dist/query/fetchers/search.js +8 -2
  27. package/dist/query/fetchers/search.js.map +1 -1
  28. package/dist/query/hooks/index.cjs +17 -4
  29. package/dist/query/hooks/index.cjs.map +1 -1
  30. package/dist/query/hooks/index.d.cts +6 -6
  31. package/dist/query/hooks/index.d.ts +6 -6
  32. package/dist/query/hooks/use-follow.js +1 -1
  33. package/dist/query/hooks/use-follow.js.map +1 -1
  34. package/dist/query/index.cjs +22 -7
  35. package/dist/query/index.cjs.map +1 -1
  36. package/dist/query/index.d.cts +12 -12
  37. package/dist/query/index.d.ts +12 -12
  38. package/dist/query/index.js.map +1 -1
  39. package/dist/resume/index.d.cts +2 -2
  40. package/dist/resume/index.d.ts +2 -2
  41. package/dist/schemas/follow-profile.js +18 -1
  42. package/dist/schemas/follow-profile.js.map +1 -1
  43. package/dist/schemas/index.cjs +53 -1
  44. package/dist/schemas/index.cjs.map +1 -1
  45. package/dist/schemas/index.d.cts +2 -2
  46. package/dist/schemas/index.d.ts +2 -2
  47. package/dist/types/index.js.map +1 -1
  48. package/dist/{types-jB67EFpw.d.ts → types-BHnGSJ3z.d.cts} +34 -4
  49. package/dist/{types-DHT7jcZc.d.cts → types-BKEBVobU.d.ts} +34 -4
  50. package/dist/{use-org-notification-emails-Cj8IDI_7.d.cts → use-org-notification-emails-BTR2Yxq8.d.cts} +9 -8
  51. package/dist/{use-org-notification-emails-CWLCWkmb.d.ts → use-org-notification-emails-DDIi6giD.d.ts} +9 -8
  52. package/dist/verification-providers-7il3kPQS.d.cts +158 -0
  53. package/dist/verification-providers-7il3kPQS.d.ts +158 -0
  54. package/package.json +1 -1
  55. package/dist/shared-v0vl5hov.d.cts +0 -87
  56. package/dist/shared-v0vl5hov.d.ts +0 -87
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { a as AccountVerification } from './verification-providers-7il3kPQS.cjs';
2
3
 
3
4
  /**
4
5
  * A single typeahead row. Discriminated on `source`: a curated `entity` row
@@ -195,6 +196,7 @@ declare const FollowProfileSchema: z.ZodObject<{
195
196
  followedAt: z.ZodString;
196
197
  blueskyVerified: z.ZodOptional<z.ZodBoolean>;
197
198
  blueskyVerifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ verificationBadges: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<AccountVerification[], unknown[]>>>;
198
200
  }, z.core.$strip>;
199
201
  type FollowProfileItem = z.infer<typeof FollowProfileSchema>;
200
202
  /**
@@ -215,6 +217,7 @@ declare const FollowProfilePageSchema: z.ZodObject<{
215
217
  followedAt: z.ZodString;
216
218
  blueskyVerified: z.ZodOptional<z.ZodBoolean>;
217
219
  blueskyVerifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ verificationBadges: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<AccountVerification[], unknown[]>>>;
218
221
  }, z.core.$strip>>;
219
222
  cursor: z.ZodNullable<z.ZodString>;
220
223
  }, z.core.$strip>;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { a as AccountVerification } from './verification-providers-7il3kPQS.js';
2
3
 
3
4
  /**
4
5
  * A single typeahead row. Discriminated on `source`: a curated `entity` row
@@ -195,6 +196,7 @@ declare const FollowProfileSchema: z.ZodObject<{
195
196
  followedAt: z.ZodString;
196
197
  blueskyVerified: z.ZodOptional<z.ZodBoolean>;
197
198
  blueskyVerifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ verificationBadges: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<AccountVerification[], unknown[]>>>;
198
200
  }, z.core.$strip>;
199
201
  type FollowProfileItem = z.infer<typeof FollowProfileSchema>;
200
202
  /**
@@ -215,6 +217,7 @@ declare const FollowProfilePageSchema: z.ZodObject<{
215
217
  followedAt: z.ZodString;
216
218
  blueskyVerified: z.ZodOptional<z.ZodBoolean>;
217
219
  blueskyVerifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ verificationBadges: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<AccountVerification[], unknown[]>>>;
218
221
  }, z.core.$strip>>;
219
222
  cursor: z.ZodNullable<z.ZodString>;
220
223
  }, z.core.$strip>;
@@ -1,4 +1,4 @@
1
- import { A as AgentRef } from './shared-v0vl5hov.cjs';
1
+ import { A as AgentRef, a as AccountVerification } from './verification-providers-7il3kPQS.cjs';
2
2
 
3
3
  interface LocationValue {
4
4
  city?: string;
@@ -928,6 +928,12 @@ interface Profile {
928
928
  activeApps?: ActiveApp[];
929
929
  blueskyVerified?: boolean;
930
930
  blueskyVerifiedAt?: string | null;
931
+ /**
932
+ * Every verification the account holds, across all recognized providers
933
+ * (Bluesky and firehose-sourced ones like mu). Supersedes the Bluesky-only
934
+ * `blueskyVerified` pair for badge rendering. Absent on older API responses.
935
+ */
936
+ verificationBadges?: AccountVerification[];
931
937
  followersCount: number;
932
938
  followingCount: number;
933
939
  connectionsCount: number;
@@ -1,4 +1,4 @@
1
- import { A as AgentRef } from './shared-v0vl5hov.js';
1
+ import { A as AgentRef, a as AccountVerification } from './verification-providers-7il3kPQS.js';
2
2
 
3
3
  interface LocationValue {
4
4
  city?: string;
@@ -928,6 +928,12 @@ interface Profile {
928
928
  activeApps?: ActiveApp[];
929
929
  blueskyVerified?: boolean;
930
930
  blueskyVerifiedAt?: string | null;
931
+ /**
932
+ * Every verification the account holds, across all recognized providers
933
+ * (Bluesky and firehose-sourced ones like mu). Supersedes the Bluesky-only
934
+ * `blueskyVerified` pair for badge rendering. Absent on older API responses.
935
+ */
936
+ verificationBadges?: AccountVerification[];
931
937
  followersCount: number;
932
938
  followingCount: number;
933
939
  connectionsCount: number;
package/dist/index.cjs CHANGED
@@ -6466,6 +6466,19 @@ function makeGraphFollowRecordSchema(followerDid) {
6466
6466
  path: ["subject"]
6467
6467
  });
6468
6468
  }
6469
+ var AccountVerificationSchema = zod.z.object({
6470
+ provider: zod.z.custom(
6471
+ (value) => typeof value === "string" && Object.hasOwn(VERIFICATION_PROVIDERS, value)
6472
+ ),
6473
+ verifiedAt: datetimeSchema.nullable().optional(),
6474
+ issuerDid: didSchema.nullable().optional()
6475
+ });
6476
+ var VerificationBadgesSchema = zod.z.array(zod.z.unknown()).transform(
6477
+ (items) => items.flatMap((item) => {
6478
+ const result = AccountVerificationSchema.safeParse(item);
6479
+ return result.success ? [result.data] : [];
6480
+ })
6481
+ );
6469
6482
  var FollowProfileSchema = zod.z.object({
6470
6483
  did: didSchema,
6471
6484
  handle: zod.z.string(),
@@ -6476,7 +6489,8 @@ var FollowProfileSchema = zod.z.object({
6476
6489
  claimed: zod.z.boolean(),
6477
6490
  followedAt: datetimeSchema,
6478
6491
  blueskyVerified: zod.z.boolean().optional(),
6479
- blueskyVerifiedAt: datetimeSchema.nullable().optional()
6492
+ blueskyVerifiedAt: datetimeSchema.nullable().optional(),
6493
+ verificationBadges: VerificationBadgesSchema.optional()
6480
6494
  });
6481
6495
  var FollowProfilePageSchema = zod.z.object({
6482
6496
  items: zod.z.array(FollowProfileSchema),
@@ -7157,7 +7171,7 @@ function describeSifaRecord(collection, value) {
7157
7171
  }
7158
7172
 
7159
7173
  // src/index.ts
7160
- var SIFA_SDK_VERSION = "0.19.55";
7174
+ var SIFA_SDK_VERSION = "0.19.57";
7161
7175
 
7162
7176
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
7163
7177
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;