diff --git a/packages/api/src/client/index.ts b/packages/api/src/client/index.ts index c2dc0ca2e8a..f9cd36fafae 100644 --- a/packages/api/src/client/index.ts +++ b/packages/api/src/client/index.ts @@ -106,21 +106,21 @@ import * as AppBskyFeedGenerator from './types/app/bsky/feed/generator' import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds' import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes' import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed' +import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator' import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators' -import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton' import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes' import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed' -import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread' +import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes' import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy' import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds' import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline' import * as AppBskyFeedLike from './types/app/bsky/feed/like' -import * as AppBskyFeedPostgate from './types/app/bsky/feed/postgate' import * as AppBskyFeedPost from './types/app/bsky/feed/post' +import * as AppBskyFeedPostgate from './types/app/bsky/feed/postgate' import * as AppBskyFeedRepost from './types/app/bsky/feed/repost' import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts' import * as AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteractions' @@ -133,8 +133,8 @@ import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks' import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers' import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows' import * as AppBskyGraphGetKnownFollowers from './types/app/bsky/graph/getKnownFollowers' -import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetList from './types/app/bsky/graph/getList' +import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes' import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists' import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' @@ -142,9 +142,9 @@ import * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelatio import * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack' import * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks' import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor' +import * as AppBskyGraphList from './types/app/bsky/graph/list' import * as AppBskyGraphListblock from './types/app/bsky/graph/listblock' import * as AppBskyGraphListitem from './types/app/bsky/graph/listitem' -import * as AppBskyGraphList from './types/app/bsky/graph/list' import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor' import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList' import * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread' @@ -181,15 +181,15 @@ import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccou import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData' import * as ChatBskyConvoDefs from './types/chat/bsky/convo/defs' import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf' -import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo' +import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog' import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages' import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo' import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos' import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo' -import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage' +import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo' import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead' import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata' @@ -217,11 +217,11 @@ import * as ToolsOzoneSetDeleteSet from './types/tools/ozone/set/deleteSet' import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues' import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues' import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets' +import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet' import * as ToolsOzoneSettingDefs from './types/tools/ozone/setting/defs' import * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions' import * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions' import * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption' -import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet' import * as ToolsOzoneSignatureDefs from './types/tools/ozone/signature/defs' import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation' import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts' @@ -334,21 +334,21 @@ export * as AppBskyFeedGenerator from './types/app/bsky/feed/generator' export * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds' export * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes' export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed' +export * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' export * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator' export * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators' -export * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' export * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton' export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes' export * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed' -export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread' +export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' export * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes' export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy' export * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds' export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline' export * as AppBskyFeedLike from './types/app/bsky/feed/like' -export * as AppBskyFeedPostgate from './types/app/bsky/feed/postgate' export * as AppBskyFeedPost from './types/app/bsky/feed/post' +export * as AppBskyFeedPostgate from './types/app/bsky/feed/postgate' export * as AppBskyFeedRepost from './types/app/bsky/feed/repost' export * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts' export * as AppBskyFeedSendInteractions from './types/app/bsky/feed/sendInteractions' @@ -361,8 +361,8 @@ export * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks' export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers' export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows' export * as AppBskyGraphGetKnownFollowers from './types/app/bsky/graph/getKnownFollowers' -export * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' export * as AppBskyGraphGetList from './types/app/bsky/graph/getList' +export * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' export * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes' export * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists' export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' @@ -370,9 +370,9 @@ export * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelatio export * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack' export * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks' export * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor' +export * as AppBskyGraphList from './types/app/bsky/graph/list' export * as AppBskyGraphListblock from './types/app/bsky/graph/listblock' export * as AppBskyGraphListitem from './types/app/bsky/graph/listitem' -export * as AppBskyGraphList from './types/app/bsky/graph/list' export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor' export * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList' export * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread' @@ -409,15 +409,15 @@ export * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccou export * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData' export * as ChatBskyConvoDefs from './types/chat/bsky/convo/defs' export * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf' -export * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' export * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo' +export * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' export * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog' export * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages' export * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo' export * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos' export * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo' -export * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' export * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage' +export * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' export * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo' export * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead' export * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata' @@ -445,11 +445,11 @@ export * as ToolsOzoneSetDeleteSet from './types/tools/ozone/set/deleteSet' export * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues' export * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues' export * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets' +export * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet' export * as ToolsOzoneSettingDefs from './types/tools/ozone/setting/defs' export * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions' export * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions' export * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption' -export * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet' export * as ToolsOzoneSignatureDefs from './types/tools/ozone/signature/defs' export * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation' export * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts' @@ -1673,8 +1673,8 @@ export class AppBskyFeedNS { _client: XrpcClient generator: GeneratorRecord like: LikeRecord - postgate: PostgateRecord post: PostRecord + postgate: PostgateRecord repost: RepostRecord threadgate: ThreadgateRecord @@ -1682,8 +1682,8 @@ export class AppBskyFeedNS { this._client = client this.generator = new GeneratorRecord(client) this.like = new LikeRecord(client) - this.postgate = new PostgateRecord(client) this.post = new PostRecord(client) + this.postgate = new PostgateRecord(client) this.repost = new RepostRecord(client) this.threadgate = new ThreadgateRecord(client) } @@ -1734,6 +1734,17 @@ export class AppBskyFeedNS { }) } + getFeed( + params?: AppBskyFeedGetFeed.QueryParams, + opts?: AppBskyFeedGetFeed.CallOptions, + ): Promise { + return this._client + .call('app.bsky.feed.getFeed', params, undefined, opts) + .catch((e) => { + throw AppBskyFeedGetFeed.toKnownErr(e) + }) + } + getFeedGenerator( params?: AppBskyFeedGetFeedGenerator.QueryParams, opts?: AppBskyFeedGetFeedGenerator.CallOptions, @@ -1758,17 +1769,6 @@ export class AppBskyFeedNS { ) } - getFeed( - params?: AppBskyFeedGetFeed.QueryParams, - opts?: AppBskyFeedGetFeed.CallOptions, - ): Promise { - return this._client - .call('app.bsky.feed.getFeed', params, undefined, opts) - .catch((e) => { - throw AppBskyFeedGetFeed.toKnownErr(e) - }) - } - getFeedSkeleton( params?: AppBskyFeedGetFeedSkeleton.QueryParams, opts?: AppBskyFeedGetFeedSkeleton.CallOptions, @@ -1798,13 +1798,6 @@ export class AppBskyFeedNS { }) } - getPosts( - params?: AppBskyFeedGetPosts.QueryParams, - opts?: AppBskyFeedGetPosts.CallOptions, - ): Promise { - return this._client.call('app.bsky.feed.getPosts', params, undefined, opts) - } - getPostThread( params?: AppBskyFeedGetPostThread.QueryParams, opts?: AppBskyFeedGetPostThread.CallOptions, @@ -1816,6 +1809,13 @@ export class AppBskyFeedNS { }) } + getPosts( + params?: AppBskyFeedGetPosts.QueryParams, + opts?: AppBskyFeedGetPosts.CallOptions, + ): Promise { + return this._client.call('app.bsky.feed.getPosts', params, undefined, opts) + } + getQuotes( params?: AppBskyFeedGetQuotes.QueryParams, opts?: AppBskyFeedGetQuotes.CallOptions, @@ -2005,7 +2005,7 @@ export class LikeRecord { } } -export class PostgateRecord { +export class PostRecord { _client: XrpcClient constructor(client: XrpcClient) { @@ -2016,10 +2016,10 @@ export class PostgateRecord { params: Omit, ): Promise<{ cursor?: string - records: { uri: string; value: AppBskyFeedPostgate.Record }[] + records: { uri: string; value: AppBskyFeedPost.Record }[] }> { const res = await this._client.call('com.atproto.repo.listRecords', { - collection: 'app.bsky.feed.postgate', + collection: 'app.bsky.feed.post', ...params, }) return res.data @@ -2027,9 +2027,9 @@ export class PostgateRecord { async get( params: Omit, - ): Promise<{ uri: string; cid: string; value: AppBskyFeedPostgate.Record }> { + ): Promise<{ uri: string; cid: string; value: AppBskyFeedPost.Record }> { const res = await this._client.call('com.atproto.repo.getRecord', { - collection: 'app.bsky.feed.postgate', + collection: 'app.bsky.feed.post', ...params, }) return res.data @@ -2040,14 +2040,14 @@ export class PostgateRecord { ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, - record: AppBskyFeedPostgate.Record, + record: AppBskyFeedPost.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { - record.$type = 'app.bsky.feed.postgate' + record.$type = 'app.bsky.feed.post' const res = await this._client.call( 'com.atproto.repo.createRecord', undefined, - { collection: 'app.bsky.feed.postgate', ...params, record }, + { collection: 'app.bsky.feed.post', ...params, record }, { encoding: 'application/json', headers }, ) return res.data @@ -2060,13 +2060,13 @@ export class PostgateRecord { await this._client.call( 'com.atproto.repo.deleteRecord', undefined, - { collection: 'app.bsky.feed.postgate', ...params }, + { collection: 'app.bsky.feed.post', ...params }, { headers }, ) } } -export class PostRecord { +export class PostgateRecord { _client: XrpcClient constructor(client: XrpcClient) { @@ -2077,10 +2077,10 @@ export class PostRecord { params: Omit, ): Promise<{ cursor?: string - records: { uri: string; value: AppBskyFeedPost.Record }[] + records: { uri: string; value: AppBskyFeedPostgate.Record }[] }> { const res = await this._client.call('com.atproto.repo.listRecords', { - collection: 'app.bsky.feed.post', + collection: 'app.bsky.feed.postgate', ...params, }) return res.data @@ -2088,9 +2088,9 @@ export class PostRecord { async get( params: Omit, - ): Promise<{ uri: string; cid: string; value: AppBskyFeedPost.Record }> { + ): Promise<{ uri: string; cid: string; value: AppBskyFeedPostgate.Record }> { const res = await this._client.call('com.atproto.repo.getRecord', { - collection: 'app.bsky.feed.post', + collection: 'app.bsky.feed.postgate', ...params, }) return res.data @@ -2101,14 +2101,14 @@ export class PostRecord { ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, - record: AppBskyFeedPost.Record, + record: AppBskyFeedPostgate.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { - record.$type = 'app.bsky.feed.post' + record.$type = 'app.bsky.feed.postgate' const res = await this._client.call( 'com.atproto.repo.createRecord', undefined, - { collection: 'app.bsky.feed.post', ...params, record }, + { collection: 'app.bsky.feed.postgate', ...params, record }, { encoding: 'application/json', headers }, ) return res.data @@ -2121,7 +2121,7 @@ export class PostRecord { await this._client.call( 'com.atproto.repo.deleteRecord', undefined, - { collection: 'app.bsky.feed.post', ...params }, + { collection: 'app.bsky.feed.postgate', ...params }, { headers }, ) } @@ -2257,18 +2257,18 @@ export class AppBskyGraphNS { _client: XrpcClient block: BlockRecord follow: FollowRecord + list: ListRecord listblock: ListblockRecord listitem: ListitemRecord - list: ListRecord starterpack: StarterpackRecord constructor(client: XrpcClient) { this._client = client this.block = new BlockRecord(client) this.follow = new FollowRecord(client) + this.list = new ListRecord(client) this.listblock = new ListblockRecord(client) this.listitem = new ListitemRecord(client) - this.list = new ListRecord(client) this.starterpack = new StarterpackRecord(client) } @@ -2332,6 +2332,13 @@ export class AppBskyGraphNS { ) } + getList( + params?: AppBskyGraphGetList.QueryParams, + opts?: AppBskyGraphGetList.CallOptions, + ): Promise { + return this._client.call('app.bsky.graph.getList', params, undefined, opts) + } + getListBlocks( params?: AppBskyGraphGetListBlocks.QueryParams, opts?: AppBskyGraphGetListBlocks.CallOptions, @@ -2344,13 +2351,6 @@ export class AppBskyGraphNS { ) } - getList( - params?: AppBskyGraphGetList.QueryParams, - opts?: AppBskyGraphGetList.CallOptions, - ): Promise { - return this._client.call('app.bsky.graph.getList', params, undefined, opts) - } - getListMutes( params?: AppBskyGraphGetListMutes.QueryParams, opts?: AppBskyGraphGetListMutes.CallOptions, @@ -2616,7 +2616,7 @@ export class FollowRecord { } } -export class ListblockRecord { +export class ListRecord { _client: XrpcClient constructor(client: XrpcClient) { @@ -2627,10 +2627,10 @@ export class ListblockRecord { params: Omit, ): Promise<{ cursor?: string - records: { uri: string; value: AppBskyGraphListblock.Record }[] + records: { uri: string; value: AppBskyGraphList.Record }[] }> { const res = await this._client.call('com.atproto.repo.listRecords', { - collection: 'app.bsky.graph.listblock', + collection: 'app.bsky.graph.list', ...params, }) return res.data @@ -2638,13 +2638,9 @@ export class ListblockRecord { async get( params: Omit, - ): Promise<{ - uri: string - cid: string - value: AppBskyGraphListblock.Record - }> { + ): Promise<{ uri: string; cid: string; value: AppBskyGraphList.Record }> { const res = await this._client.call('com.atproto.repo.getRecord', { - collection: 'app.bsky.graph.listblock', + collection: 'app.bsky.graph.list', ...params, }) return res.data @@ -2655,14 +2651,14 @@ export class ListblockRecord { ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, - record: AppBskyGraphListblock.Record, + record: AppBskyGraphList.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { - record.$type = 'app.bsky.graph.listblock' + record.$type = 'app.bsky.graph.list' const res = await this._client.call( 'com.atproto.repo.createRecord', undefined, - { collection: 'app.bsky.graph.listblock', ...params, record }, + { collection: 'app.bsky.graph.list', ...params, record }, { encoding: 'application/json', headers }, ) return res.data @@ -2675,13 +2671,13 @@ export class ListblockRecord { await this._client.call( 'com.atproto.repo.deleteRecord', undefined, - { collection: 'app.bsky.graph.listblock', ...params }, + { collection: 'app.bsky.graph.list', ...params }, { headers }, ) } } -export class ListitemRecord { +export class ListblockRecord { _client: XrpcClient constructor(client: XrpcClient) { @@ -2692,10 +2688,10 @@ export class ListitemRecord { params: Omit, ): Promise<{ cursor?: string - records: { uri: string; value: AppBskyGraphListitem.Record }[] + records: { uri: string; value: AppBskyGraphListblock.Record }[] }> { const res = await this._client.call('com.atproto.repo.listRecords', { - collection: 'app.bsky.graph.listitem', + collection: 'app.bsky.graph.listblock', ...params, }) return res.data @@ -2703,9 +2699,13 @@ export class ListitemRecord { async get( params: Omit, - ): Promise<{ uri: string; cid: string; value: AppBskyGraphListitem.Record }> { + ): Promise<{ + uri: string + cid: string + value: AppBskyGraphListblock.Record + }> { const res = await this._client.call('com.atproto.repo.getRecord', { - collection: 'app.bsky.graph.listitem', + collection: 'app.bsky.graph.listblock', ...params, }) return res.data @@ -2716,14 +2716,14 @@ export class ListitemRecord { ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, - record: AppBskyGraphListitem.Record, + record: AppBskyGraphListblock.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { - record.$type = 'app.bsky.graph.listitem' + record.$type = 'app.bsky.graph.listblock' const res = await this._client.call( 'com.atproto.repo.createRecord', undefined, - { collection: 'app.bsky.graph.listitem', ...params, record }, + { collection: 'app.bsky.graph.listblock', ...params, record }, { encoding: 'application/json', headers }, ) return res.data @@ -2736,13 +2736,13 @@ export class ListitemRecord { await this._client.call( 'com.atproto.repo.deleteRecord', undefined, - { collection: 'app.bsky.graph.listitem', ...params }, + { collection: 'app.bsky.graph.listblock', ...params }, { headers }, ) } } -export class ListRecord { +export class ListitemRecord { _client: XrpcClient constructor(client: XrpcClient) { @@ -2753,10 +2753,10 @@ export class ListRecord { params: Omit, ): Promise<{ cursor?: string - records: { uri: string; value: AppBskyGraphList.Record }[] + records: { uri: string; value: AppBskyGraphListitem.Record }[] }> { const res = await this._client.call('com.atproto.repo.listRecords', { - collection: 'app.bsky.graph.list', + collection: 'app.bsky.graph.listitem', ...params, }) return res.data @@ -2764,9 +2764,9 @@ export class ListRecord { async get( params: Omit, - ): Promise<{ uri: string; cid: string; value: AppBskyGraphList.Record }> { + ): Promise<{ uri: string; cid: string; value: AppBskyGraphListitem.Record }> { const res = await this._client.call('com.atproto.repo.getRecord', { - collection: 'app.bsky.graph.list', + collection: 'app.bsky.graph.listitem', ...params, }) return res.data @@ -2777,14 +2777,14 @@ export class ListRecord { ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record' >, - record: AppBskyGraphList.Record, + record: AppBskyGraphListitem.Record, headers?: Record, ): Promise<{ uri: string; cid: string }> { - record.$type = 'app.bsky.graph.list' + record.$type = 'app.bsky.graph.listitem' const res = await this._client.call( 'com.atproto.repo.createRecord', undefined, - { collection: 'app.bsky.graph.list', ...params, record }, + { collection: 'app.bsky.graph.listitem', ...params, record }, { encoding: 'application/json', headers }, ) return res.data @@ -2797,7 +2797,7 @@ export class ListRecord { await this._client.call( 'com.atproto.repo.deleteRecord', undefined, - { collection: 'app.bsky.graph.list', ...params }, + { collection: 'app.bsky.graph.listitem', ...params }, { headers }, ) } @@ -3328,24 +3328,24 @@ export class ChatBskyConvoNS { ) } - getConvoForMembers( - params?: ChatBskyConvoGetConvoForMembers.QueryParams, - opts?: ChatBskyConvoGetConvoForMembers.CallOptions, - ): Promise { + getConvo( + params?: ChatBskyConvoGetConvo.QueryParams, + opts?: ChatBskyConvoGetConvo.CallOptions, + ): Promise { return this._client.call( - 'chat.bsky.convo.getConvoForMembers', + 'chat.bsky.convo.getConvo', params, undefined, opts, ) } - getConvo( - params?: ChatBskyConvoGetConvo.QueryParams, - opts?: ChatBskyConvoGetConvo.CallOptions, - ): Promise { + getConvoForMembers( + params?: ChatBskyConvoGetConvoForMembers.QueryParams, + opts?: ChatBskyConvoGetConvoForMembers.CallOptions, + ): Promise { return this._client.call( - 'chat.bsky.convo.getConvo', + 'chat.bsky.convo.getConvoForMembers', params, undefined, opts, @@ -3397,24 +3397,24 @@ export class ChatBskyConvoNS { return this._client.call('chat.bsky.convo.muteConvo', opts?.qp, data, opts) } - sendMessageBatch( - data?: ChatBskyConvoSendMessageBatch.InputSchema, - opts?: ChatBskyConvoSendMessageBatch.CallOptions, - ): Promise { + sendMessage( + data?: ChatBskyConvoSendMessage.InputSchema, + opts?: ChatBskyConvoSendMessage.CallOptions, + ): Promise { return this._client.call( - 'chat.bsky.convo.sendMessageBatch', + 'chat.bsky.convo.sendMessage', opts?.qp, data, opts, ) } - sendMessage( - data?: ChatBskyConvoSendMessage.InputSchema, - opts?: ChatBskyConvoSendMessage.CallOptions, - ): Promise { + sendMessageBatch( + data?: ChatBskyConvoSendMessageBatch.InputSchema, + opts?: ChatBskyConvoSendMessageBatch.CallOptions, + ): Promise { return this._client.call( - 'chat.bsky.convo.sendMessage', + 'chat.bsky.convo.sendMessageBatch', opts?.qp, data, opts, diff --git a/packages/api/src/client/lexicons.ts b/packages/api/src/client/lexicons.ts index 78d6da017de..32bd89f98a4 100644 --- a/packages/api/src/client/lexicons.ts +++ b/packages/api/src/client/lexicons.ts @@ -6198,6 +6198,60 @@ export const schemaDict = { }, }, }, + AppBskyFeedGetFeed: { + lexicon: 1, + id: 'app.bsky.feed.getFeed', + defs: { + main: { + type: 'query', + description: + "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.", + parameters: { + type: 'params', + required: ['feed'], + properties: { + feed: { + type: 'string', + format: 'at-uri', + }, + limit: { + type: 'integer', + minimum: 1, + maximum: 100, + default: 50, + }, + cursor: { + type: 'string', + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['feed'], + properties: { + cursor: { + type: 'string', + }, + feed: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.feed.defs#feedViewPost', + }, + }, + }, + }, + }, + errors: [ + { + name: 'UnknownFeed', + }, + ], + }, + }, + }, AppBskyFeedGetFeedGenerator: { lexicon: 1, id: 'app.bsky.feed.getFeedGenerator', @@ -6282,60 +6336,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedGetFeed: { - lexicon: 1, - id: 'app.bsky.feed.getFeed', - defs: { - main: { - type: 'query', - description: - "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.", - parameters: { - type: 'params', - required: ['feed'], - properties: { - feed: { - type: 'string', - format: 'at-uri', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['feed'], - properties: { - cursor: { - type: 'string', - }, - feed: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#feedViewPost', - }, - }, - }, - }, - }, - errors: [ - { - name: 'UnknownFeed', - }, - ], - }, - }, - }, AppBskyFeedGetFeedSkeleton: { lexicon: 1, id: 'app.bsky.feed.getFeedSkeleton', @@ -6529,48 +6529,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedGetPosts: { - lexicon: 1, - id: 'app.bsky.feed.getPosts', - defs: { - main: { - type: 'query', - description: - "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", - parameters: { - type: 'params', - required: ['uris'], - properties: { - uris: { - type: 'array', - description: 'List of post AT-URIs to return hydrated views for.', - items: { - type: 'string', - format: 'at-uri', - }, - maxLength: 25, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['posts'], - properties: { - posts: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#postView', - }, - }, - }, - }, - }, - }, - }, - }, AppBskyFeedGetPostThread: { lexicon: 1, id: 'app.bsky.feed.getPostThread', @@ -6635,6 +6593,48 @@ export const schemaDict = { }, }, }, + AppBskyFeedGetPosts: { + lexicon: 1, + id: 'app.bsky.feed.getPosts', + defs: { + main: { + type: 'query', + description: + "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", + parameters: { + type: 'params', + required: ['uris'], + properties: { + uris: { + type: 'array', + description: 'List of post AT-URIs to return hydrated views for.', + items: { + type: 'string', + format: 'at-uri', + }, + maxLength: 25, + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['posts'], + properties: { + posts: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.feed.defs#postView', + }, + }, + }, + }, + }, + }, + }, + }, AppBskyFeedGetQuotes: { lexicon: 1, id: 'app.bsky.feed.getQuotes', @@ -6879,56 +6879,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedPostgate: { - lexicon: 1, - id: 'app.bsky.feed.postgate', - defs: { - main: { - type: 'record', - key: 'tid', - description: - 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', - record: { - type: 'object', - required: ['post', 'createdAt'], - properties: { - createdAt: { - type: 'string', - format: 'datetime', - }, - post: { - type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) to the post record.', - }, - detachedEmbeddingUris: { - type: 'array', - maxLength: 50, - items: { - type: 'string', - format: 'at-uri', - }, - description: - 'List of AT-URIs embedding this post that the author has detached from.', - }, - embeddingRules: { - type: 'array', - maxLength: 5, - items: { - type: 'union', - refs: ['lex:app.bsky.feed.postgate#disableRule'], - }, - }, - }, - }, - }, - disableRule: { - type: 'object', - description: 'Disables embedding of this post.', - properties: {}, - }, - }, - }, AppBskyFeedPost: { lexicon: 1, id: 'app.bsky.feed.post', @@ -7065,6 +7015,56 @@ export const schemaDict = { }, }, }, + AppBskyFeedPostgate: { + lexicon: 1, + id: 'app.bsky.feed.postgate', + defs: { + main: { + type: 'record', + key: 'tid', + description: + 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', + record: { + type: 'object', + required: ['post', 'createdAt'], + properties: { + createdAt: { + type: 'string', + format: 'datetime', + }, + post: { + type: 'string', + format: 'at-uri', + description: 'Reference (AT-URI) to the post record.', + }, + detachedEmbeddingUris: { + type: 'array', + maxLength: 50, + items: { + type: 'string', + format: 'at-uri', + }, + description: + 'List of AT-URIs embedding this post that the author has detached from.', + }, + embeddingRules: { + type: 'array', + maxLength: 5, + items: { + type: 'union', + refs: ['lex:app.bsky.feed.postgate#disableRule'], + }, + }, + }, + }, + }, + disableRule: { + type: 'object', + description: 'Disables embedding of this post.', + properties: {}, + }, + }, + }, AppBskyFeedRepost: { lexicon: 1, id: 'app.bsky.feed.repost', @@ -7921,17 +7921,23 @@ export const schemaDict = { }, }, }, - AppBskyGraphGetListBlocks: { + AppBskyGraphGetList: { lexicon: 1, - id: 'app.bsky.graph.getListBlocks', + id: 'app.bsky.graph.getList', defs: { main: { type: 'query', description: - 'Get mod lists that the requesting account (actor) is blocking. Requires auth.', + "Gets a 'view' (with additional context) of a specified list.", parameters: { type: 'params', + required: ['list'], properties: { + list: { + type: 'string', + format: 'at-uri', + description: 'Reference (AT-URI) of the list record to hydrate.', + }, limit: { type: 'integer', minimum: 1, @@ -7947,16 +7953,20 @@ export const schemaDict = { encoding: 'application/json', schema: { type: 'object', - required: ['lists'], + required: ['list', 'items'], properties: { cursor: { type: 'string', }, - lists: { + list: { + type: 'ref', + ref: 'lex:app.bsky.graph.defs#listView', + }, + items: { type: 'array', items: { type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', + ref: 'lex:app.bsky.graph.defs#listItemView', }, }, }, @@ -7965,23 +7975,17 @@ export const schemaDict = { }, }, }, - AppBskyGraphGetList: { + AppBskyGraphGetListBlocks: { lexicon: 1, - id: 'app.bsky.graph.getList', + id: 'app.bsky.graph.getListBlocks', defs: { main: { type: 'query', description: - "Gets a 'view' (with additional context) of a specified list.", + 'Get mod lists that the requesting account (actor) is blocking. Requires auth.', parameters: { type: 'params', - required: ['list'], properties: { - list: { - type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) of the list record to hydrate.', - }, limit: { type: 'integer', minimum: 1, @@ -7997,20 +8001,16 @@ export const schemaDict = { encoding: 'application/json', schema: { type: 'object', - required: ['list', 'items'], + required: ['lists'], properties: { cursor: { type: 'string', }, - list: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', - }, - items: { + lists: { type: 'array', items: { type: 'ref', - ref: 'lex:app.bsky.graph.defs#listItemView', + ref: 'lex:app.bsky.graph.defs#listView', }, }, }, @@ -8307,30 +8307,85 @@ export const schemaDict = { properties: { actor: { type: 'string', - format: 'at-identifier', + format: 'at-identifier', + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['suggestions'], + properties: { + suggestions: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.actor.defs#profileView', + }, + }, + isFallback: { + type: 'boolean', + description: + 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid', + default: false, + }, + }, + }, + }, + }, + }, + }, + AppBskyGraphList: { + lexicon: 1, + id: 'app.bsky.graph.list', + defs: { + main: { + type: 'record', + description: + 'Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.', + key: 'tid', + record: { + type: 'object', + required: ['name', 'purpose', 'createdAt'], + properties: { + purpose: { + type: 'ref', + description: + 'Defines the purpose of the list (aka, moderation-oriented or curration-oriented)', + ref: 'lex:app.bsky.graph.defs#listPurpose', + }, + name: { + type: 'string', + maxLength: 64, + minLength: 1, + description: 'Display name for list; can not be empty.', + }, + description: { + type: 'string', + maxGraphemes: 300, + maxLength: 3000, }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['suggestions'], - properties: { - suggestions: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - isFallback: { - type: 'boolean', - description: - 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid', - default: false, + descriptionFacets: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.richtext.facet', }, }, + avatar: { + type: 'blob', + accept: ['image/png', 'image/jpeg'], + maxSize: 1000000, + }, + labels: { + type: 'union', + refs: ['lex:com.atproto.label.defs#selfLabels'], + }, + createdAt: { + type: 'string', + format: 'datetime', + }, }, }, }, @@ -8396,61 +8451,6 @@ export const schemaDict = { }, }, }, - AppBskyGraphList: { - lexicon: 1, - id: 'app.bsky.graph.list', - defs: { - main: { - type: 'record', - description: - 'Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.', - key: 'tid', - record: { - type: 'object', - required: ['name', 'purpose', 'createdAt'], - properties: { - purpose: { - type: 'ref', - description: - 'Defines the purpose of the list (aka, moderation-oriented or curration-oriented)', - ref: 'lex:app.bsky.graph.defs#listPurpose', - }, - name: { - type: 'string', - maxLength: 64, - minLength: 1, - description: 'Display name for list; can not be empty.', - }, - description: { - type: 'string', - maxGraphemes: 300, - maxLength: 3000, - }, - descriptionFacets: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.richtext.facet', - }, - }, - avatar: { - type: 'blob', - accept: ['image/png', 'image/jpeg'], - maxSize: 1000000, - }, - labels: { - type: 'union', - refs: ['lex:com.atproto.label.defs#selfLabels'], - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, AppBskyGraphMuteActor: { lexicon: 1, id: 'app.bsky.graph.muteActor', @@ -10235,24 +10235,18 @@ export const schemaDict = { }, }, }, - ChatBskyConvoGetConvoForMembers: { + ChatBskyConvoGetConvo: { lexicon: 1, - id: 'chat.bsky.convo.getConvoForMembers', + id: 'chat.bsky.convo.getConvo', defs: { main: { type: 'query', parameters: { type: 'params', - required: ['members'], + required: ['convoId'], properties: { - members: { - type: 'array', - minLength: 1, - maxLength: 10, - items: { - type: 'string', - format: 'did', - }, + convoId: { + type: 'string', }, }, }, @@ -10272,18 +10266,24 @@ export const schemaDict = { }, }, }, - ChatBskyConvoGetConvo: { + ChatBskyConvoGetConvoForMembers: { lexicon: 1, - id: 'chat.bsky.convo.getConvo', + id: 'chat.bsky.convo.getConvoForMembers', defs: { main: { type: 'query', parameters: { type: 'params', - required: ['convoId'], + required: ['members'], properties: { - convoId: { - type: 'string', + members: { + type: 'array', + minLength: 1, + maxLength: 10, + items: { + type: 'string', + format: 'did', + }, }, }, }, @@ -10506,6 +10506,38 @@ export const schemaDict = { }, }, }, + ChatBskyConvoSendMessage: { + lexicon: 1, + id: 'chat.bsky.convo.sendMessage', + defs: { + main: { + type: 'procedure', + input: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['convoId', 'message'], + properties: { + convoId: { + type: 'string', + }, + message: { + type: 'ref', + ref: 'lex:chat.bsky.convo.defs#messageInput', + }, + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:chat.bsky.convo.defs#messageView', + }, + }, + }, + }, + }, ChatBskyConvoSendMessageBatch: { lexicon: 1, id: 'chat.bsky.convo.sendMessageBatch', @@ -10561,38 +10593,6 @@ export const schemaDict = { }, }, }, - ChatBskyConvoSendMessage: { - lexicon: 1, - id: 'chat.bsky.convo.sendMessage', - defs: { - main: { - type: 'procedure', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['convoId', 'message'], - properties: { - convoId: { - type: 'string', - }, - message: { - type: 'ref', - ref: 'lex:chat.bsky.convo.defs#messageInput', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:chat.bsky.convo.defs#messageView', - }, - }, - }, - }, - }, ChatBskyConvoUnmuteConvo: { lexicon: 1, id: 'chat.bsky.convo.unmuteConvo', @@ -12929,6 +12929,30 @@ export const schemaDict = { }, }, }, + ToolsOzoneSetUpsertSet: { + lexicon: 1, + id: 'tools.ozone.set.upsertSet', + defs: { + main: { + type: 'procedure', + description: 'Create or update set metadata', + input: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:tools.ozone.set.defs#set', + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:tools.ozone.set.defs#setView', + }, + }, + }, + }, + }, ToolsOzoneSettingDefs: { lexicon: 1, id: 'tools.ozone.setting.defs', @@ -13148,30 +13172,6 @@ export const schemaDict = { }, }, }, - ToolsOzoneSetUpsertSet: { - lexicon: 1, - id: 'tools.ozone.set.upsertSet', - defs: { - main: { - type: 'procedure', - description: 'Create or update set metadata', - input: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:tools.ozone.set.defs#set', - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:tools.ozone.set.defs#setView', - }, - }, - }, - }, - }, ToolsOzoneSignatureDefs: { lexicon: 1, id: 'tools.ozone.signature.defs', @@ -13688,21 +13688,21 @@ export const ids = { AppBskyFeedGetActorFeeds: 'app.bsky.feed.getActorFeeds', AppBskyFeedGetActorLikes: 'app.bsky.feed.getActorLikes', AppBskyFeedGetAuthorFeed: 'app.bsky.feed.getAuthorFeed', + AppBskyFeedGetFeed: 'app.bsky.feed.getFeed', AppBskyFeedGetFeedGenerator: 'app.bsky.feed.getFeedGenerator', AppBskyFeedGetFeedGenerators: 'app.bsky.feed.getFeedGenerators', - AppBskyFeedGetFeed: 'app.bsky.feed.getFeed', AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton', AppBskyFeedGetLikes: 'app.bsky.feed.getLikes', AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed', - AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread', + AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes', AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy', AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds', AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline', AppBskyFeedLike: 'app.bsky.feed.like', - AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedPost: 'app.bsky.feed.post', + AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedRepost: 'app.bsky.feed.repost', AppBskyFeedSearchPosts: 'app.bsky.feed.searchPosts', AppBskyFeedSendInteractions: 'app.bsky.feed.sendInteractions', @@ -13715,8 +13715,8 @@ export const ids = { AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers', AppBskyGraphGetFollows: 'app.bsky.graph.getFollows', AppBskyGraphGetKnownFollowers: 'app.bsky.graph.getKnownFollowers', - AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks', AppBskyGraphGetList: 'app.bsky.graph.getList', + AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks', AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes', AppBskyGraphGetLists: 'app.bsky.graph.getLists', AppBskyGraphGetMutes: 'app.bsky.graph.getMutes', @@ -13725,9 +13725,9 @@ export const ids = { AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks', AppBskyGraphGetSuggestedFollowsByActor: 'app.bsky.graph.getSuggestedFollowsByActor', + AppBskyGraphList: 'app.bsky.graph.list', AppBskyGraphListblock: 'app.bsky.graph.listblock', AppBskyGraphListitem: 'app.bsky.graph.listitem', - AppBskyGraphList: 'app.bsky.graph.list', AppBskyGraphMuteActor: 'app.bsky.graph.muteActor', AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList', AppBskyGraphMuteThread: 'app.bsky.graph.muteThread', @@ -13770,15 +13770,15 @@ export const ids = { ChatBskyActorExportAccountData: 'chat.bsky.actor.exportAccountData', ChatBskyConvoDefs: 'chat.bsky.convo.defs', ChatBskyConvoDeleteMessageForSelf: 'chat.bsky.convo.deleteMessageForSelf', - ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers', ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo', + ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers', ChatBskyConvoGetLog: 'chat.bsky.convo.getLog', ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages', ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo', ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos', ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo', - ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch', ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage', + ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch', ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo', ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead', ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata', @@ -13810,11 +13810,11 @@ export const ids = { ToolsOzoneSetDeleteValues: 'tools.ozone.set.deleteValues', ToolsOzoneSetGetValues: 'tools.ozone.set.getValues', ToolsOzoneSetQuerySets: 'tools.ozone.set.querySets', + ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet', ToolsOzoneSettingDefs: 'tools.ozone.setting.defs', ToolsOzoneSettingListOptions: 'tools.ozone.setting.listOptions', ToolsOzoneSettingRemoveOptions: 'tools.ozone.setting.removeOptions', ToolsOzoneSettingUpsertOption: 'tools.ozone.setting.upsertOption', - ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet', ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs', ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation', ToolsOzoneSignatureFindRelatedAccounts: diff --git a/packages/bsky/src/lexicon/index.ts b/packages/bsky/src/lexicon/index.ts index dfdc2f1b4cd..7613b61fb4e 100644 --- a/packages/bsky/src/lexicon/index.ts +++ b/packages/bsky/src/lexicon/index.ts @@ -95,14 +95,14 @@ import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describ import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds' import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes' import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed' +import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator' import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators' -import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton' import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes' import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed' -import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread' +import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes' import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy' import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds' @@ -114,8 +114,8 @@ import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks' import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers' import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows' import * as AppBskyGraphGetKnownFollowers from './types/app/bsky/graph/getKnownFollowers' -import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetList from './types/app/bsky/graph/getList' +import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes' import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists' import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' @@ -150,15 +150,15 @@ import * as AppBskyVideoUploadVideo from './types/app/bsky/video/uploadVideo' import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount' import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData' import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf' -import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo' +import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog' import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages' import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo' import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos' import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo' -import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage' +import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo' import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead' import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata' @@ -1319,6 +1319,17 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } + getFeed( + cfg: ConfigOf< + AV, + AppBskyFeedGetFeed.Handler>, + AppBskyFeedGetFeed.HandlerReqCtx> + >, + ) { + const nsid = 'app.bsky.feed.getFeed' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) + } + getFeedGenerator( cfg: ConfigOf< AV, @@ -1341,17 +1352,6 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } - getFeed( - cfg: ConfigOf< - AV, - AppBskyFeedGetFeed.Handler>, - AppBskyFeedGetFeed.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getFeed' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - getFeedSkeleton( cfg: ConfigOf< AV, @@ -1385,25 +1385,25 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } - getPosts( + getPostThread( cfg: ConfigOf< AV, - AppBskyFeedGetPosts.Handler>, - AppBskyFeedGetPosts.HandlerReqCtx> + AppBskyFeedGetPostThread.Handler>, + AppBskyFeedGetPostThread.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.feed.getPosts' // @ts-ignore + const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getPostThread( + getPosts( cfg: ConfigOf< AV, - AppBskyFeedGetPostThread.Handler>, - AppBskyFeedGetPostThread.HandlerReqCtx> + AppBskyFeedGetPosts.Handler>, + AppBskyFeedGetPosts.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore + const nsid = 'app.bsky.feed.getPosts' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -1536,25 +1536,25 @@ export class AppBskyGraphNS { return this._server.xrpc.method(nsid, cfg) } - getListBlocks( + getList( cfg: ConfigOf< AV, - AppBskyGraphGetListBlocks.Handler>, - AppBskyGraphGetListBlocks.HandlerReqCtx> + AppBskyGraphGetList.Handler>, + AppBskyGraphGetList.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.graph.getListBlocks' // @ts-ignore + const nsid = 'app.bsky.graph.getList' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getList( + getListBlocks( cfg: ConfigOf< AV, - AppBskyGraphGetList.Handler>, - AppBskyGraphGetList.HandlerReqCtx> + AppBskyGraphGetListBlocks.Handler>, + AppBskyGraphGetListBlocks.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.graph.getList' // @ts-ignore + const nsid = 'app.bsky.graph.getListBlocks' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -2012,25 +2012,25 @@ export class ChatBskyConvoNS { return this._server.xrpc.method(nsid, cfg) } - getConvoForMembers( + getConvo( cfg: ConfigOf< AV, - ChatBskyConvoGetConvoForMembers.Handler>, - ChatBskyConvoGetConvoForMembers.HandlerReqCtx> + ChatBskyConvoGetConvo.Handler>, + ChatBskyConvoGetConvo.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore + const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getConvo( + getConvoForMembers( cfg: ConfigOf< AV, - ChatBskyConvoGetConvo.Handler>, - ChatBskyConvoGetConvo.HandlerReqCtx> + ChatBskyConvoGetConvoForMembers.Handler>, + ChatBskyConvoGetConvoForMembers.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore + const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -2089,25 +2089,25 @@ export class ChatBskyConvoNS { return this._server.xrpc.method(nsid, cfg) } - sendMessageBatch( + sendMessage( cfg: ConfigOf< AV, - ChatBskyConvoSendMessageBatch.Handler>, - ChatBskyConvoSendMessageBatch.HandlerReqCtx> + ChatBskyConvoSendMessage.Handler>, + ChatBskyConvoSendMessage.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore + const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - sendMessage( + sendMessageBatch( cfg: ConfigOf< AV, - ChatBskyConvoSendMessage.Handler>, - ChatBskyConvoSendMessage.HandlerReqCtx> + ChatBskyConvoSendMessageBatch.Handler>, + ChatBskyConvoSendMessageBatch.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore + const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } diff --git a/packages/bsky/src/lexicon/lexicons.ts b/packages/bsky/src/lexicon/lexicons.ts index 75072e71c63..c24ef7394f2 100644 --- a/packages/bsky/src/lexicon/lexicons.ts +++ b/packages/bsky/src/lexicon/lexicons.ts @@ -6198,6 +6198,60 @@ export const schemaDict = { }, }, }, + AppBskyFeedGetFeed: { + lexicon: 1, + id: 'app.bsky.feed.getFeed', + defs: { + main: { + type: 'query', + description: + "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.", + parameters: { + type: 'params', + required: ['feed'], + properties: { + feed: { + type: 'string', + format: 'at-uri', + }, + limit: { + type: 'integer', + minimum: 1, + maximum: 100, + default: 50, + }, + cursor: { + type: 'string', + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['feed'], + properties: { + cursor: { + type: 'string', + }, + feed: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.feed.defs#feedViewPost', + }, + }, + }, + }, + }, + errors: [ + { + name: 'UnknownFeed', + }, + ], + }, + }, + }, AppBskyFeedGetFeedGenerator: { lexicon: 1, id: 'app.bsky.feed.getFeedGenerator', @@ -6282,60 +6336,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedGetFeed: { - lexicon: 1, - id: 'app.bsky.feed.getFeed', - defs: { - main: { - type: 'query', - description: - "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.", - parameters: { - type: 'params', - required: ['feed'], - properties: { - feed: { - type: 'string', - format: 'at-uri', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['feed'], - properties: { - cursor: { - type: 'string', - }, - feed: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#feedViewPost', - }, - }, - }, - }, - }, - errors: [ - { - name: 'UnknownFeed', - }, - ], - }, - }, - }, AppBskyFeedGetFeedSkeleton: { lexicon: 1, id: 'app.bsky.feed.getFeedSkeleton', @@ -6529,48 +6529,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedGetPosts: { - lexicon: 1, - id: 'app.bsky.feed.getPosts', - defs: { - main: { - type: 'query', - description: - "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", - parameters: { - type: 'params', - required: ['uris'], - properties: { - uris: { - type: 'array', - description: 'List of post AT-URIs to return hydrated views for.', - items: { - type: 'string', - format: 'at-uri', - }, - maxLength: 25, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['posts'], - properties: { - posts: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#postView', - }, - }, - }, - }, - }, - }, - }, - }, AppBskyFeedGetPostThread: { lexicon: 1, id: 'app.bsky.feed.getPostThread', @@ -6635,6 +6593,48 @@ export const schemaDict = { }, }, }, + AppBskyFeedGetPosts: { + lexicon: 1, + id: 'app.bsky.feed.getPosts', + defs: { + main: { + type: 'query', + description: + "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", + parameters: { + type: 'params', + required: ['uris'], + properties: { + uris: { + type: 'array', + description: 'List of post AT-URIs to return hydrated views for.', + items: { + type: 'string', + format: 'at-uri', + }, + maxLength: 25, + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['posts'], + properties: { + posts: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.feed.defs#postView', + }, + }, + }, + }, + }, + }, + }, + }, AppBskyFeedGetQuotes: { lexicon: 1, id: 'app.bsky.feed.getQuotes', @@ -6879,56 +6879,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedPostgate: { - lexicon: 1, - id: 'app.bsky.feed.postgate', - defs: { - main: { - type: 'record', - key: 'tid', - description: - 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', - record: { - type: 'object', - required: ['post', 'createdAt'], - properties: { - createdAt: { - type: 'string', - format: 'datetime', - }, - post: { - type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) to the post record.', - }, - detachedEmbeddingUris: { - type: 'array', - maxLength: 50, - items: { - type: 'string', - format: 'at-uri', - }, - description: - 'List of AT-URIs embedding this post that the author has detached from.', - }, - embeddingRules: { - type: 'array', - maxLength: 5, - items: { - type: 'union', - refs: ['lex:app.bsky.feed.postgate#disableRule'], - }, - }, - }, - }, - }, - disableRule: { - type: 'object', - description: 'Disables embedding of this post.', - properties: {}, - }, - }, - }, AppBskyFeedPost: { lexicon: 1, id: 'app.bsky.feed.post', @@ -7065,6 +7015,56 @@ export const schemaDict = { }, }, }, + AppBskyFeedPostgate: { + lexicon: 1, + id: 'app.bsky.feed.postgate', + defs: { + main: { + type: 'record', + key: 'tid', + description: + 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', + record: { + type: 'object', + required: ['post', 'createdAt'], + properties: { + createdAt: { + type: 'string', + format: 'datetime', + }, + post: { + type: 'string', + format: 'at-uri', + description: 'Reference (AT-URI) to the post record.', + }, + detachedEmbeddingUris: { + type: 'array', + maxLength: 50, + items: { + type: 'string', + format: 'at-uri', + }, + description: + 'List of AT-URIs embedding this post that the author has detached from.', + }, + embeddingRules: { + type: 'array', + maxLength: 5, + items: { + type: 'union', + refs: ['lex:app.bsky.feed.postgate#disableRule'], + }, + }, + }, + }, + }, + disableRule: { + type: 'object', + description: 'Disables embedding of this post.', + properties: {}, + }, + }, + }, AppBskyFeedRepost: { lexicon: 1, id: 'app.bsky.feed.repost', @@ -7921,17 +7921,23 @@ export const schemaDict = { }, }, }, - AppBskyGraphGetListBlocks: { + AppBskyGraphGetList: { lexicon: 1, - id: 'app.bsky.graph.getListBlocks', + id: 'app.bsky.graph.getList', defs: { main: { type: 'query', description: - 'Get mod lists that the requesting account (actor) is blocking. Requires auth.', + "Gets a 'view' (with additional context) of a specified list.", parameters: { type: 'params', + required: ['list'], properties: { + list: { + type: 'string', + format: 'at-uri', + description: 'Reference (AT-URI) of the list record to hydrate.', + }, limit: { type: 'integer', minimum: 1, @@ -7947,16 +7953,20 @@ export const schemaDict = { encoding: 'application/json', schema: { type: 'object', - required: ['lists'], + required: ['list', 'items'], properties: { cursor: { type: 'string', }, - lists: { + list: { + type: 'ref', + ref: 'lex:app.bsky.graph.defs#listView', + }, + items: { type: 'array', items: { type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', + ref: 'lex:app.bsky.graph.defs#listItemView', }, }, }, @@ -7965,23 +7975,17 @@ export const schemaDict = { }, }, }, - AppBskyGraphGetList: { + AppBskyGraphGetListBlocks: { lexicon: 1, - id: 'app.bsky.graph.getList', + id: 'app.bsky.graph.getListBlocks', defs: { main: { type: 'query', description: - "Gets a 'view' (with additional context) of a specified list.", + 'Get mod lists that the requesting account (actor) is blocking. Requires auth.', parameters: { type: 'params', - required: ['list'], properties: { - list: { - type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) of the list record to hydrate.', - }, limit: { type: 'integer', minimum: 1, @@ -7997,20 +8001,16 @@ export const schemaDict = { encoding: 'application/json', schema: { type: 'object', - required: ['list', 'items'], + required: ['lists'], properties: { cursor: { type: 'string', }, - list: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', - }, - items: { + lists: { type: 'array', items: { type: 'ref', - ref: 'lex:app.bsky.graph.defs#listItemView', + ref: 'lex:app.bsky.graph.defs#listView', }, }, }, @@ -8336,23 +8336,51 @@ export const schemaDict = { }, }, }, - AppBskyGraphListblock: { + AppBskyGraphList: { lexicon: 1, - id: 'app.bsky.graph.listblock', + id: 'app.bsky.graph.list', defs: { main: { type: 'record', description: - 'Record representing a block relationship against an entire an entire list of accounts (actors).', + 'Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.', key: 'tid', record: { type: 'object', - required: ['subject', 'createdAt'], + required: ['name', 'purpose', 'createdAt'], properties: { - subject: { + purpose: { + type: 'ref', + description: + 'Defines the purpose of the list (aka, moderation-oriented or curration-oriented)', + ref: 'lex:app.bsky.graph.defs#listPurpose', + }, + name: { type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) to the mod list record.', + maxLength: 64, + minLength: 1, + description: 'Display name for list; can not be empty.', + }, + description: { + type: 'string', + maxGraphemes: 300, + maxLength: 3000, + }, + descriptionFacets: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.richtext.facet', + }, + }, + avatar: { + type: 'blob', + accept: ['image/png', 'image/jpeg'], + maxSize: 1000000, + }, + labels: { + type: 'union', + refs: ['lex:com.atproto.label.defs#selfLabels'], }, createdAt: { type: 'string', @@ -8363,29 +8391,23 @@ export const schemaDict = { }, }, }, - AppBskyGraphListitem: { + AppBskyGraphListblock: { lexicon: 1, - id: 'app.bsky.graph.listitem', + id: 'app.bsky.graph.listblock', defs: { main: { type: 'record', description: - "Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records.", + 'Record representing a block relationship against an entire an entire list of accounts (actors).', key: 'tid', record: { type: 'object', - required: ['subject', 'list', 'createdAt'], + required: ['subject', 'createdAt'], properties: { subject: { - type: 'string', - format: 'did', - description: 'The account which is included on the list.', - }, - list: { type: 'string', format: 'at-uri', - description: - 'Reference (AT-URI) to the list record (app.bsky.graph.list).', + description: 'Reference (AT-URI) to the mod list record.', }, createdAt: { type: 'string', @@ -8396,51 +8418,29 @@ export const schemaDict = { }, }, }, - AppBskyGraphList: { + AppBskyGraphListitem: { lexicon: 1, - id: 'app.bsky.graph.list', + id: 'app.bsky.graph.listitem', defs: { main: { type: 'record', description: - 'Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.', + "Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records.", key: 'tid', record: { type: 'object', - required: ['name', 'purpose', 'createdAt'], + required: ['subject', 'list', 'createdAt'], properties: { - purpose: { - type: 'ref', - description: - 'Defines the purpose of the list (aka, moderation-oriented or curration-oriented)', - ref: 'lex:app.bsky.graph.defs#listPurpose', - }, - name: { + subject: { type: 'string', - maxLength: 64, - minLength: 1, - description: 'Display name for list; can not be empty.', + format: 'did', + description: 'The account which is included on the list.', }, - description: { + list: { type: 'string', - maxGraphemes: 300, - maxLength: 3000, - }, - descriptionFacets: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.richtext.facet', - }, - }, - avatar: { - type: 'blob', - accept: ['image/png', 'image/jpeg'], - maxSize: 1000000, - }, - labels: { - type: 'union', - refs: ['lex:com.atproto.label.defs#selfLabels'], + format: 'at-uri', + description: + 'Reference (AT-URI) to the list record (app.bsky.graph.list).', }, createdAt: { type: 'string', @@ -10235,24 +10235,18 @@ export const schemaDict = { }, }, }, - ChatBskyConvoGetConvoForMembers: { + ChatBskyConvoGetConvo: { lexicon: 1, - id: 'chat.bsky.convo.getConvoForMembers', + id: 'chat.bsky.convo.getConvo', defs: { main: { type: 'query', parameters: { type: 'params', - required: ['members'], + required: ['convoId'], properties: { - members: { - type: 'array', - minLength: 1, - maxLength: 10, - items: { - type: 'string', - format: 'did', - }, + convoId: { + type: 'string', }, }, }, @@ -10272,18 +10266,24 @@ export const schemaDict = { }, }, }, - ChatBskyConvoGetConvo: { + ChatBskyConvoGetConvoForMembers: { lexicon: 1, - id: 'chat.bsky.convo.getConvo', + id: 'chat.bsky.convo.getConvoForMembers', defs: { main: { type: 'query', parameters: { type: 'params', - required: ['convoId'], + required: ['members'], properties: { - convoId: { - type: 'string', + members: { + type: 'array', + minLength: 1, + maxLength: 10, + items: { + type: 'string', + format: 'did', + }, }, }, }, @@ -10506,6 +10506,38 @@ export const schemaDict = { }, }, }, + ChatBskyConvoSendMessage: { + lexicon: 1, + id: 'chat.bsky.convo.sendMessage', + defs: { + main: { + type: 'procedure', + input: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['convoId', 'message'], + properties: { + convoId: { + type: 'string', + }, + message: { + type: 'ref', + ref: 'lex:chat.bsky.convo.defs#messageInput', + }, + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:chat.bsky.convo.defs#messageView', + }, + }, + }, + }, + }, ChatBskyConvoSendMessageBatch: { lexicon: 1, id: 'chat.bsky.convo.sendMessageBatch', @@ -10561,38 +10593,6 @@ export const schemaDict = { }, }, }, - ChatBskyConvoSendMessage: { - lexicon: 1, - id: 'chat.bsky.convo.sendMessage', - defs: { - main: { - type: 'procedure', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['convoId', 'message'], - properties: { - convoId: { - type: 'string', - }, - message: { - type: 'ref', - ref: 'lex:chat.bsky.convo.defs#messageInput', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:chat.bsky.convo.defs#messageView', - }, - }, - }, - }, - }, ChatBskyConvoUnmuteConvo: { lexicon: 1, id: 'chat.bsky.convo.unmuteConvo', @@ -10922,21 +10922,21 @@ export const ids = { AppBskyFeedGetActorFeeds: 'app.bsky.feed.getActorFeeds', AppBskyFeedGetActorLikes: 'app.bsky.feed.getActorLikes', AppBskyFeedGetAuthorFeed: 'app.bsky.feed.getAuthorFeed', + AppBskyFeedGetFeed: 'app.bsky.feed.getFeed', AppBskyFeedGetFeedGenerator: 'app.bsky.feed.getFeedGenerator', AppBskyFeedGetFeedGenerators: 'app.bsky.feed.getFeedGenerators', - AppBskyFeedGetFeed: 'app.bsky.feed.getFeed', AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton', AppBskyFeedGetLikes: 'app.bsky.feed.getLikes', AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed', - AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread', + AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes', AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy', AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds', AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline', AppBskyFeedLike: 'app.bsky.feed.like', - AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedPost: 'app.bsky.feed.post', + AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedRepost: 'app.bsky.feed.repost', AppBskyFeedSearchPosts: 'app.bsky.feed.searchPosts', AppBskyFeedSendInteractions: 'app.bsky.feed.sendInteractions', @@ -10949,8 +10949,8 @@ export const ids = { AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers', AppBskyGraphGetFollows: 'app.bsky.graph.getFollows', AppBskyGraphGetKnownFollowers: 'app.bsky.graph.getKnownFollowers', - AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks', AppBskyGraphGetList: 'app.bsky.graph.getList', + AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks', AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes', AppBskyGraphGetLists: 'app.bsky.graph.getLists', AppBskyGraphGetMutes: 'app.bsky.graph.getMutes', @@ -10959,9 +10959,9 @@ export const ids = { AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks', AppBskyGraphGetSuggestedFollowsByActor: 'app.bsky.graph.getSuggestedFollowsByActor', + AppBskyGraphList: 'app.bsky.graph.list', AppBskyGraphListblock: 'app.bsky.graph.listblock', AppBskyGraphListitem: 'app.bsky.graph.listitem', - AppBskyGraphList: 'app.bsky.graph.list', AppBskyGraphMuteActor: 'app.bsky.graph.muteActor', AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList', AppBskyGraphMuteThread: 'app.bsky.graph.muteThread', @@ -11004,15 +11004,15 @@ export const ids = { ChatBskyActorExportAccountData: 'chat.bsky.actor.exportAccountData', ChatBskyConvoDefs: 'chat.bsky.convo.defs', ChatBskyConvoDeleteMessageForSelf: 'chat.bsky.convo.deleteMessageForSelf', - ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers', ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo', + ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers', ChatBskyConvoGetLog: 'chat.bsky.convo.getLog', ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages', ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo', ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos', ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo', - ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch', ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage', + ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch', ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo', ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead', ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata', diff --git a/packages/ozone/src/lexicon/index.ts b/packages/ozone/src/lexicon/index.ts index 3e31f2a9ae2..cb526019090 100644 --- a/packages/ozone/src/lexicon/index.ts +++ b/packages/ozone/src/lexicon/index.ts @@ -95,14 +95,14 @@ import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describ import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds' import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes' import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed' +import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator' import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators' -import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton' import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes' import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed' -import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread' +import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes' import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy' import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds' @@ -114,8 +114,8 @@ import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks' import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers' import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows' import * as AppBskyGraphGetKnownFollowers from './types/app/bsky/graph/getKnownFollowers' -import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetList from './types/app/bsky/graph/getList' +import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes' import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists' import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' @@ -150,15 +150,15 @@ import * as AppBskyVideoUploadVideo from './types/app/bsky/video/uploadVideo' import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount' import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData' import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf' -import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo' +import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog' import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages' import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo' import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos' import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo' -import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage' +import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo' import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead' import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata' @@ -183,10 +183,10 @@ import * as ToolsOzoneSetDeleteSet from './types/tools/ozone/set/deleteSet' import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues' import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues' import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets' +import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet' import * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions' import * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions' import * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption' -import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet' import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation' import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts' import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts' @@ -1362,6 +1362,17 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } + getFeed( + cfg: ConfigOf< + AV, + AppBskyFeedGetFeed.Handler>, + AppBskyFeedGetFeed.HandlerReqCtx> + >, + ) { + const nsid = 'app.bsky.feed.getFeed' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) + } + getFeedGenerator( cfg: ConfigOf< AV, @@ -1384,17 +1395,6 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } - getFeed( - cfg: ConfigOf< - AV, - AppBskyFeedGetFeed.Handler>, - AppBskyFeedGetFeed.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getFeed' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - getFeedSkeleton( cfg: ConfigOf< AV, @@ -1428,25 +1428,25 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } - getPosts( + getPostThread( cfg: ConfigOf< AV, - AppBskyFeedGetPosts.Handler>, - AppBskyFeedGetPosts.HandlerReqCtx> + AppBskyFeedGetPostThread.Handler>, + AppBskyFeedGetPostThread.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.feed.getPosts' // @ts-ignore + const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getPostThread( + getPosts( cfg: ConfigOf< AV, - AppBskyFeedGetPostThread.Handler>, - AppBskyFeedGetPostThread.HandlerReqCtx> + AppBskyFeedGetPosts.Handler>, + AppBskyFeedGetPosts.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore + const nsid = 'app.bsky.feed.getPosts' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -1579,25 +1579,25 @@ export class AppBskyGraphNS { return this._server.xrpc.method(nsid, cfg) } - getListBlocks( + getList( cfg: ConfigOf< AV, - AppBskyGraphGetListBlocks.Handler>, - AppBskyGraphGetListBlocks.HandlerReqCtx> + AppBskyGraphGetList.Handler>, + AppBskyGraphGetList.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.graph.getListBlocks' // @ts-ignore + const nsid = 'app.bsky.graph.getList' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getList( + getListBlocks( cfg: ConfigOf< AV, - AppBskyGraphGetList.Handler>, - AppBskyGraphGetList.HandlerReqCtx> + AppBskyGraphGetListBlocks.Handler>, + AppBskyGraphGetListBlocks.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.graph.getList' // @ts-ignore + const nsid = 'app.bsky.graph.getListBlocks' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -2055,25 +2055,25 @@ export class ChatBskyConvoNS { return this._server.xrpc.method(nsid, cfg) } - getConvoForMembers( + getConvo( cfg: ConfigOf< AV, - ChatBskyConvoGetConvoForMembers.Handler>, - ChatBskyConvoGetConvoForMembers.HandlerReqCtx> + ChatBskyConvoGetConvo.Handler>, + ChatBskyConvoGetConvo.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore + const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getConvo( + getConvoForMembers( cfg: ConfigOf< AV, - ChatBskyConvoGetConvo.Handler>, - ChatBskyConvoGetConvo.HandlerReqCtx> + ChatBskyConvoGetConvoForMembers.Handler>, + ChatBskyConvoGetConvoForMembers.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore + const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -2132,25 +2132,25 @@ export class ChatBskyConvoNS { return this._server.xrpc.method(nsid, cfg) } - sendMessageBatch( + sendMessage( cfg: ConfigOf< AV, - ChatBskyConvoSendMessageBatch.Handler>, - ChatBskyConvoSendMessageBatch.HandlerReqCtx> + ChatBskyConvoSendMessage.Handler>, + ChatBskyConvoSendMessage.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore + const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - sendMessage( + sendMessageBatch( cfg: ConfigOf< AV, - ChatBskyConvoSendMessage.Handler>, - ChatBskyConvoSendMessage.HandlerReqCtx> + ChatBskyConvoSendMessageBatch.Handler>, + ChatBskyConvoSendMessageBatch.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore + const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } diff --git a/packages/ozone/src/lexicon/lexicons.ts b/packages/ozone/src/lexicon/lexicons.ts index 78d6da017de..32bd89f98a4 100644 --- a/packages/ozone/src/lexicon/lexicons.ts +++ b/packages/ozone/src/lexicon/lexicons.ts @@ -6198,6 +6198,60 @@ export const schemaDict = { }, }, }, + AppBskyFeedGetFeed: { + lexicon: 1, + id: 'app.bsky.feed.getFeed', + defs: { + main: { + type: 'query', + description: + "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.", + parameters: { + type: 'params', + required: ['feed'], + properties: { + feed: { + type: 'string', + format: 'at-uri', + }, + limit: { + type: 'integer', + minimum: 1, + maximum: 100, + default: 50, + }, + cursor: { + type: 'string', + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['feed'], + properties: { + cursor: { + type: 'string', + }, + feed: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.feed.defs#feedViewPost', + }, + }, + }, + }, + }, + errors: [ + { + name: 'UnknownFeed', + }, + ], + }, + }, + }, AppBskyFeedGetFeedGenerator: { lexicon: 1, id: 'app.bsky.feed.getFeedGenerator', @@ -6282,60 +6336,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedGetFeed: { - lexicon: 1, - id: 'app.bsky.feed.getFeed', - defs: { - main: { - type: 'query', - description: - "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.", - parameters: { - type: 'params', - required: ['feed'], - properties: { - feed: { - type: 'string', - format: 'at-uri', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['feed'], - properties: { - cursor: { - type: 'string', - }, - feed: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#feedViewPost', - }, - }, - }, - }, - }, - errors: [ - { - name: 'UnknownFeed', - }, - ], - }, - }, - }, AppBskyFeedGetFeedSkeleton: { lexicon: 1, id: 'app.bsky.feed.getFeedSkeleton', @@ -6529,48 +6529,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedGetPosts: { - lexicon: 1, - id: 'app.bsky.feed.getPosts', - defs: { - main: { - type: 'query', - description: - "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", - parameters: { - type: 'params', - required: ['uris'], - properties: { - uris: { - type: 'array', - description: 'List of post AT-URIs to return hydrated views for.', - items: { - type: 'string', - format: 'at-uri', - }, - maxLength: 25, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['posts'], - properties: { - posts: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#postView', - }, - }, - }, - }, - }, - }, - }, - }, AppBskyFeedGetPostThread: { lexicon: 1, id: 'app.bsky.feed.getPostThread', @@ -6635,6 +6593,48 @@ export const schemaDict = { }, }, }, + AppBskyFeedGetPosts: { + lexicon: 1, + id: 'app.bsky.feed.getPosts', + defs: { + main: { + type: 'query', + description: + "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", + parameters: { + type: 'params', + required: ['uris'], + properties: { + uris: { + type: 'array', + description: 'List of post AT-URIs to return hydrated views for.', + items: { + type: 'string', + format: 'at-uri', + }, + maxLength: 25, + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['posts'], + properties: { + posts: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.feed.defs#postView', + }, + }, + }, + }, + }, + }, + }, + }, AppBskyFeedGetQuotes: { lexicon: 1, id: 'app.bsky.feed.getQuotes', @@ -6879,56 +6879,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedPostgate: { - lexicon: 1, - id: 'app.bsky.feed.postgate', - defs: { - main: { - type: 'record', - key: 'tid', - description: - 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', - record: { - type: 'object', - required: ['post', 'createdAt'], - properties: { - createdAt: { - type: 'string', - format: 'datetime', - }, - post: { - type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) to the post record.', - }, - detachedEmbeddingUris: { - type: 'array', - maxLength: 50, - items: { - type: 'string', - format: 'at-uri', - }, - description: - 'List of AT-URIs embedding this post that the author has detached from.', - }, - embeddingRules: { - type: 'array', - maxLength: 5, - items: { - type: 'union', - refs: ['lex:app.bsky.feed.postgate#disableRule'], - }, - }, - }, - }, - }, - disableRule: { - type: 'object', - description: 'Disables embedding of this post.', - properties: {}, - }, - }, - }, AppBskyFeedPost: { lexicon: 1, id: 'app.bsky.feed.post', @@ -7065,6 +7015,56 @@ export const schemaDict = { }, }, }, + AppBskyFeedPostgate: { + lexicon: 1, + id: 'app.bsky.feed.postgate', + defs: { + main: { + type: 'record', + key: 'tid', + description: + 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', + record: { + type: 'object', + required: ['post', 'createdAt'], + properties: { + createdAt: { + type: 'string', + format: 'datetime', + }, + post: { + type: 'string', + format: 'at-uri', + description: 'Reference (AT-URI) to the post record.', + }, + detachedEmbeddingUris: { + type: 'array', + maxLength: 50, + items: { + type: 'string', + format: 'at-uri', + }, + description: + 'List of AT-URIs embedding this post that the author has detached from.', + }, + embeddingRules: { + type: 'array', + maxLength: 5, + items: { + type: 'union', + refs: ['lex:app.bsky.feed.postgate#disableRule'], + }, + }, + }, + }, + }, + disableRule: { + type: 'object', + description: 'Disables embedding of this post.', + properties: {}, + }, + }, + }, AppBskyFeedRepost: { lexicon: 1, id: 'app.bsky.feed.repost', @@ -7921,17 +7921,23 @@ export const schemaDict = { }, }, }, - AppBskyGraphGetListBlocks: { + AppBskyGraphGetList: { lexicon: 1, - id: 'app.bsky.graph.getListBlocks', + id: 'app.bsky.graph.getList', defs: { main: { type: 'query', description: - 'Get mod lists that the requesting account (actor) is blocking. Requires auth.', + "Gets a 'view' (with additional context) of a specified list.", parameters: { type: 'params', + required: ['list'], properties: { + list: { + type: 'string', + format: 'at-uri', + description: 'Reference (AT-URI) of the list record to hydrate.', + }, limit: { type: 'integer', minimum: 1, @@ -7947,16 +7953,20 @@ export const schemaDict = { encoding: 'application/json', schema: { type: 'object', - required: ['lists'], + required: ['list', 'items'], properties: { cursor: { type: 'string', }, - lists: { + list: { + type: 'ref', + ref: 'lex:app.bsky.graph.defs#listView', + }, + items: { type: 'array', items: { type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', + ref: 'lex:app.bsky.graph.defs#listItemView', }, }, }, @@ -7965,23 +7975,17 @@ export const schemaDict = { }, }, }, - AppBskyGraphGetList: { + AppBskyGraphGetListBlocks: { lexicon: 1, - id: 'app.bsky.graph.getList', + id: 'app.bsky.graph.getListBlocks', defs: { main: { type: 'query', description: - "Gets a 'view' (with additional context) of a specified list.", + 'Get mod lists that the requesting account (actor) is blocking. Requires auth.', parameters: { type: 'params', - required: ['list'], properties: { - list: { - type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) of the list record to hydrate.', - }, limit: { type: 'integer', minimum: 1, @@ -7997,20 +8001,16 @@ export const schemaDict = { encoding: 'application/json', schema: { type: 'object', - required: ['list', 'items'], + required: ['lists'], properties: { cursor: { type: 'string', }, - list: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', - }, - items: { + lists: { type: 'array', items: { type: 'ref', - ref: 'lex:app.bsky.graph.defs#listItemView', + ref: 'lex:app.bsky.graph.defs#listView', }, }, }, @@ -8307,30 +8307,85 @@ export const schemaDict = { properties: { actor: { type: 'string', - format: 'at-identifier', + format: 'at-identifier', + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['suggestions'], + properties: { + suggestions: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.actor.defs#profileView', + }, + }, + isFallback: { + type: 'boolean', + description: + 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid', + default: false, + }, + }, + }, + }, + }, + }, + }, + AppBskyGraphList: { + lexicon: 1, + id: 'app.bsky.graph.list', + defs: { + main: { + type: 'record', + description: + 'Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.', + key: 'tid', + record: { + type: 'object', + required: ['name', 'purpose', 'createdAt'], + properties: { + purpose: { + type: 'ref', + description: + 'Defines the purpose of the list (aka, moderation-oriented or curration-oriented)', + ref: 'lex:app.bsky.graph.defs#listPurpose', + }, + name: { + type: 'string', + maxLength: 64, + minLength: 1, + description: 'Display name for list; can not be empty.', + }, + description: { + type: 'string', + maxGraphemes: 300, + maxLength: 3000, }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['suggestions'], - properties: { - suggestions: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - isFallback: { - type: 'boolean', - description: - 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid', - default: false, + descriptionFacets: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.richtext.facet', }, }, + avatar: { + type: 'blob', + accept: ['image/png', 'image/jpeg'], + maxSize: 1000000, + }, + labels: { + type: 'union', + refs: ['lex:com.atproto.label.defs#selfLabels'], + }, + createdAt: { + type: 'string', + format: 'datetime', + }, }, }, }, @@ -8396,61 +8451,6 @@ export const schemaDict = { }, }, }, - AppBskyGraphList: { - lexicon: 1, - id: 'app.bsky.graph.list', - defs: { - main: { - type: 'record', - description: - 'Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.', - key: 'tid', - record: { - type: 'object', - required: ['name', 'purpose', 'createdAt'], - properties: { - purpose: { - type: 'ref', - description: - 'Defines the purpose of the list (aka, moderation-oriented or curration-oriented)', - ref: 'lex:app.bsky.graph.defs#listPurpose', - }, - name: { - type: 'string', - maxLength: 64, - minLength: 1, - description: 'Display name for list; can not be empty.', - }, - description: { - type: 'string', - maxGraphemes: 300, - maxLength: 3000, - }, - descriptionFacets: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.richtext.facet', - }, - }, - avatar: { - type: 'blob', - accept: ['image/png', 'image/jpeg'], - maxSize: 1000000, - }, - labels: { - type: 'union', - refs: ['lex:com.atproto.label.defs#selfLabels'], - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, AppBskyGraphMuteActor: { lexicon: 1, id: 'app.bsky.graph.muteActor', @@ -10235,24 +10235,18 @@ export const schemaDict = { }, }, }, - ChatBskyConvoGetConvoForMembers: { + ChatBskyConvoGetConvo: { lexicon: 1, - id: 'chat.bsky.convo.getConvoForMembers', + id: 'chat.bsky.convo.getConvo', defs: { main: { type: 'query', parameters: { type: 'params', - required: ['members'], + required: ['convoId'], properties: { - members: { - type: 'array', - minLength: 1, - maxLength: 10, - items: { - type: 'string', - format: 'did', - }, + convoId: { + type: 'string', }, }, }, @@ -10272,18 +10266,24 @@ export const schemaDict = { }, }, }, - ChatBskyConvoGetConvo: { + ChatBskyConvoGetConvoForMembers: { lexicon: 1, - id: 'chat.bsky.convo.getConvo', + id: 'chat.bsky.convo.getConvoForMembers', defs: { main: { type: 'query', parameters: { type: 'params', - required: ['convoId'], + required: ['members'], properties: { - convoId: { - type: 'string', + members: { + type: 'array', + minLength: 1, + maxLength: 10, + items: { + type: 'string', + format: 'did', + }, }, }, }, @@ -10506,6 +10506,38 @@ export const schemaDict = { }, }, }, + ChatBskyConvoSendMessage: { + lexicon: 1, + id: 'chat.bsky.convo.sendMessage', + defs: { + main: { + type: 'procedure', + input: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['convoId', 'message'], + properties: { + convoId: { + type: 'string', + }, + message: { + type: 'ref', + ref: 'lex:chat.bsky.convo.defs#messageInput', + }, + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:chat.bsky.convo.defs#messageView', + }, + }, + }, + }, + }, ChatBskyConvoSendMessageBatch: { lexicon: 1, id: 'chat.bsky.convo.sendMessageBatch', @@ -10561,38 +10593,6 @@ export const schemaDict = { }, }, }, - ChatBskyConvoSendMessage: { - lexicon: 1, - id: 'chat.bsky.convo.sendMessage', - defs: { - main: { - type: 'procedure', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['convoId', 'message'], - properties: { - convoId: { - type: 'string', - }, - message: { - type: 'ref', - ref: 'lex:chat.bsky.convo.defs#messageInput', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:chat.bsky.convo.defs#messageView', - }, - }, - }, - }, - }, ChatBskyConvoUnmuteConvo: { lexicon: 1, id: 'chat.bsky.convo.unmuteConvo', @@ -12929,6 +12929,30 @@ export const schemaDict = { }, }, }, + ToolsOzoneSetUpsertSet: { + lexicon: 1, + id: 'tools.ozone.set.upsertSet', + defs: { + main: { + type: 'procedure', + description: 'Create or update set metadata', + input: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:tools.ozone.set.defs#set', + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:tools.ozone.set.defs#setView', + }, + }, + }, + }, + }, ToolsOzoneSettingDefs: { lexicon: 1, id: 'tools.ozone.setting.defs', @@ -13148,30 +13172,6 @@ export const schemaDict = { }, }, }, - ToolsOzoneSetUpsertSet: { - lexicon: 1, - id: 'tools.ozone.set.upsertSet', - defs: { - main: { - type: 'procedure', - description: 'Create or update set metadata', - input: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:tools.ozone.set.defs#set', - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:tools.ozone.set.defs#setView', - }, - }, - }, - }, - }, ToolsOzoneSignatureDefs: { lexicon: 1, id: 'tools.ozone.signature.defs', @@ -13688,21 +13688,21 @@ export const ids = { AppBskyFeedGetActorFeeds: 'app.bsky.feed.getActorFeeds', AppBskyFeedGetActorLikes: 'app.bsky.feed.getActorLikes', AppBskyFeedGetAuthorFeed: 'app.bsky.feed.getAuthorFeed', + AppBskyFeedGetFeed: 'app.bsky.feed.getFeed', AppBskyFeedGetFeedGenerator: 'app.bsky.feed.getFeedGenerator', AppBskyFeedGetFeedGenerators: 'app.bsky.feed.getFeedGenerators', - AppBskyFeedGetFeed: 'app.bsky.feed.getFeed', AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton', AppBskyFeedGetLikes: 'app.bsky.feed.getLikes', AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed', - AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread', + AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes', AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy', AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds', AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline', AppBskyFeedLike: 'app.bsky.feed.like', - AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedPost: 'app.bsky.feed.post', + AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedRepost: 'app.bsky.feed.repost', AppBskyFeedSearchPosts: 'app.bsky.feed.searchPosts', AppBskyFeedSendInteractions: 'app.bsky.feed.sendInteractions', @@ -13715,8 +13715,8 @@ export const ids = { AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers', AppBskyGraphGetFollows: 'app.bsky.graph.getFollows', AppBskyGraphGetKnownFollowers: 'app.bsky.graph.getKnownFollowers', - AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks', AppBskyGraphGetList: 'app.bsky.graph.getList', + AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks', AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes', AppBskyGraphGetLists: 'app.bsky.graph.getLists', AppBskyGraphGetMutes: 'app.bsky.graph.getMutes', @@ -13725,9 +13725,9 @@ export const ids = { AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks', AppBskyGraphGetSuggestedFollowsByActor: 'app.bsky.graph.getSuggestedFollowsByActor', + AppBskyGraphList: 'app.bsky.graph.list', AppBskyGraphListblock: 'app.bsky.graph.listblock', AppBskyGraphListitem: 'app.bsky.graph.listitem', - AppBskyGraphList: 'app.bsky.graph.list', AppBskyGraphMuteActor: 'app.bsky.graph.muteActor', AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList', AppBskyGraphMuteThread: 'app.bsky.graph.muteThread', @@ -13770,15 +13770,15 @@ export const ids = { ChatBskyActorExportAccountData: 'chat.bsky.actor.exportAccountData', ChatBskyConvoDefs: 'chat.bsky.convo.defs', ChatBskyConvoDeleteMessageForSelf: 'chat.bsky.convo.deleteMessageForSelf', - ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers', ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo', + ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers', ChatBskyConvoGetLog: 'chat.bsky.convo.getLog', ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages', ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo', ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos', ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo', - ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch', ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage', + ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch', ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo', ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead', ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata', @@ -13810,11 +13810,11 @@ export const ids = { ToolsOzoneSetDeleteValues: 'tools.ozone.set.deleteValues', ToolsOzoneSetGetValues: 'tools.ozone.set.getValues', ToolsOzoneSetQuerySets: 'tools.ozone.set.querySets', + ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet', ToolsOzoneSettingDefs: 'tools.ozone.setting.defs', ToolsOzoneSettingListOptions: 'tools.ozone.setting.listOptions', ToolsOzoneSettingRemoveOptions: 'tools.ozone.setting.removeOptions', ToolsOzoneSettingUpsertOption: 'tools.ozone.setting.upsertOption', - ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet', ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs', ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation', ToolsOzoneSignatureFindRelatedAccounts: diff --git a/packages/pds/src/lexicon/index.ts b/packages/pds/src/lexicon/index.ts index 3e31f2a9ae2..cb526019090 100644 --- a/packages/pds/src/lexicon/index.ts +++ b/packages/pds/src/lexicon/index.ts @@ -95,14 +95,14 @@ import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describ import * as AppBskyFeedGetActorFeeds from './types/app/bsky/feed/getActorFeeds' import * as AppBskyFeedGetActorLikes from './types/app/bsky/feed/getActorLikes' import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed' +import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedGenerator from './types/app/bsky/feed/getFeedGenerator' import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGenerators' -import * as AppBskyFeedGetFeed from './types/app/bsky/feed/getFeed' import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton' import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes' import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed' -import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread' +import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes' import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy' import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds' @@ -114,8 +114,8 @@ import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks' import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers' import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows' import * as AppBskyGraphGetKnownFollowers from './types/app/bsky/graph/getKnownFollowers' -import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetList from './types/app/bsky/graph/getList' +import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks' import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes' import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists' import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes' @@ -150,15 +150,15 @@ import * as AppBskyVideoUploadVideo from './types/app/bsky/video/uploadVideo' import * as ChatBskyActorDeleteAccount from './types/chat/bsky/actor/deleteAccount' import * as ChatBskyActorExportAccountData from './types/chat/bsky/actor/exportAccountData' import * as ChatBskyConvoDeleteMessageForSelf from './types/chat/bsky/convo/deleteMessageForSelf' -import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetConvo from './types/chat/bsky/convo/getConvo' +import * as ChatBskyConvoGetConvoForMembers from './types/chat/bsky/convo/getConvoForMembers' import * as ChatBskyConvoGetLog from './types/chat/bsky/convo/getLog' import * as ChatBskyConvoGetMessages from './types/chat/bsky/convo/getMessages' import * as ChatBskyConvoLeaveConvo from './types/chat/bsky/convo/leaveConvo' import * as ChatBskyConvoListConvos from './types/chat/bsky/convo/listConvos' import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo' -import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage' +import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch' import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo' import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead' import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata' @@ -183,10 +183,10 @@ import * as ToolsOzoneSetDeleteSet from './types/tools/ozone/set/deleteSet' import * as ToolsOzoneSetDeleteValues from './types/tools/ozone/set/deleteValues' import * as ToolsOzoneSetGetValues from './types/tools/ozone/set/getValues' import * as ToolsOzoneSetQuerySets from './types/tools/ozone/set/querySets' +import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet' import * as ToolsOzoneSettingListOptions from './types/tools/ozone/setting/listOptions' import * as ToolsOzoneSettingRemoveOptions from './types/tools/ozone/setting/removeOptions' import * as ToolsOzoneSettingUpsertOption from './types/tools/ozone/setting/upsertOption' -import * as ToolsOzoneSetUpsertSet from './types/tools/ozone/set/upsertSet' import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation' import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts' import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts' @@ -1362,6 +1362,17 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } + getFeed( + cfg: ConfigOf< + AV, + AppBskyFeedGetFeed.Handler>, + AppBskyFeedGetFeed.HandlerReqCtx> + >, + ) { + const nsid = 'app.bsky.feed.getFeed' // @ts-ignore + return this._server.xrpc.method(nsid, cfg) + } + getFeedGenerator( cfg: ConfigOf< AV, @@ -1384,17 +1395,6 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } - getFeed( - cfg: ConfigOf< - AV, - AppBskyFeedGetFeed.Handler>, - AppBskyFeedGetFeed.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getFeed' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - getFeedSkeleton( cfg: ConfigOf< AV, @@ -1428,25 +1428,25 @@ export class AppBskyFeedNS { return this._server.xrpc.method(nsid, cfg) } - getPosts( + getPostThread( cfg: ConfigOf< AV, - AppBskyFeedGetPosts.Handler>, - AppBskyFeedGetPosts.HandlerReqCtx> + AppBskyFeedGetPostThread.Handler>, + AppBskyFeedGetPostThread.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.feed.getPosts' // @ts-ignore + const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getPostThread( + getPosts( cfg: ConfigOf< AV, - AppBskyFeedGetPostThread.Handler>, - AppBskyFeedGetPostThread.HandlerReqCtx> + AppBskyFeedGetPosts.Handler>, + AppBskyFeedGetPosts.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore + const nsid = 'app.bsky.feed.getPosts' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -1579,25 +1579,25 @@ export class AppBskyGraphNS { return this._server.xrpc.method(nsid, cfg) } - getListBlocks( + getList( cfg: ConfigOf< AV, - AppBskyGraphGetListBlocks.Handler>, - AppBskyGraphGetListBlocks.HandlerReqCtx> + AppBskyGraphGetList.Handler>, + AppBskyGraphGetList.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.graph.getListBlocks' // @ts-ignore + const nsid = 'app.bsky.graph.getList' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getList( + getListBlocks( cfg: ConfigOf< AV, - AppBskyGraphGetList.Handler>, - AppBskyGraphGetList.HandlerReqCtx> + AppBskyGraphGetListBlocks.Handler>, + AppBskyGraphGetListBlocks.HandlerReqCtx> >, ) { - const nsid = 'app.bsky.graph.getList' // @ts-ignore + const nsid = 'app.bsky.graph.getListBlocks' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -2055,25 +2055,25 @@ export class ChatBskyConvoNS { return this._server.xrpc.method(nsid, cfg) } - getConvoForMembers( + getConvo( cfg: ConfigOf< AV, - ChatBskyConvoGetConvoForMembers.Handler>, - ChatBskyConvoGetConvoForMembers.HandlerReqCtx> + ChatBskyConvoGetConvo.Handler>, + ChatBskyConvoGetConvo.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore + const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - getConvo( + getConvoForMembers( cfg: ConfigOf< AV, - ChatBskyConvoGetConvo.Handler>, - ChatBskyConvoGetConvo.HandlerReqCtx> + ChatBskyConvoGetConvoForMembers.Handler>, + ChatBskyConvoGetConvoForMembers.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.getConvo' // @ts-ignore + const nsid = 'chat.bsky.convo.getConvoForMembers' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } @@ -2132,25 +2132,25 @@ export class ChatBskyConvoNS { return this._server.xrpc.method(nsid, cfg) } - sendMessageBatch( + sendMessage( cfg: ConfigOf< AV, - ChatBskyConvoSendMessageBatch.Handler>, - ChatBskyConvoSendMessageBatch.HandlerReqCtx> + ChatBskyConvoSendMessage.Handler>, + ChatBskyConvoSendMessage.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore + const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } - sendMessage( + sendMessageBatch( cfg: ConfigOf< AV, - ChatBskyConvoSendMessage.Handler>, - ChatBskyConvoSendMessage.HandlerReqCtx> + ChatBskyConvoSendMessageBatch.Handler>, + ChatBskyConvoSendMessageBatch.HandlerReqCtx> >, ) { - const nsid = 'chat.bsky.convo.sendMessage' // @ts-ignore + const nsid = 'chat.bsky.convo.sendMessageBatch' // @ts-ignore return this._server.xrpc.method(nsid, cfg) } diff --git a/packages/pds/src/lexicon/lexicons.ts b/packages/pds/src/lexicon/lexicons.ts index 78d6da017de..32bd89f98a4 100644 --- a/packages/pds/src/lexicon/lexicons.ts +++ b/packages/pds/src/lexicon/lexicons.ts @@ -6198,6 +6198,60 @@ export const schemaDict = { }, }, }, + AppBskyFeedGetFeed: { + lexicon: 1, + id: 'app.bsky.feed.getFeed', + defs: { + main: { + type: 'query', + description: + "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.", + parameters: { + type: 'params', + required: ['feed'], + properties: { + feed: { + type: 'string', + format: 'at-uri', + }, + limit: { + type: 'integer', + minimum: 1, + maximum: 100, + default: 50, + }, + cursor: { + type: 'string', + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['feed'], + properties: { + cursor: { + type: 'string', + }, + feed: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.feed.defs#feedViewPost', + }, + }, + }, + }, + }, + errors: [ + { + name: 'UnknownFeed', + }, + ], + }, + }, + }, AppBskyFeedGetFeedGenerator: { lexicon: 1, id: 'app.bsky.feed.getFeedGenerator', @@ -6282,60 +6336,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedGetFeed: { - lexicon: 1, - id: 'app.bsky.feed.getFeed', - defs: { - main: { - type: 'query', - description: - "Get a hydrated feed from an actor's selected feed generator. Implemented by App View.", - parameters: { - type: 'params', - required: ['feed'], - properties: { - feed: { - type: 'string', - format: 'at-uri', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['feed'], - properties: { - cursor: { - type: 'string', - }, - feed: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#feedViewPost', - }, - }, - }, - }, - }, - errors: [ - { - name: 'UnknownFeed', - }, - ], - }, - }, - }, AppBskyFeedGetFeedSkeleton: { lexicon: 1, id: 'app.bsky.feed.getFeedSkeleton', @@ -6529,48 +6529,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedGetPosts: { - lexicon: 1, - id: 'app.bsky.feed.getPosts', - defs: { - main: { - type: 'query', - description: - "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", - parameters: { - type: 'params', - required: ['uris'], - properties: { - uris: { - type: 'array', - description: 'List of post AT-URIs to return hydrated views for.', - items: { - type: 'string', - format: 'at-uri', - }, - maxLength: 25, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['posts'], - properties: { - posts: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#postView', - }, - }, - }, - }, - }, - }, - }, - }, AppBskyFeedGetPostThread: { lexicon: 1, id: 'app.bsky.feed.getPostThread', @@ -6635,6 +6593,48 @@ export const schemaDict = { }, }, }, + AppBskyFeedGetPosts: { + lexicon: 1, + id: 'app.bsky.feed.getPosts', + defs: { + main: { + type: 'query', + description: + "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.", + parameters: { + type: 'params', + required: ['uris'], + properties: { + uris: { + type: 'array', + description: 'List of post AT-URIs to return hydrated views for.', + items: { + type: 'string', + format: 'at-uri', + }, + maxLength: 25, + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['posts'], + properties: { + posts: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.feed.defs#postView', + }, + }, + }, + }, + }, + }, + }, + }, AppBskyFeedGetQuotes: { lexicon: 1, id: 'app.bsky.feed.getQuotes', @@ -6879,56 +6879,6 @@ export const schemaDict = { }, }, }, - AppBskyFeedPostgate: { - lexicon: 1, - id: 'app.bsky.feed.postgate', - defs: { - main: { - type: 'record', - key: 'tid', - description: - 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', - record: { - type: 'object', - required: ['post', 'createdAt'], - properties: { - createdAt: { - type: 'string', - format: 'datetime', - }, - post: { - type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) to the post record.', - }, - detachedEmbeddingUris: { - type: 'array', - maxLength: 50, - items: { - type: 'string', - format: 'at-uri', - }, - description: - 'List of AT-URIs embedding this post that the author has detached from.', - }, - embeddingRules: { - type: 'array', - maxLength: 5, - items: { - type: 'union', - refs: ['lex:app.bsky.feed.postgate#disableRule'], - }, - }, - }, - }, - }, - disableRule: { - type: 'object', - description: 'Disables embedding of this post.', - properties: {}, - }, - }, - }, AppBskyFeedPost: { lexicon: 1, id: 'app.bsky.feed.post', @@ -7065,6 +7015,56 @@ export const schemaDict = { }, }, }, + AppBskyFeedPostgate: { + lexicon: 1, + id: 'app.bsky.feed.postgate', + defs: { + main: { + type: 'record', + key: 'tid', + description: + 'Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.', + record: { + type: 'object', + required: ['post', 'createdAt'], + properties: { + createdAt: { + type: 'string', + format: 'datetime', + }, + post: { + type: 'string', + format: 'at-uri', + description: 'Reference (AT-URI) to the post record.', + }, + detachedEmbeddingUris: { + type: 'array', + maxLength: 50, + items: { + type: 'string', + format: 'at-uri', + }, + description: + 'List of AT-URIs embedding this post that the author has detached from.', + }, + embeddingRules: { + type: 'array', + maxLength: 5, + items: { + type: 'union', + refs: ['lex:app.bsky.feed.postgate#disableRule'], + }, + }, + }, + }, + }, + disableRule: { + type: 'object', + description: 'Disables embedding of this post.', + properties: {}, + }, + }, + }, AppBskyFeedRepost: { lexicon: 1, id: 'app.bsky.feed.repost', @@ -7921,17 +7921,23 @@ export const schemaDict = { }, }, }, - AppBskyGraphGetListBlocks: { + AppBskyGraphGetList: { lexicon: 1, - id: 'app.bsky.graph.getListBlocks', + id: 'app.bsky.graph.getList', defs: { main: { type: 'query', description: - 'Get mod lists that the requesting account (actor) is blocking. Requires auth.', + "Gets a 'view' (with additional context) of a specified list.", parameters: { type: 'params', + required: ['list'], properties: { + list: { + type: 'string', + format: 'at-uri', + description: 'Reference (AT-URI) of the list record to hydrate.', + }, limit: { type: 'integer', minimum: 1, @@ -7947,16 +7953,20 @@ export const schemaDict = { encoding: 'application/json', schema: { type: 'object', - required: ['lists'], + required: ['list', 'items'], properties: { cursor: { type: 'string', }, - lists: { + list: { + type: 'ref', + ref: 'lex:app.bsky.graph.defs#listView', + }, + items: { type: 'array', items: { type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', + ref: 'lex:app.bsky.graph.defs#listItemView', }, }, }, @@ -7965,23 +7975,17 @@ export const schemaDict = { }, }, }, - AppBskyGraphGetList: { + AppBskyGraphGetListBlocks: { lexicon: 1, - id: 'app.bsky.graph.getList', + id: 'app.bsky.graph.getListBlocks', defs: { main: { type: 'query', description: - "Gets a 'view' (with additional context) of a specified list.", + 'Get mod lists that the requesting account (actor) is blocking. Requires auth.', parameters: { type: 'params', - required: ['list'], properties: { - list: { - type: 'string', - format: 'at-uri', - description: 'Reference (AT-URI) of the list record to hydrate.', - }, limit: { type: 'integer', minimum: 1, @@ -7997,20 +8001,16 @@ export const schemaDict = { encoding: 'application/json', schema: { type: 'object', - required: ['list', 'items'], + required: ['lists'], properties: { cursor: { type: 'string', }, - list: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', - }, - items: { + lists: { type: 'array', items: { type: 'ref', - ref: 'lex:app.bsky.graph.defs#listItemView', + ref: 'lex:app.bsky.graph.defs#listView', }, }, }, @@ -8307,30 +8307,85 @@ export const schemaDict = { properties: { actor: { type: 'string', - format: 'at-identifier', + format: 'at-identifier', + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['suggestions'], + properties: { + suggestions: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.actor.defs#profileView', + }, + }, + isFallback: { + type: 'boolean', + description: + 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid', + default: false, + }, + }, + }, + }, + }, + }, + }, + AppBskyGraphList: { + lexicon: 1, + id: 'app.bsky.graph.list', + defs: { + main: { + type: 'record', + description: + 'Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.', + key: 'tid', + record: { + type: 'object', + required: ['name', 'purpose', 'createdAt'], + properties: { + purpose: { + type: 'ref', + description: + 'Defines the purpose of the list (aka, moderation-oriented or curration-oriented)', + ref: 'lex:app.bsky.graph.defs#listPurpose', + }, + name: { + type: 'string', + maxLength: 64, + minLength: 1, + description: 'Display name for list; can not be empty.', + }, + description: { + type: 'string', + maxGraphemes: 300, + maxLength: 3000, }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['suggestions'], - properties: { - suggestions: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - isFallback: { - type: 'boolean', - description: - 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid', - default: false, + descriptionFacets: { + type: 'array', + items: { + type: 'ref', + ref: 'lex:app.bsky.richtext.facet', }, }, + avatar: { + type: 'blob', + accept: ['image/png', 'image/jpeg'], + maxSize: 1000000, + }, + labels: { + type: 'union', + refs: ['lex:com.atproto.label.defs#selfLabels'], + }, + createdAt: { + type: 'string', + format: 'datetime', + }, }, }, }, @@ -8396,61 +8451,6 @@ export const schemaDict = { }, }, }, - AppBskyGraphList: { - lexicon: 1, - id: 'app.bsky.graph.list', - defs: { - main: { - type: 'record', - description: - 'Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.', - key: 'tid', - record: { - type: 'object', - required: ['name', 'purpose', 'createdAt'], - properties: { - purpose: { - type: 'ref', - description: - 'Defines the purpose of the list (aka, moderation-oriented or curration-oriented)', - ref: 'lex:app.bsky.graph.defs#listPurpose', - }, - name: { - type: 'string', - maxLength: 64, - minLength: 1, - description: 'Display name for list; can not be empty.', - }, - description: { - type: 'string', - maxGraphemes: 300, - maxLength: 3000, - }, - descriptionFacets: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.richtext.facet', - }, - }, - avatar: { - type: 'blob', - accept: ['image/png', 'image/jpeg'], - maxSize: 1000000, - }, - labels: { - type: 'union', - refs: ['lex:com.atproto.label.defs#selfLabels'], - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, AppBskyGraphMuteActor: { lexicon: 1, id: 'app.bsky.graph.muteActor', @@ -10235,24 +10235,18 @@ export const schemaDict = { }, }, }, - ChatBskyConvoGetConvoForMembers: { + ChatBskyConvoGetConvo: { lexicon: 1, - id: 'chat.bsky.convo.getConvoForMembers', + id: 'chat.bsky.convo.getConvo', defs: { main: { type: 'query', parameters: { type: 'params', - required: ['members'], + required: ['convoId'], properties: { - members: { - type: 'array', - minLength: 1, - maxLength: 10, - items: { - type: 'string', - format: 'did', - }, + convoId: { + type: 'string', }, }, }, @@ -10272,18 +10266,24 @@ export const schemaDict = { }, }, }, - ChatBskyConvoGetConvo: { + ChatBskyConvoGetConvoForMembers: { lexicon: 1, - id: 'chat.bsky.convo.getConvo', + id: 'chat.bsky.convo.getConvoForMembers', defs: { main: { type: 'query', parameters: { type: 'params', - required: ['convoId'], + required: ['members'], properties: { - convoId: { - type: 'string', + members: { + type: 'array', + minLength: 1, + maxLength: 10, + items: { + type: 'string', + format: 'did', + }, }, }, }, @@ -10506,6 +10506,38 @@ export const schemaDict = { }, }, }, + ChatBskyConvoSendMessage: { + lexicon: 1, + id: 'chat.bsky.convo.sendMessage', + defs: { + main: { + type: 'procedure', + input: { + encoding: 'application/json', + schema: { + type: 'object', + required: ['convoId', 'message'], + properties: { + convoId: { + type: 'string', + }, + message: { + type: 'ref', + ref: 'lex:chat.bsky.convo.defs#messageInput', + }, + }, + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:chat.bsky.convo.defs#messageView', + }, + }, + }, + }, + }, ChatBskyConvoSendMessageBatch: { lexicon: 1, id: 'chat.bsky.convo.sendMessageBatch', @@ -10561,38 +10593,6 @@ export const schemaDict = { }, }, }, - ChatBskyConvoSendMessage: { - lexicon: 1, - id: 'chat.bsky.convo.sendMessage', - defs: { - main: { - type: 'procedure', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['convoId', 'message'], - properties: { - convoId: { - type: 'string', - }, - message: { - type: 'ref', - ref: 'lex:chat.bsky.convo.defs#messageInput', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:chat.bsky.convo.defs#messageView', - }, - }, - }, - }, - }, ChatBskyConvoUnmuteConvo: { lexicon: 1, id: 'chat.bsky.convo.unmuteConvo', @@ -12929,6 +12929,30 @@ export const schemaDict = { }, }, }, + ToolsOzoneSetUpsertSet: { + lexicon: 1, + id: 'tools.ozone.set.upsertSet', + defs: { + main: { + type: 'procedure', + description: 'Create or update set metadata', + input: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:tools.ozone.set.defs#set', + }, + }, + output: { + encoding: 'application/json', + schema: { + type: 'ref', + ref: 'lex:tools.ozone.set.defs#setView', + }, + }, + }, + }, + }, ToolsOzoneSettingDefs: { lexicon: 1, id: 'tools.ozone.setting.defs', @@ -13148,30 +13172,6 @@ export const schemaDict = { }, }, }, - ToolsOzoneSetUpsertSet: { - lexicon: 1, - id: 'tools.ozone.set.upsertSet', - defs: { - main: { - type: 'procedure', - description: 'Create or update set metadata', - input: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:tools.ozone.set.defs#set', - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:tools.ozone.set.defs#setView', - }, - }, - }, - }, - }, ToolsOzoneSignatureDefs: { lexicon: 1, id: 'tools.ozone.signature.defs', @@ -13688,21 +13688,21 @@ export const ids = { AppBskyFeedGetActorFeeds: 'app.bsky.feed.getActorFeeds', AppBskyFeedGetActorLikes: 'app.bsky.feed.getActorLikes', AppBskyFeedGetAuthorFeed: 'app.bsky.feed.getAuthorFeed', + AppBskyFeedGetFeed: 'app.bsky.feed.getFeed', AppBskyFeedGetFeedGenerator: 'app.bsky.feed.getFeedGenerator', AppBskyFeedGetFeedGenerators: 'app.bsky.feed.getFeedGenerators', - AppBskyFeedGetFeed: 'app.bsky.feed.getFeed', AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton', AppBskyFeedGetLikes: 'app.bsky.feed.getLikes', AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed', - AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread', + AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes', AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy', AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds', AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline', AppBskyFeedLike: 'app.bsky.feed.like', - AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedPost: 'app.bsky.feed.post', + AppBskyFeedPostgate: 'app.bsky.feed.postgate', AppBskyFeedRepost: 'app.bsky.feed.repost', AppBskyFeedSearchPosts: 'app.bsky.feed.searchPosts', AppBskyFeedSendInteractions: 'app.bsky.feed.sendInteractions', @@ -13715,8 +13715,8 @@ export const ids = { AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers', AppBskyGraphGetFollows: 'app.bsky.graph.getFollows', AppBskyGraphGetKnownFollowers: 'app.bsky.graph.getKnownFollowers', - AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks', AppBskyGraphGetList: 'app.bsky.graph.getList', + AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks', AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes', AppBskyGraphGetLists: 'app.bsky.graph.getLists', AppBskyGraphGetMutes: 'app.bsky.graph.getMutes', @@ -13725,9 +13725,9 @@ export const ids = { AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks', AppBskyGraphGetSuggestedFollowsByActor: 'app.bsky.graph.getSuggestedFollowsByActor', + AppBskyGraphList: 'app.bsky.graph.list', AppBskyGraphListblock: 'app.bsky.graph.listblock', AppBskyGraphListitem: 'app.bsky.graph.listitem', - AppBskyGraphList: 'app.bsky.graph.list', AppBskyGraphMuteActor: 'app.bsky.graph.muteActor', AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList', AppBskyGraphMuteThread: 'app.bsky.graph.muteThread', @@ -13770,15 +13770,15 @@ export const ids = { ChatBskyActorExportAccountData: 'chat.bsky.actor.exportAccountData', ChatBskyConvoDefs: 'chat.bsky.convo.defs', ChatBskyConvoDeleteMessageForSelf: 'chat.bsky.convo.deleteMessageForSelf', - ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers', ChatBskyConvoGetConvo: 'chat.bsky.convo.getConvo', + ChatBskyConvoGetConvoForMembers: 'chat.bsky.convo.getConvoForMembers', ChatBskyConvoGetLog: 'chat.bsky.convo.getLog', ChatBskyConvoGetMessages: 'chat.bsky.convo.getMessages', ChatBskyConvoLeaveConvo: 'chat.bsky.convo.leaveConvo', ChatBskyConvoListConvos: 'chat.bsky.convo.listConvos', ChatBskyConvoMuteConvo: 'chat.bsky.convo.muteConvo', - ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch', ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage', + ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch', ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo', ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead', ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata', @@ -13810,11 +13810,11 @@ export const ids = { ToolsOzoneSetDeleteValues: 'tools.ozone.set.deleteValues', ToolsOzoneSetGetValues: 'tools.ozone.set.getValues', ToolsOzoneSetQuerySets: 'tools.ozone.set.querySets', + ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet', ToolsOzoneSettingDefs: 'tools.ozone.setting.defs', ToolsOzoneSettingListOptions: 'tools.ozone.setting.listOptions', ToolsOzoneSettingRemoveOptions: 'tools.ozone.setting.removeOptions', ToolsOzoneSettingUpsertOption: 'tools.ozone.setting.upsertOption', - ToolsOzoneSetUpsertSet: 'tools.ozone.set.upsertSet', ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs', ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation', ToolsOzoneSignatureFindRelatedAccounts: