@atproto/bsky 0.0.141 → 0.0.142
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 +7 -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 +134 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +67 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +18 -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 +6 -6
- 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 +70 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +47 -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
package/dist/proto/bsky_pb.d.ts
CHANGED
|
@@ -819,6 +819,235 @@ export declare class GetFollowsResponse extends Message<GetFollowsResponse> {
|
|
|
819
819
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetFollowsResponse;
|
|
820
820
|
static equals(a: GetFollowsResponse | PlainMessage<GetFollowsResponse> | undefined, b: GetFollowsResponse | PlainMessage<GetFollowsResponse> | undefined): boolean;
|
|
821
821
|
}
|
|
822
|
+
/**
|
|
823
|
+
* @generated from message bsky.VerificationMeta
|
|
824
|
+
*/
|
|
825
|
+
export declare class VerificationMeta extends Message<VerificationMeta> {
|
|
826
|
+
/**
|
|
827
|
+
* @generated from field: string rkey = 1;
|
|
828
|
+
*/
|
|
829
|
+
rkey: string;
|
|
830
|
+
/**
|
|
831
|
+
* @generated from field: string handle = 2;
|
|
832
|
+
*/
|
|
833
|
+
handle: string;
|
|
834
|
+
/**
|
|
835
|
+
* @generated from field: string display_name = 3;
|
|
836
|
+
*/
|
|
837
|
+
displayName: string;
|
|
838
|
+
/**
|
|
839
|
+
* @generated from field: google.protobuf.Timestamp sorted_at = 4;
|
|
840
|
+
*/
|
|
841
|
+
sortedAt?: Timestamp;
|
|
842
|
+
constructor(data?: PartialMessage<VerificationMeta>);
|
|
843
|
+
static readonly runtime: typeof proto3;
|
|
844
|
+
static readonly typeName = "bsky.VerificationMeta";
|
|
845
|
+
static readonly fields: FieldList;
|
|
846
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerificationMeta;
|
|
847
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerificationMeta;
|
|
848
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerificationMeta;
|
|
849
|
+
static equals(a: VerificationMeta | PlainMessage<VerificationMeta> | undefined, b: VerificationMeta | PlainMessage<VerificationMeta> | undefined): boolean;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* @generated from message bsky.GetVerificationRecordsRequest
|
|
853
|
+
*/
|
|
854
|
+
export declare class GetVerificationRecordsRequest extends Message<GetVerificationRecordsRequest> {
|
|
855
|
+
/**
|
|
856
|
+
* @generated from field: repeated string uris = 1;
|
|
857
|
+
*/
|
|
858
|
+
uris: string[];
|
|
859
|
+
constructor(data?: PartialMessage<GetVerificationRecordsRequest>);
|
|
860
|
+
static readonly runtime: typeof proto3;
|
|
861
|
+
static readonly typeName = "bsky.GetVerificationRecordsRequest";
|
|
862
|
+
static readonly fields: FieldList;
|
|
863
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVerificationRecordsRequest;
|
|
864
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVerificationRecordsRequest;
|
|
865
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVerificationRecordsRequest;
|
|
866
|
+
static equals(a: GetVerificationRecordsRequest | PlainMessage<GetVerificationRecordsRequest> | undefined, b: GetVerificationRecordsRequest | PlainMessage<GetVerificationRecordsRequest> | undefined): boolean;
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* @generated from message bsky.GetVerificationRecordsResponse
|
|
870
|
+
*/
|
|
871
|
+
export declare class GetVerificationRecordsResponse extends Message<GetVerificationRecordsResponse> {
|
|
872
|
+
/**
|
|
873
|
+
* @generated from field: repeated bsky.Record records = 1;
|
|
874
|
+
*/
|
|
875
|
+
records: Record[];
|
|
876
|
+
constructor(data?: PartialMessage<GetVerificationRecordsResponse>);
|
|
877
|
+
static readonly runtime: typeof proto3;
|
|
878
|
+
static readonly typeName = "bsky.GetVerificationRecordsResponse";
|
|
879
|
+
static readonly fields: FieldList;
|
|
880
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVerificationRecordsResponse;
|
|
881
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVerificationRecordsResponse;
|
|
882
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVerificationRecordsResponse;
|
|
883
|
+
static equals(a: GetVerificationRecordsResponse | PlainMessage<GetVerificationRecordsResponse> | undefined, b: GetVerificationRecordsResponse | PlainMessage<GetVerificationRecordsResponse> | undefined): boolean;
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* @generated from message bsky.VerificationIssued
|
|
887
|
+
*/
|
|
888
|
+
export declare class VerificationIssued extends Message<VerificationIssued> {
|
|
889
|
+
/**
|
|
890
|
+
* @generated from field: string actor_did = 1;
|
|
891
|
+
*/
|
|
892
|
+
actorDid: string;
|
|
893
|
+
/**
|
|
894
|
+
* @generated from field: string rkey = 2;
|
|
895
|
+
*/
|
|
896
|
+
rkey: string;
|
|
897
|
+
/**
|
|
898
|
+
* @generated from field: string subject_did = 3;
|
|
899
|
+
*/
|
|
900
|
+
subjectDid: string;
|
|
901
|
+
/**
|
|
902
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
903
|
+
*/
|
|
904
|
+
createdAt?: Timestamp;
|
|
905
|
+
/**
|
|
906
|
+
* @generated from field: google.protobuf.Timestamp indexed_at = 8;
|
|
907
|
+
*/
|
|
908
|
+
indexedAt?: Timestamp;
|
|
909
|
+
/**
|
|
910
|
+
* @generated from field: google.protobuf.Timestamp sorted_at = 9;
|
|
911
|
+
*/
|
|
912
|
+
sortedAt?: Timestamp;
|
|
913
|
+
constructor(data?: PartialMessage<VerificationIssued>);
|
|
914
|
+
static readonly runtime: typeof proto3;
|
|
915
|
+
static readonly typeName = "bsky.VerificationIssued";
|
|
916
|
+
static readonly fields: FieldList;
|
|
917
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerificationIssued;
|
|
918
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerificationIssued;
|
|
919
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerificationIssued;
|
|
920
|
+
static equals(a: VerificationIssued | PlainMessage<VerificationIssued> | undefined, b: VerificationIssued | PlainMessage<VerificationIssued> | undefined): boolean;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* @generated from message bsky.GetVerificationsIssuedRequest
|
|
924
|
+
*/
|
|
925
|
+
export declare class GetVerificationsIssuedRequest extends Message<GetVerificationsIssuedRequest> {
|
|
926
|
+
/**
|
|
927
|
+
* @generated from field: string actor_did = 1;
|
|
928
|
+
*/
|
|
929
|
+
actorDid: string;
|
|
930
|
+
/**
|
|
931
|
+
* @generated from field: int32 limit = 2;
|
|
932
|
+
*/
|
|
933
|
+
limit: number;
|
|
934
|
+
/**
|
|
935
|
+
* @generated from field: string cursor = 3;
|
|
936
|
+
*/
|
|
937
|
+
cursor: string;
|
|
938
|
+
constructor(data?: PartialMessage<GetVerificationsIssuedRequest>);
|
|
939
|
+
static readonly runtime: typeof proto3;
|
|
940
|
+
static readonly typeName = "bsky.GetVerificationsIssuedRequest";
|
|
941
|
+
static readonly fields: FieldList;
|
|
942
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVerificationsIssuedRequest;
|
|
943
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVerificationsIssuedRequest;
|
|
944
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVerificationsIssuedRequest;
|
|
945
|
+
static equals(a: GetVerificationsIssuedRequest | PlainMessage<GetVerificationsIssuedRequest> | undefined, b: GetVerificationsIssuedRequest | PlainMessage<GetVerificationsIssuedRequest> | undefined): boolean;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* @generated from message bsky.GetVerificationsIssuedResponse
|
|
949
|
+
*/
|
|
950
|
+
export declare class GetVerificationsIssuedResponse extends Message<GetVerificationsIssuedResponse> {
|
|
951
|
+
/**
|
|
952
|
+
* @generated from field: repeated bsky.VerificationIssued verifications = 1;
|
|
953
|
+
*/
|
|
954
|
+
verifications: VerificationIssued[];
|
|
955
|
+
/**
|
|
956
|
+
* @generated from field: string cursor = 2;
|
|
957
|
+
*/
|
|
958
|
+
cursor: string;
|
|
959
|
+
constructor(data?: PartialMessage<GetVerificationsIssuedResponse>);
|
|
960
|
+
static readonly runtime: typeof proto3;
|
|
961
|
+
static readonly typeName = "bsky.GetVerificationsIssuedResponse";
|
|
962
|
+
static readonly fields: FieldList;
|
|
963
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVerificationsIssuedResponse;
|
|
964
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVerificationsIssuedResponse;
|
|
965
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVerificationsIssuedResponse;
|
|
966
|
+
static equals(a: GetVerificationsIssuedResponse | PlainMessage<GetVerificationsIssuedResponse> | undefined, b: GetVerificationsIssuedResponse | PlainMessage<GetVerificationsIssuedResponse> | undefined): boolean;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* @generated from message bsky.VerificationReceived
|
|
970
|
+
*/
|
|
971
|
+
export declare class VerificationReceived extends Message<VerificationReceived> {
|
|
972
|
+
/**
|
|
973
|
+
* @generated from field: string actor_did = 1;
|
|
974
|
+
*/
|
|
975
|
+
actorDid: string;
|
|
976
|
+
/**
|
|
977
|
+
* @generated from field: string rkey = 2;
|
|
978
|
+
*/
|
|
979
|
+
rkey: string;
|
|
980
|
+
/**
|
|
981
|
+
* @generated from field: string subject_did = 3;
|
|
982
|
+
*/
|
|
983
|
+
subjectDid: string;
|
|
984
|
+
/**
|
|
985
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
986
|
+
*/
|
|
987
|
+
createdAt?: Timestamp;
|
|
988
|
+
/**
|
|
989
|
+
* @generated from field: google.protobuf.Timestamp indexed_at = 8;
|
|
990
|
+
*/
|
|
991
|
+
indexedAt?: Timestamp;
|
|
992
|
+
/**
|
|
993
|
+
* @generated from field: google.protobuf.Timestamp sorted_at = 9;
|
|
994
|
+
*/
|
|
995
|
+
sortedAt?: Timestamp;
|
|
996
|
+
constructor(data?: PartialMessage<VerificationReceived>);
|
|
997
|
+
static readonly runtime: typeof proto3;
|
|
998
|
+
static readonly typeName = "bsky.VerificationReceived";
|
|
999
|
+
static readonly fields: FieldList;
|
|
1000
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerificationReceived;
|
|
1001
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerificationReceived;
|
|
1002
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerificationReceived;
|
|
1003
|
+
static equals(a: VerificationReceived | PlainMessage<VerificationReceived> | undefined, b: VerificationReceived | PlainMessage<VerificationReceived> | undefined): boolean;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* @generated from message bsky.GetVerificationsReceivedRequest
|
|
1007
|
+
*/
|
|
1008
|
+
export declare class GetVerificationsReceivedRequest extends Message<GetVerificationsReceivedRequest> {
|
|
1009
|
+
/**
|
|
1010
|
+
* @generated from field: string subject_did = 1;
|
|
1011
|
+
*/
|
|
1012
|
+
subjectDid: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* @generated from field: int32 limit = 2;
|
|
1015
|
+
*/
|
|
1016
|
+
limit: number;
|
|
1017
|
+
/**
|
|
1018
|
+
* @generated from field: string cursor = 3;
|
|
1019
|
+
*/
|
|
1020
|
+
cursor: string;
|
|
1021
|
+
constructor(data?: PartialMessage<GetVerificationsReceivedRequest>);
|
|
1022
|
+
static readonly runtime: typeof proto3;
|
|
1023
|
+
static readonly typeName = "bsky.GetVerificationsReceivedRequest";
|
|
1024
|
+
static readonly fields: FieldList;
|
|
1025
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVerificationsReceivedRequest;
|
|
1026
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVerificationsReceivedRequest;
|
|
1027
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVerificationsReceivedRequest;
|
|
1028
|
+
static equals(a: GetVerificationsReceivedRequest | PlainMessage<GetVerificationsReceivedRequest> | undefined, b: GetVerificationsReceivedRequest | PlainMessage<GetVerificationsReceivedRequest> | undefined): boolean;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* @generated from message bsky.GetVerificationsReceivedResponse
|
|
1032
|
+
*/
|
|
1033
|
+
export declare class GetVerificationsReceivedResponse extends Message<GetVerificationsReceivedResponse> {
|
|
1034
|
+
/**
|
|
1035
|
+
* @generated from field: repeated bsky.VerificationReceived verifications = 1;
|
|
1036
|
+
*/
|
|
1037
|
+
verifications: VerificationReceived[];
|
|
1038
|
+
/**
|
|
1039
|
+
* @generated from field: string cursor = 2;
|
|
1040
|
+
*/
|
|
1041
|
+
cursor: string;
|
|
1042
|
+
constructor(data?: PartialMessage<GetVerificationsReceivedResponse>);
|
|
1043
|
+
static readonly runtime: typeof proto3;
|
|
1044
|
+
static readonly typeName = "bsky.GetVerificationsReceivedResponse";
|
|
1045
|
+
static readonly fields: FieldList;
|
|
1046
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetVerificationsReceivedResponse;
|
|
1047
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetVerificationsReceivedResponse;
|
|
1048
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetVerificationsReceivedResponse;
|
|
1049
|
+
static equals(a: GetVerificationsReceivedResponse | PlainMessage<GetVerificationsReceivedResponse> | undefined, b: GetVerificationsReceivedResponse | PlainMessage<GetVerificationsReceivedResponse> | undefined): boolean;
|
|
1050
|
+
}
|
|
822
1051
|
/**
|
|
823
1052
|
* - return like uris where subject uri is subject A
|
|
824
1053
|
* - `getLikes` list for a post
|
|
@@ -1522,6 +1751,20 @@ export declare class ActorInfo extends Message<ActorInfo> {
|
|
|
1522
1751
|
* @generated from field: bool priority_notifications = 11;
|
|
1523
1752
|
*/
|
|
1524
1753
|
priorityNotifications: boolean;
|
|
1754
|
+
/**
|
|
1755
|
+
* @generated from field: double pagerank = 12;
|
|
1756
|
+
*/
|
|
1757
|
+
pagerank: number;
|
|
1758
|
+
/**
|
|
1759
|
+
* @generated from field: bool trusted_verifier = 13;
|
|
1760
|
+
*/
|
|
1761
|
+
trustedVerifier: boolean;
|
|
1762
|
+
/**
|
|
1763
|
+
* @generated from field: map<string, bsky.VerificationMeta> verified_by = 14;
|
|
1764
|
+
*/
|
|
1765
|
+
verifiedBy: {
|
|
1766
|
+
[key: string]: VerificationMeta;
|
|
1767
|
+
};
|
|
1525
1768
|
constructor(data?: PartialMessage<ActorInfo>);
|
|
1526
1769
|
static readonly runtime: typeof proto3;
|
|
1527
1770
|
static readonly typeName = "bsky.ActorInfo";
|