@atproto/bsky 0.0.141 → 0.0.143
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/CHANGELOG.md +14 -0
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js +2 -2
- package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
- package/dist/data-plane/server/db/database-schema.d.ts +2 -1
- package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/20250404T163421487Z-verifications.d.ts +4 -0
- package/dist/data-plane/server/db/migrations/20250404T163421487Z-verifications.d.ts.map +1 -0
- package/dist/data-plane/server/db/migrations/20250404T163421487Z-verifications.js +36 -0
- package/dist/data-plane/server/db/migrations/20250404T163421487Z-verifications.js.map +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/index.js +2 -1
- package/dist/data-plane/server/db/migrations/index.js.map +1 -1
- package/dist/data-plane/server/db/tables/actor.d.ts +2 -0
- package/dist/data-plane/server/db/tables/actor.d.ts.map +1 -1
- package/dist/data-plane/server/db/tables/actor.js.map +1 -1
- package/dist/data-plane/server/db/tables/verification.d.ts +18 -0
- package/dist/data-plane/server/db/tables/verification.d.ts.map +1 -0
- package/dist/data-plane/server/db/tables/verification.js +5 -0
- package/dist/data-plane/server/db/tables/verification.js.map +1 -0
- package/dist/data-plane/server/indexing/index.d.ts +2 -0
- package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/index.js +2 -0
- package/dist/data-plane/server/indexing/index.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/verification.d.ts +11 -0
- package/dist/data-plane/server/indexing/plugins/verification.d.ts.map +1 -0
- package/dist/data-plane/server/indexing/plugins/verification.js +95 -0
- package/dist/data-plane/server/indexing/plugins/verification.js.map +1 -0
- package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
- package/dist/data-plane/server/routes/profile.js +28 -1
- package/dist/data-plane/server/routes/profile.js.map +1 -1
- package/dist/data-plane/server/util.d.ts +6 -6
- package/dist/hydration/actor.d.ts +11 -0
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +19 -0
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/label.d.ts +1 -0
- package/dist/hydration/label.d.ts.map +1 -1
- package/dist/hydration/label.js +7 -0
- package/dist/hydration/label.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +160 -2
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +80 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +38 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +27 -0
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -1
- package/dist/proto/bsky_connect.d.ts +30 -1
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +29 -0
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +243 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +733 -5
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/views/index.d.ts +2 -1
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +42 -0
- package/dist/views/index.js.map +1 -1
- package/package.json +4 -4
- package/proto/bsky.proto +67 -0
- package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +2 -2
- package/src/data-plane/server/db/database-schema.ts +3 -1
- package/src/data-plane/server/db/migrations/20250404T163421487Z-verifications.ts +39 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/tables/actor.ts +3 -0
- package/src/data-plane/server/db/tables/verification.ts +20 -0
- package/src/data-plane/server/indexing/index.ts +8 -2
- package/src/data-plane/server/indexing/plugins/verification.ts +96 -0
- package/src/data-plane/server/routes/profile.ts +63 -19
- package/src/hydration/actor.ts +38 -0
- package/src/hydration/label.ts +12 -0
- package/src/lexicon/lexicons.ts +84 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +65 -0
- package/src/lexicon/types/chat/bsky/actor/defs.ts +1 -0
- package/src/proto/bsky_connect.ts +35 -0
- package/src/proto/bsky_pb.ts +676 -0
- package/src/views/index.ts +60 -1
- package/tests/views/verification.test.ts +301 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
|
@@ -4,28 +4,28 @@ import { DatabaseSchema } from './db/database-schema';
|
|
|
4
4
|
export declare const getDescendentsQb: (db: DatabaseSchema, opts: {
|
|
5
5
|
uri: string;
|
|
6
6
|
depth: number;
|
|
7
|
-
}) => import("kysely/dist/cjs/parser/with-parser").QueryCreatorWithCommonTableExpression<import("./db/database-schema").DatabaseSchemaType, "descendent(uri, depth)", (cte: import("kysely").QueryCreator<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & Record<"descendent", {
|
|
7
|
+
}) => import("kysely/dist/cjs/parser/with-parser").QueryCreatorWithCommonTableExpression<import("./db/database-schema").DatabaseSchemaType, "descendent(uri, depth)", (cte: import("kysely").QueryCreator<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & Record<"descendent", {
|
|
8
8
|
uri: any;
|
|
9
9
|
depth: any;
|
|
10
|
-
}>>) => import("kysely").SelectQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & Record<"descendent", {
|
|
10
|
+
}>>) => import("kysely").SelectQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & Record<"descendent", {
|
|
11
11
|
uri: any;
|
|
12
12
|
depth: any;
|
|
13
|
-
}>, "post">, "post", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & Record<"descendent", {
|
|
13
|
+
}>, "post">, "post", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & Record<"descendent", {
|
|
14
14
|
uri: any;
|
|
15
15
|
depth: any;
|
|
16
16
|
}>, "post">, "post", "post.uri as uri" | import("kysely").AliasedRawBuilder<number, "depth">>>>;
|
|
17
17
|
export declare const getAncestorsAndSelfQb: (db: DatabaseSchema, opts: {
|
|
18
18
|
uri: string;
|
|
19
19
|
parentHeight: number;
|
|
20
|
-
}) => import("kysely/dist/cjs/parser/with-parser").QueryCreatorWithCommonTableExpression<import("./db/database-schema").DatabaseSchemaType, "ancestor(uri, ancestorUri, height)", (cte: import("kysely").QueryCreator<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & Record<"ancestor", {
|
|
20
|
+
}) => import("kysely/dist/cjs/parser/with-parser").QueryCreatorWithCommonTableExpression<import("./db/database-schema").DatabaseSchemaType, "ancestor(uri, ancestorUri, height)", (cte: import("kysely").QueryCreator<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & Record<"ancestor", {
|
|
21
21
|
uri: any;
|
|
22
22
|
ancestorUri: any;
|
|
23
23
|
height: any;
|
|
24
|
-
}>>) => import("kysely").SelectQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & Record<"ancestor", {
|
|
24
|
+
}>>) => import("kysely").SelectQueryBuilder<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & Record<"ancestor", {
|
|
25
25
|
uri: any;
|
|
26
26
|
ancestorUri: any;
|
|
27
27
|
height: any;
|
|
28
|
-
}>, "post">, "post", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & Record<"ancestor", {
|
|
28
|
+
}>, "post">, "post", import("kysely").Selection<import("kysely/dist/cjs/parser/table-parser").From<import("./db/tables/duplicate-record").PartialDB & import("./db/tables/profile").PartialDB & import("./db/tables/profile-agg").PartialDB & import("./db/tables/post").PartialDB & import("./db/tables/post-embed").PartialDB & import("./db/tables/post-agg").PartialDB & import("./db/tables/repost").PartialDB & import("./db/tables/thread-gate").PartialDB & import("./db/tables/post-gate").PartialDB & import("./db/tables/feed-item").PartialDB & import("./db/tables/follow").PartialDB & import("./db/tables/like").PartialDB & import("./db/tables/list").PartialDB & import("./db/tables/list-item").PartialDB & import("./db/tables/list-mute").PartialDB & import("./db/tables/list-block").PartialDB & import("./db/tables/mute").PartialDB & import("./db/tables/actor-block").PartialDB & import("./db/tables/thread-mute").PartialDB & import("./db/tables/feed-generator").PartialDB & import("./db/tables/subscription").PartialDB & import("./db/tables/actor").PartialDB & import("./db/tables/actor-state").PartialDB & import("./db/tables/actor-sync").PartialDB & import("./db/tables/record").PartialDB & import("./db/tables/notification").PartialDB & import("./db/tables/notification-push-token").PartialDB & import("./db/tables/did-cache").PartialDB & import("./db/tables/label").PartialDB & import("./db/tables/algo").PartialDB & import("./db/tables/view-param").PartialDB & import("./db/tables/suggested-follow").PartialDB & import("./db/tables/suggested-feed").PartialDB & import("./db/tables/blob-takedown").PartialDB & import("./db/tables/labeler").PartialDB & import("./db/tables/starter-pack").PartialDB & import("./db/tables/tagged-suggestion").PartialDB & import("./db/tables/quote").PartialDB & import("./db/tables/verification").PartialDB & Record<"ancestor", {
|
|
29
29
|
uri: any;
|
|
30
30
|
ancestorUri: any;
|
|
31
31
|
height: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataPlaneClient } from '../data-plane/client';
|
|
2
2
|
import { Record as ProfileRecord } from '../lexicon/types/app/bsky/actor/profile';
|
|
3
3
|
import { Record as ChatDeclarationRecord } from '../lexicon/types/chat/bsky/actor/declaration';
|
|
4
|
+
import { VerificationMeta } from '../proto/bsky_pb';
|
|
4
5
|
import { HydrationMap, RecordInfo } from './util';
|
|
5
6
|
export type Actor = {
|
|
6
7
|
did: string;
|
|
@@ -16,7 +17,17 @@ export type Actor = {
|
|
|
16
17
|
upstreamStatus?: string;
|
|
17
18
|
createdAt?: Date;
|
|
18
19
|
priorityNotifications: boolean;
|
|
20
|
+
trustedVerifier?: boolean;
|
|
21
|
+
verifications: VerificationHydrationState[];
|
|
19
22
|
};
|
|
23
|
+
export type VerificationHydrationState = {
|
|
24
|
+
issuer: string;
|
|
25
|
+
uri: string;
|
|
26
|
+
handle: string;
|
|
27
|
+
displayName: string;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
};
|
|
30
|
+
export type VerificationMetaRequired = Required<VerificationMeta>;
|
|
20
31
|
export type Actors = HydrationMap<Actor>;
|
|
21
32
|
export type ChatDeclaration = RecordInfo<ChatDeclarationRecord>;
|
|
22
33
|
export type ChatDeclarations = HydrationMap<ChatDeclaration>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../../src/hydration/actor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"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MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAoBhE,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAMzD,SAAS,CACb,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,GAAE;QACJ,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;KACvB,GACL,OAAO,CAAC,MAAM,CAAC;IA+DZ,mBAAmB,CACvB,IAAI,EAAE,MAAM,EAAE,EACd,gBAAgB,UAAQ,GACvB,OAAO,CAAC,gBAAgB,CAAC;IAetB,2BAA2B,CAC/B,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,mBAAmB,CAAC;IAyBzB,iBAAiB,CACrB,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,EAAE,MAAM,GAAG,IAAI,GACpB,OAAO,CAAC,cAAc,CAAC;IA2BpB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC;CAcjE"}
|
package/dist/hydration/actor.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActorHydrator = void 0;
|
|
4
|
+
const common_1 = require("@atproto/common");
|
|
4
5
|
const util_1 = require("./util");
|
|
5
6
|
class ActorHydrator {
|
|
6
7
|
constructor(dataplane) {
|
|
@@ -58,6 +59,22 @@ class ActorHydrator {
|
|
|
58
59
|
const profile = actor.profile
|
|
59
60
|
? (0, util_1.parseRecord)(actor.profile, includeTakedowns)
|
|
60
61
|
: undefined;
|
|
62
|
+
const verifications = (0, common_1.mapDefined)(Object.entries(actor.verifiedBy), ([actorDid, verificationMeta]) => {
|
|
63
|
+
if (verificationMeta.displayName &&
|
|
64
|
+
verificationMeta.handle &&
|
|
65
|
+
verificationMeta.rkey &&
|
|
66
|
+
verificationMeta.sortedAt) {
|
|
67
|
+
return {
|
|
68
|
+
issuer: actorDid,
|
|
69
|
+
uri: `at://${actorDid}/app.bsky.graph.verification/${verificationMeta.rkey}`,
|
|
70
|
+
handle: verificationMeta.handle,
|
|
71
|
+
displayName: verificationMeta.displayName,
|
|
72
|
+
createdAt: verificationMeta.sortedAt.toDate().toISOString(),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
// Filter out the verification meta that doesn't contain all info.
|
|
76
|
+
return undefined;
|
|
77
|
+
});
|
|
61
78
|
return acc.set(did, {
|
|
62
79
|
did,
|
|
63
80
|
handle: (0, util_1.parseString)(actor.handle),
|
|
@@ -72,6 +89,8 @@ class ActorHydrator {
|
|
|
72
89
|
upstreamStatus: actor.upstreamStatus || undefined,
|
|
73
90
|
createdAt: actor.createdAt?.toDate(),
|
|
74
91
|
priorityNotifications: actor.priorityNotifications,
|
|
92
|
+
trustedVerifier: actor.trustedVerifier,
|
|
93
|
+
verifications,
|
|
75
94
|
});
|
|
76
95
|
}, new util_1.HydrationMap());
|
|
77
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actor.js","sourceRoot":"","sources":["../../src/hydration/actor.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"actor.js","sourceRoot":"","sources":["../../src/hydration/actor.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAK5C,iCAMe;AAkEf,MAAa,aAAa;IACxB,YAAmB,SAA0B;QAAjC;;;;mBAAO,SAAS;WAAiB;IAAG,CAAC;IAEjD,KAAK,CAAC,cAAc,CAAC,GAAkB;QACrC,IAAI,CAAC,GAAG;YAAE,OAAO,IAAI,CAAA;QACrB,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAA;YAChE,OAAO,IAAA,kBAAW,EAAC,GAAG,CAAC,GA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AC;iBAC9B;gBACH,CAAC,CAAC,SAAS,CACd,CAAA;QACH,CAAC,EAAE,IAAI,mBAAY,EAAwC,CAAC,CAAA;IAC9D,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,IAAc;QACvC,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,mBAAY,EAAc,CAAA;QACvD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE;YACjC,OAAO,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE;gBAClB,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;gBACnC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;gBACjC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC3B,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC3B,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC3B,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;aAC1C,CAAC,CAAA;QACJ,CAAC,EAAE,IAAI,mBAAY,EAAc,CAAC,CAAA;IACpC,CAAC;CACF;AAtMD,sCAsMC"}
|
|
@@ -5,6 +5,7 @@ import { ParsedLabelers } from '../util';
|
|
|
5
5
|
import { HydrationMap, Merges, RecordInfo } from './util';
|
|
6
6
|
export type { Label } from '../lexicon/types/com/atproto/label/defs';
|
|
7
7
|
export type SubjectLabels = {
|
|
8
|
+
isImpersonation: boolean;
|
|
8
9
|
isTakendown: boolean;
|
|
9
10
|
needsReview: boolean;
|
|
10
11
|
labels: HydrationMap<Label>;
|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kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAA;AAElE,qBAAa,aAAa;IACL,SAAS,EAAE,eAAe;gBAA1B,SAAS,EAAE,eAAe;IAEvC,oBAAoB,CACxB,QAAQ,EAAE,MAAM,EAAE,EAClB,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC;IAsDZ,WAAW,CACf,IAAI,EAAE,MAAM,EAAE,EACd,gBAAgB,UAAQ,GACvB,OAAO,CAAC,QAAQ,CAAC;IAad,sBAAsB,CAC1B,IAAI,EAAE,MAAM,EAAE,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,mBAAmB,CAAC;IAYzB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC;CASjE"}
|
package/dist/hydration/label.js
CHANGED
|
@@ -60,6 +60,7 @@ class LabelHydrator {
|
|
|
60
60
|
let entry = acc.get(label.uri);
|
|
61
61
|
if (!entry) {
|
|
62
62
|
entry = {
|
|
63
|
+
isImpersonation: false,
|
|
63
64
|
isTakendown: false,
|
|
64
65
|
needsReview: false,
|
|
65
66
|
labels: new util_1.HydrationMap(),
|
|
@@ -81,6 +82,11 @@ class LabelHydrator {
|
|
|
81
82
|
if (isActionableNeedsReview) {
|
|
82
83
|
entry.needsReview = true;
|
|
83
84
|
}
|
|
85
|
+
if (label.val === IMPERSONATION_LABEL &&
|
|
86
|
+
!label.neg &&
|
|
87
|
+
labelers.redact.has(label.src)) {
|
|
88
|
+
entry.isImpersonation = true;
|
|
89
|
+
}
|
|
84
90
|
return acc;
|
|
85
91
|
}, new Labels());
|
|
86
92
|
}
|
|
@@ -118,6 +124,7 @@ exports.LabelHydrator = LabelHydrator;
|
|
|
118
124
|
const labelerDidToUri = (did) => {
|
|
119
125
|
return syntax_1.AtUri.make(did, lexicons_1.ids.AppBskyLabelerService, 'self').toString();
|
|
120
126
|
};
|
|
127
|
+
const IMPERSONATION_LABEL = 'impersonation';
|
|
121
128
|
const TAKEDOWN_LABELS = ['!takedown', '!suspend'];
|
|
122
129
|
const NEEDS_REVIEW_LABEL = 'needs-review';
|
|
123
130
|
//# sourceMappingURL=label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/hydration/label.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AAEvC,kDAAyC;AAIzC,iCAOe;
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/hydration/label.ts"],"names":[],"mappings":";;;AAAA,4CAAuC;AAEvC,kDAAyC;AAIzC,iCAOe;AAWf,MAAa,MAAO,SAAQ,mBAA2B;IACrD,MAAM,CAAC,GAAG,CAAC,KAAY;QACrB,OAAO,GAAG,KAAK,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG,EAAE,CAAA;IACrC,CAAC;IACD,KAAK,CAAC,GAAW;QACf,GAAG,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;YAC1B,IAAI,CAAC,MAAM;gBAAE,OAAM;YACnB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YAC1B,IAAI,IAAI,EAAE,CAAC;gBACT,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,CAAA;gBACzD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;YAChD,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;YACvB,CAAC;QACH,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IACD,YAAY,CAAC,GAAW;QACtB,MAAM,EAAE,GAAG,IAAI,CAAC,GA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,CAAC,CAAA;QAClE,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE;YACjC,OAAO,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE;gBAClB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;aAC5B,CAAC,CAAA;QACJ,CAAC,EAAE,IAAI,mBAAY,EAAc,CAAC,CAAA;IACpC,CAAC;CACF;AApGD,sCAoGC;AAED,MAAM,eAAe,GAAG,CAAC,GAAW,EAAU,EAAE;IAC9C,OAAO,cAAK,CAAC,IAAI,CAAC,GAAG,EAAE,cAAG,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAA;AACtE,CAAC,CAAA;AAED,MAAM,mBAAmB,GAAG,eAAe,CAAA;AAC3C,MAAM,eAAe,GAAG,CAAC,WAAW,EAAE,UAAU,CAAC,CAAA;AACjD,MAAM,kBAAkB,GAAG,cAAc,CAAA"}
|
|
@@ -4163,6 +4163,10 @@ export declare const schemaDict: {
|
|
|
4163
4163
|
readonly type: "string";
|
|
4164
4164
|
readonly format: "datetime";
|
|
4165
4165
|
};
|
|
4166
|
+
readonly verification: {
|
|
4167
|
+
readonly type: "ref";
|
|
4168
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationState";
|
|
4169
|
+
};
|
|
4166
4170
|
};
|
|
4167
4171
|
};
|
|
4168
4172
|
readonly profileView: {
|
|
@@ -4214,6 +4218,10 @@ export declare const schemaDict: {
|
|
|
4214
4218
|
readonly ref: "lex:com.atproto.label.defs#label";
|
|
4215
4219
|
};
|
|
4216
4220
|
};
|
|
4221
|
+
readonly verification: {
|
|
4222
|
+
readonly type: "ref";
|
|
4223
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationState";
|
|
4224
|
+
};
|
|
4217
4225
|
};
|
|
4218
4226
|
};
|
|
4219
4227
|
readonly profileViewDetailed: {
|
|
@@ -4286,6 +4294,10 @@ export declare const schemaDict: {
|
|
|
4286
4294
|
readonly type: "ref";
|
|
4287
4295
|
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
4288
4296
|
};
|
|
4297
|
+
readonly verification: {
|
|
4298
|
+
readonly type: "ref";
|
|
4299
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationState";
|
|
4300
|
+
};
|
|
4289
4301
|
};
|
|
4290
4302
|
};
|
|
4291
4303
|
readonly profileAssociated: {
|
|
@@ -4374,11 +4386,62 @@ export declare const schemaDict: {
|
|
|
4374
4386
|
};
|
|
4375
4387
|
};
|
|
4376
4388
|
};
|
|
4389
|
+
readonly verificationState: {
|
|
4390
|
+
readonly type: "object";
|
|
4391
|
+
readonly description: "Represents the verification information about the user this object is attached to.";
|
|
4392
|
+
readonly required: ["verifications", "verifiedStatus", "trustedVerifierStatus"];
|
|
4393
|
+
readonly properties: {
|
|
4394
|
+
readonly verifications: {
|
|
4395
|
+
readonly type: "array";
|
|
4396
|
+
readonly description: "All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.";
|
|
4397
|
+
readonly items: {
|
|
4398
|
+
readonly type: "ref";
|
|
4399
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationView";
|
|
4400
|
+
};
|
|
4401
|
+
};
|
|
4402
|
+
readonly verifiedStatus: {
|
|
4403
|
+
readonly type: "string";
|
|
4404
|
+
readonly description: "The user's status as a verified account.";
|
|
4405
|
+
readonly knownValues: ["valid", "invalid", "none"];
|
|
4406
|
+
};
|
|
4407
|
+
readonly trustedVerifierStatus: {
|
|
4408
|
+
readonly type: "string";
|
|
4409
|
+
readonly description: "The user's status as a trusted verifier.";
|
|
4410
|
+
readonly knownValues: ["valid", "invalid", "none"];
|
|
4411
|
+
};
|
|
4412
|
+
};
|
|
4413
|
+
};
|
|
4414
|
+
readonly verificationView: {
|
|
4415
|
+
readonly type: "object";
|
|
4416
|
+
readonly description: "An individual verification for an associated subject.";
|
|
4417
|
+
readonly required: ["issuer", "uri", "isValid", "createdAt"];
|
|
4418
|
+
readonly properties: {
|
|
4419
|
+
readonly issuer: {
|
|
4420
|
+
readonly type: "string";
|
|
4421
|
+
readonly description: "The user who issued this verification.";
|
|
4422
|
+
readonly format: "did";
|
|
4423
|
+
};
|
|
4424
|
+
readonly uri: {
|
|
4425
|
+
readonly type: "string";
|
|
4426
|
+
readonly description: "The AT-URI of the verification record.";
|
|
4427
|
+
readonly format: "at-uri";
|
|
4428
|
+
};
|
|
4429
|
+
readonly isValid: {
|
|
4430
|
+
readonly type: "boolean";
|
|
4431
|
+
readonly description: "True if the verification passes validation, otherwise false.";
|
|
4432
|
+
};
|
|
4433
|
+
readonly createdAt: {
|
|
4434
|
+
readonly type: "string";
|
|
4435
|
+
readonly description: "Timestamp when the verification was created.";
|
|
4436
|
+
readonly format: "datetime";
|
|
4437
|
+
};
|
|
4438
|
+
};
|
|
4439
|
+
};
|
|
4377
4440
|
readonly preferences: {
|
|
4378
4441
|
readonly type: "array";
|
|
4379
4442
|
readonly items: {
|
|
4380
4443
|
readonly type: "union";
|
|
4381
|
-
readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref"];
|
|
4444
|
+
readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs"];
|
|
4382
4445
|
};
|
|
4383
4446
|
};
|
|
4384
4447
|
readonly adultContentPref: {
|
|
@@ -4692,6 +4755,18 @@ export declare const schemaDict: {
|
|
|
4692
4755
|
};
|
|
4693
4756
|
};
|
|
4694
4757
|
};
|
|
4758
|
+
readonly verificationPrefs: {
|
|
4759
|
+
readonly type: "object";
|
|
4760
|
+
readonly description: "Preferences for how verified accounts appear in the app.";
|
|
4761
|
+
readonly required: [];
|
|
4762
|
+
readonly properties: {
|
|
4763
|
+
readonly hideBadges: {
|
|
4764
|
+
readonly description: "Hide the blue check badges for verified accounts and trusted verifiers.";
|
|
4765
|
+
readonly type: "boolean";
|
|
4766
|
+
readonly default: false;
|
|
4767
|
+
};
|
|
4768
|
+
};
|
|
4769
|
+
};
|
|
4695
4770
|
readonly postInteractionSettingsPref: {
|
|
4696
4771
|
readonly type: "object";
|
|
4697
4772
|
readonly description: "Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.";
|
|
@@ -10238,6 +10313,10 @@ export declare const schemaDict: {
|
|
|
10238
10313
|
readonly type: "boolean";
|
|
10239
10314
|
readonly description: "Set to true when the actor cannot actively participate in converations";
|
|
10240
10315
|
};
|
|
10316
|
+
readonly verification: {
|
|
10317
|
+
readonly type: "ref";
|
|
10318
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationState";
|
|
10319
|
+
};
|
|
10241
10320
|
};
|
|
10242
10321
|
};
|
|
10243
10322
|
};
|
|
@@ -15493,6 +15572,10 @@ export declare const schemas: ({
|
|
|
15493
15572
|
readonly type: "string";
|
|
15494
15573
|
readonly format: "datetime";
|
|
15495
15574
|
};
|
|
15575
|
+
readonly verification: {
|
|
15576
|
+
readonly type: "ref";
|
|
15577
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationState";
|
|
15578
|
+
};
|
|
15496
15579
|
};
|
|
15497
15580
|
};
|
|
15498
15581
|
readonly profileView: {
|
|
@@ -15544,6 +15627,10 @@ export declare const schemas: ({
|
|
|
15544
15627
|
readonly ref: "lex:com.atproto.label.defs#label";
|
|
15545
15628
|
};
|
|
15546
15629
|
};
|
|
15630
|
+
readonly verification: {
|
|
15631
|
+
readonly type: "ref";
|
|
15632
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationState";
|
|
15633
|
+
};
|
|
15547
15634
|
};
|
|
15548
15635
|
};
|
|
15549
15636
|
readonly profileViewDetailed: {
|
|
@@ -15616,6 +15703,10 @@ export declare const schemas: ({
|
|
|
15616
15703
|
readonly type: "ref";
|
|
15617
15704
|
readonly ref: "lex:com.atproto.repo.strongRef";
|
|
15618
15705
|
};
|
|
15706
|
+
readonly verification: {
|
|
15707
|
+
readonly type: "ref";
|
|
15708
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationState";
|
|
15709
|
+
};
|
|
15619
15710
|
};
|
|
15620
15711
|
};
|
|
15621
15712
|
readonly profileAssociated: {
|
|
@@ -15704,11 +15795,62 @@ export declare const schemas: ({
|
|
|
15704
15795
|
};
|
|
15705
15796
|
};
|
|
15706
15797
|
};
|
|
15798
|
+
readonly verificationState: {
|
|
15799
|
+
readonly type: "object";
|
|
15800
|
+
readonly description: "Represents the verification information about the user this object is attached to.";
|
|
15801
|
+
readonly required: ["verifications", "verifiedStatus", "trustedVerifierStatus"];
|
|
15802
|
+
readonly properties: {
|
|
15803
|
+
readonly verifications: {
|
|
15804
|
+
readonly type: "array";
|
|
15805
|
+
readonly description: "All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.";
|
|
15806
|
+
readonly items: {
|
|
15807
|
+
readonly type: "ref";
|
|
15808
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationView";
|
|
15809
|
+
};
|
|
15810
|
+
};
|
|
15811
|
+
readonly verifiedStatus: {
|
|
15812
|
+
readonly type: "string";
|
|
15813
|
+
readonly description: "The user's status as a verified account.";
|
|
15814
|
+
readonly knownValues: ["valid", "invalid", "none"];
|
|
15815
|
+
};
|
|
15816
|
+
readonly trustedVerifierStatus: {
|
|
15817
|
+
readonly type: "string";
|
|
15818
|
+
readonly description: "The user's status as a trusted verifier.";
|
|
15819
|
+
readonly knownValues: ["valid", "invalid", "none"];
|
|
15820
|
+
};
|
|
15821
|
+
};
|
|
15822
|
+
};
|
|
15823
|
+
readonly verificationView: {
|
|
15824
|
+
readonly type: "object";
|
|
15825
|
+
readonly description: "An individual verification for an associated subject.";
|
|
15826
|
+
readonly required: ["issuer", "uri", "isValid", "createdAt"];
|
|
15827
|
+
readonly properties: {
|
|
15828
|
+
readonly issuer: {
|
|
15829
|
+
readonly type: "string";
|
|
15830
|
+
readonly description: "The user who issued this verification.";
|
|
15831
|
+
readonly format: "did";
|
|
15832
|
+
};
|
|
15833
|
+
readonly uri: {
|
|
15834
|
+
readonly type: "string";
|
|
15835
|
+
readonly description: "The AT-URI of the verification record.";
|
|
15836
|
+
readonly format: "at-uri";
|
|
15837
|
+
};
|
|
15838
|
+
readonly isValid: {
|
|
15839
|
+
readonly type: "boolean";
|
|
15840
|
+
readonly description: "True if the verification passes validation, otherwise false.";
|
|
15841
|
+
};
|
|
15842
|
+
readonly createdAt: {
|
|
15843
|
+
readonly type: "string";
|
|
15844
|
+
readonly description: "Timestamp when the verification was created.";
|
|
15845
|
+
readonly format: "datetime";
|
|
15846
|
+
};
|
|
15847
|
+
};
|
|
15848
|
+
};
|
|
15707
15849
|
readonly preferences: {
|
|
15708
15850
|
readonly type: "array";
|
|
15709
15851
|
readonly items: {
|
|
15710
15852
|
readonly type: "union";
|
|
15711
|
-
readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref"];
|
|
15853
|
+
readonly refs: ["lex:app.bsky.actor.defs#adultContentPref", "lex:app.bsky.actor.defs#contentLabelPref", "lex:app.bsky.actor.defs#savedFeedsPref", "lex:app.bsky.actor.defs#savedFeedsPrefV2", "lex:app.bsky.actor.defs#personalDetailsPref", "lex:app.bsky.actor.defs#feedViewPref", "lex:app.bsky.actor.defs#threadViewPref", "lex:app.bsky.actor.defs#interestsPref", "lex:app.bsky.actor.defs#mutedWordsPref", "lex:app.bsky.actor.defs#hiddenPostsPref", "lex:app.bsky.actor.defs#bskyAppStatePref", "lex:app.bsky.actor.defs#labelersPref", "lex:app.bsky.actor.defs#postInteractionSettingsPref", "lex:app.bsky.actor.defs#verificationPrefs"];
|
|
15712
15854
|
};
|
|
15713
15855
|
};
|
|
15714
15856
|
readonly adultContentPref: {
|
|
@@ -16022,6 +16164,18 @@ export declare const schemas: ({
|
|
|
16022
16164
|
};
|
|
16023
16165
|
};
|
|
16024
16166
|
};
|
|
16167
|
+
readonly verificationPrefs: {
|
|
16168
|
+
readonly type: "object";
|
|
16169
|
+
readonly description: "Preferences for how verified accounts appear in the app.";
|
|
16170
|
+
readonly required: [];
|
|
16171
|
+
readonly properties: {
|
|
16172
|
+
readonly hideBadges: {
|
|
16173
|
+
readonly description: "Hide the blue check badges for verified accounts and trusted verifiers.";
|
|
16174
|
+
readonly type: "boolean";
|
|
16175
|
+
readonly default: false;
|
|
16176
|
+
};
|
|
16177
|
+
};
|
|
16178
|
+
};
|
|
16025
16179
|
readonly postInteractionSettingsPref: {
|
|
16026
16180
|
readonly type: "object";
|
|
16027
16181
|
readonly description: "Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.";
|
|
@@ -21468,6 +21622,10 @@ export declare const schemas: ({
|
|
|
21468
21622
|
readonly type: "boolean";
|
|
21469
21623
|
readonly description: "Set to true when the actor cannot actively participate in converations";
|
|
21470
21624
|
};
|
|
21625
|
+
readonly verification: {
|
|
21626
|
+
readonly type: "ref";
|
|
21627
|
+
readonly ref: "lex:app.bsky.actor.defs#verificationState";
|
|
21628
|
+
};
|
|
21471
21629
|
};
|
|
21472
21630
|
};
|
|
21473
21631
|
};
|