From 3be2fb739d136912cf6f489edfc07b007c2827a6 Mon Sep 17 00:00:00 2001 From: dholms Date: Mon, 4 Dec 2023 20:56:10 -0600 Subject: [PATCH 001/186] add buf & connectrpc, codegen client --- packages/bsky/buf.gen.yaml | 8 + packages/bsky/package.json | 11 +- packages/bsky/proto/bsky.proto | 792 +++ packages/bsky/src/data-plane/bsky_connect.ts | 534 ++ packages/bsky/src/data-plane/bsky_pb.ts | 4598 ++++++++++++++++++ packages/bsky/src/data-plane/index.ts | 11 + pnpm-lock.yaml | 181 + 7 files changed, 6133 insertions(+), 2 deletions(-) create mode 100644 packages/bsky/buf.gen.yaml create mode 100644 packages/bsky/proto/bsky.proto create mode 100644 packages/bsky/src/data-plane/bsky_connect.ts create mode 100644 packages/bsky/src/data-plane/bsky_pb.ts create mode 100644 packages/bsky/src/data-plane/index.ts diff --git a/packages/bsky/buf.gen.yaml b/packages/bsky/buf.gen.yaml new file mode 100644 index 00000000000..412046cf254 --- /dev/null +++ b/packages/bsky/buf.gen.yaml @@ -0,0 +1,8 @@ +version: v1 +plugins: + - plugin: es + opt: target=ts + out: src/data-plane + - plugin: connect-es + opt: target=ts + out: src/data-plane \ No newline at end of file diff --git a/packages/bsky/package.json b/packages/bsky/package.json index ad86a2fff21..1140eb2bc5a 100644 --- a/packages/bsky/package.json +++ b/packages/bsky/package.json @@ -28,17 +28,21 @@ "test": "../dev-infra/with-test-redis-and-db.sh jest", "test:log": "tail -50 test.log | pino-pretty", "test:updateSnapshot": "jest --updateSnapshot", - "migration:create": "ts-node ./bin/migration-create.ts" + "migration:create": "ts-node ./bin/migration-create.ts", + "buf:gen": "buf generate proto" }, "dependencies": { "@atproto/api": "workspace:^", "@atproto/common": "workspace:^", "@atproto/crypto": "workspace:^", - "@atproto/syntax": "workspace:^", "@atproto/identity": "workspace:^", "@atproto/lexicon": "workspace:^", "@atproto/repo": "workspace:^", + "@atproto/syntax": "workspace:^", "@atproto/xrpc-server": "workspace:^", + "@bufbuild/protobuf": "^1.5.0", + "@connectrpc/connect": "^1.1.4", + "@connectrpc/connect-node": "^1.1.4", "@did-plc/lib": "^0.0.1", "@isaacs/ttlcache": "^1.4.1", "compression": "^1.7.4", @@ -65,6 +69,9 @@ "@atproto/lex-cli": "workspace:^", "@atproto/pds": "workspace:^", "@atproto/xrpc": "workspace:^", + "@bufbuild/buf": "^1.28.1", + "@bufbuild/protoc-gen-es": "^1.5.0", + "@connectrpc/protoc-gen-connect-es": "^1.1.4", "@did-plc/server": "^0.0.1", "@types/cors": "^2.8.12", "@types/express": "^4.17.13", diff --git a/packages/bsky/proto/bsky.proto b/packages/bsky/proto/bsky.proto new file mode 100644 index 00000000000..ad273562773 --- /dev/null +++ b/packages/bsky/proto/bsky.proto @@ -0,0 +1,792 @@ +syntax = "proto3"; + +package bsky; +option go_package = "./;bsky"; + +import "google/protobuf/timestamp.proto"; + +// +// Bsky +// + +// +// Follows +// + +// - Return follow uris where user A follows users B, C, D, … +// - E.g. for viewer state on `getProfiles` +message GetActorFollowsActorsRequest { + string actor_did = 1; + repeated string target_dids = 2; +} + +message GetActorFollowsActorsResponse { + repeated string uris = 1; +} + +// - Return follow uris of users who follows user A +// - For `getFollowers` list +message GetFollowersRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetFollowersResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - Return follow uris of users A follows +// - For `getFollows` list +message GetFollowsRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetFollowsResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - Return number of users who follow A +// - For `followersCount` on a profile +message GetFollowersCountRequest { + string actor_did = 1; +} + +message GetFollowersCountResponse { + int32 count = 1; +} + +// - Return number of users followed by A +// - For `followCount` on a profile +message GetFollowsCountRequest { + string actor_did = 1; +} + +message GetFollowsCountResponse { + int32 count = 1; +} + +// +// Likes +// + +// - return like uris where subject uri is subject A +// - `getLikes` list for a post +message GetLikesBySubjectRequest { + string subject_uri = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetLikesBySubjectResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - return like uri for user A on subject B +// - viewer state on posts +message GetLikeByActorAndSubjectRequest { + string actor_did = 1; + string subject_uri = 2; +} + +message GetLikeByActorAndSubjectResponse { + string uri = 1; +} + +// - return recent like uris for user A +// - `getActorLikes` list for a user +message GetActorLikesRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetActorLikesResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - return number of likes on subject A +// - post or feed generator hydration `likeCount` field +message GetLikesCountRequest { + string subject_uri = 1; +} + +message GetLikesCountResponse { + int32 count = 1; +} + +// +// Reposts +// + +// - return repost uris where subject uri is subject A +// - `getReposts` list for a post +message GetRepostsBySubjectRequest { + string subject_uri = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetRepostsBySubjectResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - return repost uri for user A on subject B +// - viewer state on posts +message GetRepostByActorAndSubjectRequest { + string actor_did = 1; + string subject_uri = 2; +} + +message GetRepostByActorAndSubjectResponse { + string uri = 1; +} + +// - return recent repost uris for user A +// - `getActorReposts` list for a user +message GetActorRepostsRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetActorRepostsResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - return number of reposts on subject A +// - post or feed generator hydration `repostCount` field +message GetRepostsCountRequest { + string subject_uri = 1; +} + +message GetRepostsCountResponse { + int32 count = 1; +} + +// +// Profile +// + +// - return profile record for dids A, B, C… +// - profile hydration +// - should this include handles? apply repo takedown? +message GetProfilesRequest { + repeated string dids = 1; +} + +message GetProfilesResponse { + repeated bytes records = 1; +} + +// - return handle for dids A, B, C… +// - profile hydration +message GetHandlesRequest { + repeated string dids = 1; +} + +message GetHandlesResponse { + repeated string handles = 1; +} + +// - return did for handle A +// - `resolveHandle` +// - answering queries where the query param is a handle +message GetDidsByHandlesRequest { + repeated string handles = 1; +} + +message GetDidsByHandlesResponse { + repeated string dids = 1; +} + +// +// Lists +// + +// - Return dids of users in list A +// - E.g. to view items in one of your mute lists +message GetListMembersRequest { + string list_uri = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetListMembersResponse { + repeated string dids = 1; + string cursor = 2; +} + +// - Return list uris where user A in list B, C, D… +// - Used in thread reply gates +message GetListMembershipRequest { + string actor_did = 1; + repeated string list_uris = 2; +} + +message GetListMembershipResponse { + repeated string listitem_uris = 1; +} + +// - Return list record for list uri +// - list view hydration +message GetListRequest { + string list_uri = 1; +} + +message GetListResponse { + bytes record = 1; +} + +// - Return number of items in list A +// - For aggregate +message GetListCountRequest { + string list_uri = 1; +} + +message GetListCountResponse { + int32 count = 1; +} + +// +// Mutes +// + +// - return boolean if user A has muted user B +// - hydrating mute state onto profiles +message GetActorMutesActorRequest { + string actor_did = 1; + string target_did = 2; +} + +message GetActorMutesActorResponse { + bool muted = 1; +} + +// - return list of user dids of users who A mutes +// - `getMutes` +message GetMutesRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetMutesResponse { + repeated string dids = 1; + string cursor = 2; +} + +// +// Mutelists +// + +// - return list uri of *any* list through which user A has muted user B +// - hydrating mute state onto profiles +// - note: we only need *one* uri even if a user is muted by multiple lists +message GetActorMutesActorViaListRequest { + string actor_did = 1; + string target_did = 2; +} + +message GetActorMutesActorViaListResponse { + string list_uri = 1; +} + +// - return boolean if actor A has subscribed to mutelist B +// - list view hydration +message GetMutelistSubscriptionRequest { + string actor_did = 1; + string list_uri = 2; +} + +message GetMutelistSubscriptionResponse { + bool subscribed = 1; +} + +// - return list of list uris of mutelists that A subscribes to +// - `getListMutes` +message GetMutelistSubscriptionsRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetMutelistSubscriptionsResponse { + repeated string list_uris = 1; + string cursor = 2; +} + +// +// Blocks +// + +// - Return block uri if there is a block between users A & B (bidirectional) +// - hydrating (& actioning) block state on profiles +// - handling 3rd party blocks +message GetBidirectionalBlockRequest { + string actor_did = 1; + string target_did = 2; +} + +message GetBidirectionalBlockResponse { + string block_uri = 1; +} + +// - Return list of block uris and user dids of users who A blocks +// - `getBlocks` +message GetBlocksRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetBlocksResponse { + repeated string block_uris = 1; + string cursor = 2; +} + +// +// Blocklists +// + +// - Return list uri of ***any*** list through which users A & B have a block (bidirectional) +// - hydrating (& actioning) block state on profiles +// - handling 3rd party blocks +message GetBidirectionalBlockViaListRequest { + string actor_did = 1; + string target_did = 2; +} + +message GetBidirectionalBlockViaListResponse { + string list_uri = 1; +} + +// - return boolean if user A has subscribed to blocklist B +// - list view hydration +message GetBlocklistSubscriptionRequest { + string actor_did = 1; + string list_uri = 2; +} + +message GetBlocklistSubscriptionResponse { + bool subscribed = 1; +} + +// - return list of list uris of Blockslists that A subscribes to +// - `getListBlocks` +message GetBlocklistSubscriptionsRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetBlocklistSubscriptionsResponse { + repeated string list_uris = 1; + string cursor = 2; +} + +// +// Notifications +// + +// - list recent notifications for a user +// - notifications should include a uri for the record that caused the notif & a “reason” for the notification (reply, like, quotepost, etc) +// - this should include both read & unread notifs +message GetNotificationsRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message Notification { + string uri = 1; + string reason = 2; + google.protobuf.Timestamp timestamp = 3; +} + +message GetNotificationsResponse { + repeated Notification notifications = 1; + string cursor = 2; +} + +// - update a user’s “last seen time” +// - `updateSeen` +message UpdateNotificationSeenRequest { + string actor_did = 1; + google.protobuf.Timestamp timestamp = 2; +} + +message UpdateNotificationSeenResponse {} + +// - get a user’s “last seen time” +// - hydrating read state onto notifications +message GetNotificationSeenRequest { + string actor_did = 1; +} + +message GetNotificationSeenResponse { + google.protobuf.Timestamp timestamp = 1; +} + +// - get a count of all unread notifications (notifications after `updateSeen`) +// - `getUnreadCount` +message GetUnreadNotificationCountRequest { + string actor_did = 1; +} + +message GetUnreadNotificationCountResponse { + int32 count = 1; +} + +// +// FeedGenerators +// + +// - Returns feed generator records with uris A, B, C… +// - hydration of feed generator views +message GetFeedGeneratorsRequest { + repeated string uris = 1; +} + +message GetFeedGeneratorsResponse { + repeated bytes records = 1; +} + +// - Return uris of feed generator records created by user A +// - `getActorFeeds` +message GetActorFeedsRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetActorFeedsResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - Returns a list of suggested feed generator uris for an actor, paginated +// - `getSuggestedFeeds` +// - This is currently just hardcoded in the Appview DB +message GetSuggestedFeedsRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetSuggestedFeedsResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - Returns feed generator validity and online status with uris A, B, C… +// - Not currently being used, but could be worhthwhile. +message GetFeedGeneratorStatusRequest { + repeated string uris = 1; +} + +message GetFeedGeneratorStatusResponse { + repeated string status = 1; +} + +// +// Feeds +// + +// - Returns recent posts authored by a given DID, paginated +// - `getAuthorFeed` +// - Optionally: filter by if a post is/isn’t a reply and if a post has a media object in it +message GetAuthorFeedRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; + bool replies_only = 4; + bool media_only = 5; +} + +message GetAuthorFeedResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - Returns recent posts authored by users followed by a given DID, paginated +// - `getTimeline` +message GetTimelineRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetTimelineResponse { + repeated string uris = 1; + string cursor = 2; +} + +// - Return recent post uris from users in list A +// - `getListFeed` +// - (This is essentially the same as `getTimeline` but instead of follows of a did, it is list items of a list) +message GetListFeedRequest { + string list_uri = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetListFeedResponse { + repeated string uris = 1; + string cursor = 2; +} + +// +// Threads +// + +// Return posts uris of any replies N levels above or M levels below post A +message GetThreadRequest { + string post_uri = 1; + int32 above = 2; + int32 below = 3; +} + +message GetThreadResponse { + repeated string uris = 1; +} + +// Return threadgate records with uris A, B, C… +message GetThreadgatesRequest { + repeated string uris = 1; +} + +message GetThreadgatesResponse { + repeated bytes records = 1; +} + +// +// Search +// + +// - Return DIDs of actors matching term, paginated +// - `searchActors` skeleton +message SearchActorsRequest { + string term = 1; + int32 limit = 2; + string cursor = 3; +} + +message SearchActorsResponse { + repeated string dids = 1; + string cursor = 2; +} + +// - Return uris of posts matching term, paginated +// - `searchPosts` skeleton +message SearchPostsRequest { + string term = 1; + int32 limit = 2; + string cursor = 3; +} + +message SearchPostsResponse { + repeated string uris = 1; + string cursor = 2; +} + +// +// Suggestions +// + +// - Return DIDs of suggested follows for a user, excluding anyone they already follow +// - `getSuggestions` +message GetSuggestionsRequest { + string actor_did = 1; + int32 limit = 2; + string cursor = 3; +} + +message GetSuggestionsResponse { + repeated string dids = 1; + string cursor = 2; +} + +// +// Posts +// + +// - Return post records with uris A, B, C… +// - All feed hydration +message GetPostsRequest { + repeated string uris = 1; +} + +message GetPostsResponse { + repeated bytes records = 1; +} + +// - Return post reply count with uris A, B, C… +// - All feed hydration +message GetPostReplyCountRequest { + repeated string uris = 1; +} + +message GetPostReplyCountResponse { + repeated int32 counts = 1; +} + +// +// Labels +// + +// - Get all labels on a subjects A, B, C (uri or did) issued by dids D, E, F… +// - label hydration on nearly every view +message GetLabelsRequest { + repeated string subjects = 1; + repeated string issuers = 2; +} + +message GetLabelsResponse { + repeated bytes records = 1; +} + +// +// Sync +// + +// - Latest repo rev of user w/ DID +// - Read-after-write header in`getProfile`, `getProfiles`, `getActorLikes`, `getAuthorFeed`, `getListFeed`, `getPostThread`, `getTimeline`. Could it be view dependent? +message GetLatestRevRequest { + string actor_did = 1; +} + +message GetLatestRevResponse { + string rev = 1; +} + +// +// Moderation +// + +// - Return whether blob is taken down given DID and CID +message GetBlobTakedownRequest { + string actor_did = 1; + string cid = 2; +} + +message GetBlobTakedownResponse { + bool taken_down = 1; +} + +// - Update takedown state for actors, records, and blobs +message UpdateTakedownRequest { + string actor_did = 1; + string record_uri = 2; + string blob_cid = 3; + bool taken_down = 4; +} + +message UpdateTakedownResponse {} + +// Ping +message PingRequest {} +message PingResponse {} + +service Service { + // Follows + rpc GetActorFollowsActors(GetActorFollowsActorsRequest) returns (GetActorFollowsActorsResponse); + rpc GetFollowers(GetFollowersRequest) returns (GetFollowersResponse); + rpc GetFollows(GetFollowsRequest) returns (GetFollowsResponse); + rpc GetFollowersCount(GetFollowersCountRequest) returns (GetFollowersCountResponse); + rpc GetFollowsCount(GetFollowsCountRequest) returns (GetFollowsCountResponse); + + // Likes + rpc GetLikesBySubject(GetLikesBySubjectRequest) returns (GetLikesBySubjectResponse); + rpc GetLikeByActorAndSubject(GetLikeByActorAndSubjectRequest) returns (GetLikeByActorAndSubjectResponse); + rpc GetActorLikes(GetActorLikesRequest) returns (GetActorLikesResponse); + rpc GetLikesCount(GetLikesCountRequest) returns (GetLikesCountResponse); + + // Reposts + rpc GetRepostsBySubject(GetRepostsBySubjectRequest) returns (GetRepostsBySubjectResponse); + rpc GetRepostByActorAndSubject(GetRepostByActorAndSubjectRequest) returns (GetRepostByActorAndSubjectResponse); + rpc GetActorReposts(GetActorRepostsRequest) returns (GetActorRepostsResponse); + rpc GetRepostsCount(GetRepostsCountRequest) returns (GetRepostsCountResponse); + + // Profile + rpc GetProfiles(GetProfilesRequest) returns (GetProfilesResponse); + rpc GetHandles(GetHandlesRequest) returns (GetHandlesResponse); + rpc GetDidsByHandles(GetDidsByHandlesRequest) returns (GetDidsByHandlesResponse); + + // Lists + rpc GetListMembers(GetListMembersRequest) returns (GetListMembersResponse); + rpc GetListMembership(GetListMembershipRequest) returns (GetListMembershipResponse); + rpc GetList(GetListRequest) returns (GetListResponse); + rpc GetListCount(GetListCountRequest) returns (GetListCountResponse); + + // Mutes + rpc GetActorMutesActor(GetActorMutesActorRequest) returns (GetActorMutesActorResponse); + rpc GetMutes(GetMutesRequest) returns (GetMutesResponse); + + // Mutelists + rpc GetActorMutesActorViaList(GetActorMutesActorViaListRequest) returns (GetActorMutesActorViaListResponse); + rpc GetMutelistSubscription(GetMutelistSubscriptionRequest) returns (GetMutelistSubscriptionResponse); + rpc GetMutelistSubscriptions(GetMutelistSubscriptionsRequest) returns (GetMutelistSubscriptionsResponse); + + // Blocks + rpc GetBidirectionalBlock(GetBidirectionalBlockRequest) returns (GetBidirectionalBlockResponse); + rpc GetBlocks(GetBlocksRequest) returns (GetBlocksResponse); + + // Blocklists + rpc GetBidirectionalBlockViaList(GetBidirectionalBlockViaListRequest) returns (GetBidirectionalBlockViaListResponse); + rpc GetBlocklistSubscription(GetBlocklistSubscriptionRequest) returns (GetBlocklistSubscriptionResponse); + rpc GetBlocklistSubscriptions(GetBlocklistSubscriptionsRequest) returns (GetBlocklistSubscriptionsResponse); + + // Notifications + rpc GetNotifications(GetNotificationsRequest) returns (GetNotificationsResponse); + rpc GetNotificationSeen(GetNotificationSeenRequest) returns (GetNotificationSeenResponse); + rpc GetUnreadNotificationCount(GetUnreadNotificationCountRequest) returns (GetUnreadNotificationCountResponse); + rpc UpdateNotificationSeen(UpdateNotificationSeenRequest) returns (UpdateNotificationSeenResponse); + + // FeedGenerators + rpc GetFeedGenerators(GetFeedGeneratorsRequest) returns (GetFeedGeneratorsResponse); + rpc GetActorFeeds(GetActorFeedsRequest) returns (GetActorFeedsResponse); + rpc GetSuggestedFeeds(GetSuggestedFeedsRequest) returns (GetSuggestedFeedsResponse); + rpc GetFeedGeneratorStatus(GetFeedGeneratorStatusRequest) returns (GetFeedGeneratorStatusResponse); + + // Feeds + rpc GetAuthorFeed(GetAuthorFeedRequest) returns (GetAuthorFeedResponse); + rpc GetTimeline(GetTimelineRequest) returns (GetTimelineResponse); + rpc GetListFeed(GetListFeedRequest) returns (GetListFeedResponse); + + // Threads + rpc GetThread(GetThreadRequest) returns (GetThreadResponse); + rpc GetThreadgates(GetThreadgatesRequest) returns (GetThreadgatesResponse); + + // Search + rpc SearchActors(SearchActorsRequest) returns (SearchActorsResponse); + rpc SearchPosts(SearchPostsRequest) returns (SearchPostsResponse); + + // Suggestions + rpc GetSuggestions(GetSuggestionsRequest) returns (GetSuggestionsResponse); + + // Posts + rpc GetPosts(GetPostsRequest) returns (GetPostsResponse); + rpc GetPostReplyCount(GetPostReplyCountRequest) returns (GetPostReplyCountResponse); + + // Labels + rpc GetLabels(GetLabelsRequest) returns (GetLabelsResponse); + + // Sync + rpc GetLatestRev(GetLatestRevRequest) returns (GetLatestRevResponse); + + // Moderation + rpc GetBlobTakedown(GetBlobTakedownRequest) returns (GetBlobTakedownResponse); + rpc UpdateTakedown(UpdateTakedownRequest) returns (UpdateTakedownResponse); + + // Ping + rpc Ping(PingRequest) returns (PingResponse); +} diff --git a/packages/bsky/src/data-plane/bsky_connect.ts b/packages/bsky/src/data-plane/bsky_connect.ts new file mode 100644 index 00000000000..d76eae6f599 --- /dev/null +++ b/packages/bsky/src/data-plane/bsky_connect.ts @@ -0,0 +1,534 @@ +// @generated by protoc-gen-connect-es v1.1.4 with parameter "target=ts" +// @generated from file bsky.proto (package bsky, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlocksRequest, GetBlocksResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorsRequest, GetFeedGeneratorsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersCountRequest, GetFollowersCountResponse, GetFollowersRequest, GetFollowersResponse, GetFollowsCountRequest, GetFollowsCountResponse, GetFollowsRequest, GetFollowsResponse, GetHandlesRequest, GetHandlesResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeByActorAndSubjectRequest, GetLikeByActorAndSubjectResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetLikesCountRequest, GetLikesCountResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListRequest, GetListResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostReplyCountRequest, GetPostReplyCountResponse, GetPostsRequest, GetPostsResponse, GetProfilesRequest, GetProfilesResponse, GetRepostByActorAndSubjectRequest, GetRepostByActorAndSubjectResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetRepostsCountRequest, GetRepostsCountResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetSuggestionsRequest, GetSuggestionsResponse, GetThreadgatesRequest, GetThreadgatesResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchPostsRequest, SearchPostsResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse, UpdateTakedownRequest, UpdateTakedownResponse } from "./bsky_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * @generated from service bsky.Service + */ +export const Service = { + typeName: "bsky.Service", + methods: { + /** + * Follows + * + * @generated from rpc bsky.Service.GetActorFollowsActors + */ + getActorFollowsActors: { + name: "GetActorFollowsActors", + I: GetActorFollowsActorsRequest, + O: GetActorFollowsActorsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetFollowers + */ + getFollowers: { + name: "GetFollowers", + I: GetFollowersRequest, + O: GetFollowersResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetFollows + */ + getFollows: { + name: "GetFollows", + I: GetFollowsRequest, + O: GetFollowsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetFollowersCount + */ + getFollowersCount: { + name: "GetFollowersCount", + I: GetFollowersCountRequest, + O: GetFollowersCountResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetFollowsCount + */ + getFollowsCount: { + name: "GetFollowsCount", + I: GetFollowsCountRequest, + O: GetFollowsCountResponse, + kind: MethodKind.Unary, + }, + /** + * Likes + * + * @generated from rpc bsky.Service.GetLikesBySubject + */ + getLikesBySubject: { + name: "GetLikesBySubject", + I: GetLikesBySubjectRequest, + O: GetLikesBySubjectResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetLikeByActorAndSubject + */ + getLikeByActorAndSubject: { + name: "GetLikeByActorAndSubject", + I: GetLikeByActorAndSubjectRequest, + O: GetLikeByActorAndSubjectResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetActorLikes + */ + getActorLikes: { + name: "GetActorLikes", + I: GetActorLikesRequest, + O: GetActorLikesResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetLikesCount + */ + getLikesCount: { + name: "GetLikesCount", + I: GetLikesCountRequest, + O: GetLikesCountResponse, + kind: MethodKind.Unary, + }, + /** + * Reposts + * + * @generated from rpc bsky.Service.GetRepostsBySubject + */ + getRepostsBySubject: { + name: "GetRepostsBySubject", + I: GetRepostsBySubjectRequest, + O: GetRepostsBySubjectResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetRepostByActorAndSubject + */ + getRepostByActorAndSubject: { + name: "GetRepostByActorAndSubject", + I: GetRepostByActorAndSubjectRequest, + O: GetRepostByActorAndSubjectResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetActorReposts + */ + getActorReposts: { + name: "GetActorReposts", + I: GetActorRepostsRequest, + O: GetActorRepostsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetRepostsCount + */ + getRepostsCount: { + name: "GetRepostsCount", + I: GetRepostsCountRequest, + O: GetRepostsCountResponse, + kind: MethodKind.Unary, + }, + /** + * Profile + * + * @generated from rpc bsky.Service.GetProfiles + */ + getProfiles: { + name: "GetProfiles", + I: GetProfilesRequest, + O: GetProfilesResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetHandles + */ + getHandles: { + name: "GetHandles", + I: GetHandlesRequest, + O: GetHandlesResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetDidsByHandles + */ + getDidsByHandles: { + name: "GetDidsByHandles", + I: GetDidsByHandlesRequest, + O: GetDidsByHandlesResponse, + kind: MethodKind.Unary, + }, + /** + * Lists + * + * @generated from rpc bsky.Service.GetListMembers + */ + getListMembers: { + name: "GetListMembers", + I: GetListMembersRequest, + O: GetListMembersResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetListMembership + */ + getListMembership: { + name: "GetListMembership", + I: GetListMembershipRequest, + O: GetListMembershipResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetList + */ + getList: { + name: "GetList", + I: GetListRequest, + O: GetListResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetListCount + */ + getListCount: { + name: "GetListCount", + I: GetListCountRequest, + O: GetListCountResponse, + kind: MethodKind.Unary, + }, + /** + * Mutes + * + * @generated from rpc bsky.Service.GetActorMutesActor + */ + getActorMutesActor: { + name: "GetActorMutesActor", + I: GetActorMutesActorRequest, + O: GetActorMutesActorResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetMutes + */ + getMutes: { + name: "GetMutes", + I: GetMutesRequest, + O: GetMutesResponse, + kind: MethodKind.Unary, + }, + /** + * Mutelists + * + * @generated from rpc bsky.Service.GetActorMutesActorViaList + */ + getActorMutesActorViaList: { + name: "GetActorMutesActorViaList", + I: GetActorMutesActorViaListRequest, + O: GetActorMutesActorViaListResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetMutelistSubscription + */ + getMutelistSubscription: { + name: "GetMutelistSubscription", + I: GetMutelistSubscriptionRequest, + O: GetMutelistSubscriptionResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetMutelistSubscriptions + */ + getMutelistSubscriptions: { + name: "GetMutelistSubscriptions", + I: GetMutelistSubscriptionsRequest, + O: GetMutelistSubscriptionsResponse, + kind: MethodKind.Unary, + }, + /** + * Blocks + * + * @generated from rpc bsky.Service.GetBidirectionalBlock + */ + getBidirectionalBlock: { + name: "GetBidirectionalBlock", + I: GetBidirectionalBlockRequest, + O: GetBidirectionalBlockResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetBlocks + */ + getBlocks: { + name: "GetBlocks", + I: GetBlocksRequest, + O: GetBlocksResponse, + kind: MethodKind.Unary, + }, + /** + * Blocklists + * + * @generated from rpc bsky.Service.GetBidirectionalBlockViaList + */ + getBidirectionalBlockViaList: { + name: "GetBidirectionalBlockViaList", + I: GetBidirectionalBlockViaListRequest, + O: GetBidirectionalBlockViaListResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetBlocklistSubscription + */ + getBlocklistSubscription: { + name: "GetBlocklistSubscription", + I: GetBlocklistSubscriptionRequest, + O: GetBlocklistSubscriptionResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetBlocklistSubscriptions + */ + getBlocklistSubscriptions: { + name: "GetBlocklistSubscriptions", + I: GetBlocklistSubscriptionsRequest, + O: GetBlocklistSubscriptionsResponse, + kind: MethodKind.Unary, + }, + /** + * Notifications + * + * @generated from rpc bsky.Service.GetNotifications + */ + getNotifications: { + name: "GetNotifications", + I: GetNotificationsRequest, + O: GetNotificationsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetNotificationSeen + */ + getNotificationSeen: { + name: "GetNotificationSeen", + I: GetNotificationSeenRequest, + O: GetNotificationSeenResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetUnreadNotificationCount + */ + getUnreadNotificationCount: { + name: "GetUnreadNotificationCount", + I: GetUnreadNotificationCountRequest, + O: GetUnreadNotificationCountResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.UpdateNotificationSeen + */ + updateNotificationSeen: { + name: "UpdateNotificationSeen", + I: UpdateNotificationSeenRequest, + O: UpdateNotificationSeenResponse, + kind: MethodKind.Unary, + }, + /** + * FeedGenerators + * + * @generated from rpc bsky.Service.GetFeedGenerators + */ + getFeedGenerators: { + name: "GetFeedGenerators", + I: GetFeedGeneratorsRequest, + O: GetFeedGeneratorsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetActorFeeds + */ + getActorFeeds: { + name: "GetActorFeeds", + I: GetActorFeedsRequest, + O: GetActorFeedsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetSuggestedFeeds + */ + getSuggestedFeeds: { + name: "GetSuggestedFeeds", + I: GetSuggestedFeedsRequest, + O: GetSuggestedFeedsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetFeedGeneratorStatus + */ + getFeedGeneratorStatus: { + name: "GetFeedGeneratorStatus", + I: GetFeedGeneratorStatusRequest, + O: GetFeedGeneratorStatusResponse, + kind: MethodKind.Unary, + }, + /** + * Feeds + * + * @generated from rpc bsky.Service.GetAuthorFeed + */ + getAuthorFeed: { + name: "GetAuthorFeed", + I: GetAuthorFeedRequest, + O: GetAuthorFeedResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetTimeline + */ + getTimeline: { + name: "GetTimeline", + I: GetTimelineRequest, + O: GetTimelineResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetListFeed + */ + getListFeed: { + name: "GetListFeed", + I: GetListFeedRequest, + O: GetListFeedResponse, + kind: MethodKind.Unary, + }, + /** + * Threads + * + * @generated from rpc bsky.Service.GetThread + */ + getThread: { + name: "GetThread", + I: GetThreadRequest, + O: GetThreadResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetThreadgates + */ + getThreadgates: { + name: "GetThreadgates", + I: GetThreadgatesRequest, + O: GetThreadgatesResponse, + kind: MethodKind.Unary, + }, + /** + * Search + * + * @generated from rpc bsky.Service.SearchActors + */ + searchActors: { + name: "SearchActors", + I: SearchActorsRequest, + O: SearchActorsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.SearchPosts + */ + searchPosts: { + name: "SearchPosts", + I: SearchPostsRequest, + O: SearchPostsResponse, + kind: MethodKind.Unary, + }, + /** + * Suggestions + * + * @generated from rpc bsky.Service.GetSuggestions + */ + getSuggestions: { + name: "GetSuggestions", + I: GetSuggestionsRequest, + O: GetSuggestionsResponse, + kind: MethodKind.Unary, + }, + /** + * Posts + * + * @generated from rpc bsky.Service.GetPosts + */ + getPosts: { + name: "GetPosts", + I: GetPostsRequest, + O: GetPostsResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.GetPostReplyCount + */ + getPostReplyCount: { + name: "GetPostReplyCount", + I: GetPostReplyCountRequest, + O: GetPostReplyCountResponse, + kind: MethodKind.Unary, + }, + /** + * Labels + * + * @generated from rpc bsky.Service.GetLabels + */ + getLabels: { + name: "GetLabels", + I: GetLabelsRequest, + O: GetLabelsResponse, + kind: MethodKind.Unary, + }, + /** + * Sync + * + * @generated from rpc bsky.Service.GetLatestRev + */ + getLatestRev: { + name: "GetLatestRev", + I: GetLatestRevRequest, + O: GetLatestRevResponse, + kind: MethodKind.Unary, + }, + /** + * Moderation + * + * @generated from rpc bsky.Service.GetBlobTakedown + */ + getBlobTakedown: { + name: "GetBlobTakedown", + I: GetBlobTakedownRequest, + O: GetBlobTakedownResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc bsky.Service.UpdateTakedown + */ + updateTakedown: { + name: "UpdateTakedown", + I: UpdateTakedownRequest, + O: UpdateTakedownResponse, + kind: MethodKind.Unary, + }, + /** + * Ping + * + * @generated from rpc bsky.Service.Ping + */ + ping: { + name: "Ping", + I: PingRequest, + O: PingResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/packages/bsky/src/data-plane/bsky_pb.ts b/packages/bsky/src/data-plane/bsky_pb.ts new file mode 100644 index 00000000000..600086aa596 --- /dev/null +++ b/packages/bsky/src/data-plane/bsky_pb.ts @@ -0,0 +1,4598 @@ +// @generated by protoc-gen-es v1.5.0 with parameter "target=ts" +// @generated from file bsky.proto (package bsky, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * - Return follow uris where user A follows users B, C, D, … + * - E.g. for viewer state on `getProfiles` + * + * @generated from message bsky.GetActorFollowsActorsRequest + */ +export class GetActorFollowsActorsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: repeated string target_dids = 2; + */ + targetDids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorFollowsActorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorFollowsActorsRequest | PlainMessage | undefined, b: GetActorFollowsActorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorFollowsActorsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetActorFollowsActorsResponse + */ +export class GetActorFollowsActorsResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorFollowsActorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorFollowsActorsResponse | PlainMessage | undefined, b: GetActorFollowsActorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorFollowsActorsResponse, a, b); + } +} + +/** + * - Return follow uris of users who follows user A + * - For `getFollowers` list + * + * @generated from message bsky.GetFollowersRequest + */ +export class GetFollowersRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersRequest { + return new GetFollowersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersRequest { + return new GetFollowersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowersRequest { + return new GetFollowersRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowersRequest | PlainMessage | undefined, b: GetFollowersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowersRequest, a, b); + } +} + +/** + * @generated from message bsky.GetFollowersResponse + */ +export class GetFollowersResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersResponse { + return new GetFollowersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersResponse { + return new GetFollowersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowersResponse { + return new GetFollowersResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowersResponse | PlainMessage | undefined, b: GetFollowersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowersResponse, a, b); + } +} + +/** + * - Return follow uris of users A follows + * - For `getFollows` list + * + * @generated from message bsky.GetFollowsRequest + */ +export class GetFollowsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsRequest { + return new GetFollowsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsRequest { + return new GetFollowsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowsRequest { + return new GetFollowsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowsRequest | PlainMessage | undefined, b: GetFollowsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetFollowsResponse + */ +export class GetFollowsResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsResponse { + return new GetFollowsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsResponse { + return new GetFollowsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowsResponse { + return new GetFollowsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowsResponse | PlainMessage | undefined, b: GetFollowsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowsResponse, a, b); + } +} + +/** + * - Return number of users who follow A + * - For `followersCount` on a profile + * + * @generated from message bsky.GetFollowersCountRequest + */ +export class GetFollowersCountRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowersCountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowersCountRequest | PlainMessage | undefined, b: GetFollowersCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowersCountRequest, a, b); + } +} + +/** + * @generated from message bsky.GetFollowersCountResponse + */ +export class GetFollowersCountResponse extends Message { + /** + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowersCountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowersCountResponse | PlainMessage | undefined, b: GetFollowersCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowersCountResponse, a, b); + } +} + +/** + * - Return number of users followed by A + * - For `followCount` on a profile + * + * @generated from message bsky.GetFollowsCountRequest + */ +export class GetFollowsCountRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowsCountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowsCountRequest | PlainMessage | undefined, b: GetFollowsCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowsCountRequest, a, b); + } +} + +/** + * @generated from message bsky.GetFollowsCountResponse + */ +export class GetFollowsCountResponse extends Message { + /** + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowsCountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowsCountResponse | PlainMessage | undefined, b: GetFollowsCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowsCountResponse, a, b); + } +} + +/** + * - return like uris where subject uri is subject A + * - `getLikes` list for a post + * + * @generated from message bsky.GetLikesBySubjectRequest + */ +export class GetLikesBySubjectRequest extends Message { + /** + * @generated from field: string subject_uri = 1; + */ + subjectUri = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikesBySubjectRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLikesBySubjectRequest | PlainMessage | undefined, b: GetLikesBySubjectRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikesBySubjectRequest, a, b); + } +} + +/** + * @generated from message bsky.GetLikesBySubjectResponse + */ +export class GetLikesBySubjectResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikesBySubjectResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLikesBySubjectResponse | PlainMessage | undefined, b: GetLikesBySubjectResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikesBySubjectResponse, a, b); + } +} + +/** + * - return like uri for user A on subject B + * - viewer state on posts + * + * @generated from message bsky.GetLikeByActorAndSubjectRequest + */ +export class GetLikeByActorAndSubjectRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string subject_uri = 2; + */ + subjectUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikeByActorAndSubjectRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLikeByActorAndSubjectRequest | PlainMessage | undefined, b: GetLikeByActorAndSubjectRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikeByActorAndSubjectRequest, a, b); + } +} + +/** + * @generated from message bsky.GetLikeByActorAndSubjectResponse + */ +export class GetLikeByActorAndSubjectResponse extends Message { + /** + * @generated from field: string uri = 1; + */ + uri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikeByActorAndSubjectResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLikeByActorAndSubjectResponse | PlainMessage | undefined, b: GetLikeByActorAndSubjectResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikeByActorAndSubjectResponse, a, b); + } +} + +/** + * - return recent like uris for user A + * - `getActorLikes` list for a user + * + * @generated from message bsky.GetActorLikesRequest + */ +export class GetActorLikesRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorLikesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorLikesRequest { + return new GetActorLikesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorLikesRequest { + return new GetActorLikesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorLikesRequest { + return new GetActorLikesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorLikesRequest | PlainMessage | undefined, b: GetActorLikesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorLikesRequest, a, b); + } +} + +/** + * @generated from message bsky.GetActorLikesResponse + */ +export class GetActorLikesResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorLikesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorLikesResponse { + return new GetActorLikesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorLikesResponse { + return new GetActorLikesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorLikesResponse { + return new GetActorLikesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorLikesResponse | PlainMessage | undefined, b: GetActorLikesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorLikesResponse, a, b); + } +} + +/** + * - return number of likes on subject A + * - post or feed generator hydration `likeCount` field + * + * @generated from message bsky.GetLikesCountRequest + */ +export class GetLikesCountRequest extends Message { + /** + * @generated from field: string subject_uri = 1; + */ + subjectUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikesCountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesCountRequest { + return new GetLikesCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesCountRequest { + return new GetLikesCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikesCountRequest { + return new GetLikesCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLikesCountRequest | PlainMessage | undefined, b: GetLikesCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikesCountRequest, a, b); + } +} + +/** + * @generated from message bsky.GetLikesCountResponse + */ +export class GetLikesCountResponse extends Message { + /** + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikesCountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesCountResponse { + return new GetLikesCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesCountResponse { + return new GetLikesCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikesCountResponse { + return new GetLikesCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLikesCountResponse | PlainMessage | undefined, b: GetLikesCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikesCountResponse, a, b); + } +} + +/** + * - return repost uris where subject uri is subject A + * - `getReposts` list for a post + * + * @generated from message bsky.GetRepostsBySubjectRequest + */ +export class GetRepostsBySubjectRequest extends Message { + /** + * @generated from field: string subject_uri = 1; + */ + subjectUri = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostsBySubjectRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostsBySubjectRequest | PlainMessage | undefined, b: GetRepostsBySubjectRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostsBySubjectRequest, a, b); + } +} + +/** + * @generated from message bsky.GetRepostsBySubjectResponse + */ +export class GetRepostsBySubjectResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostsBySubjectResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostsBySubjectResponse | PlainMessage | undefined, b: GetRepostsBySubjectResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostsBySubjectResponse, a, b); + } +} + +/** + * - return repost uri for user A on subject B + * - viewer state on posts + * + * @generated from message bsky.GetRepostByActorAndSubjectRequest + */ +export class GetRepostByActorAndSubjectRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string subject_uri = 2; + */ + subjectUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostByActorAndSubjectRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostByActorAndSubjectRequest | PlainMessage | undefined, b: GetRepostByActorAndSubjectRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostByActorAndSubjectRequest, a, b); + } +} + +/** + * @generated from message bsky.GetRepostByActorAndSubjectResponse + */ +export class GetRepostByActorAndSubjectResponse extends Message { + /** + * @generated from field: string uri = 1; + */ + uri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostByActorAndSubjectResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostByActorAndSubjectResponse | PlainMessage | undefined, b: GetRepostByActorAndSubjectResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostByActorAndSubjectResponse, a, b); + } +} + +/** + * - return recent repost uris for user A + * - `getActorReposts` list for a user + * + * @generated from message bsky.GetActorRepostsRequest + */ +export class GetActorRepostsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorRepostsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorRepostsRequest | PlainMessage | undefined, b: GetActorRepostsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorRepostsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetActorRepostsResponse + */ +export class GetActorRepostsResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorRepostsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorRepostsResponse | PlainMessage | undefined, b: GetActorRepostsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorRepostsResponse, a, b); + } +} + +/** + * - return number of reposts on subject A + * - post or feed generator hydration `repostCount` field + * + * @generated from message bsky.GetRepostsCountRequest + */ +export class GetRepostsCountRequest extends Message { + /** + * @generated from field: string subject_uri = 1; + */ + subjectUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostsCountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostsCountRequest | PlainMessage | undefined, b: GetRepostsCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostsCountRequest, a, b); + } +} + +/** + * @generated from message bsky.GetRepostsCountResponse + */ +export class GetRepostsCountResponse extends Message { + /** + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostsCountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostsCountResponse | PlainMessage | undefined, b: GetRepostsCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostsCountResponse, a, b); + } +} + +/** + * - return profile record for dids A, B, C… + * - profile hydration + * - should this include handles? apply repo takedown? + * + * @generated from message bsky.GetProfilesRequest + */ +export class GetProfilesRequest extends Message { + /** + * @generated from field: repeated string dids = 1; + */ + dids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetProfilesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetProfilesRequest { + return new GetProfilesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetProfilesRequest { + return new GetProfilesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetProfilesRequest { + return new GetProfilesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetProfilesRequest | PlainMessage | undefined, b: GetProfilesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetProfilesRequest, a, b); + } +} + +/** + * @generated from message bsky.GetProfilesResponse + */ +export class GetProfilesResponse extends Message { + /** + * @generated from field: repeated bytes records = 1; + */ + records: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetProfilesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetProfilesResponse { + return new GetProfilesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetProfilesResponse { + return new GetProfilesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetProfilesResponse { + return new GetProfilesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetProfilesResponse | PlainMessage | undefined, b: GetProfilesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetProfilesResponse, a, b); + } +} + +/** + * - return handle for dids A, B, C… + * - profile hydration + * + * @generated from message bsky.GetHandlesRequest + */ +export class GetHandlesRequest extends Message { + /** + * @generated from field: repeated string dids = 1; + */ + dids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetHandlesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetHandlesRequest { + return new GetHandlesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetHandlesRequest { + return new GetHandlesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetHandlesRequest { + return new GetHandlesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetHandlesRequest | PlainMessage | undefined, b: GetHandlesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetHandlesRequest, a, b); + } +} + +/** + * @generated from message bsky.GetHandlesResponse + */ +export class GetHandlesResponse extends Message { + /** + * @generated from field: repeated string handles = 1; + */ + handles: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetHandlesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "handles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetHandlesResponse { + return new GetHandlesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetHandlesResponse { + return new GetHandlesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetHandlesResponse { + return new GetHandlesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetHandlesResponse | PlainMessage | undefined, b: GetHandlesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetHandlesResponse, a, b); + } +} + +/** + * - return did for handle A + * - `resolveHandle` + * - answering queries where the query param is a handle + * + * @generated from message bsky.GetDidsByHandlesRequest + */ +export class GetDidsByHandlesRequest extends Message { + /** + * @generated from field: repeated string handles = 1; + */ + handles: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetDidsByHandlesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "handles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetDidsByHandlesRequest | PlainMessage | undefined, b: GetDidsByHandlesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDidsByHandlesRequest, a, b); + } +} + +/** + * @generated from message bsky.GetDidsByHandlesResponse + */ +export class GetDidsByHandlesResponse extends Message { + /** + * @generated from field: repeated string dids = 1; + */ + dids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetDidsByHandlesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetDidsByHandlesResponse | PlainMessage | undefined, b: GetDidsByHandlesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDidsByHandlesResponse, a, b); + } +} + +/** + * - Return dids of users in list A + * - E.g. to view items in one of your mute lists + * + * @generated from message bsky.GetListMembersRequest + */ +export class GetListMembersRequest extends Message { + /** + * @generated from field: string list_uri = 1; + */ + listUri = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListMembersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembersRequest { + return new GetListMembersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembersRequest { + return new GetListMembersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListMembersRequest { + return new GetListMembersRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetListMembersRequest | PlainMessage | undefined, b: GetListMembersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListMembersRequest, a, b); + } +} + +/** + * @generated from message bsky.GetListMembersResponse + */ +export class GetListMembersResponse extends Message { + /** + * @generated from field: repeated string dids = 1; + */ + dids: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListMembersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembersResponse { + return new GetListMembersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembersResponse { + return new GetListMembersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListMembersResponse { + return new GetListMembersResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetListMembersResponse | PlainMessage | undefined, b: GetListMembersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListMembersResponse, a, b); + } +} + +/** + * - Return list uris where user A in list B, C, D… + * - Used in thread reply gates + * + * @generated from message bsky.GetListMembershipRequest + */ +export class GetListMembershipRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: repeated string list_uris = 2; + */ + listUris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListMembershipRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembershipRequest { + return new GetListMembershipRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembershipRequest { + return new GetListMembershipRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListMembershipRequest { + return new GetListMembershipRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetListMembershipRequest | PlainMessage | undefined, b: GetListMembershipRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListMembershipRequest, a, b); + } +} + +/** + * @generated from message bsky.GetListMembershipResponse + */ +export class GetListMembershipResponse extends Message { + /** + * @generated from field: repeated string listitem_uris = 1; + */ + listitemUris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListMembershipResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "listitem_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembershipResponse { + return new GetListMembershipResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembershipResponse { + return new GetListMembershipResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListMembershipResponse { + return new GetListMembershipResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetListMembershipResponse | PlainMessage | undefined, b: GetListMembershipResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListMembershipResponse, a, b); + } +} + +/** + * - Return list record for list uri + * - list view hydration + * + * @generated from message bsky.GetListRequest + */ +export class GetListRequest extends Message { + /** + * @generated from field: string list_uri = 1; + */ + listUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListRequest { + return new GetListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListRequest { + return new GetListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListRequest { + return new GetListRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetListRequest | PlainMessage | undefined, b: GetListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListRequest, a, b); + } +} + +/** + * @generated from message bsky.GetListResponse + */ +export class GetListResponse extends Message { + /** + * @generated from field: bytes record = 1; + */ + record = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "record", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListResponse { + return new GetListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListResponse { + return new GetListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListResponse { + return new GetListResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetListResponse | PlainMessage | undefined, b: GetListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListResponse, a, b); + } +} + +/** + * - Return number of items in list A + * - For aggregate + * + * @generated from message bsky.GetListCountRequest + */ +export class GetListCountRequest extends Message { + /** + * @generated from field: string list_uri = 1; + */ + listUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListCountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListCountRequest { + return new GetListCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListCountRequest { + return new GetListCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListCountRequest { + return new GetListCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetListCountRequest | PlainMessage | undefined, b: GetListCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListCountRequest, a, b); + } +} + +/** + * @generated from message bsky.GetListCountResponse + */ +export class GetListCountResponse extends Message { + /** + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListCountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListCountResponse { + return new GetListCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListCountResponse { + return new GetListCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListCountResponse { + return new GetListCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetListCountResponse | PlainMessage | undefined, b: GetListCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListCountResponse, a, b); + } +} + +/** + * - return boolean if user A has muted user B + * - hydrating mute state onto profiles + * + * @generated from message bsky.GetActorMutesActorRequest + */ +export class GetActorMutesActorRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string target_did = 2; + */ + targetDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorMutesActorRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorMutesActorRequest | PlainMessage | undefined, b: GetActorMutesActorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorMutesActorRequest, a, b); + } +} + +/** + * @generated from message bsky.GetActorMutesActorResponse + */ +export class GetActorMutesActorResponse extends Message { + /** + * @generated from field: bool muted = 1; + */ + muted = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorMutesActorResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorMutesActorResponse | PlainMessage | undefined, b: GetActorMutesActorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorMutesActorResponse, a, b); + } +} + +/** + * - return list of user dids of users who A mutes + * - `getMutes` + * + * @generated from message bsky.GetMutesRequest + */ +export class GetMutesRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutesRequest { + return new GetMutesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutesRequest { + return new GetMutesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutesRequest { + return new GetMutesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetMutesRequest | PlainMessage | undefined, b: GetMutesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutesRequest, a, b); + } +} + +/** + * @generated from message bsky.GetMutesResponse + */ +export class GetMutesResponse extends Message { + /** + * @generated from field: repeated string dids = 1; + */ + dids: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutesResponse { + return new GetMutesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutesResponse { + return new GetMutesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutesResponse { + return new GetMutesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetMutesResponse | PlainMessage | undefined, b: GetMutesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutesResponse, a, b); + } +} + +/** + * - return list uri of *any* list through which user A has muted user B + * - hydrating mute state onto profiles + * - note: we only need *one* uri even if a user is muted by multiple lists + * + * @generated from message bsky.GetActorMutesActorViaListRequest + */ +export class GetActorMutesActorViaListRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string target_did = 2; + */ + targetDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorMutesActorViaListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorMutesActorViaListRequest | PlainMessage | undefined, b: GetActorMutesActorViaListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorMutesActorViaListRequest, a, b); + } +} + +/** + * @generated from message bsky.GetActorMutesActorViaListResponse + */ +export class GetActorMutesActorViaListResponse extends Message { + /** + * @generated from field: string list_uri = 1; + */ + listUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorMutesActorViaListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorMutesActorViaListResponse | PlainMessage | undefined, b: GetActorMutesActorViaListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorMutesActorViaListResponse, a, b); + } +} + +/** + * - return boolean if actor A has subscribed to mutelist B + * - list view hydration + * + * @generated from message bsky.GetMutelistSubscriptionRequest + */ +export class GetMutelistSubscriptionRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string list_uri = 2; + */ + listUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutelistSubscriptionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetMutelistSubscriptionRequest | PlainMessage | undefined, b: GetMutelistSubscriptionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutelistSubscriptionRequest, a, b); + } +} + +/** + * @generated from message bsky.GetMutelistSubscriptionResponse + */ +export class GetMutelistSubscriptionResponse extends Message { + /** + * @generated from field: bool subscribed = 1; + */ + subscribed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutelistSubscriptionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subscribed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetMutelistSubscriptionResponse | PlainMessage | undefined, b: GetMutelistSubscriptionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutelistSubscriptionResponse, a, b); + } +} + +/** + * - return list of list uris of mutelists that A subscribes to + * - `getListMutes` + * + * @generated from message bsky.GetMutelistSubscriptionsRequest + */ +export class GetMutelistSubscriptionsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutelistSubscriptionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetMutelistSubscriptionsRequest | PlainMessage | undefined, b: GetMutelistSubscriptionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutelistSubscriptionsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetMutelistSubscriptionsResponse + */ +export class GetMutelistSubscriptionsResponse extends Message { + /** + * @generated from field: repeated string list_uris = 1; + */ + listUris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutelistSubscriptionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetMutelistSubscriptionsResponse | PlainMessage | undefined, b: GetMutelistSubscriptionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutelistSubscriptionsResponse, a, b); + } +} + +/** + * - Return block uri if there is a block between users A & B (bidirectional) + * - hydrating (& actioning) block state on profiles + * - handling 3rd party blocks + * + * @generated from message bsky.GetBidirectionalBlockRequest + */ +export class GetBidirectionalBlockRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string target_did = 2; + */ + targetDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBidirectionalBlockRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBidirectionalBlockRequest | PlainMessage | undefined, b: GetBidirectionalBlockRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBidirectionalBlockRequest, a, b); + } +} + +/** + * @generated from message bsky.GetBidirectionalBlockResponse + */ +export class GetBidirectionalBlockResponse extends Message { + /** + * @generated from field: string block_uri = 1; + */ + blockUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBidirectionalBlockResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBidirectionalBlockResponse | PlainMessage | undefined, b: GetBidirectionalBlockResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBidirectionalBlockResponse, a, b); + } +} + +/** + * - Return list of block uris and user dids of users who A blocks + * - `getBlocks` + * + * @generated from message bsky.GetBlocksRequest + */ +export class GetBlocksRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocksRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocksRequest { + return new GetBlocksRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocksRequest { + return new GetBlocksRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocksRequest { + return new GetBlocksRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocksRequest | PlainMessage | undefined, b: GetBlocksRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocksRequest, a, b); + } +} + +/** + * @generated from message bsky.GetBlocksResponse + */ +export class GetBlocksResponse extends Message { + /** + * @generated from field: repeated string block_uris = 1; + */ + blockUris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocksResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "block_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocksResponse { + return new GetBlocksResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocksResponse { + return new GetBlocksResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocksResponse { + return new GetBlocksResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocksResponse | PlainMessage | undefined, b: GetBlocksResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocksResponse, a, b); + } +} + +/** + * - Return list uri of ***any*** list through which users A & B have a block (bidirectional) + * - hydrating (& actioning) block state on profiles + * - handling 3rd party blocks + * + * @generated from message bsky.GetBidirectionalBlockViaListRequest + */ +export class GetBidirectionalBlockViaListRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string target_did = 2; + */ + targetDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBidirectionalBlockViaListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBidirectionalBlockViaListRequest | PlainMessage | undefined, b: GetBidirectionalBlockViaListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBidirectionalBlockViaListRequest, a, b); + } +} + +/** + * @generated from message bsky.GetBidirectionalBlockViaListResponse + */ +export class GetBidirectionalBlockViaListResponse extends Message { + /** + * @generated from field: string list_uri = 1; + */ + listUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBidirectionalBlockViaListResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBidirectionalBlockViaListResponse | PlainMessage | undefined, b: GetBidirectionalBlockViaListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBidirectionalBlockViaListResponse, a, b); + } +} + +/** + * - return boolean if user A has subscribed to blocklist B + * - list view hydration + * + * @generated from message bsky.GetBlocklistSubscriptionRequest + */ +export class GetBlocklistSubscriptionRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string list_uri = 2; + */ + listUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocklistSubscriptionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocklistSubscriptionRequest | PlainMessage | undefined, b: GetBlocklistSubscriptionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocklistSubscriptionRequest, a, b); + } +} + +/** + * @generated from message bsky.GetBlocklistSubscriptionResponse + */ +export class GetBlocklistSubscriptionResponse extends Message { + /** + * @generated from field: bool subscribed = 1; + */ + subscribed = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocklistSubscriptionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subscribed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocklistSubscriptionResponse | PlainMessage | undefined, b: GetBlocklistSubscriptionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocklistSubscriptionResponse, a, b); + } +} + +/** + * - return list of list uris of Blockslists that A subscribes to + * - `getListBlocks` + * + * @generated from message bsky.GetBlocklistSubscriptionsRequest + */ +export class GetBlocklistSubscriptionsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocklistSubscriptionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocklistSubscriptionsRequest | PlainMessage | undefined, b: GetBlocklistSubscriptionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocklistSubscriptionsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetBlocklistSubscriptionsResponse + */ +export class GetBlocklistSubscriptionsResponse extends Message { + /** + * @generated from field: repeated string list_uris = 1; + */ + listUris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocklistSubscriptionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocklistSubscriptionsResponse | PlainMessage | undefined, b: GetBlocklistSubscriptionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocklistSubscriptionsResponse, a, b); + } +} + +/** + * - list recent notifications for a user + * - notifications should include a uri for the record that caused the notif & a “reason” for the notification (reply, like, quotepost, etc) + * - this should include both read & unread notifs + * + * @generated from message bsky.GetNotificationsRequest + */ +export class GetNotificationsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetNotificationsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationsRequest { + return new GetNotificationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationsRequest { + return new GetNotificationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNotificationsRequest { + return new GetNotificationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetNotificationsRequest | PlainMessage | undefined, b: GetNotificationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNotificationsRequest, a, b); + } +} + +/** + * @generated from message bsky.Notification + */ +export class Notification extends Message { + /** + * @generated from field: string uri = 1; + */ + uri = ""; + + /** + * @generated from field: string reason = 2; + */ + reason = ""; + + /** + * @generated from field: google.protobuf.Timestamp timestamp = 3; + */ + timestamp?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.Notification"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Notification { + return new Notification().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Notification { + return new Notification().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Notification { + return new Notification().fromJsonString(jsonString, options); + } + + static equals(a: Notification | PlainMessage | undefined, b: Notification | PlainMessage | undefined): boolean { + return proto3.util.equals(Notification, a, b); + } +} + +/** + * @generated from message bsky.GetNotificationsResponse + */ +export class GetNotificationsResponse extends Message { + /** + * @generated from field: repeated bsky.Notification notifications = 1; + */ + notifications: Notification[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetNotificationsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "notifications", kind: "message", T: Notification, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationsResponse { + return new GetNotificationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationsResponse { + return new GetNotificationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNotificationsResponse { + return new GetNotificationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetNotificationsResponse | PlainMessage | undefined, b: GetNotificationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNotificationsResponse, a, b); + } +} + +/** + * - update a user’s “last seen time” + * - `updateSeen` + * + * @generated from message bsky.UpdateNotificationSeenRequest + */ +export class UpdateNotificationSeenRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: google.protobuf.Timestamp timestamp = 2; + */ + timestamp?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.UpdateNotificationSeenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timestamp", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromJsonString(jsonString, options); + } + + static equals(a: UpdateNotificationSeenRequest | PlainMessage | undefined, b: UpdateNotificationSeenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateNotificationSeenRequest, a, b); + } +} + +/** + * @generated from message bsky.UpdateNotificationSeenResponse + */ +export class UpdateNotificationSeenResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.UpdateNotificationSeenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromJsonString(jsonString, options); + } + + static equals(a: UpdateNotificationSeenResponse | PlainMessage | undefined, b: UpdateNotificationSeenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateNotificationSeenResponse, a, b); + } +} + +/** + * - get a user’s “last seen time” + * - hydrating read state onto notifications + * + * @generated from message bsky.GetNotificationSeenRequest + */ +export class GetNotificationSeenRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetNotificationSeenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetNotificationSeenRequest | PlainMessage | undefined, b: GetNotificationSeenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNotificationSeenRequest, a, b); + } +} + +/** + * @generated from message bsky.GetNotificationSeenResponse + */ +export class GetNotificationSeenResponse extends Message { + /** + * @generated from field: google.protobuf.Timestamp timestamp = 1; + */ + timestamp?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetNotificationSeenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "timestamp", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetNotificationSeenResponse | PlainMessage | undefined, b: GetNotificationSeenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNotificationSeenResponse, a, b); + } +} + +/** + * - get a count of all unread notifications (notifications after `updateSeen`) + * - `getUnreadCount` + * + * @generated from message bsky.GetUnreadNotificationCountRequest + */ +export class GetUnreadNotificationCountRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetUnreadNotificationCountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetUnreadNotificationCountRequest | PlainMessage | undefined, b: GetUnreadNotificationCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetUnreadNotificationCountRequest, a, b); + } +} + +/** + * @generated from message bsky.GetUnreadNotificationCountResponse + */ +export class GetUnreadNotificationCountResponse extends Message { + /** + * @generated from field: int32 count = 1; + */ + count = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetUnreadNotificationCountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetUnreadNotificationCountResponse | PlainMessage | undefined, b: GetUnreadNotificationCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetUnreadNotificationCountResponse, a, b); + } +} + +/** + * - Returns feed generator records with uris A, B, C… + * - hydration of feed generator views + * + * @generated from message bsky.GetFeedGeneratorsRequest + */ +export class GetFeedGeneratorsRequest extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFeedGeneratorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFeedGeneratorsRequest | PlainMessage | undefined, b: GetFeedGeneratorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFeedGeneratorsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetFeedGeneratorsResponse + */ +export class GetFeedGeneratorsResponse extends Message { + /** + * @generated from field: repeated bytes records = 1; + */ + records: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFeedGeneratorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFeedGeneratorsResponse | PlainMessage | undefined, b: GetFeedGeneratorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFeedGeneratorsResponse, a, b); + } +} + +/** + * - Return uris of feed generator records created by user A + * - `getActorFeeds` + * + * @generated from message bsky.GetActorFeedsRequest + */ +export class GetActorFeedsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorFeedsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorFeedsRequest | PlainMessage | undefined, b: GetActorFeedsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorFeedsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetActorFeedsResponse + */ +export class GetActorFeedsResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorFeedsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorFeedsResponse | PlainMessage | undefined, b: GetActorFeedsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorFeedsResponse, a, b); + } +} + +/** + * - Returns a list of suggested feed generator uris for an actor, paginated + * - `getSuggestedFeeds` + * - This is currently just hardcoded in the Appview DB + * + * @generated from message bsky.GetSuggestedFeedsRequest + */ +export class GetSuggestedFeedsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetSuggestedFeedsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetSuggestedFeedsRequest | PlainMessage | undefined, b: GetSuggestedFeedsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSuggestedFeedsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetSuggestedFeedsResponse + */ +export class GetSuggestedFeedsResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetSuggestedFeedsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetSuggestedFeedsResponse | PlainMessage | undefined, b: GetSuggestedFeedsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSuggestedFeedsResponse, a, b); + } +} + +/** + * - Returns feed generator validity and online status with uris A, B, C… + * - Not currently being used, but could be worhthwhile. + * + * @generated from message bsky.GetFeedGeneratorStatusRequest + */ +export class GetFeedGeneratorStatusRequest extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFeedGeneratorStatusRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFeedGeneratorStatusRequest | PlainMessage | undefined, b: GetFeedGeneratorStatusRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFeedGeneratorStatusRequest, a, b); + } +} + +/** + * @generated from message bsky.GetFeedGeneratorStatusResponse + */ +export class GetFeedGeneratorStatusResponse extends Message { + /** + * @generated from field: repeated string status = 1; + */ + status: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFeedGeneratorStatusResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFeedGeneratorStatusResponse | PlainMessage | undefined, b: GetFeedGeneratorStatusResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFeedGeneratorStatusResponse, a, b); + } +} + +/** + * - Returns recent posts authored by a given DID, paginated + * - `getAuthorFeed` + * - Optionally: filter by if a post is/isn’t a reply and if a post has a media object in it + * + * @generated from message bsky.GetAuthorFeedRequest + */ +export class GetAuthorFeedRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + /** + * @generated from field: bool replies_only = 4; + */ + repliesOnly = false; + + /** + * @generated from field: bool media_only = 5; + */ + mediaOnly = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetAuthorFeedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "replies_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "media_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthorFeedRequest | PlainMessage | undefined, b: GetAuthorFeedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthorFeedRequest, a, b); + } +} + +/** + * @generated from message bsky.GetAuthorFeedResponse + */ +export class GetAuthorFeedResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetAuthorFeedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthorFeedResponse | PlainMessage | undefined, b: GetAuthorFeedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthorFeedResponse, a, b); + } +} + +/** + * - Returns recent posts authored by users followed by a given DID, paginated + * - `getTimeline` + * + * @generated from message bsky.GetTimelineRequest + */ +export class GetTimelineRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetTimelineRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTimelineRequest { + return new GetTimelineRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTimelineRequest { + return new GetTimelineRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTimelineRequest { + return new GetTimelineRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetTimelineRequest | PlainMessage | undefined, b: GetTimelineRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTimelineRequest, a, b); + } +} + +/** + * @generated from message bsky.GetTimelineResponse + */ +export class GetTimelineResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetTimelineResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTimelineResponse { + return new GetTimelineResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTimelineResponse { + return new GetTimelineResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTimelineResponse { + return new GetTimelineResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetTimelineResponse | PlainMessage | undefined, b: GetTimelineResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTimelineResponse, a, b); + } +} + +/** + * - Return recent post uris from users in list A + * - `getListFeed` + * - (This is essentially the same as `getTimeline` but instead of follows of a did, it is list items of a list) + * + * @generated from message bsky.GetListFeedRequest + */ +export class GetListFeedRequest extends Message { + /** + * @generated from field: string list_uri = 1; + */ + listUri = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListFeedRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListFeedRequest { + return new GetListFeedRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListFeedRequest { + return new GetListFeedRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListFeedRequest { + return new GetListFeedRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetListFeedRequest | PlainMessage | undefined, b: GetListFeedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListFeedRequest, a, b); + } +} + +/** + * @generated from message bsky.GetListFeedResponse + */ +export class GetListFeedResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListFeedResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListFeedResponse { + return new GetListFeedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListFeedResponse { + return new GetListFeedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListFeedResponse { + return new GetListFeedResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetListFeedResponse | PlainMessage | undefined, b: GetListFeedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListFeedResponse, a, b); + } +} + +/** + * Return posts uris of any replies N levels above or M levels below post A + * + * @generated from message bsky.GetThreadRequest + */ +export class GetThreadRequest extends Message { + /** + * @generated from field: string post_uri = 1; + */ + postUri = ""; + + /** + * @generated from field: int32 above = 2; + */ + above = 0; + + /** + * @generated from field: int32 below = 3; + */ + below = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetThreadRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "post_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "above", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "below", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadRequest { + return new GetThreadRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadRequest { + return new GetThreadRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetThreadRequest { + return new GetThreadRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetThreadRequest | PlainMessage | undefined, b: GetThreadRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetThreadRequest, a, b); + } +} + +/** + * @generated from message bsky.GetThreadResponse + */ +export class GetThreadResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetThreadResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadResponse { + return new GetThreadResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadResponse { + return new GetThreadResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetThreadResponse { + return new GetThreadResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetThreadResponse | PlainMessage | undefined, b: GetThreadResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetThreadResponse, a, b); + } +} + +/** + * Return threadgate records with uris A, B, C… + * + * @generated from message bsky.GetThreadgatesRequest + */ +export class GetThreadgatesRequest extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetThreadgatesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetThreadgatesRequest | PlainMessage | undefined, b: GetThreadgatesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetThreadgatesRequest, a, b); + } +} + +/** + * @generated from message bsky.GetThreadgatesResponse + */ +export class GetThreadgatesResponse extends Message { + /** + * @generated from field: repeated bytes records = 1; + */ + records: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetThreadgatesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetThreadgatesResponse | PlainMessage | undefined, b: GetThreadgatesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetThreadgatesResponse, a, b); + } +} + +/** + * - Return DIDs of actors matching term, paginated + * - `searchActors` skeleton + * + * @generated from message bsky.SearchActorsRequest + */ +export class SearchActorsRequest extends Message { + /** + * @generated from field: string term = 1; + */ + term = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.SearchActorsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "term", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SearchActorsRequest { + return new SearchActorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SearchActorsRequest { + return new SearchActorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SearchActorsRequest { + return new SearchActorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: SearchActorsRequest | PlainMessage | undefined, b: SearchActorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchActorsRequest, a, b); + } +} + +/** + * @generated from message bsky.SearchActorsResponse + */ +export class SearchActorsResponse extends Message { + /** + * @generated from field: repeated string dids = 1; + */ + dids: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.SearchActorsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SearchActorsResponse { + return new SearchActorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SearchActorsResponse { + return new SearchActorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SearchActorsResponse { + return new SearchActorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: SearchActorsResponse | PlainMessage | undefined, b: SearchActorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchActorsResponse, a, b); + } +} + +/** + * - Return uris of posts matching term, paginated + * - `searchPosts` skeleton + * + * @generated from message bsky.SearchPostsRequest + */ +export class SearchPostsRequest extends Message { + /** + * @generated from field: string term = 1; + */ + term = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.SearchPostsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "term", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SearchPostsRequest { + return new SearchPostsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SearchPostsRequest { + return new SearchPostsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SearchPostsRequest { + return new SearchPostsRequest().fromJsonString(jsonString, options); + } + + static equals(a: SearchPostsRequest | PlainMessage | undefined, b: SearchPostsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchPostsRequest, a, b); + } +} + +/** + * @generated from message bsky.SearchPostsResponse + */ +export class SearchPostsResponse extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.SearchPostsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SearchPostsResponse { + return new SearchPostsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SearchPostsResponse { + return new SearchPostsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SearchPostsResponse { + return new SearchPostsResponse().fromJsonString(jsonString, options); + } + + static equals(a: SearchPostsResponse | PlainMessage | undefined, b: SearchPostsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchPostsResponse, a, b); + } +} + +/** + * - Return DIDs of suggested follows for a user, excluding anyone they already follow + * - `getSuggestions` + * + * @generated from message bsky.GetSuggestionsRequest + */ +export class GetSuggestionsRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: int32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string cursor = 3; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetSuggestionsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetSuggestionsRequest | PlainMessage | undefined, b: GetSuggestionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSuggestionsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetSuggestionsResponse + */ +export class GetSuggestionsResponse extends Message { + /** + * @generated from field: repeated string dids = 1; + */ + dids: string[] = []; + + /** + * @generated from field: string cursor = 2; + */ + cursor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetSuggestionsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetSuggestionsResponse | PlainMessage | undefined, b: GetSuggestionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSuggestionsResponse, a, b); + } +} + +/** + * - Return post records with uris A, B, C… + * - All feed hydration + * + * @generated from message bsky.GetPostsRequest + */ +export class GetPostsRequest extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetPostsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetPostsRequest { + return new GetPostsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetPostsRequest { + return new GetPostsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetPostsRequest { + return new GetPostsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetPostsRequest | PlainMessage | undefined, b: GetPostsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetPostsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetPostsResponse + */ +export class GetPostsResponse extends Message { + /** + * @generated from field: repeated bytes records = 1; + */ + records: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetPostsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetPostsResponse { + return new GetPostsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetPostsResponse { + return new GetPostsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetPostsResponse { + return new GetPostsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetPostsResponse | PlainMessage | undefined, b: GetPostsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetPostsResponse, a, b); + } +} + +/** + * - Return post reply count with uris A, B, C… + * - All feed hydration + * + * @generated from message bsky.GetPostReplyCountRequest + */ +export class GetPostReplyCountRequest extends Message { + /** + * @generated from field: repeated string uris = 1; + */ + uris: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetPostReplyCountRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetPostReplyCountRequest | PlainMessage | undefined, b: GetPostReplyCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetPostReplyCountRequest, a, b); + } +} + +/** + * @generated from message bsky.GetPostReplyCountResponse + */ +export class GetPostReplyCountResponse extends Message { + /** + * @generated from field: repeated int32 counts = 1; + */ + counts: number[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetPostReplyCountResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "counts", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetPostReplyCountResponse | PlainMessage | undefined, b: GetPostReplyCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetPostReplyCountResponse, a, b); + } +} + +/** + * - Get all labels on a subjects A, B, C (uri or did) issued by dids D, E, F… + * - label hydration on nearly every view + * + * @generated from message bsky.GetLabelsRequest + */ +export class GetLabelsRequest extends Message { + /** + * @generated from field: repeated string subjects = 1; + */ + subjects: string[] = []; + + /** + * @generated from field: repeated string issuers = 2; + */ + issuers: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLabelsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subjects", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "issuers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLabelsRequest { + return new GetLabelsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLabelsRequest { + return new GetLabelsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLabelsRequest { + return new GetLabelsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLabelsRequest | PlainMessage | undefined, b: GetLabelsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLabelsRequest, a, b); + } +} + +/** + * @generated from message bsky.GetLabelsResponse + */ +export class GetLabelsResponse extends Message { + /** + * @generated from field: repeated bytes records = 1; + */ + records: Uint8Array[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLabelsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLabelsResponse { + return new GetLabelsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLabelsResponse { + return new GetLabelsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLabelsResponse { + return new GetLabelsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLabelsResponse | PlainMessage | undefined, b: GetLabelsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLabelsResponse, a, b); + } +} + +/** + * - Latest repo rev of user w/ DID + * - Read-after-write header in`getProfile`, `getProfiles`, `getActorLikes`, `getAuthorFeed`, `getListFeed`, `getPostThread`, `getTimeline`. Could it be view dependent? + * + * @generated from message bsky.GetLatestRevRequest + */ +export class GetLatestRevRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLatestRevRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestRevRequest { + return new GetLatestRevRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestRevRequest { + return new GetLatestRevRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLatestRevRequest { + return new GetLatestRevRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLatestRevRequest | PlainMessage | undefined, b: GetLatestRevRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLatestRevRequest, a, b); + } +} + +/** + * @generated from message bsky.GetLatestRevResponse + */ +export class GetLatestRevResponse extends Message { + /** + * @generated from field: string rev = 1; + */ + rev = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLatestRevResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rev", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestRevResponse { + return new GetLatestRevResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestRevResponse { + return new GetLatestRevResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLatestRevResponse { + return new GetLatestRevResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLatestRevResponse | PlainMessage | undefined, b: GetLatestRevResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLatestRevResponse, a, b); + } +} + +/** + * - Return whether blob is taken down given DID and CID + * + * @generated from message bsky.GetBlobTakedownRequest + */ +export class GetBlobTakedownRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string cid = 2; + */ + cid = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlobTakedownRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBlobTakedownRequest | PlainMessage | undefined, b: GetBlobTakedownRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlobTakedownRequest, a, b); + } +} + +/** + * @generated from message bsky.GetBlobTakedownResponse + */ +export class GetBlobTakedownResponse extends Message { + /** + * @generated from field: bool taken_down = 1; + */ + takenDown = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlobTakedownResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "taken_down", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBlobTakedownResponse | PlainMessage | undefined, b: GetBlobTakedownResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlobTakedownResponse, a, b); + } +} + +/** + * - Update takedown state for actors, records, and blobs + * + * @generated from message bsky.UpdateTakedownRequest + */ +export class UpdateTakedownRequest extends Message { + /** + * @generated from field: string actor_did = 1; + */ + actorDid = ""; + + /** + * @generated from field: string record_uri = 2; + */ + recordUri = ""; + + /** + * @generated from field: string blob_cid = 3; + */ + blobCid = ""; + + /** + * @generated from field: bool taken_down = 4; + */ + takenDown = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.UpdateTakedownRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "record_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "blob_cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "taken_down", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromJsonString(jsonString, options); + } + + static equals(a: UpdateTakedownRequest | PlainMessage | undefined, b: UpdateTakedownRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateTakedownRequest, a, b); + } +} + +/** + * @generated from message bsky.UpdateTakedownResponse + */ +export class UpdateTakedownResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.UpdateTakedownResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromJsonString(jsonString, options); + } + + static equals(a: UpdateTakedownResponse | PlainMessage | undefined, b: UpdateTakedownResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateTakedownResponse, a, b); + } +} + +/** + * Ping + * + * @generated from message bsky.PingRequest + */ +export class PingRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.PingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PingRequest { + return new PingRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PingRequest { + return new PingRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PingRequest { + return new PingRequest().fromJsonString(jsonString, options); + } + + static equals(a: PingRequest | PlainMessage | undefined, b: PingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PingRequest, a, b); + } +} + +/** + * @generated from message bsky.PingResponse + */ +export class PingResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.PingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PingResponse { + return new PingResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PingResponse { + return new PingResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PingResponse { + return new PingResponse().fromJsonString(jsonString, options); + } + + static equals(a: PingResponse | PlainMessage | undefined, b: PingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PingResponse, a, b); + } +} + diff --git a/packages/bsky/src/data-plane/index.ts b/packages/bsky/src/data-plane/index.ts new file mode 100644 index 00000000000..9efccc1d3a3 --- /dev/null +++ b/packages/bsky/src/data-plane/index.ts @@ -0,0 +1,11 @@ +import { Service } from './bsky_connect' +import { createPromiseClient } from '@connectrpc/connect' +import { createConnectTransport } from '@connectrpc/connect-node' + +export const createDataPlaneClient = (baseUrl: string) => { + const transport = createConnectTransport({ + baseUrl, + httpVersion: '2', + }) + return createPromiseClient(Service, transport) +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0b554e7612c..bfa970843c0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -186,6 +186,15 @@ importers: '@atproto/xrpc-server': specifier: workspace:^ version: link:../xrpc-server + '@bufbuild/protobuf': + specifier: ^1.5.0 + version: 1.5.0 + '@connectrpc/connect': + specifier: ^1.1.4 + version: 1.1.4(@bufbuild/protobuf@1.5.0) + '@connectrpc/connect-node': + specifier: ^1.1.4 + version: 1.1.4(@bufbuild/protobuf@1.5.0)(@connectrpc/connect@1.1.4) '@did-plc/lib': specifier: ^0.0.1 version: 0.0.1 @@ -256,6 +265,15 @@ importers: '@atproto/xrpc': specifier: workspace:^ version: link:../xrpc + '@bufbuild/buf': + specifier: ^1.28.1 + version: 1.28.1 + '@bufbuild/protoc-gen-es': + specifier: ^1.5.0 + version: 1.5.0(@bufbuild/protobuf@1.5.0) + '@connectrpc/protoc-gen-connect-es': + specifier: ^1.1.4 + version: 1.1.4(@bufbuild/protoc-gen-es@1.5.0)(@connectrpc/connect@1.1.4) '@did-plc/server': specifier: ^0.0.1 version: 0.0.1 @@ -4327,6 +4345,103 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true + /@bufbuild/buf-darwin-arm64@1.28.1: + resolution: {integrity: sha512-nAyvwKkcd8qQTExCZo5MtSRhXLK7e3vzKFKHjXfkveRakSUST2HFlFZAHfErZimN4wBrPTN0V0hNRU8PPjkMpQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-darwin-x64@1.28.1: + resolution: {integrity: sha512-b0eT3xd3vX5a5lWAbo5h7FPuf9MsOJI4I39qs4TZnrlZ8BOuPfqzwzijiFf9UCwaX2vR1NQXexIoQ80Ci+fCHw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-linux-aarch64@1.28.1: + resolution: {integrity: sha512-p5h9bZCVLMh8No9/7k7ulXzsFx5P7Lu6DiUMjSJ6aBXPMYo6Xl7r/6L2cQkpsZ53HMtIxCgMYS9a7zoS4K8wIw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-linux-x64@1.28.1: + resolution: {integrity: sha512-fVJ3DiRigIso06jgEl+JNp59Y5t2pxDHd10d3SA4r+14sXbZ2J7Gy/wBqVXPry4x/jW567KKlvmhg7M5ZBgCQQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-win32-arm64@1.28.1: + resolution: {integrity: sha512-KJiRJpugQRK/jXC46Xjlb68UydWhCZj2jHdWLIwNtgXd1WTJ3LngChZV7Y6pPK08pwBAVz0JYeVbD5IlTCD4TQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf-win32-x64@1.28.1: + resolution: {integrity: sha512-vMnc+7OVCkmlRWQsgYHgUqiBPRIjD8XeoRyApJ07YZzGs7DkRH4LhvmacJbLd3wORylbn6gLz3pQa8J/M61mzg==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + /@bufbuild/buf@1.28.1: + resolution: {integrity: sha512-WRDagrf0uBjfV9s5eyrSPJDcdI4A5Q7JMCA4aMrHRR8fo/TTjniDBjJprszhaguqsDkn/LS4QIu92HVFZCrl9A==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@bufbuild/buf-darwin-arm64': 1.28.1 + '@bufbuild/buf-darwin-x64': 1.28.1 + '@bufbuild/buf-linux-aarch64': 1.28.1 + '@bufbuild/buf-linux-x64': 1.28.1 + '@bufbuild/buf-win32-arm64': 1.28.1 + '@bufbuild/buf-win32-x64': 1.28.1 + dev: true + + /@bufbuild/protobuf@1.5.0: + resolution: {integrity: sha512-0Jg+B7Vl8YGCi7c3iZ8/38iTbZrwdU7or6QZlsA9lhSrhumaXOTMsGO8gqwDuus/THEkTiY3Uxn+PEJwgsLt0w==} + + /@bufbuild/protoc-gen-es@1.5.0(@bufbuild/protobuf@1.5.0): + resolution: {integrity: sha512-6dPFlw7jhKPNoJUb5+0MPDTMEEbym4AAQZP2sCo4/0J+T2SlAzq5kbuNx92x+SFkOI5V7/iNoPHrxr0TZZ9b2g==} + engines: {node: '>=14'} + hasBin: true + peerDependencies: + '@bufbuild/protobuf': 1.5.0 + peerDependenciesMeta: + '@bufbuild/protobuf': + optional: true + dependencies: + '@bufbuild/protobuf': 1.5.0 + '@bufbuild/protoplugin': 1.5.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@bufbuild/protoplugin@1.5.0: + resolution: {integrity: sha512-b07uxUfWUHm91PrN7dMMSmO+2RH21kPo+EhczGDR3PDh2t80e4XCZhf3Z/6SM/+ajhVpbl/WNK+z645jsSnGPg==} + dependencies: + '@bufbuild/protobuf': 1.5.0 + '@typescript/vfs': 1.5.0 + typescript: 4.5.2 + transitivePeerDependencies: + - supports-color + dev: true + /@cbor-extract/cbor-extract-darwin-arm64@2.1.1: resolution: {integrity: sha512-blVBy5MXz6m36Vx0DfLd7PChOQKEs8lK2bD1WJn/vVgG4FXZiZmZb2GECHFvVPA5T7OnODd9xZiL3nMCv6QUhA==} cpu: [arm64] @@ -4578,6 +4693,46 @@ packages: prettier: 2.7.1 dev: true + /@connectrpc/connect-node@1.1.4(@bufbuild/protobuf@1.5.0)(@connectrpc/connect@1.1.4): + resolution: {integrity: sha512-1Pv4PSTh7k6+c8kNjVx9wZiWm8dChexsq+hW4EKcYItjSqvyKpmTfLBTl12y6W+RBQ9vCuFCu3xT79outhNY9g==} + engines: {node: '>=16.0.0'} + peerDependencies: + '@bufbuild/protobuf': ^1.4.2 + '@connectrpc/connect': 1.1.4 + dependencies: + '@bufbuild/protobuf': 1.5.0 + '@connectrpc/connect': 1.1.4(@bufbuild/protobuf@1.5.0) + undici: 5.28.2 + dev: false + + /@connectrpc/connect@1.1.4(@bufbuild/protobuf@1.5.0): + resolution: {integrity: sha512-kFiOi3jsEyOuL4gGW55LgNCqQBNA0Z/GLXrfeJO4r6pI/f8L9rqnjrFZTCeyrvzu1TuqEtL51cR+c46KMCposw==} + peerDependencies: + '@bufbuild/protobuf': ^1.4.2 + dependencies: + '@bufbuild/protobuf': 1.5.0 + + /@connectrpc/protoc-gen-connect-es@1.1.4(@bufbuild/protoc-gen-es@1.5.0)(@connectrpc/connect@1.1.4): + resolution: {integrity: sha512-q+leRn9Bd1FzEbthN1qWHwYaGYGc84rLXy/hEkDlMCiWrqz2zxb4Ijy37gOMlE8eRfwYRwn08XcEhV+Y/1jlyA==} + engines: {node: '>=16.0.0'} + hasBin: true + peerDependencies: + '@bufbuild/protoc-gen-es': ^1.3.3 + '@connectrpc/connect': 1.1.4 + peerDependenciesMeta: + '@bufbuild/protoc-gen-es': + optional: true + '@connectrpc/connect': + optional: true + dependencies: + '@bufbuild/protobuf': 1.5.0 + '@bufbuild/protoc-gen-es': 1.5.0(@bufbuild/protobuf@1.5.0) + '@bufbuild/protoplugin': 1.5.0 + '@connectrpc/connect': 1.1.4(@bufbuild/protobuf@1.5.0) + transitivePeerDependencies: + - supports-color + dev: true + /@cspotcode/source-map-support@0.8.1: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} @@ -4728,6 +4883,11 @@ packages: - supports-color dev: true + /@fastify/busboy@2.1.0: + resolution: {integrity: sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==} + engines: {node: '>=14'} + dev: false + /@fastify/deepmerge@1.3.0: resolution: {integrity: sha512-J8TOSBq3SoZbDhM9+R/u77hP93gz/rajSA+K2kGyijPpORPWUXHUpTaleoj+92As0S9uPRP7Oi8IqMf0u+ro6A==} @@ -5768,6 +5928,14 @@ packages: eslint-visitor-keys: 3.4.3 dev: true + /@typescript/vfs@1.5.0: + resolution: {integrity: sha512-AJS307bPgbsZZ9ggCT3wwpg3VbTKMFNHfaY/uF0ahSkYYrPF2dSSKDNIDIQAHm9qJqbLvCsSJH7yN4Vs/CsMMg==} + dependencies: + debug: 4.3.4 + transitivePeerDependencies: + - supports-color + dev: true + /abbrev@1.1.1: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} dev: true @@ -11126,6 +11294,12 @@ packages: optionalDependencies: rxjs: 7.8.1 + /typescript@4.5.2: + resolution: {integrity: sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: true + /typescript@4.8.4: resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} engines: {node: '>=4.2.0'} @@ -11159,6 +11333,13 @@ packages: which-boxed-primitive: 1.0.2 dev: true + /undici@5.28.2: + resolution: {integrity: sha512-wh1pHJHnUeQV5Xa8/kyQhO7WFa8M34l026L5P/+2TYiakvGy5Rdc8jWZVyG7ieht/0WgJLEd3kcU5gKx+6GC8w==} + engines: {node: '>=14.0'} + dependencies: + '@fastify/busboy': 2.1.0 + dev: false + /unicode-canonical-property-names-ecmascript@2.0.0: resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==} engines: {node: '>=4'} From 15f1571ce089a503c8ec5fa10fdac364c4a1ccab Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 10:24:52 -0600 Subject: [PATCH 002/186] lint --- packages/bsky/buf.gen.yaml | 2 +- packages/bsky/src/data-plane/bsky_connect.ts | 224 +- packages/bsky/src/data-plane/bsky_pb.ts | 6692 ++++++++++++------ 3 files changed, 4524 insertions(+), 2394 deletions(-) diff --git a/packages/bsky/buf.gen.yaml b/packages/bsky/buf.gen.yaml index 412046cf254..7acd660bde0 100644 --- a/packages/bsky/buf.gen.yaml +++ b/packages/bsky/buf.gen.yaml @@ -5,4 +5,4 @@ plugins: out: src/data-plane - plugin: connect-es opt: target=ts - out: src/data-plane \ No newline at end of file + out: src/data-plane diff --git a/packages/bsky/src/data-plane/bsky_connect.ts b/packages/bsky/src/data-plane/bsky_connect.ts index d76eae6f599..4232c10198d 100644 --- a/packages/bsky/src/data-plane/bsky_connect.ts +++ b/packages/bsky/src/data-plane/bsky_connect.ts @@ -3,14 +3,121 @@ /* eslint-disable */ // @ts-nocheck -import { GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlocksRequest, GetBlocksResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorsRequest, GetFeedGeneratorsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersCountRequest, GetFollowersCountResponse, GetFollowersRequest, GetFollowersResponse, GetFollowsCountRequest, GetFollowsCountResponse, GetFollowsRequest, GetFollowsResponse, GetHandlesRequest, GetHandlesResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeByActorAndSubjectRequest, GetLikeByActorAndSubjectResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetLikesCountRequest, GetLikesCountResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListRequest, GetListResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostReplyCountRequest, GetPostReplyCountResponse, GetPostsRequest, GetPostsResponse, GetProfilesRequest, GetProfilesResponse, GetRepostByActorAndSubjectRequest, GetRepostByActorAndSubjectResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetRepostsCountRequest, GetRepostsCountResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetSuggestionsRequest, GetSuggestionsResponse, GetThreadgatesRequest, GetThreadgatesResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchPostsRequest, SearchPostsResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse, UpdateTakedownRequest, UpdateTakedownResponse } from "./bsky_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; +import { + GetActorFeedsRequest, + GetActorFeedsResponse, + GetActorFollowsActorsRequest, + GetActorFollowsActorsResponse, + GetActorLikesRequest, + GetActorLikesResponse, + GetActorMutesActorRequest, + GetActorMutesActorResponse, + GetActorMutesActorViaListRequest, + GetActorMutesActorViaListResponse, + GetActorRepostsRequest, + GetActorRepostsResponse, + GetAuthorFeedRequest, + GetAuthorFeedResponse, + GetBidirectionalBlockRequest, + GetBidirectionalBlockResponse, + GetBidirectionalBlockViaListRequest, + GetBidirectionalBlockViaListResponse, + GetBlobTakedownRequest, + GetBlobTakedownResponse, + GetBlocklistSubscriptionRequest, + GetBlocklistSubscriptionResponse, + GetBlocklistSubscriptionsRequest, + GetBlocklistSubscriptionsResponse, + GetBlocksRequest, + GetBlocksResponse, + GetDidsByHandlesRequest, + GetDidsByHandlesResponse, + GetFeedGeneratorsRequest, + GetFeedGeneratorsResponse, + GetFeedGeneratorStatusRequest, + GetFeedGeneratorStatusResponse, + GetFollowersCountRequest, + GetFollowersCountResponse, + GetFollowersRequest, + GetFollowersResponse, + GetFollowsCountRequest, + GetFollowsCountResponse, + GetFollowsRequest, + GetFollowsResponse, + GetHandlesRequest, + GetHandlesResponse, + GetLabelsRequest, + GetLabelsResponse, + GetLatestRevRequest, + GetLatestRevResponse, + GetLikeByActorAndSubjectRequest, + GetLikeByActorAndSubjectResponse, + GetLikesBySubjectRequest, + GetLikesBySubjectResponse, + GetLikesCountRequest, + GetLikesCountResponse, + GetListCountRequest, + GetListCountResponse, + GetListFeedRequest, + GetListFeedResponse, + GetListMembershipRequest, + GetListMembershipResponse, + GetListMembersRequest, + GetListMembersResponse, + GetListRequest, + GetListResponse, + GetMutelistSubscriptionRequest, + GetMutelistSubscriptionResponse, + GetMutelistSubscriptionsRequest, + GetMutelistSubscriptionsResponse, + GetMutesRequest, + GetMutesResponse, + GetNotificationSeenRequest, + GetNotificationSeenResponse, + GetNotificationsRequest, + GetNotificationsResponse, + GetPostReplyCountRequest, + GetPostReplyCountResponse, + GetPostsRequest, + GetPostsResponse, + GetProfilesRequest, + GetProfilesResponse, + GetRepostByActorAndSubjectRequest, + GetRepostByActorAndSubjectResponse, + GetRepostsBySubjectRequest, + GetRepostsBySubjectResponse, + GetRepostsCountRequest, + GetRepostsCountResponse, + GetSuggestedFeedsRequest, + GetSuggestedFeedsResponse, + GetSuggestionsRequest, + GetSuggestionsResponse, + GetThreadgatesRequest, + GetThreadgatesResponse, + GetThreadRequest, + GetThreadResponse, + GetTimelineRequest, + GetTimelineResponse, + GetUnreadNotificationCountRequest, + GetUnreadNotificationCountResponse, + PingRequest, + PingResponse, + SearchActorsRequest, + SearchActorsResponse, + SearchPostsRequest, + SearchPostsResponse, + UpdateNotificationSeenRequest, + UpdateNotificationSeenResponse, + UpdateTakedownRequest, + UpdateTakedownResponse, +} from './bsky_pb.js' +import { MethodKind } from '@bufbuild/protobuf' /** * @generated from service bsky.Service */ export const Service = { - typeName: "bsky.Service", + typeName: 'bsky.Service', methods: { /** * Follows @@ -18,7 +125,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorFollowsActors */ getActorFollowsActors: { - name: "GetActorFollowsActors", + name: 'GetActorFollowsActors', I: GetActorFollowsActorsRequest, O: GetActorFollowsActorsResponse, kind: MethodKind.Unary, @@ -27,7 +134,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFollowers */ getFollowers: { - name: "GetFollowers", + name: 'GetFollowers', I: GetFollowersRequest, O: GetFollowersResponse, kind: MethodKind.Unary, @@ -36,7 +143,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFollows */ getFollows: { - name: "GetFollows", + name: 'GetFollows', I: GetFollowsRequest, O: GetFollowsResponse, kind: MethodKind.Unary, @@ -45,7 +152,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFollowersCount */ getFollowersCount: { - name: "GetFollowersCount", + name: 'GetFollowersCount', I: GetFollowersCountRequest, O: GetFollowersCountResponse, kind: MethodKind.Unary, @@ -54,7 +161,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFollowsCount */ getFollowsCount: { - name: "GetFollowsCount", + name: 'GetFollowsCount', I: GetFollowsCountRequest, O: GetFollowsCountResponse, kind: MethodKind.Unary, @@ -65,7 +172,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLikesBySubject */ getLikesBySubject: { - name: "GetLikesBySubject", + name: 'GetLikesBySubject', I: GetLikesBySubjectRequest, O: GetLikesBySubjectResponse, kind: MethodKind.Unary, @@ -74,7 +181,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLikeByActorAndSubject */ getLikeByActorAndSubject: { - name: "GetLikeByActorAndSubject", + name: 'GetLikeByActorAndSubject', I: GetLikeByActorAndSubjectRequest, O: GetLikeByActorAndSubjectResponse, kind: MethodKind.Unary, @@ -83,7 +190,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorLikes */ getActorLikes: { - name: "GetActorLikes", + name: 'GetActorLikes', I: GetActorLikesRequest, O: GetActorLikesResponse, kind: MethodKind.Unary, @@ -92,7 +199,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLikesCount */ getLikesCount: { - name: "GetLikesCount", + name: 'GetLikesCount', I: GetLikesCountRequest, O: GetLikesCountResponse, kind: MethodKind.Unary, @@ -103,7 +210,7 @@ export const Service = { * @generated from rpc bsky.Service.GetRepostsBySubject */ getRepostsBySubject: { - name: "GetRepostsBySubject", + name: 'GetRepostsBySubject', I: GetRepostsBySubjectRequest, O: GetRepostsBySubjectResponse, kind: MethodKind.Unary, @@ -112,7 +219,7 @@ export const Service = { * @generated from rpc bsky.Service.GetRepostByActorAndSubject */ getRepostByActorAndSubject: { - name: "GetRepostByActorAndSubject", + name: 'GetRepostByActorAndSubject', I: GetRepostByActorAndSubjectRequest, O: GetRepostByActorAndSubjectResponse, kind: MethodKind.Unary, @@ -121,7 +228,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorReposts */ getActorReposts: { - name: "GetActorReposts", + name: 'GetActorReposts', I: GetActorRepostsRequest, O: GetActorRepostsResponse, kind: MethodKind.Unary, @@ -130,7 +237,7 @@ export const Service = { * @generated from rpc bsky.Service.GetRepostsCount */ getRepostsCount: { - name: "GetRepostsCount", + name: 'GetRepostsCount', I: GetRepostsCountRequest, O: GetRepostsCountResponse, kind: MethodKind.Unary, @@ -141,7 +248,7 @@ export const Service = { * @generated from rpc bsky.Service.GetProfiles */ getProfiles: { - name: "GetProfiles", + name: 'GetProfiles', I: GetProfilesRequest, O: GetProfilesResponse, kind: MethodKind.Unary, @@ -150,7 +257,7 @@ export const Service = { * @generated from rpc bsky.Service.GetHandles */ getHandles: { - name: "GetHandles", + name: 'GetHandles', I: GetHandlesRequest, O: GetHandlesResponse, kind: MethodKind.Unary, @@ -159,7 +266,7 @@ export const Service = { * @generated from rpc bsky.Service.GetDidsByHandles */ getDidsByHandles: { - name: "GetDidsByHandles", + name: 'GetDidsByHandles', I: GetDidsByHandlesRequest, O: GetDidsByHandlesResponse, kind: MethodKind.Unary, @@ -170,7 +277,7 @@ export const Service = { * @generated from rpc bsky.Service.GetListMembers */ getListMembers: { - name: "GetListMembers", + name: 'GetListMembers', I: GetListMembersRequest, O: GetListMembersResponse, kind: MethodKind.Unary, @@ -179,7 +286,7 @@ export const Service = { * @generated from rpc bsky.Service.GetListMembership */ getListMembership: { - name: "GetListMembership", + name: 'GetListMembership', I: GetListMembershipRequest, O: GetListMembershipResponse, kind: MethodKind.Unary, @@ -188,7 +295,7 @@ export const Service = { * @generated from rpc bsky.Service.GetList */ getList: { - name: "GetList", + name: 'GetList', I: GetListRequest, O: GetListResponse, kind: MethodKind.Unary, @@ -197,7 +304,7 @@ export const Service = { * @generated from rpc bsky.Service.GetListCount */ getListCount: { - name: "GetListCount", + name: 'GetListCount', I: GetListCountRequest, O: GetListCountResponse, kind: MethodKind.Unary, @@ -208,7 +315,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorMutesActor */ getActorMutesActor: { - name: "GetActorMutesActor", + name: 'GetActorMutesActor', I: GetActorMutesActorRequest, O: GetActorMutesActorResponse, kind: MethodKind.Unary, @@ -217,7 +324,7 @@ export const Service = { * @generated from rpc bsky.Service.GetMutes */ getMutes: { - name: "GetMutes", + name: 'GetMutes', I: GetMutesRequest, O: GetMutesResponse, kind: MethodKind.Unary, @@ -228,7 +335,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorMutesActorViaList */ getActorMutesActorViaList: { - name: "GetActorMutesActorViaList", + name: 'GetActorMutesActorViaList', I: GetActorMutesActorViaListRequest, O: GetActorMutesActorViaListResponse, kind: MethodKind.Unary, @@ -237,7 +344,7 @@ export const Service = { * @generated from rpc bsky.Service.GetMutelistSubscription */ getMutelistSubscription: { - name: "GetMutelistSubscription", + name: 'GetMutelistSubscription', I: GetMutelistSubscriptionRequest, O: GetMutelistSubscriptionResponse, kind: MethodKind.Unary, @@ -246,7 +353,7 @@ export const Service = { * @generated from rpc bsky.Service.GetMutelistSubscriptions */ getMutelistSubscriptions: { - name: "GetMutelistSubscriptions", + name: 'GetMutelistSubscriptions', I: GetMutelistSubscriptionsRequest, O: GetMutelistSubscriptionsResponse, kind: MethodKind.Unary, @@ -257,7 +364,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBidirectionalBlock */ getBidirectionalBlock: { - name: "GetBidirectionalBlock", + name: 'GetBidirectionalBlock', I: GetBidirectionalBlockRequest, O: GetBidirectionalBlockResponse, kind: MethodKind.Unary, @@ -266,7 +373,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBlocks */ getBlocks: { - name: "GetBlocks", + name: 'GetBlocks', I: GetBlocksRequest, O: GetBlocksResponse, kind: MethodKind.Unary, @@ -277,7 +384,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBidirectionalBlockViaList */ getBidirectionalBlockViaList: { - name: "GetBidirectionalBlockViaList", + name: 'GetBidirectionalBlockViaList', I: GetBidirectionalBlockViaListRequest, O: GetBidirectionalBlockViaListResponse, kind: MethodKind.Unary, @@ -286,7 +393,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBlocklistSubscription */ getBlocklistSubscription: { - name: "GetBlocklistSubscription", + name: 'GetBlocklistSubscription', I: GetBlocklistSubscriptionRequest, O: GetBlocklistSubscriptionResponse, kind: MethodKind.Unary, @@ -295,7 +402,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBlocklistSubscriptions */ getBlocklistSubscriptions: { - name: "GetBlocklistSubscriptions", + name: 'GetBlocklistSubscriptions', I: GetBlocklistSubscriptionsRequest, O: GetBlocklistSubscriptionsResponse, kind: MethodKind.Unary, @@ -306,7 +413,7 @@ export const Service = { * @generated from rpc bsky.Service.GetNotifications */ getNotifications: { - name: "GetNotifications", + name: 'GetNotifications', I: GetNotificationsRequest, O: GetNotificationsResponse, kind: MethodKind.Unary, @@ -315,7 +422,7 @@ export const Service = { * @generated from rpc bsky.Service.GetNotificationSeen */ getNotificationSeen: { - name: "GetNotificationSeen", + name: 'GetNotificationSeen', I: GetNotificationSeenRequest, O: GetNotificationSeenResponse, kind: MethodKind.Unary, @@ -324,7 +431,7 @@ export const Service = { * @generated from rpc bsky.Service.GetUnreadNotificationCount */ getUnreadNotificationCount: { - name: "GetUnreadNotificationCount", + name: 'GetUnreadNotificationCount', I: GetUnreadNotificationCountRequest, O: GetUnreadNotificationCountResponse, kind: MethodKind.Unary, @@ -333,7 +440,7 @@ export const Service = { * @generated from rpc bsky.Service.UpdateNotificationSeen */ updateNotificationSeen: { - name: "UpdateNotificationSeen", + name: 'UpdateNotificationSeen', I: UpdateNotificationSeenRequest, O: UpdateNotificationSeenResponse, kind: MethodKind.Unary, @@ -344,7 +451,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFeedGenerators */ getFeedGenerators: { - name: "GetFeedGenerators", + name: 'GetFeedGenerators', I: GetFeedGeneratorsRequest, O: GetFeedGeneratorsResponse, kind: MethodKind.Unary, @@ -353,7 +460,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorFeeds */ getActorFeeds: { - name: "GetActorFeeds", + name: 'GetActorFeeds', I: GetActorFeedsRequest, O: GetActorFeedsResponse, kind: MethodKind.Unary, @@ -362,7 +469,7 @@ export const Service = { * @generated from rpc bsky.Service.GetSuggestedFeeds */ getSuggestedFeeds: { - name: "GetSuggestedFeeds", + name: 'GetSuggestedFeeds', I: GetSuggestedFeedsRequest, O: GetSuggestedFeedsResponse, kind: MethodKind.Unary, @@ -371,7 +478,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFeedGeneratorStatus */ getFeedGeneratorStatus: { - name: "GetFeedGeneratorStatus", + name: 'GetFeedGeneratorStatus', I: GetFeedGeneratorStatusRequest, O: GetFeedGeneratorStatusResponse, kind: MethodKind.Unary, @@ -382,7 +489,7 @@ export const Service = { * @generated from rpc bsky.Service.GetAuthorFeed */ getAuthorFeed: { - name: "GetAuthorFeed", + name: 'GetAuthorFeed', I: GetAuthorFeedRequest, O: GetAuthorFeedResponse, kind: MethodKind.Unary, @@ -391,7 +498,7 @@ export const Service = { * @generated from rpc bsky.Service.GetTimeline */ getTimeline: { - name: "GetTimeline", + name: 'GetTimeline', I: GetTimelineRequest, O: GetTimelineResponse, kind: MethodKind.Unary, @@ -400,7 +507,7 @@ export const Service = { * @generated from rpc bsky.Service.GetListFeed */ getListFeed: { - name: "GetListFeed", + name: 'GetListFeed', I: GetListFeedRequest, O: GetListFeedResponse, kind: MethodKind.Unary, @@ -411,7 +518,7 @@ export const Service = { * @generated from rpc bsky.Service.GetThread */ getThread: { - name: "GetThread", + name: 'GetThread', I: GetThreadRequest, O: GetThreadResponse, kind: MethodKind.Unary, @@ -420,7 +527,7 @@ export const Service = { * @generated from rpc bsky.Service.GetThreadgates */ getThreadgates: { - name: "GetThreadgates", + name: 'GetThreadgates', I: GetThreadgatesRequest, O: GetThreadgatesResponse, kind: MethodKind.Unary, @@ -431,7 +538,7 @@ export const Service = { * @generated from rpc bsky.Service.SearchActors */ searchActors: { - name: "SearchActors", + name: 'SearchActors', I: SearchActorsRequest, O: SearchActorsResponse, kind: MethodKind.Unary, @@ -440,7 +547,7 @@ export const Service = { * @generated from rpc bsky.Service.SearchPosts */ searchPosts: { - name: "SearchPosts", + name: 'SearchPosts', I: SearchPostsRequest, O: SearchPostsResponse, kind: MethodKind.Unary, @@ -451,7 +558,7 @@ export const Service = { * @generated from rpc bsky.Service.GetSuggestions */ getSuggestions: { - name: "GetSuggestions", + name: 'GetSuggestions', I: GetSuggestionsRequest, O: GetSuggestionsResponse, kind: MethodKind.Unary, @@ -462,7 +569,7 @@ export const Service = { * @generated from rpc bsky.Service.GetPosts */ getPosts: { - name: "GetPosts", + name: 'GetPosts', I: GetPostsRequest, O: GetPostsResponse, kind: MethodKind.Unary, @@ -471,7 +578,7 @@ export const Service = { * @generated from rpc bsky.Service.GetPostReplyCount */ getPostReplyCount: { - name: "GetPostReplyCount", + name: 'GetPostReplyCount', I: GetPostReplyCountRequest, O: GetPostReplyCountResponse, kind: MethodKind.Unary, @@ -482,7 +589,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLabels */ getLabels: { - name: "GetLabels", + name: 'GetLabels', I: GetLabelsRequest, O: GetLabelsResponse, kind: MethodKind.Unary, @@ -493,7 +600,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLatestRev */ getLatestRev: { - name: "GetLatestRev", + name: 'GetLatestRev', I: GetLatestRevRequest, O: GetLatestRevResponse, kind: MethodKind.Unary, @@ -504,7 +611,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBlobTakedown */ getBlobTakedown: { - name: "GetBlobTakedown", + name: 'GetBlobTakedown', I: GetBlobTakedownRequest, O: GetBlobTakedownResponse, kind: MethodKind.Unary, @@ -513,7 +620,7 @@ export const Service = { * @generated from rpc bsky.Service.UpdateTakedown */ updateTakedown: { - name: "UpdateTakedown", + name: 'UpdateTakedown', I: UpdateTakedownRequest, O: UpdateTakedownResponse, kind: MethodKind.Unary, @@ -524,11 +631,10 @@ export const Service = { * @generated from rpc bsky.Service.Ping */ ping: { - name: "Ping", + name: 'Ping', I: PingRequest, O: PingResponse, kind: MethodKind.Unary, }, - } -} as const; - + }, +} as const diff --git a/packages/bsky/src/data-plane/bsky_pb.ts b/packages/bsky/src/data-plane/bsky_pb.ts index 600086aa596..5cc0e32c910 100644 --- a/packages/bsky/src/data-plane/bsky_pb.ts +++ b/packages/bsky/src/data-plane/bsky_pb.ts @@ -3,8 +3,15 @@ /* eslint-disable */ // @ts-nocheck -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import type { + BinaryReadOptions, + FieldList, + JsonReadOptions, + JsonValue, + PartialMessage, + PlainMessage, +} from '@bufbuild/protobuf' +import { Message, proto3, Timestamp } from '@bufbuild/protobuf' /** * - Return follow uris where user A follows users B, C, D, … @@ -16,39 +23,66 @@ export class GetActorFollowsActorsRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorFollowsActorsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorFollowsActorsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "target_dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFollowsActorsRequest { - return new GetActorFollowsActorsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFollowsActorsRequest { - return new GetActorFollowsActorsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorFollowsActorsRequest { - return new GetActorFollowsActorsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetActorFollowsActorsRequest | PlainMessage | undefined, b: GetActorFollowsActorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorFollowsActorsRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { + no: 2, + name: 'target_dids', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetActorFollowsActorsRequest + | PlainMessage + | undefined, + b: + | GetActorFollowsActorsRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetActorFollowsActorsRequest, a, b) } } @@ -59,33 +93,60 @@ export class GetActorFollowsActorsResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorFollowsActorsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorFollowsActorsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFollowsActorsResponse { - return new GetActorFollowsActorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFollowsActorsResponse { - return new GetActorFollowsActorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorFollowsActorsResponse { - return new GetActorFollowsActorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetActorFollowsActorsResponse | PlainMessage | undefined, b: GetActorFollowsActorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorFollowsActorsResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetActorFollowsActorsResponse + | PlainMessage + | undefined, + b: + | GetActorFollowsActorsResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetActorFollowsActorsResponse, a, b) } } @@ -99,45 +160,57 @@ export class GetFollowersRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFollowersRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFollowersRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersRequest { - return new GetFollowersRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFollowersRequest { + return new GetFollowersRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersRequest { - return new GetFollowersRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFollowersRequest { + return new GetFollowersRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetFollowersRequest { - return new GetFollowersRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFollowersRequest { + return new GetFollowersRequest().fromJsonString(jsonString, options) } - static equals(a: GetFollowersRequest | PlainMessage | undefined, b: GetFollowersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFollowersRequest, a, b); + static equals( + a: GetFollowersRequest | PlainMessage | undefined, + b: GetFollowersRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetFollowersRequest, a, b) } } @@ -148,39 +221,57 @@ export class GetFollowersResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFollowersResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFollowersResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersResponse { - return new GetFollowersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersResponse { - return new GetFollowersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFollowersResponse { - return new GetFollowersResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetFollowersResponse | PlainMessage | undefined, b: GetFollowersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFollowersResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFollowersResponse { + return new GetFollowersResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFollowersResponse { + return new GetFollowersResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFollowersResponse { + return new GetFollowersResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetFollowersResponse | PlainMessage | undefined, + b: GetFollowersResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetFollowersResponse, a, b) } } @@ -194,45 +285,57 @@ export class GetFollowsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFollowsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFollowsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsRequest { - return new GetFollowsRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFollowsRequest { + return new GetFollowsRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsRequest { - return new GetFollowsRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFollowsRequest { + return new GetFollowsRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetFollowsRequest { - return new GetFollowsRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFollowsRequest { + return new GetFollowsRequest().fromJsonString(jsonString, options) } - static equals(a: GetFollowsRequest | PlainMessage | undefined, b: GetFollowsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFollowsRequest, a, b); + static equals( + a: GetFollowsRequest | PlainMessage | undefined, + b: GetFollowsRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetFollowsRequest, a, b) } } @@ -243,39 +346,57 @@ export class GetFollowsResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFollowsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFollowsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsResponse { - return new GetFollowsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsResponse { - return new GetFollowsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFollowsResponse { - return new GetFollowsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetFollowsResponse | PlainMessage | undefined, b: GetFollowsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFollowsResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFollowsResponse { + return new GetFollowsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFollowsResponse { + return new GetFollowsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFollowsResponse { + return new GetFollowsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetFollowsResponse | PlainMessage | undefined, + b: GetFollowsResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetFollowsResponse, a, b) } } @@ -289,33 +410,51 @@ export class GetFollowersCountRequest extends Message /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFollowersCountRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFollowersCountRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersCountRequest { - return new GetFollowersCountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersCountRequest { - return new GetFollowersCountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFollowersCountRequest { - return new GetFollowersCountRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetFollowersCountRequest | PlainMessage | undefined, b: GetFollowersCountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFollowersCountRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetFollowersCountRequest + | PlainMessage + | undefined, + b: + | GetFollowersCountRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetFollowersCountRequest, a, b) } } @@ -326,33 +465,51 @@ export class GetFollowersCountResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFollowersCountResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFollowersCountResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersCountResponse { - return new GetFollowersCountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersCountResponse { - return new GetFollowersCountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFollowersCountResponse { - return new GetFollowersCountResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetFollowersCountResponse | PlainMessage | undefined, b: GetFollowersCountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFollowersCountResponse, a, b); + { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetFollowersCountResponse + | PlainMessage + | undefined, + b: + | GetFollowersCountResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetFollowersCountResponse, a, b) } } @@ -366,33 +523,51 @@ export class GetFollowsCountRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFollowsCountRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFollowsCountRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsCountRequest { - return new GetFollowsCountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsCountRequest { - return new GetFollowsCountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFollowsCountRequest { - return new GetFollowsCountRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetFollowsCountRequest | PlainMessage | undefined, b: GetFollowsCountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFollowsCountRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetFollowsCountRequest + | PlainMessage + | undefined, + b: + | GetFollowsCountRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetFollowsCountRequest, a, b) } } @@ -403,33 +578,51 @@ export class GetFollowsCountResponse extends Message { /** * @generated from field: int32 count = 1; */ - count = 0; + count = 0 constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFollowsCountResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFollowsCountResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsCountResponse { - return new GetFollowsCountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsCountResponse { - return new GetFollowsCountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFollowsCountResponse { - return new GetFollowsCountResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetFollowsCountResponse | PlainMessage | undefined, b: GetFollowsCountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFollowsCountResponse, a, b); + { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetFollowsCountResponse + | PlainMessage + | undefined, + b: + | GetFollowsCountResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetFollowsCountResponse, a, b) } } @@ -443,45 +636,68 @@ export class GetLikesBySubjectRequest extends Message /** * @generated from field: string subject_uri = 1; */ - subjectUri = ""; + subjectUri = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLikesBySubjectRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLikesBySubjectRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesBySubjectRequest { - return new GetLikesBySubjectRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesBySubjectRequest { - return new GetLikesBySubjectRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLikesBySubjectRequest { - return new GetLikesBySubjectRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetLikesBySubjectRequest | PlainMessage | undefined, b: GetLikesBySubjectRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLikesBySubjectRequest, a, b); + { + no: 1, + name: 'subject_uri', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetLikesBySubjectRequest + | PlainMessage + | undefined, + b: + | GetLikesBySubjectRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetLikesBySubjectRequest, a, b) } } @@ -492,39 +708,63 @@ export class GetLikesBySubjectResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLikesBySubjectResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLikesBySubjectResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesBySubjectResponse { - return new GetLikesBySubjectResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesBySubjectResponse { - return new GetLikesBySubjectResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLikesBySubjectResponse { - return new GetLikesBySubjectResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetLikesBySubjectResponse | PlainMessage | undefined, b: GetLikesBySubjectResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLikesBySubjectResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetLikesBySubjectResponse + | PlainMessage + | undefined, + b: + | GetLikesBySubjectResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetLikesBySubjectResponse, a, b) } } @@ -538,39 +778,65 @@ export class GetLikeByActorAndSubjectRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLikeByActorAndSubjectRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLikeByActorAndSubjectRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLikeByActorAndSubjectRequest { - return new GetLikeByActorAndSubjectRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLikeByActorAndSubjectRequest { - return new GetLikeByActorAndSubjectRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLikeByActorAndSubjectRequest { - return new GetLikeByActorAndSubjectRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetLikeByActorAndSubjectRequest | PlainMessage | undefined, b: GetLikeByActorAndSubjectRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLikeByActorAndSubjectRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { + no: 2, + name: 'subject_uri', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetLikeByActorAndSubjectRequest + | PlainMessage + | undefined, + b: + | GetLikeByActorAndSubjectRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetLikeByActorAndSubjectRequest, a, b) } } @@ -581,33 +847,54 @@ export class GetLikeByActorAndSubjectResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLikeByActorAndSubjectResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLikeByActorAndSubjectResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLikeByActorAndSubjectResponse { - return new GetLikeByActorAndSubjectResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLikeByActorAndSubjectResponse { - return new GetLikeByActorAndSubjectResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLikeByActorAndSubjectResponse { - return new GetLikeByActorAndSubjectResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetLikeByActorAndSubjectResponse | PlainMessage | undefined, b: GetLikeByActorAndSubjectResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLikeByActorAndSubjectResponse, a, b); + { no: 1, name: 'uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetLikeByActorAndSubjectResponse + | PlainMessage + | undefined, + b: + | GetLikeByActorAndSubjectResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetLikeByActorAndSubjectResponse, a, b) } } @@ -621,45 +908,57 @@ export class GetActorLikesRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorLikesRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorLikesRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorLikesRequest { - return new GetActorLikesRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorLikesRequest { + return new GetActorLikesRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorLikesRequest { - return new GetActorLikesRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorLikesRequest { + return new GetActorLikesRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetActorLikesRequest { - return new GetActorLikesRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorLikesRequest { + return new GetActorLikesRequest().fromJsonString(jsonString, options) } - static equals(a: GetActorLikesRequest | PlainMessage | undefined, b: GetActorLikesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorLikesRequest, a, b); + static equals( + a: GetActorLikesRequest | PlainMessage | undefined, + b: GetActorLikesRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetActorLikesRequest, a, b) } } @@ -670,39 +969,57 @@ export class GetActorLikesResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorLikesResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorLikesResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorLikesResponse { - return new GetActorLikesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorLikesResponse { - return new GetActorLikesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorLikesResponse { - return new GetActorLikesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetActorLikesResponse | PlainMessage | undefined, b: GetActorLikesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorLikesResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorLikesResponse { + return new GetActorLikesResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorLikesResponse { + return new GetActorLikesResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorLikesResponse { + return new GetActorLikesResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetActorLikesResponse | PlainMessage | undefined, + b: GetActorLikesResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetActorLikesResponse, a, b) } } @@ -716,33 +1033,50 @@ export class GetLikesCountRequest extends Message { /** * @generated from field: string subject_uri = 1; */ - subjectUri = ""; + subjectUri = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLikesCountRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLikesCountRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { + no: 1, + name: 'subject_uri', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesCountRequest { - return new GetLikesCountRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLikesCountRequest { + return new GetLikesCountRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesCountRequest { - return new GetLikesCountRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLikesCountRequest { + return new GetLikesCountRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetLikesCountRequest { - return new GetLikesCountRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLikesCountRequest { + return new GetLikesCountRequest().fromJsonString(jsonString, options) } - static equals(a: GetLikesCountRequest | PlainMessage | undefined, b: GetLikesCountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLikesCountRequest, a, b); + static equals( + a: GetLikesCountRequest | PlainMessage | undefined, + b: GetLikesCountRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetLikesCountRequest, a, b) } } @@ -753,33 +1087,45 @@ export class GetLikesCountResponse extends Message { /** * @generated from field: int32 count = 1; */ - count = 0; + count = 0 constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLikesCountResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLikesCountResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); + { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesCountResponse { - return new GetLikesCountResponse().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLikesCountResponse { + return new GetLikesCountResponse().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesCountResponse { - return new GetLikesCountResponse().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLikesCountResponse { + return new GetLikesCountResponse().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetLikesCountResponse { - return new GetLikesCountResponse().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLikesCountResponse { + return new GetLikesCountResponse().fromJsonString(jsonString, options) } - static equals(a: GetLikesCountResponse | PlainMessage | undefined, b: GetLikesCountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLikesCountResponse, a, b); + static equals( + a: GetLikesCountResponse | PlainMessage | undefined, + b: GetLikesCountResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetLikesCountResponse, a, b) } } @@ -793,45 +1139,68 @@ export class GetRepostsBySubjectRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetRepostsBySubjectRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetRepostsBySubjectRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsBySubjectRequest { - return new GetRepostsBySubjectRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsBySubjectRequest { - return new GetRepostsBySubjectRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetRepostsBySubjectRequest { - return new GetRepostsBySubjectRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetRepostsBySubjectRequest | PlainMessage | undefined, b: GetRepostsBySubjectRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetRepostsBySubjectRequest, a, b); + { + no: 1, + name: 'subject_uri', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetRepostsBySubjectRequest + | PlainMessage + | undefined, + b: + | GetRepostsBySubjectRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetRepostsBySubjectRequest, a, b) } } @@ -842,39 +1211,63 @@ export class GetRepostsBySubjectResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetRepostsBySubjectResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetRepostsBySubjectResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsBySubjectResponse { - return new GetRepostsBySubjectResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsBySubjectResponse { - return new GetRepostsBySubjectResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetRepostsBySubjectResponse { - return new GetRepostsBySubjectResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetRepostsBySubjectResponse | PlainMessage | undefined, b: GetRepostsBySubjectResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetRepostsBySubjectResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetRepostsBySubjectResponse + | PlainMessage + | undefined, + b: + | GetRepostsBySubjectResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetRepostsBySubjectResponse, a, b) } } @@ -888,39 +1281,65 @@ export class GetRepostByActorAndSubjectRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetRepostByActorAndSubjectRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetRepostByActorAndSubjectRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostByActorAndSubjectRequest { - return new GetRepostByActorAndSubjectRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostByActorAndSubjectRequest { - return new GetRepostByActorAndSubjectRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetRepostByActorAndSubjectRequest { - return new GetRepostByActorAndSubjectRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetRepostByActorAndSubjectRequest | PlainMessage | undefined, b: GetRepostByActorAndSubjectRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetRepostByActorAndSubjectRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { + no: 2, + name: 'subject_uri', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetRepostByActorAndSubjectRequest + | PlainMessage + | undefined, + b: + | GetRepostByActorAndSubjectRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetRepostByActorAndSubjectRequest, a, b) } } @@ -931,33 +1350,54 @@ export class GetRepostByActorAndSubjectResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetRepostByActorAndSubjectResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetRepostByActorAndSubjectResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostByActorAndSubjectResponse { - return new GetRepostByActorAndSubjectResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostByActorAndSubjectResponse { - return new GetRepostByActorAndSubjectResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetRepostByActorAndSubjectResponse { - return new GetRepostByActorAndSubjectResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetRepostByActorAndSubjectResponse | PlainMessage | undefined, b: GetRepostByActorAndSubjectResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetRepostByActorAndSubjectResponse, a, b); + { no: 1, name: 'uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetRepostByActorAndSubjectResponse + | PlainMessage + | undefined, + b: + | GetRepostByActorAndSubjectResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetRepostByActorAndSubjectResponse, a, b) } } @@ -971,45 +1411,63 @@ export class GetActorRepostsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorRepostsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorRepostsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorRepostsRequest { - return new GetActorRepostsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorRepostsRequest { - return new GetActorRepostsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorRepostsRequest { - return new GetActorRepostsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetActorRepostsRequest | PlainMessage | undefined, b: GetActorRepostsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorRepostsRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetActorRepostsRequest + | PlainMessage + | undefined, + b: + | GetActorRepostsRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetActorRepostsRequest, a, b) } } @@ -1020,39 +1478,63 @@ export class GetActorRepostsResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorRepostsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorRepostsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorRepostsResponse { - return new GetActorRepostsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorRepostsResponse { - return new GetActorRepostsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorRepostsResponse { - return new GetActorRepostsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetActorRepostsResponse | PlainMessage | undefined, b: GetActorRepostsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorRepostsResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetActorRepostsResponse + | PlainMessage + | undefined, + b: + | GetActorRepostsResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetActorRepostsResponse, a, b) } } @@ -1066,33 +1548,56 @@ export class GetRepostsCountRequest extends Message { /** * @generated from field: string subject_uri = 1; */ - subjectUri = ""; + subjectUri = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetRepostsCountRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetRepostsCountRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsCountRequest { - return new GetRepostsCountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsCountRequest { - return new GetRepostsCountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetRepostsCountRequest { - return new GetRepostsCountRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetRepostsCountRequest | PlainMessage | undefined, b: GetRepostsCountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetRepostsCountRequest, a, b); + { + no: 1, + name: 'subject_uri', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetRepostsCountRequest + | PlainMessage + | undefined, + b: + | GetRepostsCountRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetRepostsCountRequest, a, b) } } @@ -1103,33 +1608,51 @@ export class GetRepostsCountResponse extends Message { /** * @generated from field: int32 count = 1; */ - count = 0; + count = 0 constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetRepostsCountResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetRepostsCountResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsCountResponse { - return new GetRepostsCountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsCountResponse { - return new GetRepostsCountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetRepostsCountResponse { - return new GetRepostsCountResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetRepostsCountResponse | PlainMessage | undefined, b: GetRepostsCountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetRepostsCountResponse, a, b); + { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetRepostsCountResponse + | PlainMessage + | undefined, + b: + | GetRepostsCountResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetRepostsCountResponse, a, b) } } @@ -1144,33 +1667,51 @@ export class GetProfilesRequest extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = []; + dids: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetProfilesRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetProfilesRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetProfilesRequest { - return new GetProfilesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetProfilesRequest { - return new GetProfilesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetProfilesRequest { - return new GetProfilesRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetProfilesRequest | PlainMessage | undefined, b: GetProfilesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetProfilesRequest, a, b); + { + no: 1, + name: 'dids', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetProfilesRequest { + return new GetProfilesRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetProfilesRequest { + return new GetProfilesRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetProfilesRequest { + return new GetProfilesRequest().fromJsonString(jsonString, options) + } + + static equals( + a: GetProfilesRequest | PlainMessage | undefined, + b: GetProfilesRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetProfilesRequest, a, b) } } @@ -1181,33 +1722,51 @@ export class GetProfilesResponse extends Message { /** * @generated from field: repeated bytes records = 1; */ - records: Uint8Array[] = []; + records: Uint8Array[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetProfilesResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetProfilesResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetProfilesResponse { - return new GetProfilesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetProfilesResponse { - return new GetProfilesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetProfilesResponse { - return new GetProfilesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetProfilesResponse | PlainMessage | undefined, b: GetProfilesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetProfilesResponse, a, b); + { + no: 1, + name: 'records', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetProfilesResponse { + return new GetProfilesResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetProfilesResponse { + return new GetProfilesResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetProfilesResponse { + return new GetProfilesResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetProfilesResponse | PlainMessage | undefined, + b: GetProfilesResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetProfilesResponse, a, b) } } @@ -1221,33 +1780,51 @@ export class GetHandlesRequest extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = []; + dids: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetHandlesRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetHandlesRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetHandlesRequest { - return new GetHandlesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetHandlesRequest { - return new GetHandlesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetHandlesRequest { - return new GetHandlesRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetHandlesRequest | PlainMessage | undefined, b: GetHandlesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetHandlesRequest, a, b); + { + no: 1, + name: 'dids', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetHandlesRequest { + return new GetHandlesRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetHandlesRequest { + return new GetHandlesRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetHandlesRequest { + return new GetHandlesRequest().fromJsonString(jsonString, options) + } + + static equals( + a: GetHandlesRequest | PlainMessage | undefined, + b: GetHandlesRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetHandlesRequest, a, b) } } @@ -1258,33 +1835,51 @@ export class GetHandlesResponse extends Message { /** * @generated from field: repeated string handles = 1; */ - handles: string[] = []; + handles: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetHandlesResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetHandlesResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "handles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetHandlesResponse { - return new GetHandlesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetHandlesResponse { - return new GetHandlesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetHandlesResponse { - return new GetHandlesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetHandlesResponse | PlainMessage | undefined, b: GetHandlesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetHandlesResponse, a, b); + { + no: 1, + name: 'handles', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetHandlesResponse { + return new GetHandlesResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetHandlesResponse { + return new GetHandlesResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetHandlesResponse { + return new GetHandlesResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetHandlesResponse | PlainMessage | undefined, + b: GetHandlesResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetHandlesResponse, a, b) } } @@ -1299,33 +1894,57 @@ export class GetDidsByHandlesRequest extends Message { /** * @generated from field: repeated string handles = 1; */ - handles: string[] = []; + handles: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetDidsByHandlesRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetDidsByHandlesRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "handles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDidsByHandlesRequest { - return new GetDidsByHandlesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDidsByHandlesRequest { - return new GetDidsByHandlesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDidsByHandlesRequest { - return new GetDidsByHandlesRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetDidsByHandlesRequest | PlainMessage | undefined, b: GetDidsByHandlesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDidsByHandlesRequest, a, b); + { + no: 1, + name: 'handles', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetDidsByHandlesRequest + | PlainMessage + | undefined, + b: + | GetDidsByHandlesRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetDidsByHandlesRequest, a, b) } } @@ -1336,33 +1955,57 @@ export class GetDidsByHandlesResponse extends Message /** * @generated from field: repeated string dids = 1; */ - dids: string[] = []; + dids: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetDidsByHandlesResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetDidsByHandlesResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDidsByHandlesResponse { - return new GetDidsByHandlesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDidsByHandlesResponse { - return new GetDidsByHandlesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDidsByHandlesResponse { - return new GetDidsByHandlesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetDidsByHandlesResponse | PlainMessage | undefined, b: GetDidsByHandlesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDidsByHandlesResponse, a, b); + { + no: 1, + name: 'dids', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetDidsByHandlesResponse + | PlainMessage + | undefined, + b: + | GetDidsByHandlesResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetDidsByHandlesResponse, a, b) } } @@ -1376,45 +2019,57 @@ export class GetListMembersRequest extends Message { /** * @generated from field: string list_uri = 1; */ - listUri = ""; + listUri = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListMembersRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListMembersRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembersRequest { - return new GetListMembersRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListMembersRequest { + return new GetListMembersRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembersRequest { - return new GetListMembersRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListMembersRequest { + return new GetListMembersRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetListMembersRequest { - return new GetListMembersRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListMembersRequest { + return new GetListMembersRequest().fromJsonString(jsonString, options) } - static equals(a: GetListMembersRequest | PlainMessage | undefined, b: GetListMembersRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListMembersRequest, a, b); + static equals( + a: GetListMembersRequest | PlainMessage | undefined, + b: GetListMembersRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetListMembersRequest, a, b) } } @@ -1425,39 +2080,63 @@ export class GetListMembersResponse extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = []; + dids: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListMembersResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListMembersResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembersResponse { - return new GetListMembersResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembersResponse { - return new GetListMembersResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetListMembersResponse { - return new GetListMembersResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetListMembersResponse | PlainMessage | undefined, b: GetListMembersResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListMembersResponse, a, b); + { + no: 1, + name: 'dids', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListMembersResponse { + return new GetListMembersResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListMembersResponse { + return new GetListMembersResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListMembersResponse { + return new GetListMembersResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetListMembersResponse + | PlainMessage + | undefined, + b: + | GetListMembersResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetListMembersResponse, a, b) } } @@ -1471,39 +2150,63 @@ export class GetListMembershipRequest extends Message /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: repeated string list_uris = 2; */ - listUris: string[] = []; + listUris: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListMembershipRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListMembershipRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembershipRequest { - return new GetListMembershipRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembershipRequest { - return new GetListMembershipRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetListMembershipRequest { - return new GetListMembershipRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetListMembershipRequest | PlainMessage | undefined, b: GetListMembershipRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListMembershipRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { + no: 2, + name: 'list_uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListMembershipRequest { + return new GetListMembershipRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListMembershipRequest { + return new GetListMembershipRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListMembershipRequest { + return new GetListMembershipRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetListMembershipRequest + | PlainMessage + | undefined, + b: + | GetListMembershipRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetListMembershipRequest, a, b) } } @@ -1514,33 +2217,57 @@ export class GetListMembershipResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListMembershipResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListMembershipResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "listitem_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembershipResponse { - return new GetListMembershipResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembershipResponse { - return new GetListMembershipResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetListMembershipResponse { - return new GetListMembershipResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetListMembershipResponse | PlainMessage | undefined, b: GetListMembershipResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListMembershipResponse, a, b); + { + no: 1, + name: 'listitem_uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListMembershipResponse { + return new GetListMembershipResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListMembershipResponse { + return new GetListMembershipResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListMembershipResponse { + return new GetListMembershipResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetListMembershipResponse + | PlainMessage + | undefined, + b: + | GetListMembershipResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetListMembershipResponse, a, b) } } @@ -1554,33 +2281,45 @@ export class GetListRequest extends Message { /** * @generated from field: string list_uri = 1; */ - listUri = ""; + listUri = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetListRequest { - return new GetListRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListRequest { + return new GetListRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetListRequest { - return new GetListRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListRequest { + return new GetListRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetListRequest { - return new GetListRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListRequest { + return new GetListRequest().fromJsonString(jsonString, options) } - static equals(a: GetListRequest | PlainMessage | undefined, b: GetListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListRequest, a, b); + static equals( + a: GetListRequest | PlainMessage | undefined, + b: GetListRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetListRequest, a, b) } } @@ -1591,33 +2330,45 @@ export class GetListResponse extends Message { /** * @generated from field: bytes record = 1; */ - record = new Uint8Array(0); + record = new Uint8Array(0) constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "record", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); + { no: 1, name: 'record', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetListResponse { - return new GetListResponse().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListResponse { + return new GetListResponse().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetListResponse { - return new GetListResponse().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListResponse { + return new GetListResponse().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetListResponse { - return new GetListResponse().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListResponse { + return new GetListResponse().fromJsonString(jsonString, options) } - static equals(a: GetListResponse | PlainMessage | undefined, b: GetListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListResponse, a, b); + static equals( + a: GetListResponse | PlainMessage | undefined, + b: GetListResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetListResponse, a, b) } } @@ -1631,33 +2382,45 @@ export class GetListCountRequest extends Message { /** * @generated from field: string list_uri = 1; */ - listUri = ""; + listUri = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListCountRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListCountRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetListCountRequest { - return new GetListCountRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListCountRequest { + return new GetListCountRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetListCountRequest { - return new GetListCountRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListCountRequest { + return new GetListCountRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetListCountRequest { - return new GetListCountRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListCountRequest { + return new GetListCountRequest().fromJsonString(jsonString, options) } - static equals(a: GetListCountRequest | PlainMessage | undefined, b: GetListCountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListCountRequest, a, b); + static equals( + a: GetListCountRequest | PlainMessage | undefined, + b: GetListCountRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetListCountRequest, a, b) } } @@ -1668,33 +2431,45 @@ export class GetListCountResponse extends Message { /** * @generated from field: int32 count = 1; */ - count = 0; + count = 0 constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListCountResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListCountResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); + { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetListCountResponse { - return new GetListCountResponse().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListCountResponse { + return new GetListCountResponse().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetListCountResponse { - return new GetListCountResponse().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListCountResponse { + return new GetListCountResponse().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetListCountResponse { - return new GetListCountResponse().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListCountResponse { + return new GetListCountResponse().fromJsonString(jsonString, options) } - static equals(a: GetListCountResponse | PlainMessage | undefined, b: GetListCountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListCountResponse, a, b); + static equals( + a: GetListCountResponse | PlainMessage | undefined, + b: GetListCountResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetListCountResponse, a, b) } } @@ -1708,39 +2483,57 @@ export class GetActorMutesActorRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorMutesActorRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorMutesActorRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorRequest { - return new GetActorMutesActorRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorRequest { - return new GetActorMutesActorRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorRequest { - return new GetActorMutesActorRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetActorMutesActorRequest | PlainMessage | undefined, b: GetActorMutesActorRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorMutesActorRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetActorMutesActorRequest + | PlainMessage + | undefined, + b: + | GetActorMutesActorRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetActorMutesActorRequest, a, b) } } @@ -1751,33 +2544,51 @@ export class GetActorMutesActorResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorMutesActorResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorMutesActorResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorResponse { - return new GetActorMutesActorResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorResponse { - return new GetActorMutesActorResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorResponse { - return new GetActorMutesActorResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetActorMutesActorResponse | PlainMessage | undefined, b: GetActorMutesActorResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorMutesActorResponse, a, b); + { no: 1, name: 'muted', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetActorMutesActorResponse + | PlainMessage + | undefined, + b: + | GetActorMutesActorResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetActorMutesActorResponse, a, b) } } @@ -1791,45 +2602,57 @@ export class GetMutesRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetMutesRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetMutesRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetMutesRequest { - return new GetMutesRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetMutesRequest { + return new GetMutesRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetMutesRequest { - return new GetMutesRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetMutesRequest { + return new GetMutesRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetMutesRequest { - return new GetMutesRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetMutesRequest { + return new GetMutesRequest().fromJsonString(jsonString, options) } - static equals(a: GetMutesRequest | PlainMessage | undefined, b: GetMutesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetMutesRequest, a, b); + static equals( + a: GetMutesRequest | PlainMessage | undefined, + b: GetMutesRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetMutesRequest, a, b) } } @@ -1840,39 +2663,57 @@ export class GetMutesResponse extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = []; + dids: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetMutesResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetMutesResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetMutesResponse { - return new GetMutesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetMutesResponse { - return new GetMutesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetMutesResponse { - return new GetMutesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetMutesResponse | PlainMessage | undefined, b: GetMutesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetMutesResponse, a, b); + { + no: 1, + name: 'dids', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetMutesResponse { + return new GetMutesResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetMutesResponse { + return new GetMutesResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetMutesResponse { + return new GetMutesResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetMutesResponse | PlainMessage | undefined, + b: GetMutesResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetMutesResponse, a, b) } } @@ -1887,39 +2728,60 @@ export class GetActorMutesActorViaListRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorMutesActorViaListRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorMutesActorViaListRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorViaListRequest { - return new GetActorMutesActorViaListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorViaListRequest { - return new GetActorMutesActorViaListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorViaListRequest { - return new GetActorMutesActorViaListRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetActorMutesActorViaListRequest | PlainMessage | undefined, b: GetActorMutesActorViaListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorMutesActorViaListRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetActorMutesActorViaListRequest + | PlainMessage + | undefined, + b: + | GetActorMutesActorViaListRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetActorMutesActorViaListRequest, a, b) } } @@ -1930,33 +2792,54 @@ export class GetActorMutesActorViaListResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorMutesActorViaListResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorMutesActorViaListResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorViaListResponse { - return new GetActorMutesActorViaListResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorViaListResponse { - return new GetActorMutesActorViaListResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorViaListResponse { - return new GetActorMutesActorViaListResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetActorMutesActorViaListResponse | PlainMessage | undefined, b: GetActorMutesActorViaListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorMutesActorViaListResponse, a, b); + { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetActorMutesActorViaListResponse + | PlainMessage + | undefined, + b: + | GetActorMutesActorViaListResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetActorMutesActorViaListResponse, a, b) } } @@ -1970,39 +2853,60 @@ export class GetMutelistSubscriptionRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetMutelistSubscriptionRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetMutelistSubscriptionRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionRequest { - return new GetMutelistSubscriptionRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionRequest { - return new GetMutelistSubscriptionRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionRequest { - return new GetMutelistSubscriptionRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetMutelistSubscriptionRequest | PlainMessage | undefined, b: GetMutelistSubscriptionRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetMutelistSubscriptionRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetMutelistSubscriptionRequest + | PlainMessage + | undefined, + b: + | GetMutelistSubscriptionRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetMutelistSubscriptionRequest, a, b) } } @@ -2013,33 +2917,54 @@ export class GetMutelistSubscriptionResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetMutelistSubscriptionResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetMutelistSubscriptionResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subscribed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionResponse { - return new GetMutelistSubscriptionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionResponse { - return new GetMutelistSubscriptionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionResponse { - return new GetMutelistSubscriptionResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetMutelistSubscriptionResponse | PlainMessage | undefined, b: GetMutelistSubscriptionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetMutelistSubscriptionResponse, a, b); + { no: 1, name: 'subscribed', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetMutelistSubscriptionResponse + | PlainMessage + | undefined, + b: + | GetMutelistSubscriptionResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetMutelistSubscriptionResponse, a, b) } } @@ -2053,45 +2978,66 @@ export class GetMutelistSubscriptionsRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetMutelistSubscriptionsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetMutelistSubscriptionsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionsRequest { - return new GetMutelistSubscriptionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionsRequest { - return new GetMutelistSubscriptionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionsRequest { - return new GetMutelistSubscriptionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetMutelistSubscriptionsRequest | PlainMessage | undefined, b: GetMutelistSubscriptionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetMutelistSubscriptionsRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetMutelistSubscriptionsRequest + | PlainMessage + | undefined, + b: + | GetMutelistSubscriptionsRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetMutelistSubscriptionsRequest, a, b) } } @@ -2102,39 +3048,66 @@ export class GetMutelistSubscriptionsResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetMutelistSubscriptionsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetMutelistSubscriptionsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionsResponse { - return new GetMutelistSubscriptionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionsResponse { - return new GetMutelistSubscriptionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionsResponse { - return new GetMutelistSubscriptionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetMutelistSubscriptionsResponse | PlainMessage | undefined, b: GetMutelistSubscriptionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetMutelistSubscriptionsResponse, a, b); + { + no: 1, + name: 'list_uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetMutelistSubscriptionsResponse + | PlainMessage + | undefined, + b: + | GetMutelistSubscriptionsResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetMutelistSubscriptionsResponse, a, b) } } @@ -2149,39 +3122,60 @@ export class GetBidirectionalBlockRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBidirectionalBlockRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBidirectionalBlockRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockRequest { - return new GetBidirectionalBlockRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockRequest { - return new GetBidirectionalBlockRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockRequest { - return new GetBidirectionalBlockRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetBidirectionalBlockRequest | PlainMessage | undefined, b: GetBidirectionalBlockRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBidirectionalBlockRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetBidirectionalBlockRequest + | PlainMessage + | undefined, + b: + | GetBidirectionalBlockRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBidirectionalBlockRequest, a, b) } } @@ -2192,33 +3186,54 @@ export class GetBidirectionalBlockResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBidirectionalBlockResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBidirectionalBlockResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockResponse { - return new GetBidirectionalBlockResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockResponse { - return new GetBidirectionalBlockResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockResponse { - return new GetBidirectionalBlockResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBidirectionalBlockResponse | PlainMessage | undefined, b: GetBidirectionalBlockResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBidirectionalBlockResponse, a, b); + { no: 1, name: 'block_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetBidirectionalBlockResponse + | PlainMessage + | undefined, + b: + | GetBidirectionalBlockResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBidirectionalBlockResponse, a, b) } } @@ -2232,45 +3247,57 @@ export class GetBlocksRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBlocksRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBlocksRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocksRequest { - return new GetBlocksRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBlocksRequest { + return new GetBlocksRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocksRequest { - return new GetBlocksRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBlocksRequest { + return new GetBlocksRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetBlocksRequest { - return new GetBlocksRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBlocksRequest { + return new GetBlocksRequest().fromJsonString(jsonString, options) } - static equals(a: GetBlocksRequest | PlainMessage | undefined, b: GetBlocksRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlocksRequest, a, b); + static equals( + a: GetBlocksRequest | PlainMessage | undefined, + b: GetBlocksRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetBlocksRequest, a, b) } } @@ -2281,39 +3308,57 @@ export class GetBlocksResponse extends Message { /** * @generated from field: repeated string block_uris = 1; */ - blockUris: string[] = []; + blockUris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBlocksResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBlocksResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "block_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocksResponse { - return new GetBlocksResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocksResponse { - return new GetBlocksResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlocksResponse { - return new GetBlocksResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBlocksResponse | PlainMessage | undefined, b: GetBlocksResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlocksResponse, a, b); + { + no: 1, + name: 'block_uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBlocksResponse { + return new GetBlocksResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBlocksResponse { + return new GetBlocksResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBlocksResponse { + return new GetBlocksResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetBlocksResponse | PlainMessage | undefined, + b: GetBlocksResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetBlocksResponse, a, b) } } @@ -2328,39 +3373,63 @@ export class GetBidirectionalBlockViaListRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBidirectionalBlockViaListRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBidirectionalBlockViaListRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockViaListRequest { - return new GetBidirectionalBlockViaListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockViaListRequest { - return new GetBidirectionalBlockViaListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockViaListRequest { - return new GetBidirectionalBlockViaListRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetBidirectionalBlockViaListRequest | PlainMessage | undefined, b: GetBidirectionalBlockViaListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBidirectionalBlockViaListRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromJson( + jsonValue, + options, + ) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetBidirectionalBlockViaListRequest + | PlainMessage + | undefined, + b: + | GetBidirectionalBlockViaListRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBidirectionalBlockViaListRequest, a, b) } } @@ -2371,33 +3440,57 @@ export class GetBidirectionalBlockViaListResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBidirectionalBlockViaListResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBidirectionalBlockViaListResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockViaListResponse { - return new GetBidirectionalBlockViaListResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockViaListResponse { - return new GetBidirectionalBlockViaListResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockViaListResponse { - return new GetBidirectionalBlockViaListResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBidirectionalBlockViaListResponse | PlainMessage | undefined, b: GetBidirectionalBlockViaListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBidirectionalBlockViaListResponse, a, b); + { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromJson( + jsonValue, + options, + ) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetBidirectionalBlockViaListResponse + | PlainMessage + | undefined, + b: + | GetBidirectionalBlockViaListResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBidirectionalBlockViaListResponse, a, b) } } @@ -2411,39 +3504,60 @@ export class GetBlocklistSubscriptionRequest extends Message) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBlocklistSubscriptionRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionRequest { - return new GetBlocklistSubscriptionRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionRequest { - return new GetBlocklistSubscriptionRequest().fromJson(jsonValue, options); - } + * @generated from field: string list_uri = 2; + */ + listUri = '' - static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionRequest { - return new GetBlocklistSubscriptionRequest().fromJsonString(jsonString, options); + constructor(data?: PartialMessage) { + super() + proto3.util.initPartial(data, this) } - static equals(a: GetBlocklistSubscriptionRequest | PlainMessage | undefined, b: GetBlocklistSubscriptionRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlocklistSubscriptionRequest, a, b); + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBlocklistSubscriptionRequest' + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetBlocklistSubscriptionRequest + | PlainMessage + | undefined, + b: + | GetBlocklistSubscriptionRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBlocklistSubscriptionRequest, a, b) } } @@ -2454,33 +3568,54 @@ export class GetBlocklistSubscriptionResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBlocklistSubscriptionResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBlocklistSubscriptionResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subscribed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionResponse { - return new GetBlocklistSubscriptionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionResponse { - return new GetBlocklistSubscriptionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionResponse { - return new GetBlocklistSubscriptionResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBlocklistSubscriptionResponse | PlainMessage | undefined, b: GetBlocklistSubscriptionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlocklistSubscriptionResponse, a, b); + { no: 1, name: 'subscribed', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetBlocklistSubscriptionResponse + | PlainMessage + | undefined, + b: + | GetBlocklistSubscriptionResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBlocklistSubscriptionResponse, a, b) } } @@ -2494,45 +3629,66 @@ export class GetBlocklistSubscriptionsRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBlocklistSubscriptionsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBlocklistSubscriptionsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionsRequest { - return new GetBlocklistSubscriptionsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionsRequest { - return new GetBlocklistSubscriptionsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionsRequest { - return new GetBlocklistSubscriptionsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetBlocklistSubscriptionsRequest | PlainMessage | undefined, b: GetBlocklistSubscriptionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlocklistSubscriptionsRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetBlocklistSubscriptionsRequest + | PlainMessage + | undefined, + b: + | GetBlocklistSubscriptionsRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBlocklistSubscriptionsRequest, a, b) } } @@ -2543,39 +3699,66 @@ export class GetBlocklistSubscriptionsResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBlocklistSubscriptionsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBlocklistSubscriptionsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionsResponse { - return new GetBlocklistSubscriptionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionsResponse { - return new GetBlocklistSubscriptionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionsResponse { - return new GetBlocklistSubscriptionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBlocklistSubscriptionsResponse | PlainMessage | undefined, b: GetBlocklistSubscriptionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlocklistSubscriptionsResponse, a, b); + { + no: 1, + name: 'list_uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetBlocklistSubscriptionsResponse + | PlainMessage + | undefined, + b: + | GetBlocklistSubscriptionsResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBlocklistSubscriptionsResponse, a, b) } } @@ -2590,45 +3773,63 @@ export class GetNotificationsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetNotificationsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetNotificationsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationsRequest { - return new GetNotificationsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationsRequest { - return new GetNotificationsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetNotificationsRequest { - return new GetNotificationsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetNotificationsRequest | PlainMessage | undefined, b: GetNotificationsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetNotificationsRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetNotificationsRequest { + return new GetNotificationsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetNotificationsRequest { + return new GetNotificationsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetNotificationsRequest { + return new GetNotificationsRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetNotificationsRequest + | PlainMessage + | undefined, + b: + | GetNotificationsRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetNotificationsRequest, a, b) } } @@ -2639,45 +3840,57 @@ export class Notification extends Message { /** * @generated from field: string uri = 1; */ - uri = ""; + uri = '' /** * @generated from field: string reason = 2; */ - reason = ""; + reason = '' /** * @generated from field: google.protobuf.Timestamp timestamp = 3; */ - timestamp?: Timestamp; + timestamp?: Timestamp constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.Notification"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.Notification' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "timestamp", kind: "message", T: Timestamp }, - ]); + { no: 1, name: 'uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'reason', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 3, name: 'timestamp', kind: 'message', T: Timestamp }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): Notification { - return new Notification().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): Notification { + return new Notification().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): Notification { - return new Notification().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): Notification { + return new Notification().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): Notification { - return new Notification().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): Notification { + return new Notification().fromJsonString(jsonString, options) } - static equals(a: Notification | PlainMessage | undefined, b: Notification | PlainMessage | undefined): boolean { - return proto3.util.equals(Notification, a, b); + static equals( + a: Notification | PlainMessage | undefined, + b: Notification | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(Notification, a, b) } } @@ -2688,39 +3901,63 @@ export class GetNotificationsResponse extends Message /** * @generated from field: repeated bsky.Notification notifications = 1; */ - notifications: Notification[] = []; + notifications: Notification[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetNotificationsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetNotificationsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "notifications", kind: "message", T: Notification, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationsResponse { - return new GetNotificationsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationsResponse { - return new GetNotificationsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetNotificationsResponse { - return new GetNotificationsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetNotificationsResponse | PlainMessage | undefined, b: GetNotificationsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetNotificationsResponse, a, b); + { + no: 1, + name: 'notifications', + kind: 'message', + T: Notification, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetNotificationsResponse { + return new GetNotificationsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetNotificationsResponse { + return new GetNotificationsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetNotificationsResponse { + return new GetNotificationsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetNotificationsResponse + | PlainMessage + | undefined, + b: + | GetNotificationsResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetNotificationsResponse, a, b) } } @@ -2734,39 +3971,60 @@ export class UpdateNotificationSeenRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.UpdateNotificationSeenRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.UpdateNotificationSeenRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateNotificationSeenRequest { - return new UpdateNotificationSeenRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateNotificationSeenRequest { - return new UpdateNotificationSeenRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateNotificationSeenRequest { - return new UpdateNotificationSeenRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateNotificationSeenRequest | PlainMessage | undefined, b: UpdateNotificationSeenRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateNotificationSeenRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'timestamp', kind: 'message', T: Timestamp }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | UpdateNotificationSeenRequest + | PlainMessage + | undefined, + b: + | UpdateNotificationSeenRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(UpdateNotificationSeenRequest, a, b) } } @@ -2775,29 +4033,49 @@ export class UpdateNotificationSeenRequest extends Message { constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.UpdateNotificationSeenResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateNotificationSeenResponse { - return new UpdateNotificationSeenResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateNotificationSeenResponse { - return new UpdateNotificationSeenResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateNotificationSeenResponse { - return new UpdateNotificationSeenResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateNotificationSeenResponse | PlainMessage | undefined, b: UpdateNotificationSeenResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateNotificationSeenResponse, a, b); + super() + proto3.util.initPartial(data, this) + } + + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.UpdateNotificationSeenResponse' + static readonly fields: FieldList = proto3.util.newFieldList(() => []) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | UpdateNotificationSeenResponse + | PlainMessage + | undefined, + b: + | UpdateNotificationSeenResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(UpdateNotificationSeenResponse, a, b) } } @@ -2811,33 +4089,51 @@ export class GetNotificationSeenRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetNotificationSeenRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetNotificationSeenRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationSeenRequest { - return new GetNotificationSeenRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationSeenRequest { - return new GetNotificationSeenRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetNotificationSeenRequest { - return new GetNotificationSeenRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetNotificationSeenRequest | PlainMessage | undefined, b: GetNotificationSeenRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetNotificationSeenRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetNotificationSeenRequest + | PlainMessage + | undefined, + b: + | GetNotificationSeenRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetNotificationSeenRequest, a, b) } } @@ -2848,33 +4144,51 @@ export class GetNotificationSeenResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetNotificationSeenResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetNotificationSeenResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "timestamp", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationSeenResponse { - return new GetNotificationSeenResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationSeenResponse { - return new GetNotificationSeenResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetNotificationSeenResponse { - return new GetNotificationSeenResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetNotificationSeenResponse | PlainMessage | undefined, b: GetNotificationSeenResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetNotificationSeenResponse, a, b); + { no: 1, name: 'timestamp', kind: 'message', T: Timestamp }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetNotificationSeenResponse + | PlainMessage + | undefined, + b: + | GetNotificationSeenResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetNotificationSeenResponse, a, b) } } @@ -2888,33 +4202,54 @@ export class GetUnreadNotificationCountRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetUnreadNotificationCountRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetUnreadNotificationCountRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetUnreadNotificationCountRequest { - return new GetUnreadNotificationCountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetUnreadNotificationCountRequest { - return new GetUnreadNotificationCountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetUnreadNotificationCountRequest { - return new GetUnreadNotificationCountRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetUnreadNotificationCountRequest | PlainMessage | undefined, b: GetUnreadNotificationCountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetUnreadNotificationCountRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetUnreadNotificationCountRequest + | PlainMessage + | undefined, + b: + | GetUnreadNotificationCountRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetUnreadNotificationCountRequest, a, b) } } @@ -2925,33 +4260,54 @@ export class GetUnreadNotificationCountResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetUnreadNotificationCountResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetUnreadNotificationCountResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetUnreadNotificationCountResponse { - return new GetUnreadNotificationCountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetUnreadNotificationCountResponse { - return new GetUnreadNotificationCountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetUnreadNotificationCountResponse { - return new GetUnreadNotificationCountResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetUnreadNotificationCountResponse | PlainMessage | undefined, b: GetUnreadNotificationCountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetUnreadNotificationCountResponse, a, b); + { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetUnreadNotificationCountResponse + | PlainMessage + | undefined, + b: + | GetUnreadNotificationCountResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetUnreadNotificationCountResponse, a, b) } } @@ -2965,33 +4321,57 @@ export class GetFeedGeneratorsRequest extends Message /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFeedGeneratorsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFeedGeneratorsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorsRequest { - return new GetFeedGeneratorsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorsRequest { - return new GetFeedGeneratorsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorsRequest { - return new GetFeedGeneratorsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetFeedGeneratorsRequest | PlainMessage | undefined, b: GetFeedGeneratorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFeedGeneratorsRequest, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetFeedGeneratorsRequest + | PlainMessage + | undefined, + b: + | GetFeedGeneratorsRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetFeedGeneratorsRequest, a, b) } } @@ -3002,33 +4382,57 @@ export class GetFeedGeneratorsResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFeedGeneratorsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFeedGeneratorsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorsResponse { - return new GetFeedGeneratorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorsResponse { - return new GetFeedGeneratorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorsResponse { - return new GetFeedGeneratorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetFeedGeneratorsResponse | PlainMessage | undefined, b: GetFeedGeneratorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFeedGeneratorsResponse, a, b); + { + no: 1, + name: 'records', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetFeedGeneratorsResponse + | PlainMessage + | undefined, + b: + | GetFeedGeneratorsResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetFeedGeneratorsResponse, a, b) } } @@ -3042,45 +4446,57 @@ export class GetActorFeedsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorFeedsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorFeedsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFeedsRequest { - return new GetActorFeedsRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFeedsRequest { - return new GetActorFeedsRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetActorFeedsRequest { - return new GetActorFeedsRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromJsonString(jsonString, options) } - static equals(a: GetActorFeedsRequest | PlainMessage | undefined, b: GetActorFeedsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorFeedsRequest, a, b); + static equals( + a: GetActorFeedsRequest | PlainMessage | undefined, + b: GetActorFeedsRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetActorFeedsRequest, a, b) } } @@ -3091,39 +4507,57 @@ export class GetActorFeedsResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetActorFeedsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetActorFeedsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFeedsResponse { - return new GetActorFeedsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFeedsResponse { - return new GetActorFeedsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetActorFeedsResponse { - return new GetActorFeedsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetActorFeedsResponse | PlainMessage | undefined, b: GetActorFeedsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetActorFeedsResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetActorFeedsResponse | PlainMessage | undefined, + b: GetActorFeedsResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetActorFeedsResponse, a, b) } } @@ -3138,45 +4572,63 @@ export class GetSuggestedFeedsRequest extends Message /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetSuggestedFeedsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetSuggestedFeedsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestedFeedsRequest { - return new GetSuggestedFeedsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestedFeedsRequest { - return new GetSuggestedFeedsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSuggestedFeedsRequest { - return new GetSuggestedFeedsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetSuggestedFeedsRequest | PlainMessage | undefined, b: GetSuggestedFeedsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSuggestedFeedsRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetSuggestedFeedsRequest + | PlainMessage + | undefined, + b: + | GetSuggestedFeedsRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetSuggestedFeedsRequest, a, b) } } @@ -3187,39 +4639,63 @@ export class GetSuggestedFeedsResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetSuggestedFeedsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetSuggestedFeedsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestedFeedsResponse { - return new GetSuggestedFeedsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestedFeedsResponse { - return new GetSuggestedFeedsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSuggestedFeedsResponse { - return new GetSuggestedFeedsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetSuggestedFeedsResponse | PlainMessage | undefined, b: GetSuggestedFeedsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSuggestedFeedsResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetSuggestedFeedsResponse + | PlainMessage + | undefined, + b: + | GetSuggestedFeedsResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetSuggestedFeedsResponse, a, b) } } @@ -3233,33 +4709,60 @@ export class GetFeedGeneratorStatusRequest extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFeedGeneratorStatusRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFeedGeneratorStatusRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorStatusRequest { - return new GetFeedGeneratorStatusRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorStatusRequest { - return new GetFeedGeneratorStatusRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorStatusRequest { - return new GetFeedGeneratorStatusRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetFeedGeneratorStatusRequest | PlainMessage | undefined, b: GetFeedGeneratorStatusRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFeedGeneratorStatusRequest, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetFeedGeneratorStatusRequest + | PlainMessage + | undefined, + b: + | GetFeedGeneratorStatusRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetFeedGeneratorStatusRequest, a, b) } } @@ -3270,33 +4773,60 @@ export class GetFeedGeneratorStatusResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetFeedGeneratorStatusResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetFeedGeneratorStatusResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorStatusResponse { - return new GetFeedGeneratorStatusResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorStatusResponse { - return new GetFeedGeneratorStatusResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorStatusResponse { - return new GetFeedGeneratorStatusResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetFeedGeneratorStatusResponse | PlainMessage | undefined, b: GetFeedGeneratorStatusResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetFeedGeneratorStatusResponse, a, b); + { + no: 1, + name: 'status', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromJsonString( + jsonString, + options, + ) + } + + static equals( + a: + | GetFeedGeneratorStatusResponse + | PlainMessage + | undefined, + b: + | GetFeedGeneratorStatusResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetFeedGeneratorStatusResponse, a, b) } } @@ -3311,57 +4841,69 @@ export class GetAuthorFeedRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' /** * @generated from field: bool replies_only = 4; */ - repliesOnly = false; + repliesOnly = false /** * @generated from field: bool media_only = 5; */ - mediaOnly = false; + mediaOnly = false constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetAuthorFeedRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetAuthorFeedRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "replies_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "media_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 4, name: 'replies_only', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: 'media_only', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthorFeedRequest { - return new GetAuthorFeedRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthorFeedRequest { - return new GetAuthorFeedRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetAuthorFeedRequest { - return new GetAuthorFeedRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromJsonString(jsonString, options) } - static equals(a: GetAuthorFeedRequest | PlainMessage | undefined, b: GetAuthorFeedRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAuthorFeedRequest, a, b); + static equals( + a: GetAuthorFeedRequest | PlainMessage | undefined, + b: GetAuthorFeedRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetAuthorFeedRequest, a, b) } } @@ -3372,39 +4914,57 @@ export class GetAuthorFeedResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetAuthorFeedResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetAuthorFeedResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthorFeedResponse { - return new GetAuthorFeedResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthorFeedResponse { - return new GetAuthorFeedResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAuthorFeedResponse { - return new GetAuthorFeedResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAuthorFeedResponse | PlainMessage | undefined, b: GetAuthorFeedResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAuthorFeedResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetAuthorFeedResponse | PlainMessage | undefined, + b: GetAuthorFeedResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetAuthorFeedResponse, a, b) } } @@ -3418,45 +4978,57 @@ export class GetTimelineRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetTimelineRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetTimelineRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetTimelineRequest { - return new GetTimelineRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetTimelineRequest { + return new GetTimelineRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetTimelineRequest { - return new GetTimelineRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetTimelineRequest { + return new GetTimelineRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetTimelineRequest { - return new GetTimelineRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetTimelineRequest { + return new GetTimelineRequest().fromJsonString(jsonString, options) } - static equals(a: GetTimelineRequest | PlainMessage | undefined, b: GetTimelineRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTimelineRequest, a, b); + static equals( + a: GetTimelineRequest | PlainMessage | undefined, + b: GetTimelineRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetTimelineRequest, a, b) } } @@ -3467,39 +5039,57 @@ export class GetTimelineResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetTimelineResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetTimelineResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTimelineResponse { - return new GetTimelineResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTimelineResponse { - return new GetTimelineResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTimelineResponse { - return new GetTimelineResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTimelineResponse | PlainMessage | undefined, b: GetTimelineResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTimelineResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetTimelineResponse { + return new GetTimelineResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetTimelineResponse { + return new GetTimelineResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetTimelineResponse { + return new GetTimelineResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetTimelineResponse | PlainMessage | undefined, + b: GetTimelineResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetTimelineResponse, a, b) } } @@ -3514,45 +5104,57 @@ export class GetListFeedRequest extends Message { /** * @generated from field: string list_uri = 1; */ - listUri = ""; + listUri = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListFeedRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListFeedRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetListFeedRequest { - return new GetListFeedRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListFeedRequest { + return new GetListFeedRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetListFeedRequest { - return new GetListFeedRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListFeedRequest { + return new GetListFeedRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetListFeedRequest { - return new GetListFeedRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListFeedRequest { + return new GetListFeedRequest().fromJsonString(jsonString, options) } - static equals(a: GetListFeedRequest | PlainMessage | undefined, b: GetListFeedRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListFeedRequest, a, b); + static equals( + a: GetListFeedRequest | PlainMessage | undefined, + b: GetListFeedRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetListFeedRequest, a, b) } } @@ -3563,39 +5165,57 @@ export class GetListFeedResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListFeedResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetListFeedResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetListFeedResponse { - return new GetListFeedResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetListFeedResponse { - return new GetListFeedResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetListFeedResponse { - return new GetListFeedResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetListFeedResponse | PlainMessage | undefined, b: GetListFeedResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListFeedResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetListFeedResponse { + return new GetListFeedResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetListFeedResponse { + return new GetListFeedResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetListFeedResponse { + return new GetListFeedResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetListFeedResponse | PlainMessage | undefined, + b: GetListFeedResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetListFeedResponse, a, b) } } @@ -3608,45 +5228,57 @@ export class GetThreadRequest extends Message { /** * @generated from field: string post_uri = 1; */ - postUri = ""; + postUri = '' /** * @generated from field: int32 above = 2; */ - above = 0; + above = 0 /** * @generated from field: int32 below = 3; */ - below = 0; + below = 0 constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetThreadRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetThreadRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "post_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "above", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "below", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); + { no: 1, name: 'post_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'above', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'below', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadRequest { - return new GetThreadRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetThreadRequest { + return new GetThreadRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadRequest { - return new GetThreadRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetThreadRequest { + return new GetThreadRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetThreadRequest { - return new GetThreadRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetThreadRequest { + return new GetThreadRequest().fromJsonString(jsonString, options) } - static equals(a: GetThreadRequest | PlainMessage | undefined, b: GetThreadRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetThreadRequest, a, b); + static equals( + a: GetThreadRequest | PlainMessage | undefined, + b: GetThreadRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetThreadRequest, a, b) } } @@ -3657,33 +5289,51 @@ export class GetThreadResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetThreadResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetThreadResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadResponse { - return new GetThreadResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadResponse { - return new GetThreadResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetThreadResponse { - return new GetThreadResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetThreadResponse | PlainMessage | undefined, b: GetThreadResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetThreadResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetThreadResponse { + return new GetThreadResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetThreadResponse { + return new GetThreadResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetThreadResponse { + return new GetThreadResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetThreadResponse | PlainMessage | undefined, + b: GetThreadResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetThreadResponse, a, b) } } @@ -3696,33 +5346,51 @@ export class GetThreadgatesRequest extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetThreadgatesRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetThreadgatesRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadgatesRequest { - return new GetThreadgatesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadgatesRequest { - return new GetThreadgatesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetThreadgatesRequest { - return new GetThreadgatesRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetThreadgatesRequest | PlainMessage | undefined, b: GetThreadgatesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetThreadgatesRequest, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromJsonString(jsonString, options) + } + + static equals( + a: GetThreadgatesRequest | PlainMessage | undefined, + b: GetThreadgatesRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetThreadgatesRequest, a, b) } } @@ -3733,33 +5401,57 @@ export class GetThreadgatesResponse extends Message { /** * @generated from field: repeated bytes records = 1; */ - records: Uint8Array[] = []; + records: Uint8Array[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetThreadgatesResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetThreadgatesResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadgatesResponse { - return new GetThreadgatesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadgatesResponse { - return new GetThreadgatesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetThreadgatesResponse { - return new GetThreadgatesResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetThreadgatesResponse | PlainMessage | undefined, b: GetThreadgatesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetThreadgatesResponse, a, b); + { + no: 1, + name: 'records', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetThreadgatesResponse + | PlainMessage + | undefined, + b: + | GetThreadgatesResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetThreadgatesResponse, a, b) } } @@ -3773,45 +5465,57 @@ export class SearchActorsRequest extends Message { /** * @generated from field: string term = 1; */ - term = ""; + term = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.SearchActorsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.SearchActorsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "term", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'term', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): SearchActorsRequest { - return new SearchActorsRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): SearchActorsRequest { + return new SearchActorsRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): SearchActorsRequest { - return new SearchActorsRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): SearchActorsRequest { + return new SearchActorsRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): SearchActorsRequest { - return new SearchActorsRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): SearchActorsRequest { + return new SearchActorsRequest().fromJsonString(jsonString, options) } - static equals(a: SearchActorsRequest | PlainMessage | undefined, b: SearchActorsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SearchActorsRequest, a, b); + static equals( + a: SearchActorsRequest | PlainMessage | undefined, + b: SearchActorsRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(SearchActorsRequest, a, b) } } @@ -3822,39 +5526,57 @@ export class SearchActorsResponse extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = []; + dids: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.SearchActorsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.SearchActorsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SearchActorsResponse { - return new SearchActorsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SearchActorsResponse { - return new SearchActorsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SearchActorsResponse { - return new SearchActorsResponse().fromJsonString(jsonString, options); - } - - static equals(a: SearchActorsResponse | PlainMessage | undefined, b: SearchActorsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SearchActorsResponse, a, b); + { + no: 1, + name: 'dids', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): SearchActorsResponse { + return new SearchActorsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): SearchActorsResponse { + return new SearchActorsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): SearchActorsResponse { + return new SearchActorsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: SearchActorsResponse | PlainMessage | undefined, + b: SearchActorsResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(SearchActorsResponse, a, b) } } @@ -3868,45 +5590,57 @@ export class SearchPostsRequest extends Message { /** * @generated from field: string term = 1; */ - term = ""; + term = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.SearchPostsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.SearchPostsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "term", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'term', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): SearchPostsRequest { - return new SearchPostsRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): SearchPostsRequest { + return new SearchPostsRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): SearchPostsRequest { - return new SearchPostsRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): SearchPostsRequest { + return new SearchPostsRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): SearchPostsRequest { - return new SearchPostsRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): SearchPostsRequest { + return new SearchPostsRequest().fromJsonString(jsonString, options) } - static equals(a: SearchPostsRequest | PlainMessage | undefined, b: SearchPostsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SearchPostsRequest, a, b); + static equals( + a: SearchPostsRequest | PlainMessage | undefined, + b: SearchPostsRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(SearchPostsRequest, a, b) } } @@ -3917,39 +5651,57 @@ export class SearchPostsResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.SearchPostsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.SearchPostsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SearchPostsResponse { - return new SearchPostsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SearchPostsResponse { - return new SearchPostsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SearchPostsResponse { - return new SearchPostsResponse().fromJsonString(jsonString, options); - } - - static equals(a: SearchPostsResponse | PlainMessage | undefined, b: SearchPostsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SearchPostsResponse, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): SearchPostsResponse { + return new SearchPostsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): SearchPostsResponse { + return new SearchPostsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): SearchPostsResponse { + return new SearchPostsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: SearchPostsResponse | PlainMessage | undefined, + b: SearchPostsResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(SearchPostsResponse, a, b) } } @@ -3963,45 +5715,57 @@ export class GetSuggestionsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: int32 limit = 2; */ - limit = 0; + limit = 0 /** * @generated from field: string cursor = 3; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetSuggestionsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetSuggestionsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestionsRequest { - return new GetSuggestionsRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestionsRequest { - return new GetSuggestionsRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetSuggestionsRequest { - return new GetSuggestionsRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromJsonString(jsonString, options) } - static equals(a: GetSuggestionsRequest | PlainMessage | undefined, b: GetSuggestionsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSuggestionsRequest, a, b); + static equals( + a: GetSuggestionsRequest | PlainMessage | undefined, + b: GetSuggestionsRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetSuggestionsRequest, a, b) } } @@ -4012,39 +5776,63 @@ export class GetSuggestionsResponse extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = []; + dids: string[] = [] /** * @generated from field: string cursor = 2; */ - cursor = ""; + cursor = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetSuggestionsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetSuggestionsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestionsResponse { - return new GetSuggestionsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestionsResponse { - return new GetSuggestionsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetSuggestionsResponse { - return new GetSuggestionsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetSuggestionsResponse | PlainMessage | undefined, b: GetSuggestionsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetSuggestionsResponse, a, b); + { + no: 1, + name: 'dids', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetSuggestionsResponse + | PlainMessage + | undefined, + b: + | GetSuggestionsResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetSuggestionsResponse, a, b) } } @@ -4058,33 +5846,51 @@ export class GetPostsRequest extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetPostsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetPostsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetPostsRequest { - return new GetPostsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetPostsRequest { - return new GetPostsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetPostsRequest { - return new GetPostsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetPostsRequest | PlainMessage | undefined, b: GetPostsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetPostsRequest, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetPostsRequest { + return new GetPostsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetPostsRequest { + return new GetPostsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetPostsRequest { + return new GetPostsRequest().fromJsonString(jsonString, options) + } + + static equals( + a: GetPostsRequest | PlainMessage | undefined, + b: GetPostsRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetPostsRequest, a, b) } } @@ -4095,33 +5901,51 @@ export class GetPostsResponse extends Message { /** * @generated from field: repeated bytes records = 1; */ - records: Uint8Array[] = []; + records: Uint8Array[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetPostsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetPostsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetPostsResponse { - return new GetPostsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetPostsResponse { - return new GetPostsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetPostsResponse { - return new GetPostsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetPostsResponse | PlainMessage | undefined, b: GetPostsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetPostsResponse, a, b); + { + no: 1, + name: 'records', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetPostsResponse { + return new GetPostsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetPostsResponse { + return new GetPostsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetPostsResponse { + return new GetPostsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetPostsResponse | PlainMessage | undefined, + b: GetPostsResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetPostsResponse, a, b) } } @@ -4135,33 +5959,57 @@ export class GetPostReplyCountRequest extends Message /** * @generated from field: repeated string uris = 1; */ - uris: string[] = []; + uris: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetPostReplyCountRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetPostReplyCountRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetPostReplyCountRequest { - return new GetPostReplyCountRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetPostReplyCountRequest { - return new GetPostReplyCountRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetPostReplyCountRequest { - return new GetPostReplyCountRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetPostReplyCountRequest | PlainMessage | undefined, b: GetPostReplyCountRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetPostReplyCountRequest, a, b); + { + no: 1, + name: 'uris', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetPostReplyCountRequest + | PlainMessage + | undefined, + b: + | GetPostReplyCountRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetPostReplyCountRequest, a, b) } } @@ -4172,33 +6020,57 @@ export class GetPostReplyCountResponse extends Message) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetPostReplyCountResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetPostReplyCountResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "counts", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetPostReplyCountResponse { - return new GetPostReplyCountResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetPostReplyCountResponse { - return new GetPostReplyCountResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetPostReplyCountResponse { - return new GetPostReplyCountResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetPostReplyCountResponse | PlainMessage | undefined, b: GetPostReplyCountResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetPostReplyCountResponse, a, b); + { + no: 1, + name: 'counts', + kind: 'scalar', + T: 5 /* ScalarType.INT32 */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetPostReplyCountResponse + | PlainMessage + | undefined, + b: + | GetPostReplyCountResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetPostReplyCountResponse, a, b) } } @@ -4212,39 +6084,63 @@ export class GetLabelsRequest extends Message { /** * @generated from field: repeated string subjects = 1; */ - subjects: string[] = []; + subjects: string[] = [] /** * @generated from field: repeated string issuers = 2; */ - issuers: string[] = []; + issuers: string[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLabelsRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLabelsRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subjects", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "issuers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLabelsRequest { - return new GetLabelsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLabelsRequest { - return new GetLabelsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLabelsRequest { - return new GetLabelsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetLabelsRequest | PlainMessage | undefined, b: GetLabelsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLabelsRequest, a, b); + { + no: 1, + name: 'subjects', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + { + no: 2, + name: 'issuers', + kind: 'scalar', + T: 9 /* ScalarType.STRING */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLabelsRequest { + return new GetLabelsRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLabelsRequest { + return new GetLabelsRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLabelsRequest { + return new GetLabelsRequest().fromJsonString(jsonString, options) + } + + static equals( + a: GetLabelsRequest | PlainMessage | undefined, + b: GetLabelsRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetLabelsRequest, a, b) } } @@ -4255,33 +6151,51 @@ export class GetLabelsResponse extends Message { /** * @generated from field: repeated bytes records = 1; */ - records: Uint8Array[] = []; + records: Uint8Array[] = [] constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLabelsResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLabelsResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetLabelsResponse { - return new GetLabelsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetLabelsResponse { - return new GetLabelsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetLabelsResponse { - return new GetLabelsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetLabelsResponse | PlainMessage | undefined, b: GetLabelsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLabelsResponse, a, b); + { + no: 1, + name: 'records', + kind: 'scalar', + T: 12 /* ScalarType.BYTES */, + repeated: true, + }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLabelsResponse { + return new GetLabelsResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLabelsResponse { + return new GetLabelsResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLabelsResponse { + return new GetLabelsResponse().fromJsonString(jsonString, options) + } + + static equals( + a: GetLabelsResponse | PlainMessage | undefined, + b: GetLabelsResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetLabelsResponse, a, b) } } @@ -4295,33 +6209,45 @@ export class GetLatestRevRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLatestRevRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLatestRevRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestRevRequest { - return new GetLatestRevRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLatestRevRequest { + return new GetLatestRevRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestRevRequest { - return new GetLatestRevRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLatestRevRequest { + return new GetLatestRevRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetLatestRevRequest { - return new GetLatestRevRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLatestRevRequest { + return new GetLatestRevRequest().fromJsonString(jsonString, options) } - static equals(a: GetLatestRevRequest | PlainMessage | undefined, b: GetLatestRevRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLatestRevRequest, a, b); + static equals( + a: GetLatestRevRequest | PlainMessage | undefined, + b: GetLatestRevRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetLatestRevRequest, a, b) } } @@ -4332,33 +6258,45 @@ export class GetLatestRevResponse extends Message { /** * @generated from field: string rev = 1; */ - rev = ""; + rev = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetLatestRevResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetLatestRevResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rev", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); + { no: 1, name: 'rev', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestRevResponse { - return new GetLatestRevResponse().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetLatestRevResponse { + return new GetLatestRevResponse().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestRevResponse { - return new GetLatestRevResponse().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetLatestRevResponse { + return new GetLatestRevResponse().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): GetLatestRevResponse { - return new GetLatestRevResponse().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetLatestRevResponse { + return new GetLatestRevResponse().fromJsonString(jsonString, options) } - static equals(a: GetLatestRevResponse | PlainMessage | undefined, b: GetLatestRevResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetLatestRevResponse, a, b); + static equals( + a: GetLatestRevResponse | PlainMessage | undefined, + b: GetLatestRevResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(GetLatestRevResponse, a, b) } } @@ -4371,39 +6309,57 @@ export class GetBlobTakedownRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: string cid = 2; */ - cid = ""; + cid = '' constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBlobTakedownRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBlobTakedownRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlobTakedownRequest { - return new GetBlobTakedownRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlobTakedownRequest { - return new GetBlobTakedownRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlobTakedownRequest { - return new GetBlobTakedownRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetBlobTakedownRequest | PlainMessage | undefined, b: GetBlobTakedownRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlobTakedownRequest, a, b); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'cid', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetBlobTakedownRequest + | PlainMessage + | undefined, + b: + | GetBlobTakedownRequest + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBlobTakedownRequest, a, b) } } @@ -4414,33 +6370,51 @@ export class GetBlobTakedownResponse extends Message { /** * @generated from field: bool taken_down = 1; */ - takenDown = false; + takenDown = false constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetBlobTakedownResponse"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.GetBlobTakedownResponse' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "taken_down", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetBlobTakedownResponse { - return new GetBlobTakedownResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetBlobTakedownResponse { - return new GetBlobTakedownResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetBlobTakedownResponse { - return new GetBlobTakedownResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetBlobTakedownResponse | PlainMessage | undefined, b: GetBlobTakedownResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetBlobTakedownResponse, a, b); + { no: 1, name: 'taken_down', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, + ]) + + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromBinary(bytes, options) + } + + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromJson(jsonValue, options) + } + + static fromJsonString( + jsonString: string, + options?: Partial, + ): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromJsonString(jsonString, options) + } + + static equals( + a: + | GetBlobTakedownResponse + | PlainMessage + | undefined, + b: + | GetBlobTakedownResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(GetBlobTakedownResponse, a, b) } } @@ -4453,51 +6427,63 @@ export class UpdateTakedownRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = ""; + actorDid = '' /** * @generated from field: string record_uri = 2; */ - recordUri = ""; + recordUri = '' /** * @generated from field: string blob_cid = 3; */ - blobCid = ""; + blobCid = '' /** * @generated from field: bool taken_down = 4; */ - takenDown = false; + takenDown = false constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.UpdateTakedownRequest"; + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.UpdateTakedownRequest' static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "record_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "blob_cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "taken_down", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); + { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 2, name: 'record_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 3, name: 'blob_cid', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, + { no: 4, name: 'taken_down', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, + ]) - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateTakedownRequest { - return new UpdateTakedownRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateTakedownRequest { - return new UpdateTakedownRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): UpdateTakedownRequest { - return new UpdateTakedownRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromJsonString(jsonString, options) } - static equals(a: UpdateTakedownRequest | PlainMessage | undefined, b: UpdateTakedownRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateTakedownRequest, a, b); + static equals( + a: UpdateTakedownRequest | PlainMessage | undefined, + b: UpdateTakedownRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(UpdateTakedownRequest, a, b) } } @@ -4506,29 +6492,46 @@ export class UpdateTakedownRequest extends Message { */ export class UpdateTakedownResponse extends Message { constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.UpdateTakedownResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.UpdateTakedownResponse' + static readonly fields: FieldList = proto3.util.newFieldList(() => []) - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateTakedownResponse { - return new UpdateTakedownResponse().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateTakedownResponse { - return new UpdateTakedownResponse().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): UpdateTakedownResponse { - return new UpdateTakedownResponse().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromJsonString(jsonString, options) } - static equals(a: UpdateTakedownResponse | PlainMessage | undefined, b: UpdateTakedownResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateTakedownResponse, a, b); + static equals( + a: + | UpdateTakedownResponse + | PlainMessage + | undefined, + b: + | UpdateTakedownResponse + | PlainMessage + | undefined, + ): boolean { + return proto3.util.equals(UpdateTakedownResponse, a, b) } } @@ -4539,29 +6542,40 @@ export class UpdateTakedownResponse extends Message { */ export class PingRequest extends Message { constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.PingRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.PingRequest' + static readonly fields: FieldList = proto3.util.newFieldList(() => []) - static fromBinary(bytes: Uint8Array, options?: Partial): PingRequest { - return new PingRequest().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): PingRequest { + return new PingRequest().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): PingRequest { - return new PingRequest().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): PingRequest { + return new PingRequest().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): PingRequest { - return new PingRequest().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): PingRequest { + return new PingRequest().fromJsonString(jsonString, options) } - static equals(a: PingRequest | PlainMessage | undefined, b: PingRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PingRequest, a, b); + static equals( + a: PingRequest | PlainMessage | undefined, + b: PingRequest | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(PingRequest, a, b) } } @@ -4570,29 +6584,39 @@ export class PingRequest extends Message { */ export class PingResponse extends Message { constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); + super() + proto3.util.initPartial(data, this) } - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.PingResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); + static readonly runtime: typeof proto3 = proto3 + static readonly typeName = 'bsky.PingResponse' + static readonly fields: FieldList = proto3.util.newFieldList(() => []) - static fromBinary(bytes: Uint8Array, options?: Partial): PingResponse { - return new PingResponse().fromBinary(bytes, options); + static fromBinary( + bytes: Uint8Array, + options?: Partial, + ): PingResponse { + return new PingResponse().fromBinary(bytes, options) } - static fromJson(jsonValue: JsonValue, options?: Partial): PingResponse { - return new PingResponse().fromJson(jsonValue, options); + static fromJson( + jsonValue: JsonValue, + options?: Partial, + ): PingResponse { + return new PingResponse().fromJson(jsonValue, options) } - static fromJsonString(jsonString: string, options?: Partial): PingResponse { - return new PingResponse().fromJsonString(jsonString, options); + static fromJsonString( + jsonString: string, + options?: Partial, + ): PingResponse { + return new PingResponse().fromJsonString(jsonString, options) } - static equals(a: PingResponse | PlainMessage | undefined, b: PingResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PingResponse, a, b); + static equals( + a: PingResponse | PlainMessage | undefined, + b: PingResponse | PlainMessage | undefined, + ): boolean { + return proto3.util.equals(PingResponse, a, b) } } - From 3deaa284b17d995605fad0eac5ffe3f147b749e9 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 10:26:31 -0600 Subject: [PATCH 003/186] prettier ignore --- .prettierignore | 1 + packages/bsky/src/data-plane/bsky_connect.ts | 224 +- packages/bsky/src/data-plane/bsky_pb.ts | 6688 ++++++------------ 3 files changed, 2392 insertions(+), 4521 deletions(-) diff --git a/.prettierignore b/.prettierignore index 6340cc359c2..dfb25351655 100644 --- a/.prettierignore +++ b/.prettierignore @@ -8,3 +8,4 @@ pnpm-lock.yaml .pnpm* .changeset *.d.ts +packages/bsky/data-plane/gen diff --git a/packages/bsky/src/data-plane/bsky_connect.ts b/packages/bsky/src/data-plane/bsky_connect.ts index 4232c10198d..d76eae6f599 100644 --- a/packages/bsky/src/data-plane/bsky_connect.ts +++ b/packages/bsky/src/data-plane/bsky_connect.ts @@ -3,121 +3,14 @@ /* eslint-disable */ // @ts-nocheck -import { - GetActorFeedsRequest, - GetActorFeedsResponse, - GetActorFollowsActorsRequest, - GetActorFollowsActorsResponse, - GetActorLikesRequest, - GetActorLikesResponse, - GetActorMutesActorRequest, - GetActorMutesActorResponse, - GetActorMutesActorViaListRequest, - GetActorMutesActorViaListResponse, - GetActorRepostsRequest, - GetActorRepostsResponse, - GetAuthorFeedRequest, - GetAuthorFeedResponse, - GetBidirectionalBlockRequest, - GetBidirectionalBlockResponse, - GetBidirectionalBlockViaListRequest, - GetBidirectionalBlockViaListResponse, - GetBlobTakedownRequest, - GetBlobTakedownResponse, - GetBlocklistSubscriptionRequest, - GetBlocklistSubscriptionResponse, - GetBlocklistSubscriptionsRequest, - GetBlocklistSubscriptionsResponse, - GetBlocksRequest, - GetBlocksResponse, - GetDidsByHandlesRequest, - GetDidsByHandlesResponse, - GetFeedGeneratorsRequest, - GetFeedGeneratorsResponse, - GetFeedGeneratorStatusRequest, - GetFeedGeneratorStatusResponse, - GetFollowersCountRequest, - GetFollowersCountResponse, - GetFollowersRequest, - GetFollowersResponse, - GetFollowsCountRequest, - GetFollowsCountResponse, - GetFollowsRequest, - GetFollowsResponse, - GetHandlesRequest, - GetHandlesResponse, - GetLabelsRequest, - GetLabelsResponse, - GetLatestRevRequest, - GetLatestRevResponse, - GetLikeByActorAndSubjectRequest, - GetLikeByActorAndSubjectResponse, - GetLikesBySubjectRequest, - GetLikesBySubjectResponse, - GetLikesCountRequest, - GetLikesCountResponse, - GetListCountRequest, - GetListCountResponse, - GetListFeedRequest, - GetListFeedResponse, - GetListMembershipRequest, - GetListMembershipResponse, - GetListMembersRequest, - GetListMembersResponse, - GetListRequest, - GetListResponse, - GetMutelistSubscriptionRequest, - GetMutelistSubscriptionResponse, - GetMutelistSubscriptionsRequest, - GetMutelistSubscriptionsResponse, - GetMutesRequest, - GetMutesResponse, - GetNotificationSeenRequest, - GetNotificationSeenResponse, - GetNotificationsRequest, - GetNotificationsResponse, - GetPostReplyCountRequest, - GetPostReplyCountResponse, - GetPostsRequest, - GetPostsResponse, - GetProfilesRequest, - GetProfilesResponse, - GetRepostByActorAndSubjectRequest, - GetRepostByActorAndSubjectResponse, - GetRepostsBySubjectRequest, - GetRepostsBySubjectResponse, - GetRepostsCountRequest, - GetRepostsCountResponse, - GetSuggestedFeedsRequest, - GetSuggestedFeedsResponse, - GetSuggestionsRequest, - GetSuggestionsResponse, - GetThreadgatesRequest, - GetThreadgatesResponse, - GetThreadRequest, - GetThreadResponse, - GetTimelineRequest, - GetTimelineResponse, - GetUnreadNotificationCountRequest, - GetUnreadNotificationCountResponse, - PingRequest, - PingResponse, - SearchActorsRequest, - SearchActorsResponse, - SearchPostsRequest, - SearchPostsResponse, - UpdateNotificationSeenRequest, - UpdateNotificationSeenResponse, - UpdateTakedownRequest, - UpdateTakedownResponse, -} from './bsky_pb.js' -import { MethodKind } from '@bufbuild/protobuf' +import { GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlocksRequest, GetBlocksResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorsRequest, GetFeedGeneratorsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersCountRequest, GetFollowersCountResponse, GetFollowersRequest, GetFollowersResponse, GetFollowsCountRequest, GetFollowsCountResponse, GetFollowsRequest, GetFollowsResponse, GetHandlesRequest, GetHandlesResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeByActorAndSubjectRequest, GetLikeByActorAndSubjectResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetLikesCountRequest, GetLikesCountResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListRequest, GetListResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostReplyCountRequest, GetPostReplyCountResponse, GetPostsRequest, GetPostsResponse, GetProfilesRequest, GetProfilesResponse, GetRepostByActorAndSubjectRequest, GetRepostByActorAndSubjectResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetRepostsCountRequest, GetRepostsCountResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetSuggestionsRequest, GetSuggestionsResponse, GetThreadgatesRequest, GetThreadgatesResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchPostsRequest, SearchPostsResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse, UpdateTakedownRequest, UpdateTakedownResponse } from "./bsky_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; /** * @generated from service bsky.Service */ export const Service = { - typeName: 'bsky.Service', + typeName: "bsky.Service", methods: { /** * Follows @@ -125,7 +18,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorFollowsActors */ getActorFollowsActors: { - name: 'GetActorFollowsActors', + name: "GetActorFollowsActors", I: GetActorFollowsActorsRequest, O: GetActorFollowsActorsResponse, kind: MethodKind.Unary, @@ -134,7 +27,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFollowers */ getFollowers: { - name: 'GetFollowers', + name: "GetFollowers", I: GetFollowersRequest, O: GetFollowersResponse, kind: MethodKind.Unary, @@ -143,7 +36,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFollows */ getFollows: { - name: 'GetFollows', + name: "GetFollows", I: GetFollowsRequest, O: GetFollowsResponse, kind: MethodKind.Unary, @@ -152,7 +45,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFollowersCount */ getFollowersCount: { - name: 'GetFollowersCount', + name: "GetFollowersCount", I: GetFollowersCountRequest, O: GetFollowersCountResponse, kind: MethodKind.Unary, @@ -161,7 +54,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFollowsCount */ getFollowsCount: { - name: 'GetFollowsCount', + name: "GetFollowsCount", I: GetFollowsCountRequest, O: GetFollowsCountResponse, kind: MethodKind.Unary, @@ -172,7 +65,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLikesBySubject */ getLikesBySubject: { - name: 'GetLikesBySubject', + name: "GetLikesBySubject", I: GetLikesBySubjectRequest, O: GetLikesBySubjectResponse, kind: MethodKind.Unary, @@ -181,7 +74,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLikeByActorAndSubject */ getLikeByActorAndSubject: { - name: 'GetLikeByActorAndSubject', + name: "GetLikeByActorAndSubject", I: GetLikeByActorAndSubjectRequest, O: GetLikeByActorAndSubjectResponse, kind: MethodKind.Unary, @@ -190,7 +83,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorLikes */ getActorLikes: { - name: 'GetActorLikes', + name: "GetActorLikes", I: GetActorLikesRequest, O: GetActorLikesResponse, kind: MethodKind.Unary, @@ -199,7 +92,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLikesCount */ getLikesCount: { - name: 'GetLikesCount', + name: "GetLikesCount", I: GetLikesCountRequest, O: GetLikesCountResponse, kind: MethodKind.Unary, @@ -210,7 +103,7 @@ export const Service = { * @generated from rpc bsky.Service.GetRepostsBySubject */ getRepostsBySubject: { - name: 'GetRepostsBySubject', + name: "GetRepostsBySubject", I: GetRepostsBySubjectRequest, O: GetRepostsBySubjectResponse, kind: MethodKind.Unary, @@ -219,7 +112,7 @@ export const Service = { * @generated from rpc bsky.Service.GetRepostByActorAndSubject */ getRepostByActorAndSubject: { - name: 'GetRepostByActorAndSubject', + name: "GetRepostByActorAndSubject", I: GetRepostByActorAndSubjectRequest, O: GetRepostByActorAndSubjectResponse, kind: MethodKind.Unary, @@ -228,7 +121,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorReposts */ getActorReposts: { - name: 'GetActorReposts', + name: "GetActorReposts", I: GetActorRepostsRequest, O: GetActorRepostsResponse, kind: MethodKind.Unary, @@ -237,7 +130,7 @@ export const Service = { * @generated from rpc bsky.Service.GetRepostsCount */ getRepostsCount: { - name: 'GetRepostsCount', + name: "GetRepostsCount", I: GetRepostsCountRequest, O: GetRepostsCountResponse, kind: MethodKind.Unary, @@ -248,7 +141,7 @@ export const Service = { * @generated from rpc bsky.Service.GetProfiles */ getProfiles: { - name: 'GetProfiles', + name: "GetProfiles", I: GetProfilesRequest, O: GetProfilesResponse, kind: MethodKind.Unary, @@ -257,7 +150,7 @@ export const Service = { * @generated from rpc bsky.Service.GetHandles */ getHandles: { - name: 'GetHandles', + name: "GetHandles", I: GetHandlesRequest, O: GetHandlesResponse, kind: MethodKind.Unary, @@ -266,7 +159,7 @@ export const Service = { * @generated from rpc bsky.Service.GetDidsByHandles */ getDidsByHandles: { - name: 'GetDidsByHandles', + name: "GetDidsByHandles", I: GetDidsByHandlesRequest, O: GetDidsByHandlesResponse, kind: MethodKind.Unary, @@ -277,7 +170,7 @@ export const Service = { * @generated from rpc bsky.Service.GetListMembers */ getListMembers: { - name: 'GetListMembers', + name: "GetListMembers", I: GetListMembersRequest, O: GetListMembersResponse, kind: MethodKind.Unary, @@ -286,7 +179,7 @@ export const Service = { * @generated from rpc bsky.Service.GetListMembership */ getListMembership: { - name: 'GetListMembership', + name: "GetListMembership", I: GetListMembershipRequest, O: GetListMembershipResponse, kind: MethodKind.Unary, @@ -295,7 +188,7 @@ export const Service = { * @generated from rpc bsky.Service.GetList */ getList: { - name: 'GetList', + name: "GetList", I: GetListRequest, O: GetListResponse, kind: MethodKind.Unary, @@ -304,7 +197,7 @@ export const Service = { * @generated from rpc bsky.Service.GetListCount */ getListCount: { - name: 'GetListCount', + name: "GetListCount", I: GetListCountRequest, O: GetListCountResponse, kind: MethodKind.Unary, @@ -315,7 +208,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorMutesActor */ getActorMutesActor: { - name: 'GetActorMutesActor', + name: "GetActorMutesActor", I: GetActorMutesActorRequest, O: GetActorMutesActorResponse, kind: MethodKind.Unary, @@ -324,7 +217,7 @@ export const Service = { * @generated from rpc bsky.Service.GetMutes */ getMutes: { - name: 'GetMutes', + name: "GetMutes", I: GetMutesRequest, O: GetMutesResponse, kind: MethodKind.Unary, @@ -335,7 +228,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorMutesActorViaList */ getActorMutesActorViaList: { - name: 'GetActorMutesActorViaList', + name: "GetActorMutesActorViaList", I: GetActorMutesActorViaListRequest, O: GetActorMutesActorViaListResponse, kind: MethodKind.Unary, @@ -344,7 +237,7 @@ export const Service = { * @generated from rpc bsky.Service.GetMutelistSubscription */ getMutelistSubscription: { - name: 'GetMutelistSubscription', + name: "GetMutelistSubscription", I: GetMutelistSubscriptionRequest, O: GetMutelistSubscriptionResponse, kind: MethodKind.Unary, @@ -353,7 +246,7 @@ export const Service = { * @generated from rpc bsky.Service.GetMutelistSubscriptions */ getMutelistSubscriptions: { - name: 'GetMutelistSubscriptions', + name: "GetMutelistSubscriptions", I: GetMutelistSubscriptionsRequest, O: GetMutelistSubscriptionsResponse, kind: MethodKind.Unary, @@ -364,7 +257,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBidirectionalBlock */ getBidirectionalBlock: { - name: 'GetBidirectionalBlock', + name: "GetBidirectionalBlock", I: GetBidirectionalBlockRequest, O: GetBidirectionalBlockResponse, kind: MethodKind.Unary, @@ -373,7 +266,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBlocks */ getBlocks: { - name: 'GetBlocks', + name: "GetBlocks", I: GetBlocksRequest, O: GetBlocksResponse, kind: MethodKind.Unary, @@ -384,7 +277,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBidirectionalBlockViaList */ getBidirectionalBlockViaList: { - name: 'GetBidirectionalBlockViaList', + name: "GetBidirectionalBlockViaList", I: GetBidirectionalBlockViaListRequest, O: GetBidirectionalBlockViaListResponse, kind: MethodKind.Unary, @@ -393,7 +286,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBlocklistSubscription */ getBlocklistSubscription: { - name: 'GetBlocklistSubscription', + name: "GetBlocklistSubscription", I: GetBlocklistSubscriptionRequest, O: GetBlocklistSubscriptionResponse, kind: MethodKind.Unary, @@ -402,7 +295,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBlocklistSubscriptions */ getBlocklistSubscriptions: { - name: 'GetBlocklistSubscriptions', + name: "GetBlocklistSubscriptions", I: GetBlocklistSubscriptionsRequest, O: GetBlocklistSubscriptionsResponse, kind: MethodKind.Unary, @@ -413,7 +306,7 @@ export const Service = { * @generated from rpc bsky.Service.GetNotifications */ getNotifications: { - name: 'GetNotifications', + name: "GetNotifications", I: GetNotificationsRequest, O: GetNotificationsResponse, kind: MethodKind.Unary, @@ -422,7 +315,7 @@ export const Service = { * @generated from rpc bsky.Service.GetNotificationSeen */ getNotificationSeen: { - name: 'GetNotificationSeen', + name: "GetNotificationSeen", I: GetNotificationSeenRequest, O: GetNotificationSeenResponse, kind: MethodKind.Unary, @@ -431,7 +324,7 @@ export const Service = { * @generated from rpc bsky.Service.GetUnreadNotificationCount */ getUnreadNotificationCount: { - name: 'GetUnreadNotificationCount', + name: "GetUnreadNotificationCount", I: GetUnreadNotificationCountRequest, O: GetUnreadNotificationCountResponse, kind: MethodKind.Unary, @@ -440,7 +333,7 @@ export const Service = { * @generated from rpc bsky.Service.UpdateNotificationSeen */ updateNotificationSeen: { - name: 'UpdateNotificationSeen', + name: "UpdateNotificationSeen", I: UpdateNotificationSeenRequest, O: UpdateNotificationSeenResponse, kind: MethodKind.Unary, @@ -451,7 +344,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFeedGenerators */ getFeedGenerators: { - name: 'GetFeedGenerators', + name: "GetFeedGenerators", I: GetFeedGeneratorsRequest, O: GetFeedGeneratorsResponse, kind: MethodKind.Unary, @@ -460,7 +353,7 @@ export const Service = { * @generated from rpc bsky.Service.GetActorFeeds */ getActorFeeds: { - name: 'GetActorFeeds', + name: "GetActorFeeds", I: GetActorFeedsRequest, O: GetActorFeedsResponse, kind: MethodKind.Unary, @@ -469,7 +362,7 @@ export const Service = { * @generated from rpc bsky.Service.GetSuggestedFeeds */ getSuggestedFeeds: { - name: 'GetSuggestedFeeds', + name: "GetSuggestedFeeds", I: GetSuggestedFeedsRequest, O: GetSuggestedFeedsResponse, kind: MethodKind.Unary, @@ -478,7 +371,7 @@ export const Service = { * @generated from rpc bsky.Service.GetFeedGeneratorStatus */ getFeedGeneratorStatus: { - name: 'GetFeedGeneratorStatus', + name: "GetFeedGeneratorStatus", I: GetFeedGeneratorStatusRequest, O: GetFeedGeneratorStatusResponse, kind: MethodKind.Unary, @@ -489,7 +382,7 @@ export const Service = { * @generated from rpc bsky.Service.GetAuthorFeed */ getAuthorFeed: { - name: 'GetAuthorFeed', + name: "GetAuthorFeed", I: GetAuthorFeedRequest, O: GetAuthorFeedResponse, kind: MethodKind.Unary, @@ -498,7 +391,7 @@ export const Service = { * @generated from rpc bsky.Service.GetTimeline */ getTimeline: { - name: 'GetTimeline', + name: "GetTimeline", I: GetTimelineRequest, O: GetTimelineResponse, kind: MethodKind.Unary, @@ -507,7 +400,7 @@ export const Service = { * @generated from rpc bsky.Service.GetListFeed */ getListFeed: { - name: 'GetListFeed', + name: "GetListFeed", I: GetListFeedRequest, O: GetListFeedResponse, kind: MethodKind.Unary, @@ -518,7 +411,7 @@ export const Service = { * @generated from rpc bsky.Service.GetThread */ getThread: { - name: 'GetThread', + name: "GetThread", I: GetThreadRequest, O: GetThreadResponse, kind: MethodKind.Unary, @@ -527,7 +420,7 @@ export const Service = { * @generated from rpc bsky.Service.GetThreadgates */ getThreadgates: { - name: 'GetThreadgates', + name: "GetThreadgates", I: GetThreadgatesRequest, O: GetThreadgatesResponse, kind: MethodKind.Unary, @@ -538,7 +431,7 @@ export const Service = { * @generated from rpc bsky.Service.SearchActors */ searchActors: { - name: 'SearchActors', + name: "SearchActors", I: SearchActorsRequest, O: SearchActorsResponse, kind: MethodKind.Unary, @@ -547,7 +440,7 @@ export const Service = { * @generated from rpc bsky.Service.SearchPosts */ searchPosts: { - name: 'SearchPosts', + name: "SearchPosts", I: SearchPostsRequest, O: SearchPostsResponse, kind: MethodKind.Unary, @@ -558,7 +451,7 @@ export const Service = { * @generated from rpc bsky.Service.GetSuggestions */ getSuggestions: { - name: 'GetSuggestions', + name: "GetSuggestions", I: GetSuggestionsRequest, O: GetSuggestionsResponse, kind: MethodKind.Unary, @@ -569,7 +462,7 @@ export const Service = { * @generated from rpc bsky.Service.GetPosts */ getPosts: { - name: 'GetPosts', + name: "GetPosts", I: GetPostsRequest, O: GetPostsResponse, kind: MethodKind.Unary, @@ -578,7 +471,7 @@ export const Service = { * @generated from rpc bsky.Service.GetPostReplyCount */ getPostReplyCount: { - name: 'GetPostReplyCount', + name: "GetPostReplyCount", I: GetPostReplyCountRequest, O: GetPostReplyCountResponse, kind: MethodKind.Unary, @@ -589,7 +482,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLabels */ getLabels: { - name: 'GetLabels', + name: "GetLabels", I: GetLabelsRequest, O: GetLabelsResponse, kind: MethodKind.Unary, @@ -600,7 +493,7 @@ export const Service = { * @generated from rpc bsky.Service.GetLatestRev */ getLatestRev: { - name: 'GetLatestRev', + name: "GetLatestRev", I: GetLatestRevRequest, O: GetLatestRevResponse, kind: MethodKind.Unary, @@ -611,7 +504,7 @@ export const Service = { * @generated from rpc bsky.Service.GetBlobTakedown */ getBlobTakedown: { - name: 'GetBlobTakedown', + name: "GetBlobTakedown", I: GetBlobTakedownRequest, O: GetBlobTakedownResponse, kind: MethodKind.Unary, @@ -620,7 +513,7 @@ export const Service = { * @generated from rpc bsky.Service.UpdateTakedown */ updateTakedown: { - name: 'UpdateTakedown', + name: "UpdateTakedown", I: UpdateTakedownRequest, O: UpdateTakedownResponse, kind: MethodKind.Unary, @@ -631,10 +524,11 @@ export const Service = { * @generated from rpc bsky.Service.Ping */ ping: { - name: 'Ping', + name: "Ping", I: PingRequest, O: PingResponse, kind: MethodKind.Unary, }, - }, -} as const + } +} as const; + diff --git a/packages/bsky/src/data-plane/bsky_pb.ts b/packages/bsky/src/data-plane/bsky_pb.ts index 5cc0e32c910..600086aa596 100644 --- a/packages/bsky/src/data-plane/bsky_pb.ts +++ b/packages/bsky/src/data-plane/bsky_pb.ts @@ -3,15 +3,8 @@ /* eslint-disable */ // @ts-nocheck -import type { - BinaryReadOptions, - FieldList, - JsonReadOptions, - JsonValue, - PartialMessage, - PlainMessage, -} from '@bufbuild/protobuf' -import { Message, proto3, Timestamp } from '@bufbuild/protobuf' +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; /** * - Return follow uris where user A follows users B, C, D, … @@ -23,66 +16,39 @@ export class GetActorFollowsActorsRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorFollowsActorsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorFollowsActorsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { - no: 2, - name: 'target_dids', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorFollowsActorsRequest { - return new GetActorFollowsActorsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorFollowsActorsRequest { - return new GetActorFollowsActorsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorFollowsActorsRequest { - return new GetActorFollowsActorsRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetActorFollowsActorsRequest - | PlainMessage - | undefined, - b: - | GetActorFollowsActorsRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetActorFollowsActorsRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorFollowsActorsRequest { + return new GetActorFollowsActorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorFollowsActorsRequest | PlainMessage | undefined, b: GetActorFollowsActorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorFollowsActorsRequest, a, b); } } @@ -93,60 +59,33 @@ export class GetActorFollowsActorsResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorFollowsActorsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorFollowsActorsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorFollowsActorsResponse { - return new GetActorFollowsActorsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorFollowsActorsResponse { - return new GetActorFollowsActorsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorFollowsActorsResponse { - return new GetActorFollowsActorsResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetActorFollowsActorsResponse - | PlainMessage - | undefined, - b: - | GetActorFollowsActorsResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetActorFollowsActorsResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorFollowsActorsResponse { + return new GetActorFollowsActorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorFollowsActorsResponse | PlainMessage | undefined, b: GetActorFollowsActorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorFollowsActorsResponse, a, b); } } @@ -160,57 +99,45 @@ export class GetFollowersRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFollowersRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowersRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFollowersRequest { - return new GetFollowersRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersRequest { + return new GetFollowersRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFollowersRequest { - return new GetFollowersRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersRequest { + return new GetFollowersRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFollowersRequest { - return new GetFollowersRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetFollowersRequest { + return new GetFollowersRequest().fromJsonString(jsonString, options); } - static equals( - a: GetFollowersRequest | PlainMessage | undefined, - b: GetFollowersRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetFollowersRequest, a, b) + static equals(a: GetFollowersRequest | PlainMessage | undefined, b: GetFollowersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowersRequest, a, b); } } @@ -221,57 +148,39 @@ export class GetFollowersResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFollowersResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowersResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFollowersResponse { - return new GetFollowersResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFollowersResponse { - return new GetFollowersResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFollowersResponse { - return new GetFollowersResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetFollowersResponse | PlainMessage | undefined, - b: GetFollowersResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetFollowersResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersResponse { + return new GetFollowersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersResponse { + return new GetFollowersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowersResponse { + return new GetFollowersResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowersResponse | PlainMessage | undefined, b: GetFollowersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowersResponse, a, b); } } @@ -285,57 +194,45 @@ export class GetFollowsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFollowsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFollowsRequest { - return new GetFollowsRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsRequest { + return new GetFollowsRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFollowsRequest { - return new GetFollowsRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsRequest { + return new GetFollowsRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFollowsRequest { - return new GetFollowsRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetFollowsRequest { + return new GetFollowsRequest().fromJsonString(jsonString, options); } - static equals( - a: GetFollowsRequest | PlainMessage | undefined, - b: GetFollowsRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetFollowsRequest, a, b) + static equals(a: GetFollowsRequest | PlainMessage | undefined, b: GetFollowsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowsRequest, a, b); } } @@ -346,57 +243,39 @@ export class GetFollowsResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFollowsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFollowsResponse { - return new GetFollowsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFollowsResponse { - return new GetFollowsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFollowsResponse { - return new GetFollowsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetFollowsResponse | PlainMessage | undefined, - b: GetFollowsResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetFollowsResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsResponse { + return new GetFollowsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsResponse { + return new GetFollowsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowsResponse { + return new GetFollowsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowsResponse | PlainMessage | undefined, b: GetFollowsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowsResponse, a, b); } } @@ -410,51 +289,33 @@ export class GetFollowersCountRequest extends Message /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFollowersCountRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowersCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFollowersCountRequest { - return new GetFollowersCountRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFollowersCountRequest { - return new GetFollowersCountRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFollowersCountRequest { - return new GetFollowersCountRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetFollowersCountRequest - | PlainMessage - | undefined, - b: - | GetFollowersCountRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetFollowersCountRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowersCountRequest { + return new GetFollowersCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowersCountRequest | PlainMessage | undefined, b: GetFollowersCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowersCountRequest, a, b); } } @@ -465,51 +326,33 @@ export class GetFollowersCountResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFollowersCountResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowersCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFollowersCountResponse { - return new GetFollowersCountResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFollowersCountResponse { - return new GetFollowersCountResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFollowersCountResponse { - return new GetFollowersCountResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetFollowersCountResponse - | PlainMessage - | undefined, - b: - | GetFollowersCountResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetFollowersCountResponse, a, b) + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowersCountResponse { + return new GetFollowersCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowersCountResponse | PlainMessage | undefined, b: GetFollowersCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowersCountResponse, a, b); } } @@ -523,51 +366,33 @@ export class GetFollowsCountRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFollowsCountRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowsCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFollowsCountRequest { - return new GetFollowsCountRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFollowsCountRequest { - return new GetFollowsCountRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFollowsCountRequest { - return new GetFollowsCountRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetFollowsCountRequest - | PlainMessage - | undefined, - b: - | GetFollowsCountRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetFollowsCountRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowsCountRequest { + return new GetFollowsCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowsCountRequest | PlainMessage | undefined, b: GetFollowsCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowsCountRequest, a, b); } } @@ -578,51 +403,33 @@ export class GetFollowsCountResponse extends Message { /** * @generated from field: int32 count = 1; */ - count = 0 + count = 0; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFollowsCountResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFollowsCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFollowsCountResponse { - return new GetFollowsCountResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFollowsCountResponse { - return new GetFollowsCountResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFollowsCountResponse { - return new GetFollowsCountResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetFollowsCountResponse - | PlainMessage - | undefined, - b: - | GetFollowsCountResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetFollowsCountResponse, a, b) + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFollowsCountResponse { + return new GetFollowsCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFollowsCountResponse | PlainMessage | undefined, b: GetFollowsCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFollowsCountResponse, a, b); } } @@ -636,68 +443,45 @@ export class GetLikesBySubjectRequest extends Message /** * @generated from field: string subject_uri = 1; */ - subjectUri = '' + subjectUri = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLikesBySubjectRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikesBySubjectRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'subject_uri', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLikesBySubjectRequest { - return new GetLikesBySubjectRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLikesBySubjectRequest { - return new GetLikesBySubjectRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLikesBySubjectRequest { - return new GetLikesBySubjectRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetLikesBySubjectRequest - | PlainMessage - | undefined, - b: - | GetLikesBySubjectRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetLikesBySubjectRequest, a, b) + { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikesBySubjectRequest { + return new GetLikesBySubjectRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLikesBySubjectRequest | PlainMessage | undefined, b: GetLikesBySubjectRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikesBySubjectRequest, a, b); } } @@ -708,63 +492,39 @@ export class GetLikesBySubjectResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLikesBySubjectResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikesBySubjectResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLikesBySubjectResponse { - return new GetLikesBySubjectResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLikesBySubjectResponse { - return new GetLikesBySubjectResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLikesBySubjectResponse { - return new GetLikesBySubjectResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetLikesBySubjectResponse - | PlainMessage - | undefined, - b: - | GetLikesBySubjectResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetLikesBySubjectResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikesBySubjectResponse { + return new GetLikesBySubjectResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLikesBySubjectResponse | PlainMessage | undefined, b: GetLikesBySubjectResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikesBySubjectResponse, a, b); } } @@ -778,65 +538,39 @@ export class GetLikeByActorAndSubjectRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLikeByActorAndSubjectRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikeByActorAndSubjectRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { - no: 2, - name: 'subject_uri', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLikeByActorAndSubjectRequest { - return new GetLikeByActorAndSubjectRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLikeByActorAndSubjectRequest { - return new GetLikeByActorAndSubjectRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLikeByActorAndSubjectRequest { - return new GetLikeByActorAndSubjectRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetLikeByActorAndSubjectRequest - | PlainMessage - | undefined, - b: - | GetLikeByActorAndSubjectRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetLikeByActorAndSubjectRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikeByActorAndSubjectRequest { + return new GetLikeByActorAndSubjectRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLikeByActorAndSubjectRequest | PlainMessage | undefined, b: GetLikeByActorAndSubjectRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikeByActorAndSubjectRequest, a, b); } } @@ -847,54 +581,33 @@ export class GetLikeByActorAndSubjectResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLikeByActorAndSubjectResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikeByActorAndSubjectResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLikeByActorAndSubjectResponse { - return new GetLikeByActorAndSubjectResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLikeByActorAndSubjectResponse { - return new GetLikeByActorAndSubjectResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLikeByActorAndSubjectResponse { - return new GetLikeByActorAndSubjectResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetLikeByActorAndSubjectResponse - | PlainMessage - | undefined, - b: - | GetLikeByActorAndSubjectResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetLikeByActorAndSubjectResponse, a, b) + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLikeByActorAndSubjectResponse { + return new GetLikeByActorAndSubjectResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLikeByActorAndSubjectResponse | PlainMessage | undefined, b: GetLikeByActorAndSubjectResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikeByActorAndSubjectResponse, a, b); } } @@ -908,57 +621,45 @@ export class GetActorLikesRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorLikesRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorLikesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorLikesRequest { - return new GetActorLikesRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorLikesRequest { + return new GetActorLikesRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorLikesRequest { - return new GetActorLikesRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorLikesRequest { + return new GetActorLikesRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorLikesRequest { - return new GetActorLikesRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetActorLikesRequest { + return new GetActorLikesRequest().fromJsonString(jsonString, options); } - static equals( - a: GetActorLikesRequest | PlainMessage | undefined, - b: GetActorLikesRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetActorLikesRequest, a, b) + static equals(a: GetActorLikesRequest | PlainMessage | undefined, b: GetActorLikesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorLikesRequest, a, b); } } @@ -969,57 +670,39 @@ export class GetActorLikesResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorLikesResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorLikesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorLikesResponse { - return new GetActorLikesResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorLikesResponse { - return new GetActorLikesResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorLikesResponse { - return new GetActorLikesResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetActorLikesResponse | PlainMessage | undefined, - b: GetActorLikesResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetActorLikesResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorLikesResponse { + return new GetActorLikesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorLikesResponse { + return new GetActorLikesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorLikesResponse { + return new GetActorLikesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorLikesResponse | PlainMessage | undefined, b: GetActorLikesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorLikesResponse, a, b); } } @@ -1033,50 +716,33 @@ export class GetLikesCountRequest extends Message { /** * @generated from field: string subject_uri = 1; */ - subjectUri = '' + subjectUri = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLikesCountRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikesCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'subject_uri', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - }, - ]) + { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLikesCountRequest { - return new GetLikesCountRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesCountRequest { + return new GetLikesCountRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLikesCountRequest { - return new GetLikesCountRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesCountRequest { + return new GetLikesCountRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLikesCountRequest { - return new GetLikesCountRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetLikesCountRequest { + return new GetLikesCountRequest().fromJsonString(jsonString, options); } - static equals( - a: GetLikesCountRequest | PlainMessage | undefined, - b: GetLikesCountRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetLikesCountRequest, a, b) + static equals(a: GetLikesCountRequest | PlainMessage | undefined, b: GetLikesCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikesCountRequest, a, b); } } @@ -1087,45 +753,33 @@ export class GetLikesCountResponse extends Message { /** * @generated from field: int32 count = 1; */ - count = 0 + count = 0; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLikesCountResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLikesCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - ]) + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLikesCountResponse { - return new GetLikesCountResponse().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetLikesCountResponse { + return new GetLikesCountResponse().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLikesCountResponse { - return new GetLikesCountResponse().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetLikesCountResponse { + return new GetLikesCountResponse().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLikesCountResponse { - return new GetLikesCountResponse().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetLikesCountResponse { + return new GetLikesCountResponse().fromJsonString(jsonString, options); } - static equals( - a: GetLikesCountResponse | PlainMessage | undefined, - b: GetLikesCountResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetLikesCountResponse, a, b) + static equals(a: GetLikesCountResponse | PlainMessage | undefined, b: GetLikesCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLikesCountResponse, a, b); } } @@ -1139,68 +793,45 @@ export class GetRepostsBySubjectRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetRepostsBySubjectRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostsBySubjectRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'subject_uri', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetRepostsBySubjectRequest { - return new GetRepostsBySubjectRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetRepostsBySubjectRequest { - return new GetRepostsBySubjectRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetRepostsBySubjectRequest { - return new GetRepostsBySubjectRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetRepostsBySubjectRequest - | PlainMessage - | undefined, - b: - | GetRepostsBySubjectRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetRepostsBySubjectRequest, a, b) + { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostsBySubjectRequest { + return new GetRepostsBySubjectRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostsBySubjectRequest | PlainMessage | undefined, b: GetRepostsBySubjectRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostsBySubjectRequest, a, b); } } @@ -1211,63 +842,39 @@ export class GetRepostsBySubjectResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetRepostsBySubjectResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostsBySubjectResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetRepostsBySubjectResponse { - return new GetRepostsBySubjectResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetRepostsBySubjectResponse { - return new GetRepostsBySubjectResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetRepostsBySubjectResponse { - return new GetRepostsBySubjectResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetRepostsBySubjectResponse - | PlainMessage - | undefined, - b: - | GetRepostsBySubjectResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetRepostsBySubjectResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostsBySubjectResponse { + return new GetRepostsBySubjectResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostsBySubjectResponse | PlainMessage | undefined, b: GetRepostsBySubjectResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostsBySubjectResponse, a, b); } } @@ -1281,65 +888,39 @@ export class GetRepostByActorAndSubjectRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetRepostByActorAndSubjectRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostByActorAndSubjectRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { - no: 2, - name: 'subject_uri', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetRepostByActorAndSubjectRequest { - return new GetRepostByActorAndSubjectRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetRepostByActorAndSubjectRequest { - return new GetRepostByActorAndSubjectRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetRepostByActorAndSubjectRequest { - return new GetRepostByActorAndSubjectRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetRepostByActorAndSubjectRequest - | PlainMessage - | undefined, - b: - | GetRepostByActorAndSubjectRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetRepostByActorAndSubjectRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostByActorAndSubjectRequest { + return new GetRepostByActorAndSubjectRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostByActorAndSubjectRequest | PlainMessage | undefined, b: GetRepostByActorAndSubjectRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostByActorAndSubjectRequest, a, b); } } @@ -1350,54 +931,33 @@ export class GetRepostByActorAndSubjectResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetRepostByActorAndSubjectResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostByActorAndSubjectResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetRepostByActorAndSubjectResponse { - return new GetRepostByActorAndSubjectResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetRepostByActorAndSubjectResponse { - return new GetRepostByActorAndSubjectResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetRepostByActorAndSubjectResponse { - return new GetRepostByActorAndSubjectResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetRepostByActorAndSubjectResponse - | PlainMessage - | undefined, - b: - | GetRepostByActorAndSubjectResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetRepostByActorAndSubjectResponse, a, b) + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostByActorAndSubjectResponse { + return new GetRepostByActorAndSubjectResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostByActorAndSubjectResponse | PlainMessage | undefined, b: GetRepostByActorAndSubjectResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostByActorAndSubjectResponse, a, b); } } @@ -1411,63 +971,45 @@ export class GetActorRepostsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorRepostsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorRepostsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorRepostsRequest { - return new GetActorRepostsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorRepostsRequest { - return new GetActorRepostsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorRepostsRequest { - return new GetActorRepostsRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetActorRepostsRequest - | PlainMessage - | undefined, - b: - | GetActorRepostsRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetActorRepostsRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorRepostsRequest { + return new GetActorRepostsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorRepostsRequest | PlainMessage | undefined, b: GetActorRepostsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorRepostsRequest, a, b); } } @@ -1478,63 +1020,39 @@ export class GetActorRepostsResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorRepostsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorRepostsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorRepostsResponse { - return new GetActorRepostsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorRepostsResponse { - return new GetActorRepostsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorRepostsResponse { - return new GetActorRepostsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetActorRepostsResponse - | PlainMessage - | undefined, - b: - | GetActorRepostsResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetActorRepostsResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorRepostsResponse { + return new GetActorRepostsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorRepostsResponse | PlainMessage | undefined, b: GetActorRepostsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorRepostsResponse, a, b); } } @@ -1548,56 +1066,33 @@ export class GetRepostsCountRequest extends Message { /** * @generated from field: string subject_uri = 1; */ - subjectUri = '' + subjectUri = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetRepostsCountRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostsCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'subject_uri', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetRepostsCountRequest { - return new GetRepostsCountRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetRepostsCountRequest { - return new GetRepostsCountRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetRepostsCountRequest { - return new GetRepostsCountRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetRepostsCountRequest - | PlainMessage - | undefined, - b: - | GetRepostsCountRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetRepostsCountRequest, a, b) + { no: 1, name: "subject_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostsCountRequest { + return new GetRepostsCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostsCountRequest | PlainMessage | undefined, b: GetRepostsCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostsCountRequest, a, b); } } @@ -1608,51 +1103,33 @@ export class GetRepostsCountResponse extends Message { /** * @generated from field: int32 count = 1; */ - count = 0 + count = 0; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetRepostsCountResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetRepostsCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetRepostsCountResponse { - return new GetRepostsCountResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetRepostsCountResponse { - return new GetRepostsCountResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetRepostsCountResponse { - return new GetRepostsCountResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetRepostsCountResponse - | PlainMessage - | undefined, - b: - | GetRepostsCountResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetRepostsCountResponse, a, b) + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetRepostsCountResponse { + return new GetRepostsCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetRepostsCountResponse | PlainMessage | undefined, b: GetRepostsCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetRepostsCountResponse, a, b); } } @@ -1667,51 +1144,33 @@ export class GetProfilesRequest extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = [] + dids: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetProfilesRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetProfilesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'dids', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetProfilesRequest { - return new GetProfilesRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetProfilesRequest { - return new GetProfilesRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetProfilesRequest { - return new GetProfilesRequest().fromJsonString(jsonString, options) - } - - static equals( - a: GetProfilesRequest | PlainMessage | undefined, - b: GetProfilesRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetProfilesRequest, a, b) + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetProfilesRequest { + return new GetProfilesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetProfilesRequest { + return new GetProfilesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetProfilesRequest { + return new GetProfilesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetProfilesRequest | PlainMessage | undefined, b: GetProfilesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetProfilesRequest, a, b); } } @@ -1722,51 +1181,33 @@ export class GetProfilesResponse extends Message { /** * @generated from field: repeated bytes records = 1; */ - records: Uint8Array[] = [] + records: Uint8Array[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetProfilesResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetProfilesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'records', - kind: 'scalar', - T: 12 /* ScalarType.BYTES */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetProfilesResponse { - return new GetProfilesResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetProfilesResponse { - return new GetProfilesResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetProfilesResponse { - return new GetProfilesResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetProfilesResponse | PlainMessage | undefined, - b: GetProfilesResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetProfilesResponse, a, b) + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetProfilesResponse { + return new GetProfilesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetProfilesResponse { + return new GetProfilesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetProfilesResponse { + return new GetProfilesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetProfilesResponse | PlainMessage | undefined, b: GetProfilesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetProfilesResponse, a, b); } } @@ -1780,51 +1221,33 @@ export class GetHandlesRequest extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = [] + dids: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetHandlesRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetHandlesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'dids', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetHandlesRequest { - return new GetHandlesRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetHandlesRequest { - return new GetHandlesRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetHandlesRequest { - return new GetHandlesRequest().fromJsonString(jsonString, options) - } - - static equals( - a: GetHandlesRequest | PlainMessage | undefined, - b: GetHandlesRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetHandlesRequest, a, b) + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetHandlesRequest { + return new GetHandlesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetHandlesRequest { + return new GetHandlesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetHandlesRequest { + return new GetHandlesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetHandlesRequest | PlainMessage | undefined, b: GetHandlesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetHandlesRequest, a, b); } } @@ -1835,51 +1258,33 @@ export class GetHandlesResponse extends Message { /** * @generated from field: repeated string handles = 1; */ - handles: string[] = [] + handles: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetHandlesResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetHandlesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'handles', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetHandlesResponse { - return new GetHandlesResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetHandlesResponse { - return new GetHandlesResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetHandlesResponse { - return new GetHandlesResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetHandlesResponse | PlainMessage | undefined, - b: GetHandlesResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetHandlesResponse, a, b) + { no: 1, name: "handles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetHandlesResponse { + return new GetHandlesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetHandlesResponse { + return new GetHandlesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetHandlesResponse { + return new GetHandlesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetHandlesResponse | PlainMessage | undefined, b: GetHandlesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetHandlesResponse, a, b); } } @@ -1894,57 +1299,33 @@ export class GetDidsByHandlesRequest extends Message { /** * @generated from field: repeated string handles = 1; */ - handles: string[] = [] + handles: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetDidsByHandlesRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetDidsByHandlesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'handles', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetDidsByHandlesRequest { - return new GetDidsByHandlesRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetDidsByHandlesRequest { - return new GetDidsByHandlesRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetDidsByHandlesRequest { - return new GetDidsByHandlesRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetDidsByHandlesRequest - | PlainMessage - | undefined, - b: - | GetDidsByHandlesRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetDidsByHandlesRequest, a, b) + { no: 1, name: "handles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDidsByHandlesRequest { + return new GetDidsByHandlesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetDidsByHandlesRequest | PlainMessage | undefined, b: GetDidsByHandlesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDidsByHandlesRequest, a, b); } } @@ -1955,57 +1336,33 @@ export class GetDidsByHandlesResponse extends Message /** * @generated from field: repeated string dids = 1; */ - dids: string[] = [] + dids: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetDidsByHandlesResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetDidsByHandlesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'dids', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetDidsByHandlesResponse { - return new GetDidsByHandlesResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetDidsByHandlesResponse { - return new GetDidsByHandlesResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetDidsByHandlesResponse { - return new GetDidsByHandlesResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetDidsByHandlesResponse - | PlainMessage - | undefined, - b: - | GetDidsByHandlesResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetDidsByHandlesResponse, a, b) + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDidsByHandlesResponse { + return new GetDidsByHandlesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetDidsByHandlesResponse | PlainMessage | undefined, b: GetDidsByHandlesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDidsByHandlesResponse, a, b); } } @@ -2019,57 +1376,45 @@ export class GetListMembersRequest extends Message { /** * @generated from field: string list_uri = 1; */ - listUri = '' + listUri = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListMembersRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListMembersRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListMembersRequest { - return new GetListMembersRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembersRequest { + return new GetListMembersRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListMembersRequest { - return new GetListMembersRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembersRequest { + return new GetListMembersRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListMembersRequest { - return new GetListMembersRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetListMembersRequest { + return new GetListMembersRequest().fromJsonString(jsonString, options); } - static equals( - a: GetListMembersRequest | PlainMessage | undefined, - b: GetListMembersRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetListMembersRequest, a, b) + static equals(a: GetListMembersRequest | PlainMessage | undefined, b: GetListMembersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListMembersRequest, a, b); } } @@ -2080,63 +1425,39 @@ export class GetListMembersResponse extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = [] + dids: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListMembersResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListMembersResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'dids', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListMembersResponse { - return new GetListMembersResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListMembersResponse { - return new GetListMembersResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListMembersResponse { - return new GetListMembersResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetListMembersResponse - | PlainMessage - | undefined, - b: - | GetListMembersResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetListMembersResponse, a, b) + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembersResponse { + return new GetListMembersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembersResponse { + return new GetListMembersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListMembersResponse { + return new GetListMembersResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetListMembersResponse | PlainMessage | undefined, b: GetListMembersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListMembersResponse, a, b); } } @@ -2150,63 +1471,39 @@ export class GetListMembershipRequest extends Message /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: repeated string list_uris = 2; */ - listUris: string[] = [] + listUris: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListMembershipRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListMembershipRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { - no: 2, - name: 'list_uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListMembershipRequest { - return new GetListMembershipRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListMembershipRequest { - return new GetListMembershipRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListMembershipRequest { - return new GetListMembershipRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetListMembershipRequest - | PlainMessage - | undefined, - b: - | GetListMembershipRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetListMembershipRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembershipRequest { + return new GetListMembershipRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembershipRequest { + return new GetListMembershipRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListMembershipRequest { + return new GetListMembershipRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetListMembershipRequest | PlainMessage | undefined, b: GetListMembershipRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListMembershipRequest, a, b); } } @@ -2217,57 +1514,33 @@ export class GetListMembershipResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListMembershipResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListMembershipResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'listitem_uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListMembershipResponse { - return new GetListMembershipResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListMembershipResponse { - return new GetListMembershipResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListMembershipResponse { - return new GetListMembershipResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetListMembershipResponse - | PlainMessage - | undefined, - b: - | GetListMembershipResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetListMembershipResponse, a, b) + { no: 1, name: "listitem_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListMembershipResponse { + return new GetListMembershipResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListMembershipResponse { + return new GetListMembershipResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListMembershipResponse { + return new GetListMembershipResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetListMembershipResponse | PlainMessage | undefined, b: GetListMembershipResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListMembershipResponse, a, b); } } @@ -2281,45 +1554,33 @@ export class GetListRequest extends Message { /** * @generated from field: string list_uri = 1; */ - listUri = '' + listUri = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListRequest { - return new GetListRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetListRequest { + return new GetListRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListRequest { - return new GetListRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetListRequest { + return new GetListRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListRequest { - return new GetListRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetListRequest { + return new GetListRequest().fromJsonString(jsonString, options); } - static equals( - a: GetListRequest | PlainMessage | undefined, - b: GetListRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetListRequest, a, b) + static equals(a: GetListRequest | PlainMessage | undefined, b: GetListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListRequest, a, b); } } @@ -2330,45 +1591,33 @@ export class GetListResponse extends Message { /** * @generated from field: bytes record = 1; */ - record = new Uint8Array(0) + record = new Uint8Array(0); constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'record', kind: 'scalar', T: 12 /* ScalarType.BYTES */ }, - ]) + { no: 1, name: "record", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListResponse { - return new GetListResponse().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetListResponse { + return new GetListResponse().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListResponse { - return new GetListResponse().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetListResponse { + return new GetListResponse().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListResponse { - return new GetListResponse().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetListResponse { + return new GetListResponse().fromJsonString(jsonString, options); } - static equals( - a: GetListResponse | PlainMessage | undefined, - b: GetListResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetListResponse, a, b) + static equals(a: GetListResponse | PlainMessage | undefined, b: GetListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListResponse, a, b); } } @@ -2382,45 +1631,33 @@ export class GetListCountRequest extends Message { /** * @generated from field: string list_uri = 1; */ - listUri = '' + listUri = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListCountRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListCountRequest { - return new GetListCountRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetListCountRequest { + return new GetListCountRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListCountRequest { - return new GetListCountRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetListCountRequest { + return new GetListCountRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListCountRequest { - return new GetListCountRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetListCountRequest { + return new GetListCountRequest().fromJsonString(jsonString, options); } - static equals( - a: GetListCountRequest | PlainMessage | undefined, - b: GetListCountRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetListCountRequest, a, b) + static equals(a: GetListCountRequest | PlainMessage | undefined, b: GetListCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListCountRequest, a, b); } } @@ -2431,45 +1668,33 @@ export class GetListCountResponse extends Message { /** * @generated from field: int32 count = 1; */ - count = 0 + count = 0; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListCountResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - ]) + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListCountResponse { - return new GetListCountResponse().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetListCountResponse { + return new GetListCountResponse().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListCountResponse { - return new GetListCountResponse().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetListCountResponse { + return new GetListCountResponse().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListCountResponse { - return new GetListCountResponse().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetListCountResponse { + return new GetListCountResponse().fromJsonString(jsonString, options); } - static equals( - a: GetListCountResponse | PlainMessage | undefined, - b: GetListCountResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetListCountResponse, a, b) + static equals(a: GetListCountResponse | PlainMessage | undefined, b: GetListCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListCountResponse, a, b); } } @@ -2483,57 +1708,39 @@ export class GetActorMutesActorRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorMutesActorRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorMutesActorRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorMutesActorRequest { - return new GetActorMutesActorRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorMutesActorRequest { - return new GetActorMutesActorRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorMutesActorRequest { - return new GetActorMutesActorRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetActorMutesActorRequest - | PlainMessage - | undefined, - b: - | GetActorMutesActorRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetActorMutesActorRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorRequest { + return new GetActorMutesActorRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorMutesActorRequest | PlainMessage | undefined, b: GetActorMutesActorRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorMutesActorRequest, a, b); } } @@ -2544,51 +1751,33 @@ export class GetActorMutesActorResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorMutesActorResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorMutesActorResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'muted', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorMutesActorResponse { - return new GetActorMutesActorResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorMutesActorResponse { - return new GetActorMutesActorResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorMutesActorResponse { - return new GetActorMutesActorResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetActorMutesActorResponse - | PlainMessage - | undefined, - b: - | GetActorMutesActorResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetActorMutesActorResponse, a, b) + { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorResponse { + return new GetActorMutesActorResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorMutesActorResponse | PlainMessage | undefined, b: GetActorMutesActorResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorMutesActorResponse, a, b); } } @@ -2602,57 +1791,45 @@ export class GetMutesRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetMutesRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetMutesRequest { - return new GetMutesRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutesRequest { + return new GetMutesRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetMutesRequest { - return new GetMutesRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutesRequest { + return new GetMutesRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetMutesRequest { - return new GetMutesRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetMutesRequest { + return new GetMutesRequest().fromJsonString(jsonString, options); } - static equals( - a: GetMutesRequest | PlainMessage | undefined, - b: GetMutesRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetMutesRequest, a, b) + static equals(a: GetMutesRequest | PlainMessage | undefined, b: GetMutesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutesRequest, a, b); } } @@ -2663,57 +1840,39 @@ export class GetMutesResponse extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = [] + dids: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetMutesResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'dids', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetMutesResponse { - return new GetMutesResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetMutesResponse { - return new GetMutesResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetMutesResponse { - return new GetMutesResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetMutesResponse | PlainMessage | undefined, - b: GetMutesResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetMutesResponse, a, b) + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutesResponse { + return new GetMutesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutesResponse { + return new GetMutesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutesResponse { + return new GetMutesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetMutesResponse | PlainMessage | undefined, b: GetMutesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutesResponse, a, b); } } @@ -2728,60 +1887,39 @@ export class GetActorMutesActorViaListRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorMutesActorViaListRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorMutesActorViaListRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorMutesActorViaListRequest { - return new GetActorMutesActorViaListRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorMutesActorViaListRequest { - return new GetActorMutesActorViaListRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorMutesActorViaListRequest { - return new GetActorMutesActorViaListRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetActorMutesActorViaListRequest - | PlainMessage - | undefined, - b: - | GetActorMutesActorViaListRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetActorMutesActorViaListRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorViaListRequest { + return new GetActorMutesActorViaListRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetActorMutesActorViaListRequest | PlainMessage | undefined, b: GetActorMutesActorViaListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorMutesActorViaListRequest, a, b); } } @@ -2792,54 +1930,33 @@ export class GetActorMutesActorViaListResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorMutesActorViaListResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorMutesActorViaListResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorMutesActorViaListResponse { - return new GetActorMutesActorViaListResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorMutesActorViaListResponse { - return new GetActorMutesActorViaListResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorMutesActorViaListResponse { - return new GetActorMutesActorViaListResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetActorMutesActorViaListResponse - | PlainMessage - | undefined, - b: - | GetActorMutesActorViaListResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetActorMutesActorViaListResponse, a, b) + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorMutesActorViaListResponse { + return new GetActorMutesActorViaListResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorMutesActorViaListResponse | PlainMessage | undefined, b: GetActorMutesActorViaListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorMutesActorViaListResponse, a, b); } } @@ -2853,60 +1970,39 @@ export class GetMutelistSubscriptionRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetMutelistSubscriptionRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutelistSubscriptionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetMutelistSubscriptionRequest { - return new GetMutelistSubscriptionRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetMutelistSubscriptionRequest { - return new GetMutelistSubscriptionRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetMutelistSubscriptionRequest { - return new GetMutelistSubscriptionRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetMutelistSubscriptionRequest - | PlainMessage - | undefined, - b: - | GetMutelistSubscriptionRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetMutelistSubscriptionRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionRequest { + return new GetMutelistSubscriptionRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetMutelistSubscriptionRequest | PlainMessage | undefined, b: GetMutelistSubscriptionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutelistSubscriptionRequest, a, b); } } @@ -2917,54 +2013,33 @@ export class GetMutelistSubscriptionResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetMutelistSubscriptionResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutelistSubscriptionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'subscribed', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetMutelistSubscriptionResponse { - return new GetMutelistSubscriptionResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetMutelistSubscriptionResponse { - return new GetMutelistSubscriptionResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetMutelistSubscriptionResponse { - return new GetMutelistSubscriptionResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetMutelistSubscriptionResponse - | PlainMessage - | undefined, - b: - | GetMutelistSubscriptionResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetMutelistSubscriptionResponse, a, b) + { no: 1, name: "subscribed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionResponse { + return new GetMutelistSubscriptionResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetMutelistSubscriptionResponse | PlainMessage | undefined, b: GetMutelistSubscriptionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutelistSubscriptionResponse, a, b); } } @@ -2978,66 +2053,45 @@ export class GetMutelistSubscriptionsRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetMutelistSubscriptionsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutelistSubscriptionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetMutelistSubscriptionsRequest { - return new GetMutelistSubscriptionsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetMutelistSubscriptionsRequest { - return new GetMutelistSubscriptionsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetMutelistSubscriptionsRequest { - return new GetMutelistSubscriptionsRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetMutelistSubscriptionsRequest - | PlainMessage - | undefined, - b: - | GetMutelistSubscriptionsRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetMutelistSubscriptionsRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionsRequest { + return new GetMutelistSubscriptionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetMutelistSubscriptionsRequest | PlainMessage | undefined, b: GetMutelistSubscriptionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutelistSubscriptionsRequest, a, b); } } @@ -3048,66 +2102,39 @@ export class GetMutelistSubscriptionsResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetMutelistSubscriptionsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetMutelistSubscriptionsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'list_uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetMutelistSubscriptionsResponse { - return new GetMutelistSubscriptionsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetMutelistSubscriptionsResponse { - return new GetMutelistSubscriptionsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetMutelistSubscriptionsResponse { - return new GetMutelistSubscriptionsResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetMutelistSubscriptionsResponse - | PlainMessage - | undefined, - b: - | GetMutelistSubscriptionsResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetMutelistSubscriptionsResponse, a, b) + { no: 1, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetMutelistSubscriptionsResponse { + return new GetMutelistSubscriptionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetMutelistSubscriptionsResponse | PlainMessage | undefined, b: GetMutelistSubscriptionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetMutelistSubscriptionsResponse, a, b); } } @@ -3122,60 +2149,39 @@ export class GetBidirectionalBlockRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBidirectionalBlockRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBidirectionalBlockRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBidirectionalBlockRequest { - return new GetBidirectionalBlockRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBidirectionalBlockRequest { - return new GetBidirectionalBlockRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBidirectionalBlockRequest { - return new GetBidirectionalBlockRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetBidirectionalBlockRequest - | PlainMessage - | undefined, - b: - | GetBidirectionalBlockRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBidirectionalBlockRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockRequest { + return new GetBidirectionalBlockRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBidirectionalBlockRequest | PlainMessage | undefined, b: GetBidirectionalBlockRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBidirectionalBlockRequest, a, b); } } @@ -3186,54 +2192,33 @@ export class GetBidirectionalBlockResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBidirectionalBlockResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBidirectionalBlockResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'block_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBidirectionalBlockResponse { - return new GetBidirectionalBlockResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBidirectionalBlockResponse { - return new GetBidirectionalBlockResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBidirectionalBlockResponse { - return new GetBidirectionalBlockResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetBidirectionalBlockResponse - | PlainMessage - | undefined, - b: - | GetBidirectionalBlockResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBidirectionalBlockResponse, a, b) + { no: 1, name: "block_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockResponse { + return new GetBidirectionalBlockResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBidirectionalBlockResponse | PlainMessage | undefined, b: GetBidirectionalBlockResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBidirectionalBlockResponse, a, b); } } @@ -3247,57 +2232,45 @@ export class GetBlocksRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBlocksRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocksRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBlocksRequest { - return new GetBlocksRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocksRequest { + return new GetBlocksRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBlocksRequest { - return new GetBlocksRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocksRequest { + return new GetBlocksRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBlocksRequest { - return new GetBlocksRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetBlocksRequest { + return new GetBlocksRequest().fromJsonString(jsonString, options); } - static equals( - a: GetBlocksRequest | PlainMessage | undefined, - b: GetBlocksRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetBlocksRequest, a, b) + static equals(a: GetBlocksRequest | PlainMessage | undefined, b: GetBlocksRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocksRequest, a, b); } } @@ -3308,57 +2281,39 @@ export class GetBlocksResponse extends Message { /** * @generated from field: repeated string block_uris = 1; */ - blockUris: string[] = [] + blockUris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBlocksResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocksResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'block_uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBlocksResponse { - return new GetBlocksResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBlocksResponse { - return new GetBlocksResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBlocksResponse { - return new GetBlocksResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetBlocksResponse | PlainMessage | undefined, - b: GetBlocksResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetBlocksResponse, a, b) + { no: 1, name: "block_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocksResponse { + return new GetBlocksResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocksResponse { + return new GetBlocksResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocksResponse { + return new GetBlocksResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocksResponse | PlainMessage | undefined, b: GetBlocksResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocksResponse, a, b); } } @@ -3373,63 +2328,39 @@ export class GetBidirectionalBlockViaListRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBidirectionalBlockViaListRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBidirectionalBlockViaListRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBidirectionalBlockViaListRequest { - return new GetBidirectionalBlockViaListRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBidirectionalBlockViaListRequest { - return new GetBidirectionalBlockViaListRequest().fromJson( - jsonValue, - options, - ) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBidirectionalBlockViaListRequest { - return new GetBidirectionalBlockViaListRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetBidirectionalBlockViaListRequest - | PlainMessage - | undefined, - b: - | GetBidirectionalBlockViaListRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBidirectionalBlockViaListRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "target_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockViaListRequest { + return new GetBidirectionalBlockViaListRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBidirectionalBlockViaListRequest | PlainMessage | undefined, b: GetBidirectionalBlockViaListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBidirectionalBlockViaListRequest, a, b); } } @@ -3440,57 +2371,33 @@ export class GetBidirectionalBlockViaListResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBidirectionalBlockViaListResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBidirectionalBlockViaListResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBidirectionalBlockViaListResponse { - return new GetBidirectionalBlockViaListResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBidirectionalBlockViaListResponse { - return new GetBidirectionalBlockViaListResponse().fromJson( - jsonValue, - options, - ) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBidirectionalBlockViaListResponse { - return new GetBidirectionalBlockViaListResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetBidirectionalBlockViaListResponse - | PlainMessage - | undefined, - b: - | GetBidirectionalBlockViaListResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBidirectionalBlockViaListResponse, a, b) + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBidirectionalBlockViaListResponse { + return new GetBidirectionalBlockViaListResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBidirectionalBlockViaListResponse | PlainMessage | undefined, b: GetBidirectionalBlockViaListResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBidirectionalBlockViaListResponse, a, b); } } @@ -3504,60 +2411,39 @@ export class GetBlocklistSubscriptionRequest extends Message) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocklistSubscriptionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromBinary(bytes, options); + } - constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromJson(jsonValue, options); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBlocklistSubscriptionRequest' - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBlocklistSubscriptionRequest { - return new GetBlocklistSubscriptionRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBlocklistSubscriptionRequest { - return new GetBlocklistSubscriptionRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBlocklistSubscriptionRequest { - return new GetBlocklistSubscriptionRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetBlocklistSubscriptionRequest - | PlainMessage - | undefined, - b: - | GetBlocklistSubscriptionRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBlocklistSubscriptionRequest, a, b) + static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionRequest { + return new GetBlocklistSubscriptionRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocklistSubscriptionRequest | PlainMessage | undefined, b: GetBlocklistSubscriptionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocklistSubscriptionRequest, a, b); } } @@ -3568,54 +2454,33 @@ export class GetBlocklistSubscriptionResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBlocklistSubscriptionResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocklistSubscriptionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'subscribed', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBlocklistSubscriptionResponse { - return new GetBlocklistSubscriptionResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBlocklistSubscriptionResponse { - return new GetBlocklistSubscriptionResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBlocklistSubscriptionResponse { - return new GetBlocklistSubscriptionResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetBlocklistSubscriptionResponse - | PlainMessage - | undefined, - b: - | GetBlocklistSubscriptionResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBlocklistSubscriptionResponse, a, b) + { no: 1, name: "subscribed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionResponse { + return new GetBlocklistSubscriptionResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocklistSubscriptionResponse | PlainMessage | undefined, b: GetBlocklistSubscriptionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocklistSubscriptionResponse, a, b); } } @@ -3629,66 +2494,45 @@ export class GetBlocklistSubscriptionsRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBlocklistSubscriptionsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocklistSubscriptionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBlocklistSubscriptionsRequest { - return new GetBlocklistSubscriptionsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBlocklistSubscriptionsRequest { - return new GetBlocklistSubscriptionsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBlocklistSubscriptionsRequest { - return new GetBlocklistSubscriptionsRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetBlocklistSubscriptionsRequest - | PlainMessage - | undefined, - b: - | GetBlocklistSubscriptionsRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBlocklistSubscriptionsRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionsRequest { + return new GetBlocklistSubscriptionsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocklistSubscriptionsRequest | PlainMessage | undefined, b: GetBlocklistSubscriptionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocklistSubscriptionsRequest, a, b); } } @@ -3699,66 +2543,39 @@ export class GetBlocklistSubscriptionsResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBlocklistSubscriptionsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlocklistSubscriptionsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'list_uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBlocklistSubscriptionsResponse { - return new GetBlocklistSubscriptionsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBlocklistSubscriptionsResponse { - return new GetBlocklistSubscriptionsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBlocklistSubscriptionsResponse { - return new GetBlocklistSubscriptionsResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetBlocklistSubscriptionsResponse - | PlainMessage - | undefined, - b: - | GetBlocklistSubscriptionsResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBlocklistSubscriptionsResponse, a, b) + { no: 1, name: "list_uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlocklistSubscriptionsResponse { + return new GetBlocklistSubscriptionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBlocklistSubscriptionsResponse | PlainMessage | undefined, b: GetBlocklistSubscriptionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlocklistSubscriptionsResponse, a, b); } } @@ -3773,63 +2590,45 @@ export class GetNotificationsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetNotificationsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetNotificationsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetNotificationsRequest { - return new GetNotificationsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetNotificationsRequest { - return new GetNotificationsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetNotificationsRequest { - return new GetNotificationsRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetNotificationsRequest - | PlainMessage - | undefined, - b: - | GetNotificationsRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetNotificationsRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationsRequest { + return new GetNotificationsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationsRequest { + return new GetNotificationsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNotificationsRequest { + return new GetNotificationsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetNotificationsRequest | PlainMessage | undefined, b: GetNotificationsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNotificationsRequest, a, b); } } @@ -3840,57 +2639,45 @@ export class Notification extends Message { /** * @generated from field: string uri = 1; */ - uri = '' + uri = ""; /** * @generated from field: string reason = 2; */ - reason = '' + reason = ""; /** * @generated from field: google.protobuf.Timestamp timestamp = 3; */ - timestamp?: Timestamp + timestamp?: Timestamp; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.Notification' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.Notification"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'reason', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 3, name: 'timestamp', kind: 'message', T: Timestamp }, - ]) + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "timestamp", kind: "message", T: Timestamp }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): Notification { - return new Notification().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): Notification { + return new Notification().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): Notification { - return new Notification().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): Notification { + return new Notification().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): Notification { - return new Notification().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): Notification { + return new Notification().fromJsonString(jsonString, options); } - static equals( - a: Notification | PlainMessage | undefined, - b: Notification | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(Notification, a, b) + static equals(a: Notification | PlainMessage | undefined, b: Notification | PlainMessage | undefined): boolean { + return proto3.util.equals(Notification, a, b); } } @@ -3901,63 +2688,39 @@ export class GetNotificationsResponse extends Message /** * @generated from field: repeated bsky.Notification notifications = 1; */ - notifications: Notification[] = [] + notifications: Notification[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetNotificationsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetNotificationsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'notifications', - kind: 'message', - T: Notification, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetNotificationsResponse { - return new GetNotificationsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetNotificationsResponse { - return new GetNotificationsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetNotificationsResponse { - return new GetNotificationsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetNotificationsResponse - | PlainMessage - | undefined, - b: - | GetNotificationsResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetNotificationsResponse, a, b) + { no: 1, name: "notifications", kind: "message", T: Notification, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationsResponse { + return new GetNotificationsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationsResponse { + return new GetNotificationsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNotificationsResponse { + return new GetNotificationsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetNotificationsResponse | PlainMessage | undefined, b: GetNotificationsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNotificationsResponse, a, b); } } @@ -3971,60 +2734,39 @@ export class UpdateNotificationSeenRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.UpdateNotificationSeenRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.UpdateNotificationSeenRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'timestamp', kind: 'message', T: Timestamp }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): UpdateNotificationSeenRequest { - return new UpdateNotificationSeenRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): UpdateNotificationSeenRequest { - return new UpdateNotificationSeenRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): UpdateNotificationSeenRequest { - return new UpdateNotificationSeenRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | UpdateNotificationSeenRequest - | PlainMessage - | undefined, - b: - | UpdateNotificationSeenRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(UpdateNotificationSeenRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timestamp", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateNotificationSeenRequest { + return new UpdateNotificationSeenRequest().fromJsonString(jsonString, options); + } + + static equals(a: UpdateNotificationSeenRequest | PlainMessage | undefined, b: UpdateNotificationSeenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateNotificationSeenRequest, a, b); } } @@ -4033,49 +2775,29 @@ export class UpdateNotificationSeenRequest extends Message { constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) - } - - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.UpdateNotificationSeenResponse' - static readonly fields: FieldList = proto3.util.newFieldList(() => []) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): UpdateNotificationSeenResponse { - return new UpdateNotificationSeenResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): UpdateNotificationSeenResponse { - return new UpdateNotificationSeenResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): UpdateNotificationSeenResponse { - return new UpdateNotificationSeenResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | UpdateNotificationSeenResponse - | PlainMessage - | undefined, - b: - | UpdateNotificationSeenResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(UpdateNotificationSeenResponse, a, b) + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.UpdateNotificationSeenResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateNotificationSeenResponse { + return new UpdateNotificationSeenResponse().fromJsonString(jsonString, options); + } + + static equals(a: UpdateNotificationSeenResponse | PlainMessage | undefined, b: UpdateNotificationSeenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateNotificationSeenResponse, a, b); } } @@ -4089,51 +2811,33 @@ export class GetNotificationSeenRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetNotificationSeenRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetNotificationSeenRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetNotificationSeenRequest { - return new GetNotificationSeenRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetNotificationSeenRequest { - return new GetNotificationSeenRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetNotificationSeenRequest { - return new GetNotificationSeenRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetNotificationSeenRequest - | PlainMessage - | undefined, - b: - | GetNotificationSeenRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetNotificationSeenRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNotificationSeenRequest { + return new GetNotificationSeenRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetNotificationSeenRequest | PlainMessage | undefined, b: GetNotificationSeenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNotificationSeenRequest, a, b); } } @@ -4144,51 +2848,33 @@ export class GetNotificationSeenResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetNotificationSeenResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetNotificationSeenResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'timestamp', kind: 'message', T: Timestamp }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetNotificationSeenResponse { - return new GetNotificationSeenResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetNotificationSeenResponse { - return new GetNotificationSeenResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetNotificationSeenResponse { - return new GetNotificationSeenResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetNotificationSeenResponse - | PlainMessage - | undefined, - b: - | GetNotificationSeenResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetNotificationSeenResponse, a, b) + { no: 1, name: "timestamp", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNotificationSeenResponse { + return new GetNotificationSeenResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetNotificationSeenResponse | PlainMessage | undefined, b: GetNotificationSeenResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNotificationSeenResponse, a, b); } } @@ -4202,54 +2888,33 @@ export class GetUnreadNotificationCountRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetUnreadNotificationCountRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetUnreadNotificationCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetUnreadNotificationCountRequest { - return new GetUnreadNotificationCountRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetUnreadNotificationCountRequest { - return new GetUnreadNotificationCountRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetUnreadNotificationCountRequest { - return new GetUnreadNotificationCountRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetUnreadNotificationCountRequest - | PlainMessage - | undefined, - b: - | GetUnreadNotificationCountRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetUnreadNotificationCountRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetUnreadNotificationCountRequest { + return new GetUnreadNotificationCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetUnreadNotificationCountRequest | PlainMessage | undefined, b: GetUnreadNotificationCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetUnreadNotificationCountRequest, a, b); } } @@ -4260,54 +2925,33 @@ export class GetUnreadNotificationCountResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetUnreadNotificationCountResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetUnreadNotificationCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'count', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetUnreadNotificationCountResponse { - return new GetUnreadNotificationCountResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetUnreadNotificationCountResponse { - return new GetUnreadNotificationCountResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetUnreadNotificationCountResponse { - return new GetUnreadNotificationCountResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetUnreadNotificationCountResponse - | PlainMessage - | undefined, - b: - | GetUnreadNotificationCountResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetUnreadNotificationCountResponse, a, b) + { no: 1, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetUnreadNotificationCountResponse { + return new GetUnreadNotificationCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetUnreadNotificationCountResponse | PlainMessage | undefined, b: GetUnreadNotificationCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetUnreadNotificationCountResponse, a, b); } } @@ -4321,57 +2965,33 @@ export class GetFeedGeneratorsRequest extends Message /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFeedGeneratorsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFeedGeneratorsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFeedGeneratorsRequest { - return new GetFeedGeneratorsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFeedGeneratorsRequest { - return new GetFeedGeneratorsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFeedGeneratorsRequest { - return new GetFeedGeneratorsRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetFeedGeneratorsRequest - | PlainMessage - | undefined, - b: - | GetFeedGeneratorsRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetFeedGeneratorsRequest, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorsRequest { + return new GetFeedGeneratorsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFeedGeneratorsRequest | PlainMessage | undefined, b: GetFeedGeneratorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFeedGeneratorsRequest, a, b); } } @@ -4382,57 +3002,33 @@ export class GetFeedGeneratorsResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFeedGeneratorsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFeedGeneratorsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'records', - kind: 'scalar', - T: 12 /* ScalarType.BYTES */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFeedGeneratorsResponse { - return new GetFeedGeneratorsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFeedGeneratorsResponse { - return new GetFeedGeneratorsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFeedGeneratorsResponse { - return new GetFeedGeneratorsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetFeedGeneratorsResponse - | PlainMessage - | undefined, - b: - | GetFeedGeneratorsResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetFeedGeneratorsResponse, a, b) + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorsResponse { + return new GetFeedGeneratorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFeedGeneratorsResponse | PlainMessage | undefined, b: GetFeedGeneratorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFeedGeneratorsResponse, a, b); } } @@ -4446,57 +3042,45 @@ export class GetActorFeedsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorFeedsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorFeedsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorFeedsRequest { - return new GetActorFeedsRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorFeedsRequest { - return new GetActorFeedsRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorFeedsRequest { - return new GetActorFeedsRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetActorFeedsRequest { + return new GetActorFeedsRequest().fromJsonString(jsonString, options); } - static equals( - a: GetActorFeedsRequest | PlainMessage | undefined, - b: GetActorFeedsRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetActorFeedsRequest, a, b) + static equals(a: GetActorFeedsRequest | PlainMessage | undefined, b: GetActorFeedsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorFeedsRequest, a, b); } } @@ -4507,57 +3091,39 @@ export class GetActorFeedsResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetActorFeedsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetActorFeedsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetActorFeedsResponse { - return new GetActorFeedsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetActorFeedsResponse { - return new GetActorFeedsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetActorFeedsResponse { - return new GetActorFeedsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetActorFeedsResponse | PlainMessage | undefined, - b: GetActorFeedsResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetActorFeedsResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetActorFeedsResponse { + return new GetActorFeedsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetActorFeedsResponse | PlainMessage | undefined, b: GetActorFeedsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetActorFeedsResponse, a, b); } } @@ -4572,63 +3138,45 @@ export class GetSuggestedFeedsRequest extends Message /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetSuggestedFeedsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetSuggestedFeedsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetSuggestedFeedsRequest { - return new GetSuggestedFeedsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetSuggestedFeedsRequest { - return new GetSuggestedFeedsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetSuggestedFeedsRequest { - return new GetSuggestedFeedsRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetSuggestedFeedsRequest - | PlainMessage - | undefined, - b: - | GetSuggestedFeedsRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetSuggestedFeedsRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSuggestedFeedsRequest { + return new GetSuggestedFeedsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetSuggestedFeedsRequest | PlainMessage | undefined, b: GetSuggestedFeedsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSuggestedFeedsRequest, a, b); } } @@ -4639,63 +3187,39 @@ export class GetSuggestedFeedsResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetSuggestedFeedsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetSuggestedFeedsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetSuggestedFeedsResponse { - return new GetSuggestedFeedsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetSuggestedFeedsResponse { - return new GetSuggestedFeedsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetSuggestedFeedsResponse { - return new GetSuggestedFeedsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetSuggestedFeedsResponse - | PlainMessage - | undefined, - b: - | GetSuggestedFeedsResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetSuggestedFeedsResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSuggestedFeedsResponse { + return new GetSuggestedFeedsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetSuggestedFeedsResponse | PlainMessage | undefined, b: GetSuggestedFeedsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSuggestedFeedsResponse, a, b); } } @@ -4709,60 +3233,33 @@ export class GetFeedGeneratorStatusRequest extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFeedGeneratorStatusRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFeedGeneratorStatusRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFeedGeneratorStatusRequest { - return new GetFeedGeneratorStatusRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFeedGeneratorStatusRequest { - return new GetFeedGeneratorStatusRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFeedGeneratorStatusRequest { - return new GetFeedGeneratorStatusRequest().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetFeedGeneratorStatusRequest - | PlainMessage - | undefined, - b: - | GetFeedGeneratorStatusRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetFeedGeneratorStatusRequest, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorStatusRequest { + return new GetFeedGeneratorStatusRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetFeedGeneratorStatusRequest | PlainMessage | undefined, b: GetFeedGeneratorStatusRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFeedGeneratorStatusRequest, a, b); } } @@ -4773,60 +3270,33 @@ export class GetFeedGeneratorStatusResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetFeedGeneratorStatusResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetFeedGeneratorStatusResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'status', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetFeedGeneratorStatusResponse { - return new GetFeedGeneratorStatusResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetFeedGeneratorStatusResponse { - return new GetFeedGeneratorStatusResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetFeedGeneratorStatusResponse { - return new GetFeedGeneratorStatusResponse().fromJsonString( - jsonString, - options, - ) - } - - static equals( - a: - | GetFeedGeneratorStatusResponse - | PlainMessage - | undefined, - b: - | GetFeedGeneratorStatusResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetFeedGeneratorStatusResponse, a, b) + { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetFeedGeneratorStatusResponse { + return new GetFeedGeneratorStatusResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetFeedGeneratorStatusResponse | PlainMessage | undefined, b: GetFeedGeneratorStatusResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetFeedGeneratorStatusResponse, a, b); } } @@ -4841,69 +3311,57 @@ export class GetAuthorFeedRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; /** * @generated from field: bool replies_only = 4; */ - repliesOnly = false + repliesOnly = false; /** * @generated from field: bool media_only = 5; */ - mediaOnly = false + mediaOnly = false; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetAuthorFeedRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetAuthorFeedRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 4, name: 'replies_only', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: 'media_only', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "replies_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "media_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetAuthorFeedRequest { - return new GetAuthorFeedRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetAuthorFeedRequest { - return new GetAuthorFeedRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetAuthorFeedRequest { - return new GetAuthorFeedRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetAuthorFeedRequest { + return new GetAuthorFeedRequest().fromJsonString(jsonString, options); } - static equals( - a: GetAuthorFeedRequest | PlainMessage | undefined, - b: GetAuthorFeedRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetAuthorFeedRequest, a, b) + static equals(a: GetAuthorFeedRequest | PlainMessage | undefined, b: GetAuthorFeedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthorFeedRequest, a, b); } } @@ -4914,57 +3372,39 @@ export class GetAuthorFeedResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetAuthorFeedResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetAuthorFeedResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetAuthorFeedResponse { - return new GetAuthorFeedResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetAuthorFeedResponse { - return new GetAuthorFeedResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetAuthorFeedResponse { - return new GetAuthorFeedResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetAuthorFeedResponse | PlainMessage | undefined, - b: GetAuthorFeedResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetAuthorFeedResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAuthorFeedResponse { + return new GetAuthorFeedResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetAuthorFeedResponse | PlainMessage | undefined, b: GetAuthorFeedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAuthorFeedResponse, a, b); } } @@ -4978,57 +3418,45 @@ export class GetTimelineRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetTimelineRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetTimelineRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetTimelineRequest { - return new GetTimelineRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetTimelineRequest { + return new GetTimelineRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetTimelineRequest { - return new GetTimelineRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetTimelineRequest { + return new GetTimelineRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetTimelineRequest { - return new GetTimelineRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetTimelineRequest { + return new GetTimelineRequest().fromJsonString(jsonString, options); } - static equals( - a: GetTimelineRequest | PlainMessage | undefined, - b: GetTimelineRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetTimelineRequest, a, b) + static equals(a: GetTimelineRequest | PlainMessage | undefined, b: GetTimelineRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTimelineRequest, a, b); } } @@ -5039,57 +3467,39 @@ export class GetTimelineResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetTimelineResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetTimelineResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetTimelineResponse { - return new GetTimelineResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetTimelineResponse { - return new GetTimelineResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetTimelineResponse { - return new GetTimelineResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetTimelineResponse | PlainMessage | undefined, - b: GetTimelineResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetTimelineResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTimelineResponse { + return new GetTimelineResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTimelineResponse { + return new GetTimelineResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTimelineResponse { + return new GetTimelineResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetTimelineResponse | PlainMessage | undefined, b: GetTimelineResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTimelineResponse, a, b); } } @@ -5104,57 +3514,45 @@ export class GetListFeedRequest extends Message { /** * @generated from field: string list_uri = 1; */ - listUri = '' + listUri = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListFeedRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListFeedRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'list_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListFeedRequest { - return new GetListFeedRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetListFeedRequest { + return new GetListFeedRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListFeedRequest { - return new GetListFeedRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetListFeedRequest { + return new GetListFeedRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListFeedRequest { - return new GetListFeedRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetListFeedRequest { + return new GetListFeedRequest().fromJsonString(jsonString, options); } - static equals( - a: GetListFeedRequest | PlainMessage | undefined, - b: GetListFeedRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetListFeedRequest, a, b) + static equals(a: GetListFeedRequest | PlainMessage | undefined, b: GetListFeedRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListFeedRequest, a, b); } } @@ -5165,57 +3563,39 @@ export class GetListFeedResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetListFeedResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetListFeedResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetListFeedResponse { - return new GetListFeedResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetListFeedResponse { - return new GetListFeedResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetListFeedResponse { - return new GetListFeedResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetListFeedResponse | PlainMessage | undefined, - b: GetListFeedResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetListFeedResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetListFeedResponse { + return new GetListFeedResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetListFeedResponse { + return new GetListFeedResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetListFeedResponse { + return new GetListFeedResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetListFeedResponse | PlainMessage | undefined, b: GetListFeedResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListFeedResponse, a, b); } } @@ -5228,57 +3608,45 @@ export class GetThreadRequest extends Message { /** * @generated from field: string post_uri = 1; */ - postUri = '' + postUri = ""; /** * @generated from field: int32 above = 2; */ - above = 0 + above = 0; /** * @generated from field: int32 below = 3; */ - below = 0 + below = 0; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetThreadRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetThreadRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'post_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'above', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'below', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - ]) + { no: 1, name: "post_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "above", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "below", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetThreadRequest { - return new GetThreadRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadRequest { + return new GetThreadRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetThreadRequest { - return new GetThreadRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadRequest { + return new GetThreadRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetThreadRequest { - return new GetThreadRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetThreadRequest { + return new GetThreadRequest().fromJsonString(jsonString, options); } - static equals( - a: GetThreadRequest | PlainMessage | undefined, - b: GetThreadRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetThreadRequest, a, b) + static equals(a: GetThreadRequest | PlainMessage | undefined, b: GetThreadRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetThreadRequest, a, b); } } @@ -5289,51 +3657,33 @@ export class GetThreadResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetThreadResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetThreadResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetThreadResponse { - return new GetThreadResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetThreadResponse { - return new GetThreadResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetThreadResponse { - return new GetThreadResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetThreadResponse | PlainMessage | undefined, - b: GetThreadResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetThreadResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadResponse { + return new GetThreadResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadResponse { + return new GetThreadResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetThreadResponse { + return new GetThreadResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetThreadResponse | PlainMessage | undefined, b: GetThreadResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetThreadResponse, a, b); } } @@ -5346,51 +3696,33 @@ export class GetThreadgatesRequest extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetThreadgatesRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetThreadgatesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetThreadgatesRequest { - return new GetThreadgatesRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetThreadgatesRequest { - return new GetThreadgatesRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetThreadgatesRequest { - return new GetThreadgatesRequest().fromJsonString(jsonString, options) - } - - static equals( - a: GetThreadgatesRequest | PlainMessage | undefined, - b: GetThreadgatesRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetThreadgatesRequest, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetThreadgatesRequest { + return new GetThreadgatesRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetThreadgatesRequest | PlainMessage | undefined, b: GetThreadgatesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetThreadgatesRequest, a, b); } } @@ -5401,57 +3733,33 @@ export class GetThreadgatesResponse extends Message { /** * @generated from field: repeated bytes records = 1; */ - records: Uint8Array[] = [] + records: Uint8Array[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetThreadgatesResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetThreadgatesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'records', - kind: 'scalar', - T: 12 /* ScalarType.BYTES */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetThreadgatesResponse { - return new GetThreadgatesResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetThreadgatesResponse { - return new GetThreadgatesResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetThreadgatesResponse { - return new GetThreadgatesResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetThreadgatesResponse - | PlainMessage - | undefined, - b: - | GetThreadgatesResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetThreadgatesResponse, a, b) + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetThreadgatesResponse { + return new GetThreadgatesResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetThreadgatesResponse | PlainMessage | undefined, b: GetThreadgatesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetThreadgatesResponse, a, b); } } @@ -5465,57 +3773,45 @@ export class SearchActorsRequest extends Message { /** * @generated from field: string term = 1; */ - term = '' + term = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.SearchActorsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.SearchActorsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'term', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "term", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): SearchActorsRequest { - return new SearchActorsRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): SearchActorsRequest { + return new SearchActorsRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): SearchActorsRequest { - return new SearchActorsRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): SearchActorsRequest { + return new SearchActorsRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): SearchActorsRequest { - return new SearchActorsRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): SearchActorsRequest { + return new SearchActorsRequest().fromJsonString(jsonString, options); } - static equals( - a: SearchActorsRequest | PlainMessage | undefined, - b: SearchActorsRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(SearchActorsRequest, a, b) + static equals(a: SearchActorsRequest | PlainMessage | undefined, b: SearchActorsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchActorsRequest, a, b); } } @@ -5526,57 +3822,39 @@ export class SearchActorsResponse extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = [] + dids: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.SearchActorsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.SearchActorsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'dids', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): SearchActorsResponse { - return new SearchActorsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): SearchActorsResponse { - return new SearchActorsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): SearchActorsResponse { - return new SearchActorsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: SearchActorsResponse | PlainMessage | undefined, - b: SearchActorsResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(SearchActorsResponse, a, b) + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SearchActorsResponse { + return new SearchActorsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SearchActorsResponse { + return new SearchActorsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SearchActorsResponse { + return new SearchActorsResponse().fromJsonString(jsonString, options); + } + + static equals(a: SearchActorsResponse | PlainMessage | undefined, b: SearchActorsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchActorsResponse, a, b); } } @@ -5590,57 +3868,45 @@ export class SearchPostsRequest extends Message { /** * @generated from field: string term = 1; */ - term = '' + term = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.SearchPostsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.SearchPostsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'term', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "term", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): SearchPostsRequest { - return new SearchPostsRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): SearchPostsRequest { + return new SearchPostsRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): SearchPostsRequest { - return new SearchPostsRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): SearchPostsRequest { + return new SearchPostsRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): SearchPostsRequest { - return new SearchPostsRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): SearchPostsRequest { + return new SearchPostsRequest().fromJsonString(jsonString, options); } - static equals( - a: SearchPostsRequest | PlainMessage | undefined, - b: SearchPostsRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(SearchPostsRequest, a, b) + static equals(a: SearchPostsRequest | PlainMessage | undefined, b: SearchPostsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchPostsRequest, a, b); } } @@ -5651,57 +3917,39 @@ export class SearchPostsResponse extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.SearchPostsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.SearchPostsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): SearchPostsResponse { - return new SearchPostsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): SearchPostsResponse { - return new SearchPostsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): SearchPostsResponse { - return new SearchPostsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: SearchPostsResponse | PlainMessage | undefined, - b: SearchPostsResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(SearchPostsResponse, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SearchPostsResponse { + return new SearchPostsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SearchPostsResponse { + return new SearchPostsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SearchPostsResponse { + return new SearchPostsResponse().fromJsonString(jsonString, options); + } + + static equals(a: SearchPostsResponse | PlainMessage | undefined, b: SearchPostsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SearchPostsResponse, a, b); } } @@ -5715,57 +3963,45 @@ export class GetSuggestionsRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: int32 limit = 2; */ - limit = 0 + limit = 0; /** * @generated from field: string cursor = 3; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetSuggestionsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetSuggestionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetSuggestionsRequest { - return new GetSuggestionsRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetSuggestionsRequest { - return new GetSuggestionsRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetSuggestionsRequest { - return new GetSuggestionsRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetSuggestionsRequest { + return new GetSuggestionsRequest().fromJsonString(jsonString, options); } - static equals( - a: GetSuggestionsRequest | PlainMessage | undefined, - b: GetSuggestionsRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetSuggestionsRequest, a, b) + static equals(a: GetSuggestionsRequest | PlainMessage | undefined, b: GetSuggestionsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSuggestionsRequest, a, b); } } @@ -5776,63 +4012,39 @@ export class GetSuggestionsResponse extends Message { /** * @generated from field: repeated string dids = 1; */ - dids: string[] = [] + dids: string[] = []; /** * @generated from field: string cursor = 2; */ - cursor = '' + cursor = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetSuggestionsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetSuggestionsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'dids', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetSuggestionsResponse { - return new GetSuggestionsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetSuggestionsResponse { - return new GetSuggestionsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetSuggestionsResponse { - return new GetSuggestionsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetSuggestionsResponse - | PlainMessage - | undefined, - b: - | GetSuggestionsResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetSuggestionsResponse, a, b) + { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetSuggestionsResponse { + return new GetSuggestionsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetSuggestionsResponse | PlainMessage | undefined, b: GetSuggestionsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetSuggestionsResponse, a, b); } } @@ -5846,51 +4058,33 @@ export class GetPostsRequest extends Message { /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetPostsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetPostsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetPostsRequest { - return new GetPostsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetPostsRequest { - return new GetPostsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetPostsRequest { - return new GetPostsRequest().fromJsonString(jsonString, options) - } - - static equals( - a: GetPostsRequest | PlainMessage | undefined, - b: GetPostsRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetPostsRequest, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetPostsRequest { + return new GetPostsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetPostsRequest { + return new GetPostsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetPostsRequest { + return new GetPostsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetPostsRequest | PlainMessage | undefined, b: GetPostsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetPostsRequest, a, b); } } @@ -5901,51 +4095,33 @@ export class GetPostsResponse extends Message { /** * @generated from field: repeated bytes records = 1; */ - records: Uint8Array[] = [] + records: Uint8Array[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetPostsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetPostsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'records', - kind: 'scalar', - T: 12 /* ScalarType.BYTES */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetPostsResponse { - return new GetPostsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetPostsResponse { - return new GetPostsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetPostsResponse { - return new GetPostsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetPostsResponse | PlainMessage | undefined, - b: GetPostsResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetPostsResponse, a, b) + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetPostsResponse { + return new GetPostsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetPostsResponse { + return new GetPostsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetPostsResponse { + return new GetPostsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetPostsResponse | PlainMessage | undefined, b: GetPostsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetPostsResponse, a, b); } } @@ -5959,57 +4135,33 @@ export class GetPostReplyCountRequest extends Message /** * @generated from field: repeated string uris = 1; */ - uris: string[] = [] + uris: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetPostReplyCountRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetPostReplyCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'uris', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetPostReplyCountRequest { - return new GetPostReplyCountRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetPostReplyCountRequest { - return new GetPostReplyCountRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetPostReplyCountRequest { - return new GetPostReplyCountRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetPostReplyCountRequest - | PlainMessage - | undefined, - b: - | GetPostReplyCountRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetPostReplyCountRequest, a, b) + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetPostReplyCountRequest { + return new GetPostReplyCountRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetPostReplyCountRequest | PlainMessage | undefined, b: GetPostReplyCountRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetPostReplyCountRequest, a, b); } } @@ -6020,57 +4172,33 @@ export class GetPostReplyCountResponse extends Message) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetPostReplyCountResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetPostReplyCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'counts', - kind: 'scalar', - T: 5 /* ScalarType.INT32 */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetPostReplyCountResponse { - return new GetPostReplyCountResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetPostReplyCountResponse { - return new GetPostReplyCountResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetPostReplyCountResponse { - return new GetPostReplyCountResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetPostReplyCountResponse - | PlainMessage - | undefined, - b: - | GetPostReplyCountResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetPostReplyCountResponse, a, b) + { no: 1, name: "counts", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetPostReplyCountResponse { + return new GetPostReplyCountResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetPostReplyCountResponse | PlainMessage | undefined, b: GetPostReplyCountResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetPostReplyCountResponse, a, b); } } @@ -6084,63 +4212,39 @@ export class GetLabelsRequest extends Message { /** * @generated from field: repeated string subjects = 1; */ - subjects: string[] = [] + subjects: string[] = []; /** * @generated from field: repeated string issuers = 2; */ - issuers: string[] = [] + issuers: string[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLabelsRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLabelsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'subjects', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - { - no: 2, - name: 'issuers', - kind: 'scalar', - T: 9 /* ScalarType.STRING */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLabelsRequest { - return new GetLabelsRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLabelsRequest { - return new GetLabelsRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLabelsRequest { - return new GetLabelsRequest().fromJsonString(jsonString, options) - } - - static equals( - a: GetLabelsRequest | PlainMessage | undefined, - b: GetLabelsRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetLabelsRequest, a, b) + { no: 1, name: "subjects", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "issuers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLabelsRequest { + return new GetLabelsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLabelsRequest { + return new GetLabelsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLabelsRequest { + return new GetLabelsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetLabelsRequest | PlainMessage | undefined, b: GetLabelsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLabelsRequest, a, b); } } @@ -6151,51 +4255,33 @@ export class GetLabelsResponse extends Message { /** * @generated from field: repeated bytes records = 1; */ - records: Uint8Array[] = [] + records: Uint8Array[] = []; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLabelsResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLabelsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { - no: 1, - name: 'records', - kind: 'scalar', - T: 12 /* ScalarType.BYTES */, - repeated: true, - }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLabelsResponse { - return new GetLabelsResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLabelsResponse { - return new GetLabelsResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLabelsResponse { - return new GetLabelsResponse().fromJsonString(jsonString, options) - } - - static equals( - a: GetLabelsResponse | PlainMessage | undefined, - b: GetLabelsResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetLabelsResponse, a, b) + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetLabelsResponse { + return new GetLabelsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetLabelsResponse { + return new GetLabelsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetLabelsResponse { + return new GetLabelsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetLabelsResponse | PlainMessage | undefined, b: GetLabelsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLabelsResponse, a, b); } } @@ -6209,45 +4295,33 @@ export class GetLatestRevRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLatestRevRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLatestRevRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLatestRevRequest { - return new GetLatestRevRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestRevRequest { + return new GetLatestRevRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLatestRevRequest { - return new GetLatestRevRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestRevRequest { + return new GetLatestRevRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLatestRevRequest { - return new GetLatestRevRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetLatestRevRequest { + return new GetLatestRevRequest().fromJsonString(jsonString, options); } - static equals( - a: GetLatestRevRequest | PlainMessage | undefined, - b: GetLatestRevRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetLatestRevRequest, a, b) + static equals(a: GetLatestRevRequest | PlainMessage | undefined, b: GetLatestRevRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLatestRevRequest, a, b); } } @@ -6258,45 +4332,33 @@ export class GetLatestRevResponse extends Message { /** * @generated from field: string rev = 1; */ - rev = '' + rev = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetLatestRevResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetLatestRevResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'rev', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) + { no: 1, name: "rev", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetLatestRevResponse { - return new GetLatestRevResponse().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): GetLatestRevResponse { + return new GetLatestRevResponse().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetLatestRevResponse { - return new GetLatestRevResponse().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): GetLatestRevResponse { + return new GetLatestRevResponse().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetLatestRevResponse { - return new GetLatestRevResponse().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): GetLatestRevResponse { + return new GetLatestRevResponse().fromJsonString(jsonString, options); } - static equals( - a: GetLatestRevResponse | PlainMessage | undefined, - b: GetLatestRevResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(GetLatestRevResponse, a, b) + static equals(a: GetLatestRevResponse | PlainMessage | undefined, b: GetLatestRevResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetLatestRevResponse, a, b); } } @@ -6309,57 +4371,39 @@ export class GetBlobTakedownRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: string cid = 2; */ - cid = '' + cid = ""; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBlobTakedownRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlobTakedownRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'cid', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBlobTakedownRequest { - return new GetBlobTakedownRequest().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBlobTakedownRequest { - return new GetBlobTakedownRequest().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBlobTakedownRequest { - return new GetBlobTakedownRequest().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetBlobTakedownRequest - | PlainMessage - | undefined, - b: - | GetBlobTakedownRequest - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBlobTakedownRequest, a, b) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlobTakedownRequest { + return new GetBlobTakedownRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetBlobTakedownRequest | PlainMessage | undefined, b: GetBlobTakedownRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlobTakedownRequest, a, b); } } @@ -6370,51 +4414,33 @@ export class GetBlobTakedownResponse extends Message { /** * @generated from field: bool taken_down = 1; */ - takenDown = false + takenDown = false; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.GetBlobTakedownResponse' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.GetBlobTakedownResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'taken_down', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, - ]) - - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): GetBlobTakedownResponse { - return new GetBlobTakedownResponse().fromBinary(bytes, options) - } - - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): GetBlobTakedownResponse { - return new GetBlobTakedownResponse().fromJson(jsonValue, options) - } - - static fromJsonString( - jsonString: string, - options?: Partial, - ): GetBlobTakedownResponse { - return new GetBlobTakedownResponse().fromJsonString(jsonString, options) - } - - static equals( - a: - | GetBlobTakedownResponse - | PlainMessage - | undefined, - b: - | GetBlobTakedownResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(GetBlobTakedownResponse, a, b) + { no: 1, name: "taken_down", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetBlobTakedownResponse { + return new GetBlobTakedownResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetBlobTakedownResponse | PlainMessage | undefined, b: GetBlobTakedownResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetBlobTakedownResponse, a, b); } } @@ -6427,63 +4453,51 @@ export class UpdateTakedownRequest extends Message { /** * @generated from field: string actor_did = 1; */ - actorDid = '' + actorDid = ""; /** * @generated from field: string record_uri = 2; */ - recordUri = '' + recordUri = ""; /** * @generated from field: string blob_cid = 3; */ - blobCid = '' + blobCid = ""; /** * @generated from field: bool taken_down = 4; */ - takenDown = false + takenDown = false; constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.UpdateTakedownRequest' + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.UpdateTakedownRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 2, name: 'record_uri', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 3, name: 'blob_cid', kind: 'scalar', T: 9 /* ScalarType.STRING */ }, - { no: 4, name: 'taken_down', kind: 'scalar', T: 8 /* ScalarType.BOOL */ }, - ]) + { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "record_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "blob_cid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "taken_down", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): UpdateTakedownRequest { - return new UpdateTakedownRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): UpdateTakedownRequest { - return new UpdateTakedownRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): UpdateTakedownRequest { - return new UpdateTakedownRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): UpdateTakedownRequest { + return new UpdateTakedownRequest().fromJsonString(jsonString, options); } - static equals( - a: UpdateTakedownRequest | PlainMessage | undefined, - b: UpdateTakedownRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(UpdateTakedownRequest, a, b) + static equals(a: UpdateTakedownRequest | PlainMessage | undefined, b: UpdateTakedownRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateTakedownRequest, a, b); } } @@ -6492,46 +4506,29 @@ export class UpdateTakedownRequest extends Message { */ export class UpdateTakedownResponse extends Message { constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.UpdateTakedownResponse' - static readonly fields: FieldList = proto3.util.newFieldList(() => []) + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.UpdateTakedownResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): UpdateTakedownResponse { - return new UpdateTakedownResponse().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): UpdateTakedownResponse { - return new UpdateTakedownResponse().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): UpdateTakedownResponse { - return new UpdateTakedownResponse().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): UpdateTakedownResponse { + return new UpdateTakedownResponse().fromJsonString(jsonString, options); } - static equals( - a: - | UpdateTakedownResponse - | PlainMessage - | undefined, - b: - | UpdateTakedownResponse - | PlainMessage - | undefined, - ): boolean { - return proto3.util.equals(UpdateTakedownResponse, a, b) + static equals(a: UpdateTakedownResponse | PlainMessage | undefined, b: UpdateTakedownResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateTakedownResponse, a, b); } } @@ -6542,40 +4539,29 @@ export class UpdateTakedownResponse extends Message { */ export class PingRequest extends Message { constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.PingRequest' - static readonly fields: FieldList = proto3.util.newFieldList(() => []) + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.PingRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): PingRequest { - return new PingRequest().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): PingRequest { + return new PingRequest().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): PingRequest { - return new PingRequest().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): PingRequest { + return new PingRequest().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): PingRequest { - return new PingRequest().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): PingRequest { + return new PingRequest().fromJsonString(jsonString, options); } - static equals( - a: PingRequest | PlainMessage | undefined, - b: PingRequest | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(PingRequest, a, b) + static equals(a: PingRequest | PlainMessage | undefined, b: PingRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PingRequest, a, b); } } @@ -6584,39 +4570,29 @@ export class PingRequest extends Message { */ export class PingResponse extends Message { constructor(data?: PartialMessage) { - super() - proto3.util.initPartial(data, this) + super(); + proto3.util.initPartial(data, this); } - static readonly runtime: typeof proto3 = proto3 - static readonly typeName = 'bsky.PingResponse' - static readonly fields: FieldList = proto3.util.newFieldList(() => []) + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "bsky.PingResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); - static fromBinary( - bytes: Uint8Array, - options?: Partial, - ): PingResponse { - return new PingResponse().fromBinary(bytes, options) + static fromBinary(bytes: Uint8Array, options?: Partial): PingResponse { + return new PingResponse().fromBinary(bytes, options); } - static fromJson( - jsonValue: JsonValue, - options?: Partial, - ): PingResponse { - return new PingResponse().fromJson(jsonValue, options) + static fromJson(jsonValue: JsonValue, options?: Partial): PingResponse { + return new PingResponse().fromJson(jsonValue, options); } - static fromJsonString( - jsonString: string, - options?: Partial, - ): PingResponse { - return new PingResponse().fromJsonString(jsonString, options) + static fromJsonString(jsonString: string, options?: Partial): PingResponse { + return new PingResponse().fromJsonString(jsonString, options); } - static equals( - a: PingResponse | PlainMessage | undefined, - b: PingResponse | PlainMessage | undefined, - ): boolean { - return proto3.util.equals(PingResponse, a, b) + static equals(a: PingResponse | PlainMessage | undefined, b: PingResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PingResponse, a, b); } } + From f6a8a0dc0612e0854d3590ada53029d7ea969d5a Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 10:35:53 -0600 Subject: [PATCH 004/186] fix prettier ignore --- .prettierignore | 2 +- packages/bsky/buf.gen.yaml | 4 ++-- packages/bsky/src/data-plane/{ => gen}/bsky_connect.ts | 0 packages/bsky/src/data-plane/{ => gen}/bsky_pb.ts | 0 packages/bsky/src/data-plane/index.ts | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename packages/bsky/src/data-plane/{ => gen}/bsky_connect.ts (100%) rename packages/bsky/src/data-plane/{ => gen}/bsky_pb.ts (100%) diff --git a/.prettierignore b/.prettierignore index dfb25351655..7bb137f13ea 100644 --- a/.prettierignore +++ b/.prettierignore @@ -8,4 +8,4 @@ pnpm-lock.yaml .pnpm* .changeset *.d.ts -packages/bsky/data-plane/gen +packages/bsky/src/data-plane/gen \ No newline at end of file diff --git a/packages/bsky/buf.gen.yaml b/packages/bsky/buf.gen.yaml index 7acd660bde0..47bbfcd4f64 100644 --- a/packages/bsky/buf.gen.yaml +++ b/packages/bsky/buf.gen.yaml @@ -2,7 +2,7 @@ version: v1 plugins: - plugin: es opt: target=ts - out: src/data-plane + out: src/data-plane/gen - plugin: connect-es opt: target=ts - out: src/data-plane + out: src/data-plane/gen diff --git a/packages/bsky/src/data-plane/bsky_connect.ts b/packages/bsky/src/data-plane/gen/bsky_connect.ts similarity index 100% rename from packages/bsky/src/data-plane/bsky_connect.ts rename to packages/bsky/src/data-plane/gen/bsky_connect.ts diff --git a/packages/bsky/src/data-plane/bsky_pb.ts b/packages/bsky/src/data-plane/gen/bsky_pb.ts similarity index 100% rename from packages/bsky/src/data-plane/bsky_pb.ts rename to packages/bsky/src/data-plane/gen/bsky_pb.ts diff --git a/packages/bsky/src/data-plane/index.ts b/packages/bsky/src/data-plane/index.ts index 9efccc1d3a3..6bf8af26215 100644 --- a/packages/bsky/src/data-plane/index.ts +++ b/packages/bsky/src/data-plane/index.ts @@ -1,4 +1,4 @@ -import { Service } from './bsky_connect' +import { Service } from './gen/bsky_connect' import { createPromiseClient } from '@connectrpc/connect' import { createConnectTransport } from '@connectrpc/connect-node' From 580ee0784102989a55d62ae4fe992763c78c711c Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 11:05:13 -0600 Subject: [PATCH 005/186] tidy & add tests --- packages/bsky/package.json | 4 +- packages/bsky/src/data-plane/client.ts | 17 +++ .../bsky/src/data-plane/gen/bsky_connect.ts | 2 +- packages/bsky/src/data-plane/index.ts | 11 -- packages/bsky/src/data-plane/server/index.ts | 29 +++++ packages/bsky/src/data-plane/server/routes.ts | 12 ++ packages/bsky/tests/data-plane.test.ts | 25 +++++ pnpm-lock.yaml | 103 ++++++++++++++++-- 8 files changed, 180 insertions(+), 23 deletions(-) create mode 100644 packages/bsky/src/data-plane/client.ts delete mode 100644 packages/bsky/src/data-plane/index.ts create mode 100644 packages/bsky/src/data-plane/server/index.ts create mode 100644 packages/bsky/src/data-plane/server/routes.ts create mode 100644 packages/bsky/tests/data-plane.test.ts diff --git a/packages/bsky/package.json b/packages/bsky/package.json index 1140eb2bc5a..ebb1a8be332 100644 --- a/packages/bsky/package.json +++ b/packages/bsky/package.json @@ -42,6 +42,7 @@ "@atproto/xrpc-server": "workspace:^", "@bufbuild/protobuf": "^1.5.0", "@connectrpc/connect": "^1.1.4", + "@connectrpc/connect-express": "^1.1.4", "@connectrpc/connect-node": "^1.1.4", "@did-plc/lib": "^0.0.1", "@isaacs/ttlcache": "^1.4.1", @@ -78,6 +79,7 @@ "@types/express-serve-static-core": "^4.17.36", "@types/pg": "^8.6.6", "@types/qs": "^6.9.7", - "axios": "^0.27.2" + "axios": "^0.27.2", + "http2-express-bridge": "^1.0.7" } } diff --git a/packages/bsky/src/data-plane/client.ts b/packages/bsky/src/data-plane/client.ts new file mode 100644 index 00000000000..75d45e93b98 --- /dev/null +++ b/packages/bsky/src/data-plane/client.ts @@ -0,0 +1,17 @@ +import { Service } from './gen/bsky_connect' +import { PromiseClient, createPromiseClient } from '@connectrpc/connect' +import { createConnectTransport } from '@connectrpc/connect-node' + +export type DataPlaneClient = PromiseClient +type HttpVersion = '1.1' | '2' + +export const createDataPlaneClient = ( + baseUrl: string, + httpVersion: HttpVersion = '2', +) => { + const transport = createConnectTransport({ + baseUrl, + httpVersion, + }) + return createPromiseClient(Service, transport) +} diff --git a/packages/bsky/src/data-plane/gen/bsky_connect.ts b/packages/bsky/src/data-plane/gen/bsky_connect.ts index d76eae6f599..482f0c061ac 100644 --- a/packages/bsky/src/data-plane/gen/bsky_connect.ts +++ b/packages/bsky/src/data-plane/gen/bsky_connect.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlocksRequest, GetBlocksResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorsRequest, GetFeedGeneratorsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersCountRequest, GetFollowersCountResponse, GetFollowersRequest, GetFollowersResponse, GetFollowsCountRequest, GetFollowsCountResponse, GetFollowsRequest, GetFollowsResponse, GetHandlesRequest, GetHandlesResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeByActorAndSubjectRequest, GetLikeByActorAndSubjectResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetLikesCountRequest, GetLikesCountResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListRequest, GetListResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostReplyCountRequest, GetPostReplyCountResponse, GetPostsRequest, GetPostsResponse, GetProfilesRequest, GetProfilesResponse, GetRepostByActorAndSubjectRequest, GetRepostByActorAndSubjectResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetRepostsCountRequest, GetRepostsCountResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetSuggestionsRequest, GetSuggestionsResponse, GetThreadgatesRequest, GetThreadgatesResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchPostsRequest, SearchPostsResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse, UpdateTakedownRequest, UpdateTakedownResponse } from "./bsky_pb.js"; +import { GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlocksRequest, GetBlocksResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorsRequest, GetFeedGeneratorsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersCountRequest, GetFollowersCountResponse, GetFollowersRequest, GetFollowersResponse, GetFollowsCountRequest, GetFollowsCountResponse, GetFollowsRequest, GetFollowsResponse, GetHandlesRequest, GetHandlesResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeByActorAndSubjectRequest, GetLikeByActorAndSubjectResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetLikesCountRequest, GetLikesCountResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListRequest, GetListResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostReplyCountRequest, GetPostReplyCountResponse, GetPostsRequest, GetPostsResponse, GetProfilesRequest, GetProfilesResponse, GetRepostByActorAndSubjectRequest, GetRepostByActorAndSubjectResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetRepostsCountRequest, GetRepostsCountResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetSuggestionsRequest, GetSuggestionsResponse, GetThreadgatesRequest, GetThreadgatesResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchPostsRequest, SearchPostsResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse, UpdateTakedownRequest, UpdateTakedownResponse } from "./bsky_pb"; import { MethodKind } from "@bufbuild/protobuf"; /** diff --git a/packages/bsky/src/data-plane/index.ts b/packages/bsky/src/data-plane/index.ts deleted file mode 100644 index 6bf8af26215..00000000000 --- a/packages/bsky/src/data-plane/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Service } from './gen/bsky_connect' -import { createPromiseClient } from '@connectrpc/connect' -import { createConnectTransport } from '@connectrpc/connect-node' - -export const createDataPlaneClient = (baseUrl: string) => { - const transport = createConnectTransport({ - baseUrl, - httpVersion: '2', - }) - return createPromiseClient(Service, transport) -} diff --git a/packages/bsky/src/data-plane/server/index.ts b/packages/bsky/src/data-plane/server/index.ts new file mode 100644 index 00000000000..1c29a776a29 --- /dev/null +++ b/packages/bsky/src/data-plane/server/index.ts @@ -0,0 +1,29 @@ +import http from 'http' +import events from 'events' +import express from 'express' +import { expressConnectMiddleware } from '@connectrpc/connect-express' +import routes from './routes' + +export class DataPlaneServer { + constructor(public server: http.Server) {} + + static async create(port: number) { + const app = express() + app.use(expressConnectMiddleware({ routes })) + const server = app.listen(port) + await events.once(server, 'listening') + return new DataPlaneServer(server) + } + + async stop() { + return new Promise((resolve, reject) => { + this.server.close((err) => { + if (err) { + reject(err) + } else { + resolve() + } + }) + }) + } +} diff --git a/packages/bsky/src/data-plane/server/routes.ts b/packages/bsky/src/data-plane/server/routes.ts new file mode 100644 index 00000000000..aa3fa5a6573 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes.ts @@ -0,0 +1,12 @@ +import { ConnectRouter } from '@connectrpc/connect' +import { Service } from '../gen/bsky_connect' + +export default (router: ConnectRouter) => + router.service(Service, { + async getFollowers(req) { + return { + uris: [req.actorDid], + cursor: 'test-cursor', + } + }, + }) diff --git a/packages/bsky/tests/data-plane.test.ts b/packages/bsky/tests/data-plane.test.ts new file mode 100644 index 00000000000..a4164d5464c --- /dev/null +++ b/packages/bsky/tests/data-plane.test.ts @@ -0,0 +1,25 @@ +import { DataPlaneServer } from '../src/data-plane/server' +import { + createDataPlaneClient, + DataPlaneClient, +} from '../src/data-plane/client' + +describe('data plane', () => { + let server: DataPlaneServer + let client: DataPlaneClient + + beforeAll(async () => { + server = await DataPlaneServer.create(1337) + client = createDataPlaneClient('http://localhost:1337', '1.1') + }) + + afterAll(async () => { + await server.stop() + }) + + it('works', async () => { + const res = await client.getFollowers({ actorDid: 'did:example:test' }) + expect(res.uris).toEqual(['did:example:test']) + expect(res.cursor).toEqual('test-cursor') + }) +}) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bfa970843c0..fb994c1ab4b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -192,6 +192,9 @@ importers: '@connectrpc/connect': specifier: ^1.1.4 version: 1.1.4(@bufbuild/protobuf@1.5.0) + '@connectrpc/connect-express': + specifier: ^1.1.4 + version: 1.1.4(@bufbuild/protobuf@1.5.0)(@connectrpc/connect-node@1.1.4)(@connectrpc/connect@1.1.4) '@connectrpc/connect-node': specifier: ^1.1.4 version: 1.1.4(@bufbuild/protobuf@1.5.0)(@connectrpc/connect@1.1.4) @@ -295,6 +298,9 @@ importers: axios: specifier: ^0.27.2 version: 0.27.2 + http2-express-bridge: + specifier: ^1.0.7 + version: 1.0.7 packages/common: dependencies: @@ -4693,6 +4699,20 @@ packages: prettier: 2.7.1 dev: true + /@connectrpc/connect-express@1.1.4(@bufbuild/protobuf@1.5.0)(@connectrpc/connect-node@1.1.4)(@connectrpc/connect@1.1.4): + resolution: {integrity: sha512-sLiBvXBmXOZpDaw0s0z3Y1WyLkBppPVGfuZTVdw4fACay8Ss7YWi4tzTnvoesJz9DM5My5873pcndwCl2p5ERg==} + engines: {node: '>=16.0.0'} + peerDependencies: + '@bufbuild/protobuf': ^1.4.2 + '@connectrpc/connect': 1.1.4 + '@connectrpc/connect-node': 1.1.4 + dependencies: + '@bufbuild/protobuf': 1.5.0 + '@connectrpc/connect': 1.1.4(@bufbuild/protobuf@1.5.0) + '@connectrpc/connect-node': 1.1.4(@bufbuild/protobuf@1.5.0)(@connectrpc/connect@1.1.4) + '@types/express': 4.17.21 + dev: false + /@connectrpc/connect-node@1.1.4(@bufbuild/protobuf@1.5.0)(@connectrpc/connect@1.1.4): resolution: {integrity: sha512-1Pv4PSTh7k6+c8kNjVx9wZiWm8dChexsq+hW4EKcYItjSqvyKpmTfLBTl12y6W+RBQ9vCuFCu3xT79outhNY9g==} engines: {node: '>=16.0.0'} @@ -5618,13 +5638,11 @@ packages: dependencies: '@types/connect': 3.4.35 '@types/node': 18.17.8 - dev: true /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: '@types/node': 18.17.8 - dev: true /@types/cors@2.8.12: resolution: {integrity: sha512-vt+kDhq/M2ayberEtJcIN/hxXy1Pk+59g2FV/ZQceeaTyCtCucjL2Q7FXlFjtWn4n15KCr1NE2lNNFhp0lEThw==} @@ -5646,7 +5664,6 @@ packages: '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 - dev: true /@types/express@4.17.13: resolution: {integrity: sha512-6bSZTPaTIACxn48l50SR+axgrqm6qXFIxrdAKaG6PaJk3+zuUr35hBlgT7vOmJcum+OEaIBLtHV/qloEAFITeA==} @@ -5657,6 +5674,15 @@ packages: '@types/serve-static': 1.15.2 dev: true + /@types/express@4.17.21: + resolution: {integrity: sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==} + dependencies: + '@types/body-parser': 1.19.2 + '@types/express-serve-static-core': 4.17.36 + '@types/qs': 6.9.7 + '@types/serve-static': 1.15.2 + dev: false + /@types/graceful-fs@4.1.6: resolution: {integrity: sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==} dependencies: @@ -5665,7 +5691,6 @@ packages: /@types/http-errors@2.0.1: resolution: {integrity: sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==} - dev: true /@types/is-ci@3.0.0: resolution: {integrity: sha512-Q0Op0hdWbYd1iahB+IFNQcWXFq4O0Q5MwQP7uN0souuQ4rPg1vEYcnIOfr1gY+M+6rc8FGoRaBO1mOOvL29sEQ==} @@ -5702,11 +5727,9 @@ packages: /@types/mime@1.3.2: resolution: {integrity: sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==} - dev: true /@types/mime@3.0.1: resolution: {integrity: sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==} - dev: true /@types/minimist@1.2.2: resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} @@ -5747,11 +5770,9 @@ packages: /@types/qs@6.9.7: resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==} - dev: true /@types/range-parser@1.2.4: resolution: {integrity: sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==} - dev: true /@types/semver@7.5.0: resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==} @@ -5762,7 +5783,6 @@ packages: dependencies: '@types/mime': 1.3.2 '@types/node': 18.17.8 - dev: true /@types/serve-static@1.15.2: resolution: {integrity: sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==} @@ -5770,7 +5790,6 @@ packages: '@types/http-errors': 2.0.1 '@types/mime': 3.0.1 '@types/node': 18.17.8 - dev: true /@types/shimmer@1.0.5: resolution: {integrity: sha512-9Hp0ObzwwO57DpLFF0InUjUm/II8GmKAvzbefxQTihCb7KI6yc9yzf0nLc4mVdby5N4DRCgQM2wCup9KTieeww==} @@ -6968,10 +6987,19 @@ packages: resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==} engines: {node: '>=0.10'} + /depd@1.1.2: + resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} + engines: {node: '>= 0.6'} + dev: true + /depd@2.0.0: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} + /destroy@1.0.4: + resolution: {integrity: sha512-3NdhDuEXnfun/z7x9GOElY49LoqVHoGScmOKwmxhsS8N5Y+Z8KyPPDnaSzqWgYt/ji4mqwfTS34Htrk0zPIXVg==} + dev: true + /destroy@1.2.0: resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -8228,6 +8256,17 @@ packages: resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==} dev: true + /http-errors@1.8.1: + resolution: {integrity: sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==} + engines: {node: '>= 0.6'} + dependencies: + depd: 1.1.2 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 1.5.0 + toidentifier: 1.0.1 + dev: true + /http-errors@2.0.0: resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} engines: {node: '>= 0.8'} @@ -8258,6 +8297,17 @@ packages: roarr: 7.15.1 type-fest: 2.19.0 + /http2-express-bridge@1.0.7: + resolution: {integrity: sha512-bmzZSyn3nuzXRqs/+WgH7IGOQYMCIZNJeqTJ/1AoDgMPTSP5wXQCxPGsdUbGzzxwiHrMwyT4Z7t8ccbsKqiHrw==} + engines: {node: '>= 10.0.0'} + dependencies: + merge-descriptors: 1.0.1 + send: 0.17.2 + setprototypeof: 1.2.0 + transitivePeerDependencies: + - supports-color + dev: true + /https-proxy-agent@5.0.1: resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} engines: {node: '>= 6'} @@ -9718,6 +9768,13 @@ packages: /on-exit-leak-free@2.1.0: resolution: {integrity: sha512-VuCaZZAjReZ3vUwgOB8LxAosIurDiAW0s13rI1YwmaP++jvcxP77AWoQvenZebpCA2m8WC1/EosPYPMjnRAp/w==} + /on-finished@2.3.0: + resolution: {integrity: sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==} + engines: {node: '>= 0.8'} + dependencies: + ee-first: 1.1.1 + dev: true + /on-finished@2.4.1: resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} engines: {node: '>= 0.8'} @@ -10562,6 +10619,27 @@ packages: dependencies: lru-cache: 6.0.0 + /send@0.17.2: + resolution: {integrity: sha512-UJYB6wFSJE3G00nEivR5rgWp8c2xXvJ3OPWPhmuteU0IKj8nKbG3DrjiOmLwpnHGYWAVwA69zmTm++YG0Hmwww==} + engines: {node: '>= 0.8.0'} + dependencies: + debug: 2.6.9 + depd: 1.1.2 + destroy: 1.0.4 + encodeurl: 1.0.2 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 0.5.2 + http-errors: 1.8.1 + mime: 1.6.0 + ms: 2.1.3 + on-finished: 2.3.0 + range-parser: 1.2.1 + statuses: 1.5.0 + transitivePeerDependencies: + - supports-color + dev: true + /send@0.18.0: resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==} engines: {node: '>= 0.8.0'} @@ -10811,6 +10889,11 @@ packages: /standard-as-callback@2.1.0: resolution: {integrity: sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==} + /statuses@1.5.0: + resolution: {integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==} + engines: {node: '>= 0.6'} + dev: true + /statuses@2.0.1: resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} engines: {node: '>= 0.8'} From 83c768fcbd281861b1693bf3b769f2670d8c092d Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 11:08:33 -0600 Subject: [PATCH 006/186] filler commit --- packages/bsky/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bsky/src/index.ts b/packages/bsky/src/index.ts index 7ceba61f990..6cd8cbf86a2 100644 --- a/packages/bsky/src/index.ts +++ b/packages/bsky/src/index.ts @@ -42,6 +42,8 @@ export * from './indexer' export * from './ingester' export { MigrateModerationData } from './migrate-moderation-data' +// @TODO APPVIEW V2 INCOMING + export class BskyAppView { public ctx: AppContext public app: express.Application From 832e42b6e04aa6321f586554dad253ac921e1e52 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 11:09:26 -0600 Subject: [PATCH 007/186] rm filler --- packages/bsky/src/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/bsky/src/index.ts b/packages/bsky/src/index.ts index 6cd8cbf86a2..7ceba61f990 100644 --- a/packages/bsky/src/index.ts +++ b/packages/bsky/src/index.ts @@ -42,8 +42,6 @@ export * from './indexer' export * from './ingester' export { MigrateModerationData } from './migrate-moderation-data' -// @TODO APPVIEW V2 INCOMING - export class BskyAppView { public ctx: AppContext public app: express.Application From 9c24cd2032004e3909e0da9eaf3cff050a1aeba0 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 12:01:17 -0600 Subject: [PATCH 008/186] server boilerplate --- packages/bsky/src/data-plane/server/routes.ts | 12 ----- .../src/data-plane/server/routes/blocks.ts | 17 +++++++ .../src/data-plane/server/routes/feed-gens.ts | 14 ++++++ .../src/data-plane/server/routes/feeds.ts | 11 +++++ .../src/data-plane/server/routes/follows.ts | 17 +++++++ .../src/data-plane/server/routes/index.ts | 45 +++++++++++++++++++ .../src/data-plane/server/routes/labels.ts | 5 +++ .../src/data-plane/server/routes/likes.ts | 14 ++++++ .../src/data-plane/server/routes/lists.ts | 14 ++++++ .../data-plane/server/routes/moderation.ts | 8 ++++ .../src/data-plane/server/routes/mutes.ts | 17 +++++++ .../src/data-plane/server/routes/notifs.ts | 14 ++++++ .../src/data-plane/server/routes/posts.ts | 8 ++++ .../src/data-plane/server/routes/profile.ts | 11 +++++ .../src/data-plane/server/routes/reposts.ts | 14 ++++++ .../src/data-plane/server/routes/search.ts | 8 ++++ .../data-plane/server/routes/suggestions.ts | 5 +++ .../bsky/src/data-plane/server/routes/sync.ts | 5 +++ .../src/data-plane/server/routes/threads.ts | 8 ++++ 19 files changed, 235 insertions(+), 12 deletions(-) delete mode 100644 packages/bsky/src/data-plane/server/routes.ts create mode 100644 packages/bsky/src/data-plane/server/routes/blocks.ts create mode 100644 packages/bsky/src/data-plane/server/routes/feed-gens.ts create mode 100644 packages/bsky/src/data-plane/server/routes/feeds.ts create mode 100644 packages/bsky/src/data-plane/server/routes/follows.ts create mode 100644 packages/bsky/src/data-plane/server/routes/index.ts create mode 100644 packages/bsky/src/data-plane/server/routes/labels.ts create mode 100644 packages/bsky/src/data-plane/server/routes/likes.ts create mode 100644 packages/bsky/src/data-plane/server/routes/lists.ts create mode 100644 packages/bsky/src/data-plane/server/routes/moderation.ts create mode 100644 packages/bsky/src/data-plane/server/routes/mutes.ts create mode 100644 packages/bsky/src/data-plane/server/routes/notifs.ts create mode 100644 packages/bsky/src/data-plane/server/routes/posts.ts create mode 100644 packages/bsky/src/data-plane/server/routes/profile.ts create mode 100644 packages/bsky/src/data-plane/server/routes/reposts.ts create mode 100644 packages/bsky/src/data-plane/server/routes/search.ts create mode 100644 packages/bsky/src/data-plane/server/routes/suggestions.ts create mode 100644 packages/bsky/src/data-plane/server/routes/sync.ts create mode 100644 packages/bsky/src/data-plane/server/routes/threads.ts diff --git a/packages/bsky/src/data-plane/server/routes.ts b/packages/bsky/src/data-plane/server/routes.ts deleted file mode 100644 index aa3fa5a6573..00000000000 --- a/packages/bsky/src/data-plane/server/routes.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ConnectRouter } from '@connectrpc/connect' -import { Service } from '../gen/bsky_connect' - -export default (router: ConnectRouter) => - router.service(Service, { - async getFollowers(req) { - return { - uris: [req.actorDid], - cursor: 'test-cursor', - } - }, - }) diff --git a/packages/bsky/src/data-plane/server/routes/blocks.ts b/packages/bsky/src/data-plane/server/routes/blocks.ts new file mode 100644 index 00000000000..7631f19f210 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/blocks.ts @@ -0,0 +1,17 @@ +export default { + async getBidirectionalBlock(req) { + throw new Error('unimplemented') + }, + async getBlocks(req) { + throw new Error('unimplemented') + }, + async getBidirectionalBlockViaList(req) { + throw new Error('unimplemented') + }, + async getBlocklistSubscription(req) { + throw new Error('unimplemented') + }, + async getBlocklistSubscriptions(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/feed-gens.ts b/packages/bsky/src/data-plane/server/routes/feed-gens.ts new file mode 100644 index 00000000000..9b92240b944 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/feed-gens.ts @@ -0,0 +1,14 @@ +export default { + async getFeedGenerators(req) { + throw new Error('unimplemented') + }, + async getActorFeeds(req) { + throw new Error('unimplemented') + }, + async getSuggestedFeeds(req) { + throw new Error('unimplemented') + }, + async getFeedGeneratorStatus(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/feeds.ts b/packages/bsky/src/data-plane/server/routes/feeds.ts new file mode 100644 index 00000000000..27f83646e9a --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/feeds.ts @@ -0,0 +1,11 @@ +export default { + async getAuthorFeed(req) { + throw new Error('unimplemented') + }, + async getTimeline(req) { + throw new Error('unimplemented') + }, + async getListFeed(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/follows.ts b/packages/bsky/src/data-plane/server/routes/follows.ts new file mode 100644 index 00000000000..a5dbbe99b4b --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/follows.ts @@ -0,0 +1,17 @@ +export default { + async getActorFollowsActors(req) { + throw new Error('unimplemented') + }, + async getFollowers(req) { + throw new Error('unimplemented') + }, + async getFollows(req) { + throw new Error('unimplemented') + }, + async getFollowersCount(req) { + throw new Error('unimplemented') + }, + async getFollowsCount(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/index.ts b/packages/bsky/src/data-plane/server/routes/index.ts new file mode 100644 index 00000000000..b1d14957e82 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/index.ts @@ -0,0 +1,45 @@ +import { ConnectRouter } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' + +import blocks from './blocks' +import feedGens from './feed-gens' +import feeds from './feeds' +import follows from './follows' +import labels from './labels' +import likes from './likes' +import lists from './lists' +import moderation from './moderation' +import mutes from './mutes' +import notifs from './notifs' +import posts from './posts' +import profile from './profile' +import reposts from './reposts' +import search from './search' +import suggestions from './suggestions' +import sync from './sync' +import threads from './threads' + +export default (router: ConnectRouter) => + router.service(Service, { + ...blocks, + ...feedGens, + ...feeds, + ...follows, + ...labels, + ...likes, + ...lists, + ...moderation, + ...mutes, + ...notifs, + ...posts, + ...profile, + ...reposts, + ...search, + ...suggestions, + ...sync, + ...threads, + + async ping() { + return {} + }, + }) diff --git a/packages/bsky/src/data-plane/server/routes/labels.ts b/packages/bsky/src/data-plane/server/routes/labels.ts new file mode 100644 index 00000000000..c3e9d0f0732 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/labels.ts @@ -0,0 +1,5 @@ +export default { + async getLabels(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/likes.ts b/packages/bsky/src/data-plane/server/routes/likes.ts new file mode 100644 index 00000000000..d94ef949446 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/likes.ts @@ -0,0 +1,14 @@ +export default { + async getLikesBySubject(req) { + throw new Error('unimplemented') + }, + async getLikeByActorAndSubject(req) { + throw new Error('unimplemented') + }, + async getActorLikes(req) { + throw new Error('unimplemented') + }, + async getLikesCount(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/lists.ts b/packages/bsky/src/data-plane/server/routes/lists.ts new file mode 100644 index 00000000000..1b971ab2e1c --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/lists.ts @@ -0,0 +1,14 @@ +export default { + async getListMembers(req) { + throw new Error('unimplemented') + }, + async getListMembership(req) { + throw new Error('unimplemented') + }, + async getList(req) { + throw new Error('unimplemented') + }, + async getListCount(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/moderation.ts b/packages/bsky/src/data-plane/server/routes/moderation.ts new file mode 100644 index 00000000000..19e3c675c70 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/moderation.ts @@ -0,0 +1,8 @@ +export default { + async getBlobTakedown(req) { + throw new Error('unimplemented') + }, + async updateTakedown(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/mutes.ts b/packages/bsky/src/data-plane/server/routes/mutes.ts new file mode 100644 index 00000000000..914022666b4 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/mutes.ts @@ -0,0 +1,17 @@ +export default { + async getActorMutesActor(req) { + throw new Error('unimplemented') + }, + async getMutes(req) { + throw new Error('unimplemented') + }, + async getActorMutesActorViaList(req) { + throw new Error('unimplemented') + }, + async getMutelistSubscription(req) { + throw new Error('unimplemented') + }, + async getMutelistSubscriptions(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/notifs.ts b/packages/bsky/src/data-plane/server/routes/notifs.ts new file mode 100644 index 00000000000..471af139673 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/notifs.ts @@ -0,0 +1,14 @@ +export default { + async getNotifications(req) { + throw new Error('unimplemented') + }, + async getNotificationSeen(req) { + throw new Error('unimplemented') + }, + async getUnreadNotificationCount(req) { + throw new Error('unimplemented') + }, + async updateNotificationSeen(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/posts.ts b/packages/bsky/src/data-plane/server/routes/posts.ts new file mode 100644 index 00000000000..a518be0eb91 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/posts.ts @@ -0,0 +1,8 @@ +export default { + async getPosts(req) { + throw new Error('unimplemented') + }, + async getPostReplyCount(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/profile.ts b/packages/bsky/src/data-plane/server/routes/profile.ts new file mode 100644 index 00000000000..1f75b849980 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/profile.ts @@ -0,0 +1,11 @@ +export default { + async getProfiles(req) { + throw new Error('unimplemented') + }, + async getHandles(req) { + throw new Error('unimplemented') + }, + async getDidsByHandles(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/reposts.ts b/packages/bsky/src/data-plane/server/routes/reposts.ts new file mode 100644 index 00000000000..b296a018ba1 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/reposts.ts @@ -0,0 +1,14 @@ +export default { + async getRepostsBySubject(req) { + throw new Error('unimplemented') + }, + async getRepostByActorAndSubject(req) { + throw new Error('unimplemented') + }, + async getActorReposts(req) { + throw new Error('unimplemented') + }, + async getRepostsCount(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/search.ts b/packages/bsky/src/data-plane/server/routes/search.ts new file mode 100644 index 00000000000..6f590005c8b --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/search.ts @@ -0,0 +1,8 @@ +export default { + async searchActors(req) { + throw new Error('unimplemented') + }, + async searchPosts(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/suggestions.ts b/packages/bsky/src/data-plane/server/routes/suggestions.ts new file mode 100644 index 00000000000..404032c950f --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/suggestions.ts @@ -0,0 +1,5 @@ +export default { + async getSuggestions(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/sync.ts b/packages/bsky/src/data-plane/server/routes/sync.ts new file mode 100644 index 00000000000..7d20f852f07 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/sync.ts @@ -0,0 +1,5 @@ +export default { + async getLatestRev(req) { + throw new Error('unimplemented') + }, +} diff --git a/packages/bsky/src/data-plane/server/routes/threads.ts b/packages/bsky/src/data-plane/server/routes/threads.ts new file mode 100644 index 00000000000..556bea7a757 --- /dev/null +++ b/packages/bsky/src/data-plane/server/routes/threads.ts @@ -0,0 +1,8 @@ +export default { + async getThread(req) { + throw new Error('unimplemented') + }, + async getThreadgates(req) { + throw new Error('unimplemented') + }, +} From 4fd01a4372cd7a141fe2a5af884576533ec635be Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 12:12:51 -0600 Subject: [PATCH 009/186] follows impl --- packages/bsky/src/data-plane/server/index.ts | 6 +- .../src/data-plane/server/routes/blocks.ts | 6 +- .../src/data-plane/server/routes/follows.ts | 95 +++++++++++++++++-- .../src/data-plane/server/routes/index.ts | 5 +- 4 files changed, 99 insertions(+), 13 deletions(-) diff --git a/packages/bsky/src/data-plane/server/index.ts b/packages/bsky/src/data-plane/server/index.ts index 1c29a776a29..6ceec06fd72 100644 --- a/packages/bsky/src/data-plane/server/index.ts +++ b/packages/bsky/src/data-plane/server/index.ts @@ -2,13 +2,15 @@ import http from 'http' import events from 'events' import express from 'express' import { expressConnectMiddleware } from '@connectrpc/connect-express' -import routes from './routes' +import createRoutes from './routes' +import { Database } from '../../db' export class DataPlaneServer { constructor(public server: http.Server) {} - static async create(port: number) { + static async create(db: Database, port: number) { const app = express() + const routes = createRoutes(db) app.use(expressConnectMiddleware({ routes })) const server = app.listen(port) await events.once(server, 'listening') diff --git a/packages/bsky/src/data-plane/server/routes/blocks.ts b/packages/bsky/src/data-plane/server/routes/blocks.ts index 7631f19f210..5f667439982 100644 --- a/packages/bsky/src/data-plane/server/routes/blocks.ts +++ b/packages/bsky/src/data-plane/server/routes/blocks.ts @@ -1,4 +1,6 @@ -export default { +import { Database } from '../../../db' + +export default (db: Database) => ({ async getBidirectionalBlock(req) { throw new Error('unimplemented') }, @@ -14,4 +16,4 @@ export default { async getBlocklistSubscriptions(req) { throw new Error('unimplemented') }, -} +}) diff --git a/packages/bsky/src/data-plane/server/routes/follows.ts b/packages/bsky/src/data-plane/server/routes/follows.ts index a5dbbe99b4b..de8409380af 100644 --- a/packages/bsky/src/data-plane/server/routes/follows.ts +++ b/packages/bsky/src/data-plane/server/routes/follows.ts @@ -1,17 +1,98 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Database } from '../../../db' +import { Service } from '../../gen/bsky_connect' +import { TimeCidKeyset, paginate } from '../../../db/pagination' + +export default (db: Database): Partial> => ({ async getActorFollowsActors(req) { - throw new Error('unimplemented') + const { actorDid, targetDids } = req + if (targetDids.length < 1) { + return { uris: [] } + } + const res = await db.db + .selectFrom('follow') + .where('follow.creator', '=', actorDid) + .where('follow.subjectDid', 'in', targetDids) + .select('uri') + .execute() + return { + uris: res.map((row) => row.uri), + } }, async getFollowers(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + let followersReq = db.db + .selectFrom('follow') + .where('follow.subjectDid', '=', actorDid) + .innerJoin('actor as creator', 'creator.did', 'follow.creator') + .selectAll('creator') + .select([ + 'follow.uri as uri', + 'follow.cid as cid', + 'follow.sortAt as sortAt', + ]) + + const keyset = new TimeCidKeyset(ref('follow.sortAt'), ref('follow.cid')) + followersReq = paginate(followersReq, { + limit, + cursor, + keyset, + }) + + const followers = await followersReq.execute() + return { + uris: followers.map((f) => f.uri), + cursor: keyset.packFromResult(followers), + } }, async getFollows(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + + let followsReq = db.db + .selectFrom('follow') + .where('follow.creator', '=', actorDid) + .innerJoin('actor as subject', 'subject.did', 'follow.subjectDid') + .selectAll('subject') + .select([ + 'follow.uri as uri', + 'follow.cid as cid', + 'follow.sortAt as sortAt', + ]) + + const keyset = new TimeCidKeyset(ref('follow.sortAt'), ref('follow.cid')) + followsReq = paginate(followsReq, { + limit, + cursor, + keyset, + }) + + const follows = await followsReq.execute() + + return { + uris: follows.map((f) => f.uri), + cursor: keyset.packFromResult(follows), + } }, async getFollowersCount(req) { - throw new Error('unimplemented') + const res = await db.db + .selectFrom('profile_agg') + .select('followersCount') + .where('did', '=', req.actorDid) + .executeTakeFirst() + return { + count: res?.followersCount, + } }, async getFollowsCount(req) { - throw new Error('unimplemented') + const res = await db.db + .selectFrom('profile_agg') + .select('followsCount') + .where('did', '=', req.actorDid) + .executeTakeFirst() + return { + count: res?.followsCount, + } }, -} +}) diff --git a/packages/bsky/src/data-plane/server/routes/index.ts b/packages/bsky/src/data-plane/server/routes/index.ts index b1d14957e82..ed1016a505d 100644 --- a/packages/bsky/src/data-plane/server/routes/index.ts +++ b/packages/bsky/src/data-plane/server/routes/index.ts @@ -18,10 +18,11 @@ import search from './search' import suggestions from './suggestions' import sync from './sync' import threads from './threads' +import { Database } from '../../../db' -export default (router: ConnectRouter) => +export default (db: Database) => (router: ConnectRouter) => router.service(Service, { - ...blocks, + ...blocks(db), ...feedGens, ...feeds, ...follows, From 78fe42892691bc81ce7d339467f795bd94164d58 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 12:20:48 -0600 Subject: [PATCH 010/186] posts impl --- .../src/data-plane/server/routes/follows.ts | 2 +- .../src/data-plane/server/routes/index.ts | 2 +- .../src/data-plane/server/routes/posts.ts | 37 +++++++++++++++++-- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/follows.ts b/packages/bsky/src/data-plane/server/routes/follows.ts index de8409380af..1d06e2d06ec 100644 --- a/packages/bsky/src/data-plane/server/routes/follows.ts +++ b/packages/bsky/src/data-plane/server/routes/follows.ts @@ -1,6 +1,6 @@ import { ServiceImpl } from '@connectrpc/connect' -import { Database } from '../../../db' import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' import { TimeCidKeyset, paginate } from '../../../db/pagination' export default (db: Database): Partial> => ({ diff --git a/packages/bsky/src/data-plane/server/routes/index.ts b/packages/bsky/src/data-plane/server/routes/index.ts index ed1016a505d..34e97d13be7 100644 --- a/packages/bsky/src/data-plane/server/routes/index.ts +++ b/packages/bsky/src/data-plane/server/routes/index.ts @@ -32,7 +32,7 @@ export default (db: Database) => (router: ConnectRouter) => ...moderation, ...mutes, ...notifs, - ...posts, + ...posts(db), ...profile, ...reposts, ...search, diff --git a/packages/bsky/src/data-plane/server/routes/posts.ts b/packages/bsky/src/data-plane/server/routes/posts.ts index a518be0eb91..58ec3852310 100644 --- a/packages/bsky/src/data-plane/server/routes/posts.ts +++ b/packages/bsky/src/data-plane/server/routes/posts.ts @@ -1,8 +1,37 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' +import { cborEncode, jsonToIpld } from '@atproto/common' + +export default (db: Database): Partial> => ({ async getPosts(req) { - throw new Error('unimplemented') + if (req.uris.length === 0) { + return { records: [] } + } + const res = await db.db + .selectFrom('record') + .select('json') + .where('uri', 'in', req.uris) + .execute() + const records = res.map((row) => + cborEncode(jsonToIpld(JSON.parse(row.json))), + ) + return { records } }, async getPostReplyCount(req) { - throw new Error('unimplemented') + if (req.uris.length === 0) { + return { counts: [] } + } + const res = await db.db + .selectFrom('post_agg') + .select(['uri', 'replyCount']) + .where('uri', 'in', req.uris) + .execute() + const countByUri = res.reduce((acc, cur) => { + acc[cur.uri] = cur.replyCount + return acc + }, {} as Record) + const counts = req.uris.map((uri) => countByUri[uri] ?? 0) + return { counts } }, -} +}) From f9037e6c137d14e5f69c43d58deb33e44acb21b1 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 12:45:08 -0600 Subject: [PATCH 011/186] posts & likes impl --- .../src/data-plane/server/routes/likes.ts | 80 +++++++++++++++++-- .../src/data-plane/server/routes/posts.ts | 23 +++--- packages/common-web/src/arrays.ts | 7 ++ 3 files changed, 95 insertions(+), 15 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/likes.ts b/packages/bsky/src/data-plane/server/routes/likes.ts index d94ef949446..9ee2eb242eb 100644 --- a/packages/bsky/src/data-plane/server/routes/likes.ts +++ b/packages/bsky/src/data-plane/server/routes/likes.ts @@ -1,14 +1,82 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' +import { TimeCidKeyset, paginate } from '../../../db/pagination' + +export default (db: Database): Partial> => ({ async getLikesBySubject(req) { - throw new Error('unimplemented') + const { subjectUri, cursor, limit } = req + const { ref } = db.db.dynamic + + let builder = db.db + .selectFrom('like') + .where('like.subject', '=', subjectUri) + .innerJoin('actor as creator', 'creator.did', 'like.creator') + .selectAll('creator') + .select([ + 'like.uri as uri', + 'like.cid as cid', + 'like.createdAt as createdAt', + 'like.indexedAt as indexedAt', + 'like.sortAt as sortAt', + ]) + + const keyset = new TimeCidKeyset(ref('like.sortAt'), ref('like.cid')) + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + + const likes = await builder.execute() + + return { + uris: likes.map((l) => l.uri), + cursor: keyset.packFromResult(likes), + } }, async getLikeByActorAndSubject(req) { - throw new Error('unimplemented') + const { actorDid, subjectUri } = req + const res = await db.db + .selectFrom('like') + .where('creator', '=', actorDid) + .where('subject', '=', subjectUri) + .select('uri') + .executeTakeFirst() + return { uri: res?.uri } }, async getActorLikes(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + + let builder = db.db + .selectFrom('like') + .where('like.creator', '=', actorDid) + .selectAll() + + const keyset = new TimeCidKeyset(ref('like.sortAt'), ref('like.cid')) + + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + + const likes = await builder.execute() + + return { + uris: likes.map((l) => l.uri), + cursor: keyset.packFromResult(likes), + } }, async getLikesCount(req) { - throw new Error('unimplemented') + const res = await db.db + .selectFrom('post_agg') + .where('uri', '=', req.subjectUri) + .select('likeCount') + .executeTakeFirst() + return { + count: res?.likeCount, + } }, -} +}) diff --git a/packages/bsky/src/data-plane/server/routes/posts.ts b/packages/bsky/src/data-plane/server/routes/posts.ts index 58ec3852310..eb7a7401075 100644 --- a/packages/bsky/src/data-plane/server/routes/posts.ts +++ b/packages/bsky/src/data-plane/server/routes/posts.ts @@ -1,7 +1,7 @@ import { ServiceImpl } from '@connectrpc/connect' import { Service } from '../../gen/bsky_connect' import { Database } from '../../../db' -import { cborEncode, jsonToIpld } from '@atproto/common' +import { cborEncode, jsonToIpld, keyBy } from '@atproto/common' export default (db: Database): Partial> => ({ async getPosts(req) { @@ -13,9 +13,17 @@ export default (db: Database): Partial> => ({ .select('json') .where('uri', 'in', req.uris) .execute() - const records = res.map((row) => - cborEncode(jsonToIpld(JSON.parse(row.json))), - ) + const byUri = keyBy(res, 'uri') + + // @TODO fix this so that it accepts undefined records + // @ts-ignore + const records: Uint8Array[] = req.uris.map((uri) => { + const row = byUri[uri] + if (!row) { + return undefined + } + return cborEncode(jsonToIpld(JSON.parse(row.json))) + }) return { records } }, async getPostReplyCount(req) { @@ -27,11 +35,8 @@ export default (db: Database): Partial> => ({ .select(['uri', 'replyCount']) .where('uri', 'in', req.uris) .execute() - const countByUri = res.reduce((acc, cur) => { - acc[cur.uri] = cur.replyCount - return acc - }, {} as Record) - const counts = req.uris.map((uri) => countByUri[uri] ?? 0) + const byUri = keyBy(res, 'uri') + const counts = req.uris.map((uri) => byUri[uri]?.replyCount ?? 0) return { counts } }, }) diff --git a/packages/common-web/src/arrays.ts b/packages/common-web/src/arrays.ts index 51598fc86f1..36c2f0dcb27 100644 --- a/packages/common-web/src/arrays.ts +++ b/packages/common-web/src/arrays.ts @@ -1,3 +1,10 @@ +export const keyBy = (arr: T[], key: string): Record => { + return arr.reduce((acc, cur) => { + acc[cur[key]] = cur + return acc + }, {} as Record) +} + export const mapDefined = ( arr: T[], fn: (obj: T) => S | undefined, From 5782f5bc1e82cf3d8eb09e5b77e4b6409a6dc989 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 12:47:34 -0600 Subject: [PATCH 012/186] repost impl --- .../src/data-plane/server/routes/likes.ts | 13 +--- .../src/data-plane/server/routes/reposts.ts | 75 +++++++++++++++++-- 2 files changed, 73 insertions(+), 15 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/likes.ts b/packages/bsky/src/data-plane/server/routes/likes.ts index 9ee2eb242eb..ef448369b6b 100644 --- a/packages/bsky/src/data-plane/server/routes/likes.ts +++ b/packages/bsky/src/data-plane/server/routes/likes.ts @@ -11,15 +11,7 @@ export default (db: Database): Partial> => ({ let builder = db.db .selectFrom('like') .where('like.subject', '=', subjectUri) - .innerJoin('actor as creator', 'creator.did', 'like.creator') - .selectAll('creator') - .select([ - 'like.uri as uri', - 'like.cid as cid', - 'like.createdAt as createdAt', - 'like.indexedAt as indexedAt', - 'like.sortAt as sortAt', - ]) + .selectAll('like') const keyset = new TimeCidKeyset(ref('like.sortAt'), ref('like.cid')) builder = paginate(builder, { @@ -35,6 +27,7 @@ export default (db: Database): Partial> => ({ cursor: keyset.packFromResult(likes), } }, + async getLikeByActorAndSubject(req) { const { actorDid, subjectUri } = req const res = await db.db @@ -45,6 +38,7 @@ export default (db: Database): Partial> => ({ .executeTakeFirst() return { uri: res?.uri } }, + async getActorLikes(req) { const { actorDid, limit, cursor } = req const { ref } = db.db.dynamic @@ -69,6 +63,7 @@ export default (db: Database): Partial> => ({ cursor: keyset.packFromResult(likes), } }, + async getLikesCount(req) { const res = await db.db .selectFrom('post_agg') diff --git a/packages/bsky/src/data-plane/server/routes/reposts.ts b/packages/bsky/src/data-plane/server/routes/reposts.ts index b296a018ba1..0e995aa0b61 100644 --- a/packages/bsky/src/data-plane/server/routes/reposts.ts +++ b/packages/bsky/src/data-plane/server/routes/reposts.ts @@ -1,14 +1,77 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' +import { TimeCidKeyset, paginate } from '../../../db/pagination' + +export default (db: Database): Partial> => ({ async getRepostsBySubject(req) { - throw new Error('unimplemented') + const { subjectUri, cursor, limit } = req + const { ref } = db.db.dynamic + + let builder = db.db + .selectFrom('repost') + .where('repost.subject', '=', subjectUri) + .selectAll('repost') + + const keyset = new TimeCidKeyset(ref('repost.sortAt'), ref('repost.cid')) + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + + const reposts = await builder.execute() + + return { + uris: reposts.map((l) => l.uri), + cursor: keyset.packFromResult(reposts), + } }, + async getRepostByActorAndSubject(req) { - throw new Error('unimplemented') + const { actorDid, subjectUri } = req + const res = await db.db + .selectFrom('repost') + .where('creator', '=', actorDid) + .where('subject', '=', subjectUri) + .select('uri') + .executeTakeFirst() + return { uri: res?.uri } }, + async getActorReposts(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + + let builder = db.db + .selectFrom('repost') + .where('repost.creator', '=', actorDid) + .selectAll() + + const keyset = new TimeCidKeyset(ref('repost.sortAt'), ref('repost.cid')) + + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + + const reposts = await builder.execute() + + return { + uris: reposts.map((l) => l.uri), + cursor: keyset.packFromResult(reposts), + } }, + async getRepostsCount(req) { - throw new Error('unimplemented') + const res = await db.db + .selectFrom('post_agg') + .where('uri', '=', req.subjectUri) + .select('repostCount') + .executeTakeFirst() + return { + count: res?.repostCount, + } }, -} +}) From afd3823e9b0b5f6d4f99688d2c42d5ee179c0de4 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 13:09:03 -0600 Subject: [PATCH 013/186] profiles & handle null values --- .../src/data-plane/server/routes/follows.ts | 7 ++- .../src/data-plane/server/routes/posts.ts | 16 ++---- .../src/data-plane/server/routes/profile.ts | 56 +++++++++++++++++-- 3 files changed, 62 insertions(+), 17 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/follows.ts b/packages/bsky/src/data-plane/server/routes/follows.ts index 1d06e2d06ec..3d3fc94a1f9 100644 --- a/packages/bsky/src/data-plane/server/routes/follows.ts +++ b/packages/bsky/src/data-plane/server/routes/follows.ts @@ -2,6 +2,7 @@ import { ServiceImpl } from '@connectrpc/connect' import { Service } from '../../gen/bsky_connect' import { Database } from '../../../db' import { TimeCidKeyset, paginate } from '../../../db/pagination' +import { keyBy } from '@atproto/common' export default (db: Database): Partial> => ({ async getActorFollowsActors(req) { @@ -13,10 +14,12 @@ export default (db: Database): Partial> => ({ .selectFrom('follow') .where('follow.creator', '=', actorDid) .where('follow.subjectDid', 'in', targetDids) - .select('uri') + .selectAll() .execute() + const bySubject = keyBy(res, 'subjectDid') + const uris = targetDids.map((did) => bySubject[did]?.uri ?? '') return { - uris: res.map((row) => row.uri), + uris, } }, async getFollowers(req) { diff --git a/packages/bsky/src/data-plane/server/routes/posts.ts b/packages/bsky/src/data-plane/server/routes/posts.ts index eb7a7401075..97c25fc7754 100644 --- a/packages/bsky/src/data-plane/server/routes/posts.ts +++ b/packages/bsky/src/data-plane/server/routes/posts.ts @@ -1,7 +1,8 @@ import { ServiceImpl } from '@connectrpc/connect' import { Service } from '../../gen/bsky_connect' +import { keyBy } from '@atproto/common' +import * as ui8 from 'uint8arrays' import { Database } from '../../../db' -import { cborEncode, jsonToIpld, keyBy } from '@atproto/common' export default (db: Database): Partial> => ({ async getPosts(req) { @@ -10,19 +11,14 @@ export default (db: Database): Partial> => ({ } const res = await db.db .selectFrom('record') - .select('json') + .selectAll() .where('uri', 'in', req.uris) .execute() const byUri = keyBy(res, 'uri') - - // @TODO fix this so that it accepts undefined records - // @ts-ignore - const records: Uint8Array[] = req.uris.map((uri) => { + const records = req.uris.map((uri) => { const row = byUri[uri] - if (!row) { - return undefined - } - return cborEncode(jsonToIpld(JSON.parse(row.json))) + const json = row ? row.json : JSON.stringify(null) + return ui8.fromString(json, 'utf8') }) return { records } }, diff --git a/packages/bsky/src/data-plane/server/routes/profile.ts b/packages/bsky/src/data-plane/server/routes/profile.ts index 1f75b849980..bb0ab452885 100644 --- a/packages/bsky/src/data-plane/server/routes/profile.ts +++ b/packages/bsky/src/data-plane/server/routes/profile.ts @@ -1,11 +1,57 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { keyBy } from '@atproto/common' +import * as ui8 from 'uint8arrays' +import { Database } from '../../../db' + +export default (db: Database): Partial> => ({ async getProfiles(req) { - throw new Error('unimplemented') + const { dids } = req + if (dids.length === 0) { + return { records: [] } + } + const uris = dids.map((did) => `at://${did}/app.bsky.actor.profile/self`) + const res = await db.db + .selectFrom('record') + .selectAll() + .where('uri', 'in', uris) + .execute() + const byUri = keyBy(res, 'uri') + const records = uris.map((uri) => { + const row = byUri[uri] + const json = row ? row.json : JSON.stringify(null) + return ui8.fromString(json, 'utf8') + }) + return { records } }, + async getHandles(req) { - throw new Error('unimplemented') + const { dids } = req + if (dids.length === 0) { + return { handles: [] } + } + const res = await db.db + .selectFrom('actor') + .where('did', 'in', dids) + .selectAll() + .execute() + const byDid = keyBy(res, 'did') + const handles = dids.map((did) => byDid[did]?.handle ?? '') + return { handles } }, + async getDidsByHandles(req) { - throw new Error('unimplemented') + const { handles } = req + if (handles.length === 0) { + return { dids: [] } + } + const res = await db.db + .selectFrom('actor') + .where('handle', 'in', handles) + .selectAll() + .execute() + const byHandle = keyBy(res, 'handle') + const dids = handles.map((handle) => byHandle[handle]?.did ?? '') + return { dids } }, -} +}) From 2c0fc18d4c26c5379552ddcc7bd3c5ba91eb16b2 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 13:21:13 -0600 Subject: [PATCH 014/186] list impl --- .../src/data-plane/server/routes/lists.ts | 74 +++++++++++++++++-- 1 file changed, 68 insertions(+), 6 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/lists.ts b/packages/bsky/src/data-plane/server/routes/lists.ts index 1b971ab2e1c..1cf3f6a2d72 100644 --- a/packages/bsky/src/data-plane/server/routes/lists.ts +++ b/packages/bsky/src/data-plane/server/routes/lists.ts @@ -1,14 +1,76 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import * as ui8 from 'uint8arrays' +import { Database } from '../../../db' +import { countAll } from '../../../db/util' +import { keyBy } from '@atproto/common' +import { TimeCidKeyset, paginate } from '../../../db/pagination' + +export default (db: Database): Partial> => ({ async getListMembers(req) { - throw new Error('unimplemented') + const { listUri, cursor, limit } = req + const { ref } = db.db.dynamic + let builder = db.db + .selectFrom('list_item') + .where('listUri', '=', listUri) + .selectAll() + + const keyset = new TimeCidKeyset( + ref('list_item.sortAt'), + ref('list_item.cid'), + ) + + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + + const listItems = await builder.execute() + return { + dids: listItems.map((item) => item.subjectDid), + cursor: keyset.packFromResult(listItems), + } }, + async getListMembership(req) { - throw new Error('unimplemented') + const { actorDid, listUris } = req + if (listUris.length === 0) { + return { listitemUris: [] } + } + const res = await db.db + .selectFrom('list_item') + .where('subjectDid', '=', actorDid) + .where('listUri', 'in', listUris) + .selectAll() + .execute() + const byListUri = keyBy(res, 'listUri') + const listitemUris = listUris.map((uri) => byListUri[uri]?.uri ?? '') + return { + listitemUris, + } }, + async getList(req) { - throw new Error('unimplemented') + const res = await db.db + .selectFrom('record') + .where('uri', '=', req.listUri) + .select('json') + .executeTakeFirst() + const record = res ? ui8.fromString(res.json, 'utf8') : undefined + return { + record, + } }, + async getListCount(req) { - throw new Error('unimplemented') + const res = await db.db + .selectFrom('list_item') + .select(countAll.as('count')) + .where('list_item.listUri', '=', req.listUri) + .executeTakeFirst() + return { + count: res?.count, + } }, -} +}) From 9976d1538d3bfb401a84409f69892a97349cd3f2 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 17:29:29 -0600 Subject: [PATCH 015/186] mutes impl --- .../bsky/src/api/app/bsky/graph/getMutes.ts | 11 +- .../src/data-plane/server/routes/mutes.ts | 106 +++++++++++++++++- packages/bsky/src/db/pagination.ts | 9 ++ 3 files changed, 110 insertions(+), 16 deletions(-) diff --git a/packages/bsky/src/api/app/bsky/graph/getMutes.ts b/packages/bsky/src/api/app/bsky/graph/getMutes.ts index e69803d144a..9b334cf4829 100644 --- a/packages/bsky/src/api/app/bsky/graph/getMutes.ts +++ b/packages/bsky/src/api/app/bsky/graph/getMutes.ts @@ -1,5 +1,5 @@ import { Server } from '../../../../lexicon' -import { paginate, TimeCidKeyset } from '../../../../db/pagination' +import { CreatedAtDidKeyset, paginate } from '../../../../db/pagination' import AppContext from '../../../../context' import { notSoftDeletedClause } from '../../../../db/util' @@ -44,12 +44,3 @@ export default function (server: Server, ctx: AppContext) { }, }) } - -export class CreatedAtDidKeyset extends TimeCidKeyset<{ - createdAt: string - did: string // dids are treated identically to cids in TimeCidKeyset -}> { - labelResult(result: { createdAt: string; did: string }) { - return { primary: result.createdAt, secondary: result.did } - } -} diff --git a/packages/bsky/src/data-plane/server/routes/mutes.ts b/packages/bsky/src/data-plane/server/routes/mutes.ts index 914022666b4..66c19bd6815 100644 --- a/packages/bsky/src/data-plane/server/routes/mutes.ts +++ b/packages/bsky/src/data-plane/server/routes/mutes.ts @@ -1,17 +1,111 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' +import { + CreatedAtDidKeyset, + TimeCidKeyset, + paginate, +} from '../../../db/pagination' + +export default (db: Database): Partial> => ({ async getActorMutesActor(req) { - throw new Error('unimplemented') + const { actorDid, targetDid } = req + const res = await db.db + .selectFrom('mute') + .selectAll() + .where('mutedByDid', '=', actorDid) + .where('subjectDid', '=', targetDid) + .executeTakeFirst() + return { + muted: !!res, + } }, + async getMutes(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + + let builder = db.db + .selectFrom('mute') + .innerJoin('actor', 'actor.did', 'mute.subjectDid') + .where('mute.mutedByDid', '=', actorDid) + .selectAll('actor') + .select('mute.createdAt as createdAt') + + const keyset = new CreatedAtDidKeyset( + ref('mute.createdAt'), + ref('mute.subjectDid'), + ) + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + + const mutes = await builder.execute() + + return { + dids: mutes.map((m) => m.did), + cursor: keyset.packFromResult(mutes), + } }, + async getActorMutesActorViaList(req) { - throw new Error('unimplemented') + const { actorDid, targetDid } = req + const res = await db.db + .selectFrom('list_mute') + .innerJoin('list_item', 'list_item.listUri', 'list_mute.listUri') + .where('list_mute.mutedByDid', '=', actorDid) + .where('list_item.subjectDid', '=', targetDid) + .select('list_mute.listUri') + .limit(1) + .executeTakeFirst() + return { + listUri: res?.listUri, + } }, + async getMutelistSubscription(req) { - throw new Error('unimplemented') + const { actorDid, listUri } = req + const res = await db.db + .selectFrom('list_mute') + .where('mutedByDid', '=', actorDid) + .where('listUri', '=', listUri) + .selectAll() + .limit(1) + .executeTakeFirst() + return { + subscribed: !!res, + } }, + async getMutelistSubscriptions(req) { + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + let builder = db.db + .selectFrom('list') + .whereExists( + db.db + .selectFrom('list_mute') + .where('list_mute.mutedByDid', '=', actorDid) + .whereRef('list_mute.listUri', '=', ref('list.uri')) + .selectAll(), + ) + .selectAll('list') + + const keyset = new TimeCidKeyset(ref('list.createdAt'), ref('list.cid')) + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + const lists = await builder.execute() + + return { + listUris: lists.map((l) => l.uri), + cursor: keyset.packFromResult(lists), + } + throw new Error('unimplemented') }, -} +}) diff --git a/packages/bsky/src/db/pagination.ts b/packages/bsky/src/db/pagination.ts index b38c69e5ada..d5887ae1fff 100644 --- a/packages/bsky/src/db/pagination.ts +++ b/packages/bsky/src/db/pagination.ts @@ -106,6 +106,15 @@ export class TimeCidKeyset< } } +export class CreatedAtDidKeyset extends TimeCidKeyset<{ + createdAt: string + did: string // dids are treated identically to cids in TimeCidKeyset +}> { + labelResult(result: { createdAt: string; did: string }) { + return { primary: result.createdAt, secondary: result.did } + } +} + export const paginate = < QB extends AnyQb, K extends GenericKeyset, From 2935d6687510b506f5cad1da0879981b58737cea Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 17:37:01 -0600 Subject: [PATCH 016/186] blocks impl --- .../src/data-plane/server/routes/blocks.ts | 114 +++++++++++++++++- 1 file changed, 108 insertions(+), 6 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/blocks.ts b/packages/bsky/src/data-plane/server/routes/blocks.ts index 5f667439982..66a0fdaaec5 100644 --- a/packages/bsky/src/data-plane/server/routes/blocks.ts +++ b/packages/bsky/src/data-plane/server/routes/blocks.ts @@ -1,19 +1,121 @@ +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' import { Database } from '../../../db' +import { TimeCidKeyset, paginate } from '../../../db/pagination' -export default (db: Database) => ({ +export default (db: Database): Partial> => ({ async getBidirectionalBlock(req) { - throw new Error('unimplemented') + const { actorDid, targetDid } = req + const res = await db.db + .selectFrom('actor_block') + .where((qb) => + qb + .where('actor_block.creator', '=', actorDid) + .where('actor_block.subjectDid', '=', targetDid), + ) + .orWhere((qb) => + qb + .where('actor_block.creator', '=', targetDid) + .where('actor_block.subjectDid', '=', actorDid), + ) + .limit(1) + .selectAll() + .executeTakeFirst() + + return { + blockUri: res?.uri, + } }, + async getBlocks(req) { - throw new Error('unimplemented') + const { actorDid, cursor, limit } = req + const { ref } = db.db.dynamic + + let builder = db.db + .selectFrom('actor_block') + .where('actor_block.creator', '=', actorDid) + .selectAll() + + const keyset = new TimeCidKeyset( + ref('actor_block.sortAt'), + ref('actor_block.cid'), + ) + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + + const blocks = await builder.execute() + return { + blockUris: blocks.map((b) => b.uri), + cursor: keyset.packFromResult(blocks), + } }, + async getBidirectionalBlockViaList(req) { - throw new Error('unimplemented') + const { actorDid, targetDid } = req + const res = await db.db + .selectFrom('list_block') + .innerJoin('list_item', 'list_item.listUri', 'list_block.subjectUri') + .where((qb) => + qb + .where('list_block.creator', '=', actorDid) + .where('list_item.subjectDid', '=', targetDid), + ) + .orWhere((qb) => + qb + .where('list_block.creator', '=', targetDid) + .where('list_item.subjectDid', '=', actorDid), + ) + .limit(1) + .selectAll('list_block') + .executeTakeFirst() + + return { + listUri: res?.subjectUri, + } }, + async getBlocklistSubscription(req) { - throw new Error('unimplemented') + const { actorDid, listUri } = req + const res = await db.db + .selectFrom('list_block') + .where('creator', '=', actorDid) + .where('subjectUri', '=', listUri) + .selectAll() + .limit(1) + .executeTakeFirst() + return { + subscribed: !!res, + } }, + async getBlocklistSubscriptions(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + let builder = db.db + .selectFrom('list') + .whereExists( + db.db + .selectFrom('list_block') + .where('list_block.creator', '=', actorDid) + .whereRef('list_block.subjectUri', '=', ref('list.uri')) + .selectAll(), + ) + .selectAll('list') + + const keyset = new TimeCidKeyset(ref('list.createdAt'), ref('list.cid')) + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + const lists = await builder.execute() + + return { + listUris: lists.map((l) => l.uri), + cursor: keyset.packFromResult(lists), + } }, }) From 58ec69eac797010148bb1c444fdf336a49fa144f Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 17:49:19 -0600 Subject: [PATCH 017/186] misc --- .../src/data-plane/server/routes/index.ts | 30 +++++----- .../src/data-plane/server/routes/mutes.ts | 2 - .../src/data-plane/server/routes/search.ts | 8 ++- .../data-plane/server/routes/suggestions.ts | 59 ++++++++++++++++++- .../bsky/src/data-plane/server/routes/sync.ts | 17 +++++- 5 files changed, 92 insertions(+), 24 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/index.ts b/packages/bsky/src/data-plane/server/routes/index.ts index 34e97d13be7..bc0b439fcf4 100644 --- a/packages/bsky/src/data-plane/server/routes/index.ts +++ b/packages/bsky/src/data-plane/server/routes/index.ts @@ -23,22 +23,22 @@ import { Database } from '../../../db' export default (db: Database) => (router: ConnectRouter) => router.service(Service, { ...blocks(db), - ...feedGens, - ...feeds, - ...follows, - ...labels, - ...likes, - ...lists, - ...moderation, - ...mutes, - ...notifs, + ...feedGens(db), + ...feeds(db), + ...follows(db), + ...labels(db), + ...likes(db), + ...lists(db), + ...moderation(db), + ...mutes(db), + ...notifs(db), ...posts(db), - ...profile, - ...reposts, - ...search, - ...suggestions, - ...sync, - ...threads, + ...profile(db), + ...reposts(db), + ...search(db), + ...suggestions(db), + ...sync(db), + ...threads(db), async ping() { return {} diff --git a/packages/bsky/src/data-plane/server/routes/mutes.ts b/packages/bsky/src/data-plane/server/routes/mutes.ts index 66c19bd6815..a25042556b6 100644 --- a/packages/bsky/src/data-plane/server/routes/mutes.ts +++ b/packages/bsky/src/data-plane/server/routes/mutes.ts @@ -105,7 +105,5 @@ export default (db: Database): Partial> => ({ listUris: lists.map((l) => l.uri), cursor: keyset.packFromResult(lists), } - - throw new Error('unimplemented') }, }) diff --git a/packages/bsky/src/data-plane/server/routes/search.ts b/packages/bsky/src/data-plane/server/routes/search.ts index 6f590005c8b..7638d9399ca 100644 --- a/packages/bsky/src/data-plane/server/routes/search.ts +++ b/packages/bsky/src/data-plane/server/routes/search.ts @@ -1,8 +1,12 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' + +export default (db: Database): Partial> => ({ async searchActors(req) { throw new Error('unimplemented') }, async searchPosts(req) { throw new Error('unimplemented') }, -} +}) diff --git a/packages/bsky/src/data-plane/server/routes/suggestions.ts b/packages/bsky/src/data-plane/server/routes/suggestions.ts index 404032c950f..40ce8f13a5e 100644 --- a/packages/bsky/src/data-plane/server/routes/suggestions.ts +++ b/packages/bsky/src/data-plane/server/routes/suggestions.ts @@ -1,5 +1,60 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' + +export default (db: Database): Partial> => ({ async getSuggestions(req) { - throw new Error('unimplemented') + const alreadyIncluded = parseCursor(req.cursor) + const suggestions = await db.db + .selectFrom('suggested_follow') + .innerJoin('actor', 'actor.did', 'suggested_follow.did') + .if(alreadyIncluded.length > 0, (qb) => + qb.where('suggested_follow.order', 'not in', alreadyIncluded), + ) + .selectAll() + .orderBy('suggested_follow.order', 'asc') + .execute() + + // always include first two + const firstTwo = suggestions.filter( + (row) => row.order === 1 || row.order === 2, + ) + const rest = suggestions.filter((row) => row.order !== 1 && row.order !== 2) + const limited = firstTwo.concat(shuffle(rest)).slice(0, req.limit) + + // if the result set ends up getting larger, consider using a seed included in the cursor for for the randomized shuffle + const cursor = + limited.length > 0 + ? limited + .map((row) => row.order.toString()) + .concat(alreadyIncluded.map((id) => id.toString())) + .join(':') + : undefined + + return { + dids: suggestions.map((s) => s.did), + cursor, + } }, +}) + +const parseCursor = (cursor?: string): number[] => { + if (!cursor) { + return [] + } + try { + return cursor + .split(':') + .map((id) => parseInt(id, 10)) + .filter((id) => !isNaN(id)) + } catch { + return [] + } +} + +const shuffle = (arr: T[]): T[] => { + return arr + .map((value) => ({ value, sort: Math.random() })) + .sort((a, b) => a.sort - b.sort) + .map(({ value }) => value) } diff --git a/packages/bsky/src/data-plane/server/routes/sync.ts b/packages/bsky/src/data-plane/server/routes/sync.ts index 7d20f852f07..11d8e87b746 100644 --- a/packages/bsky/src/data-plane/server/routes/sync.ts +++ b/packages/bsky/src/data-plane/server/routes/sync.ts @@ -1,5 +1,16 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' + +export default (db: Database): Partial> => ({ async getLatestRev(req) { - throw new Error('unimplemented') + const res = await db.db + .selectFrom('actor_sync') + .where('did', '=', req.actorDid) + .select('repoRev') + .executeTakeFirst() + return { + rev: res?.repoRev ?? undefined, + } }, -} +}) From f142eb967e015d6947174a48b6d4118e0e4f54da Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 18:53:52 -0600 Subject: [PATCH 018/186] feed gen impl --- .../src/data-plane/server/routes/feed-gens.ts | 67 +++++++++++++++++-- 1 file changed, 60 insertions(+), 7 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/feed-gens.ts b/packages/bsky/src/data-plane/server/routes/feed-gens.ts index 9b92240b944..92df9a1a082 100644 --- a/packages/bsky/src/data-plane/server/routes/feed-gens.ts +++ b/packages/bsky/src/data-plane/server/routes/feed-gens.ts @@ -1,14 +1,67 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import * as ui8 from 'uint8arrays' +import { Database } from '../../../db' +import { keyBy } from '@atproto/common' +import { TimeCidKeyset, paginate } from '../../../db/pagination' + +export default (db: Database): Partial> => ({ async getFeedGenerators(req) { - throw new Error('unimplemented') + if (req.uris.length === 0) { + return { records: [] } + } + const res = await db.db + .selectFrom('record') + .selectAll() + .where('uri', 'in', req.uris) + .execute() + const byUri = keyBy(res, 'uri') + const records = req.uris.map((uri) => { + const row = byUri[uri] + const json = row ? row.json : JSON.stringify(null) + return ui8.fromString(json, 'utf8') + }) + return { records } }, + async getActorFeeds(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + + const { ref } = db.db.dynamic + let builder = db.db + .selectFrom('feed_generator') + .selectAll() + .where('feed_generator.creator', '=', actorDid) + + const keyset = new TimeCidKeyset( + ref('feed_generator.createdAt'), + ref('feed_generator.cid'), + ) + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + const feeds = await builder.execute() + + return { + uris: feeds.map((f) => f.uri), + cursor: keyset.packFromResult(feeds), + } }, - async getSuggestedFeeds(req) { - throw new Error('unimplemented') + + async getSuggestedFeeds() { + const feeds = await db.db + .selectFrom('suggested_feed') + .orderBy('suggested_feed.order', 'asc') + .selectAll() + .execute() + return { + uris: feeds.map((f) => f.uri), + } }, - async getFeedGeneratorStatus(req) { + + async getFeedGeneratorStatus() { throw new Error('unimplemented') }, -} +}) From b6bbee1acd9a83a38afcf8c21098fa9468d35478 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 18:58:07 -0600 Subject: [PATCH 019/186] label impl --- .../src/data-plane/server/routes/labels.ts | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/labels.ts b/packages/bsky/src/data-plane/server/routes/labels.ts index c3e9d0f0732..d7c94f74b0d 100644 --- a/packages/bsky/src/data-plane/server/routes/labels.ts +++ b/packages/bsky/src/data-plane/server/routes/labels.ts @@ -1,5 +1,28 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' +import * as ui8 from 'uint8arrays' + +export default (db: Database): Partial> => ({ async getLabels(req) { - throw new Error('unimplemented') + const { subjects, issuers } = req + if (subjects.length === 0 || issuers.length === 0) { + return { records: [] } + } + const labels = await db.db + .selectFrom('label') + .where('src', 'in', issuers) + .where('uri', 'in', subjects) + .selectAll() + .execute() + + const records = labels.map((l) => { + const formatted = { + ...l, + cid: l.cid === '' ? undefined : l.cid, + } + return ui8.fromString(JSON.stringify(formatted), 'utf8') + }) + return { records } }, -} +}) From c88674e08664cb3b9d302e4b3a373fa969432bb9 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 19:11:06 -0600 Subject: [PATCH 020/186] notifs impl --- .../src/data-plane/server/routes/notifs.ts | 115 +++++++++++++++++- 1 file changed, 109 insertions(+), 6 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/notifs.ts b/packages/bsky/src/data-plane/server/routes/notifs.ts index 471af139673..aa77357982f 100644 --- a/packages/bsky/src/data-plane/server/routes/notifs.ts +++ b/packages/bsky/src/data-plane/server/routes/notifs.ts @@ -1,14 +1,117 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' +import { countAll, excluded } from '../../../db/util' +import { sql } from 'kysely' +import { TimeCidKeyset, paginate } from '../../../db/pagination' + +export default (db: Database): Partial> => ({ async getNotifications(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + let builder = db.db + .selectFrom('notification as notif') + .where('notif.did', '=', actorDid) + .where((clause) => + clause + .where('reasonSubject', 'is', null) + .orWhereExists( + db.db + .selectFrom('record as subject') + .selectAll() + .whereRef('subject.uri', '=', ref('notif.reasonSubject')), + ), + ) + .select([ + 'notif.author as authorDid', + 'notif.recordUri as uri', + 'notif.recordCid as cid', + 'notif.reason as reason', + 'notif.reasonSubject as reasonSubject', + 'notif.sortAt as sortAt', + ]) + + const keyset = new TimeCidKeyset( + ref('notif.sortAt'), + ref('notif.recordCid'), + ) + builder = paginate(builder, { + cursor, + limit, + keyset, + tryIndex: true, + }) + + const notifsRes = await builder.execute() + const notifications = notifsRes.map((notif) => ({ + uri: notif.uri, + reason: notif.reason, + timestamp: { + nanos: new Date(notif.sortAt).getTime() * 1000, + }, + })) + return { + notifications, + cursor: keyset.packFromResult(notifsRes), + } }, + async getNotificationSeen(req) { - throw new Error('unimplemented') + const res = await db.db + .selectFrom('actor_state') + .where('did', '=', req.actorDid) + .selectAll() + .executeTakeFirst() + if (!res) { + return {} + } + const nanos = new Date(res.lastSeenNotifs).getTime() * 1000 + return { + timestamp: { + nanos, + }, + } }, + async getUnreadNotificationCount(req) { - throw new Error('unimplemented') + const { actorDid } = req + const { ref } = db.db.dynamic + const result = await db.db + .selectFrom('notification') + .select(countAll.as('count')) + .innerJoin('actor', 'actor.did', 'notification.did') + .leftJoin('actor_state', 'actor_state.did', 'actor.did') + .innerJoin('record', 'record.uri', 'notification.recordUri') + // Ensure to hit notification_did_sortat_idx, handling case where lastSeenNotifs is null. + .where('notification.did', '=', actorDid) + .where( + 'notification.sortAt', + '>', + sql`coalesce(${ref('actor_state.lastSeenNotifs')}, ${''})`, + ) + .executeTakeFirst() + + return { + count: result?.count, + } }, + async updateNotificationSeen(req) { - throw new Error('unimplemented') + const { actorDid, timestamp } = req + if (!timestamp) { + return + } + const lastSeenNotifs = new Date( + Math.floor(timestamp.nanos / 1000), + ).toISOString() + await db.db + .insertInto('actor_state') + .values({ did: actorDid, lastSeenNotifs }) + .onConflict((oc) => + oc.column('did').doUpdateSet({ + lastSeenNotifs: excluded(db.db, 'lastSeenNotifs'), + }), + ) + .executeTakeFirst() }, -} +}) From de217c8f51e971e030755a612b295227d9d0f16f Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 19:32:00 -0600 Subject: [PATCH 021/186] feeds impl --- .../src/data-plane/server/routes/feeds.ts | 127 +++++++++++++++++- .../data-plane/server/routes/moderation.ts | 23 +++- 2 files changed, 141 insertions(+), 9 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/feeds.ts b/packages/bsky/src/data-plane/server/routes/feeds.ts index 27f83646e9a..f0620b8d631 100644 --- a/packages/bsky/src/data-plane/server/routes/feeds.ts +++ b/packages/bsky/src/data-plane/server/routes/feeds.ts @@ -1,11 +1,128 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' +import { TimeCidKeyset, paginate } from '../../../db/pagination' + +export default (db: Database): Partial> => ({ async getAuthorFeed(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor, repliesOnly, mediaOnly } = req + const { ref } = db.db.dynamic + + // defaults to posts, reposts, and replies + let builder = db.db + .selectFrom('feed_item') + .selectAll('feed_item') + .where('originatorDid', '=', actorDid) + + if (mediaOnly) { + builder = builder + // only your own posts + .where('type', '=', 'post') + // only posts with media + .whereExists((qb) => + qb + .selectFrom('post_embed_image') + .select('post_embed_image.postUri') + .whereRef('post_embed_image.postUri', '=', 'feed_item.postUri'), + ) + } else if (repliesOnly) { + // @TODO + } + + const keyset = new TimeCidKeyset( + ref('feed_item.sortAt'), + ref('feed_item.cid'), + ) + + builder = paginate(builder, { + limit, + cursor, + keyset, + }) + + const feedItems = await builder.execute() + + return { + uris: feedItems.map((row) => row.uri), + cursor: keyset.packFromResult(feedItems), + } }, + async getTimeline(req) { - throw new Error('unimplemented') + const { actorDid, limit, cursor } = req + const { ref } = db.db.dynamic + + const keyset = new TimeCidKeyset( + ref('feed_item.sortAt'), + ref('feed_item.cid'), + ) + + let followQb = db.db + .selectFrom('feed_item') + .innerJoin('follow', 'follow.subjectDid', 'feed_item.originatorDid') + .where('follow.creator', '=', actorDid) + .selectAll('feed_item') + + followQb = paginate(followQb, { + limit, + cursor, + keyset, + tryIndex: true, + }) + + let selfQb = db.db + .selectFrom('feed_item') + .where('feed_item.originatorDid', '=', actorDid) + .selectAll('feed_item') + + selfQb = paginate(selfQb, { + limit: Math.min(limit, 10), + cursor, + keyset, + tryIndex: true, + }) + + const [followRes, selfRes] = await Promise.all([ + followQb.execute(), + selfQb.execute(), + ]) + + const feedItems = [...followRes, ...selfRes] + .sort((a, b) => { + if (a.sortAt > b.sortAt) return -1 + if (a.sortAt < b.sortAt) return 1 + return a.cid > b.cid ? -1 : 1 + }) + .slice(0, limit) + + return { + uris: feedItems.map((item) => item.uri), + cursor: keyset.packFromResult(feedItems), + } }, + async getListFeed(req) { - throw new Error('unimplemented') + const { listUri, cursor, limit } = req + const { ref } = db.db.dynamic + + let builder = db.db + .selectFrom('post') + .selectAll() + .innerJoin('list_item', 'list_item.subjectDid', 'post.creator') + .where('list_item.listUri', '=', listUri) + + const keyset = new TimeCidKeyset(ref('post.sortAt'), ref('post.cid')) + builder = paginate(builder, { + limit, + cursor, + keyset, + tryIndex: true, + }) + const feedItems = await builder.execute() + + return { + uris: feedItems.map((item) => item.uri), + cursor: keyset.packFromResult(feedItems), + } }, -} +}) diff --git a/packages/bsky/src/data-plane/server/routes/moderation.ts b/packages/bsky/src/data-plane/server/routes/moderation.ts index 19e3c675c70..2f86aa42462 100644 --- a/packages/bsky/src/data-plane/server/routes/moderation.ts +++ b/packages/bsky/src/data-plane/server/routes/moderation.ts @@ -1,8 +1,23 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import { Database } from '../../../db' +import { sql } from 'kysely' + +export default (db: Database): Partial> => ({ async getBlobTakedown(req) { - throw new Error('unimplemented') + const { cid } = req + const takedown = await db.db + .selectFrom('moderation_subject_status') + .select('id') + .where('blobCids', '@>', sql`CAST(${JSON.stringify([cid])} AS JSONB)`) + .where('takendown', 'is', true) + .executeTakeFirst() + return { + takenDown: !!takedown, + } }, - async updateTakedown(req) { + + async updateTakedown(_req) { throw new Error('unimplemented') }, -} +}) From d9ca2dba4bc6001533d95d3977a41fb9cf8b0b23 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 5 Dec 2023 19:40:09 -0600 Subject: [PATCH 022/186] threads impl --- .../src/data-plane/server/routes/threads.ts | 54 +++++++++++++++++-- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/packages/bsky/src/data-plane/server/routes/threads.ts b/packages/bsky/src/data-plane/server/routes/threads.ts index 556bea7a757..34c15b53fce 100644 --- a/packages/bsky/src/data-plane/server/routes/threads.ts +++ b/packages/bsky/src/data-plane/server/routes/threads.ts @@ -1,8 +1,54 @@ -export default { +import { ServiceImpl } from '@connectrpc/connect' +import { Service } from '../../gen/bsky_connect' +import * as ui8 from 'uint8arrays' +import { Database } from '../../../db' +import { keyBy } from '@atproto/common' +import { + getAncestorsAndSelfQb, + getDescendentsQb, +} from '../../../services/util/post' + +export default (db: Database): Partial> => ({ async getThread(req) { - throw new Error('unimplemented') + const { postUri, above, below } = req + const [ancestors, descendents] = await Promise.all([ + getAncestorsAndSelfQb(db.db, { + uri: postUri, + parentHeight: above, + }) + .selectFrom('ancestor') + .selectAll() + .execute(), + getDescendentsQb(db.db, { + uri: postUri, + depth: below, + }) + .selectFrom('descendent') + .selectAll() + .execute(), + ]) + const uris = [ + ...ancestors.map((p) => p.uri), + ...descendents.map((p) => p.uri), + ] + return { uris } }, + async getThreadgates(req) { - throw new Error('unimplemented') + if (req.uris.length === 0) { + return { records: [] } + } + const res = await db.db + .selectFrom('record') + .selectAll() + .where('uri', 'in', req.uris) + .execute() + const byUri = keyBy(res, 'uri') + const records = req.uris.map((uri) => { + const row = byUri[uri] + const json = row ? row.json : JSON.stringify(null) + return ui8.fromString(json, 'utf8') + }) + return { records } }, -} +}) From 29d2de762265f2cf63c044bd00838295bb37b40c Mon Sep 17 00:00:00 2001 From: dholms Date: Wed, 6 Dec 2023 15:26:39 -0600 Subject: [PATCH 023/186] early sketchwork --- packages/bsky/proto/bsky.proto | 12 +-- .../bsky/src/data-plane/gen/bsky_connect.ts | 12 +-- packages/bsky/src/data-plane/gen/bsky_pb.ts | 66 ++++++++-------- packages/bsky/src/hydration/actor.ts | 49 ++++++++++++ packages/bsky/src/hydration/graph.ts | 68 ++++++++++++++++ packages/bsky/src/hydration/hydrator.ts | 77 +++++++++++++++++++ packages/bsky/src/views/lists.ts | 44 +++++++++++ 7 files changed, 283 insertions(+), 45 deletions(-) create mode 100644 packages/bsky/src/hydration/actor.ts create mode 100644 packages/bsky/src/hydration/graph.ts create mode 100644 packages/bsky/src/hydration/hydrator.ts create mode 100644 packages/bsky/src/views/lists.ts diff --git a/packages/bsky/proto/bsky.proto b/packages/bsky/proto/bsky.proto index ad273562773..f4a0f2cbb1a 100644 --- a/packages/bsky/proto/bsky.proto +++ b/packages/bsky/proto/bsky.proto @@ -238,12 +238,12 @@ message GetListMembershipResponse { // - Return list record for list uri // - list view hydration -message GetListRequest { - string list_uri = 1; +message GetListsRequest { + repeated string uris = 1; } -message GetListResponse { - bytes record = 1; +message GetListsResponse { + repeated bytes records = 1; } // - Return number of items in list A @@ -377,7 +377,7 @@ message GetBlocklistSubscriptionRequest { } message GetBlocklistSubscriptionResponse { - bool subscribed = 1; + string listblock_uri = 1; } // - return list of list uris of Blockslists that A subscribes to @@ -724,7 +724,7 @@ service Service { // Lists rpc GetListMembers(GetListMembersRequest) returns (GetListMembersResponse); rpc GetListMembership(GetListMembershipRequest) returns (GetListMembershipResponse); - rpc GetList(GetListRequest) returns (GetListResponse); + rpc GetLists(GetListsRequest) returns (GetListsResponse); rpc GetListCount(GetListCountRequest) returns (GetListCountResponse); // Mutes diff --git a/packages/bsky/src/data-plane/gen/bsky_connect.ts b/packages/bsky/src/data-plane/gen/bsky_connect.ts index 482f0c061ac..c9e39b97edb 100644 --- a/packages/bsky/src/data-plane/gen/bsky_connect.ts +++ b/packages/bsky/src/data-plane/gen/bsky_connect.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlocksRequest, GetBlocksResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorsRequest, GetFeedGeneratorsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersCountRequest, GetFollowersCountResponse, GetFollowersRequest, GetFollowersResponse, GetFollowsCountRequest, GetFollowsCountResponse, GetFollowsRequest, GetFollowsResponse, GetHandlesRequest, GetHandlesResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeByActorAndSubjectRequest, GetLikeByActorAndSubjectResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetLikesCountRequest, GetLikesCountResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListRequest, GetListResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostReplyCountRequest, GetPostReplyCountResponse, GetPostsRequest, GetPostsResponse, GetProfilesRequest, GetProfilesResponse, GetRepostByActorAndSubjectRequest, GetRepostByActorAndSubjectResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetRepostsCountRequest, GetRepostsCountResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetSuggestionsRequest, GetSuggestionsResponse, GetThreadgatesRequest, GetThreadgatesResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchPostsRequest, SearchPostsResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse, UpdateTakedownRequest, UpdateTakedownResponse } from "./bsky_pb"; +import { GetActorFeedsRequest, GetActorFeedsResponse, GetActorFollowsActorsRequest, GetActorFollowsActorsResponse, GetActorLikesRequest, GetActorLikesResponse, GetActorMutesActorRequest, GetActorMutesActorResponse, GetActorMutesActorViaListRequest, GetActorMutesActorViaListResponse, GetActorRepostsRequest, GetActorRepostsResponse, GetAuthorFeedRequest, GetAuthorFeedResponse, GetBidirectionalBlockRequest, GetBidirectionalBlockResponse, GetBidirectionalBlockViaListRequest, GetBidirectionalBlockViaListResponse, GetBlobTakedownRequest, GetBlobTakedownResponse, GetBlocklistSubscriptionRequest, GetBlocklistSubscriptionResponse, GetBlocklistSubscriptionsRequest, GetBlocklistSubscriptionsResponse, GetBlocksRequest, GetBlocksResponse, GetDidsByHandlesRequest, GetDidsByHandlesResponse, GetFeedGeneratorsRequest, GetFeedGeneratorsResponse, GetFeedGeneratorStatusRequest, GetFeedGeneratorStatusResponse, GetFollowersCountRequest, GetFollowersCountResponse, GetFollowersRequest, GetFollowersResponse, GetFollowsCountRequest, GetFollowsCountResponse, GetFollowsRequest, GetFollowsResponse, GetHandlesRequest, GetHandlesResponse, GetLabelsRequest, GetLabelsResponse, GetLatestRevRequest, GetLatestRevResponse, GetLikeByActorAndSubjectRequest, GetLikeByActorAndSubjectResponse, GetLikesBySubjectRequest, GetLikesBySubjectResponse, GetLikesCountRequest, GetLikesCountResponse, GetListCountRequest, GetListCountResponse, GetListFeedRequest, GetListFeedResponse, GetListMembershipRequest, GetListMembershipResponse, GetListMembersRequest, GetListMembersResponse, GetListsRequest, GetListsResponse, GetMutelistSubscriptionRequest, GetMutelistSubscriptionResponse, GetMutelistSubscriptionsRequest, GetMutelistSubscriptionsResponse, GetMutesRequest, GetMutesResponse, GetNotificationSeenRequest, GetNotificationSeenResponse, GetNotificationsRequest, GetNotificationsResponse, GetPostReplyCountRequest, GetPostReplyCountResponse, GetPostsRequest, GetPostsResponse, GetProfilesRequest, GetProfilesResponse, GetRepostByActorAndSubjectRequest, GetRepostByActorAndSubjectResponse, GetRepostsBySubjectRequest, GetRepostsBySubjectResponse, GetRepostsCountRequest, GetRepostsCountResponse, GetSuggestedFeedsRequest, GetSuggestedFeedsResponse, GetSuggestionsRequest, GetSuggestionsResponse, GetThreadgatesRequest, GetThreadgatesResponse, GetThreadRequest, GetThreadResponse, GetTimelineRequest, GetTimelineResponse, GetUnreadNotificationCountRequest, GetUnreadNotificationCountResponse, PingRequest, PingResponse, SearchActorsRequest, SearchActorsResponse, SearchPostsRequest, SearchPostsResponse, UpdateNotificationSeenRequest, UpdateNotificationSeenResponse, UpdateTakedownRequest, UpdateTakedownResponse } from "./bsky_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -185,12 +185,12 @@ export const Service = { kind: MethodKind.Unary, }, /** - * @generated from rpc bsky.Service.GetList + * @generated from rpc bsky.Service.GetLists */ - getList: { - name: "GetList", - I: GetListRequest, - O: GetListResponse, + getLists: { + name: "GetLists", + I: GetListsRequest, + O: GetListsResponse, kind: MethodKind.Unary, }, /** diff --git a/packages/bsky/src/data-plane/gen/bsky_pb.ts b/packages/bsky/src/data-plane/gen/bsky_pb.ts index 600086aa596..81ae3b65243 100644 --- a/packages/bsky/src/data-plane/gen/bsky_pb.ts +++ b/packages/bsky/src/data-plane/gen/bsky_pb.ts @@ -1548,76 +1548,76 @@ export class GetListMembershipResponse extends Message { +export class GetListsRequest extends Message { /** - * @generated from field: string list_uri = 1; + * @generated from field: repeated string uris = 1; */ - listUri = ""; + uris: string[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListRequest"; + static readonly typeName = "bsky.GetListsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "list_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): GetListRequest { - return new GetListRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): GetListsRequest { + return new GetListsRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): GetListRequest { - return new GetListRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): GetListsRequest { + return new GetListsRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): GetListRequest { - return new GetListRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): GetListsRequest { + return new GetListsRequest().fromJsonString(jsonString, options); } - static equals(a: GetListRequest | PlainMessage | undefined, b: GetListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListRequest, a, b); + static equals(a: GetListsRequest | PlainMessage | undefined, b: GetListsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListsRequest, a, b); } } /** - * @generated from message bsky.GetListResponse + * @generated from message bsky.GetListsResponse */ -export class GetListResponse extends Message { +export class GetListsResponse extends Message { /** - * @generated from field: bytes record = 1; + * @generated from field: repeated bytes records = 1; */ - record = new Uint8Array(0); + records: Uint8Array[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "bsky.GetListResponse"; + static readonly typeName = "bsky.GetListsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "record", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 1, name: "records", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): GetListResponse { - return new GetListResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): GetListsResponse { + return new GetListsResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): GetListResponse { - return new GetListResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): GetListsResponse { + return new GetListsResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): GetListResponse { - return new GetListResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): GetListsResponse { + return new GetListsResponse().fromJsonString(jsonString, options); } - static equals(a: GetListResponse | PlainMessage | undefined, b: GetListResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetListResponse, a, b); + static equals(a: GetListsResponse | PlainMessage | undefined, b: GetListsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetListsResponse, a, b); } } @@ -2452,9 +2452,9 @@ export class GetBlocklistSubscriptionRequest extends Message { /** - * @generated from field: bool subscribed = 1; + * @generated from field: string listblock_uri = 1; */ - subscribed = false; + listblockUri = ""; constructor(data?: PartialMessage) { super(); @@ -2464,7 +2464,7 @@ export class GetBlocklistSubscriptionResponse extends Message [ - { no: 1, name: "subscribed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 1, name: "listblock_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetBlocklistSubscriptionResponse { diff --git a/packages/bsky/src/hydration/actor.ts b/packages/bsky/src/hydration/actor.ts new file mode 100644 index 00000000000..4b7acd16edb --- /dev/null +++ b/packages/bsky/src/hydration/actor.ts @@ -0,0 +1,49 @@ +import { DataPlaneClient } from '../data-plane/client' +import { Record as ProfileRecord } from '../lexicon/types/app/bsky/actor/profile' + +export type ProfileInfo = { + did: string + handle: string | null + record: ProfileRecord | null +} + +export type ProfileInfos = Record + +export type ProfileViewerState = { + muted?: boolean + mutedByList?: string + blockedBy?: boolean + blocking?: string + blockingByList?: string + following?: string + followedBy?: string +} + +export type ProfileViewerStates = Record + +export type ProfileAgg = { + followers: number + follows: number + posts: number +} + +export type ProfileAggs = Record + +export class ActorHydrator { + constructor(public dataplane: DataPlaneClient) {} + + async getProfiles(dids: string[]): Promise { + throw new Error('unimplemented') + } + + async getProfileViewerStates( + dids: string[], + viewer: string, + ): Promise { + throw new Error('unimplemented') + } + + async getProfileAggregates(dids: string[]): Promise { + throw new Error('unimplemented') + } +} diff --git a/packages/bsky/src/hydration/graph.ts b/packages/bsky/src/hydration/graph.ts new file mode 100644 index 00000000000..291db5e84b6 --- /dev/null +++ b/packages/bsky/src/hydration/graph.ts @@ -0,0 +1,68 @@ +import * as ui8 from 'uint8arrays' +import { Record as ListRecord } from '../lexicon/types/app/bsky/graph/list' +import { DataPlaneClient } from '../data-plane/client' +import { jsonToLex } from '@atproto/lexicon' + +export type ListInfo = ListRecord + +export type ListInfos = Record + +export type ListViewerState = { + viewerMuted?: string + viewerListBlockUri?: string + viewerInList?: string +} + +export type ListViewerStates = Record + +export class GraphHydrator { + constructor(public dataplane: DataPlaneClient) {} + + async getListRecords(uris: string[]): Promise { + const res = await this.dataplane.getLists({ uris }) + return uris.reduce((acc, uri, i) => { + const list = res.records[i] + const parsed = JSON.parse(ui8.toString(list, 'utf8')) + acc[uri] = parsed ? (jsonToLex(parsed) as ListRecord) : null + return acc + }, {} as ListInfos) + } + + async getListsViewerState( + uris: string[], + viewer: string, + ): Promise { + const mutesAndBlocks = await Promise.all( + uris.map((uri) => this.getMutesAndBlocks(uri, viewer)), + ) + const listMemberships = await this.dataplane.getListMembership({ + actorDid: viewer, + listUris: uris, + }) + return uris.reduce((acc, uri, i) => { + acc[uri] = { + viewerMuted: mutesAndBlocks[i].muted ? uri : undefined, + viewerListBlockUri: mutesAndBlocks[i].listBlockUri, + viewerInList: listMemberships.listitemUris[i], + } + return acc + }, {} as ListViewerStates) + } + + private async getMutesAndBlocks(uri: string, viewer: string) { + const [muted, listBlockUri] = await Promise.all([ + this.dataplane.getMutelistSubscription({ + actorDid: viewer, + listUri: uri, + }), + this.dataplane.getBlocklistSubscription({ + actorDid: viewer, + listUri: uri, + }), + ]) + return { + muted: muted.subscribed, + listBlockUri: listBlockUri.listblockUri, + } + } +} diff --git a/packages/bsky/src/hydration/hydrator.ts b/packages/bsky/src/hydration/hydrator.ts new file mode 100644 index 00000000000..45de099b271 --- /dev/null +++ b/packages/bsky/src/hydration/hydrator.ts @@ -0,0 +1,77 @@ +import { DataPlaneClient } from '../data-plane/client' +import { + ActorHydrator, + ProfileAggs, + ProfileInfos, + ProfileViewerStates, +} from './actor' +import { GraphHydrator, ListInfos, ListViewerStates } from './graph' + +export type HydrationState = { + profiles?: ProfileInfos + profileViewers?: ProfileViewerStates + profileAggs?: ProfileAggs + lists?: ListInfos + listViewers?: ListViewerStates +} + +export class Hydrator { + actor: ActorHydrator + graph: GraphHydrator + + constructor(public dataplane: DataPlaneClient) { + this.actor = new ActorHydrator(dataplane) + this.graph = new GraphHydrator(dataplane) + } + + // - profile + // - list + async hydrateProfiles( + dids: string[], + viewer: string | null, + ): Promise { + const state: HydrationState = {} + const [profiles, profileViewers] = await Promise.all([ + this.actor.getProfiles(dids), + viewer ? this.actor.getProfileViewerStates(dids, viewer) : null, + ]) + state.profiles = profiles + if (profileViewers) { + state.profileViewers = profileViewers + const listUris = Object.values(profileViewers).reduce((acc, cur) => { + if (cur?.mutedByList) { + acc.push(cur.mutedByList) + } + if (cur?.blockingByList) { + acc.push(cur.blockingByList) + } + return acc + }, [] as string[]) + const [lists, listViewers] = await Promise.all([ + this.graph.getListRecords(listUris), + viewer ? this.graph.getListsViewerState(listUris, viewer) : null, + ]) + state.lists = lists + if (listViewers) { + state.listViewers = listViewers + } + } + return state + } + + // - profile + // - list + async hydrateProfilesDetailed( + dids: string[], + viewer: string | null, + ): Promise { + const [state, profileAggs] = await Promise.all([ + this.hydrateProfiles(dids, viewer), + this.actor.getProfileAggregates(dids), + ]) + return { + ...state, + profileAggs, + } + } +} diff --git a/packages/bsky/src/views/lists.ts b/packages/bsky/src/views/lists.ts new file mode 100644 index 00000000000..45f2914dc09 --- /dev/null +++ b/packages/bsky/src/views/lists.ts @@ -0,0 +1,44 @@ +import { ImageUriBuilder } from '../image/uri' +import { ListInfo } from '../services/graph/types' +import { ActorInfoMap } from '../services/actor' +import { ListView, ListViewBasic } from '../lexicon/types/app/bsky/graph/defs' + +export class GraphService { + constructor(public imgUriBuilder: ImageUriBuilder) {} + + formatListView(list: ListInfo, profiles: ActorInfoMap): ListView | undefined { + if (!profiles[list.creator]) { + return undefined + } + return { + ...this.formatListViewBasic(list), + creator: profiles[list.creator], + description: list.description ?? undefined, + descriptionFacets: list.descriptionFacets + ? JSON.parse(list.descriptionFacets) + : undefined, + indexedAt: list.sortAt, + } + } + + formatListViewBasic(list: ListInfo): ListViewBasic { + return { + uri: list.uri, + cid: list.cid, + name: list.name, + purpose: list.purpose, + avatar: list.avatarCid + ? this.imgUriBuilder.getPresetUri( + 'avatar', + list.creator, + list.avatarCid, + ) + : undefined, + indexedAt: list.sortAt, + viewer: { + muted: !!list.viewerMuted, + blocked: list.viewerListBlockUri ?? undefined, + }, + } + } +} From 9fcfdc0a67175975ca05d56110631eb946bc50a9 Mon Sep 17 00:00:00 2001 From: dholms Date: Wed, 6 Dec 2023 16:18:36 -0600 Subject: [PATCH 024/186] wip --- packages/bsky/src/hydration/actor.ts | 6 +++--- packages/bsky/src/hydration/graph.ts | 17 ++++++++--------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/bsky/src/hydration/actor.ts b/packages/bsky/src/hydration/actor.ts index 4b7acd16edb..3608b96bdee 100644 --- a/packages/bsky/src/hydration/actor.ts +++ b/packages/bsky/src/hydration/actor.ts @@ -7,7 +7,7 @@ export type ProfileInfo = { record: ProfileRecord | null } -export type ProfileInfos = Record +export type ProfileInfos = Map export type ProfileViewerState = { muted?: boolean @@ -19,7 +19,7 @@ export type ProfileViewerState = { followedBy?: string } -export type ProfileViewerStates = Record +export type ProfileViewerStates = Map export type ProfileAgg = { followers: number @@ -27,7 +27,7 @@ export type ProfileAgg = { posts: number } -export type ProfileAggs = Record +export type ProfileAggs = Map export class ActorHydrator { constructor(public dataplane: DataPlaneClient) {} diff --git a/packages/bsky/src/hydration/graph.ts b/packages/bsky/src/hydration/graph.ts index 291db5e84b6..2c61156a480 100644 --- a/packages/bsky/src/hydration/graph.ts +++ b/packages/bsky/src/hydration/graph.ts @@ -5,7 +5,7 @@ import { jsonToLex } from '@atproto/lexicon' export type ListInfo = ListRecord -export type ListInfos = Record +export type ListInfos = Map export type ListViewerState = { viewerMuted?: string @@ -13,7 +13,7 @@ export type ListViewerState = { viewerInList?: string } -export type ListViewerStates = Record +export type ListViewerStates = Map export class GraphHydrator { constructor(public dataplane: DataPlaneClient) {} @@ -23,9 +23,9 @@ export class GraphHydrator { return uris.reduce((acc, uri, i) => { const list = res.records[i] const parsed = JSON.parse(ui8.toString(list, 'utf8')) - acc[uri] = parsed ? (jsonToLex(parsed) as ListRecord) : null - return acc - }, {} as ListInfos) + const record = parsed ? (jsonToLex(parsed) as ListRecord) : null + return acc.set(uri, record) + }, new Map() as ListInfos) } async getListsViewerState( @@ -40,13 +40,12 @@ export class GraphHydrator { listUris: uris, }) return uris.reduce((acc, uri, i) => { - acc[uri] = { + return acc.set(uri, { viewerMuted: mutesAndBlocks[i].muted ? uri : undefined, viewerListBlockUri: mutesAndBlocks[i].listBlockUri, viewerInList: listMemberships.listitemUris[i], - } - return acc - }, {} as ListViewerStates) + }) + }, new Map() as ListViewerStates) } private async getMutesAndBlocks(uri: string, viewer: string) { From 1d61b4bee78004cff01a77b5df1703e66e4b13da Mon Sep 17 00:00:00 2001 From: dholms Date: Wed, 6 Dec 2023 16:47:07 -0600 Subject: [PATCH 025/186] stub out thick client --- packages/bsky/src/hydration/actor.ts | 11 ++--- packages/bsky/src/hydration/feed.ts | 61 ++++++++++++++++++++++++++++ packages/bsky/src/hydration/graph.ts | 31 +++++++++++--- packages/bsky/src/hydration/label.ts | 15 +++++++ packages/bsky/src/hydration/util.ts | 5 +++ 5 files changed, 112 insertions(+), 11 deletions(-) create mode 100644 packages/bsky/src/hydration/feed.ts create mode 100644 packages/bsky/src/hydration/label.ts create mode 100644 packages/bsky/src/hydration/util.ts diff --git a/packages/bsky/src/hydration/actor.ts b/packages/bsky/src/hydration/actor.ts index 3608b96bdee..0c501f87f66 100644 --- a/packages/bsky/src/hydration/actor.ts +++ b/packages/bsky/src/hydration/actor.ts @@ -1,13 +1,14 @@ import { DataPlaneClient } from '../data-plane/client' import { Record as ProfileRecord } from '../lexicon/types/app/bsky/actor/profile' +import { HydrationMap } from './util' -export type ProfileInfo = { +export type Profile = { did: string handle: string | null record: ProfileRecord | null } -export type ProfileInfos = Map +export type Profiles = HydrationMap export type ProfileViewerState = { muted?: boolean @@ -19,7 +20,7 @@ export type ProfileViewerState = { followedBy?: string } -export type ProfileViewerStates = Map +export type ProfileViewerStates = HydrationMap export type ProfileAgg = { followers: number @@ -27,12 +28,12 @@ export type ProfileAgg = { posts: number } -export type ProfileAggs = Map +export type ProfileAggs = HydrationMap export class ActorHydrator { constructor(public dataplane: DataPlaneClient) {} - async getProfiles(dids: string[]): Promise { + async getProfiles(dids: string[]): Promise { throw new Error('unimplemented') } diff --git a/packages/bsky/src/hydration/feed.ts b/packages/bsky/src/hydration/feed.ts new file mode 100644 index 00000000000..9675f02548f --- /dev/null +++ b/packages/bsky/src/hydration/feed.ts @@ -0,0 +1,61 @@ +import { DataPlaneClient } from '../data-plane/client' +import { Record as PostRecord } from '../lexicon/types/app/bsky/feed/post' +import { Record as FeedGenRecord } from '../lexicon/types/app/bsky/feed/generator' +import { Record as ThreadgateRecord } from '../lexicon/types/app/bsky/feed/threadgate' +import { HydrationMap } from './util' + +export type Post = PostRecord +export type Posts = HydrationMap + +export type PostViewerState = { + muted?: boolean + mutedByList?: string + blockedBy?: boolean + blocking?: string + blockingByList?: string + following?: string + followedBy?: string +} + +export type PostViewerStates = Map + +export type PostAgg = { + followers: number + follows: number + posts: number +} + +export type PostAggs = Map + +export type FeedGen = FeedGenRecord +export type FeedGens = HydrationMap + +export type Threadgate = ThreadgateRecord +export type Threadgates = HydrationMap + +export class FeedHydrator { + constructor(public dataplane: DataPlaneClient) {} + + async getPosts(uris: string[]): Promise { + throw new Error('unimplemented') + } + + async getPostViewerStates( + uris: string[], + viewer: string, + ): Promise { + throw new Error('unimplemented') + } + + async getPostAggregates(uris: string[]): Promise { + throw new Error('unimplemented') + } + + async getFeedGens(uris: string[]): Promise { + throw new Error('unimplemented') + } + + async getThreadgatesForPosts(postUris: string[]): Promise { + throw new Error('unimplemented') + } +} diff --git a/packages/bsky/src/hydration/graph.ts b/packages/bsky/src/hydration/graph.ts index 2c61156a480..40eb4b1cd1d 100644 --- a/packages/bsky/src/hydration/graph.ts +++ b/packages/bsky/src/hydration/graph.ts @@ -2,10 +2,10 @@ import * as ui8 from 'uint8arrays' import { Record as ListRecord } from '../lexicon/types/app/bsky/graph/list' import { DataPlaneClient } from '../data-plane/client' import { jsonToLex } from '@atproto/lexicon' +import { HydrationMap } from './util' -export type ListInfo = ListRecord - -export type ListInfos = Map +export type List = ListRecord +export type Lists = HydrationMap export type ListViewerState = { viewerMuted?: string @@ -13,19 +13,34 @@ export type ListViewerState = { viewerInList?: string } -export type ListViewerStates = Map +export type ListViewerStates = HydrationMap + +export type RelationshipPair = [didA: string, didB: string] +export class Blocks { + has(didA: string, didB: string): boolean { + throw new Error('unimplemented') + } + + isBlocked(didA: string, didB: string): boolean { + throw new Error('unimplemented') + } + + merge(blocks: Blocks): Blocks { + throw new Error('unimplemented') + } +} export class GraphHydrator { constructor(public dataplane: DataPlaneClient) {} - async getListRecords(uris: string[]): Promise { + async getListRecords(uris: string[]): Promise { const res = await this.dataplane.getLists({ uris }) return uris.reduce((acc, uri, i) => { const list = res.records[i] const parsed = JSON.parse(ui8.toString(list, 'utf8')) const record = parsed ? (jsonToLex(parsed) as ListRecord) : null return acc.set(uri, record) - }, new Map() as ListInfos) + }, new Map() as Lists) } async getListsViewerState( @@ -48,6 +63,10 @@ export class GraphHydrator { }, new Map() as ListViewerStates) } + async getBidirectionalBlocks(pairs: RelationshipPair[]): Promise { + throw new Error('unimplemented') + } + private async getMutesAndBlocks(uri: string, viewer: string) { const [muted, listBlockUri] = await Promise.all([ this.dataplane.getMutelistSubscription({ diff --git a/packages/bsky/src/hydration/label.ts b/packages/bsky/src/hydration/label.ts new file mode 100644 index 00000000000..84337bcf54e --- /dev/null +++ b/packages/bsky/src/hydration/label.ts @@ -0,0 +1,15 @@ +import { DataPlaneClient } from '../data-plane/client' +import { Label } from '../lexicon/types/com/atproto/label/defs' +import { HydrationMap } from './util' + +export type { Label } from '../lexicon/types/com/atproto/label/defs' + +export type Labels = HydrationMap