@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.
- package/dist/{follow-profile-D1l6pulB.d.ts → follow-profile-CQ3DTTak.d.cts} +3 -0
- package/dist/{follow-profile-D1l6pulB.d.cts → follow-profile-ceqefXAw.d.ts} +3 -0
- package/dist/{index-DmlIG8sJ.d.cts → index-BeQbepFn.d.cts} +7 -1
- package/dist/{index-D9GC0u__.d.ts → index-CT-A3BEe.d.ts} +7 -1
- package/dist/index.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -81
- package/dist/index.d.ts +10 -81
- package/dist/index.js +1 -1
- package/dist/jsonld/index.d.cts +2 -2
- package/dist/jsonld/index.d.ts +2 -2
- package/dist/{network-map-CiWrQ1fF.d.ts → network-map-CKF7Yozc.d.ts} +4 -4
- package/dist/{network-map-CdYpUy-t.d.cts → network-map-DHOOMSCP.d.cts} +4 -4
- package/dist/{org-fmpG85L0.d.cts → org-Bq3HbpLD.d.cts} +33 -6
- package/dist/{org-hxHnoBfg.d.ts → org-CelDIOiN.d.ts} +33 -6
- package/dist/{profile-summary-5T1hDw6Q.d.cts → profile-summary-CD3-QflX.d.cts} +1 -1
- package/dist/{profile-summary-Bj7ufSDK.d.ts → profile-summary-CyRzFe7f.d.ts} +1 -1
- package/dist/query/fetchers/discovery.js.map +1 -1
- package/dist/query/fetchers/follow.js +13 -4
- package/dist/query/fetchers/follow.js.map +1 -1
- package/dist/query/fetchers/index.cjs +21 -6
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +8 -8
- package/dist/query/fetchers/index.d.ts +8 -8
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/fetchers/search.js +8 -2
- package/dist/query/fetchers/search.js.map +1 -1
- package/dist/query/hooks/index.cjs +17 -4
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +6 -6
- package/dist/query/hooks/index.d.ts +6 -6
- package/dist/query/hooks/use-follow.js +1 -1
- package/dist/query/hooks/use-follow.js.map +1 -1
- package/dist/query/index.cjs +22 -7
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +12 -12
- package/dist/query/index.d.ts +12 -12
- package/dist/query/index.js.map +1 -1
- package/dist/resume/index.d.cts +2 -2
- package/dist/resume/index.d.ts +2 -2
- package/dist/schemas/follow-profile.js +18 -1
- package/dist/schemas/follow-profile.js.map +1 -1
- package/dist/schemas/index.cjs +53 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +2 -2
- package/dist/schemas/index.d.ts +2 -2
- package/dist/types/index.js.map +1 -1
- package/dist/{types-jB67EFpw.d.ts → types-BHnGSJ3z.d.cts} +34 -4
- package/dist/{types-DHT7jcZc.d.cts → types-BKEBVobU.d.ts} +34 -4
- package/dist/{use-org-notification-emails-Cj8IDI_7.d.cts → use-org-notification-emails-BTR2Yxq8.d.cts} +9 -8
- package/dist/{use-org-notification-emails-CWLCWkmb.d.ts → use-org-notification-emails-DDIi6giD.d.ts} +9 -8
- package/dist/verification-providers-7il3kPQS.d.cts +158 -0
- package/dist/verification-providers-7il3kPQS.d.ts +158 -0
- package/package.json +1 -1
- package/dist/shared-v0vl5hov.d.cts +0 -87
- 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 './
|
|
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 './
|
|
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.
|
|
7174
|
+
var SIFA_SDK_VERSION = "0.19.57";
|
|
7161
7175
|
|
|
7162
7176
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
7163
7177
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|