From 8185d664e30f220f4b674a11ab8271043481edae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86ndra=20Rininsland?= Date: Wed, 20 Mar 2024 12:38:24 +0000 Subject: [PATCH] Lexicon cleanup: * Removes src/lexicons * Replaces with imports from respective upstream packages * Replaces ts-node with tsx, namely because @atproto/bsky doesn't export lexicons * See: bluesky-social/atproto#2353 * Merging bluesky-social/atproto#2354 will allow reverting to ts-node Fixes #41. --- package.json | 7 +- scripts/publishFeedGen.ts | 2 +- src/algos/index.ts | 10 +- src/algos/whats-alf.ts | 9 +- src/lexicon/index.ts | 1482 ---- src/lexicon/lexicons.ts | 7344 ----------------- src/lexicon/types/app/bsky/actor/defs.ts | 234 - .../types/app/bsky/actor/getPreferences.ts | 44 - .../types/app/bsky/actor/getProfile.ts | 41 - .../types/app/bsky/actor/getProfiles.ts | 46 - .../types/app/bsky/actor/getSuggestions.ts | 48 - src/lexicon/types/app/bsky/actor/profile.ts | 32 - .../types/app/bsky/actor/putPreferences.ts | 39 - .../types/app/bsky/actor/searchActors.ts | 52 - .../app/bsky/actor/searchActorsTypeahead.ts | 50 - src/lexicon/types/app/bsky/embed/external.ts | 82 - src/lexicon/types/app/bsky/embed/images.ts | 96 - src/lexicon/types/app/bsky/embed/record.ts | 120 - .../types/app/bsky/embed/recordWithMedia.ts | 53 - src/lexicon/types/app/bsky/feed/defs.ts | 325 - .../app/bsky/feed/describeFeedGenerator.ts | 80 - src/lexicon/types/app/bsky/feed/generator.ts | 35 - .../types/app/bsky/feed/getActorFeeds.ts | 49 - .../types/app/bsky/feed/getActorLikes.ts | 50 - .../types/app/bsky/feed/getAuthorFeed.ts | 55 - src/lexicon/types/app/bsky/feed/getFeed.ts | 50 - .../types/app/bsky/feed/getFeedGenerator.ts | 48 - .../types/app/bsky/feed/getFeedGenerators.ts | 46 - .../types/app/bsky/feed/getFeedSkeleton.ts | 50 - src/lexicon/types/app/bsky/feed/getLikes.ts | 69 - .../types/app/bsky/feed/getListFeed.ts | 50 - .../types/app/bsky/feed/getPostThread.ts | 53 - src/lexicon/types/app/bsky/feed/getPosts.ts | 46 - .../types/app/bsky/feed/getRepostedBy.ts | 52 - .../types/app/bsky/feed/getSuggestedFeeds.ts | 48 - .../types/app/bsky/feed/getTimeline.ts | 49 - src/lexicon/types/app/bsky/feed/like.ts | 26 - src/lexicon/types/app/bsky/feed/post.ts | 102 - src/lexicon/types/app/bsky/feed/repost.ts | 27 - .../types/app/bsky/feed/searchPosts.ts | 54 - src/lexicon/types/app/bsky/feed/threadgate.ts | 84 - src/lexicon/types/app/bsky/graph/block.ts | 26 - src/lexicon/types/app/bsky/graph/defs.ts | 103 - src/lexicon/types/app/bsky/graph/follow.ts | 26 - src/lexicon/types/app/bsky/graph/getBlocks.ts | 48 - .../types/app/bsky/graph/getFollowers.ts | 50 - .../types/app/bsky/graph/getFollows.ts | 50 - src/lexicon/types/app/bsky/graph/getList.ts | 50 - .../types/app/bsky/graph/getListBlocks.ts | 48 - .../types/app/bsky/graph/getListMutes.ts | 48 - src/lexicon/types/app/bsky/graph/getLists.ts | 49 - src/lexicon/types/app/bsky/graph/getMutes.ts | 48 - .../bsky/graph/getSuggestedFollowsByActor.ts | 46 - src/lexicon/types/app/bsky/graph/list.ts | 36 - src/lexicon/types/app/bsky/graph/listblock.ts | 26 - src/lexicon/types/app/bsky/graph/listitem.ts | 27 - src/lexicon/types/app/bsky/graph/muteActor.ts | 38 - .../types/app/bsky/graph/muteActorList.ts | 38 - .../types/app/bsky/graph/unmuteActor.ts | 38 - .../types/app/bsky/graph/unmuteActorList.ts | 38 - .../app/bsky/notification/getUnreadCount.ts | 45 - .../bsky/notification/listNotifications.ts | 86 - .../app/bsky/notification/registerPush.ts | 41 - .../types/app/bsky/notification/updateSeen.ts | 38 - src/lexicon/types/app/bsky/richtext/facet.ts | 97 - src/lexicon/types/app/bsky/unspecced/defs.ts | 41 - .../types/app/bsky/unspecced/getPopular.ts | 49 - .../unspecced/getPopularFeedGenerators.ts | 49 - .../app/bsky/unspecced/getTimelineSkeleton.ts | 49 - .../bsky/unspecced/searchActorsSkeleton.ts | 56 - .../app/bsky/unspecced/searchPostsSkeleton.ts | 54 - src/lexicon/types/com/atproto/admin/defs.ts | 435 - .../atproto/admin/disableAccountInvites.ts | 40 - .../com/atproto/admin/disableInviteCodes.ts | 39 - .../com/atproto/admin/enableAccountInvites.ts | 40 - .../types/com/atproto/admin/getInviteCodes.ts | 49 - .../com/atproto/admin/getModerationAction.ts | 41 - .../com/atproto/admin/getModerationActions.ts | 49 - .../com/atproto/admin/getModerationReport.ts | 41 - .../com/atproto/admin/getModerationReports.ts | 63 - .../types/com/atproto/admin/getRecord.ts | 43 - .../types/com/atproto/admin/getRepo.ts | 42 - .../atproto/admin/resolveModerationReports.ts | 49 - .../atproto/admin/reverseModerationAction.ts | 49 - .../types/com/atproto/admin/searchRepos.ts | 52 - .../types/com/atproto/admin/sendEmail.ts | 51 - .../com/atproto/admin/takeModerationAction.ts | 64 - .../com/atproto/admin/updateAccountEmail.ts | 40 - .../com/atproto/admin/updateAccountHandle.ts | 39 - .../com/atproto/identity/resolveHandle.ts | 46 - .../com/atproto/identity/updateHandle.ts | 38 - src/lexicon/types/com/atproto/label/defs.ts | 73 - .../types/com/atproto/label/queryLabels.ts | 52 - .../com/atproto/label/subscribeLabels.ts | 67 - .../com/atproto/moderation/createReport.ts | 65 - .../types/com/atproto/moderation/defs.ts | 29 - .../types/com/atproto/repo/applyWrites.ts | 103 - .../types/com/atproto/repo/createRecord.ts | 62 - .../types/com/atproto/repo/deleteRecord.ts | 48 - .../types/com/atproto/repo/describeRepo.ts | 50 - .../types/com/atproto/repo/getRecord.ts | 54 - .../types/com/atproto/repo/listRecords.ts | 77 - .../types/com/atproto/repo/putRecord.ts | 64 - .../types/com/atproto/repo/strongRef.ts | 26 - .../types/com/atproto/repo/uploadBlob.ts | 47 - .../types/com/atproto/server/createAccount.ts | 65 - .../com/atproto/server/createAppPassword.ts | 69 - .../com/atproto/server/createInviteCode.ts | 50 - .../com/atproto/server/createInviteCodes.ts | 72 - .../types/com/atproto/server/createSession.ts | 56 - src/lexicon/types/com/atproto/server/defs.ts | 48 - .../types/com/atproto/server/deleteAccount.ts | 41 - .../types/com/atproto/server/deleteSession.ts | 31 - .../com/atproto/server/describeServer.ts | 63 - .../atproto/server/getAccountInviteCodes.ts | 48 - .../types/com/atproto/server/getSession.ts | 45 - .../com/atproto/server/listAppPasswords.ts | 62 - .../com/atproto/server/refreshSession.ts | 47 - .../atproto/server/requestAccountDelete.ts | 31 - .../atproto/server/requestPasswordReset.ts | 38 - .../types/com/atproto/server/resetPassword.ts | 40 - .../com/atproto/server/revokeAppPassword.ts | 38 - src/lexicon/types/com/atproto/sync/getBlob.ts | 43 - .../types/com/atproto/sync/getBlocks.ts | 42 - .../types/com/atproto/sync/getCheckout.ts | 41 - src/lexicon/types/com/atproto/sync/getHead.ts | 47 - .../types/com/atproto/sync/getLatestCommit.ts | 48 - .../types/com/atproto/sync/getRecord.ts | 45 - src/lexicon/types/com/atproto/sync/getRepo.ts | 43 - .../types/com/atproto/sync/listBlobs.ts | 51 - .../types/com/atproto/sync/listRepos.ts | 65 - .../types/com/atproto/sync/notifyOfUpdate.ts | 39 - .../types/com/atproto/sync/requestCrawl.ts | 39 - .../types/com/atproto/sync/subscribeRepos.ts | 161 - src/lexicon/util.ts | 13 - src/methods/describe-generator.ts | 2 +- src/methods/feed-generation.ts | 2 +- src/server.ts | 2 +- src/subscription.ts | 9 +- src/util/subscription.ts | 49 +- yarn.lock | 1097 ++- 141 files changed, 923 insertions(+), 16563 deletions(-) delete mode 100644 src/lexicon/index.ts delete mode 100644 src/lexicon/lexicons.ts delete mode 100644 src/lexicon/types/app/bsky/actor/defs.ts delete mode 100644 src/lexicon/types/app/bsky/actor/getPreferences.ts delete mode 100644 src/lexicon/types/app/bsky/actor/getProfile.ts delete mode 100644 src/lexicon/types/app/bsky/actor/getProfiles.ts delete mode 100644 src/lexicon/types/app/bsky/actor/getSuggestions.ts delete mode 100644 src/lexicon/types/app/bsky/actor/profile.ts delete mode 100644 src/lexicon/types/app/bsky/actor/putPreferences.ts delete mode 100644 src/lexicon/types/app/bsky/actor/searchActors.ts delete mode 100644 src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts delete mode 100644 src/lexicon/types/app/bsky/embed/external.ts delete mode 100644 src/lexicon/types/app/bsky/embed/images.ts delete mode 100644 src/lexicon/types/app/bsky/embed/record.ts delete mode 100644 src/lexicon/types/app/bsky/embed/recordWithMedia.ts delete mode 100644 src/lexicon/types/app/bsky/feed/defs.ts delete mode 100644 src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts delete mode 100644 src/lexicon/types/app/bsky/feed/generator.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getActorFeeds.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getActorLikes.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getAuthorFeed.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getFeed.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getFeedGenerator.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getFeedGenerators.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getLikes.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getListFeed.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getPostThread.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getPosts.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getRepostedBy.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts delete mode 100644 src/lexicon/types/app/bsky/feed/getTimeline.ts delete mode 100644 src/lexicon/types/app/bsky/feed/like.ts delete mode 100644 src/lexicon/types/app/bsky/feed/post.ts delete mode 100644 src/lexicon/types/app/bsky/feed/repost.ts delete mode 100644 src/lexicon/types/app/bsky/feed/searchPosts.ts delete mode 100644 src/lexicon/types/app/bsky/feed/threadgate.ts delete mode 100644 src/lexicon/types/app/bsky/graph/block.ts delete mode 100644 src/lexicon/types/app/bsky/graph/defs.ts delete mode 100644 src/lexicon/types/app/bsky/graph/follow.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getBlocks.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getFollowers.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getFollows.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getList.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getListBlocks.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getListMutes.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getLists.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getMutes.ts delete mode 100644 src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts delete mode 100644 src/lexicon/types/app/bsky/graph/list.ts delete mode 100644 src/lexicon/types/app/bsky/graph/listblock.ts delete mode 100644 src/lexicon/types/app/bsky/graph/listitem.ts delete mode 100644 src/lexicon/types/app/bsky/graph/muteActor.ts delete mode 100644 src/lexicon/types/app/bsky/graph/muteActorList.ts delete mode 100644 src/lexicon/types/app/bsky/graph/unmuteActor.ts delete mode 100644 src/lexicon/types/app/bsky/graph/unmuteActorList.ts delete mode 100644 src/lexicon/types/app/bsky/notification/getUnreadCount.ts delete mode 100644 src/lexicon/types/app/bsky/notification/listNotifications.ts delete mode 100644 src/lexicon/types/app/bsky/notification/registerPush.ts delete mode 100644 src/lexicon/types/app/bsky/notification/updateSeen.ts delete mode 100644 src/lexicon/types/app/bsky/richtext/facet.ts delete mode 100644 src/lexicon/types/app/bsky/unspecced/defs.ts delete mode 100644 src/lexicon/types/app/bsky/unspecced/getPopular.ts delete mode 100644 src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts delete mode 100644 src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts delete mode 100644 src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts delete mode 100644 src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts delete mode 100644 src/lexicon/types/com/atproto/admin/defs.ts delete mode 100644 src/lexicon/types/com/atproto/admin/disableAccountInvites.ts delete mode 100644 src/lexicon/types/com/atproto/admin/disableInviteCodes.ts delete mode 100644 src/lexicon/types/com/atproto/admin/enableAccountInvites.ts delete mode 100644 src/lexicon/types/com/atproto/admin/getInviteCodes.ts delete mode 100644 src/lexicon/types/com/atproto/admin/getModerationAction.ts delete mode 100644 src/lexicon/types/com/atproto/admin/getModerationActions.ts delete mode 100644 src/lexicon/types/com/atproto/admin/getModerationReport.ts delete mode 100644 src/lexicon/types/com/atproto/admin/getModerationReports.ts delete mode 100644 src/lexicon/types/com/atproto/admin/getRecord.ts delete mode 100644 src/lexicon/types/com/atproto/admin/getRepo.ts delete mode 100644 src/lexicon/types/com/atproto/admin/resolveModerationReports.ts delete mode 100644 src/lexicon/types/com/atproto/admin/reverseModerationAction.ts delete mode 100644 src/lexicon/types/com/atproto/admin/searchRepos.ts delete mode 100644 src/lexicon/types/com/atproto/admin/sendEmail.ts delete mode 100644 src/lexicon/types/com/atproto/admin/takeModerationAction.ts delete mode 100644 src/lexicon/types/com/atproto/admin/updateAccountEmail.ts delete mode 100644 src/lexicon/types/com/atproto/admin/updateAccountHandle.ts delete mode 100644 src/lexicon/types/com/atproto/identity/resolveHandle.ts delete mode 100644 src/lexicon/types/com/atproto/identity/updateHandle.ts delete mode 100644 src/lexicon/types/com/atproto/label/defs.ts delete mode 100644 src/lexicon/types/com/atproto/label/queryLabels.ts delete mode 100644 src/lexicon/types/com/atproto/label/subscribeLabels.ts delete mode 100644 src/lexicon/types/com/atproto/moderation/createReport.ts delete mode 100644 src/lexicon/types/com/atproto/moderation/defs.ts delete mode 100644 src/lexicon/types/com/atproto/repo/applyWrites.ts delete mode 100644 src/lexicon/types/com/atproto/repo/createRecord.ts delete mode 100644 src/lexicon/types/com/atproto/repo/deleteRecord.ts delete mode 100644 src/lexicon/types/com/atproto/repo/describeRepo.ts delete mode 100644 src/lexicon/types/com/atproto/repo/getRecord.ts delete mode 100644 src/lexicon/types/com/atproto/repo/listRecords.ts delete mode 100644 src/lexicon/types/com/atproto/repo/putRecord.ts delete mode 100644 src/lexicon/types/com/atproto/repo/strongRef.ts delete mode 100644 src/lexicon/types/com/atproto/repo/uploadBlob.ts delete mode 100644 src/lexicon/types/com/atproto/server/createAccount.ts delete mode 100644 src/lexicon/types/com/atproto/server/createAppPassword.ts delete mode 100644 src/lexicon/types/com/atproto/server/createInviteCode.ts delete mode 100644 src/lexicon/types/com/atproto/server/createInviteCodes.ts delete mode 100644 src/lexicon/types/com/atproto/server/createSession.ts delete mode 100644 src/lexicon/types/com/atproto/server/defs.ts delete mode 100644 src/lexicon/types/com/atproto/server/deleteAccount.ts delete mode 100644 src/lexicon/types/com/atproto/server/deleteSession.ts delete mode 100644 src/lexicon/types/com/atproto/server/describeServer.ts delete mode 100644 src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts delete mode 100644 src/lexicon/types/com/atproto/server/getSession.ts delete mode 100644 src/lexicon/types/com/atproto/server/listAppPasswords.ts delete mode 100644 src/lexicon/types/com/atproto/server/refreshSession.ts delete mode 100644 src/lexicon/types/com/atproto/server/requestAccountDelete.ts delete mode 100644 src/lexicon/types/com/atproto/server/requestPasswordReset.ts delete mode 100644 src/lexicon/types/com/atproto/server/resetPassword.ts delete mode 100644 src/lexicon/types/com/atproto/server/revokeAppPassword.ts delete mode 100644 src/lexicon/types/com/atproto/sync/getBlob.ts delete mode 100644 src/lexicon/types/com/atproto/sync/getBlocks.ts delete mode 100644 src/lexicon/types/com/atproto/sync/getCheckout.ts delete mode 100644 src/lexicon/types/com/atproto/sync/getHead.ts delete mode 100644 src/lexicon/types/com/atproto/sync/getLatestCommit.ts delete mode 100644 src/lexicon/types/com/atproto/sync/getRecord.ts delete mode 100644 src/lexicon/types/com/atproto/sync/getRepo.ts delete mode 100644 src/lexicon/types/com/atproto/sync/listBlobs.ts delete mode 100644 src/lexicon/types/com/atproto/sync/listRepos.ts delete mode 100644 src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts delete mode 100644 src/lexicon/types/com/atproto/sync/requestCrawl.ts delete mode 100644 src/lexicon/types/com/atproto/sync/subscribeRepos.ts delete mode 100644 src/lexicon/util.ts diff --git a/package.json b/package.json index 2423c8c8..33fc78ef 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,14 @@ "license": "MIT", "scripts": { "publishFeed": "ts-node scripts/publishFeedGen.ts", - "start": "ts-node src/index.ts", + "start": "tsx src/index.ts", "build": "tsc" }, "dependencies": { "@atproto/api": "^0.6.20", + "@atproto/bsky": "^0.0.43", "@atproto/identity": "^0.2.1", - "@atproto/lexicon": "^0.2.2", + "@atproto/lexicon": "^0.2.3", "@atproto/repo": "^0.3.2", "@atproto/syntax": "^0.1.2", "@atproto/xrpc-server": "^0.3.2", @@ -28,7 +29,7 @@ "@types/better-sqlite3": "^7.6.4", "@types/express": "^4.17.17", "@types/node": "^20.1.2", - "ts-node": "^10.9.1", + "tsx": "^4.7.1", "typescript": "^5.0.4" } } diff --git a/scripts/publishFeedGen.ts b/scripts/publishFeedGen.ts index 587db4da..616c053f 100644 --- a/scripts/publishFeedGen.ts +++ b/scripts/publishFeedGen.ts @@ -1,7 +1,7 @@ import dotenv from 'dotenv' import { AtpAgent, BlobRef } from '@atproto/api' import fs from 'fs/promises' -import { ids } from '../src/lexicon/lexicons' +import { ids } from '@atproto/bsky/src/lexicon/lexicons' const run = async () => { dotenv.config() diff --git a/src/algos/index.ts b/src/algos/index.ts index b7ee48a7..3954cf71 100644 --- a/src/algos/index.ts +++ b/src/algos/index.ts @@ -1,11 +1,11 @@ import { AppContext } from '../config' -import { - QueryParams, - OutputSchema as AlgoOutput, -} from '../lexicon/types/app/bsky/feed/getFeedSkeleton' +import { AppBskyFeedGetFeedSkeleton } from '@atproto/api' import * as whatsAlf from './whats-alf' -type AlgoHandler = (ctx: AppContext, params: QueryParams) => Promise +type AlgoHandler = ( + ctx: AppContext, + params: AppBskyFeedGetFeedSkeleton.QueryParams, +) => Promise const algos: Record = { [whatsAlf.shortname]: whatsAlf.handler, diff --git a/src/algos/whats-alf.ts b/src/algos/whats-alf.ts index a131547e..c5aae495 100644 --- a/src/algos/whats-alf.ts +++ b/src/algos/whats-alf.ts @@ -1,17 +1,20 @@ import { InvalidRequestError } from '@atproto/xrpc-server' -import { QueryParams } from '../lexicon/types/app/bsky/feed/getFeedSkeleton' +import { AppBskyFeedGetFeedSkeleton } from '@atproto/api' import { AppContext } from '../config' // max 15 chars export const shortname = 'whats-alf' -export const handler = async (ctx: AppContext, params: QueryParams) => { +export const handler = async ( + ctx: AppContext, + params: AppBskyFeedGetFeedSkeleton.QueryParams, +) => { let builder = ctx.db .selectFrom('post') .selectAll() .orderBy('indexedAt', 'desc') .orderBy('cid', 'desc') - .limit(params.limit) + .limit(params.limit || 50) if (params.cursor) { const [indexedAt, cid] = params.cursor.split('::') diff --git a/src/lexicon/index.ts b/src/lexicon/index.ts deleted file mode 100644 index 3dd2b510..00000000 --- a/src/lexicon/index.ts +++ /dev/null @@ -1,1482 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { - createServer as createXrpcServer, - Server as XrpcServer, - Options as XrpcOptions, - AuthVerifier, - StreamAuthVerifier, -} from '@atproto/xrpc-server' -import { schemas } from './lexicons' -import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites' -import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes' -import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites' -import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes' -import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction' -import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions' -import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport' -import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports' -import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord' -import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo' -import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports' -import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction' -import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos' -import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail' -import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction' -import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail' -import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle' -import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle' -import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle' -import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels' -import * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels' -import * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport' -import * as ComAtprotoRepoApplyWrites from './types/com/atproto/repo/applyWrites' -import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord' -import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord' -import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo' -import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord' -import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords' -import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord' -import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob' -import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount' -import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword' -import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode' -import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes' -import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession' -import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount' -import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession' -import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer' -import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes' -import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession' -import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords' -import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession' -import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete' -import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset' -import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword' -import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword' -import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob' -import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks' -import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout' -import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead' -import * as ComAtprotoSyncGetLatestCommit from './types/com/atproto/sync/getLatestCommit' -import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord' -import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo' -import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs' -import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos' -import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate' -import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl' -import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos' -import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences' -import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile' -import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles' -import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions' -import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences' -import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors' -import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead' -import * as AppBskyFeedDescribeFeedGenerator from './types/app/bsky/feed/describeFeedGenerator' -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 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 AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread' -import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts' -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 AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts' -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 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' -import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor' -import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor' -import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList' -import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor' -import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList' -import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount' -import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications' -import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush' -import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen' -import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular' -import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators' -import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton' -import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton' -import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton' - -export const COM_ATPROTO_ADMIN = { - DefsTakedown: 'com.atproto.admin.defs#takedown', - DefsFlag: 'com.atproto.admin.defs#flag', - DefsAcknowledge: 'com.atproto.admin.defs#acknowledge', - DefsEscalate: 'com.atproto.admin.defs#escalate', -} -export const COM_ATPROTO_MODERATION = { - DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam', - DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation', - DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading', - DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual', - DefsReasonRude: 'com.atproto.moderation.defs#reasonRude', - DefsReasonOther: 'com.atproto.moderation.defs#reasonOther', -} -export const APP_BSKY_GRAPH = { - DefsModlist: 'app.bsky.graph.defs#modlist', - DefsCuratelist: 'app.bsky.graph.defs#curatelist', -} - -export function createServer(options?: XrpcOptions): Server { - return new Server(options) -} - -export class Server { - xrpc: XrpcServer - com: ComNS - app: AppNS - - constructor(options?: XrpcOptions) { - this.xrpc = createXrpcServer(schemas, options) - this.com = new ComNS(this) - this.app = new AppNS(this) - } -} - -export class ComNS { - _server: Server - atproto: AtprotoNS - - constructor(server: Server) { - this._server = server - this.atproto = new AtprotoNS(server) - } -} - -export class AtprotoNS { - _server: Server - admin: AdminNS - identity: IdentityNS - label: LabelNS - moderation: ModerationNS - repo: RepoNS - server: ServerNS - sync: SyncNS - - constructor(server: Server) { - this._server = server - this.admin = new AdminNS(server) - this.identity = new IdentityNS(server) - this.label = new LabelNS(server) - this.moderation = new ModerationNS(server) - this.repo = new RepoNS(server) - this.server = new ServerNS(server) - this.sync = new SyncNS(server) - } -} - -export class AdminNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - disableAccountInvites( - cfg: ConfigOf< - AV, - ComAtprotoAdminDisableAccountInvites.Handler>, - ComAtprotoAdminDisableAccountInvites.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.disableAccountInvites' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - disableInviteCodes( - cfg: ConfigOf< - AV, - ComAtprotoAdminDisableInviteCodes.Handler>, - ComAtprotoAdminDisableInviteCodes.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.disableInviteCodes' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - enableAccountInvites( - cfg: ConfigOf< - AV, - ComAtprotoAdminEnableAccountInvites.Handler>, - ComAtprotoAdminEnableAccountInvites.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.enableAccountInvites' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getInviteCodes( - cfg: ConfigOf< - AV, - ComAtprotoAdminGetInviteCodes.Handler>, - ComAtprotoAdminGetInviteCodes.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.getInviteCodes' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getModerationAction( - cfg: ConfigOf< - AV, - ComAtprotoAdminGetModerationAction.Handler>, - ComAtprotoAdminGetModerationAction.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.getModerationAction' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getModerationActions( - cfg: ConfigOf< - AV, - ComAtprotoAdminGetModerationActions.Handler>, - ComAtprotoAdminGetModerationActions.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.getModerationActions' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getModerationReport( - cfg: ConfigOf< - AV, - ComAtprotoAdminGetModerationReport.Handler>, - ComAtprotoAdminGetModerationReport.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.getModerationReport' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getModerationReports( - cfg: ConfigOf< - AV, - ComAtprotoAdminGetModerationReports.Handler>, - ComAtprotoAdminGetModerationReports.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.getModerationReports' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getRecord( - cfg: ConfigOf< - AV, - ComAtprotoAdminGetRecord.Handler>, - ComAtprotoAdminGetRecord.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.getRecord' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getRepo( - cfg: ConfigOf< - AV, - ComAtprotoAdminGetRepo.Handler>, - ComAtprotoAdminGetRepo.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.getRepo' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - resolveModerationReports( - cfg: ConfigOf< - AV, - ComAtprotoAdminResolveModerationReports.Handler>, - ComAtprotoAdminResolveModerationReports.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.resolveModerationReports' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - reverseModerationAction( - cfg: ConfigOf< - AV, - ComAtprotoAdminReverseModerationAction.Handler>, - ComAtprotoAdminReverseModerationAction.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.reverseModerationAction' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - searchRepos( - cfg: ConfigOf< - AV, - ComAtprotoAdminSearchRepos.Handler>, - ComAtprotoAdminSearchRepos.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.searchRepos' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - sendEmail( - cfg: ConfigOf< - AV, - ComAtprotoAdminSendEmail.Handler>, - ComAtprotoAdminSendEmail.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.sendEmail' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - takeModerationAction( - cfg: ConfigOf< - AV, - ComAtprotoAdminTakeModerationAction.Handler>, - ComAtprotoAdminTakeModerationAction.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.takeModerationAction' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - updateAccountEmail( - cfg: ConfigOf< - AV, - ComAtprotoAdminUpdateAccountEmail.Handler>, - ComAtprotoAdminUpdateAccountEmail.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.updateAccountEmail' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - updateAccountHandle( - cfg: ConfigOf< - AV, - ComAtprotoAdminUpdateAccountHandle.Handler>, - ComAtprotoAdminUpdateAccountHandle.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.admin.updateAccountHandle' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class IdentityNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - resolveHandle( - cfg: ConfigOf< - AV, - ComAtprotoIdentityResolveHandle.Handler>, - ComAtprotoIdentityResolveHandle.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.identity.resolveHandle' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - updateHandle( - cfg: ConfigOf< - AV, - ComAtprotoIdentityUpdateHandle.Handler>, - ComAtprotoIdentityUpdateHandle.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.identity.updateHandle' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class LabelNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - queryLabels( - cfg: ConfigOf< - AV, - ComAtprotoLabelQueryLabels.Handler>, - ComAtprotoLabelQueryLabels.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.label.queryLabels' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - subscribeLabels( - cfg: ConfigOf< - AV, - ComAtprotoLabelSubscribeLabels.Handler>, - ComAtprotoLabelSubscribeLabels.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.label.subscribeLabels' // @ts-ignore - return this._server.xrpc.streamMethod(nsid, cfg) - } -} - -export class ModerationNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - createReport( - cfg: ConfigOf< - AV, - ComAtprotoModerationCreateReport.Handler>, - ComAtprotoModerationCreateReport.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.moderation.createReport' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class RepoNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - applyWrites( - cfg: ConfigOf< - AV, - ComAtprotoRepoApplyWrites.Handler>, - ComAtprotoRepoApplyWrites.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.repo.applyWrites' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - createRecord( - cfg: ConfigOf< - AV, - ComAtprotoRepoCreateRecord.Handler>, - ComAtprotoRepoCreateRecord.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.repo.createRecord' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - deleteRecord( - cfg: ConfigOf< - AV, - ComAtprotoRepoDeleteRecord.Handler>, - ComAtprotoRepoDeleteRecord.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.repo.deleteRecord' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - describeRepo( - cfg: ConfigOf< - AV, - ComAtprotoRepoDescribeRepo.Handler>, - ComAtprotoRepoDescribeRepo.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.repo.describeRepo' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getRecord( - cfg: ConfigOf< - AV, - ComAtprotoRepoGetRecord.Handler>, - ComAtprotoRepoGetRecord.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.repo.getRecord' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - listRecords( - cfg: ConfigOf< - AV, - ComAtprotoRepoListRecords.Handler>, - ComAtprotoRepoListRecords.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.repo.listRecords' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - putRecord( - cfg: ConfigOf< - AV, - ComAtprotoRepoPutRecord.Handler>, - ComAtprotoRepoPutRecord.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.repo.putRecord' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - uploadBlob( - cfg: ConfigOf< - AV, - ComAtprotoRepoUploadBlob.Handler>, - ComAtprotoRepoUploadBlob.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.repo.uploadBlob' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class ServerNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - createAccount( - cfg: ConfigOf< - AV, - ComAtprotoServerCreateAccount.Handler>, - ComAtprotoServerCreateAccount.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.createAccount' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - createAppPassword( - cfg: ConfigOf< - AV, - ComAtprotoServerCreateAppPassword.Handler>, - ComAtprotoServerCreateAppPassword.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.createAppPassword' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - createInviteCode( - cfg: ConfigOf< - AV, - ComAtprotoServerCreateInviteCode.Handler>, - ComAtprotoServerCreateInviteCode.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.createInviteCode' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - createInviteCodes( - cfg: ConfigOf< - AV, - ComAtprotoServerCreateInviteCodes.Handler>, - ComAtprotoServerCreateInviteCodes.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.createInviteCodes' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - createSession( - cfg: ConfigOf< - AV, - ComAtprotoServerCreateSession.Handler>, - ComAtprotoServerCreateSession.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.createSession' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - deleteAccount( - cfg: ConfigOf< - AV, - ComAtprotoServerDeleteAccount.Handler>, - ComAtprotoServerDeleteAccount.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.deleteAccount' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - deleteSession( - cfg: ConfigOf< - AV, - ComAtprotoServerDeleteSession.Handler>, - ComAtprotoServerDeleteSession.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.deleteSession' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - describeServer( - cfg: ConfigOf< - AV, - ComAtprotoServerDescribeServer.Handler>, - ComAtprotoServerDescribeServer.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.describeServer' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getAccountInviteCodes( - cfg: ConfigOf< - AV, - ComAtprotoServerGetAccountInviteCodes.Handler>, - ComAtprotoServerGetAccountInviteCodes.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.getAccountInviteCodes' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getSession( - cfg: ConfigOf< - AV, - ComAtprotoServerGetSession.Handler>, - ComAtprotoServerGetSession.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.getSession' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - listAppPasswords( - cfg: ConfigOf< - AV, - ComAtprotoServerListAppPasswords.Handler>, - ComAtprotoServerListAppPasswords.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.listAppPasswords' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - refreshSession( - cfg: ConfigOf< - AV, - ComAtprotoServerRefreshSession.Handler>, - ComAtprotoServerRefreshSession.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.refreshSession' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - requestAccountDelete( - cfg: ConfigOf< - AV, - ComAtprotoServerRequestAccountDelete.Handler>, - ComAtprotoServerRequestAccountDelete.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.requestAccountDelete' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - requestPasswordReset( - cfg: ConfigOf< - AV, - ComAtprotoServerRequestPasswordReset.Handler>, - ComAtprotoServerRequestPasswordReset.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.requestPasswordReset' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - resetPassword( - cfg: ConfigOf< - AV, - ComAtprotoServerResetPassword.Handler>, - ComAtprotoServerResetPassword.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.resetPassword' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - revokeAppPassword( - cfg: ConfigOf< - AV, - ComAtprotoServerRevokeAppPassword.Handler>, - ComAtprotoServerRevokeAppPassword.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.server.revokeAppPassword' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class SyncNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - getBlob( - cfg: ConfigOf< - AV, - ComAtprotoSyncGetBlob.Handler>, - ComAtprotoSyncGetBlob.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.getBlob' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getBlocks( - cfg: ConfigOf< - AV, - ComAtprotoSyncGetBlocks.Handler>, - ComAtprotoSyncGetBlocks.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.getBlocks' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getCheckout( - cfg: ConfigOf< - AV, - ComAtprotoSyncGetCheckout.Handler>, - ComAtprotoSyncGetCheckout.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.getCheckout' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getHead( - cfg: ConfigOf< - AV, - ComAtprotoSyncGetHead.Handler>, - ComAtprotoSyncGetHead.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.getHead' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getLatestCommit( - cfg: ConfigOf< - AV, - ComAtprotoSyncGetLatestCommit.Handler>, - ComAtprotoSyncGetLatestCommit.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.getLatestCommit' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getRecord( - cfg: ConfigOf< - AV, - ComAtprotoSyncGetRecord.Handler>, - ComAtprotoSyncGetRecord.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.getRecord' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getRepo( - cfg: ConfigOf< - AV, - ComAtprotoSyncGetRepo.Handler>, - ComAtprotoSyncGetRepo.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.getRepo' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - listBlobs( - cfg: ConfigOf< - AV, - ComAtprotoSyncListBlobs.Handler>, - ComAtprotoSyncListBlobs.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.listBlobs' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - listRepos( - cfg: ConfigOf< - AV, - ComAtprotoSyncListRepos.Handler>, - ComAtprotoSyncListRepos.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.listRepos' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - notifyOfUpdate( - cfg: ConfigOf< - AV, - ComAtprotoSyncNotifyOfUpdate.Handler>, - ComAtprotoSyncNotifyOfUpdate.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.notifyOfUpdate' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - requestCrawl( - cfg: ConfigOf< - AV, - ComAtprotoSyncRequestCrawl.Handler>, - ComAtprotoSyncRequestCrawl.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.requestCrawl' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - subscribeRepos( - cfg: ConfigOf< - AV, - ComAtprotoSyncSubscribeRepos.Handler>, - ComAtprotoSyncSubscribeRepos.HandlerReqCtx> - >, - ) { - const nsid = 'com.atproto.sync.subscribeRepos' // @ts-ignore - return this._server.xrpc.streamMethod(nsid, cfg) - } -} - -export class AppNS { - _server: Server - bsky: BskyNS - - constructor(server: Server) { - this._server = server - this.bsky = new BskyNS(server) - } -} - -export class BskyNS { - _server: Server - actor: ActorNS - embed: EmbedNS - feed: FeedNS - graph: GraphNS - notification: NotificationNS - richtext: RichtextNS - unspecced: UnspeccedNS - - constructor(server: Server) { - this._server = server - this.actor = new ActorNS(server) - this.embed = new EmbedNS(server) - this.feed = new FeedNS(server) - this.graph = new GraphNS(server) - this.notification = new NotificationNS(server) - this.richtext = new RichtextNS(server) - this.unspecced = new UnspeccedNS(server) - } -} - -export class ActorNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - getPreferences( - cfg: ConfigOf< - AV, - AppBskyActorGetPreferences.Handler>, - AppBskyActorGetPreferences.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.actor.getPreferences' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getProfile( - cfg: ConfigOf< - AV, - AppBskyActorGetProfile.Handler>, - AppBskyActorGetProfile.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.actor.getProfile' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getProfiles( - cfg: ConfigOf< - AV, - AppBskyActorGetProfiles.Handler>, - AppBskyActorGetProfiles.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.actor.getProfiles' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getSuggestions( - cfg: ConfigOf< - AV, - AppBskyActorGetSuggestions.Handler>, - AppBskyActorGetSuggestions.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.actor.getSuggestions' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - putPreferences( - cfg: ConfigOf< - AV, - AppBskyActorPutPreferences.Handler>, - AppBskyActorPutPreferences.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.actor.putPreferences' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - searchActors( - cfg: ConfigOf< - AV, - AppBskyActorSearchActors.Handler>, - AppBskyActorSearchActors.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.actor.searchActors' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - searchActorsTypeahead( - cfg: ConfigOf< - AV, - AppBskyActorSearchActorsTypeahead.Handler>, - AppBskyActorSearchActorsTypeahead.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.actor.searchActorsTypeahead' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class EmbedNS { - _server: Server - - constructor(server: Server) { - this._server = server - } -} - -export class FeedNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - describeFeedGenerator( - cfg: ConfigOf< - AV, - AppBskyFeedDescribeFeedGenerator.Handler>, - AppBskyFeedDescribeFeedGenerator.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.describeFeedGenerator' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getActorFeeds( - cfg: ConfigOf< - AV, - AppBskyFeedGetActorFeeds.Handler>, - AppBskyFeedGetActorFeeds.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getActorFeeds' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getActorLikes( - cfg: ConfigOf< - AV, - AppBskyFeedGetActorLikes.Handler>, - AppBskyFeedGetActorLikes.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getActorLikes' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getAuthorFeed( - cfg: ConfigOf< - AV, - AppBskyFeedGetAuthorFeed.Handler>, - AppBskyFeedGetAuthorFeed.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getAuthorFeed' // @ts-ignore - 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, - AppBskyFeedGetFeedGenerator.Handler>, - AppBskyFeedGetFeedGenerator.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getFeedGenerator' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getFeedGenerators( - cfg: ConfigOf< - AV, - AppBskyFeedGetFeedGenerators.Handler>, - AppBskyFeedGetFeedGenerators.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getFeedGenerators' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getFeedSkeleton( - cfg: ConfigOf< - AV, - AppBskyFeedGetFeedSkeleton.Handler>, - AppBskyFeedGetFeedSkeleton.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getFeedSkeleton' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getLikes( - cfg: ConfigOf< - AV, - AppBskyFeedGetLikes.Handler>, - AppBskyFeedGetLikes.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getLikes' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getListFeed( - cfg: ConfigOf< - AV, - AppBskyFeedGetListFeed.Handler>, - AppBskyFeedGetListFeed.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getListFeed' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getPostThread( - cfg: ConfigOf< - AV, - AppBskyFeedGetPostThread.Handler>, - AppBskyFeedGetPostThread.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getPosts( - cfg: ConfigOf< - AV, - AppBskyFeedGetPosts.Handler>, - AppBskyFeedGetPosts.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getPosts' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getRepostedBy( - cfg: ConfigOf< - AV, - AppBskyFeedGetRepostedBy.Handler>, - AppBskyFeedGetRepostedBy.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getRepostedBy' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getSuggestedFeeds( - cfg: ConfigOf< - AV, - AppBskyFeedGetSuggestedFeeds.Handler>, - AppBskyFeedGetSuggestedFeeds.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getSuggestedFeeds' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getTimeline( - cfg: ConfigOf< - AV, - AppBskyFeedGetTimeline.Handler>, - AppBskyFeedGetTimeline.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.getTimeline' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - searchPosts( - cfg: ConfigOf< - AV, - AppBskyFeedSearchPosts.Handler>, - AppBskyFeedSearchPosts.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.feed.searchPosts' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class GraphNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - getBlocks( - cfg: ConfigOf< - AV, - AppBskyGraphGetBlocks.Handler>, - AppBskyGraphGetBlocks.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getBlocks' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getFollowers( - cfg: ConfigOf< - AV, - AppBskyGraphGetFollowers.Handler>, - AppBskyGraphGetFollowers.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getFollowers' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getFollows( - cfg: ConfigOf< - AV, - AppBskyGraphGetFollows.Handler>, - AppBskyGraphGetFollows.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getFollows' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getList( - cfg: ConfigOf< - AV, - AppBskyGraphGetList.Handler>, - AppBskyGraphGetList.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getList' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getListBlocks( - cfg: ConfigOf< - AV, - AppBskyGraphGetListBlocks.Handler>, - AppBskyGraphGetListBlocks.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getListBlocks' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getListMutes( - cfg: ConfigOf< - AV, - AppBskyGraphGetListMutes.Handler>, - AppBskyGraphGetListMutes.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getListMutes' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getLists( - cfg: ConfigOf< - AV, - AppBskyGraphGetLists.Handler>, - AppBskyGraphGetLists.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getLists' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getMutes( - cfg: ConfigOf< - AV, - AppBskyGraphGetMutes.Handler>, - AppBskyGraphGetMutes.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getMutes' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getSuggestedFollowsByActor( - cfg: ConfigOf< - AV, - AppBskyGraphGetSuggestedFollowsByActor.Handler>, - AppBskyGraphGetSuggestedFollowsByActor.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.getSuggestedFollowsByActor' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - muteActor( - cfg: ConfigOf< - AV, - AppBskyGraphMuteActor.Handler>, - AppBskyGraphMuteActor.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.muteActor' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - muteActorList( - cfg: ConfigOf< - AV, - AppBskyGraphMuteActorList.Handler>, - AppBskyGraphMuteActorList.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.muteActorList' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - unmuteActor( - cfg: ConfigOf< - AV, - AppBskyGraphUnmuteActor.Handler>, - AppBskyGraphUnmuteActor.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.unmuteActor' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - unmuteActorList( - cfg: ConfigOf< - AV, - AppBskyGraphUnmuteActorList.Handler>, - AppBskyGraphUnmuteActorList.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.graph.unmuteActorList' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class NotificationNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - getUnreadCount( - cfg: ConfigOf< - AV, - AppBskyNotificationGetUnreadCount.Handler>, - AppBskyNotificationGetUnreadCount.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.notification.getUnreadCount' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - listNotifications( - cfg: ConfigOf< - AV, - AppBskyNotificationListNotifications.Handler>, - AppBskyNotificationListNotifications.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.notification.listNotifications' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - registerPush( - cfg: ConfigOf< - AV, - AppBskyNotificationRegisterPush.Handler>, - AppBskyNotificationRegisterPush.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.notification.registerPush' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - updateSeen( - cfg: ConfigOf< - AV, - AppBskyNotificationUpdateSeen.Handler>, - AppBskyNotificationUpdateSeen.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.notification.updateSeen' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -export class RichtextNS { - _server: Server - - constructor(server: Server) { - this._server = server - } -} - -export class UnspeccedNS { - _server: Server - - constructor(server: Server) { - this._server = server - } - - getPopular( - cfg: ConfigOf< - AV, - AppBskyUnspeccedGetPopular.Handler>, - AppBskyUnspeccedGetPopular.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.unspecced.getPopular' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getPopularFeedGenerators( - cfg: ConfigOf< - AV, - AppBskyUnspeccedGetPopularFeedGenerators.Handler>, - AppBskyUnspeccedGetPopularFeedGenerators.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.unspecced.getPopularFeedGenerators' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - getTimelineSkeleton( - cfg: ConfigOf< - AV, - AppBskyUnspeccedGetTimelineSkeleton.Handler>, - AppBskyUnspeccedGetTimelineSkeleton.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.unspecced.getTimelineSkeleton' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - searchActorsSkeleton( - cfg: ConfigOf< - AV, - AppBskyUnspeccedSearchActorsSkeleton.Handler>, - AppBskyUnspeccedSearchActorsSkeleton.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.unspecced.searchActorsSkeleton' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } - - searchPostsSkeleton( - cfg: ConfigOf< - AV, - AppBskyUnspeccedSearchPostsSkeleton.Handler>, - AppBskyUnspeccedSearchPostsSkeleton.HandlerReqCtx> - >, - ) { - const nsid = 'app.bsky.unspecced.searchPostsSkeleton' // @ts-ignore - return this._server.xrpc.method(nsid, cfg) - } -} - -type SharedRateLimitOpts = { - name: string - calcKey?: (ctx: T) => string - calcPoints?: (ctx: T) => number -} -type RouteRateLimitOpts = { - durationMs: number - points: number - calcKey?: (ctx: T) => string - calcPoints?: (ctx: T) => number -} -type HandlerRateLimitOpts = SharedRateLimitOpts | RouteRateLimitOpts -type ConfigOf = - | Handler - | { - auth?: Auth - rateLimit?: HandlerRateLimitOpts | HandlerRateLimitOpts[] - handler: Handler - } -type ExtractAuth = Extract< - Awaited>, - { credentials: unknown } -> diff --git a/src/lexicon/lexicons.ts b/src/lexicon/lexicons.ts deleted file mode 100644 index 177b6380..00000000 --- a/src/lexicon/lexicons.ts +++ /dev/null @@ -1,7344 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { LexiconDoc, Lexicons } from '@atproto/lexicon' - -export const schemaDict = { - ComAtprotoAdminDefs: { - lexicon: 1, - id: 'com.atproto.admin.defs', - defs: { - actionView: { - type: 'object', - required: [ - 'id', - 'action', - 'subject', - 'subjectBlobCids', - 'reason', - 'createdBy', - 'createdAt', - 'resolvedReportIds', - ], - properties: { - id: { - type: 'integer', - }, - action: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionType', - }, - durationInHours: { - type: 'integer', - description: - 'Indicates how long this action was meant to be in effect before automatically expiring.', - }, - subject: { - type: 'union', - refs: [ - 'lex:com.atproto.admin.defs#repoRef', - 'lex:com.atproto.repo.strongRef', - ], - }, - subjectBlobCids: { - type: 'array', - items: { - type: 'string', - }, - }, - createLabelVals: { - type: 'array', - items: { - type: 'string', - }, - }, - negateLabelVals: { - type: 'array', - items: { - type: 'string', - }, - }, - reason: { - type: 'string', - }, - createdBy: { - type: 'string', - format: 'did', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - reversal: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionReversal', - }, - resolvedReportIds: { - type: 'array', - items: { - type: 'integer', - }, - }, - }, - }, - actionViewDetail: { - type: 'object', - required: [ - 'id', - 'action', - 'subject', - 'subjectBlobs', - 'reason', - 'createdBy', - 'createdAt', - 'resolvedReports', - ], - properties: { - id: { - type: 'integer', - }, - action: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionType', - }, - durationInHours: { - type: 'integer', - description: - 'Indicates how long this action was meant to be in effect before automatically expiring.', - }, - subject: { - type: 'union', - refs: [ - 'lex:com.atproto.admin.defs#repoView', - 'lex:com.atproto.admin.defs#repoViewNotFound', - 'lex:com.atproto.admin.defs#recordView', - 'lex:com.atproto.admin.defs#recordViewNotFound', - ], - }, - subjectBlobs: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#blobView', - }, - }, - createLabelVals: { - type: 'array', - items: { - type: 'string', - }, - }, - negateLabelVals: { - type: 'array', - items: { - type: 'string', - }, - }, - reason: { - type: 'string', - }, - createdBy: { - type: 'string', - format: 'did', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - reversal: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionReversal', - }, - resolvedReports: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#reportView', - }, - }, - }, - }, - actionViewCurrent: { - type: 'object', - required: ['id', 'action'], - properties: { - id: { - type: 'integer', - }, - action: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionType', - }, - durationInHours: { - type: 'integer', - description: - 'Indicates how long this action was meant to be in effect before automatically expiring.', - }, - }, - }, - actionReversal: { - type: 'object', - required: ['reason', 'createdBy', 'createdAt'], - properties: { - reason: { - type: 'string', - }, - createdBy: { - type: 'string', - format: 'did', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - actionType: { - type: 'string', - knownValues: [ - 'lex:com.atproto.admin.defs#takedown', - 'lex:com.atproto.admin.defs#flag', - 'lex:com.atproto.admin.defs#acknowledge', - 'lex:com.atproto.admin.defs#escalate', - ], - }, - takedown: { - type: 'token', - description: - 'Moderation action type: Takedown. Indicates that content should not be served by the PDS.', - }, - flag: { - type: 'token', - description: - 'Moderation action type: Flag. Indicates that the content was reviewed and considered to violate PDS rules, but may still be served.', - }, - acknowledge: { - type: 'token', - description: - 'Moderation action type: Acknowledge. Indicates that the content was reviewed and not considered to violate PDS rules.', - }, - escalate: { - type: 'token', - description: - 'Moderation action type: Escalate. Indicates that the content has been flagged for additional review.', - }, - reportView: { - type: 'object', - required: [ - 'id', - 'reasonType', - 'subject', - 'reportedBy', - 'createdAt', - 'resolvedByActionIds', - ], - properties: { - id: { - type: 'integer', - }, - reasonType: { - type: 'ref', - ref: 'lex:com.atproto.moderation.defs#reasonType', - }, - reason: { - type: 'string', - }, - subjectRepoHandle: { - type: 'string', - }, - subject: { - type: 'union', - refs: [ - 'lex:com.atproto.admin.defs#repoRef', - 'lex:com.atproto.repo.strongRef', - ], - }, - reportedBy: { - type: 'string', - format: 'did', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - resolvedByActionIds: { - type: 'array', - items: { - type: 'integer', - }, - }, - }, - }, - reportViewDetail: { - type: 'object', - required: [ - 'id', - 'reasonType', - 'subject', - 'reportedBy', - 'createdAt', - 'resolvedByActions', - ], - properties: { - id: { - type: 'integer', - }, - reasonType: { - type: 'ref', - ref: 'lex:com.atproto.moderation.defs#reasonType', - }, - reason: { - type: 'string', - }, - subject: { - type: 'union', - refs: [ - 'lex:com.atproto.admin.defs#repoView', - 'lex:com.atproto.admin.defs#repoViewNotFound', - 'lex:com.atproto.admin.defs#recordView', - 'lex:com.atproto.admin.defs#recordViewNotFound', - ], - }, - reportedBy: { - type: 'string', - format: 'did', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - resolvedByActions: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionView', - }, - }, - }, - }, - repoView: { - type: 'object', - required: [ - 'did', - 'handle', - 'relatedRecords', - 'indexedAt', - 'moderation', - ], - properties: { - did: { - type: 'string', - format: 'did', - }, - handle: { - type: 'string', - format: 'handle', - }, - email: { - type: 'string', - }, - relatedRecords: { - type: 'array', - items: { - type: 'unknown', - }, - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - moderation: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#moderation', - }, - invitedBy: { - type: 'ref', - ref: 'lex:com.atproto.server.defs#inviteCode', - }, - invitesDisabled: { - type: 'boolean', - }, - inviteNote: { - type: 'string', - }, - }, - }, - repoViewDetail: { - type: 'object', - required: [ - 'did', - 'handle', - 'relatedRecords', - 'indexedAt', - 'moderation', - ], - properties: { - did: { - type: 'string', - format: 'did', - }, - handle: { - type: 'string', - format: 'handle', - }, - email: { - type: 'string', - }, - relatedRecords: { - type: 'array', - items: { - type: 'unknown', - }, - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - moderation: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#moderationDetail', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - invitedBy: { - type: 'ref', - ref: 'lex:com.atproto.server.defs#inviteCode', - }, - invites: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.server.defs#inviteCode', - }, - }, - invitesDisabled: { - type: 'boolean', - }, - inviteNote: { - type: 'string', - }, - }, - }, - repoViewNotFound: { - type: 'object', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - }, - }, - }, - repoRef: { - type: 'object', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - }, - }, - }, - recordView: { - type: 'object', - required: [ - 'uri', - 'cid', - 'value', - 'blobCids', - 'indexedAt', - 'moderation', - 'repo', - ], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - value: { - type: 'unknown', - }, - blobCids: { - type: 'array', - items: { - type: 'string', - format: 'cid', - }, - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - moderation: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#moderation', - }, - repo: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#repoView', - }, - }, - }, - recordViewDetail: { - type: 'object', - required: [ - 'uri', - 'cid', - 'value', - 'blobs', - 'indexedAt', - 'moderation', - 'repo', - ], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - value: { - type: 'unknown', - }, - blobs: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#blobView', - }, - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - moderation: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#moderationDetail', - }, - repo: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#repoView', - }, - }, - }, - recordViewNotFound: { - type: 'object', - required: ['uri'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - }, - }, - moderation: { - type: 'object', - properties: { - currentAction: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionViewCurrent', - }, - }, - }, - moderationDetail: { - type: 'object', - required: ['actions', 'reports'], - properties: { - currentAction: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionViewCurrent', - }, - actions: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionView', - }, - }, - reports: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#reportView', - }, - }, - }, - }, - blobView: { - type: 'object', - required: ['cid', 'mimeType', 'size', 'createdAt'], - properties: { - cid: { - type: 'string', - format: 'cid', - }, - mimeType: { - type: 'string', - }, - size: { - type: 'integer', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - details: { - type: 'union', - refs: [ - 'lex:com.atproto.admin.defs#imageDetails', - 'lex:com.atproto.admin.defs#videoDetails', - ], - }, - moderation: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#moderation', - }, - }, - }, - imageDetails: { - type: 'object', - required: ['width', 'height'], - properties: { - width: { - type: 'integer', - }, - height: { - type: 'integer', - }, - }, - }, - videoDetails: { - type: 'object', - required: ['width', 'height', 'length'], - properties: { - width: { - type: 'integer', - }, - height: { - type: 'integer', - }, - length: { - type: 'integer', - }, - }, - }, - }, - }, - ComAtprotoAdminDisableAccountInvites: { - lexicon: 1, - id: 'com.atproto.admin.disableAccountInvites', - defs: { - main: { - type: 'procedure', - description: - 'Disable an account from receiving new invite codes, but does not invalidate existing codes', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['account'], - properties: { - account: { - type: 'string', - format: 'did', - }, - note: { - type: 'string', - description: - 'Additionally add a note describing why the invites were disabled', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminDisableInviteCodes: { - lexicon: 1, - id: 'com.atproto.admin.disableInviteCodes', - defs: { - main: { - type: 'procedure', - description: - 'Disable some set of codes and/or all codes associated with a set of users', - input: { - encoding: 'application/json', - schema: { - type: 'object', - properties: { - codes: { - type: 'array', - items: { - type: 'string', - }, - }, - accounts: { - type: 'array', - items: { - type: 'string', - }, - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminEnableAccountInvites: { - lexicon: 1, - id: 'com.atproto.admin.enableAccountInvites', - defs: { - main: { - type: 'procedure', - description: 'Re-enable an accounts ability to receive invite codes', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['account'], - properties: { - account: { - type: 'string', - format: 'did', - }, - note: { - type: 'string', - description: - 'Additionally add a note describing why the invites were enabled', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminGetInviteCodes: { - lexicon: 1, - id: 'com.atproto.admin.getInviteCodes', - defs: { - main: { - type: 'query', - description: 'Admin view of invite codes', - parameters: { - type: 'params', - properties: { - sort: { - type: 'string', - knownValues: ['recent', 'usage'], - default: 'recent', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 500, - default: 100, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['codes'], - properties: { - cursor: { - type: 'string', - }, - codes: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.server.defs#inviteCode', - }, - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminGetModerationAction: { - lexicon: 1, - id: 'com.atproto.admin.getModerationAction', - defs: { - main: { - type: 'query', - description: 'View details about a moderation action.', - parameters: { - type: 'params', - required: ['id'], - properties: { - id: { - type: 'integer', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionViewDetail', - }, - }, - }, - }, - }, - ComAtprotoAdminGetModerationActions: { - lexicon: 1, - id: 'com.atproto.admin.getModerationActions', - defs: { - main: { - type: 'query', - description: 'List moderation actions related to a subject.', - parameters: { - type: 'params', - properties: { - subject: { - type: 'string', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['actions'], - properties: { - cursor: { - type: 'string', - }, - actions: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionView', - }, - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminGetModerationReport: { - lexicon: 1, - id: 'com.atproto.admin.getModerationReport', - defs: { - main: { - type: 'query', - description: 'View details about a moderation report.', - parameters: { - type: 'params', - required: ['id'], - properties: { - id: { - type: 'integer', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#reportViewDetail', - }, - }, - }, - }, - }, - ComAtprotoAdminGetModerationReports: { - lexicon: 1, - id: 'com.atproto.admin.getModerationReports', - defs: { - main: { - type: 'query', - description: 'List moderation reports related to a subject.', - parameters: { - type: 'params', - properties: { - subject: { - type: 'string', - }, - ignoreSubjects: { - type: 'array', - items: { - type: 'string', - }, - }, - actionedBy: { - type: 'string', - format: 'did', - description: - 'Get all reports that were actioned by a specific moderator', - }, - reporters: { - type: 'array', - items: { - type: 'string', - }, - description: 'Filter reports made by one or more DIDs', - }, - resolved: { - type: 'boolean', - }, - actionType: { - type: 'string', - knownValues: [ - 'com.atproto.admin.defs#takedown', - 'com.atproto.admin.defs#flag', - 'com.atproto.admin.defs#acknowledge', - 'com.atproto.admin.defs#escalate', - ], - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - reverse: { - type: 'boolean', - description: - 'Reverse the order of the returned records? when true, returns reports in chronological order', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['reports'], - properties: { - cursor: { - type: 'string', - }, - reports: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#reportView', - }, - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminGetRecord: { - lexicon: 1, - id: 'com.atproto.admin.getRecord', - defs: { - main: { - type: 'query', - description: 'View details about a record.', - parameters: { - type: 'params', - required: ['uri'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#recordViewDetail', - }, - }, - errors: [ - { - name: 'RecordNotFound', - }, - ], - }, - }, - }, - ComAtprotoAdminGetRepo: { - lexicon: 1, - id: 'com.atproto.admin.getRepo', - defs: { - main: { - type: 'query', - description: 'View details about a repository.', - parameters: { - type: 'params', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#repoViewDetail', - }, - }, - errors: [ - { - name: 'RepoNotFound', - }, - ], - }, - }, - }, - ComAtprotoAdminResolveModerationReports: { - lexicon: 1, - id: 'com.atproto.admin.resolveModerationReports', - defs: { - main: { - type: 'procedure', - description: 'Resolve moderation reports by an action.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['actionId', 'reportIds', 'createdBy'], - properties: { - actionId: { - type: 'integer', - }, - reportIds: { - type: 'array', - items: { - type: 'integer', - }, - }, - createdBy: { - type: 'string', - format: 'did', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionView', - }, - }, - }, - }, - }, - ComAtprotoAdminReverseModerationAction: { - lexicon: 1, - id: 'com.atproto.admin.reverseModerationAction', - defs: { - main: { - type: 'procedure', - description: 'Reverse a moderation action.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['id', 'reason', 'createdBy'], - properties: { - id: { - type: 'integer', - }, - reason: { - type: 'string', - }, - createdBy: { - type: 'string', - format: 'did', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionView', - }, - }, - }, - }, - }, - ComAtprotoAdminSearchRepos: { - lexicon: 1, - id: 'com.atproto.admin.searchRepos', - defs: { - main: { - type: 'query', - description: 'Find repositories based on a search term.', - parameters: { - type: 'params', - properties: { - term: { - type: 'string', - description: "DEPRECATED: use 'q' instead", - }, - q: { - type: 'string', - }, - invitedBy: { - type: 'string', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['repos'], - properties: { - cursor: { - type: 'string', - }, - repos: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#repoView', - }, - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminSendEmail: { - lexicon: 1, - id: 'com.atproto.admin.sendEmail', - defs: { - main: { - type: 'procedure', - description: "Send email to a user's primary email address", - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['recipientDid', 'content'], - properties: { - recipientDid: { - type: 'string', - format: 'did', - }, - content: { - type: 'string', - }, - subject: { - type: 'string', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['sent'], - properties: { - sent: { - type: 'boolean', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminTakeModerationAction: { - lexicon: 1, - id: 'com.atproto.admin.takeModerationAction', - defs: { - main: { - type: 'procedure', - description: 'Take a moderation action on a repo.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['action', 'subject', 'reason', 'createdBy'], - properties: { - action: { - type: 'string', - knownValues: [ - 'com.atproto.admin.defs#takedown', - 'com.atproto.admin.defs#flag', - 'com.atproto.admin.defs#acknowledge', - ], - }, - subject: { - type: 'union', - refs: [ - 'lex:com.atproto.admin.defs#repoRef', - 'lex:com.atproto.repo.strongRef', - ], - }, - subjectBlobCids: { - type: 'array', - items: { - type: 'string', - format: 'cid', - }, - }, - createLabelVals: { - type: 'array', - items: { - type: 'string', - }, - }, - negateLabelVals: { - type: 'array', - items: { - type: 'string', - }, - }, - reason: { - type: 'string', - }, - durationInHours: { - type: 'integer', - description: - 'Indicates how long this action was meant to be in effect before automatically expiring.', - }, - createdBy: { - type: 'string', - format: 'did', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:com.atproto.admin.defs#actionView', - }, - }, - errors: [ - { - name: 'SubjectHasAction', - }, - ], - }, - }, - }, - ComAtprotoAdminUpdateAccountEmail: { - lexicon: 1, - id: 'com.atproto.admin.updateAccountEmail', - defs: { - main: { - type: 'procedure', - description: "Administrative action to update an account's email", - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['account', 'email'], - properties: { - account: { - type: 'string', - format: 'at-identifier', - description: 'The handle or DID of the repo.', - }, - email: { - type: 'string', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoAdminUpdateAccountHandle: { - lexicon: 1, - id: 'com.atproto.admin.updateAccountHandle', - defs: { - main: { - type: 'procedure', - description: "Administrative action to update an account's handle", - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['did', 'handle'], - properties: { - did: { - type: 'string', - format: 'did', - }, - handle: { - type: 'string', - format: 'handle', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoIdentityResolveHandle: { - lexicon: 1, - id: 'com.atproto.identity.resolveHandle', - defs: { - main: { - type: 'query', - description: 'Provides the DID of a repo.', - parameters: { - type: 'params', - required: ['handle'], - properties: { - handle: { - type: 'string', - format: 'handle', - description: 'The handle to resolve.', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoIdentityUpdateHandle: { - lexicon: 1, - id: 'com.atproto.identity.updateHandle', - defs: { - main: { - type: 'procedure', - description: 'Updates the handle of the account', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['handle'], - properties: { - handle: { - type: 'string', - format: 'handle', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoLabelDefs: { - lexicon: 1, - id: 'com.atproto.label.defs', - defs: { - label: { - type: 'object', - description: 'Metadata tag on an atproto resource (eg, repo or record)', - required: ['src', 'uri', 'val', 'cts'], - properties: { - src: { - type: 'string', - format: 'did', - description: 'DID of the actor who created this label', - }, - uri: { - type: 'string', - format: 'uri', - description: - 'AT URI of the record, repository (account), or other resource which this label applies to', - }, - cid: { - type: 'string', - format: 'cid', - description: - "optionally, CID specifying the specific version of 'uri' resource this label applies to", - }, - val: { - type: 'string', - maxLength: 128, - description: - 'the short string name of the value or type of this label', - }, - neg: { - type: 'boolean', - description: - 'if true, this is a negation label, overwriting a previous label', - }, - cts: { - type: 'string', - format: 'datetime', - description: 'timestamp when this label was created', - }, - }, - }, - selfLabels: { - type: 'object', - description: - 'Metadata tags on an atproto record, published by the author within the record.', - required: ['values'], - properties: { - values: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#selfLabel', - }, - maxLength: 10, - }, - }, - }, - selfLabel: { - type: 'object', - description: - 'Metadata tag on an atproto record, published by the author within the record. Note -- schemas should use #selfLabels, not #selfLabel.', - required: ['val'], - properties: { - val: { - type: 'string', - maxLength: 128, - description: - 'the short string name of the value or type of this label', - }, - }, - }, - }, - }, - ComAtprotoLabelQueryLabels: { - lexicon: 1, - id: 'com.atproto.label.queryLabels', - defs: { - main: { - type: 'query', - description: 'Find labels relevant to the provided URI patterns.', - parameters: { - type: 'params', - required: ['uriPatterns'], - properties: { - uriPatterns: { - type: 'array', - items: { - type: 'string', - }, - description: - "List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI", - }, - sources: { - type: 'array', - items: { - type: 'string', - format: 'did', - }, - description: 'Optional list of label sources (DIDs) to filter on', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 250, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['labels'], - properties: { - cursor: { - type: 'string', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - }, - }, - }, - }, - }, - }, - ComAtprotoLabelSubscribeLabels: { - lexicon: 1, - id: 'com.atproto.label.subscribeLabels', - defs: { - main: { - type: 'subscription', - description: 'Subscribe to label updates', - parameters: { - type: 'params', - properties: { - cursor: { - type: 'integer', - description: 'The last known event to backfill from.', - }, - }, - }, - message: { - schema: { - type: 'union', - refs: [ - 'lex:com.atproto.label.subscribeLabels#labels', - 'lex:com.atproto.label.subscribeLabels#info', - ], - }, - }, - errors: [ - { - name: 'FutureCursor', - }, - ], - }, - labels: { - type: 'object', - required: ['seq', 'labels'], - properties: { - seq: { - type: 'integer', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - }, - }, - info: { - type: 'object', - required: ['name'], - properties: { - name: { - type: 'string', - knownValues: ['OutdatedCursor'], - }, - message: { - type: 'string', - }, - }, - }, - }, - }, - ComAtprotoModerationCreateReport: { - lexicon: 1, - id: 'com.atproto.moderation.createReport', - defs: { - main: { - type: 'procedure', - description: 'Report a repo or a record.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['reasonType', 'subject'], - properties: { - reasonType: { - type: 'ref', - ref: 'lex:com.atproto.moderation.defs#reasonType', - }, - reason: { - type: 'string', - }, - subject: { - type: 'union', - refs: [ - 'lex:com.atproto.admin.defs#repoRef', - 'lex:com.atproto.repo.strongRef', - ], - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: [ - 'id', - 'reasonType', - 'subject', - 'reportedBy', - 'createdAt', - ], - properties: { - id: { - type: 'integer', - }, - reasonType: { - type: 'ref', - ref: 'lex:com.atproto.moderation.defs#reasonType', - }, - reason: { - type: 'string', - }, - subject: { - type: 'union', - refs: [ - 'lex:com.atproto.admin.defs#repoRef', - 'lex:com.atproto.repo.strongRef', - ], - }, - reportedBy: { - type: 'string', - format: 'did', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoModerationDefs: { - lexicon: 1, - id: 'com.atproto.moderation.defs', - defs: { - reasonType: { - type: 'string', - knownValues: [ - 'com.atproto.moderation.defs#reasonSpam', - 'com.atproto.moderation.defs#reasonViolation', - 'com.atproto.moderation.defs#reasonMisleading', - 'com.atproto.moderation.defs#reasonSexual', - 'com.atproto.moderation.defs#reasonRude', - 'com.atproto.moderation.defs#reasonOther', - ], - }, - reasonSpam: { - type: 'token', - description: 'Spam: frequent unwanted promotion, replies, mentions', - }, - reasonViolation: { - type: 'token', - description: 'Direct violation of server rules, laws, terms of service', - }, - reasonMisleading: { - type: 'token', - description: 'Misleading identity, affiliation, or content', - }, - reasonSexual: { - type: 'token', - description: 'Unwanted or mislabeled sexual content', - }, - reasonRude: { - type: 'token', - description: - 'Rude, harassing, explicit, or otherwise unwelcoming behavior', - }, - reasonOther: { - type: 'token', - description: 'Other: reports not falling under another report category', - }, - }, - }, - ComAtprotoRepoApplyWrites: { - lexicon: 1, - id: 'com.atproto.repo.applyWrites', - defs: { - main: { - type: 'procedure', - description: - 'Apply a batch transaction of creates, updates, and deletes.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['repo', 'writes'], - properties: { - repo: { - type: 'string', - format: 'at-identifier', - description: 'The handle or DID of the repo.', - }, - validate: { - type: 'boolean', - default: true, - description: 'Validate the records?', - }, - writes: { - type: 'array', - items: { - type: 'union', - refs: [ - 'lex:com.atproto.repo.applyWrites#create', - 'lex:com.atproto.repo.applyWrites#update', - 'lex:com.atproto.repo.applyWrites#delete', - ], - closed: true, - }, - }, - swapCommit: { - type: 'string', - format: 'cid', - }, - }, - }, - }, - errors: [ - { - name: 'InvalidSwap', - }, - ], - }, - create: { - type: 'object', - description: 'Create a new record.', - required: ['collection', 'value'], - properties: { - collection: { - type: 'string', - format: 'nsid', - }, - rkey: { - type: 'string', - maxLength: 15, - }, - value: { - type: 'unknown', - }, - }, - }, - update: { - type: 'object', - description: 'Update an existing record.', - required: ['collection', 'rkey', 'value'], - properties: { - collection: { - type: 'string', - format: 'nsid', - }, - rkey: { - type: 'string', - }, - value: { - type: 'unknown', - }, - }, - }, - delete: { - type: 'object', - description: 'Delete an existing record.', - required: ['collection', 'rkey'], - properties: { - collection: { - type: 'string', - format: 'nsid', - }, - rkey: { - type: 'string', - }, - }, - }, - }, - }, - ComAtprotoRepoCreateRecord: { - lexicon: 1, - id: 'com.atproto.repo.createRecord', - defs: { - main: { - type: 'procedure', - description: 'Create a new record.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['repo', 'collection', 'record'], - properties: { - repo: { - type: 'string', - format: 'at-identifier', - description: 'The handle or DID of the repo.', - }, - collection: { - type: 'string', - format: 'nsid', - description: 'The NSID of the record collection.', - }, - rkey: { - type: 'string', - description: 'The key of the record.', - maxLength: 15, - }, - validate: { - type: 'boolean', - default: true, - description: 'Validate the record?', - }, - record: { - type: 'unknown', - description: 'The record to create.', - }, - swapCommit: { - type: 'string', - format: 'cid', - description: - 'Compare and swap with the previous commit by cid.', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['uri', 'cid'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - }, - }, - }, - errors: [ - { - name: 'InvalidSwap', - }, - ], - }, - }, - }, - ComAtprotoRepoDeleteRecord: { - lexicon: 1, - id: 'com.atproto.repo.deleteRecord', - defs: { - main: { - type: 'procedure', - description: "Delete a record, or ensure it doesn't exist.", - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['repo', 'collection', 'rkey'], - properties: { - repo: { - type: 'string', - format: 'at-identifier', - description: 'The handle or DID of the repo.', - }, - collection: { - type: 'string', - format: 'nsid', - description: 'The NSID of the record collection.', - }, - rkey: { - type: 'string', - description: 'The key of the record.', - }, - swapRecord: { - type: 'string', - format: 'cid', - description: - 'Compare and swap with the previous record by cid.', - }, - swapCommit: { - type: 'string', - format: 'cid', - description: - 'Compare and swap with the previous commit by cid.', - }, - }, - }, - }, - errors: [ - { - name: 'InvalidSwap', - }, - ], - }, - }, - }, - ComAtprotoRepoDescribeRepo: { - lexicon: 1, - id: 'com.atproto.repo.describeRepo', - defs: { - main: { - type: 'query', - description: - 'Get information about the repo, including the list of collections.', - parameters: { - type: 'params', - required: ['repo'], - properties: { - repo: { - type: 'string', - format: 'at-identifier', - description: 'The handle or DID of the repo.', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: [ - 'handle', - 'did', - 'didDoc', - 'collections', - 'handleIsCorrect', - ], - properties: { - handle: { - type: 'string', - format: 'handle', - }, - did: { - type: 'string', - format: 'did', - }, - didDoc: { - type: 'unknown', - }, - collections: { - type: 'array', - items: { - type: 'string', - format: 'nsid', - }, - }, - handleIsCorrect: { - type: 'boolean', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoRepoGetRecord: { - lexicon: 1, - id: 'com.atproto.repo.getRecord', - defs: { - main: { - type: 'query', - description: 'Get a record.', - parameters: { - type: 'params', - required: ['repo', 'collection', 'rkey'], - properties: { - repo: { - type: 'string', - format: 'at-identifier', - description: 'The handle or DID of the repo.', - }, - collection: { - type: 'string', - format: 'nsid', - description: 'The NSID of the record collection.', - }, - rkey: { - type: 'string', - description: 'The key of the record.', - }, - cid: { - type: 'string', - format: 'cid', - description: - 'The CID of the version of the record. If not specified, then return the most recent version.', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['uri', 'value'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - value: { - type: 'unknown', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoRepoListRecords: { - lexicon: 1, - id: 'com.atproto.repo.listRecords', - defs: { - main: { - type: 'query', - description: 'List a range of records in a collection.', - parameters: { - type: 'params', - required: ['repo', 'collection'], - properties: { - repo: { - type: 'string', - format: 'at-identifier', - description: 'The handle or DID of the repo.', - }, - collection: { - type: 'string', - format: 'nsid', - description: 'The NSID of the record type.', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - description: 'The number of records to return.', - }, - cursor: { - type: 'string', - }, - rkeyStart: { - type: 'string', - description: - 'DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)', - }, - rkeyEnd: { - type: 'string', - description: - 'DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)', - }, - reverse: { - type: 'boolean', - description: 'Reverse the order of the returned records?', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['records'], - properties: { - cursor: { - type: 'string', - }, - records: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.repo.listRecords#record', - }, - }, - }, - }, - }, - }, - record: { - type: 'object', - required: ['uri', 'cid', 'value'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - value: { - type: 'unknown', - }, - }, - }, - }, - }, - ComAtprotoRepoPutRecord: { - lexicon: 1, - id: 'com.atproto.repo.putRecord', - defs: { - main: { - type: 'procedure', - description: 'Write a record, creating or updating it as needed.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['repo', 'collection', 'rkey', 'record'], - nullable: ['swapRecord'], - properties: { - repo: { - type: 'string', - format: 'at-identifier', - description: 'The handle or DID of the repo.', - }, - collection: { - type: 'string', - format: 'nsid', - description: 'The NSID of the record collection.', - }, - rkey: { - type: 'string', - description: 'The key of the record.', - maxLength: 15, - }, - validate: { - type: 'boolean', - default: true, - description: 'Validate the record?', - }, - record: { - type: 'unknown', - description: 'The record to write.', - }, - swapRecord: { - type: 'string', - format: 'cid', - description: - 'Compare and swap with the previous record by cid.', - }, - swapCommit: { - type: 'string', - format: 'cid', - description: - 'Compare and swap with the previous commit by cid.', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['uri', 'cid'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - }, - }, - }, - errors: [ - { - name: 'InvalidSwap', - }, - ], - }, - }, - }, - ComAtprotoRepoStrongRef: { - lexicon: 1, - id: 'com.atproto.repo.strongRef', - description: 'A URI with a content-hash fingerprint.', - defs: { - main: { - type: 'object', - required: ['uri', 'cid'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - }, - }, - }, - }, - ComAtprotoRepoUploadBlob: { - lexicon: 1, - id: 'com.atproto.repo.uploadBlob', - defs: { - main: { - type: 'procedure', - description: - 'Upload a new blob to be added to repo in a later request.', - input: { - encoding: '*/*', - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['blob'], - properties: { - blob: { - type: 'blob', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoServerCreateAccount: { - lexicon: 1, - id: 'com.atproto.server.createAccount', - defs: { - main: { - type: 'procedure', - description: 'Create an account.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['handle', 'email', 'password'], - properties: { - email: { - type: 'string', - }, - handle: { - type: 'string', - format: 'handle', - }, - did: { - type: 'string', - format: 'did', - }, - inviteCode: { - type: 'string', - }, - password: { - type: 'string', - }, - recoveryKey: { - type: 'string', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['accessJwt', 'refreshJwt', 'handle', 'did'], - properties: { - accessJwt: { - type: 'string', - }, - refreshJwt: { - type: 'string', - }, - handle: { - type: 'string', - format: 'handle', - }, - did: { - type: 'string', - format: 'did', - }, - }, - }, - }, - errors: [ - { - name: 'InvalidHandle', - }, - { - name: 'InvalidPassword', - }, - { - name: 'InvalidInviteCode', - }, - { - name: 'HandleNotAvailable', - }, - { - name: 'UnsupportedDomain', - }, - { - name: 'UnresolvableDid', - }, - { - name: 'IncompatibleDidDoc', - }, - ], - }, - }, - }, - ComAtprotoServerCreateAppPassword: { - lexicon: 1, - id: 'com.atproto.server.createAppPassword', - defs: { - main: { - type: 'procedure', - description: 'Create an app-specific password.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['name'], - properties: { - name: { - type: 'string', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:com.atproto.server.createAppPassword#appPassword', - }, - }, - errors: [ - { - name: 'AccountTakedown', - }, - ], - }, - appPassword: { - type: 'object', - required: ['name', 'password', 'createdAt'], - properties: { - name: { - type: 'string', - }, - password: { - type: 'string', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - ComAtprotoServerCreateInviteCode: { - lexicon: 1, - id: 'com.atproto.server.createInviteCode', - defs: { - main: { - type: 'procedure', - description: 'Create an invite code.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['useCount'], - properties: { - useCount: { - type: 'integer', - }, - forAccount: { - type: 'string', - format: 'did', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['code'], - properties: { - code: { - type: 'string', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoServerCreateInviteCodes: { - lexicon: 1, - id: 'com.atproto.server.createInviteCodes', - defs: { - main: { - type: 'procedure', - description: 'Create an invite code.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['codeCount', 'useCount'], - properties: { - codeCount: { - type: 'integer', - default: 1, - }, - useCount: { - type: 'integer', - }, - forAccounts: { - type: 'array', - items: { - type: 'string', - format: 'did', - }, - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['codes'], - properties: { - codes: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.server.createInviteCodes#accountCodes', - }, - }, - }, - }, - }, - }, - accountCodes: { - type: 'object', - required: ['account', 'codes'], - properties: { - account: { - type: 'string', - }, - codes: { - type: 'array', - items: { - type: 'string', - }, - }, - }, - }, - }, - }, - ComAtprotoServerCreateSession: { - lexicon: 1, - id: 'com.atproto.server.createSession', - defs: { - main: { - type: 'procedure', - description: 'Create an authentication session.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['identifier', 'password'], - properties: { - identifier: { - type: 'string', - description: - 'Handle or other identifier supported by the server for the authenticating user.', - }, - password: { - type: 'string', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['accessJwt', 'refreshJwt', 'handle', 'did'], - properties: { - accessJwt: { - type: 'string', - }, - refreshJwt: { - type: 'string', - }, - handle: { - type: 'string', - format: 'handle', - }, - did: { - type: 'string', - format: 'did', - }, - email: { - type: 'string', - }, - }, - }, - }, - errors: [ - { - name: 'AccountTakedown', - }, - ], - }, - }, - }, - ComAtprotoServerDefs: { - lexicon: 1, - id: 'com.atproto.server.defs', - defs: { - inviteCode: { - type: 'object', - required: [ - 'code', - 'available', - 'disabled', - 'forAccount', - 'createdBy', - 'createdAt', - 'uses', - ], - properties: { - code: { - type: 'string', - }, - available: { - type: 'integer', - }, - disabled: { - type: 'boolean', - }, - forAccount: { - type: 'string', - }, - createdBy: { - type: 'string', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - uses: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.server.defs#inviteCodeUse', - }, - }, - }, - }, - inviteCodeUse: { - type: 'object', - required: ['usedBy', 'usedAt'], - properties: { - usedBy: { - type: 'string', - format: 'did', - }, - usedAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - ComAtprotoServerDeleteAccount: { - lexicon: 1, - id: 'com.atproto.server.deleteAccount', - defs: { - main: { - type: 'procedure', - description: 'Delete a user account with a token and password.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['did', 'password', 'token'], - properties: { - did: { - type: 'string', - format: 'did', - }, - password: { - type: 'string', - }, - token: { - type: 'string', - }, - }, - }, - }, - errors: [ - { - name: 'ExpiredToken', - }, - { - name: 'InvalidToken', - }, - ], - }, - }, - }, - ComAtprotoServerDeleteSession: { - lexicon: 1, - id: 'com.atproto.server.deleteSession', - defs: { - main: { - type: 'procedure', - description: 'Delete the current session.', - }, - }, - }, - ComAtprotoServerDescribeServer: { - lexicon: 1, - id: 'com.atproto.server.describeServer', - defs: { - main: { - type: 'query', - description: - "Get a document describing the service's accounts configuration.", - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['availableUserDomains'], - properties: { - inviteCodeRequired: { - type: 'boolean', - }, - availableUserDomains: { - type: 'array', - items: { - type: 'string', - }, - }, - links: { - type: 'ref', - ref: 'lex:com.atproto.server.describeServer#links', - }, - }, - }, - }, - }, - links: { - type: 'object', - properties: { - privacyPolicy: { - type: 'string', - }, - termsOfService: { - type: 'string', - }, - }, - }, - }, - }, - ComAtprotoServerGetAccountInviteCodes: { - lexicon: 1, - id: 'com.atproto.server.getAccountInviteCodes', - defs: { - main: { - type: 'query', - description: 'Get all invite codes for a given account', - parameters: { - type: 'params', - properties: { - includeUsed: { - type: 'boolean', - default: true, - }, - createAvailable: { - type: 'boolean', - default: true, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['codes'], - properties: { - codes: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.server.defs#inviteCode', - }, - }, - }, - }, - }, - errors: [ - { - name: 'DuplicateCreate', - }, - ], - }, - }, - }, - ComAtprotoServerGetSession: { - lexicon: 1, - id: 'com.atproto.server.getSession', - defs: { - main: { - type: 'query', - description: 'Get information about the current session.', - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['handle', 'did'], - properties: { - handle: { - type: 'string', - format: 'handle', - }, - did: { - type: 'string', - format: 'did', - }, - email: { - type: 'string', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoServerListAppPasswords: { - lexicon: 1, - id: 'com.atproto.server.listAppPasswords', - defs: { - main: { - type: 'query', - description: 'List all app-specific passwords.', - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['passwords'], - properties: { - passwords: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.server.listAppPasswords#appPassword', - }, - }, - }, - }, - }, - errors: [ - { - name: 'AccountTakedown', - }, - ], - }, - appPassword: { - type: 'object', - required: ['name', 'createdAt'], - properties: { - name: { - type: 'string', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - ComAtprotoServerRefreshSession: { - lexicon: 1, - id: 'com.atproto.server.refreshSession', - defs: { - main: { - type: 'procedure', - description: 'Refresh an authentication session.', - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['accessJwt', 'refreshJwt', 'handle', 'did'], - properties: { - accessJwt: { - type: 'string', - }, - refreshJwt: { - type: 'string', - }, - handle: { - type: 'string', - format: 'handle', - }, - did: { - type: 'string', - format: 'did', - }, - }, - }, - }, - errors: [ - { - name: 'AccountTakedown', - }, - ], - }, - }, - }, - ComAtprotoServerRequestAccountDelete: { - lexicon: 1, - id: 'com.atproto.server.requestAccountDelete', - defs: { - main: { - type: 'procedure', - description: 'Initiate a user account deletion via email.', - }, - }, - }, - ComAtprotoServerRequestPasswordReset: { - lexicon: 1, - id: 'com.atproto.server.requestPasswordReset', - defs: { - main: { - type: 'procedure', - description: 'Initiate a user account password reset via email.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['email'], - properties: { - email: { - type: 'string', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoServerResetPassword: { - lexicon: 1, - id: 'com.atproto.server.resetPassword', - defs: { - main: { - type: 'procedure', - description: 'Reset a user account password using a token.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['token', 'password'], - properties: { - token: { - type: 'string', - }, - password: { - type: 'string', - }, - }, - }, - }, - errors: [ - { - name: 'ExpiredToken', - }, - { - name: 'InvalidToken', - }, - ], - }, - }, - }, - ComAtprotoServerRevokeAppPassword: { - lexicon: 1, - id: 'com.atproto.server.revokeAppPassword', - defs: { - main: { - type: 'procedure', - description: 'Revoke an app-specific password by name.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['name'], - properties: { - name: { - type: 'string', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoSyncGetBlob: { - lexicon: 1, - id: 'com.atproto.sync.getBlob', - defs: { - main: { - type: 'query', - description: 'Get a blob associated with a given repo.', - parameters: { - type: 'params', - required: ['did', 'cid'], - properties: { - did: { - type: 'string', - format: 'did', - description: 'The DID of the repo.', - }, - cid: { - type: 'string', - format: 'cid', - description: 'The CID of the blob to fetch', - }, - }, - }, - output: { - encoding: '*/*', - }, - }, - }, - }, - ComAtprotoSyncGetBlocks: { - lexicon: 1, - id: 'com.atproto.sync.getBlocks', - defs: { - main: { - type: 'query', - description: 'Gets blocks from a given repo.', - parameters: { - type: 'params', - required: ['did', 'cids'], - properties: { - did: { - type: 'string', - format: 'did', - description: 'The DID of the repo.', - }, - cids: { - type: 'array', - items: { - type: 'string', - format: 'cid', - }, - }, - }, - }, - output: { - encoding: 'application/vnd.ipld.car', - }, - }, - }, - }, - ComAtprotoSyncGetCheckout: { - lexicon: 1, - id: 'com.atproto.sync.getCheckout', - defs: { - main: { - type: 'query', - description: 'DEPRECATED - please use com.atproto.sync.getRepo instead', - parameters: { - type: 'params', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - description: 'The DID of the repo.', - }, - }, - }, - output: { - encoding: 'application/vnd.ipld.car', - }, - }, - }, - }, - ComAtprotoSyncGetHead: { - lexicon: 1, - id: 'com.atproto.sync.getHead', - defs: { - main: { - type: 'query', - description: - 'DEPRECATED - please use com.atproto.sync.getLatestCommit instead', - parameters: { - type: 'params', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - description: 'The DID of the repo.', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['root'], - properties: { - root: { - type: 'string', - format: 'cid', - }, - }, - }, - }, - errors: [ - { - name: 'HeadNotFound', - }, - ], - }, - }, - }, - ComAtprotoSyncGetLatestCommit: { - lexicon: 1, - id: 'com.atproto.sync.getLatestCommit', - defs: { - main: { - type: 'query', - description: 'Gets the current commit CID & revision of the repo.', - parameters: { - type: 'params', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - description: 'The DID of the repo.', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['cid', 'rev'], - properties: { - cid: { - type: 'string', - format: 'cid', - }, - rev: { - type: 'string', - }, - }, - }, - }, - errors: [ - { - name: 'RepoNotFound', - }, - ], - }, - }, - }, - ComAtprotoSyncGetRecord: { - lexicon: 1, - id: 'com.atproto.sync.getRecord', - defs: { - main: { - type: 'query', - description: - 'Gets blocks needed for existence or non-existence of record.', - parameters: { - type: 'params', - required: ['did', 'collection', 'rkey'], - properties: { - did: { - type: 'string', - format: 'did', - description: 'The DID of the repo.', - }, - collection: { - type: 'string', - format: 'nsid', - }, - rkey: { - type: 'string', - }, - commit: { - type: 'string', - format: 'cid', - description: 'An optional past commit CID.', - }, - }, - }, - output: { - encoding: 'application/vnd.ipld.car', - }, - }, - }, - }, - ComAtprotoSyncGetRepo: { - lexicon: 1, - id: 'com.atproto.sync.getRepo', - defs: { - main: { - type: 'query', - description: - "Gets the did's repo, optionally catching up from a specific revision.", - parameters: { - type: 'params', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - description: 'The DID of the repo.', - }, - since: { - type: 'string', - description: 'The revision of the repo to catch up from.', - }, - }, - }, - output: { - encoding: 'application/vnd.ipld.car', - }, - }, - }, - }, - ComAtprotoSyncListBlobs: { - lexicon: 1, - id: 'com.atproto.sync.listBlobs', - defs: { - main: { - type: 'query', - description: 'List blob cids since some revision', - parameters: { - type: 'params', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - description: 'The DID of the repo.', - }, - since: { - type: 'string', - description: 'Optional revision of the repo to list blobs since', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 1000, - default: 500, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['cids'], - properties: { - cursor: { - type: 'string', - }, - cids: { - type: 'array', - items: { - type: 'string', - format: 'cid', - }, - }, - }, - }, - }, - }, - }, - }, - ComAtprotoSyncListRepos: { - lexicon: 1, - id: 'com.atproto.sync.listRepos', - defs: { - main: { - type: 'query', - description: 'List dids and root cids of hosted repos', - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 1000, - default: 500, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['repos'], - properties: { - cursor: { - type: 'string', - }, - repos: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.sync.listRepos#repo', - }, - }, - }, - }, - }, - }, - repo: { - type: 'object', - required: ['did', 'head'], - properties: { - did: { - type: 'string', - format: 'did', - }, - head: { - type: 'string', - format: 'cid', - }, - }, - }, - }, - }, - ComAtprotoSyncNotifyOfUpdate: { - lexicon: 1, - id: 'com.atproto.sync.notifyOfUpdate', - defs: { - main: { - type: 'procedure', - description: - 'Notify a crawling service of a recent update. Often when a long break between updates causes the connection with the crawling service to break.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['hostname'], - properties: { - hostname: { - type: 'string', - description: - 'Hostname of the service that is notifying of update.', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoSyncRequestCrawl: { - lexicon: 1, - id: 'com.atproto.sync.requestCrawl', - defs: { - main: { - type: 'procedure', - description: 'Request a service to persistently crawl hosted repos.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['hostname'], - properties: { - hostname: { - type: 'string', - description: - 'Hostname of the service that is requesting to be crawled.', - }, - }, - }, - }, - }, - }, - }, - ComAtprotoSyncSubscribeRepos: { - lexicon: 1, - id: 'com.atproto.sync.subscribeRepos', - defs: { - main: { - type: 'subscription', - description: 'Subscribe to repo updates', - parameters: { - type: 'params', - properties: { - cursor: { - type: 'integer', - description: 'The last known event to backfill from.', - }, - }, - }, - message: { - schema: { - type: 'union', - refs: [ - 'lex:com.atproto.sync.subscribeRepos#commit', - 'lex:com.atproto.sync.subscribeRepos#handle', - 'lex:com.atproto.sync.subscribeRepos#migrate', - 'lex:com.atproto.sync.subscribeRepos#tombstone', - 'lex:com.atproto.sync.subscribeRepos#info', - ], - }, - }, - errors: [ - { - name: 'FutureCursor', - }, - { - name: 'ConsumerTooSlow', - }, - ], - }, - commit: { - type: 'object', - required: [ - 'seq', - 'rebase', - 'tooBig', - 'repo', - 'commit', - 'rev', - 'since', - 'blocks', - 'ops', - 'blobs', - 'time', - ], - nullable: ['prev', 'since'], - properties: { - seq: { - type: 'integer', - }, - rebase: { - type: 'boolean', - }, - tooBig: { - type: 'boolean', - }, - repo: { - type: 'string', - format: 'did', - }, - commit: { - type: 'cid-link', - }, - prev: { - type: 'cid-link', - }, - rev: { - type: 'string', - description: 'The rev of the emitted commit', - }, - since: { - type: 'string', - description: 'The rev of the last emitted commit from this repo', - }, - blocks: { - type: 'bytes', - description: 'CAR file containing relevant blocks', - maxLength: 1000000, - }, - ops: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.sync.subscribeRepos#repoOp', - }, - maxLength: 200, - }, - blobs: { - type: 'array', - items: { - type: 'cid-link', - }, - }, - time: { - type: 'string', - format: 'datetime', - }, - }, - }, - handle: { - type: 'object', - required: ['seq', 'did', 'handle', 'time'], - properties: { - seq: { - type: 'integer', - }, - did: { - type: 'string', - format: 'did', - }, - handle: { - type: 'string', - format: 'handle', - }, - time: { - type: 'string', - format: 'datetime', - }, - }, - }, - migrate: { - type: 'object', - required: ['seq', 'did', 'migrateTo', 'time'], - nullable: ['migrateTo'], - properties: { - seq: { - type: 'integer', - }, - did: { - type: 'string', - format: 'did', - }, - migrateTo: { - type: 'string', - }, - time: { - type: 'string', - format: 'datetime', - }, - }, - }, - tombstone: { - type: 'object', - required: ['seq', 'did', 'time'], - properties: { - seq: { - type: 'integer', - }, - did: { - type: 'string', - format: 'did', - }, - time: { - type: 'string', - format: 'datetime', - }, - }, - }, - info: { - type: 'object', - required: ['name'], - properties: { - name: { - type: 'string', - knownValues: ['OutdatedCursor'], - }, - message: { - type: 'string', - }, - }, - }, - repoOp: { - type: 'object', - description: - "A repo operation, ie a write of a single record. For creates and updates, cid is the record's CID as of this operation. For deletes, it's null.", - required: ['action', 'path', 'cid'], - nullable: ['cid'], - properties: { - action: { - type: 'string', - knownValues: ['create', 'update', 'delete'], - }, - path: { - type: 'string', - }, - cid: { - type: 'cid-link', - }, - }, - }, - }, - }, - AppBskyActorDefs: { - lexicon: 1, - id: 'app.bsky.actor.defs', - description: 'A reference to an actor in the network.', - defs: { - profileViewBasic: { - type: 'object', - required: ['did', 'handle'], - properties: { - did: { - type: 'string', - format: 'did', - }, - handle: { - type: 'string', - format: 'handle', - }, - displayName: { - type: 'string', - maxGraphemes: 64, - maxLength: 640, - }, - avatar: { - type: 'string', - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#viewerState', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - }, - }, - profileView: { - type: 'object', - required: ['did', 'handle'], - properties: { - did: { - type: 'string', - format: 'did', - }, - handle: { - type: 'string', - format: 'handle', - }, - displayName: { - type: 'string', - maxGraphemes: 64, - maxLength: 640, - }, - description: { - type: 'string', - maxGraphemes: 256, - maxLength: 2560, - }, - avatar: { - type: 'string', - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#viewerState', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - }, - }, - profileViewDetailed: { - type: 'object', - required: ['did', 'handle'], - properties: { - did: { - type: 'string', - format: 'did', - }, - handle: { - type: 'string', - format: 'handle', - }, - displayName: { - type: 'string', - maxGraphemes: 64, - maxLength: 640, - }, - description: { - type: 'string', - maxGraphemes: 256, - maxLength: 2560, - }, - avatar: { - type: 'string', - }, - banner: { - type: 'string', - }, - followersCount: { - type: 'integer', - }, - followsCount: { - type: 'integer', - }, - postsCount: { - type: 'integer', - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#viewerState', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - }, - }, - viewerState: { - type: 'object', - properties: { - muted: { - type: 'boolean', - }, - mutedByList: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listViewBasic', - }, - blockedBy: { - type: 'boolean', - }, - blocking: { - type: 'string', - format: 'at-uri', - }, - following: { - type: 'string', - format: 'at-uri', - }, - followedBy: { - type: 'string', - format: 'at-uri', - }, - }, - }, - preferences: { - type: 'array', - items: { - type: 'union', - refs: [ - 'lex:app.bsky.actor.defs#adultContentPref', - 'lex:app.bsky.actor.defs#contentLabelPref', - 'lex:app.bsky.actor.defs#savedFeedsPref', - 'lex:app.bsky.actor.defs#personalDetailsPref', - 'lex:app.bsky.actor.defs#feedViewPref', - 'lex:app.bsky.actor.defs#threadViewPref', - ], - }, - }, - adultContentPref: { - type: 'object', - required: ['enabled'], - properties: { - enabled: { - type: 'boolean', - default: false, - }, - }, - }, - contentLabelPref: { - type: 'object', - required: ['label', 'visibility'], - properties: { - label: { - type: 'string', - }, - visibility: { - type: 'string', - knownValues: ['show', 'warn', 'hide'], - }, - }, - }, - savedFeedsPref: { - type: 'object', - required: ['pinned', 'saved'], - properties: { - pinned: { - type: 'array', - items: { - type: 'string', - format: 'at-uri', - }, - }, - saved: { - type: 'array', - items: { - type: 'string', - format: 'at-uri', - }, - }, - }, - }, - personalDetailsPref: { - type: 'object', - properties: { - birthDate: { - type: 'string', - format: 'datetime', - description: 'The birth date of the owner of the account.', - }, - }, - }, - feedViewPref: { - type: 'object', - required: ['feed'], - properties: { - feed: { - type: 'string', - description: - 'The URI of the feed, or an identifier which describes the feed.', - }, - hideReplies: { - type: 'boolean', - description: 'Hide replies in the feed.', - }, - hideRepliesByUnfollowed: { - type: 'boolean', - description: - 'Hide replies in the feed if they are not by followed users.', - }, - hideRepliesByLikeCount: { - type: 'integer', - description: - 'Hide replies in the feed if they do not have this number of likes.', - }, - hideReposts: { - type: 'boolean', - description: 'Hide reposts in the feed.', - }, - hideQuotePosts: { - type: 'boolean', - description: 'Hide quote posts in the feed.', - }, - }, - }, - threadViewPref: { - type: 'object', - properties: { - sort: { - type: 'string', - description: 'Sorting mode.', - knownValues: ['oldest', 'newest', 'most-likes', 'random'], - }, - prioritizeFollowedUsers: { - type: 'boolean', - description: 'Show followed users at the top of all replies.', - }, - }, - }, - }, - }, - AppBskyActorGetPreferences: { - lexicon: 1, - id: 'app.bsky.actor.getPreferences', - defs: { - main: { - type: 'query', - description: 'Get private preferences attached to the account.', - parameters: { - type: 'params', - properties: {}, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['preferences'], - properties: { - preferences: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#preferences', - }, - }, - }, - }, - }, - }, - }, - AppBskyActorGetProfile: { - lexicon: 1, - id: 'app.bsky.actor.getProfile', - defs: { - main: { - type: 'query', - parameters: { - type: 'params', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileViewDetailed', - }, - }, - }, - }, - }, - AppBskyActorGetProfiles: { - lexicon: 1, - id: 'app.bsky.actor.getProfiles', - defs: { - main: { - type: 'query', - parameters: { - type: 'params', - required: ['actors'], - properties: { - actors: { - type: 'array', - items: { - type: 'string', - format: 'at-identifier', - }, - maxLength: 25, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['profiles'], - properties: { - profiles: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileViewDetailed', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyActorGetSuggestions: { - lexicon: 1, - id: 'app.bsky.actor.getSuggestions', - defs: { - main: { - type: 'query', - description: - 'Get a list of actors suggested for following. Used in discovery UIs.', - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['actors'], - properties: { - cursor: { - type: 'string', - }, - actors: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyActorProfile: { - lexicon: 1, - id: 'app.bsky.actor.profile', - defs: { - main: { - type: 'record', - key: 'literal:self', - record: { - type: 'object', - properties: { - displayName: { - type: 'string', - maxGraphemes: 64, - maxLength: 640, - }, - description: { - type: 'string', - maxGraphemes: 256, - maxLength: 2560, - }, - avatar: { - type: 'blob', - accept: ['image/png', 'image/jpeg'], - maxSize: 1000000, - }, - banner: { - type: 'blob', - accept: ['image/png', 'image/jpeg'], - maxSize: 1000000, - }, - labels: { - type: 'union', - refs: ['lex:com.atproto.label.defs#selfLabels'], - }, - }, - }, - }, - }, - }, - AppBskyActorPutPreferences: { - lexicon: 1, - id: 'app.bsky.actor.putPreferences', - defs: { - main: { - type: 'procedure', - description: 'Sets the private preferences attached to the account.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['preferences'], - properties: { - preferences: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#preferences', - }, - }, - }, - }, - }, - }, - }, - AppBskyActorSearchActors: { - lexicon: 1, - id: 'app.bsky.actor.searchActors', - defs: { - main: { - type: 'query', - description: 'Find actors (profiles) matching search criteria.', - parameters: { - type: 'params', - properties: { - term: { - type: 'string', - description: "DEPRECATED: use 'q' instead", - }, - q: { - type: 'string', - description: - 'search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 25, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['actors'], - properties: { - cursor: { - type: 'string', - }, - actors: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyActorSearchActorsTypeahead: { - lexicon: 1, - id: 'app.bsky.actor.searchActorsTypeahead', - defs: { - main: { - type: 'query', - description: 'Find actor suggestions for a search term.', - parameters: { - type: 'params', - properties: { - term: { - type: 'string', - description: "DEPRECATED: use 'q' instead", - }, - q: { - type: 'string', - description: 'search query prefix; not a full query string', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 10, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['actors'], - properties: { - actors: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileViewBasic', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyEmbedExternal: { - lexicon: 1, - id: 'app.bsky.embed.external', - description: - 'A representation of some externally linked content, embedded in another form of content', - defs: { - main: { - type: 'object', - required: ['external'], - properties: { - external: { - type: 'ref', - ref: 'lex:app.bsky.embed.external#external', - }, - }, - }, - external: { - type: 'object', - required: ['uri', 'title', 'description'], - properties: { - uri: { - type: 'string', - format: 'uri', - }, - title: { - type: 'string', - }, - description: { - type: 'string', - }, - thumb: { - type: 'blob', - accept: ['image/*'], - maxSize: 1000000, - }, - }, - }, - view: { - type: 'object', - required: ['external'], - properties: { - external: { - type: 'ref', - ref: 'lex:app.bsky.embed.external#viewExternal', - }, - }, - }, - viewExternal: { - type: 'object', - required: ['uri', 'title', 'description'], - properties: { - uri: { - type: 'string', - format: 'uri', - }, - title: { - type: 'string', - }, - description: { - type: 'string', - }, - thumb: { - type: 'string', - }, - }, - }, - }, - }, - AppBskyEmbedImages: { - lexicon: 1, - id: 'app.bsky.embed.images', - description: 'A set of images embedded in some other form of content', - defs: { - main: { - type: 'object', - required: ['images'], - properties: { - images: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.embed.images#image', - }, - maxLength: 4, - }, - }, - }, - image: { - type: 'object', - required: ['image', 'alt'], - properties: { - image: { - type: 'blob', - accept: ['image/*'], - maxSize: 1000000, - }, - alt: { - type: 'string', - }, - aspectRatio: { - type: 'ref', - ref: 'lex:app.bsky.embed.images#aspectRatio', - }, - }, - }, - aspectRatio: { - type: 'object', - description: - 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.', - required: ['width', 'height'], - properties: { - width: { - type: 'integer', - minimum: 1, - }, - height: { - type: 'integer', - minimum: 1, - }, - }, - }, - view: { - type: 'object', - required: ['images'], - properties: { - images: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.embed.images#viewImage', - }, - maxLength: 4, - }, - }, - }, - viewImage: { - type: 'object', - required: ['thumb', 'fullsize', 'alt'], - properties: { - thumb: { - type: 'string', - }, - fullsize: { - type: 'string', - }, - alt: { - type: 'string', - }, - aspectRatio: { - type: 'ref', - ref: 'lex:app.bsky.embed.images#aspectRatio', - }, - }, - }, - }, - }, - AppBskyEmbedRecord: { - lexicon: 1, - id: 'app.bsky.embed.record', - description: - 'A representation of a record embedded in another form of content', - defs: { - main: { - type: 'object', - required: ['record'], - properties: { - record: { - type: 'ref', - ref: 'lex:com.atproto.repo.strongRef', - }, - }, - }, - view: { - type: 'object', - required: ['record'], - properties: { - record: { - type: 'union', - refs: [ - 'lex:app.bsky.embed.record#viewRecord', - 'lex:app.bsky.embed.record#viewNotFound', - 'lex:app.bsky.embed.record#viewBlocked', - 'lex:app.bsky.feed.defs#generatorView', - 'lex:app.bsky.graph.defs#listView', - ], - }, - }, - }, - viewRecord: { - type: 'object', - required: ['uri', 'cid', 'author', 'value', 'indexedAt'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - author: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileViewBasic', - }, - value: { - type: 'unknown', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - embeds: { - type: 'array', - items: { - type: 'union', - refs: [ - 'lex:app.bsky.embed.images#view', - 'lex:app.bsky.embed.external#view', - 'lex:app.bsky.embed.record#view', - 'lex:app.bsky.embed.recordWithMedia#view', - ], - }, - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - viewNotFound: { - type: 'object', - required: ['uri', 'notFound'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - notFound: { - type: 'boolean', - const: true, - }, - }, - }, - viewBlocked: { - type: 'object', - required: ['uri', 'blocked', 'author'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - blocked: { - type: 'boolean', - const: true, - }, - author: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#blockedAuthor', - }, - }, - }, - }, - }, - AppBskyEmbedRecordWithMedia: { - lexicon: 1, - id: 'app.bsky.embed.recordWithMedia', - description: - 'A representation of a record embedded in another form of content, alongside other compatible embeds', - defs: { - main: { - type: 'object', - required: ['record', 'media'], - properties: { - record: { - type: 'ref', - ref: 'lex:app.bsky.embed.record', - }, - media: { - type: 'union', - refs: ['lex:app.bsky.embed.images', 'lex:app.bsky.embed.external'], - }, - }, - }, - view: { - type: 'object', - required: ['record', 'media'], - properties: { - record: { - type: 'ref', - ref: 'lex:app.bsky.embed.record#view', - }, - media: { - type: 'union', - refs: [ - 'lex:app.bsky.embed.images#view', - 'lex:app.bsky.embed.external#view', - ], - }, - }, - }, - }, - }, - AppBskyFeedDefs: { - lexicon: 1, - id: 'app.bsky.feed.defs', - defs: { - postView: { - type: 'object', - required: ['uri', 'cid', 'author', 'record', 'indexedAt'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - author: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileViewBasic', - }, - record: { - type: 'unknown', - }, - embed: { - type: 'union', - refs: [ - 'lex:app.bsky.embed.images#view', - 'lex:app.bsky.embed.external#view', - 'lex:app.bsky.embed.record#view', - 'lex:app.bsky.embed.recordWithMedia#view', - ], - }, - replyCount: { - type: 'integer', - }, - repostCount: { - type: 'integer', - }, - likeCount: { - type: 'integer', - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#viewerState', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - threadgate: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#threadgateView', - }, - }, - }, - viewerState: { - type: 'object', - properties: { - repost: { - type: 'string', - format: 'at-uri', - }, - like: { - type: 'string', - format: 'at-uri', - }, - }, - }, - feedViewPost: { - type: 'object', - required: ['post'], - properties: { - post: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#postView', - }, - reply: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#replyRef', - }, - reason: { - type: 'union', - refs: ['lex:app.bsky.feed.defs#reasonRepost'], - }, - }, - }, - replyRef: { - type: 'object', - required: ['root', 'parent'], - properties: { - root: { - type: 'union', - refs: [ - 'lex:app.bsky.feed.defs#postView', - 'lex:app.bsky.feed.defs#notFoundPost', - 'lex:app.bsky.feed.defs#blockedPost', - ], - }, - parent: { - type: 'union', - refs: [ - 'lex:app.bsky.feed.defs#postView', - 'lex:app.bsky.feed.defs#notFoundPost', - 'lex:app.bsky.feed.defs#blockedPost', - ], - }, - }, - }, - reasonRepost: { - type: 'object', - required: ['by', 'indexedAt'], - properties: { - by: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileViewBasic', - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - threadViewPost: { - type: 'object', - required: ['post'], - properties: { - post: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#postView', - }, - parent: { - type: 'union', - refs: [ - 'lex:app.bsky.feed.defs#threadViewPost', - 'lex:app.bsky.feed.defs#notFoundPost', - 'lex:app.bsky.feed.defs#blockedPost', - ], - }, - replies: { - type: 'array', - items: { - type: 'union', - refs: [ - 'lex:app.bsky.feed.defs#threadViewPost', - 'lex:app.bsky.feed.defs#notFoundPost', - 'lex:app.bsky.feed.defs#blockedPost', - ], - }, - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#viewerThreadState', - }, - }, - }, - notFoundPost: { - type: 'object', - required: ['uri', 'notFound'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - notFound: { - type: 'boolean', - const: true, - }, - }, - }, - blockedPost: { - type: 'object', - required: ['uri', 'blocked', 'author'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - blocked: { - type: 'boolean', - const: true, - }, - author: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#blockedAuthor', - }, - }, - }, - blockedAuthor: { - type: 'object', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#viewerState', - }, - }, - }, - viewerThreadState: { - type: 'object', - properties: { - canReply: { - type: 'boolean', - }, - }, - }, - generatorView: { - type: 'object', - required: ['uri', 'cid', 'did', 'creator', 'displayName', 'indexedAt'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - did: { - type: 'string', - format: 'did', - }, - creator: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - displayName: { - type: 'string', - }, - description: { - type: 'string', - maxGraphemes: 300, - maxLength: 3000, - }, - descriptionFacets: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.richtext.facet', - }, - }, - avatar: { - type: 'string', - }, - likeCount: { - type: 'integer', - minimum: 0, - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#generatorViewerState', - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - generatorViewerState: { - type: 'object', - properties: { - like: { - type: 'string', - format: 'at-uri', - }, - }, - }, - skeletonFeedPost: { - type: 'object', - required: ['post'], - properties: { - post: { - type: 'string', - format: 'at-uri', - }, - reason: { - type: 'union', - refs: ['lex:app.bsky.feed.defs#skeletonReasonRepost'], - }, - }, - }, - skeletonReasonRepost: { - type: 'object', - required: ['repost'], - properties: { - repost: { - type: 'string', - format: 'at-uri', - }, - }, - }, - threadgateView: { - type: 'object', - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - record: { - type: 'unknown', - }, - lists: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listViewBasic', - }, - }, - }, - }, - }, - }, - AppBskyFeedDescribeFeedGenerator: { - lexicon: 1, - id: 'app.bsky.feed.describeFeedGenerator', - defs: { - main: { - type: 'query', - description: - 'Returns information about a given feed generator including TOS & offered feed URIs', - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['did', 'feeds'], - properties: { - did: { - type: 'string', - format: 'did', - }, - feeds: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.describeFeedGenerator#feed', - }, - }, - links: { - type: 'ref', - ref: 'lex:app.bsky.feed.describeFeedGenerator#links', - }, - }, - }, - }, - }, - feed: { - type: 'object', - required: ['uri'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - }, - }, - links: { - type: 'object', - properties: { - privacyPolicy: { - type: 'string', - }, - termsOfService: { - type: 'string', - }, - }, - }, - }, - }, - AppBskyFeedGenerator: { - lexicon: 1, - id: 'app.bsky.feed.generator', - defs: { - main: { - type: 'record', - description: 'A declaration of the existence of a feed generator', - key: 'any', - record: { - type: 'object', - required: ['did', 'displayName', 'createdAt'], - properties: { - did: { - type: 'string', - format: 'did', - }, - displayName: { - type: 'string', - maxGraphemes: 24, - maxLength: 240, - }, - 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', - }, - }, - }, - }, - }, - }, - AppBskyFeedGetActorFeeds: { - lexicon: 1, - id: 'app.bsky.feed.getActorFeeds', - defs: { - main: { - type: 'query', - description: 'Retrieve a list of feeds created by a given actor', - parameters: { - type: 'params', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['feeds'], - properties: { - cursor: { - type: 'string', - }, - feeds: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#generatorView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyFeedGetActorLikes: { - lexicon: 1, - id: 'app.bsky.feed.getActorLikes', - defs: { - main: { - type: 'query', - description: 'A view of the posts liked by an actor.', - parameters: { - type: 'params', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - 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: 'BlockedActor', - }, - { - name: 'BlockedByActor', - }, - ], - }, - }, - }, - AppBskyFeedGetAuthorFeed: { - lexicon: 1, - id: 'app.bsky.feed.getAuthorFeed', - defs: { - main: { - type: 'query', - description: "A view of an actor's feed.", - parameters: { - type: 'params', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - filter: { - type: 'string', - knownValues: [ - 'posts_with_replies', - 'posts_no_replies', - 'posts_with_media', - ], - default: 'posts_with_replies', - }, - }, - }, - 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: 'BlockedActor', - }, - { - name: 'BlockedByActor', - }, - ], - }, - }, - }, - AppBskyFeedGetFeed: { - lexicon: 1, - id: 'app.bsky.feed.getFeed', - defs: { - main: { - type: 'query', - description: - "Compose and hydrate a feed from a user's selected feed generator", - 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', - defs: { - main: { - type: 'query', - description: - 'Get information about a specific feed offered by a feed generator, such as its online status', - parameters: { - type: 'params', - required: ['feed'], - properties: { - feed: { - type: 'string', - format: 'at-uri', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['view', 'isOnline', 'isValid'], - properties: { - view: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#generatorView', - }, - isOnline: { - type: 'boolean', - }, - isValid: { - type: 'boolean', - }, - }, - }, - }, - }, - }, - }, - AppBskyFeedGetFeedGenerators: { - lexicon: 1, - id: 'app.bsky.feed.getFeedGenerators', - defs: { - main: { - type: 'query', - description: 'Get information about a list of feed generators', - parameters: { - type: 'params', - required: ['feeds'], - properties: { - feeds: { - type: 'array', - items: { - type: 'string', - format: 'at-uri', - }, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['feeds'], - properties: { - feeds: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#generatorView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyFeedGetFeedSkeleton: { - lexicon: 1, - id: 'app.bsky.feed.getFeedSkeleton', - defs: { - main: { - type: 'query', - description: 'A skeleton of a feed provided by a feed generator', - 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#skeletonFeedPost', - }, - }, - }, - }, - }, - errors: [ - { - name: 'UnknownFeed', - }, - ], - }, - }, - }, - AppBskyFeedGetLikes: { - lexicon: 1, - id: 'app.bsky.feed.getLikes', - defs: { - main: { - type: 'query', - parameters: { - type: 'params', - required: ['uri'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['uri', 'likes'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - cursor: { - type: 'string', - }, - likes: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.getLikes#like', - }, - }, - }, - }, - }, - }, - like: { - type: 'object', - required: ['indexedAt', 'createdAt', 'actor'], - properties: { - indexedAt: { - type: 'string', - format: 'datetime', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - actor: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - }, - }, - AppBskyFeedGetListFeed: { - lexicon: 1, - id: 'app.bsky.feed.getListFeed', - defs: { - main: { - type: 'query', - description: 'A view of a recent posts from actors in a list', - parameters: { - type: 'params', - required: ['list'], - properties: { - list: { - 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: 'UnknownList', - }, - ], - }, - }, - }, - AppBskyFeedGetPostThread: { - lexicon: 1, - id: 'app.bsky.feed.getPostThread', - defs: { - main: { - type: 'query', - parameters: { - type: 'params', - required: ['uri'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - depth: { - type: 'integer', - default: 6, - minimum: 0, - maximum: 1000, - }, - parentHeight: { - type: 'integer', - default: 80, - minimum: 0, - maximum: 1000, - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['thread'], - properties: { - thread: { - type: 'union', - refs: [ - 'lex:app.bsky.feed.defs#threadViewPost', - 'lex:app.bsky.feed.defs#notFoundPost', - 'lex:app.bsky.feed.defs#blockedPost', - ], - }, - }, - }, - }, - errors: [ - { - name: 'NotFound', - }, - ], - }, - }, - }, - AppBskyFeedGetPosts: { - lexicon: 1, - id: 'app.bsky.feed.getPosts', - defs: { - main: { - type: 'query', - description: "A view of an actor's feed.", - parameters: { - type: 'params', - required: ['uris'], - properties: { - uris: { - type: 'array', - 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', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyFeedGetRepostedBy: { - lexicon: 1, - id: 'app.bsky.feed.getRepostedBy', - defs: { - main: { - type: 'query', - parameters: { - type: 'params', - required: ['uri'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['uri', 'repostedBy'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - cursor: { - type: 'string', - }, - repostedBy: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyFeedGetSuggestedFeeds: { - lexicon: 1, - id: 'app.bsky.feed.getSuggestedFeeds', - defs: { - main: { - type: 'query', - description: 'Get a list of suggested feeds for the viewer.', - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['feeds'], - properties: { - cursor: { - type: 'string', - }, - feeds: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#generatorView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyFeedGetTimeline: { - lexicon: 1, - id: 'app.bsky.feed.getTimeline', - defs: { - main: { - type: 'query', - description: "A view of the user's home timeline.", - parameters: { - type: 'params', - properties: { - algorithm: { - type: 'string', - }, - 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', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyFeedLike: { - lexicon: 1, - id: 'app.bsky.feed.like', - defs: { - main: { - type: 'record', - key: 'tid', - record: { - type: 'object', - required: ['subject', 'createdAt'], - properties: { - subject: { - type: 'ref', - ref: 'lex:com.atproto.repo.strongRef', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, - AppBskyFeedPost: { - lexicon: 1, - id: 'app.bsky.feed.post', - defs: { - main: { - type: 'record', - key: 'tid', - record: { - type: 'object', - required: ['text', 'createdAt'], - properties: { - text: { - type: 'string', - maxLength: 3000, - maxGraphemes: 300, - }, - entities: { - type: 'array', - description: 'Deprecated: replaced by app.bsky.richtext.facet.', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.post#entity', - }, - }, - facets: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.richtext.facet', - }, - }, - reply: { - type: 'ref', - ref: 'lex:app.bsky.feed.post#replyRef', - }, - embed: { - type: 'union', - refs: [ - 'lex:app.bsky.embed.images', - 'lex:app.bsky.embed.external', - 'lex:app.bsky.embed.record', - 'lex:app.bsky.embed.recordWithMedia', - ], - }, - langs: { - type: 'array', - maxLength: 3, - items: { - type: 'string', - format: 'language', - }, - }, - labels: { - type: 'union', - refs: ['lex:com.atproto.label.defs#selfLabels'], - }, - tags: { - type: 'array', - maxLength: 8, - items: { - type: 'string', - maxLength: 640, - maxGraphemes: 64, - }, - description: 'Additional non-inline tags describing this post.', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - replyRef: { - type: 'object', - required: ['root', 'parent'], - properties: { - root: { - type: 'ref', - ref: 'lex:com.atproto.repo.strongRef', - }, - parent: { - type: 'ref', - ref: 'lex:com.atproto.repo.strongRef', - }, - }, - }, - entity: { - type: 'object', - description: 'Deprecated: use facets instead.', - required: ['index', 'type', 'value'], - properties: { - index: { - type: 'ref', - ref: 'lex:app.bsky.feed.post#textSlice', - }, - type: { - type: 'string', - description: "Expected values are 'mention' and 'link'.", - }, - value: { - type: 'string', - }, - }, - }, - textSlice: { - type: 'object', - description: - 'Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.', - required: ['start', 'end'], - properties: { - start: { - type: 'integer', - minimum: 0, - }, - end: { - type: 'integer', - minimum: 0, - }, - }, - }, - }, - }, - AppBskyFeedRepost: { - lexicon: 1, - id: 'app.bsky.feed.repost', - defs: { - main: { - type: 'record', - key: 'tid', - record: { - type: 'object', - required: ['subject', 'createdAt'], - properties: { - subject: { - type: 'ref', - ref: 'lex:com.atproto.repo.strongRef', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, - AppBskyFeedSearchPosts: { - lexicon: 1, - id: 'app.bsky.feed.searchPosts', - defs: { - main: { - type: 'query', - description: 'Find posts matching search criteria', - parameters: { - type: 'params', - required: ['q'], - properties: { - q: { - type: 'string', - description: - 'search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 25, - }, - cursor: { - type: 'string', - description: - 'optional pagination mechanism; may not necessarily allow scrolling through entire result set', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['posts'], - properties: { - cursor: { - type: 'string', - }, - hitsTotal: { - type: 'integer', - description: - 'count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits', - }, - posts: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#postView', - }, - }, - }, - }, - }, - errors: [ - { - name: 'BadQueryString', - }, - ], - }, - }, - }, - AppBskyFeedThreadgate: { - lexicon: 1, - id: 'app.bsky.feed.threadgate', - defs: { - main: { - type: 'record', - key: 'tid', - description: - "Defines interaction gating rules for a thread. The rkey of the threadgate record should match the rkey of the thread's root post.", - record: { - type: 'object', - required: ['post', 'createdAt'], - properties: { - post: { - type: 'string', - format: 'at-uri', - }, - allow: { - type: 'array', - maxLength: 5, - items: { - type: 'union', - refs: [ - 'lex:app.bsky.feed.threadgate#mentionRule', - 'lex:app.bsky.feed.threadgate#followingRule', - 'lex:app.bsky.feed.threadgate#listRule', - ], - }, - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - mentionRule: { - type: 'object', - description: 'Allow replies from actors mentioned in your post.', - properties: {}, - }, - followingRule: { - type: 'object', - description: 'Allow replies from actors you follow.', - properties: {}, - }, - listRule: { - type: 'object', - description: 'Allow replies from actors on a list.', - required: ['list'], - properties: { - list: { - type: 'string', - format: 'at-uri', - }, - }, - }, - }, - }, - AppBskyGraphBlock: { - lexicon: 1, - id: 'app.bsky.graph.block', - defs: { - main: { - type: 'record', - description: 'A block.', - key: 'tid', - record: { - type: 'object', - required: ['subject', 'createdAt'], - properties: { - subject: { - type: 'string', - format: 'did', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, - AppBskyGraphDefs: { - lexicon: 1, - id: 'app.bsky.graph.defs', - defs: { - listViewBasic: { - type: 'object', - required: ['uri', 'cid', 'name', 'purpose'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - name: { - type: 'string', - maxLength: 64, - minLength: 1, - }, - purpose: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listPurpose', - }, - avatar: { - type: 'string', - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listViewerState', - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - listView: { - type: 'object', - required: ['uri', 'cid', 'creator', 'name', 'purpose', 'indexedAt'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - creator: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - name: { - type: 'string', - maxLength: 64, - minLength: 1, - }, - purpose: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listPurpose', - }, - description: { - type: 'string', - maxGraphemes: 300, - maxLength: 3000, - }, - descriptionFacets: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.richtext.facet', - }, - }, - avatar: { - type: 'string', - }, - viewer: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listViewerState', - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - listItemView: { - type: 'object', - required: ['subject'], - properties: { - subject: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - listPurpose: { - type: 'string', - knownValues: [ - 'app.bsky.graph.defs#modlist', - 'app.bsky.graph.defs#curatelist', - ], - }, - modlist: { - type: 'token', - description: - 'A list of actors to apply an aggregate moderation action (mute/block) on', - }, - curatelist: { - type: 'token', - description: - 'A list of actors used for curation purposes such as list feeds or interaction gating', - }, - listViewerState: { - type: 'object', - properties: { - muted: { - type: 'boolean', - }, - blocked: { - type: 'string', - format: 'at-uri', - }, - }, - }, - }, - }, - AppBskyGraphFollow: { - lexicon: 1, - id: 'app.bsky.graph.follow', - defs: { - main: { - type: 'record', - description: 'A social follow.', - key: 'tid', - record: { - type: 'object', - required: ['subject', 'createdAt'], - properties: { - subject: { - type: 'string', - format: 'did', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, - AppBskyGraphGetBlocks: { - lexicon: 1, - id: 'app.bsky.graph.getBlocks', - defs: { - main: { - type: 'query', - description: "Who is the requester's account blocking?", - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['blocks'], - properties: { - cursor: { - type: 'string', - }, - blocks: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphGetFollowers: { - lexicon: 1, - id: 'app.bsky.graph.getFollowers', - defs: { - main: { - type: 'query', - description: 'Who is following an actor?', - parameters: { - type: 'params', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['subject', 'followers'], - properties: { - subject: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - cursor: { - type: 'string', - }, - followers: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphGetFollows: { - lexicon: 1, - id: 'app.bsky.graph.getFollows', - defs: { - main: { - type: 'query', - description: 'Who is an actor following?', - parameters: { - type: 'params', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['subject', 'follows'], - properties: { - subject: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - cursor: { - type: 'string', - }, - follows: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphGetList: { - lexicon: 1, - id: 'app.bsky.graph.getList', - defs: { - main: { - type: 'query', - description: 'Fetch a list of actors', - parameters: { - type: 'params', - required: ['list'], - properties: { - list: { - 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: ['list', 'items'], - properties: { - cursor: { - type: 'string', - }, - list: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', - }, - items: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listItemView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphGetListBlocks: { - lexicon: 1, - id: 'app.bsky.graph.getListBlocks', - defs: { - main: { - type: 'query', - description: "Which lists is the requester's account blocking?", - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['lists'], - properties: { - cursor: { - type: 'string', - }, - lists: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphGetListMutes: { - lexicon: 1, - id: 'app.bsky.graph.getListMutes', - defs: { - main: { - type: 'query', - description: "Which lists is the requester's account muting?", - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['lists'], - properties: { - cursor: { - type: 'string', - }, - lists: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphGetLists: { - lexicon: 1, - id: 'app.bsky.graph.getLists', - defs: { - main: { - type: 'query', - description: 'Fetch a list of lists that belong to an actor', - parameters: { - type: 'params', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['lists'], - properties: { - cursor: { - type: 'string', - }, - lists: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphGetMutes: { - lexicon: 1, - id: 'app.bsky.graph.getMutes', - defs: { - main: { - type: 'query', - description: 'Who does the viewer mute?', - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['mutes'], - properties: { - cursor: { - type: 'string', - }, - mutes: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphGetSuggestedFollowsByActor: { - lexicon: 1, - id: 'app.bsky.graph.getSuggestedFollowsByActor', - defs: { - main: { - type: 'query', - description: 'Get suggested follows related to a given actor.', - parameters: { - type: 'params', - required: ['actor'], - properties: { - actor: { - type: 'string', - 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', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphList: { - lexicon: 1, - id: 'app.bsky.graph.list', - defs: { - main: { - type: 'record', - description: 'A declaration of a list of actors.', - key: 'tid', - record: { - type: 'object', - required: ['name', 'purpose', 'createdAt'], - properties: { - purpose: { - type: 'ref', - ref: 'lex:app.bsky.graph.defs#listPurpose', - }, - name: { - type: 'string', - maxLength: 64, - minLength: 1, - }, - 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', - }, - }, - }, - }, - }, - }, - AppBskyGraphListblock: { - lexicon: 1, - id: 'app.bsky.graph.listblock', - defs: { - main: { - type: 'record', - description: 'A block of an entire list of actors.', - key: 'tid', - record: { - type: 'object', - required: ['subject', 'createdAt'], - properties: { - subject: { - type: 'string', - format: 'at-uri', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, - AppBskyGraphListitem: { - lexicon: 1, - id: 'app.bsky.graph.listitem', - defs: { - main: { - type: 'record', - description: 'An item under a declared list of actors', - key: 'tid', - record: { - type: 'object', - required: ['subject', 'list', 'createdAt'], - properties: { - subject: { - type: 'string', - format: 'did', - }, - list: { - type: 'string', - format: 'at-uri', - }, - createdAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, - AppBskyGraphMuteActor: { - lexicon: 1, - id: 'app.bsky.graph.muteActor', - defs: { - main: { - type: 'procedure', - description: 'Mute an actor by did or handle.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphMuteActorList: { - lexicon: 1, - id: 'app.bsky.graph.muteActorList', - defs: { - main: { - type: 'procedure', - description: 'Mute a list of actors.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['list'], - properties: { - list: { - type: 'string', - format: 'at-uri', - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphUnmuteActor: { - lexicon: 1, - id: 'app.bsky.graph.unmuteActor', - defs: { - main: { - type: 'procedure', - description: 'Unmute an actor by did or handle.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['actor'], - properties: { - actor: { - type: 'string', - format: 'at-identifier', - }, - }, - }, - }, - }, - }, - }, - AppBskyGraphUnmuteActorList: { - lexicon: 1, - id: 'app.bsky.graph.unmuteActorList', - defs: { - main: { - type: 'procedure', - description: 'Unmute a list of actors.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['list'], - properties: { - list: { - type: 'string', - format: 'at-uri', - }, - }, - }, - }, - }, - }, - }, - AppBskyNotificationGetUnreadCount: { - lexicon: 1, - id: 'app.bsky.notification.getUnreadCount', - defs: { - main: { - type: 'query', - parameters: { - type: 'params', - properties: { - seenAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['count'], - properties: { - count: { - type: 'integer', - }, - }, - }, - }, - }, - }, - }, - AppBskyNotificationListNotifications: { - lexicon: 1, - id: 'app.bsky.notification.listNotifications', - defs: { - main: { - type: 'query', - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - seenAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['notifications'], - properties: { - cursor: { - type: 'string', - }, - notifications: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.notification.listNotifications#notification', - }, - }, - }, - }, - }, - }, - notification: { - type: 'object', - required: [ - 'uri', - 'cid', - 'author', - 'reason', - 'record', - 'isRead', - 'indexedAt', - ], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - cid: { - type: 'string', - format: 'cid', - }, - author: { - type: 'ref', - ref: 'lex:app.bsky.actor.defs#profileView', - }, - reason: { - type: 'string', - description: - "Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'.", - knownValues: [ - 'like', - 'repost', - 'follow', - 'mention', - 'reply', - 'quote', - ], - }, - reasonSubject: { - type: 'string', - format: 'at-uri', - }, - record: { - type: 'unknown', - }, - isRead: { - type: 'boolean', - }, - indexedAt: { - type: 'string', - format: 'datetime', - }, - labels: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:com.atproto.label.defs#label', - }, - }, - }, - }, - }, - }, - AppBskyNotificationRegisterPush: { - lexicon: 1, - id: 'app.bsky.notification.registerPush', - defs: { - main: { - type: 'procedure', - description: 'Register for push notifications with a service', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['serviceDid', 'token', 'platform', 'appId'], - properties: { - serviceDid: { - type: 'string', - format: 'did', - }, - token: { - type: 'string', - }, - platform: { - type: 'string', - knownValues: ['ios', 'android', 'web'], - }, - appId: { - type: 'string', - }, - }, - }, - }, - }, - }, - }, - AppBskyNotificationUpdateSeen: { - lexicon: 1, - id: 'app.bsky.notification.updateSeen', - defs: { - main: { - type: 'procedure', - description: 'Notify server that the user has seen notifications.', - input: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['seenAt'], - properties: { - seenAt: { - type: 'string', - format: 'datetime', - }, - }, - }, - }, - }, - }, - }, - AppBskyRichtextFacet: { - lexicon: 1, - id: 'app.bsky.richtext.facet', - defs: { - main: { - type: 'object', - required: ['index', 'features'], - properties: { - index: { - type: 'ref', - ref: 'lex:app.bsky.richtext.facet#byteSlice', - }, - features: { - type: 'array', - items: { - type: 'union', - refs: [ - 'lex:app.bsky.richtext.facet#mention', - 'lex:app.bsky.richtext.facet#link', - 'lex:app.bsky.richtext.facet#tag', - ], - }, - }, - }, - }, - mention: { - type: 'object', - description: 'A facet feature for actor mentions.', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - }, - }, - }, - link: { - type: 'object', - description: 'A facet feature for links.', - required: ['uri'], - properties: { - uri: { - type: 'string', - format: 'uri', - }, - }, - }, - tag: { - type: 'object', - description: 'A hashtag.', - required: ['tag'], - properties: { - tag: { - type: 'string', - maxLength: 640, - maxGraphemes: 64, - }, - }, - }, - byteSlice: { - type: 'object', - description: - 'A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.', - required: ['byteStart', 'byteEnd'], - properties: { - byteStart: { - type: 'integer', - minimum: 0, - }, - byteEnd: { - type: 'integer', - minimum: 0, - }, - }, - }, - }, - }, - AppBskyUnspeccedDefs: { - lexicon: 1, - id: 'app.bsky.unspecced.defs', - defs: { - skeletonSearchPost: { - type: 'object', - required: ['uri'], - properties: { - uri: { - type: 'string', - format: 'at-uri', - }, - }, - }, - skeletonSearchActor: { - type: 'object', - required: ['did'], - properties: { - did: { - type: 'string', - format: 'did', - }, - }, - }, - }, - }, - AppBskyUnspeccedGetPopular: { - lexicon: 1, - id: 'app.bsky.unspecced.getPopular', - defs: { - main: { - type: 'query', - description: - 'DEPRECATED: will be removed soon, please find a feed generator alternative', - parameters: { - type: 'params', - properties: { - includeNsfw: { - type: 'boolean', - default: false, - }, - 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', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyUnspeccedGetPopularFeedGenerators: { - lexicon: 1, - id: 'app.bsky.unspecced.getPopularFeedGenerators', - defs: { - main: { - type: 'query', - description: 'An unspecced view of globally popular feed generators', - parameters: { - type: 'params', - properties: { - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 50, - }, - cursor: { - type: 'string', - }, - query: { - type: 'string', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['feeds'], - properties: { - cursor: { - type: 'string', - }, - feeds: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.feed.defs#generatorView', - }, - }, - }, - }, - }, - }, - }, - }, - AppBskyUnspeccedGetTimelineSkeleton: { - lexicon: 1, - id: 'app.bsky.unspecced.getTimelineSkeleton', - defs: { - main: { - type: 'query', - description: 'A skeleton of a timeline - UNSPECCED & WILL GO AWAY SOON', - parameters: { - type: 'params', - properties: { - 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#skeletonFeedPost', - }, - }, - }, - }, - }, - errors: [ - { - name: 'UnknownFeed', - }, - ], - }, - }, - }, - AppBskyUnspeccedSearchActorsSkeleton: { - lexicon: 1, - id: 'app.bsky.unspecced.searchActorsSkeleton', - defs: { - main: { - type: 'query', - description: 'Backend Actors (profile) search, returning only skeleton', - parameters: { - type: 'params', - required: ['q'], - properties: { - q: { - type: 'string', - description: - 'search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax', - }, - typeahead: { - type: 'boolean', - description: "if true, acts as fast/simple 'typeahead' query", - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 25, - }, - cursor: { - type: 'string', - description: - 'optional pagination mechanism; may not necessarily allow scrolling through entire result set', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['actors'], - properties: { - cursor: { - type: 'string', - }, - hitsTotal: { - type: 'integer', - description: - 'count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits', - }, - actors: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.unspecced.defs#skeletonSearchActor', - }, - }, - }, - }, - }, - errors: [ - { - name: 'BadQueryString', - }, - ], - }, - }, - }, - AppBskyUnspeccedSearchPostsSkeleton: { - lexicon: 1, - id: 'app.bsky.unspecced.searchPostsSkeleton', - defs: { - main: { - type: 'query', - description: 'Backend Posts search, returning only skeleton', - parameters: { - type: 'params', - required: ['q'], - properties: { - q: { - type: 'string', - description: - 'search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended', - }, - limit: { - type: 'integer', - minimum: 1, - maximum: 100, - default: 25, - }, - cursor: { - type: 'string', - description: - 'optional pagination mechanism; may not necessarily allow scrolling through entire result set', - }, - }, - }, - output: { - encoding: 'application/json', - schema: { - type: 'object', - required: ['posts'], - properties: { - cursor: { - type: 'string', - }, - hitsTotal: { - type: 'integer', - description: - 'count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits', - }, - posts: { - type: 'array', - items: { - type: 'ref', - ref: 'lex:app.bsky.unspecced.defs#skeletonSearchPost', - }, - }, - }, - }, - }, - errors: [ - { - name: 'BadQueryString', - }, - ], - }, - }, - }, -} -export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[] -export const lexicons: Lexicons = new Lexicons(schemas) -export const ids = { - ComAtprotoAdminDefs: 'com.atproto.admin.defs', - ComAtprotoAdminDisableAccountInvites: - 'com.atproto.admin.disableAccountInvites', - ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes', - ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites', - ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes', - ComAtprotoAdminGetModerationAction: 'com.atproto.admin.getModerationAction', - ComAtprotoAdminGetModerationActions: 'com.atproto.admin.getModerationActions', - ComAtprotoAdminGetModerationReport: 'com.atproto.admin.getModerationReport', - ComAtprotoAdminGetModerationReports: 'com.atproto.admin.getModerationReports', - ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord', - ComAtprotoAdminGetRepo: 'com.atproto.admin.getRepo', - ComAtprotoAdminResolveModerationReports: - 'com.atproto.admin.resolveModerationReports', - ComAtprotoAdminReverseModerationAction: - 'com.atproto.admin.reverseModerationAction', - ComAtprotoAdminSearchRepos: 'com.atproto.admin.searchRepos', - ComAtprotoAdminSendEmail: 'com.atproto.admin.sendEmail', - ComAtprotoAdminTakeModerationAction: 'com.atproto.admin.takeModerationAction', - ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail', - ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle', - ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle', - ComAtprotoIdentityUpdateHandle: 'com.atproto.identity.updateHandle', - ComAtprotoLabelDefs: 'com.atproto.label.defs', - ComAtprotoLabelQueryLabels: 'com.atproto.label.queryLabels', - ComAtprotoLabelSubscribeLabels: 'com.atproto.label.subscribeLabels', - ComAtprotoModerationCreateReport: 'com.atproto.moderation.createReport', - ComAtprotoModerationDefs: 'com.atproto.moderation.defs', - ComAtprotoRepoApplyWrites: 'com.atproto.repo.applyWrites', - ComAtprotoRepoCreateRecord: 'com.atproto.repo.createRecord', - ComAtprotoRepoDeleteRecord: 'com.atproto.repo.deleteRecord', - ComAtprotoRepoDescribeRepo: 'com.atproto.repo.describeRepo', - ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord', - ComAtprotoRepoListRecords: 'com.atproto.repo.listRecords', - ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord', - ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef', - ComAtprotoRepoUploadBlob: 'com.atproto.repo.uploadBlob', - ComAtprotoServerCreateAccount: 'com.atproto.server.createAccount', - ComAtprotoServerCreateAppPassword: 'com.atproto.server.createAppPassword', - ComAtprotoServerCreateInviteCode: 'com.atproto.server.createInviteCode', - ComAtprotoServerCreateInviteCodes: 'com.atproto.server.createInviteCodes', - ComAtprotoServerCreateSession: 'com.atproto.server.createSession', - ComAtprotoServerDefs: 'com.atproto.server.defs', - ComAtprotoServerDeleteAccount: 'com.atproto.server.deleteAccount', - ComAtprotoServerDeleteSession: 'com.atproto.server.deleteSession', - ComAtprotoServerDescribeServer: 'com.atproto.server.describeServer', - ComAtprotoServerGetAccountInviteCodes: - 'com.atproto.server.getAccountInviteCodes', - ComAtprotoServerGetSession: 'com.atproto.server.getSession', - ComAtprotoServerListAppPasswords: 'com.atproto.server.listAppPasswords', - ComAtprotoServerRefreshSession: 'com.atproto.server.refreshSession', - ComAtprotoServerRequestAccountDelete: - 'com.atproto.server.requestAccountDelete', - ComAtprotoServerRequestPasswordReset: - 'com.atproto.server.requestPasswordReset', - ComAtprotoServerResetPassword: 'com.atproto.server.resetPassword', - ComAtprotoServerRevokeAppPassword: 'com.atproto.server.revokeAppPassword', - ComAtprotoSyncGetBlob: 'com.atproto.sync.getBlob', - ComAtprotoSyncGetBlocks: 'com.atproto.sync.getBlocks', - ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout', - ComAtprotoSyncGetHead: 'com.atproto.sync.getHead', - ComAtprotoSyncGetLatestCommit: 'com.atproto.sync.getLatestCommit', - ComAtprotoSyncGetRecord: 'com.atproto.sync.getRecord', - ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo', - ComAtprotoSyncListBlobs: 'com.atproto.sync.listBlobs', - ComAtprotoSyncListRepos: 'com.atproto.sync.listRepos', - ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate', - ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl', - ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos', - AppBskyActorDefs: 'app.bsky.actor.defs', - AppBskyActorGetPreferences: 'app.bsky.actor.getPreferences', - AppBskyActorGetProfile: 'app.bsky.actor.getProfile', - AppBskyActorGetProfiles: 'app.bsky.actor.getProfiles', - AppBskyActorGetSuggestions: 'app.bsky.actor.getSuggestions', - AppBskyActorProfile: 'app.bsky.actor.profile', - AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences', - AppBskyActorSearchActors: 'app.bsky.actor.searchActors', - AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead', - AppBskyEmbedExternal: 'app.bsky.embed.external', - AppBskyEmbedImages: 'app.bsky.embed.images', - AppBskyEmbedRecord: 'app.bsky.embed.record', - AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia', - AppBskyFeedDefs: 'app.bsky.feed.defs', - AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator', - AppBskyFeedGenerator: 'app.bsky.feed.generator', - 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', - AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton', - AppBskyFeedGetLikes: 'app.bsky.feed.getLikes', - AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed', - AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread', - AppBskyFeedGetPosts: 'app.bsky.feed.getPosts', - AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy', - AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds', - AppBskyFeedGetTimeline: 'app.bsky.feed.getTimeline', - AppBskyFeedLike: 'app.bsky.feed.like', - AppBskyFeedPost: 'app.bsky.feed.post', - AppBskyFeedRepost: 'app.bsky.feed.repost', - AppBskyFeedSearchPosts: 'app.bsky.feed.searchPosts', - AppBskyFeedThreadgate: 'app.bsky.feed.threadgate', - AppBskyGraphBlock: 'app.bsky.graph.block', - AppBskyGraphDefs: 'app.bsky.graph.defs', - AppBskyGraphFollow: 'app.bsky.graph.follow', - AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks', - AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers', - AppBskyGraphGetFollows: 'app.bsky.graph.getFollows', - 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', - AppBskyGraphGetSuggestedFollowsByActor: - 'app.bsky.graph.getSuggestedFollowsByActor', - AppBskyGraphList: 'app.bsky.graph.list', - AppBskyGraphListblock: 'app.bsky.graph.listblock', - AppBskyGraphListitem: 'app.bsky.graph.listitem', - AppBskyGraphMuteActor: 'app.bsky.graph.muteActor', - AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList', - AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor', - AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList', - AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount', - AppBskyNotificationListNotifications: - 'app.bsky.notification.listNotifications', - AppBskyNotificationRegisterPush: 'app.bsky.notification.registerPush', - AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen', - AppBskyRichtextFacet: 'app.bsky.richtext.facet', - AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs', - AppBskyUnspeccedGetPopular: 'app.bsky.unspecced.getPopular', - AppBskyUnspeccedGetPopularFeedGenerators: - 'app.bsky.unspecced.getPopularFeedGenerators', - AppBskyUnspeccedGetTimelineSkeleton: 'app.bsky.unspecced.getTimelineSkeleton', - AppBskyUnspeccedSearchActorsSkeleton: - 'app.bsky.unspecced.searchActorsSkeleton', - AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton', -} diff --git a/src/lexicon/types/app/bsky/actor/defs.ts b/src/lexicon/types/app/bsky/actor/defs.ts deleted file mode 100644 index b24b04b3..00000000 --- a/src/lexicon/types/app/bsky/actor/defs.ts +++ /dev/null @@ -1,234 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' -import * as AppBskyGraphDefs from '../graph/defs' - -export interface ProfileViewBasic { - did: string - handle: string - displayName?: string - avatar?: string - viewer?: ViewerState - labels?: ComAtprotoLabelDefs.Label[] - [k: string]: unknown -} - -export function isProfileViewBasic(v: unknown): v is ProfileViewBasic { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#profileViewBasic' - ) -} - -export function validateProfileViewBasic(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#profileViewBasic', v) -} - -export interface ProfileView { - did: string - handle: string - displayName?: string - description?: string - avatar?: string - indexedAt?: string - viewer?: ViewerState - labels?: ComAtprotoLabelDefs.Label[] - [k: string]: unknown -} - -export function isProfileView(v: unknown): v is ProfileView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#profileView' - ) -} - -export function validateProfileView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#profileView', v) -} - -export interface ProfileViewDetailed { - did: string - handle: string - displayName?: string - description?: string - avatar?: string - banner?: string - followersCount?: number - followsCount?: number - postsCount?: number - indexedAt?: string - viewer?: ViewerState - labels?: ComAtprotoLabelDefs.Label[] - [k: string]: unknown -} - -export function isProfileViewDetailed(v: unknown): v is ProfileViewDetailed { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#profileViewDetailed' - ) -} - -export function validateProfileViewDetailed(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#profileViewDetailed', v) -} - -export interface ViewerState { - muted?: boolean - mutedByList?: AppBskyGraphDefs.ListViewBasic - blockedBy?: boolean - blocking?: string - following?: string - followedBy?: string - [k: string]: unknown -} - -export function isViewerState(v: unknown): v is ViewerState { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#viewerState' - ) -} - -export function validateViewerState(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#viewerState', v) -} - -export type Preferences = ( - | AdultContentPref - | ContentLabelPref - | SavedFeedsPref - | PersonalDetailsPref - | FeedViewPref - | ThreadViewPref - | { $type: string; [k: string]: unknown } -)[] - -export interface AdultContentPref { - enabled: boolean - [k: string]: unknown -} - -export function isAdultContentPref(v: unknown): v is AdultContentPref { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#adultContentPref' - ) -} - -export function validateAdultContentPref(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#adultContentPref', v) -} - -export interface ContentLabelPref { - label: string - visibility: 'show' | 'warn' | 'hide' | (string & {}) - [k: string]: unknown -} - -export function isContentLabelPref(v: unknown): v is ContentLabelPref { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#contentLabelPref' - ) -} - -export function validateContentLabelPref(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#contentLabelPref', v) -} - -export interface SavedFeedsPref { - pinned: string[] - saved: string[] - [k: string]: unknown -} - -export function isSavedFeedsPref(v: unknown): v is SavedFeedsPref { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#savedFeedsPref' - ) -} - -export function validateSavedFeedsPref(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#savedFeedsPref', v) -} - -export interface PersonalDetailsPref { - /** The birth date of the owner of the account. */ - birthDate?: string - [k: string]: unknown -} - -export function isPersonalDetailsPref(v: unknown): v is PersonalDetailsPref { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#personalDetailsPref' - ) -} - -export function validatePersonalDetailsPref(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#personalDetailsPref', v) -} - -export interface FeedViewPref { - /** The URI of the feed, or an identifier which describes the feed. */ - feed: string - /** Hide replies in the feed. */ - hideReplies?: boolean - /** Hide replies in the feed if they are not by followed users. */ - hideRepliesByUnfollowed?: boolean - /** Hide replies in the feed if they do not have this number of likes. */ - hideRepliesByLikeCount?: number - /** Hide reposts in the feed. */ - hideReposts?: boolean - /** Hide quote posts in the feed. */ - hideQuotePosts?: boolean - [k: string]: unknown -} - -export function isFeedViewPref(v: unknown): v is FeedViewPref { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#feedViewPref' - ) -} - -export function validateFeedViewPref(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#feedViewPref', v) -} - -export interface ThreadViewPref { - /** Sorting mode. */ - sort?: 'oldest' | 'newest' | 'most-likes' | 'random' | (string & {}) - /** Show followed users at the top of all replies. */ - prioritizeFollowedUsers?: boolean - [k: string]: unknown -} - -export function isThreadViewPref(v: unknown): v is ThreadViewPref { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.actor.defs#threadViewPref' - ) -} - -export function validateThreadViewPref(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.defs#threadViewPref', v) -} diff --git a/src/lexicon/types/app/bsky/actor/getPreferences.ts b/src/lexicon/types/app/bsky/actor/getPreferences.ts deleted file mode 100644 index 88d78a57..00000000 --- a/src/lexicon/types/app/bsky/actor/getPreferences.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from './defs' - -export interface QueryParams {} - -export type InputSchema = undefined - -export interface OutputSchema { - preferences: AppBskyActorDefs.Preferences - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/actor/getProfile.ts b/src/lexicon/types/app/bsky/actor/getProfile.ts deleted file mode 100644 index 802afda5..00000000 --- a/src/lexicon/types/app/bsky/actor/getProfile.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from './defs' - -export interface QueryParams { - actor: string -} - -export type InputSchema = undefined -export type OutputSchema = AppBskyActorDefs.ProfileViewDetailed -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/actor/getProfiles.ts b/src/lexicon/types/app/bsky/actor/getProfiles.ts deleted file mode 100644 index 2549b264..00000000 --- a/src/lexicon/types/app/bsky/actor/getProfiles.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from './defs' - -export interface QueryParams { - actors: string[] -} - -export type InputSchema = undefined - -export interface OutputSchema { - profiles: AppBskyActorDefs.ProfileViewDetailed[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/actor/getSuggestions.ts b/src/lexicon/types/app/bsky/actor/getSuggestions.ts deleted file mode 100644 index a6d4d610..00000000 --- a/src/lexicon/types/app/bsky/actor/getSuggestions.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from './defs' - -export interface QueryParams { - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - actors: AppBskyActorDefs.ProfileView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/actor/profile.ts b/src/lexicon/types/app/bsky/actor/profile.ts deleted file mode 100644 index 7dbc4c1c..00000000 --- a/src/lexicon/types/app/bsky/actor/profile.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' - -export interface Record { - displayName?: string - description?: string - avatar?: BlobRef - banner?: BlobRef - labels?: - | ComAtprotoLabelDefs.SelfLabels - | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.actor.profile#main' || - v.$type === 'app.bsky.actor.profile') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.actor.profile#main', v) -} diff --git a/src/lexicon/types/app/bsky/actor/putPreferences.ts b/src/lexicon/types/app/bsky/actor/putPreferences.ts deleted file mode 100644 index 1e5ee2d8..00000000 --- a/src/lexicon/types/app/bsky/actor/putPreferences.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from './defs' - -export interface QueryParams {} - -export interface InputSchema { - preferences: AppBskyActorDefs.Preferences - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/actor/searchActors.ts b/src/lexicon/types/app/bsky/actor/searchActors.ts deleted file mode 100644 index 0222f365..00000000 --- a/src/lexicon/types/app/bsky/actor/searchActors.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from './defs' - -export interface QueryParams { - /** DEPRECATED: use 'q' instead */ - term?: string - /** search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended */ - q?: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - actors: AppBskyActorDefs.ProfileView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts b/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts deleted file mode 100644 index ba0d6244..00000000 --- a/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from './defs' - -export interface QueryParams { - /** DEPRECATED: use 'q' instead */ - term?: string - /** search query prefix; not a full query string */ - q?: string - limit: number -} - -export type InputSchema = undefined - -export interface OutputSchema { - actors: AppBskyActorDefs.ProfileViewBasic[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/embed/external.ts b/src/lexicon/types/app/bsky/embed/external.ts deleted file mode 100644 index f42a6cfd..00000000 --- a/src/lexicon/types/app/bsky/embed/external.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Main { - external: External - [k: string]: unknown -} - -export function isMain(v: unknown): v is Main { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.embed.external#main' || - v.$type === 'app.bsky.embed.external') - ) -} - -export function validateMain(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.external#main', v) -} - -export interface External { - uri: string - title: string - description: string - thumb?: BlobRef - [k: string]: unknown -} - -export function isExternal(v: unknown): v is External { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.external#external' - ) -} - -export function validateExternal(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.external#external', v) -} - -export interface View { - external: ViewExternal - [k: string]: unknown -} - -export function isView(v: unknown): v is View { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.external#view' - ) -} - -export function validateView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.external#view', v) -} - -export interface ViewExternal { - uri: string - title: string - description: string - thumb?: string - [k: string]: unknown -} - -export function isViewExternal(v: unknown): v is ViewExternal { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.external#viewExternal' - ) -} - -export function validateViewExternal(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.external#viewExternal', v) -} diff --git a/src/lexicon/types/app/bsky/embed/images.ts b/src/lexicon/types/app/bsky/embed/images.ts deleted file mode 100644 index 4864fad3..00000000 --- a/src/lexicon/types/app/bsky/embed/images.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Main { - images: Image[] - [k: string]: unknown -} - -export function isMain(v: unknown): v is Main { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.embed.images#main' || - v.$type === 'app.bsky.embed.images') - ) -} - -export function validateMain(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.images#main', v) -} - -export interface Image { - image: BlobRef - alt: string - aspectRatio?: AspectRatio - [k: string]: unknown -} - -export function isImage(v: unknown): v is Image { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.embed.images#image' - ) -} - -export function validateImage(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.images#image', v) -} - -/** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */ -export interface AspectRatio { - width: number - height: number - [k: string]: unknown -} - -export function isAspectRatio(v: unknown): v is AspectRatio { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.images#aspectRatio' - ) -} - -export function validateAspectRatio(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.images#aspectRatio', v) -} - -export interface View { - images: ViewImage[] - [k: string]: unknown -} - -export function isView(v: unknown): v is View { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.embed.images#view' - ) -} - -export function validateView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.images#view', v) -} - -export interface ViewImage { - thumb: string - fullsize: string - alt: string - aspectRatio?: AspectRatio - [k: string]: unknown -} - -export function isViewImage(v: unknown): v is ViewImage { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.images#viewImage' - ) -} - -export function validateViewImage(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.images#viewImage', v) -} diff --git a/src/lexicon/types/app/bsky/embed/record.ts b/src/lexicon/types/app/bsky/embed/record.ts deleted file mode 100644 index cea5742a..00000000 --- a/src/lexicon/types/app/bsky/embed/record.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef' -import * as AppBskyFeedDefs from '../feed/defs' -import * as AppBskyGraphDefs from '../graph/defs' -import * as AppBskyActorDefs from '../actor/defs' -import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' -import * as AppBskyEmbedImages from './images' -import * as AppBskyEmbedExternal from './external' -import * as AppBskyEmbedRecordWithMedia from './recordWithMedia' - -export interface Main { - record: ComAtprotoRepoStrongRef.Main - [k: string]: unknown -} - -export function isMain(v: unknown): v is Main { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.embed.record#main' || - v.$type === 'app.bsky.embed.record') - ) -} - -export function validateMain(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.record#main', v) -} - -export interface View { - record: - | ViewRecord - | ViewNotFound - | ViewBlocked - | AppBskyFeedDefs.GeneratorView - | AppBskyGraphDefs.ListView - | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export function isView(v: unknown): v is View { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.embed.record#view' - ) -} - -export function validateView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.record#view', v) -} - -export interface ViewRecord { - uri: string - cid: string - author: AppBskyActorDefs.ProfileViewBasic - value: {} - labels?: ComAtprotoLabelDefs.Label[] - embeds?: ( - | AppBskyEmbedImages.View - | AppBskyEmbedExternal.View - | View - | AppBskyEmbedRecordWithMedia.View - | { $type: string; [k: string]: unknown } - )[] - indexedAt: string - [k: string]: unknown -} - -export function isViewRecord(v: unknown): v is ViewRecord { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.record#viewRecord' - ) -} - -export function validateViewRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.record#viewRecord', v) -} - -export interface ViewNotFound { - uri: string - notFound: true - [k: string]: unknown -} - -export function isViewNotFound(v: unknown): v is ViewNotFound { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.record#viewNotFound' - ) -} - -export function validateViewNotFound(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.record#viewNotFound', v) -} - -export interface ViewBlocked { - uri: string - blocked: true - author: AppBskyFeedDefs.BlockedAuthor - [k: string]: unknown -} - -export function isViewBlocked(v: unknown): v is ViewBlocked { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.record#viewBlocked' - ) -} - -export function validateViewBlocked(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.record#viewBlocked', v) -} diff --git a/src/lexicon/types/app/bsky/embed/recordWithMedia.ts b/src/lexicon/types/app/bsky/embed/recordWithMedia.ts deleted file mode 100644 index f8f1ae50..00000000 --- a/src/lexicon/types/app/bsky/embed/recordWithMedia.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as AppBskyEmbedRecord from './record' -import * as AppBskyEmbedImages from './images' -import * as AppBskyEmbedExternal from './external' - -export interface Main { - record: AppBskyEmbedRecord.Main - media: - | AppBskyEmbedImages.Main - | AppBskyEmbedExternal.Main - | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export function isMain(v: unknown): v is Main { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.embed.recordWithMedia#main' || - v.$type === 'app.bsky.embed.recordWithMedia') - ) -} - -export function validateMain(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.recordWithMedia#main', v) -} - -export interface View { - record: AppBskyEmbedRecord.View - media: - | AppBskyEmbedImages.View - | AppBskyEmbedExternal.View - | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export function isView(v: unknown): v is View { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.embed.recordWithMedia#view' - ) -} - -export function validateView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.embed.recordWithMedia#view', v) -} diff --git a/src/lexicon/types/app/bsky/feed/defs.ts b/src/lexicon/types/app/bsky/feed/defs.ts deleted file mode 100644 index 08d34d88..00000000 --- a/src/lexicon/types/app/bsky/feed/defs.ts +++ /dev/null @@ -1,325 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as AppBskyActorDefs from '../actor/defs' -import * as AppBskyEmbedImages from '../embed/images' -import * as AppBskyEmbedExternal from '../embed/external' -import * as AppBskyEmbedRecord from '../embed/record' -import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia' -import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' -import * as AppBskyRichtextFacet from '../richtext/facet' -import * as AppBskyGraphDefs from '../graph/defs' - -export interface PostView { - uri: string - cid: string - author: AppBskyActorDefs.ProfileViewBasic - record: {} - embed?: - | AppBskyEmbedImages.View - | AppBskyEmbedExternal.View - | AppBskyEmbedRecord.View - | AppBskyEmbedRecordWithMedia.View - | { $type: string; [k: string]: unknown } - replyCount?: number - repostCount?: number - likeCount?: number - indexedAt: string - viewer?: ViewerState - labels?: ComAtprotoLabelDefs.Label[] - threadgate?: ThreadgateView - [k: string]: unknown -} - -export function isPostView(v: unknown): v is PostView { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.defs#postView' - ) -} - -export function validatePostView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#postView', v) -} - -export interface ViewerState { - repost?: string - like?: string - [k: string]: unknown -} - -export function isViewerState(v: unknown): v is ViewerState { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#viewerState' - ) -} - -export function validateViewerState(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#viewerState', v) -} - -export interface FeedViewPost { - post: PostView - reply?: ReplyRef - reason?: ReasonRepost | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export function isFeedViewPost(v: unknown): v is FeedViewPost { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#feedViewPost' - ) -} - -export function validateFeedViewPost(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#feedViewPost', v) -} - -export interface ReplyRef { - root: - | PostView - | NotFoundPost - | BlockedPost - | { $type: string; [k: string]: unknown } - parent: - | PostView - | NotFoundPost - | BlockedPost - | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export function isReplyRef(v: unknown): v is ReplyRef { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.defs#replyRef' - ) -} - -export function validateReplyRef(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#replyRef', v) -} - -export interface ReasonRepost { - by: AppBskyActorDefs.ProfileViewBasic - indexedAt: string - [k: string]: unknown -} - -export function isReasonRepost(v: unknown): v is ReasonRepost { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#reasonRepost' - ) -} - -export function validateReasonRepost(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#reasonRepost', v) -} - -export interface ThreadViewPost { - post: PostView - parent?: - | ThreadViewPost - | NotFoundPost - | BlockedPost - | { $type: string; [k: string]: unknown } - replies?: ( - | ThreadViewPost - | NotFoundPost - | BlockedPost - | { $type: string; [k: string]: unknown } - )[] - viewer?: ViewerThreadState - [k: string]: unknown -} - -export function isThreadViewPost(v: unknown): v is ThreadViewPost { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#threadViewPost' - ) -} - -export function validateThreadViewPost(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#threadViewPost', v) -} - -export interface NotFoundPost { - uri: string - notFound: true - [k: string]: unknown -} - -export function isNotFoundPost(v: unknown): v is NotFoundPost { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#notFoundPost' - ) -} - -export function validateNotFoundPost(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#notFoundPost', v) -} - -export interface BlockedPost { - uri: string - blocked: true - author: BlockedAuthor - [k: string]: unknown -} - -export function isBlockedPost(v: unknown): v is BlockedPost { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#blockedPost' - ) -} - -export function validateBlockedPost(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#blockedPost', v) -} - -export interface BlockedAuthor { - did: string - viewer?: AppBskyActorDefs.ViewerState - [k: string]: unknown -} - -export function isBlockedAuthor(v: unknown): v is BlockedAuthor { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#blockedAuthor' - ) -} - -export function validateBlockedAuthor(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#blockedAuthor', v) -} - -export interface ViewerThreadState { - canReply?: boolean - [k: string]: unknown -} - -export function isViewerThreadState(v: unknown): v is ViewerThreadState { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#viewerThreadState' - ) -} - -export function validateViewerThreadState(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#viewerThreadState', v) -} - -export interface GeneratorView { - uri: string - cid: string - did: string - creator: AppBskyActorDefs.ProfileView - displayName: string - description?: string - descriptionFacets?: AppBskyRichtextFacet.Main[] - avatar?: string - likeCount?: number - viewer?: GeneratorViewerState - indexedAt: string - [k: string]: unknown -} - -export function isGeneratorView(v: unknown): v is GeneratorView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#generatorView' - ) -} - -export function validateGeneratorView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#generatorView', v) -} - -export interface GeneratorViewerState { - like?: string - [k: string]: unknown -} - -export function isGeneratorViewerState(v: unknown): v is GeneratorViewerState { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#generatorViewerState' - ) -} - -export function validateGeneratorViewerState(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#generatorViewerState', v) -} - -export interface SkeletonFeedPost { - post: string - reason?: SkeletonReasonRepost | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export function isSkeletonFeedPost(v: unknown): v is SkeletonFeedPost { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#skeletonFeedPost' - ) -} - -export function validateSkeletonFeedPost(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#skeletonFeedPost', v) -} - -export interface SkeletonReasonRepost { - repost: string - [k: string]: unknown -} - -export function isSkeletonReasonRepost(v: unknown): v is SkeletonReasonRepost { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#skeletonReasonRepost' - ) -} - -export function validateSkeletonReasonRepost(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#skeletonReasonRepost', v) -} - -export interface ThreadgateView { - uri?: string - cid?: string - record?: {} - lists?: AppBskyGraphDefs.ListViewBasic[] - [k: string]: unknown -} - -export function isThreadgateView(v: unknown): v is ThreadgateView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.defs#threadgateView' - ) -} - -export function validateThreadgateView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.defs#threadgateView', v) -} diff --git a/src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts b/src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts deleted file mode 100644 index d329bf20..00000000 --- a/src/lexicon/types/app/bsky/feed/describeFeedGenerator.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export type InputSchema = undefined - -export interface OutputSchema { - did: string - feeds: Feed[] - links?: Links - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface Feed { - uri: string - [k: string]: unknown -} - -export function isFeed(v: unknown): v is Feed { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.describeFeedGenerator#feed' - ) -} - -export function validateFeed(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.describeFeedGenerator#feed', v) -} - -export interface Links { - privacyPolicy?: string - termsOfService?: string - [k: string]: unknown -} - -export function isLinks(v: unknown): v is Links { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.describeFeedGenerator#links' - ) -} - -export function validateLinks(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.describeFeedGenerator#links', v) -} diff --git a/src/lexicon/types/app/bsky/feed/generator.ts b/src/lexicon/types/app/bsky/feed/generator.ts deleted file mode 100644 index 757e74db..00000000 --- a/src/lexicon/types/app/bsky/feed/generator.ts +++ /dev/null @@ -1,35 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as AppBskyRichtextFacet from '../richtext/facet' -import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' - -export interface Record { - did: string - displayName: string - description?: string - descriptionFacets?: AppBskyRichtextFacet.Main[] - avatar?: BlobRef - labels?: - | ComAtprotoLabelDefs.SelfLabels - | { $type: string; [k: string]: unknown } - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.feed.generator#main' || - v.$type === 'app.bsky.feed.generator') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.generator#main', v) -} diff --git a/src/lexicon/types/app/bsky/feed/getActorFeeds.ts b/src/lexicon/types/app/bsky/feed/getActorFeeds.ts deleted file mode 100644 index 3e930cbe..00000000 --- a/src/lexicon/types/app/bsky/feed/getActorFeeds.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - actor: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feeds: AppBskyFeedDefs.GeneratorView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getActorLikes.ts b/src/lexicon/types/app/bsky/feed/getActorLikes.ts deleted file mode 100644 index df2f291e..00000000 --- a/src/lexicon/types/app/bsky/feed/getActorLikes.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - actor: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feed: AppBskyFeedDefs.FeedViewPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'BlockedActor' | 'BlockedByActor' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts b/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts deleted file mode 100644 index cd66ef5c..00000000 --- a/src/lexicon/types/app/bsky/feed/getAuthorFeed.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - actor: string - limit: number - cursor?: string - filter: - | 'posts_with_replies' - | 'posts_no_replies' - | 'posts_with_media' - | (string & {}) -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feed: AppBskyFeedDefs.FeedViewPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'BlockedActor' | 'BlockedByActor' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getFeed.ts b/src/lexicon/types/app/bsky/feed/getFeed.ts deleted file mode 100644 index e72b1010..00000000 --- a/src/lexicon/types/app/bsky/feed/getFeed.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - feed: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feed: AppBskyFeedDefs.FeedViewPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'UnknownFeed' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getFeedGenerator.ts b/src/lexicon/types/app/bsky/feed/getFeedGenerator.ts deleted file mode 100644 index fab3b30c..00000000 --- a/src/lexicon/types/app/bsky/feed/getFeedGenerator.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - feed: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - view: AppBskyFeedDefs.GeneratorView - isOnline: boolean - isValid: boolean - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getFeedGenerators.ts b/src/lexicon/types/app/bsky/feed/getFeedGenerators.ts deleted file mode 100644 index d7e082f2..00000000 --- a/src/lexicon/types/app/bsky/feed/getFeedGenerators.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - feeds: string[] -} - -export type InputSchema = undefined - -export interface OutputSchema { - feeds: AppBskyFeedDefs.GeneratorView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts b/src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts deleted file mode 100644 index 1c8f349b..00000000 --- a/src/lexicon/types/app/bsky/feed/getFeedSkeleton.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - feed: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feed: AppBskyFeedDefs.SkeletonFeedPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'UnknownFeed' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getLikes.ts b/src/lexicon/types/app/bsky/feed/getLikes.ts deleted file mode 100644 index d581f5bf..00000000 --- a/src/lexicon/types/app/bsky/feed/getLikes.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from '../actor/defs' - -export interface QueryParams { - uri: string - cid?: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - uri: string - cid?: string - cursor?: string - likes: Like[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface Like { - indexedAt: string - createdAt: string - actor: AppBskyActorDefs.ProfileView - [k: string]: unknown -} - -export function isLike(v: unknown): v is Like { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.getLikes#like' - ) -} - -export function validateLike(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.getLikes#like', v) -} diff --git a/src/lexicon/types/app/bsky/feed/getListFeed.ts b/src/lexicon/types/app/bsky/feed/getListFeed.ts deleted file mode 100644 index e24c3f8e..00000000 --- a/src/lexicon/types/app/bsky/feed/getListFeed.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - list: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feed: AppBskyFeedDefs.FeedViewPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'UnknownList' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getPostThread.ts b/src/lexicon/types/app/bsky/feed/getPostThread.ts deleted file mode 100644 index 61de94b7..00000000 --- a/src/lexicon/types/app/bsky/feed/getPostThread.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - uri: string - depth: number - parentHeight: number -} - -export type InputSchema = undefined - -export interface OutputSchema { - thread: - | AppBskyFeedDefs.ThreadViewPost - | AppBskyFeedDefs.NotFoundPost - | AppBskyFeedDefs.BlockedPost - | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'NotFound' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getPosts.ts b/src/lexicon/types/app/bsky/feed/getPosts.ts deleted file mode 100644 index 4282f5d3..00000000 --- a/src/lexicon/types/app/bsky/feed/getPosts.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - uris: string[] -} - -export type InputSchema = undefined - -export interface OutputSchema { - posts: AppBskyFeedDefs.PostView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getRepostedBy.ts b/src/lexicon/types/app/bsky/feed/getRepostedBy.ts deleted file mode 100644 index 0b9c1a6f..00000000 --- a/src/lexicon/types/app/bsky/feed/getRepostedBy.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from '../actor/defs' - -export interface QueryParams { - uri: string - cid?: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - uri: string - cid?: string - cursor?: string - repostedBy: AppBskyActorDefs.ProfileView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts b/src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts deleted file mode 100644 index 9b271335..00000000 --- a/src/lexicon/types/app/bsky/feed/getSuggestedFeeds.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feeds: AppBskyFeedDefs.GeneratorView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/getTimeline.ts b/src/lexicon/types/app/bsky/feed/getTimeline.ts deleted file mode 100644 index 832caf5c..00000000 --- a/src/lexicon/types/app/bsky/feed/getTimeline.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - algorithm?: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feed: AppBskyFeedDefs.FeedViewPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/like.ts b/src/lexicon/types/app/bsky/feed/like.ts deleted file mode 100644 index 1da9dd94..00000000 --- a/src/lexicon/types/app/bsky/feed/like.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef' - -export interface Record { - subject: ComAtprotoRepoStrongRef.Main - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.feed.like#main' || v.$type === 'app.bsky.feed.like') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.like#main', v) -} diff --git a/src/lexicon/types/app/bsky/feed/post.ts b/src/lexicon/types/app/bsky/feed/post.ts deleted file mode 100644 index 93870b44..00000000 --- a/src/lexicon/types/app/bsky/feed/post.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as AppBskyRichtextFacet from '../richtext/facet' -import * as AppBskyEmbedImages from '../embed/images' -import * as AppBskyEmbedExternal from '../embed/external' -import * as AppBskyEmbedRecord from '../embed/record' -import * as AppBskyEmbedRecordWithMedia from '../embed/recordWithMedia' -import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef' - -export interface Record { - text: string - /** Deprecated: replaced by app.bsky.richtext.facet. */ - entities?: Entity[] - facets?: AppBskyRichtextFacet.Main[] - reply?: ReplyRef - embed?: - | AppBskyEmbedImages.Main - | AppBskyEmbedExternal.Main - | AppBskyEmbedRecord.Main - | AppBskyEmbedRecordWithMedia.Main - | { $type: string; [k: string]: unknown } - langs?: string[] - labels?: - | ComAtprotoLabelDefs.SelfLabels - | { $type: string; [k: string]: unknown } - /** Additional non-inline tags describing this post. */ - tags?: string[] - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.feed.post#main' || v.$type === 'app.bsky.feed.post') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.post#main', v) -} - -export interface ReplyRef { - root: ComAtprotoRepoStrongRef.Main - parent: ComAtprotoRepoStrongRef.Main - [k: string]: unknown -} - -export function isReplyRef(v: unknown): v is ReplyRef { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.post#replyRef' - ) -} - -export function validateReplyRef(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.post#replyRef', v) -} - -/** Deprecated: use facets instead. */ -export interface Entity { - index: TextSlice - /** Expected values are 'mention' and 'link'. */ - type: string - value: string - [k: string]: unknown -} - -export function isEntity(v: unknown): v is Entity { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.feed.post#entity' - ) -} - -export function validateEntity(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.post#entity', v) -} - -/** Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. */ -export interface TextSlice { - start: number - end: number - [k: string]: unknown -} - -export function isTextSlice(v: unknown): v is TextSlice { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.post#textSlice' - ) -} - -export function validateTextSlice(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.post#textSlice', v) -} diff --git a/src/lexicon/types/app/bsky/feed/repost.ts b/src/lexicon/types/app/bsky/feed/repost.ts deleted file mode 100644 index 4c836d76..00000000 --- a/src/lexicon/types/app/bsky/feed/repost.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef' - -export interface Record { - subject: ComAtprotoRepoStrongRef.Main - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.feed.repost#main' || - v.$type === 'app.bsky.feed.repost') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.repost#main', v) -} diff --git a/src/lexicon/types/app/bsky/feed/searchPosts.ts b/src/lexicon/types/app/bsky/feed/searchPosts.ts deleted file mode 100644 index 6b5fe08e..00000000 --- a/src/lexicon/types/app/bsky/feed/searchPosts.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from './defs' - -export interface QueryParams { - /** search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended */ - q: string - limit: number - /** optional pagination mechanism; may not necessarily allow scrolling through entire result set */ - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - /** count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits */ - hitsTotal?: number - posts: AppBskyFeedDefs.PostView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'BadQueryString' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/feed/threadgate.ts b/src/lexicon/types/app/bsky/feed/threadgate.ts deleted file mode 100644 index 6a190d6e..00000000 --- a/src/lexicon/types/app/bsky/feed/threadgate.ts +++ /dev/null @@ -1,84 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Record { - post: string - allow?: ( - | MentionRule - | FollowingRule - | ListRule - | { $type: string; [k: string]: unknown } - )[] - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.feed.threadgate#main' || - v.$type === 'app.bsky.feed.threadgate') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.threadgate#main', v) -} - -/** Allow replies from actors mentioned in your post. */ -export interface MentionRule { - [k: string]: unknown -} - -export function isMentionRule(v: unknown): v is MentionRule { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.threadgate#mentionRule' - ) -} - -export function validateMentionRule(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.threadgate#mentionRule', v) -} - -/** Allow replies from actors you follow. */ -export interface FollowingRule { - [k: string]: unknown -} - -export function isFollowingRule(v: unknown): v is FollowingRule { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.threadgate#followingRule' - ) -} - -export function validateFollowingRule(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.threadgate#followingRule', v) -} - -/** Allow replies from actors on a list. */ -export interface ListRule { - list: string - [k: string]: unknown -} - -export function isListRule(v: unknown): v is ListRule { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.feed.threadgate#listRule' - ) -} - -export function validateListRule(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.feed.threadgate#listRule', v) -} diff --git a/src/lexicon/types/app/bsky/graph/block.ts b/src/lexicon/types/app/bsky/graph/block.ts deleted file mode 100644 index 947463af..00000000 --- a/src/lexicon/types/app/bsky/graph/block.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Record { - subject: string - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.graph.block#main' || - v.$type === 'app.bsky.graph.block') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.block#main', v) -} diff --git a/src/lexicon/types/app/bsky/graph/defs.ts b/src/lexicon/types/app/bsky/graph/defs.ts deleted file mode 100644 index 121d9db2..00000000 --- a/src/lexicon/types/app/bsky/graph/defs.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as AppBskyActorDefs from '../actor/defs' -import * as AppBskyRichtextFacet from '../richtext/facet' - -export interface ListViewBasic { - uri: string - cid: string - name: string - purpose: ListPurpose - avatar?: string - viewer?: ListViewerState - indexedAt?: string - [k: string]: unknown -} - -export function isListViewBasic(v: unknown): v is ListViewBasic { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.graph.defs#listViewBasic' - ) -} - -export function validateListViewBasic(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.defs#listViewBasic', v) -} - -export interface ListView { - uri: string - cid: string - creator: AppBskyActorDefs.ProfileView - name: string - purpose: ListPurpose - description?: string - descriptionFacets?: AppBskyRichtextFacet.Main[] - avatar?: string - viewer?: ListViewerState - indexedAt: string - [k: string]: unknown -} - -export function isListView(v: unknown): v is ListView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.graph.defs#listView' - ) -} - -export function validateListView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.defs#listView', v) -} - -export interface ListItemView { - subject: AppBskyActorDefs.ProfileView - [k: string]: unknown -} - -export function isListItemView(v: unknown): v is ListItemView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.graph.defs#listItemView' - ) -} - -export function validateListItemView(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.defs#listItemView', v) -} - -export type ListPurpose = - | 'app.bsky.graph.defs#modlist' - | 'app.bsky.graph.defs#curatelist' - | (string & {}) - -/** A list of actors to apply an aggregate moderation action (mute/block) on */ -export const MODLIST = 'app.bsky.graph.defs#modlist' -/** A list of actors used for curation purposes such as list feeds or interaction gating */ -export const CURATELIST = 'app.bsky.graph.defs#curatelist' - -export interface ListViewerState { - muted?: boolean - blocked?: string - [k: string]: unknown -} - -export function isListViewerState(v: unknown): v is ListViewerState { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.graph.defs#listViewerState' - ) -} - -export function validateListViewerState(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.defs#listViewerState', v) -} diff --git a/src/lexicon/types/app/bsky/graph/follow.ts b/src/lexicon/types/app/bsky/graph/follow.ts deleted file mode 100644 index 4b74a58a..00000000 --- a/src/lexicon/types/app/bsky/graph/follow.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Record { - subject: string - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.graph.follow#main' || - v.$type === 'app.bsky.graph.follow') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.follow#main', v) -} diff --git a/src/lexicon/types/app/bsky/graph/getBlocks.ts b/src/lexicon/types/app/bsky/graph/getBlocks.ts deleted file mode 100644 index d380a148..00000000 --- a/src/lexicon/types/app/bsky/graph/getBlocks.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from '../actor/defs' - -export interface QueryParams { - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - blocks: AppBskyActorDefs.ProfileView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/getFollowers.ts b/src/lexicon/types/app/bsky/graph/getFollowers.ts deleted file mode 100644 index b337be52..00000000 --- a/src/lexicon/types/app/bsky/graph/getFollowers.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from '../actor/defs' - -export interface QueryParams { - actor: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - subject: AppBskyActorDefs.ProfileView - cursor?: string - followers: AppBskyActorDefs.ProfileView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/getFollows.ts b/src/lexicon/types/app/bsky/graph/getFollows.ts deleted file mode 100644 index 71e9ca02..00000000 --- a/src/lexicon/types/app/bsky/graph/getFollows.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from '../actor/defs' - -export interface QueryParams { - actor: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - subject: AppBskyActorDefs.ProfileView - cursor?: string - follows: AppBskyActorDefs.ProfileView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/getList.ts b/src/lexicon/types/app/bsky/graph/getList.ts deleted file mode 100644 index fc45dd20..00000000 --- a/src/lexicon/types/app/bsky/graph/getList.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyGraphDefs from './defs' - -export interface QueryParams { - list: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - list: AppBskyGraphDefs.ListView - items: AppBskyGraphDefs.ListItemView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/getListBlocks.ts b/src/lexicon/types/app/bsky/graph/getListBlocks.ts deleted file mode 100644 index 04cca70b..00000000 --- a/src/lexicon/types/app/bsky/graph/getListBlocks.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyGraphDefs from './defs' - -export interface QueryParams { - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - lists: AppBskyGraphDefs.ListView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/getListMutes.ts b/src/lexicon/types/app/bsky/graph/getListMutes.ts deleted file mode 100644 index 04cca70b..00000000 --- a/src/lexicon/types/app/bsky/graph/getListMutes.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyGraphDefs from './defs' - -export interface QueryParams { - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - lists: AppBskyGraphDefs.ListView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/getLists.ts b/src/lexicon/types/app/bsky/graph/getLists.ts deleted file mode 100644 index 8acf9362..00000000 --- a/src/lexicon/types/app/bsky/graph/getLists.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyGraphDefs from './defs' - -export interface QueryParams { - actor: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - lists: AppBskyGraphDefs.ListView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/getMutes.ts b/src/lexicon/types/app/bsky/graph/getMutes.ts deleted file mode 100644 index 0034095b..00000000 --- a/src/lexicon/types/app/bsky/graph/getMutes.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from '../actor/defs' - -export interface QueryParams { - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - mutes: AppBskyActorDefs.ProfileView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts b/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts deleted file mode 100644 index a2245846..00000000 --- a/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from '../actor/defs' - -export interface QueryParams { - actor: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - suggestions: AppBskyActorDefs.ProfileView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/list.ts b/src/lexicon/types/app/bsky/graph/list.ts deleted file mode 100644 index 36a7fb17..00000000 --- a/src/lexicon/types/app/bsky/graph/list.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as AppBskyGraphDefs from './defs' -import * as AppBskyRichtextFacet from '../richtext/facet' -import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' - -export interface Record { - purpose: AppBskyGraphDefs.ListPurpose - name: string - description?: string - descriptionFacets?: AppBskyRichtextFacet.Main[] - avatar?: BlobRef - labels?: - | ComAtprotoLabelDefs.SelfLabels - | { $type: string; [k: string]: unknown } - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.graph.list#main' || - v.$type === 'app.bsky.graph.list') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.list#main', v) -} diff --git a/src/lexicon/types/app/bsky/graph/listblock.ts b/src/lexicon/types/app/bsky/graph/listblock.ts deleted file mode 100644 index 59f2e057..00000000 --- a/src/lexicon/types/app/bsky/graph/listblock.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Record { - subject: string - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.graph.listblock#main' || - v.$type === 'app.bsky.graph.listblock') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.listblock#main', v) -} diff --git a/src/lexicon/types/app/bsky/graph/listitem.ts b/src/lexicon/types/app/bsky/graph/listitem.ts deleted file mode 100644 index 69eff329..00000000 --- a/src/lexicon/types/app/bsky/graph/listitem.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Record { - subject: string - list: string - createdAt: string - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.graph.listitem#main' || - v.$type === 'app.bsky.graph.listitem') - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.graph.listitem#main', v) -} diff --git a/src/lexicon/types/app/bsky/graph/muteActor.ts b/src/lexicon/types/app/bsky/graph/muteActor.ts deleted file mode 100644 index 52d1b864..00000000 --- a/src/lexicon/types/app/bsky/graph/muteActor.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - actor: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/muteActorList.ts b/src/lexicon/types/app/bsky/graph/muteActorList.ts deleted file mode 100644 index bf803f38..00000000 --- a/src/lexicon/types/app/bsky/graph/muteActorList.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - list: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/unmuteActor.ts b/src/lexicon/types/app/bsky/graph/unmuteActor.ts deleted file mode 100644 index 52d1b864..00000000 --- a/src/lexicon/types/app/bsky/graph/unmuteActor.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - actor: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/graph/unmuteActorList.ts b/src/lexicon/types/app/bsky/graph/unmuteActorList.ts deleted file mode 100644 index bf803f38..00000000 --- a/src/lexicon/types/app/bsky/graph/unmuteActorList.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - list: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/notification/getUnreadCount.ts b/src/lexicon/types/app/bsky/notification/getUnreadCount.ts deleted file mode 100644 index 6cf3c84b..00000000 --- a/src/lexicon/types/app/bsky/notification/getUnreadCount.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - seenAt?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - count: number - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/notification/listNotifications.ts b/src/lexicon/types/app/bsky/notification/listNotifications.ts deleted file mode 100644 index 156ba349..00000000 --- a/src/lexicon/types/app/bsky/notification/listNotifications.ts +++ /dev/null @@ -1,86 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyActorDefs from '../actor/defs' -import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs' - -export interface QueryParams { - limit: number - cursor?: string - seenAt?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - notifications: Notification[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface Notification { - uri: string - cid: string - author: AppBskyActorDefs.ProfileView - /** Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'. */ - reason: - | 'like' - | 'repost' - | 'follow' - | 'mention' - | 'reply' - | 'quote' - | (string & {}) - reasonSubject?: string - record: {} - isRead: boolean - indexedAt: string - labels?: ComAtprotoLabelDefs.Label[] - [k: string]: unknown -} - -export function isNotification(v: unknown): v is Notification { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.notification.listNotifications#notification' - ) -} - -export function validateNotification(v: unknown): ValidationResult { - return lexicons.validate( - 'app.bsky.notification.listNotifications#notification', - v, - ) -} diff --git a/src/lexicon/types/app/bsky/notification/registerPush.ts b/src/lexicon/types/app/bsky/notification/registerPush.ts deleted file mode 100644 index 9923aeb0..00000000 --- a/src/lexicon/types/app/bsky/notification/registerPush.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - serviceDid: string - token: string - platform: 'ios' | 'android' | 'web' | (string & {}) - appId: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/notification/updateSeen.ts b/src/lexicon/types/app/bsky/notification/updateSeen.ts deleted file mode 100644 index 136191ed..00000000 --- a/src/lexicon/types/app/bsky/notification/updateSeen.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - seenAt: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/richtext/facet.ts b/src/lexicon/types/app/bsky/richtext/facet.ts deleted file mode 100644 index 2c5b2d72..00000000 --- a/src/lexicon/types/app/bsky/richtext/facet.ts +++ /dev/null @@ -1,97 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Main { - index: ByteSlice - features: (Mention | Link | Tag | { $type: string; [k: string]: unknown })[] - [k: string]: unknown -} - -export function isMain(v: unknown): v is Main { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'app.bsky.richtext.facet#main' || - v.$type === 'app.bsky.richtext.facet') - ) -} - -export function validateMain(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.richtext.facet#main', v) -} - -/** A facet feature for actor mentions. */ -export interface Mention { - did: string - [k: string]: unknown -} - -export function isMention(v: unknown): v is Mention { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.richtext.facet#mention' - ) -} - -export function validateMention(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.richtext.facet#mention', v) -} - -/** A facet feature for links. */ -export interface Link { - uri: string - [k: string]: unknown -} - -export function isLink(v: unknown): v is Link { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.richtext.facet#link' - ) -} - -export function validateLink(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.richtext.facet#link', v) -} - -/** A hashtag. */ -export interface Tag { - tag: string - [k: string]: unknown -} - -export function isTag(v: unknown): v is Tag { - return ( - isObj(v) && hasProp(v, '$type') && v.$type === 'app.bsky.richtext.facet#tag' - ) -} - -export function validateTag(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.richtext.facet#tag', v) -} - -/** A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings. */ -export interface ByteSlice { - byteStart: number - byteEnd: number - [k: string]: unknown -} - -export function isByteSlice(v: unknown): v is ByteSlice { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.richtext.facet#byteSlice' - ) -} - -export function validateByteSlice(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.richtext.facet#byteSlice', v) -} diff --git a/src/lexicon/types/app/bsky/unspecced/defs.ts b/src/lexicon/types/app/bsky/unspecced/defs.ts deleted file mode 100644 index 59a6b380..00000000 --- a/src/lexicon/types/app/bsky/unspecced/defs.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface SkeletonSearchPost { - uri: string - [k: string]: unknown -} - -export function isSkeletonSearchPost(v: unknown): v is SkeletonSearchPost { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.unspecced.defs#skeletonSearchPost' - ) -} - -export function validateSkeletonSearchPost(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchPost', v) -} - -export interface SkeletonSearchActor { - did: string - [k: string]: unknown -} - -export function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'app.bsky.unspecced.defs#skeletonSearchActor' - ) -} - -export function validateSkeletonSearchActor(v: unknown): ValidationResult { - return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchActor', v) -} diff --git a/src/lexicon/types/app/bsky/unspecced/getPopular.ts b/src/lexicon/types/app/bsky/unspecced/getPopular.ts deleted file mode 100644 index 8471ed77..00000000 --- a/src/lexicon/types/app/bsky/unspecced/getPopular.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from '../feed/defs' - -export interface QueryParams { - includeNsfw: boolean - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feed: AppBskyFeedDefs.FeedViewPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts b/src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts deleted file mode 100644 index 97937e92..00000000 --- a/src/lexicon/types/app/bsky/unspecced/getPopularFeedGenerators.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from '../feed/defs' - -export interface QueryParams { - limit: number - cursor?: string - query?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feeds: AppBskyFeedDefs.GeneratorView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts b/src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts deleted file mode 100644 index 4ccad20c..00000000 --- a/src/lexicon/types/app/bsky/unspecced/getTimelineSkeleton.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyFeedDefs from '../feed/defs' - -export interface QueryParams { - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - feed: AppBskyFeedDefs.SkeletonFeedPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'UnknownFeed' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts b/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts deleted file mode 100644 index 2cf59bf8..00000000 --- a/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyUnspeccedDefs from './defs' - -export interface QueryParams { - /** search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax */ - q: string - /** if true, acts as fast/simple 'typeahead' query */ - typeahead?: boolean - limit: number - /** optional pagination mechanism; may not necessarily allow scrolling through entire result set */ - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - /** count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits */ - hitsTotal?: number - actors: AppBskyUnspeccedDefs.SkeletonSearchActor[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'BadQueryString' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts b/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts deleted file mode 100644 index df990d2c..00000000 --- a/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as AppBskyUnspeccedDefs from './defs' - -export interface QueryParams { - /** search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended */ - q: string - limit: number - /** optional pagination mechanism; may not necessarily allow scrolling through entire result set */ - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - /** count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits */ - hitsTotal?: number - posts: AppBskyUnspeccedDefs.SkeletonSearchPost[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'BadQueryString' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/defs.ts b/src/lexicon/types/com/atproto/admin/defs.ts deleted file mode 100644 index 968252a4..00000000 --- a/src/lexicon/types/com/atproto/admin/defs.ts +++ /dev/null @@ -1,435 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import * as ComAtprotoRepoStrongRef from '../repo/strongRef' -import * as ComAtprotoModerationDefs from '../moderation/defs' -import * as ComAtprotoServerDefs from '../server/defs' -import * as ComAtprotoLabelDefs from '../label/defs' - -export interface ActionView { - id: number - action: ActionType - /** Indicates how long this action was meant to be in effect before automatically expiring. */ - durationInHours?: number - subject: - | RepoRef - | ComAtprotoRepoStrongRef.Main - | { $type: string; [k: string]: unknown } - subjectBlobCids: string[] - createLabelVals?: string[] - negateLabelVals?: string[] - reason: string - createdBy: string - createdAt: string - reversal?: ActionReversal - resolvedReportIds: number[] - [k: string]: unknown -} - -export function isActionView(v: unknown): v is ActionView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#actionView' - ) -} - -export function validateActionView(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#actionView', v) -} - -export interface ActionViewDetail { - id: number - action: ActionType - /** Indicates how long this action was meant to be in effect before automatically expiring. */ - durationInHours?: number - subject: - | RepoView - | RepoViewNotFound - | RecordView - | RecordViewNotFound - | { $type: string; [k: string]: unknown } - subjectBlobs: BlobView[] - createLabelVals?: string[] - negateLabelVals?: string[] - reason: string - createdBy: string - createdAt: string - reversal?: ActionReversal - resolvedReports: ReportView[] - [k: string]: unknown -} - -export function isActionViewDetail(v: unknown): v is ActionViewDetail { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#actionViewDetail' - ) -} - -export function validateActionViewDetail(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#actionViewDetail', v) -} - -export interface ActionViewCurrent { - id: number - action: ActionType - /** Indicates how long this action was meant to be in effect before automatically expiring. */ - durationInHours?: number - [k: string]: unknown -} - -export function isActionViewCurrent(v: unknown): v is ActionViewCurrent { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#actionViewCurrent' - ) -} - -export function validateActionViewCurrent(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#actionViewCurrent', v) -} - -export interface ActionReversal { - reason: string - createdBy: string - createdAt: string - [k: string]: unknown -} - -export function isActionReversal(v: unknown): v is ActionReversal { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#actionReversal' - ) -} - -export function validateActionReversal(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#actionReversal', v) -} - -export type ActionType = - | 'lex:com.atproto.admin.defs#takedown' - | 'lex:com.atproto.admin.defs#flag' - | 'lex:com.atproto.admin.defs#acknowledge' - | 'lex:com.atproto.admin.defs#escalate' - | (string & {}) - -/** Moderation action type: Takedown. Indicates that content should not be served by the PDS. */ -export const TAKEDOWN = 'com.atproto.admin.defs#takedown' -/** Moderation action type: Flag. Indicates that the content was reviewed and considered to violate PDS rules, but may still be served. */ -export const FLAG = 'com.atproto.admin.defs#flag' -/** Moderation action type: Acknowledge. Indicates that the content was reviewed and not considered to violate PDS rules. */ -export const ACKNOWLEDGE = 'com.atproto.admin.defs#acknowledge' -/** Moderation action type: Escalate. Indicates that the content has been flagged for additional review. */ -export const ESCALATE = 'com.atproto.admin.defs#escalate' - -export interface ReportView { - id: number - reasonType: ComAtprotoModerationDefs.ReasonType - reason?: string - subjectRepoHandle?: string - subject: - | RepoRef - | ComAtprotoRepoStrongRef.Main - | { $type: string; [k: string]: unknown } - reportedBy: string - createdAt: string - resolvedByActionIds: number[] - [k: string]: unknown -} - -export function isReportView(v: unknown): v is ReportView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#reportView' - ) -} - -export function validateReportView(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#reportView', v) -} - -export interface ReportViewDetail { - id: number - reasonType: ComAtprotoModerationDefs.ReasonType - reason?: string - subject: - | RepoView - | RepoViewNotFound - | RecordView - | RecordViewNotFound - | { $type: string; [k: string]: unknown } - reportedBy: string - createdAt: string - resolvedByActions: ActionView[] - [k: string]: unknown -} - -export function isReportViewDetail(v: unknown): v is ReportViewDetail { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#reportViewDetail' - ) -} - -export function validateReportViewDetail(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#reportViewDetail', v) -} - -export interface RepoView { - did: string - handle: string - email?: string - relatedRecords: {}[] - indexedAt: string - moderation: Moderation - invitedBy?: ComAtprotoServerDefs.InviteCode - invitesDisabled?: boolean - inviteNote?: string - [k: string]: unknown -} - -export function isRepoView(v: unknown): v is RepoView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#repoView' - ) -} - -export function validateRepoView(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#repoView', v) -} - -export interface RepoViewDetail { - did: string - handle: string - email?: string - relatedRecords: {}[] - indexedAt: string - moderation: ModerationDetail - labels?: ComAtprotoLabelDefs.Label[] - invitedBy?: ComAtprotoServerDefs.InviteCode - invites?: ComAtprotoServerDefs.InviteCode[] - invitesDisabled?: boolean - inviteNote?: string - [k: string]: unknown -} - -export function isRepoViewDetail(v: unknown): v is RepoViewDetail { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#repoViewDetail' - ) -} - -export function validateRepoViewDetail(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#repoViewDetail', v) -} - -export interface RepoViewNotFound { - did: string - [k: string]: unknown -} - -export function isRepoViewNotFound(v: unknown): v is RepoViewNotFound { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#repoViewNotFound' - ) -} - -export function validateRepoViewNotFound(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#repoViewNotFound', v) -} - -export interface RepoRef { - did: string - [k: string]: unknown -} - -export function isRepoRef(v: unknown): v is RepoRef { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#repoRef' - ) -} - -export function validateRepoRef(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#repoRef', v) -} - -export interface RecordView { - uri: string - cid: string - value: {} - blobCids: string[] - indexedAt: string - moderation: Moderation - repo: RepoView - [k: string]: unknown -} - -export function isRecordView(v: unknown): v is RecordView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#recordView' - ) -} - -export function validateRecordView(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#recordView', v) -} - -export interface RecordViewDetail { - uri: string - cid: string - value: {} - blobs: BlobView[] - labels?: ComAtprotoLabelDefs.Label[] - indexedAt: string - moderation: ModerationDetail - repo: RepoView - [k: string]: unknown -} - -export function isRecordViewDetail(v: unknown): v is RecordViewDetail { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#recordViewDetail' - ) -} - -export function validateRecordViewDetail(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#recordViewDetail', v) -} - -export interface RecordViewNotFound { - uri: string - [k: string]: unknown -} - -export function isRecordViewNotFound(v: unknown): v is RecordViewNotFound { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#recordViewNotFound' - ) -} - -export function validateRecordViewNotFound(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#recordViewNotFound', v) -} - -export interface Moderation { - currentAction?: ActionViewCurrent - [k: string]: unknown -} - -export function isModeration(v: unknown): v is Moderation { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#moderation' - ) -} - -export function validateModeration(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#moderation', v) -} - -export interface ModerationDetail { - currentAction?: ActionViewCurrent - actions: ActionView[] - reports: ReportView[] - [k: string]: unknown -} - -export function isModerationDetail(v: unknown): v is ModerationDetail { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#moderationDetail' - ) -} - -export function validateModerationDetail(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#moderationDetail', v) -} - -export interface BlobView { - cid: string - mimeType: string - size: number - createdAt: string - details?: - | ImageDetails - | VideoDetails - | { $type: string; [k: string]: unknown } - moderation?: Moderation - [k: string]: unknown -} - -export function isBlobView(v: unknown): v is BlobView { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#blobView' - ) -} - -export function validateBlobView(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#blobView', v) -} - -export interface ImageDetails { - width: number - height: number - [k: string]: unknown -} - -export function isImageDetails(v: unknown): v is ImageDetails { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#imageDetails' - ) -} - -export function validateImageDetails(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#imageDetails', v) -} - -export interface VideoDetails { - width: number - height: number - length: number - [k: string]: unknown -} - -export function isVideoDetails(v: unknown): v is VideoDetails { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.admin.defs#videoDetails' - ) -} - -export function validateVideoDetails(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.admin.defs#videoDetails', v) -} diff --git a/src/lexicon/types/com/atproto/admin/disableAccountInvites.ts b/src/lexicon/types/com/atproto/admin/disableAccountInvites.ts deleted file mode 100644 index 051fabb6..00000000 --- a/src/lexicon/types/com/atproto/admin/disableAccountInvites.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - account: string - /** Additionally add a note describing why the invites were disabled */ - note?: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/disableInviteCodes.ts b/src/lexicon/types/com/atproto/admin/disableInviteCodes.ts deleted file mode 100644 index 2b64371f..00000000 --- a/src/lexicon/types/com/atproto/admin/disableInviteCodes.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - codes?: string[] - accounts?: string[] - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/enableAccountInvites.ts b/src/lexicon/types/com/atproto/admin/enableAccountInvites.ts deleted file mode 100644 index 4a26d302..00000000 --- a/src/lexicon/types/com/atproto/admin/enableAccountInvites.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - account: string - /** Additionally add a note describing why the invites were enabled */ - note?: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/getInviteCodes.ts b/src/lexicon/types/com/atproto/admin/getInviteCodes.ts deleted file mode 100644 index 1eb099aa..00000000 --- a/src/lexicon/types/com/atproto/admin/getInviteCodes.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoServerDefs from '../server/defs' - -export interface QueryParams { - sort: 'recent' | 'usage' | (string & {}) - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - codes: ComAtprotoServerDefs.InviteCode[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/getModerationAction.ts b/src/lexicon/types/com/atproto/admin/getModerationAction.ts deleted file mode 100644 index 2ab52f23..00000000 --- a/src/lexicon/types/com/atproto/admin/getModerationAction.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams { - id: number -} - -export type InputSchema = undefined -export type OutputSchema = ComAtprotoAdminDefs.ActionViewDetail -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/getModerationActions.ts b/src/lexicon/types/com/atproto/admin/getModerationActions.ts deleted file mode 100644 index 4c29f965..00000000 --- a/src/lexicon/types/com/atproto/admin/getModerationActions.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams { - subject?: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - actions: ComAtprotoAdminDefs.ActionView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/getModerationReport.ts b/src/lexicon/types/com/atproto/admin/getModerationReport.ts deleted file mode 100644 index 28d71445..00000000 --- a/src/lexicon/types/com/atproto/admin/getModerationReport.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams { - id: number -} - -export type InputSchema = undefined -export type OutputSchema = ComAtprotoAdminDefs.ReportViewDetail -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/getModerationReports.ts b/src/lexicon/types/com/atproto/admin/getModerationReports.ts deleted file mode 100644 index d50af44c..00000000 --- a/src/lexicon/types/com/atproto/admin/getModerationReports.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams { - subject?: string - ignoreSubjects?: string[] - /** Get all reports that were actioned by a specific moderator */ - actionedBy?: string - /** Filter reports made by one or more DIDs */ - reporters?: string[] - resolved?: boolean - actionType?: - | 'com.atproto.admin.defs#takedown' - | 'com.atproto.admin.defs#flag' - | 'com.atproto.admin.defs#acknowledge' - | 'com.atproto.admin.defs#escalate' - | (string & {}) - limit: number - cursor?: string - /** Reverse the order of the returned records? when true, returns reports in chronological order */ - reverse?: boolean -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - reports: ComAtprotoAdminDefs.ReportView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/getRecord.ts b/src/lexicon/types/com/atproto/admin/getRecord.ts deleted file mode 100644 index 48222d9d..00000000 --- a/src/lexicon/types/com/atproto/admin/getRecord.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams { - uri: string - cid?: string -} - -export type InputSchema = undefined -export type OutputSchema = ComAtprotoAdminDefs.RecordViewDetail -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'RecordNotFound' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/getRepo.ts b/src/lexicon/types/com/atproto/admin/getRepo.ts deleted file mode 100644 index 19911baa..00000000 --- a/src/lexicon/types/com/atproto/admin/getRepo.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams { - did: string -} - -export type InputSchema = undefined -export type OutputSchema = ComAtprotoAdminDefs.RepoViewDetail -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'RepoNotFound' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/resolveModerationReports.ts b/src/lexicon/types/com/atproto/admin/resolveModerationReports.ts deleted file mode 100644 index e3f4d028..00000000 --- a/src/lexicon/types/com/atproto/admin/resolveModerationReports.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams {} - -export interface InputSchema { - actionId: number - reportIds: number[] - createdBy: string - [k: string]: unknown -} - -export type OutputSchema = ComAtprotoAdminDefs.ActionView - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/reverseModerationAction.ts b/src/lexicon/types/com/atproto/admin/reverseModerationAction.ts deleted file mode 100644 index 17dcb508..00000000 --- a/src/lexicon/types/com/atproto/admin/reverseModerationAction.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams {} - -export interface InputSchema { - id: number - reason: string - createdBy: string - [k: string]: unknown -} - -export type OutputSchema = ComAtprotoAdminDefs.ActionView - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/searchRepos.ts b/src/lexicon/types/com/atproto/admin/searchRepos.ts deleted file mode 100644 index 32266fd6..00000000 --- a/src/lexicon/types/com/atproto/admin/searchRepos.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' - -export interface QueryParams { - /** DEPRECATED: use 'q' instead */ - term?: string - q?: string - invitedBy?: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - repos: ComAtprotoAdminDefs.RepoView[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/sendEmail.ts b/src/lexicon/types/com/atproto/admin/sendEmail.ts deleted file mode 100644 index 87e7ceec..00000000 --- a/src/lexicon/types/com/atproto/admin/sendEmail.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - recipientDid: string - content: string - subject?: string - [k: string]: unknown -} - -export interface OutputSchema { - sent: boolean - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/takeModerationAction.ts b/src/lexicon/types/com/atproto/admin/takeModerationAction.ts deleted file mode 100644 index fbbf14df..00000000 --- a/src/lexicon/types/com/atproto/admin/takeModerationAction.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoAdminDefs from './defs' -import * as ComAtprotoRepoStrongRef from '../repo/strongRef' - -export interface QueryParams {} - -export interface InputSchema { - action: - | 'com.atproto.admin.defs#takedown' - | 'com.atproto.admin.defs#flag' - | 'com.atproto.admin.defs#acknowledge' - | (string & {}) - subject: - | ComAtprotoAdminDefs.RepoRef - | ComAtprotoRepoStrongRef.Main - | { $type: string; [k: string]: unknown } - subjectBlobCids?: string[] - createLabelVals?: string[] - negateLabelVals?: string[] - reason: string - /** Indicates how long this action was meant to be in effect before automatically expiring. */ - durationInHours?: number - createdBy: string - [k: string]: unknown -} - -export type OutputSchema = ComAtprotoAdminDefs.ActionView - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'SubjectHasAction' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/updateAccountEmail.ts b/src/lexicon/types/com/atproto/admin/updateAccountEmail.ts deleted file mode 100644 index 9e614025..00000000 --- a/src/lexicon/types/com/atproto/admin/updateAccountEmail.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - /** The handle or DID of the repo. */ - account: string - email: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/admin/updateAccountHandle.ts b/src/lexicon/types/com/atproto/admin/updateAccountHandle.ts deleted file mode 100644 index c378f421..00000000 --- a/src/lexicon/types/com/atproto/admin/updateAccountHandle.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - did: string - handle: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/identity/resolveHandle.ts b/src/lexicon/types/com/atproto/identity/resolveHandle.ts deleted file mode 100644 index ef90e99b..00000000 --- a/src/lexicon/types/com/atproto/identity/resolveHandle.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The handle to resolve. */ - handle: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - did: string - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/identity/updateHandle.ts b/src/lexicon/types/com/atproto/identity/updateHandle.ts deleted file mode 100644 index 1f639c34..00000000 --- a/src/lexicon/types/com/atproto/identity/updateHandle.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - handle: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/label/defs.ts b/src/lexicon/types/com/atproto/label/defs.ts deleted file mode 100644 index a01ad78e..00000000 --- a/src/lexicon/types/com/atproto/label/defs.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -/** Metadata tag on an atproto resource (eg, repo or record) */ -export interface Label { - /** DID of the actor who created this label */ - src: string - /** AT URI of the record, repository (account), or other resource which this label applies to */ - uri: string - /** optionally, CID specifying the specific version of 'uri' resource this label applies to */ - cid?: string - /** the short string name of the value or type of this label */ - val: string - /** if true, this is a negation label, overwriting a previous label */ - neg?: boolean - /** timestamp when this label was created */ - cts: string - [k: string]: unknown -} - -export function isLabel(v: unknown): v is Label { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.label.defs#label' - ) -} - -export function validateLabel(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.label.defs#label', v) -} - -/** Metadata tags on an atproto record, published by the author within the record. */ -export interface SelfLabels { - values: SelfLabel[] - [k: string]: unknown -} - -export function isSelfLabels(v: unknown): v is SelfLabels { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.label.defs#selfLabels' - ) -} - -export function validateSelfLabels(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.label.defs#selfLabels', v) -} - -/** Metadata tag on an atproto record, published by the author within the record. Note -- schemas should use #selfLabels, not #selfLabel. */ -export interface SelfLabel { - /** the short string name of the value or type of this label */ - val: string - [k: string]: unknown -} - -export function isSelfLabel(v: unknown): v is SelfLabel { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.label.defs#selfLabel' - ) -} - -export function validateSelfLabel(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.label.defs#selfLabel', v) -} diff --git a/src/lexicon/types/com/atproto/label/queryLabels.ts b/src/lexicon/types/com/atproto/label/queryLabels.ts deleted file mode 100644 index 72cf5c52..00000000 --- a/src/lexicon/types/com/atproto/label/queryLabels.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoLabelDefs from './defs' - -export interface QueryParams { - /** List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI */ - uriPatterns: string[] - /** Optional list of label sources (DIDs) to filter on */ - sources?: string[] - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - labels: ComAtprotoLabelDefs.Label[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/label/subscribeLabels.ts b/src/lexicon/types/com/atproto/label/subscribeLabels.ts deleted file mode 100644 index 9d4b4441..00000000 --- a/src/lexicon/types/com/atproto/label/subscribeLabels.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth, ErrorFrame } from '@atproto/xrpc-server' -import { IncomingMessage } from 'http' -import * as ComAtprotoLabelDefs from './defs' - -export interface QueryParams { - /** The last known event to backfill from. */ - cursor?: number -} - -export type OutputSchema = - | Labels - | Info - | { $type: string; [k: string]: unknown } -export type HandlerError = ErrorFrame<'FutureCursor'> -export type HandlerOutput = HandlerError | OutputSchema -export type HandlerReqCtx = { - auth: HA - params: QueryParams - req: IncomingMessage - signal: AbortSignal -} -export type Handler = ( - ctx: HandlerReqCtx, -) => AsyncIterable - -export interface Labels { - seq: number - labels: ComAtprotoLabelDefs.Label[] - [k: string]: unknown -} - -export function isLabels(v: unknown): v is Labels { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.label.subscribeLabels#labels' - ) -} - -export function validateLabels(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.label.subscribeLabels#labels', v) -} - -export interface Info { - name: 'OutdatedCursor' | (string & {}) - message?: string - [k: string]: unknown -} - -export function isInfo(v: unknown): v is Info { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.label.subscribeLabels#info' - ) -} - -export function validateInfo(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.label.subscribeLabels#info', v) -} diff --git a/src/lexicon/types/com/atproto/moderation/createReport.ts b/src/lexicon/types/com/atproto/moderation/createReport.ts deleted file mode 100644 index 96aaf4a9..00000000 --- a/src/lexicon/types/com/atproto/moderation/createReport.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoModerationDefs from './defs' -import * as ComAtprotoAdminDefs from '../admin/defs' -import * as ComAtprotoRepoStrongRef from '../repo/strongRef' - -export interface QueryParams {} - -export interface InputSchema { - reasonType: ComAtprotoModerationDefs.ReasonType - reason?: string - subject: - | ComAtprotoAdminDefs.RepoRef - | ComAtprotoRepoStrongRef.Main - | { $type: string; [k: string]: unknown } - [k: string]: unknown -} - -export interface OutputSchema { - id: number - reasonType: ComAtprotoModerationDefs.ReasonType - reason?: string - subject: - | ComAtprotoAdminDefs.RepoRef - | ComAtprotoRepoStrongRef.Main - | { $type: string; [k: string]: unknown } - reportedBy: string - createdAt: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/moderation/defs.ts b/src/lexicon/types/com/atproto/moderation/defs.ts deleted file mode 100644 index 81697226..00000000 --- a/src/lexicon/types/com/atproto/moderation/defs.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export type ReasonType = - | 'com.atproto.moderation.defs#reasonSpam' - | 'com.atproto.moderation.defs#reasonViolation' - | 'com.atproto.moderation.defs#reasonMisleading' - | 'com.atproto.moderation.defs#reasonSexual' - | 'com.atproto.moderation.defs#reasonRude' - | 'com.atproto.moderation.defs#reasonOther' - | (string & {}) - -/** Spam: frequent unwanted promotion, replies, mentions */ -export const REASONSPAM = 'com.atproto.moderation.defs#reasonSpam' -/** Direct violation of server rules, laws, terms of service */ -export const REASONVIOLATION = 'com.atproto.moderation.defs#reasonViolation' -/** Misleading identity, affiliation, or content */ -export const REASONMISLEADING = 'com.atproto.moderation.defs#reasonMisleading' -/** Unwanted or mislabeled sexual content */ -export const REASONSEXUAL = 'com.atproto.moderation.defs#reasonSexual' -/** Rude, harassing, explicit, or otherwise unwelcoming behavior */ -export const REASONRUDE = 'com.atproto.moderation.defs#reasonRude' -/** Other: reports not falling under another report category */ -export const REASONOTHER = 'com.atproto.moderation.defs#reasonOther' diff --git a/src/lexicon/types/com/atproto/repo/applyWrites.ts b/src/lexicon/types/com/atproto/repo/applyWrites.ts deleted file mode 100644 index 53f2972e..00000000 --- a/src/lexicon/types/com/atproto/repo/applyWrites.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - /** The handle or DID of the repo. */ - repo: string - /** Validate the records? */ - validate: boolean - writes: (Create | Update | Delete)[] - swapCommit?: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string - error?: 'InvalidSwap' -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -/** Create a new record. */ -export interface Create { - collection: string - rkey?: string - value: {} - [k: string]: unknown -} - -export function isCreate(v: unknown): v is Create { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.repo.applyWrites#create' - ) -} - -export function validateCreate(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.repo.applyWrites#create', v) -} - -/** Update an existing record. */ -export interface Update { - collection: string - rkey: string - value: {} - [k: string]: unknown -} - -export function isUpdate(v: unknown): v is Update { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.repo.applyWrites#update' - ) -} - -export function validateUpdate(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.repo.applyWrites#update', v) -} - -/** Delete an existing record. */ -export interface Delete { - collection: string - rkey: string - [k: string]: unknown -} - -export function isDelete(v: unknown): v is Delete { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.repo.applyWrites#delete' - ) -} - -export function validateDelete(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.repo.applyWrites#delete', v) -} diff --git a/src/lexicon/types/com/atproto/repo/createRecord.ts b/src/lexicon/types/com/atproto/repo/createRecord.ts deleted file mode 100644 index e069f8ca..00000000 --- a/src/lexicon/types/com/atproto/repo/createRecord.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - /** The handle or DID of the repo. */ - repo: string - /** The NSID of the record collection. */ - collection: string - /** The key of the record. */ - rkey?: string - /** Validate the record? */ - validate: boolean - /** The record to create. */ - record: {} - /** Compare and swap with the previous commit by cid. */ - swapCommit?: string - [k: string]: unknown -} - -export interface OutputSchema { - uri: string - cid: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'InvalidSwap' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/repo/deleteRecord.ts b/src/lexicon/types/com/atproto/repo/deleteRecord.ts deleted file mode 100644 index 5ee016cb..00000000 --- a/src/lexicon/types/com/atproto/repo/deleteRecord.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - /** The handle or DID of the repo. */ - repo: string - /** The NSID of the record collection. */ - collection: string - /** The key of the record. */ - rkey: string - /** Compare and swap with the previous record by cid. */ - swapRecord?: string - /** Compare and swap with the previous commit by cid. */ - swapCommit?: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string - error?: 'InvalidSwap' -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/repo/describeRepo.ts b/src/lexicon/types/com/atproto/repo/describeRepo.ts deleted file mode 100644 index 7b8a2b99..00000000 --- a/src/lexicon/types/com/atproto/repo/describeRepo.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The handle or DID of the repo. */ - repo: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - handle: string - did: string - didDoc: {} - collections: string[] - handleIsCorrect: boolean - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/repo/getRecord.ts b/src/lexicon/types/com/atproto/repo/getRecord.ts deleted file mode 100644 index 35c9b4b7..00000000 --- a/src/lexicon/types/com/atproto/repo/getRecord.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The handle or DID of the repo. */ - repo: string - /** The NSID of the record collection. */ - collection: string - /** The key of the record. */ - rkey: string - /** The CID of the version of the record. If not specified, then return the most recent version. */ - cid?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - uri: string - cid?: string - value: {} - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/repo/listRecords.ts b/src/lexicon/types/com/atproto/repo/listRecords.ts deleted file mode 100644 index e58d9714..00000000 --- a/src/lexicon/types/com/atproto/repo/listRecords.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The handle or DID of the repo. */ - repo: string - /** The NSID of the record type. */ - collection: string - /** The number of records to return. */ - limit: number - cursor?: string - /** DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) */ - rkeyStart?: string - /** DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) */ - rkeyEnd?: string - /** Reverse the order of the returned records? */ - reverse?: boolean -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - records: Record[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface Record { - uri: string - cid: string - value: {} - [k: string]: unknown -} - -export function isRecord(v: unknown): v is Record { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.repo.listRecords#record' - ) -} - -export function validateRecord(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.repo.listRecords#record', v) -} diff --git a/src/lexicon/types/com/atproto/repo/putRecord.ts b/src/lexicon/types/com/atproto/repo/putRecord.ts deleted file mode 100644 index 364eb59f..00000000 --- a/src/lexicon/types/com/atproto/repo/putRecord.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - /** The handle or DID of the repo. */ - repo: string - /** The NSID of the record collection. */ - collection: string - /** The key of the record. */ - rkey: string - /** Validate the record? */ - validate: boolean - /** The record to write. */ - record: {} - /** Compare and swap with the previous record by cid. */ - swapRecord?: string | null - /** Compare and swap with the previous commit by cid. */ - swapCommit?: string - [k: string]: unknown -} - -export interface OutputSchema { - uri: string - cid: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'InvalidSwap' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/repo/strongRef.ts b/src/lexicon/types/com/atproto/repo/strongRef.ts deleted file mode 100644 index 8b21a6dd..00000000 --- a/src/lexicon/types/com/atproto/repo/strongRef.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface Main { - uri: string - cid: string - [k: string]: unknown -} - -export function isMain(v: unknown): v is Main { - return ( - isObj(v) && - hasProp(v, '$type') && - (v.$type === 'com.atproto.repo.strongRef#main' || - v.$type === 'com.atproto.repo.strongRef') - ) -} - -export function validateMain(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.repo.strongRef#main', v) -} diff --git a/src/lexicon/types/com/atproto/repo/uploadBlob.ts b/src/lexicon/types/com/atproto/repo/uploadBlob.ts deleted file mode 100644 index ad6002df..00000000 --- a/src/lexicon/types/com/atproto/repo/uploadBlob.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import stream from 'stream' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export type InputSchema = string | Uint8Array - -export interface OutputSchema { - blob: BlobRef - [k: string]: unknown -} - -export interface HandlerInput { - encoding: '*/*' - body: stream.Readable -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/createAccount.ts b/src/lexicon/types/com/atproto/server/createAccount.ts deleted file mode 100644 index c67e7445..00000000 --- a/src/lexicon/types/com/atproto/server/createAccount.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - email: string - handle: string - did?: string - inviteCode?: string - password: string - recoveryKey?: string - [k: string]: unknown -} - -export interface OutputSchema { - accessJwt: string - refreshJwt: string - handle: string - did: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: - | 'InvalidHandle' - | 'InvalidPassword' - | 'InvalidInviteCode' - | 'HandleNotAvailable' - | 'UnsupportedDomain' - | 'UnresolvableDid' - | 'IncompatibleDidDoc' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/createAppPassword.ts b/src/lexicon/types/com/atproto/server/createAppPassword.ts deleted file mode 100644 index 8e4a0a51..00000000 --- a/src/lexicon/types/com/atproto/server/createAppPassword.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - name: string - [k: string]: unknown -} - -export type OutputSchema = AppPassword - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'AccountTakedown' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface AppPassword { - name: string - password: string - createdAt: string - [k: string]: unknown -} - -export function isAppPassword(v: unknown): v is AppPassword { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.server.createAppPassword#appPassword' - ) -} - -export function validateAppPassword(v: unknown): ValidationResult { - return lexicons.validate( - 'com.atproto.server.createAppPassword#appPassword', - v, - ) -} diff --git a/src/lexicon/types/com/atproto/server/createInviteCode.ts b/src/lexicon/types/com/atproto/server/createInviteCode.ts deleted file mode 100644 index acfac56b..00000000 --- a/src/lexicon/types/com/atproto/server/createInviteCode.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - useCount: number - forAccount?: string - [k: string]: unknown -} - -export interface OutputSchema { - code: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/createInviteCodes.ts b/src/lexicon/types/com/atproto/server/createInviteCodes.ts deleted file mode 100644 index 5887d77f..00000000 --- a/src/lexicon/types/com/atproto/server/createInviteCodes.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - codeCount: number - useCount: number - forAccounts?: string[] - [k: string]: unknown -} - -export interface OutputSchema { - codes: AccountCodes[] - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface AccountCodes { - account: string - codes: string[] - [k: string]: unknown -} - -export function isAccountCodes(v: unknown): v is AccountCodes { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.server.createInviteCodes#accountCodes' - ) -} - -export function validateAccountCodes(v: unknown): ValidationResult { - return lexicons.validate( - 'com.atproto.server.createInviteCodes#accountCodes', - v, - ) -} diff --git a/src/lexicon/types/com/atproto/server/createSession.ts b/src/lexicon/types/com/atproto/server/createSession.ts deleted file mode 100644 index b836551f..00000000 --- a/src/lexicon/types/com/atproto/server/createSession.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - /** Handle or other identifier supported by the server for the authenticating user. */ - identifier: string - password: string - [k: string]: unknown -} - -export interface OutputSchema { - accessJwt: string - refreshJwt: string - handle: string - did: string - email?: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'AccountTakedown' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/defs.ts b/src/lexicon/types/com/atproto/server/defs.ts deleted file mode 100644 index 9bd67c9d..00000000 --- a/src/lexicon/types/com/atproto/server/defs.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' - -export interface InviteCode { - code: string - available: number - disabled: boolean - forAccount: string - createdBy: string - createdAt: string - uses: InviteCodeUse[] - [k: string]: unknown -} - -export function isInviteCode(v: unknown): v is InviteCode { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.server.defs#inviteCode' - ) -} - -export function validateInviteCode(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.server.defs#inviteCode', v) -} - -export interface InviteCodeUse { - usedBy: string - usedAt: string - [k: string]: unknown -} - -export function isInviteCodeUse(v: unknown): v is InviteCodeUse { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.server.defs#inviteCodeUse' - ) -} - -export function validateInviteCodeUse(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.server.defs#inviteCodeUse', v) -} diff --git a/src/lexicon/types/com/atproto/server/deleteAccount.ts b/src/lexicon/types/com/atproto/server/deleteAccount.ts deleted file mode 100644 index 37ddbba1..00000000 --- a/src/lexicon/types/com/atproto/server/deleteAccount.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - did: string - password: string - token: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string - error?: 'ExpiredToken' | 'InvalidToken' -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/deleteSession.ts b/src/lexicon/types/com/atproto/server/deleteSession.ts deleted file mode 100644 index e4244870..00000000 --- a/src/lexicon/types/com/atproto/server/deleteSession.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export type InputSchema = undefined -export type HandlerInput = undefined - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/describeServer.ts b/src/lexicon/types/com/atproto/server/describeServer.ts deleted file mode 100644 index bc73d541..00000000 --- a/src/lexicon/types/com/atproto/server/describeServer.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export type InputSchema = undefined - -export interface OutputSchema { - inviteCodeRequired?: boolean - availableUserDomains: string[] - links?: Links - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface Links { - privacyPolicy?: string - termsOfService?: string - [k: string]: unknown -} - -export function isLinks(v: unknown): v is Links { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.server.describeServer#links' - ) -} - -export function validateLinks(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.server.describeServer#links', v) -} diff --git a/src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts b/src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts deleted file mode 100644 index e387a5e3..00000000 --- a/src/lexicon/types/com/atproto/server/getAccountInviteCodes.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' -import * as ComAtprotoServerDefs from './defs' - -export interface QueryParams { - includeUsed: boolean - createAvailable: boolean -} - -export type InputSchema = undefined - -export interface OutputSchema { - codes: ComAtprotoServerDefs.InviteCode[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'DuplicateCreate' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/getSession.ts b/src/lexicon/types/com/atproto/server/getSession.ts deleted file mode 100644 index 388fb5ea..00000000 --- a/src/lexicon/types/com/atproto/server/getSession.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export type InputSchema = undefined - -export interface OutputSchema { - handle: string - did: string - email?: string - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/listAppPasswords.ts b/src/lexicon/types/com/atproto/server/listAppPasswords.ts deleted file mode 100644 index ebd74da9..00000000 --- a/src/lexicon/types/com/atproto/server/listAppPasswords.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export type InputSchema = undefined - -export interface OutputSchema { - passwords: AppPassword[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'AccountTakedown' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface AppPassword { - name: string - createdAt: string - [k: string]: unknown -} - -export function isAppPassword(v: unknown): v is AppPassword { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.server.listAppPasswords#appPassword' - ) -} - -export function validateAppPassword(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.server.listAppPasswords#appPassword', v) -} diff --git a/src/lexicon/types/com/atproto/server/refreshSession.ts b/src/lexicon/types/com/atproto/server/refreshSession.ts deleted file mode 100644 index e47bf09f..00000000 --- a/src/lexicon/types/com/atproto/server/refreshSession.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export type InputSchema = undefined - -export interface OutputSchema { - accessJwt: string - refreshJwt: string - handle: string - did: string - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'AccountTakedown' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/requestAccountDelete.ts b/src/lexicon/types/com/atproto/server/requestAccountDelete.ts deleted file mode 100644 index e4244870..00000000 --- a/src/lexicon/types/com/atproto/server/requestAccountDelete.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export type InputSchema = undefined -export type HandlerInput = undefined - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/requestPasswordReset.ts b/src/lexicon/types/com/atproto/server/requestPasswordReset.ts deleted file mode 100644 index 47fb4bb6..00000000 --- a/src/lexicon/types/com/atproto/server/requestPasswordReset.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - email: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/resetPassword.ts b/src/lexicon/types/com/atproto/server/resetPassword.ts deleted file mode 100644 index 9e6ece3e..00000000 --- a/src/lexicon/types/com/atproto/server/resetPassword.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - token: string - password: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string - error?: 'ExpiredToken' | 'InvalidToken' -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/server/revokeAppPassword.ts b/src/lexicon/types/com/atproto/server/revokeAppPassword.ts deleted file mode 100644 index 4627f68e..00000000 --- a/src/lexicon/types/com/atproto/server/revokeAppPassword.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - name: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/getBlob.ts b/src/lexicon/types/com/atproto/sync/getBlob.ts deleted file mode 100644 index 60750902..00000000 --- a/src/lexicon/types/com/atproto/sync/getBlob.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import stream from 'stream' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The DID of the repo. */ - did: string - /** The CID of the blob to fetch */ - cid: string -} - -export type InputSchema = undefined -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: '*/*' - body: Uint8Array | stream.Readable - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/getBlocks.ts b/src/lexicon/types/com/atproto/sync/getBlocks.ts deleted file mode 100644 index e73410ef..00000000 --- a/src/lexicon/types/com/atproto/sync/getBlocks.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import stream from 'stream' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The DID of the repo. */ - did: string - cids: string[] -} - -export type InputSchema = undefined -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/vnd.ipld.car' - body: Uint8Array | stream.Readable - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/getCheckout.ts b/src/lexicon/types/com/atproto/sync/getCheckout.ts deleted file mode 100644 index 63a657e5..00000000 --- a/src/lexicon/types/com/atproto/sync/getCheckout.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import stream from 'stream' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The DID of the repo. */ - did: string -} - -export type InputSchema = undefined -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/vnd.ipld.car' - body: Uint8Array | stream.Readable - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/getHead.ts b/src/lexicon/types/com/atproto/sync/getHead.ts deleted file mode 100644 index 586ae1a4..00000000 --- a/src/lexicon/types/com/atproto/sync/getHead.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The DID of the repo. */ - did: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - root: string - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'HeadNotFound' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/getLatestCommit.ts b/src/lexicon/types/com/atproto/sync/getLatestCommit.ts deleted file mode 100644 index 9b91e878..00000000 --- a/src/lexicon/types/com/atproto/sync/getLatestCommit.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The DID of the repo. */ - did: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cid: string - rev: string - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string - error?: 'RepoNotFound' -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/getRecord.ts b/src/lexicon/types/com/atproto/sync/getRecord.ts deleted file mode 100644 index 297f0ac7..00000000 --- a/src/lexicon/types/com/atproto/sync/getRecord.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import stream from 'stream' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The DID of the repo. */ - did: string - collection: string - rkey: string - /** An optional past commit CID. */ - commit?: string -} - -export type InputSchema = undefined -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/vnd.ipld.car' - body: Uint8Array | stream.Readable - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/getRepo.ts b/src/lexicon/types/com/atproto/sync/getRepo.ts deleted file mode 100644 index 495d31a1..00000000 --- a/src/lexicon/types/com/atproto/sync/getRepo.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import stream from 'stream' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The DID of the repo. */ - did: string - /** The revision of the repo to catch up from. */ - since?: string -} - -export type InputSchema = undefined -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/vnd.ipld.car' - body: Uint8Array | stream.Readable - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/listBlobs.ts b/src/lexicon/types/com/atproto/sync/listBlobs.ts deleted file mode 100644 index 936b08a6..00000000 --- a/src/lexicon/types/com/atproto/sync/listBlobs.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - /** The DID of the repo. */ - did: string - /** Optional revision of the repo to list blobs since */ - since?: string - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - cids: string[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/listRepos.ts b/src/lexicon/types/com/atproto/sync/listRepos.ts deleted file mode 100644 index afbc9df8..00000000 --- a/src/lexicon/types/com/atproto/sync/listRepos.ts +++ /dev/null @@ -1,65 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams { - limit: number - cursor?: string -} - -export type InputSchema = undefined - -export interface OutputSchema { - cursor?: string - repos: Repo[] - [k: string]: unknown -} - -export type HandlerInput = undefined - -export interface HandlerSuccess { - encoding: 'application/json' - body: OutputSchema - headers?: { [key: string]: string } -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | HandlerSuccess -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput - -export interface Repo { - did: string - head: string - [k: string]: unknown -} - -export function isRepo(v: unknown): v is Repo { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.sync.listRepos#repo' - ) -} - -export function validateRepo(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.sync.listRepos#repo', v) -} diff --git a/src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts b/src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts deleted file mode 100644 index 3d310c11..00000000 --- a/src/lexicon/types/com/atproto/sync/notifyOfUpdate.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - /** Hostname of the service that is notifying of update. */ - hostname: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/requestCrawl.ts b/src/lexicon/types/com/atproto/sync/requestCrawl.ts deleted file mode 100644 index 87ef20d7..00000000 --- a/src/lexicon/types/com/atproto/sync/requestCrawl.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import express from 'express' -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth } from '@atproto/xrpc-server' - -export interface QueryParams {} - -export interface InputSchema { - /** Hostname of the service that is requesting to be crawled. */ - hostname: string - [k: string]: unknown -} - -export interface HandlerInput { - encoding: 'application/json' - body: InputSchema -} - -export interface HandlerError { - status: number - message?: string -} - -export type HandlerOutput = HandlerError | void -export type HandlerReqCtx = { - auth: HA - params: QueryParams - input: HandlerInput - req: express.Request - res: express.Response -} -export type Handler = ( - ctx: HandlerReqCtx, -) => Promise | HandlerOutput diff --git a/src/lexicon/types/com/atproto/sync/subscribeRepos.ts b/src/lexicon/types/com/atproto/sync/subscribeRepos.ts deleted file mode 100644 index ae9cf01f..00000000 --- a/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +++ /dev/null @@ -1,161 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -import { ValidationResult, BlobRef } from '@atproto/lexicon' -import { lexicons } from '../../../../lexicons' -import { isObj, hasProp } from '../../../../util' -import { CID } from 'multiformats/cid' -import { HandlerAuth, ErrorFrame } from '@atproto/xrpc-server' -import { IncomingMessage } from 'http' - -export interface QueryParams { - /** The last known event to backfill from. */ - cursor?: number -} - -export type OutputSchema = - | Commit - | Handle - | Migrate - | Tombstone - | Info - | { $type: string; [k: string]: unknown } -export type HandlerError = ErrorFrame<'FutureCursor' | 'ConsumerTooSlow'> -export type HandlerOutput = HandlerError | OutputSchema -export type HandlerReqCtx = { - auth: HA - params: QueryParams - req: IncomingMessage - signal: AbortSignal -} -export type Handler = ( - ctx: HandlerReqCtx, -) => AsyncIterable - -export interface Commit { - seq: number - rebase: boolean - tooBig: boolean - repo: string - commit: CID - prev?: CID | null - /** The rev of the emitted commit */ - rev: string - /** The rev of the last emitted commit from this repo */ - since: string | null - /** CAR file containing relevant blocks */ - blocks: Uint8Array - ops: RepoOp[] - blobs: CID[] - time: string - [k: string]: unknown -} - -export function isCommit(v: unknown): v is Commit { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.sync.subscribeRepos#commit' - ) -} - -export function validateCommit(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.sync.subscribeRepos#commit', v) -} - -export interface Handle { - seq: number - did: string - handle: string - time: string - [k: string]: unknown -} - -export function isHandle(v: unknown): v is Handle { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.sync.subscribeRepos#handle' - ) -} - -export function validateHandle(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.sync.subscribeRepos#handle', v) -} - -export interface Migrate { - seq: number - did: string - migrateTo: string | null - time: string - [k: string]: unknown -} - -export function isMigrate(v: unknown): v is Migrate { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.sync.subscribeRepos#migrate' - ) -} - -export function validateMigrate(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.sync.subscribeRepos#migrate', v) -} - -export interface Tombstone { - seq: number - did: string - time: string - [k: string]: unknown -} - -export function isTombstone(v: unknown): v is Tombstone { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.sync.subscribeRepos#tombstone' - ) -} - -export function validateTombstone(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.sync.subscribeRepos#tombstone', v) -} - -export interface Info { - name: 'OutdatedCursor' | (string & {}) - message?: string - [k: string]: unknown -} - -export function isInfo(v: unknown): v is Info { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.sync.subscribeRepos#info' - ) -} - -export function validateInfo(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.sync.subscribeRepos#info', v) -} - -/** A repo operation, ie a write of a single record. For creates and updates, cid is the record's CID as of this operation. For deletes, it's null. */ -export interface RepoOp { - action: 'create' | 'update' | 'delete' | (string & {}) - path: string - cid: CID | null - [k: string]: unknown -} - -export function isRepoOp(v: unknown): v is RepoOp { - return ( - isObj(v) && - hasProp(v, '$type') && - v.$type === 'com.atproto.sync.subscribeRepos#repoOp' - ) -} - -export function validateRepoOp(v: unknown): ValidationResult { - return lexicons.validate('com.atproto.sync.subscribeRepos#repoOp', v) -} diff --git a/src/lexicon/util.ts b/src/lexicon/util.ts deleted file mode 100644 index d7e70440..00000000 --- a/src/lexicon/util.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * GENERATED CODE - DO NOT MODIFY - */ -export function isObj(v: unknown): v is Record { - return typeof v === 'object' && v !== null -} - -export function hasProp( - data: object, - prop: K, -): data is Record { - return prop in data -} diff --git a/src/methods/describe-generator.ts b/src/methods/describe-generator.ts index 70d7e823..a5296ec7 100644 --- a/src/methods/describe-generator.ts +++ b/src/methods/describe-generator.ts @@ -1,7 +1,7 @@ -import { Server } from '../lexicon' import { AppContext } from '../config' import algos from '../algos' import { AtUri } from '@atproto/syntax' +import { Server } from '@atproto/bsky/src/lexicon' export default function (server: Server, ctx: AppContext) { server.app.bsky.feed.describeFeedGenerator(async () => { diff --git a/src/methods/feed-generation.ts b/src/methods/feed-generation.ts index 0f4989ec..ab25d87a 100644 --- a/src/methods/feed-generation.ts +++ b/src/methods/feed-generation.ts @@ -1,5 +1,5 @@ import { InvalidRequestError } from '@atproto/xrpc-server' -import { Server } from '../lexicon' +import { Server } from '@atproto/bsky/src/lexicon' import { AppContext } from '../config' import algos from '../algos' import { validateAuth } from '../auth' diff --git a/src/server.ts b/src/server.ts index c6967490..88fe96bf 100644 --- a/src/server.ts +++ b/src/server.ts @@ -2,7 +2,7 @@ import http from 'http' import events from 'events' import express from 'express' import { DidResolver, MemoryCache } from '@atproto/identity' -import { createServer } from './lexicon' +import { createServer } from '@atproto/bsky/src/lexicon' import feedGeneration from './methods/feed-generation' import describeGenerator from './methods/describe-generator' import { createDb, Database, migrateToLatest } from './db' diff --git a/src/subscription.ts b/src/subscription.ts index b3a141e8..0344d5ce 100644 --- a/src/subscription.ts +++ b/src/subscription.ts @@ -1,12 +1,9 @@ -import { - OutputSchema as RepoEvent, - isCommit, -} from './lexicon/types/com/atproto/sync/subscribeRepos' import { FirehoseSubscriptionBase, getOpsByType } from './util/subscription' +import { ComAtprotoSyncSubscribeRepos } from '@atproto/api' export class FirehoseSubscription extends FirehoseSubscriptionBase { - async handleEvent(evt: RepoEvent) { - if (!isCommit(evt)) return + async handleEvent(evt: ComAtprotoSyncSubscribeRepos.Commit) { + if (!ComAtprotoSyncSubscribeRepos.isCommit(evt)) return const ops = await getOpsByType(evt) // This logs the text of every post off the firehose. diff --git a/src/util/subscription.ts b/src/util/subscription.ts index 87ab1162..7236a66c 100644 --- a/src/util/subscription.ts +++ b/src/util/subscription.ts @@ -1,20 +1,16 @@ import { Subscription } from '@atproto/xrpc-server' import { cborToLexRecord, readCar } from '@atproto/repo' import { BlobRef } from '@atproto/lexicon' -import { ids, lexicons } from '../lexicon/lexicons' -import { Record as PostRecord } from '../lexicon/types/app/bsky/feed/post' -import { Record as RepostRecord } from '../lexicon/types/app/bsky/feed/repost' -import { Record as LikeRecord } from '../lexicon/types/app/bsky/feed/like' -import { Record as FollowRecord } from '../lexicon/types/app/bsky/graph/follow' -import { - Commit, - OutputSchema as RepoEvent, - isCommit, -} from '../lexicon/types/com/atproto/sync/subscribeRepos' +import { ids, lexicons } from '@atproto/bsky/src/lexicon/lexicons' +import { AppBskyFeedPost } from '@atproto/api' +import { AppBskyFeedRepost } from '@atproto/api' +import { AppBskyFeedLike } from '@atproto/api' +import { AppBskyGraphFollow } from '@atproto/api' +import { ComAtprotoSyncSubscribeRepos } from '@atproto/api' import { Database } from '../db' export abstract class FirehoseSubscriptionBase { - public sub: Subscription + public sub: Subscription constructor(public db: Database, public service: string) { this.sub = new Subscription({ @@ -23,7 +19,7 @@ export abstract class FirehoseSubscriptionBase { getParams: () => this.getCursor(), validate: (value: unknown) => { try { - return lexicons.assertValidXrpcMessage( + return lexicons.assertValidXrpcMessage( ids.ComAtprotoSyncSubscribeRepos, value, ) @@ -34,7 +30,7 @@ export abstract class FirehoseSubscriptionBase { }) } - abstract handleEvent(evt: RepoEvent): Promise + abstract handleEvent(evt: ComAtprotoSyncSubscribeRepos.Commit): Promise async run(subscriptionReconnectDelay: number) { try { @@ -45,13 +41,16 @@ export abstract class FirehoseSubscriptionBase { console.error('repo subscription could not handle message', err) } // update stored cursor every 20 events or so - if (isCommit(evt) && evt.seq % 20 === 0) { + if (ComAtprotoSyncSubscribeRepos.isCommit(evt) && evt.seq % 20 === 0) { await this.updateCursor(evt.seq) } } } catch (err) { console.error('repo subscription errored', err) - setTimeout(() => this.run(subscriptionReconnectDelay), subscriptionReconnectDelay) + setTimeout( + () => this.run(subscriptionReconnectDelay), + subscriptionReconnectDelay, + ) } } @@ -73,7 +72,9 @@ export abstract class FirehoseSubscriptionBase { } } -export const getOpsByType = async (evt: Commit): Promise => { +export const getOpsByType = async ( + evt: ComAtprotoSyncSubscribeRepos.Commit, +): Promise => { const car = await readCar(evt.blocks) const opsByType: OperationsByType = { posts: { creates: [], deletes: [] }, @@ -122,10 +123,10 @@ export const getOpsByType = async (evt: Commit): Promise => { } type OperationsByType = { - posts: Operations - reposts: Operations - likes: Operations - follows: Operations + posts: Operations + reposts: Operations + likes: Operations + follows: Operations } type Operations> = { @@ -144,19 +145,19 @@ type DeleteOp = { uri: string } -export const isPost = (obj: unknown): obj is PostRecord => { +export const isPost = (obj: unknown): obj is AppBskyFeedPost.Record => { return isType(obj, ids.AppBskyFeedPost) } -export const isRepost = (obj: unknown): obj is RepostRecord => { +export const isRepost = (obj: unknown): obj is AppBskyFeedRepost.Record => { return isType(obj, ids.AppBskyFeedRepost) } -export const isLike = (obj: unknown): obj is LikeRecord => { +export const isLike = (obj: unknown): obj is AppBskyFeedLike.Record => { return isType(obj, ids.AppBskyFeedLike) } -export const isFollow = (obj: unknown): obj is FollowRecord => { +export const isFollow = (obj: unknown): obj is AppBskyGraphFollow.Record => { return isType(obj, ids.AppBskyGraphFollow) } diff --git a/yarn.lock b/yarn.lock index bb48a321..769d8712 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,23 +2,82 @@ # yarn lockfile v1 +"@atproto/api@^0.12.2": + version "0.12.2" + resolved "https://registry.npmjs.org/@atproto/api/-/api-0.12.2.tgz" + integrity sha512-UVzCiDZH2j0wrr/O8nb1edD5cYLVqB5iujueXUCbHS3rAwIxgmyLtA3Hzm2QYsGPo/+xsIg1fNvpq9rNT6KWUA== + dependencies: + "@atproto/common-web" "^0.3.0" + "@atproto/lexicon" "^0.4.0" + "@atproto/syntax" "^0.3.0" + "@atproto/xrpc" "^0.5.0" + multiformats "^9.9.0" + tlds "^1.234.0" + "@atproto/api@^0.6.20": - version "0.6.20" - resolved "https://registry.yarnpkg.com/@atproto/api/-/api-0.6.20.tgz#3a7eda60d73a5d5b6938e2dd016c24a7ba180c83" - integrity sha512-+peoKgkaxbglXQg9qEZcZIvyWm39yj0+syV3TBDrz5cWK4OIsdOyYBg2iISy+jvB5RzEUMe2WvOojP6Nq34mOg== - dependencies: - "@atproto/common-web" "^0.2.1" - "@atproto/lexicon" "^0.2.2" - "@atproto/syntax" "^0.1.2" - "@atproto/xrpc" "^0.3.2" + version "0.6.24" + resolved "https://registry.npmjs.org/@atproto/api/-/api-0.6.24.tgz" + integrity sha512-y3gz0F5wYAtaZ5XYL8FqXW90sOnXHlh4Cir+hjrlSftSoNJcTVR+6dKT5m0ZTqqvFoFryTPKs6BEQy/VBCsNxg== + dependencies: + "@atproto/common-web" "^0.2.3" + "@atproto/lexicon" "^0.3.1" + "@atproto/syntax" "^0.1.5" + "@atproto/xrpc" "^0.4.1" multiformats "^9.9.0" tlds "^1.234.0" typed-emitter "^2.1.0" + zod "^3.21.4" -"@atproto/common-web@^0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@atproto/common-web/-/common-web-0.2.1.tgz#97412cb241321fc6c56a2b8c0b2416b3240caf50" - integrity sha512-5AoDKkKz7JhXSiicjhPihA/MJMlSuTQ9Aed9fflPuoTuT6C3aXbxaUZEcqqipSwlCfGpOzPmJmWJjMWWsYr2ew== +"@atproto/bsky@^0.0.43": + version "0.0.43" + resolved "https://registry.npmjs.org/@atproto/bsky/-/bsky-0.0.43.tgz" + integrity sha512-87F/tMm5BVMltlJj/3BvVpZ9QOhw3oBxVcddqYTOD/eKB4OagghNysxIdJsgzrnCmZF4/CjDw4sO6DMGAnJwrg== + dependencies: + "@atproto/api" "^0.12.2" + "@atproto/common" "^0.4.0" + "@atproto/crypto" "^0.4.0" + "@atproto/identity" "^0.4.0" + "@atproto/lexicon" "^0.4.0" + "@atproto/repo" "^0.4.0" + "@atproto/syntax" "^0.3.0" + "@atproto/xrpc-server" "^0.5.0" + "@bufbuild/protobuf" "^1.5.0" + "@connectrpc/connect" "^1.1.4" + "@connectrpc/connect-express" "^1.1.4" + "@connectrpc/connect-node" "^1.1.4" + "@did-plc/lib" "^0.0.1" + compression "^1.7.4" + cors "^2.8.5" + express "^4.17.2" + http-errors "^2.0.0" + http-terminator "^3.2.0" + ioredis "^5.3.2" + jose "^5.0.1" + kysely "^0.22.0" + multiformats "^9.9.0" + p-queue "^6.6.2" + pg "^8.10.0" + pino "^8.15.0" + pino-http "^8.2.1" + sharp "^0.32.6" + structured-headers "^1.0.1" + typed-emitter "^2.1.0" + uint8arrays "3.0.0" + +"@atproto/common-web@^0.2.1", "@atproto/common-web@^0.2.2", "@atproto/common-web@^0.2.3", "@atproto/common-web@^0.2.4": + version "0.2.4" + resolved "https://registry.npmjs.org/@atproto/common-web/-/common-web-0.2.4.tgz" + integrity sha512-6+DOhQcTklFmeiSkZRx6iFeqi4OFtGl4yEDGATk00q4tEcPoPvyOBtYHN6+G9lrfJIfx5RfmggamvXlJv1PxxA== + dependencies: + graphemer "^1.4.0" + multiformats "^9.9.0" + uint8arrays "3.0.0" + zod "^3.21.4" + +"@atproto/common-web@^0.3.0": + version "0.3.0" + resolved "https://registry.npmjs.org/@atproto/common-web/-/common-web-0.3.0.tgz" + integrity sha512-67VnV6JJyX+ZWyjV7xFQMypAgDmjVaR9ZCuU/QW+mqlqI7fex2uL4Fv+7/jHadgzhuJHVd6OHOvNn0wR5WZYtA== dependencies: graphemer "^1.4.0" multiformats "^9.9.0" @@ -27,7 +86,7 @@ "@atproto/common@^0.3.1": version "0.3.1" - resolved "https://registry.yarnpkg.com/@atproto/common/-/common-0.3.1.tgz#ee131c170bdb564ed4f9692db0a80ada825220c7" + resolved "https://registry.npmjs.org/@atproto/common/-/common-0.3.1.tgz" integrity sha512-+YC+RG87K3Iu1oR8I6lLzeN3tH2vpkxC4MwfNFIjDiHR9N7bEma2kn1B+yvU1JoMBXc56dV91yyeWqzg6L6eGg== dependencies: "@atproto/common-web" "^0.2.1" @@ -38,18 +97,60 @@ pino "^8.15.0" zod "3.21.4" +"@atproto/common@^0.4.0": + version "0.4.0" + resolved "https://registry.npmjs.org/@atproto/common/-/common-0.4.0.tgz" + integrity sha512-yOXuPlCjT/OK9j+neIGYn9wkxx/AlxQSucysAF0xgwu0Ji8jAtKBf9Jv6R5ObYAjAD/kVUvEYumle+Yq/R9/7g== + dependencies: + "@atproto/common-web" "^0.3.0" + "@ipld/dag-cbor" "^7.0.3" + cbor-x "^1.5.1" + iso-datestring-validator "^2.2.2" + multiformats "^9.9.0" + pino "^8.15.0" + +"@atproto/common@0.1.0": + version "0.1.0" + resolved "https://registry.npmjs.org/@atproto/common/-/common-0.1.0.tgz" + integrity sha512-OB5tWE2R19jwiMIs2IjQieH5KTUuMb98XGCn9h3xuu6NanwjlmbCYMv08fMYwIp3UQ6jcq//84cDT3Bu6fJD+A== + dependencies: + "@ipld/dag-cbor" "^7.0.3" + multiformats "^9.6.4" + pino "^8.6.1" + zod "^3.14.2" + "@atproto/crypto@^0.2.2": version "0.2.2" - resolved "https://registry.yarnpkg.com/@atproto/crypto/-/crypto-0.2.2.tgz#9832dda885512a36401d24f95990489f521593ef" + resolved "https://registry.npmjs.org/@atproto/crypto/-/crypto-0.2.2.tgz" integrity sha512-yepwM6pLPw/bT7Nl0nfDw251yVDpuhc0llOgD8YdCapUAH7pIn4dBcMgXiA9UzQaHA7OC9ByO5IdGPrMN/DmZw== dependencies: "@noble/curves" "^1.1.0" "@noble/hashes" "^1.3.1" uint8arrays "3.0.0" +"@atproto/crypto@^0.4.0": + version "0.4.0" + resolved "https://registry.npmjs.org/@atproto/crypto/-/crypto-0.4.0.tgz" + integrity sha512-Kj/4VgJ7hzzXvE42L0rjzP6lM0tai+OfPnP1rxJ+UZg/YUDtuewL4uapnVoWXvlNceKgaLZH98g5n9gXBVTe5Q== + dependencies: + "@noble/curves" "^1.1.0" + "@noble/hashes" "^1.3.1" + uint8arrays "3.0.0" + +"@atproto/crypto@0.1.0": + version "0.1.0" + resolved "https://registry.npmjs.org/@atproto/crypto/-/crypto-0.1.0.tgz" + integrity sha512-9xgFEPtsCiJEPt9o3HtJT30IdFTGw5cQRSJVIy5CFhqBA4vDLcdXiRDLCjkzHEVbtNCsHUW6CrlfOgbeLPcmcg== + dependencies: + "@noble/secp256k1" "^1.7.0" + big-integer "^1.6.51" + multiformats "^9.6.4" + one-webcrypto "^1.0.3" + uint8arrays "3.0.0" + "@atproto/identity@^0.2.1": version "0.2.1" - resolved "https://registry.yarnpkg.com/@atproto/identity/-/identity-0.2.1.tgz#8203ba53a25c3300d1aec0c28eb10a106919b410" + resolved "https://registry.npmjs.org/@atproto/identity/-/identity-0.2.1.tgz" integrity sha512-daLEYCSOrEaXpsoSAZ1G5mlDs3qT9ZHTFIBip14yHUWB0gVb+/KI9lU+DGSo+RGPlzYF+A5Y+Nni4j3IRVVlSA== dependencies: "@atproto/common-web" "^0.2.1" @@ -57,20 +158,62 @@ axios "^0.27.2" zod "^3.21.4" -"@atproto/lexicon@^0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@atproto/lexicon/-/lexicon-0.2.2.tgz#938a39482ff41c6a908f4ad43274adba595f3643" - integrity sha512-CvmjaSDavHMOJTuNYE8VjYhL7TVxBYV8QSWh2jHCpzfmj02DvVD9UBIfnoVv67POJkEtWXddjoV9beaIbaq/Xg== +"@atproto/identity@^0.4.0": + version "0.4.0" + resolved "https://registry.npmjs.org/@atproto/identity/-/identity-0.4.0.tgz" + integrity sha512-KKdVlqBgkFuTUx3KFiiQe0LuK9kopej1bhKm6SHRPEYbSEPFmRZQMY9TAjWJQrvQt8DpQzz6kVGjASFEjd3teQ== dependencies: - "@atproto/common-web" "^0.2.1" - "@atproto/syntax" "^0.1.2" + "@atproto/common-web" "^0.3.0" + "@atproto/crypto" "^0.4.0" + axios "^0.27.2" + +"@atproto/lexicon@^0.2.2", "@atproto/lexicon@^0.2.3": + version "0.2.3" + resolved "https://registry.npmjs.org/@atproto/lexicon/-/lexicon-0.2.3.tgz" + integrity sha512-1xUs0KNw4CopWI5HSlLYZ8UHW5nb6V7sldO5OPONiEVKjETrqqjfopezloYAIBNrekUNXwd1pbp05afkAxW5og== + dependencies: + "@atproto/common-web" "^0.2.2" + "@atproto/syntax" "^0.1.3" + iso-datestring-validator "^2.2.2" + multiformats "^9.9.0" + zod "^3.21.4" + +"@atproto/lexicon@^0.3.1": + version "0.3.3" + resolved "https://registry.npmjs.org/@atproto/lexicon/-/lexicon-0.3.3.tgz" + integrity sha512-6FOjdc3V05JKrtkhjfhHMS7f/4hMJOeHNtoE3Na7iFMpzBz0Lw5sw8kIFKY8pc8IG79qGcFgELyHLsljZYX+5A== + dependencies: + "@atproto/common-web" "^0.2.4" + "@atproto/syntax" "^0.2.1" + iso-datestring-validator "^2.2.2" + multiformats "^9.9.0" + zod "^3.21.4" + +"@atproto/lexicon@^0.3.3": + version "0.3.3" + resolved "https://registry.npmjs.org/@atproto/lexicon/-/lexicon-0.3.3.tgz" + integrity sha512-6FOjdc3V05JKrtkhjfhHMS7f/4hMJOeHNtoE3Na7iFMpzBz0Lw5sw8kIFKY8pc8IG79qGcFgELyHLsljZYX+5A== + dependencies: + "@atproto/common-web" "^0.2.4" + "@atproto/syntax" "^0.2.1" + iso-datestring-validator "^2.2.2" + multiformats "^9.9.0" + zod "^3.21.4" + +"@atproto/lexicon@^0.4.0": + version "0.4.0" + resolved "https://registry.npmjs.org/@atproto/lexicon/-/lexicon-0.4.0.tgz" + integrity sha512-RvCBKdSI4M8qWm5uTNz1z3R2yIvIhmOsMuleOj8YR6BwRD+QbtUBy3l+xQ7iXf4M5fdfJFxaUNa6Ty0iRwdKqQ== + dependencies: + "@atproto/common-web" "^0.3.0" + "@atproto/syntax" "^0.3.0" iso-datestring-validator "^2.2.2" multiformats "^9.9.0" zod "^3.21.4" "@atproto/repo@^0.3.2": version "0.3.2" - resolved "https://registry.yarnpkg.com/@atproto/repo/-/repo-0.3.2.tgz#46cd9f8a16b82de7fda6760e611999a9d42f5545" + resolved "https://registry.npmjs.org/@atproto/repo/-/repo-0.3.2.tgz" integrity sha512-J8RD168I3+IpkOU4M4+OBL2uX4HtBD+AYntZ7yjL8i4qHyhZU3PTERQNz908sH3hgQXGU1ueeNJOqhgXbLFD8w== dependencies: "@atproto/common" "^0.3.1" @@ -85,16 +228,43 @@ uint8arrays "3.0.0" zod "^3.21.4" -"@atproto/syntax@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@atproto/syntax/-/syntax-0.1.2.tgz#417366d36b53ecf29d9d1f6e35179b1f3feef95b" - integrity sha512-n6VSuccMGouwftCvZBq9WNwI0qYCMOH/lTHSV+/dT232lX7pIrqisOlErUSBoOJ49B1Wxy1DjeeBS26ap9SsGQ== +"@atproto/repo@^0.4.0": + version "0.4.0" + resolved "https://registry.npmjs.org/@atproto/repo/-/repo-0.4.0.tgz" + integrity sha512-LB0DF/D8r8hB+qiGB0sWZuq7TSJYbWel+t572aCrLeCOmbRgnLkGPLUTOOUvLFYv8xz1BPZTbI8hy/vcUV79VA== dependencies: - "@atproto/common-web" "^0.2.1" + "@atproto/common" "^0.4.0" + "@atproto/common-web" "^0.3.0" + "@atproto/crypto" "^0.4.0" + "@atproto/lexicon" "^0.4.0" + "@ipld/car" "^3.2.3" + "@ipld/dag-cbor" "^7.0.0" + multiformats "^9.9.0" + uint8arrays "3.0.0" + zod "^3.21.4" + +"@atproto/syntax@^0.1.2", "@atproto/syntax@^0.1.3", "@atproto/syntax@^0.1.5": + version "0.1.5" + resolved "https://registry.npmjs.org/@atproto/syntax/-/syntax-0.1.5.tgz" + integrity sha512-pbY5lOnThoAbsmrdbN9LC/dNmckfqODJiX9zjW2t3BIHYFeGBc6w9bK3Vre8A0Hg8yWkQpv6gaBLu+ykgi2DJQ== + dependencies: + "@atproto/common-web" "^0.2.3" + +"@atproto/syntax@^0.2.1": + version "0.2.1" + resolved "https://registry.npmjs.org/@atproto/syntax/-/syntax-0.2.1.tgz" + integrity sha512-ImOuiICtB5h78j90hAYOfTYzr5q5Wut0irNdELiogA3i74a8EXThe+j6Tj8snanYggrShbu5c6BDc1tVj477Yw== + dependencies: + "@atproto/common-web" "^0.2.4" + +"@atproto/syntax@^0.3.0": + version "0.3.0" + resolved "https://registry.npmjs.org/@atproto/syntax/-/syntax-0.3.0.tgz" + integrity sha512-Weq0ZBxffGHDXHl9U7BQc2BFJi/e23AL+k+i5+D9hUq/bzT4yjGsrCejkjq0xt82xXDjmhhvQSZ0LqxyZ5woxA== "@atproto/xrpc-server@^0.3.2": version "0.3.2" - resolved "https://registry.yarnpkg.com/@atproto/xrpc-server/-/xrpc-server-0.3.2.tgz#85bc901991c3de896d463c0cd1d396ab1c772387" + resolved "https://registry.npmjs.org/@atproto/xrpc-server/-/xrpc-server-0.3.2.tgz" integrity sha512-aracV1+1t88AU+zN/RTmZGvvjlMiNIooLotz23FvD4qoiUSx6KxrTwttHZdw5ZJE14XTDR1D9brpyvdCJHsKNA== dependencies: "@atproto/common" "^0.3.1" @@ -109,50 +279,95 @@ ws "^8.12.0" zod "^3.21.4" -"@atproto/xrpc@^0.3.2": - version "0.3.2" - resolved "https://registry.yarnpkg.com/@atproto/xrpc/-/xrpc-0.3.2.tgz#432a364be4b3bf8660a088a07dadecac10209763" - integrity sha512-D9jGjcFnEMHuGQ56v6+78uX3RiytKLrA5ITLq6shy0Qj6Zvt5MqV+/cTFuNPKrNCrnWOtHFeRQwMqyGhNS9qZQ== +"@atproto/xrpc-server@^0.5.0": + version "0.5.0" + resolved "https://registry.npmjs.org/@atproto/xrpc-server/-/xrpc-server-0.5.0.tgz" + integrity sha512-3g9cy6vCWnsEpThGR0mcepp4HiCQxs05L2XCuxZIOP20JcaIViMHFNlIm9lJdNwWXLb7dzSZLYjfA2QOWDZ3Gw== dependencies: - "@atproto/lexicon" "^0.2.2" + "@atproto/common" "^0.4.0" + "@atproto/crypto" "^0.4.0" + "@atproto/lexicon" "^0.4.0" + cbor-x "^1.5.1" + express "^4.17.2" + http-errors "^2.0.0" + mime-types "^2.1.35" + rate-limiter-flexible "^2.4.1" + uint8arrays "3.0.0" + ws "^8.12.0" zod "^3.21.4" -"@cbor-extract/cbor-extract-darwin-arm64@2.1.1": - version "2.1.1" - resolved "https://registry.npmjs.org/@cbor-extract/cbor-extract-darwin-arm64/-/cbor-extract-darwin-arm64-2.1.1.tgz" - integrity sha512-blVBy5MXz6m36Vx0DfLd7PChOQKEs8lK2bD1WJn/vVgG4FXZiZmZb2GECHFvVPA5T7OnODd9xZiL3nMCv6QUhA== - -"@cbor-extract/cbor-extract-darwin-x64@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@cbor-extract/cbor-extract-darwin-x64/-/cbor-extract-darwin-x64-2.1.1.tgz#c25e7d0133950d87d101d7b3afafea8d50d83f5f" - integrity sha512-h6KFOzqk8jXTvkOftyRIWGrd7sKQzQv2jVdTL9nKSf3D2drCvQB/LHUxAOpPXo3pv2clDtKs3xnHalpEh3rDsw== +"@atproto/xrpc@^0.4.1": + version "0.4.3" + resolved "https://registry.npmjs.org/@atproto/xrpc/-/xrpc-0.4.3.tgz" + integrity sha512-0rn3abHORG0T93mci8WW97Cpg2ClU2aCtTq5rxdCPRsl9P4tyP+8F4snbkrIaMbVO05Rd9D9gFwtWs5Z473pCQ== + dependencies: + "@atproto/lexicon" "^0.3.3" + zod "^3.21.4" -"@cbor-extract/cbor-extract-linux-arm64@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@cbor-extract/cbor-extract-linux-arm64/-/cbor-extract-linux-arm64-2.1.1.tgz#48f78e7d8f0fcc84ed074b6bfa6d15dd83187c63" - integrity sha512-SxAaRcYf8S0QHaMc7gvRSiTSr7nUYMqbUdErBEu+HYA4Q6UNydx1VwFE68hGcp1qvxcy9yT5U7gA+a5XikfwSQ== +"@atproto/xrpc@^0.5.0": + version "0.5.0" + resolved "https://registry.npmjs.org/@atproto/xrpc/-/xrpc-0.5.0.tgz" + integrity sha512-swu+wyOLvYW4l3n+VAuJbHcPcES+tin2Lsrp8Bw5aIXIICiuFn1YMFlwK9JwVUzTH21Py1s1nHEjr4CJeElJog== + dependencies: + "@atproto/lexicon" "^0.4.0" + zod "^3.21.4" -"@cbor-extract/cbor-extract-linux-arm@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@cbor-extract/cbor-extract-linux-arm/-/cbor-extract-linux-arm-2.1.1.tgz#7507d346389cb682e44fab8fae9534edd52e2e41" - integrity sha512-ds0uikdcIGUjPyraV4oJqyVE5gl/qYBpa/Wnh6l6xLE2lj/hwnjT2XcZCChdXwW/YFZ1LUHs6waoYN8PmK0nKQ== +"@bufbuild/protobuf@^1.4.2", "@bufbuild/protobuf@^1.5.0": + version "1.8.0" + resolved "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.8.0.tgz" + integrity sha512-qR9FwI8QKIveDnUYutvfzbC21UZJJryYrLuZGjeZ/VGz+vXelUkK+xgkOHsvPEdYEdxtgUUq4313N8QtOehJ1Q== "@cbor-extract/cbor-extract-linux-x64@2.1.1": version "2.1.1" - resolved "https://registry.yarnpkg.com/@cbor-extract/cbor-extract-linux-x64/-/cbor-extract-linux-x64-2.1.1.tgz#b7c1d2be61c58ec18d58afbad52411ded63cd4cd" + resolved "https://registry.npmjs.org/@cbor-extract/cbor-extract-linux-x64/-/cbor-extract-linux-x64-2.1.1.tgz" integrity sha512-GVK+8fNIE9lJQHAlhOROYiI0Yd4bAZ4u++C2ZjlkS3YmO6hi+FUxe6Dqm+OKWTcMpL/l71N6CQAmaRcb4zyJuA== -"@cbor-extract/cbor-extract-win32-x64@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@cbor-extract/cbor-extract-win32-x64/-/cbor-extract-win32-x64-2.1.1.tgz#21b11a1a3f18c3e7d62fd5f87438b7ed2c64c1f7" - integrity sha512-2Niq1C41dCRIDeD8LddiH+mxGlO7HJ612Ll3D/E73ZWBmycued+8ghTr/Ho3CMOWPUEr08XtyBMVXAjqF+TcKw== +"@connectrpc/connect-express@^1.1.4": + version "1.4.0" + resolved "https://registry.npmjs.org/@connectrpc/connect-express/-/connect-express-1.4.0.tgz" + integrity sha512-e09oyHF+P7GSkU1x4WBzGTHFCORcHWFH67rhxDISonwNYRXevOfIo1fwDRBKJUvyddoPlpZJDaKIv9TuKO1tQQ== + dependencies: + "@types/express" "^4.17.18" -"@cspotcode/source-map-support@^0.8.0": - version "0.8.1" - resolved "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz" - integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== +"@connectrpc/connect-node@^1.1.4", "@connectrpc/connect-node@1.4.0": + version "1.4.0" + resolved "https://registry.npmjs.org/@connectrpc/connect-node/-/connect-node-1.4.0.tgz" + integrity sha512-0ANnrr6SvsjevsWEgdzHy7BaHkluZyS6s4xNoVt7RBHFR5V/kT9lPokoIbYUOU9JHzdRgTaS3x5595mwUsu15g== + dependencies: + undici "^5.28.3" + +"@connectrpc/connect@^1.1.4", "@connectrpc/connect@1.4.0": + version "1.4.0" + resolved "https://registry.npmjs.org/@connectrpc/connect/-/connect-1.4.0.tgz" + integrity sha512-vZeOkKaAjyV4+RH3+rJZIfDFJAfr+7fyYr6sLDKbYX3uuTVszhFe9/YKf5DNqrDb5cKdKVlYkGn6DTDqMitAnA== + +"@did-plc/lib@^0.0.1": + version "0.0.1" + resolved "https://registry.npmjs.org/@did-plc/lib/-/lib-0.0.1.tgz" + integrity sha512-RkY5w9DbYMco3SjeepqIiMveqz35exjlVDipCs2gz9AXF4/cp9hvmrp9zUWEw2vny+FjV8vGEN7QpaXWaO6nhg== dependencies: - "@jridgewell/trace-mapping" "0.3.9" + "@atproto/common" "0.1.0" + "@atproto/crypto" "0.1.0" + "@ipld/dag-cbor" "^7.0.3" + axios "^1.3.4" + multiformats "^9.6.4" + uint8arrays "3.0.0" + zod "^3.14.2" + +"@esbuild/linux-x64@0.19.12": + version "0.19.12" + resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz" + integrity sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg== + +"@fastify/busboy@^2.0.0": + version "2.1.1" + resolved "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz" + integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA== + +"@ioredis/commands@^1.1.1": + version "1.2.0" + resolved "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz" + integrity sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg== "@ipld/car@^3.2.3": version "3.2.4" @@ -171,55 +386,22 @@ cborg "^1.6.0" multiformats "^9.5.4" -"@jridgewell/resolve-uri@^3.0.3": - version "3.1.1" - resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz" - integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== - -"@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.15" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== - -"@jridgewell/trace-mapping@0.3.9": - version "0.3.9" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" - integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@noble/curves@^1.1.0": version "1.2.0" - resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.2.0.tgz#92d7e12e4e49b23105a2555c6984d41733d65c35" + resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz" integrity sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw== dependencies: "@noble/hashes" "1.3.2" -"@noble/hashes@1.3.2", "@noble/hashes@^1.3.1": +"@noble/hashes@^1.3.1", "@noble/hashes@1.3.2": version "1.3.2" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" + resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz" integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== -"@tsconfig/node10@^1.0.7": - version "1.0.9" - resolved "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz" - integrity sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA== - -"@tsconfig/node12@^1.0.7": - version "1.0.11" - resolved "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz" - integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== - -"@tsconfig/node14@^1.0.0": - version "1.0.3" - resolved "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz" - integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== - -"@tsconfig/node16@^1.0.2": - version "1.0.3" - resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz" - integrity sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ== +"@noble/secp256k1@^1.7.0": + version "1.7.1" + resolved "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz" + integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== "@types/better-sqlite3@^7.6.4": version "7.6.4" @@ -253,10 +435,10 @@ "@types/range-parser" "*" "@types/send" "*" -"@types/express@^4.17.17": - version "4.17.17" - resolved "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz" - integrity sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q== +"@types/express@^4.17.17", "@types/express@^4.17.18": + version "4.17.21" + resolved "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz" + integrity sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ== dependencies: "@types/body-parser" "*" "@types/express-serve-static-core" "^4.17.33" @@ -306,7 +488,7 @@ abort-controller@^3.0.0: dependencies: event-target-shim "^5.0.0" -accepts@~1.3.8: +accepts@~1.3.5, accepts@~1.3.8: version "1.3.8" resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz" integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== @@ -314,21 +496,6 @@ accepts@~1.3.8: mime-types "~2.1.34" negotiator "0.6.3" -acorn-walk@^8.1.1: - version "8.2.0" - resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" - integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== - -acorn@^8.4.1: - version "8.8.2" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz" - integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz" - integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== - array-flatten@1.1.1: version "1.1.1" resolved "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz" @@ -352,6 +519,47 @@ axios@^0.27.2: follow-redirects "^1.14.9" form-data "^4.0.0" +axios@^1.3.4: + version "1.6.8" + resolved "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz" + integrity sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +b4a@^1.6.4: + version "1.6.6" + resolved "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz" + integrity sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg== + +bare-events@^2.0.0, bare-events@^2.2.0: + version "2.2.1" + resolved "https://registry.npmjs.org/bare-events/-/bare-events-2.2.1.tgz" + integrity sha512-9GYPpsPFvrWBkelIhOhTWtkeZxVxZOdb3VnFTCzlOo3OjvmTvzLoZFUT8kNFACx0vJej6QPney1Cf9BvzCNE/A== + +bare-fs@^2.1.1: + version "2.2.2" + resolved "https://registry.npmjs.org/bare-fs/-/bare-fs-2.2.2.tgz" + integrity sha512-X9IqgvyB0/VA5OZJyb5ZstoN62AzD7YxVGog13kkfYWYqJYcK0kcqLZ6TrmH5qr4/8//ejVcX4x/a0UvaogXmA== + dependencies: + bare-events "^2.0.0" + bare-os "^2.0.0" + bare-path "^2.0.0" + streamx "^2.13.0" + +bare-os@^2.0.0, bare-os@^2.1.0: + version "2.2.1" + resolved "https://registry.npmjs.org/bare-os/-/bare-os-2.2.1.tgz" + integrity sha512-OwPyHgBBMkhC29Hl3O4/YfxW9n7mdTr2+SsO29XBWKKJsbgj3mnorDB80r5TiCQgQstgE5ga1qNYrpes6NvX2w== + +bare-path@^2.0.0, bare-path@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/bare-path/-/bare-path-2.1.0.tgz" + integrity sha512-DIIg7ts8bdRKwJRJrUMy/PICEaQZaPGZ26lsSx9MJSwIhSrcdHn7/C8W+XmnG/rKi6BaRcz+JO00CjZteybDtw== + dependencies: + bare-os "^2.1.0" + base64-js@^1.3.1: version "1.5.1" resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" @@ -365,6 +573,11 @@ better-sqlite3@^8.3.0: bindings "^1.5.0" prebuild-install "^7.1.0" +big-integer@^1.6.51: + version "1.6.52" + resolved "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz" + integrity sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg== + bindings@^1.5.0: version "1.5.0" resolved "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz" @@ -399,6 +612,16 @@ body-parser@1.20.1: type-is "~1.6.18" unpipe "1.0.0" +boolean@^3.1.4: + version "3.2.0" + resolved "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz" + integrity sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw== + +buffer-writer@2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/buffer-writer/-/buffer-writer-2.0.0.tgz" + integrity sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw== + buffer@^5.5.0: version "5.7.1" resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" @@ -415,6 +638,11 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" + integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== + bytes@3.1.2: version "3.1.2" resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" @@ -459,6 +687,39 @@ chownr@^1.1.1: resolved "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz" integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg== +cluster-key-slot@^1.1.0: + version "1.1.2" + resolved "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz" + integrity sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA== + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@^1.0.0, color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +color-string@^1.9.0: + version "1.9.1" + resolved "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz" + integrity sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg== + dependencies: + color-name "^1.0.0" + simple-swizzle "^0.2.2" + +color@^4.2.3: + version "4.2.3" + resolved "https://registry.npmjs.org/color/-/color-4.2.3.tgz" + integrity sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A== + dependencies: + color-convert "^2.0.1" + color-string "^1.9.0" + combined-stream@^1.0.8: version "1.0.8" resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" @@ -466,6 +727,26 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +compressible@~2.0.16: + version "2.0.18" + resolved "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz" + integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== + dependencies: + mime-db ">= 1.43.0 < 2" + +compression@^1.7.4: + version "1.7.4" + resolved "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz" + integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== + dependencies: + accepts "~1.3.5" + bytes "3.0.0" + compressible "~2.0.16" + debug "2.6.9" + on-headers "~1.0.2" + safe-buffer "5.1.2" + vary "~1.1.2" + content-disposition@0.5.4: version "0.5.4" resolved "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz" @@ -488,10 +769,20 @@ cookie@0.5.0: resolved "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz" integrity sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw== -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz" - integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== +cors@^2.8.5: + version "2.8.5" + resolved "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz" + integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== + dependencies: + object-assign "^4" + vary "^1" + +debug@^4.3.4: + version "4.3.4" + resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" debug@2.6.9: version "2.6.9" @@ -512,11 +803,21 @@ deep-extend@^0.6.0: resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== +delay@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz" + integrity sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw== + delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== +denque@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz" + integrity sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw== + depd@2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" @@ -527,15 +828,10 @@ destroy@1.2.0: resolved "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz" integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== -detect-libc@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz" - integrity sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w== - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== +detect-libc@^2.0.0, detect-libc@^2.0.2: + version "2.0.3" + resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz" + integrity sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw== dotenv@^16.0.3: version "16.0.3" @@ -559,6 +855,35 @@ end-of-stream@^1.1.0, end-of-stream@^1.4.1: dependencies: once "^1.4.0" +esbuild@~0.19.10: + version "0.19.12" + resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz" + integrity sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg== + optionalDependencies: + "@esbuild/aix-ppc64" "0.19.12" + "@esbuild/android-arm" "0.19.12" + "@esbuild/android-arm64" "0.19.12" + "@esbuild/android-x64" "0.19.12" + "@esbuild/darwin-arm64" "0.19.12" + "@esbuild/darwin-x64" "0.19.12" + "@esbuild/freebsd-arm64" "0.19.12" + "@esbuild/freebsd-x64" "0.19.12" + "@esbuild/linux-arm" "0.19.12" + "@esbuild/linux-arm64" "0.19.12" + "@esbuild/linux-ia32" "0.19.12" + "@esbuild/linux-loong64" "0.19.12" + "@esbuild/linux-mips64el" "0.19.12" + "@esbuild/linux-ppc64" "0.19.12" + "@esbuild/linux-riscv64" "0.19.12" + "@esbuild/linux-s390x" "0.19.12" + "@esbuild/linux-x64" "0.19.12" + "@esbuild/netbsd-x64" "0.19.12" + "@esbuild/openbsd-x64" "0.19.12" + "@esbuild/sunos-x64" "0.19.12" + "@esbuild/win32-arm64" "0.19.12" + "@esbuild/win32-ia32" "0.19.12" + "@esbuild/win32-x64" "0.19.12" + escape-html@~1.0.3: version "1.0.3" resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" @@ -574,6 +899,11 @@ event-target-shim@^5.0.0: resolved "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz" integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== +eventemitter3@^4.0.4: + version "4.0.7" + resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== + events@^3.3.0: version "3.3.0" resolved "https://registry.npmjs.org/events/-/events-3.3.0.tgz" @@ -621,6 +951,18 @@ express@^4.17.2, express@^4.18.2: utils-merge "1.0.1" vary "~1.1.2" +fast-fifo@^1.1.0, fast-fifo@^1.2.0: + version "1.3.2" + resolved "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz" + integrity sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ== + +fast-printf@^1.6.9: + version "1.6.9" + resolved "https://registry.npmjs.org/fast-printf/-/fast-printf-1.6.9.tgz" + integrity sha512-FChq8hbz65WMj4rstcQsFB0O7Cy++nmbNfLYnD9cYv2cRn8EG6k/MGn9kO/tjO66t09DLDugj3yL+V2o6Qftrg== + dependencies: + boolean "^3.1.4" + fast-redact@^3.1.1: version "3.1.2" resolved "https://registry.npmjs.org/fast-redact/-/fast-redact-3.1.2.tgz" @@ -644,10 +986,10 @@ finalhandler@1.2.0: statuses "2.0.1" unpipe "~1.0.0" -follow-redirects@^1.14.9: - version "1.15.2" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" - integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== +follow-redirects@^1.14.9, follow-redirects@^1.15.6: + version "1.15.6" + resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz" + integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== form-data@^4.0.0: version "4.0.0" @@ -678,6 +1020,11 @@ function-bind@^1.1.1: resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + get-intrinsic@^1.0.2: version "1.2.0" resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz" @@ -687,6 +1034,13 @@ get-intrinsic@^1.0.2: has "^1.0.3" has-symbols "^1.0.3" +get-tsconfig@^4.7.2: + version "4.7.3" + resolved "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.3.tgz" + integrity sha512-ZvkrzoUA0PQZM6fy6+/Hce561s+faD1rsNwhnO5FelNjyy7EMGJ3Rz1AQ8GYDWjhRs/7dBLOEJvhK8MiEJOAFg== + dependencies: + resolve-pkg-maps "^1.0.0" + github-from-package@0.0.0: version "0.0.0" resolved "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz" @@ -694,7 +1048,7 @@ github-from-package@0.0.0: graphemer@^1.4.0: version "1.4.0" - resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + resolved "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz" integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== has-symbols@^1.0.3: @@ -709,7 +1063,7 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" -http-errors@2.0.0, http-errors@^2.0.0: +http-errors@^2.0.0, http-errors@2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== @@ -720,6 +1074,16 @@ http-errors@2.0.0, http-errors@^2.0.0: statuses "2.0.1" toidentifier "1.0.1" +http-terminator@^3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/http-terminator/-/http-terminator-3.2.0.tgz" + integrity sha512-JLjck1EzPaWjsmIf8bziM3p9fgR1Y3JoUKAkyYEbZmFrIvJM6I8vVJfBGWlEtV9IWOvzNnaTtjuwZeBY2kwB4g== + dependencies: + delay "^5.0.0" + p-wait-for "^3.2.0" + roarr "^7.0.4" + type-fest "^2.3.3" + iconv-lite@0.4.24: version "0.4.24" resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" @@ -732,7 +1096,7 @@ ieee754@^1.1.13, ieee754@^1.2.1: resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4: +inherits@^2.0.3, inherits@^2.0.4, inherits@2.0.4: version "2.0.4" resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -742,21 +1106,56 @@ ini@~1.3.0: resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== +ioredis@^5.3.2: + version "5.3.2" + resolved "https://registry.npmjs.org/ioredis/-/ioredis-5.3.2.tgz" + integrity sha512-1DKMMzlIHM02eBBVOFQ1+AolGjs6+xEcM4PDL7NqOS6szq7H9jSaEkIUH6/a5Hl241LzW6JLSiAbNvTQjUupUA== + dependencies: + "@ioredis/commands" "^1.1.1" + cluster-key-slot "^1.1.0" + debug "^4.3.4" + denque "^2.1.0" + lodash.defaults "^4.2.0" + lodash.isarguments "^3.1.0" + redis-errors "^1.2.0" + redis-parser "^3.0.0" + standard-as-callback "^2.1.0" + ipaddr.js@1.9.1: version "1.9.1" resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz" integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== +is-arrayish@^0.3.1: + version "0.3.2" + resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz" + integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== + iso-datestring-validator@^2.2.2: version "2.2.2" resolved "https://registry.npmjs.org/iso-datestring-validator/-/iso-datestring-validator-2.2.2.tgz" integrity sha512-yLEMkBbLZTlVQqOnQ4FiMujR6T4DEcCb1xizmvXS+OxuhwcbtynoosRzdMA69zZCShCNAbi+gJ71FxZBBXx1SA== +jose@^5.0.1: + version "5.2.3" + resolved "https://registry.npmjs.org/jose/-/jose-5.2.3.tgz" + integrity sha512-KUXdbctm1uHVL8BYhnyHkgp3zDX5KW8ZhAKVFEfUbU2P8Alpzjb+48hHvjOdQIyPshoblhzsuqOwEEAbtHVirA== + kysely@^0.22.0: version "0.22.0" resolved "https://registry.npmjs.org/kysely/-/kysely-0.22.0.tgz" integrity sha512-ZE3qWtnqLOalodzfK5QUEcm7AEulhxsPNuKaGFsC3XiqO92vMLm+mAHk/NnbSIOtC4RmGm0nsv700i8KDp1gfQ== +lodash.defaults@^4.2.0: + version "4.2.0" + resolved "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz" + integrity sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ== + +lodash.isarguments@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz" + integrity sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg== + lru-cache@^6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" @@ -764,11 +1163,6 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" - integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== - media-typer@0.3.0: version "0.3.0" resolved "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz" @@ -784,7 +1178,7 @@ methods@~1.1.2: resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz" integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== -mime-db@1.52.0: +"mime-db@>= 1.43.0 < 2", mime-db@1.52.0: version "1.52.0" resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== @@ -821,12 +1215,17 @@ ms@2.0.0: resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== +ms@2.1.2: + version "2.1.2" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + ms@2.1.3: version "2.1.3" resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== -multiformats@^9.4.2, multiformats@^9.5.4, multiformats@^9.9.0: +multiformats@^9.4.2, multiformats@^9.5.4, multiformats@^9.6.4, multiformats@^9.9.0: version "9.9.0" resolved "https://registry.npmjs.org/multiformats/-/multiformats-9.9.0.tgz" integrity sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg== @@ -848,11 +1247,21 @@ node-abi@^3.3.0: dependencies: semver "^7.3.5" +node-addon-api@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz" + integrity sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA== + node-gyp-build-optional-packages@5.0.3: version "5.0.3" resolved "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.0.3.tgz" integrity sha512-k75jcVzk5wnnc/FMxsf4udAoTEUv2jY3ycfdSd3yWu6Cnd1oee6/CfZJApyscA4FJOmdoixWwiwOyf16RzD5JA== +object-assign@^4: + version "4.1.1" + resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + object-inspect@^1.9.0: version "1.12.3" resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz" @@ -870,6 +1279,11 @@ on-finished@2.4.1: dependencies: ee-first "1.1.1" +on-headers@~1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz" + integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== + once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" @@ -877,6 +1291,43 @@ once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" +one-webcrypto@^1.0.3: + version "1.0.3" + resolved "https://registry.npmjs.org/one-webcrypto/-/one-webcrypto-1.0.3.tgz" + integrity sha512-fu9ywBVBPx0gS9K0etIROTiCkvI5S1TDjFsYFb3rC1ewFxeOqsbzq7aIMBHsYfrTHBcGXJaONXXjTl8B01cW1Q== + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== + +p-queue@^6.6.2: + version "6.6.2" + resolved "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz" + integrity sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ== + dependencies: + eventemitter3 "^4.0.4" + p-timeout "^3.2.0" + +p-timeout@^3.0.0, p-timeout@^3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz" + integrity sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg== + dependencies: + p-finally "^1.0.0" + +p-wait-for@^3.2.0: + version "3.2.0" + resolved "https://registry.npmjs.org/p-wait-for/-/p-wait-for-3.2.0.tgz" + integrity sha512-wpgERjNkLrBiFmkMEjuZJEWKKDrNfHCKA1OhyN1wg1FrLkULbviEy6py1AyJUgZ72YWFbZ38FIpnqvVqAlDUwA== + dependencies: + p-timeout "^3.0.0" + +packet-reader@1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz" + integrity sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ== + parseurl@~1.3.3: version "1.3.3" resolved "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz" @@ -887,37 +1338,127 @@ path-to-regexp@0.1.7: resolved "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz" integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== +pg-cloudflare@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz" + integrity sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q== + +pg-connection-string@^2.6.2: + version "2.6.2" + resolved "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.2.tgz" + integrity sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA== + +pg-int8@1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz" + integrity sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw== + +pg-pool@^3.6.1: + version "3.6.1" + resolved "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.1.tgz" + integrity sha512-jizsIzhkIitxCGfPRzJn1ZdcosIt3pz9Sh3V01fm1vZnbnCMgmGl5wvGGdNN2EL9Rmb0EcFoCkixH4Pu+sP9Og== + +pg-protocol@^1.6.0: + version "1.6.0" + resolved "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.0.tgz" + integrity sha512-M+PDm637OY5WM307051+bsDia5Xej6d9IR4GwJse1qA1DIhiKlksvrneZOYQq42OM+spubpcNYEo2FcKQrDk+Q== + +pg-types@^2.1.0: + version "2.2.0" + resolved "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz" + integrity sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA== + dependencies: + pg-int8 "1.0.1" + postgres-array "~2.0.0" + postgres-bytea "~1.0.0" + postgres-date "~1.0.4" + postgres-interval "^1.1.0" + +pg@^8.10.0, pg@>=8.0: + version "8.11.3" + resolved "https://registry.npmjs.org/pg/-/pg-8.11.3.tgz" + integrity sha512-+9iuvG8QfaaUrrph+kpF24cXkH1YOOUeArRNYIxq1viYHZagBxrTno7cecY1Fa44tJeZvaoG+Djpkc3JwehN5g== + dependencies: + buffer-writer "2.0.0" + packet-reader "1.0.0" + pg-connection-string "^2.6.2" + pg-pool "^3.6.1" + pg-protocol "^1.6.0" + pg-types "^2.1.0" + pgpass "1.x" + optionalDependencies: + pg-cloudflare "^1.1.1" + +pgpass@1.x: + version "1.0.5" + resolved "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz" + integrity sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug== + dependencies: + split2 "^4.1.0" + pino-abstract-transport@v1.1.0: version "1.1.0" - resolved "https://registry.yarnpkg.com/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz#083d98f966262164504afb989bccd05f665937a8" + resolved "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz" integrity sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA== dependencies: readable-stream "^4.0.0" split2 "^4.0.0" -pino-std-serializers@^6.0.0: - version "6.2.1" - resolved "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.1.tgz" - integrity sha512-wHuWB+CvSVb2XqXM0W/WOYUkVSPbiJb9S5fNB7TBhd8s892Xq910bRxwHtC4l71hgztObTjXL6ZheZXFjhDrDQ== +pino-http@^8.2.1: + version "8.6.1" + resolved "https://registry.npmjs.org/pino-http/-/pino-http-8.6.1.tgz" + integrity sha512-J0hiJgUExtBXP2BjrK4VB305tHXS31sCmWJ9XJo2wPkLHa1NFPuW4V9wjG27PAc2fmBCigiNhQKpvrx+kntBPA== + dependencies: + get-caller-file "^2.0.5" + pino "^8.17.1" + pino-std-serializers "^6.2.2" + process-warning "^3.0.0" + +pino-std-serializers@^6.0.0, pino-std-serializers@^6.2.2: + version "6.2.2" + resolved "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz" + integrity sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA== -pino@^8.15.0: - version "8.15.1" - resolved "https://registry.yarnpkg.com/pino/-/pino-8.15.1.tgz#04b815ff7aa4e46b1bbab88d8010aaa2b17eaba4" - integrity sha512-Cp4QzUQrvWCRJaQ8Lzv0mJzXVk4z2jlq8JNKMGaixC2Pz5L4l2p95TkuRvYbrEbe85NQsDKrAd4zalf7Ml6WiA== +pino@^8.15.0, pino@^8.17.1, pino@^8.6.1: + version "8.19.0" + resolved "https://registry.npmjs.org/pino/-/pino-8.19.0.tgz" + integrity sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA== dependencies: atomic-sleep "^1.0.0" fast-redact "^3.1.1" on-exit-leak-free "^2.1.0" pino-abstract-transport v1.1.0 pino-std-serializers "^6.0.0" - process-warning "^2.0.0" + process-warning "^3.0.0" quick-format-unescaped "^4.0.3" real-require "^0.2.0" safe-stable-stringify "^2.3.1" - sonic-boom "^3.1.0" + sonic-boom "^3.7.0" thread-stream "^2.0.0" -prebuild-install@^7.1.0: +postgres-array@~2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz" + integrity sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA== + +postgres-bytea@~1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz" + integrity sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w== + +postgres-date@~1.0.4: + version "1.0.7" + resolved "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz" + integrity sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q== + +postgres-interval@^1.1.0: + version "1.2.0" + resolved "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz" + integrity sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ== + dependencies: + xtend "^4.0.0" + +prebuild-install@^7.1.0, prebuild-install@^7.1.1: version "7.1.1" resolved "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz" integrity sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw== @@ -935,10 +1476,10 @@ prebuild-install@^7.1.0: tar-fs "^2.0.0" tunnel-agent "^0.6.0" -process-warning@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/process-warning/-/process-warning-2.2.0.tgz" - integrity sha512-/1WZ8+VQjR6avWOgHeEPd7SDQmFQ1B5mC1eRXsCm5TarlNmx/wCsa5GEaxGm05BORRtyG/Ex/3xq3TuRvq57qg== +process-warning@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz" + integrity sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ== process@^0.11.10: version "0.11.10" @@ -953,6 +1494,11 @@ proxy-addr@~2.0.7: forwarded "0.2.0" ipaddr.js "1.9.1" +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + pump@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" @@ -968,6 +1514,11 @@ qs@6.11.0: dependencies: side-channel "^1.0.4" +queue-tick@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz" + integrity sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag== + quick-format-unescaped@^4.0.3: version "4.0.4" resolved "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz" @@ -980,7 +1531,7 @@ range-parser@~1.2.1: rate-limiter-flexible@^2.4.1: version "2.4.2" - resolved "https://registry.yarnpkg.com/rate-limiter-flexible/-/rate-limiter-flexible-2.4.2.tgz#2a219cc473f015142fd8fb599371223d730decbd" + resolved "https://registry.npmjs.org/rate-limiter-flexible/-/rate-limiter-flexible-2.4.2.tgz" integrity sha512-rMATGGOdO1suFyf/mI5LYhts71g1sbdhmd6YvdiXO2gJnd42Tt6QS4JUKJKSWVVkMtBacm6l40FR7Trjo6Iruw== raw-body@2.5.1: @@ -1003,7 +1554,16 @@ rc@^1.2.7: minimist "^1.2.0" strip-json-comments "~2.0.1" -readable-stream@^3.1.1, readable-stream@^3.4.0: +readable-stream@^3.1.1: + version "3.6.2" + resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz" + integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-stream@^3.4.0: version "3.6.2" resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz" integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== @@ -1027,19 +1587,50 @@ real-require@^0.2.0: resolved "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz" integrity sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg== -rxjs@^7.5.2: +redis-errors@^1.0.0, redis-errors@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz" + integrity sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w== + +redis-parser@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz" + integrity sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A== + dependencies: + redis-errors "^1.0.0" + +resolve-pkg-maps@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz" + integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== + +roarr@^7.0.4: + version "7.21.1" + resolved "https://registry.npmjs.org/roarr/-/roarr-7.21.1.tgz" + integrity sha512-3niqt5bXFY1InKU8HKWqqYTYjtrBaxBMnXELXCXUYgtNYGUtZM5rB46HIC430AyacL95iEniGf7RgqsesykLmQ== + dependencies: + fast-printf "^1.6.9" + safe-stable-stringify "^2.4.3" + semver-compare "^1.0.0" + +rxjs@*: version "7.8.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" + resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz" integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== dependencies: tslib "^2.1.0" -safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@~5.2.0: +safe-buffer@^5.0.1, safe-buffer@~5.2.0, safe-buffer@5.2.1: version "5.2.1" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== -safe-stable-stringify@^2.3.1: +safe-buffer@5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-stable-stringify@^2.3.1, safe-stable-stringify@^2.4.3: version "2.4.3" resolved "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz" integrity sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g== @@ -1049,10 +1640,15 @@ safe-stable-stringify@^2.3.1: resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -semver@^7.3.5: - version "7.5.0" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz" - integrity sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA== +semver-compare@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz" + integrity sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow== + +semver@^7.3.5, semver@^7.5.4: + version "7.6.0" + resolved "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz" + integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== dependencies: lru-cache "^6.0.0" @@ -1090,6 +1686,20 @@ setprototypeof@1.2.0: resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== +sharp@^0.32.6: + version "0.32.6" + resolved "https://registry.npmjs.org/sharp/-/sharp-0.32.6.tgz" + integrity sha512-KyLTWwgcR9Oe4d9HwCwNM2l7+J0dUQwn/yf7S0EnTtb0eVS4RxO0eUSvxPtzT4F3SY+C4K6fqdv/DO27sJ/v/w== + dependencies: + color "^4.2.3" + detect-libc "^2.0.2" + node-addon-api "^6.1.0" + prebuild-install "^7.1.1" + semver "^7.5.4" + simple-get "^4.0.1" + tar-fs "^3.0.4" + tunnel-agent "^0.6.0" + side-channel@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz" @@ -1104,7 +1714,7 @@ simple-concat@^1.0.0: resolved "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz" integrity sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q== -simple-get@^4.0.0: +simple-get@^4.0.0, simple-get@^4.0.1: version "4.0.1" resolved "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz" integrity sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA== @@ -1113,23 +1723,45 @@ simple-get@^4.0.0: once "^1.3.1" simple-concat "^1.0.0" -sonic-boom@^3.1.0: - version "3.3.0" - resolved "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.3.0.tgz" - integrity sha512-LYxp34KlZ1a2Jb8ZQgFCK3niIHzibdwtwNUWKg0qQRzsDoJ3Gfgkf8KdBTFU3SkejDEIlWwnSnpVdOZIhFMl/g== +simple-swizzle@^0.2.2: + version "0.2.2" + resolved "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz" + integrity sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg== + dependencies: + is-arrayish "^0.3.1" + +sonic-boom@^3.7.0: + version "3.8.0" + resolved "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.0.tgz" + integrity sha512-ybz6OYOUjoQQCQ/i4LU8kaToD8ACtYP+Cj5qd2AO36bwbdewxWJ3ArmJ2cr6AvxlL2o0PqnCcPGUgkILbfkaCA== dependencies: atomic-sleep "^1.0.0" -split2@^4.0.0: +split2@^4.0.0, split2@^4.1.0: version "4.2.0" resolved "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz" integrity sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg== +standard-as-callback@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz" + integrity sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A== + statuses@2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== +streamx@^2.13.0, streamx@^2.15.0: + version "2.16.1" + resolved "https://registry.npmjs.org/streamx/-/streamx-2.16.1.tgz" + integrity sha512-m9QYj6WygWyWa3H1YY69amr4nVgy61xfjys7xO7kviL5rfIEc2naf+ewFiOA+aEJD7y0JO3h2GoiUv4TDwEGzQ== + dependencies: + fast-fifo "^1.1.0" + queue-tick "^1.0.1" + optionalDependencies: + bare-events "^2.2.0" + string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" @@ -1142,6 +1774,11 @@ strip-json-comments@~2.0.1: resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz" integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== +structured-headers@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/structured-headers/-/structured-headers-1.0.1.tgz" + integrity sha512-QYBxdBtA4Tl5rFPuqmbmdrS9kbtren74RTJTcs0VSQNVV5iRhJD4QlYTLD0+81SBwUQctjEQzjTRI3WG4DzICA== + tar-fs@^2.0.0: version "2.1.1" resolved "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz" @@ -1152,6 +1789,17 @@ tar-fs@^2.0.0: pump "^3.0.0" tar-stream "^2.1.4" +tar-fs@^3.0.4: + version "3.0.5" + resolved "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.5.tgz" + integrity sha512-JOgGAmZyMgbqpLwct7ZV8VzkEB6pxXFBVErLtb+XCOqzc6w1xiWKI9GVd6bwk68EX7eJ4DWmfXVmq8K2ziZTGg== + dependencies: + pump "^3.0.0" + tar-stream "^3.1.5" + optionalDependencies: + bare-fs "^2.1.1" + bare-path "^2.1.0" + tar-stream@^2.1.4: version "2.2.0" resolved "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz" @@ -1163,6 +1811,15 @@ tar-stream@^2.1.4: inherits "^2.0.3" readable-stream "^3.1.1" +tar-stream@^3.1.5: + version "3.1.7" + resolved "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz" + integrity sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ== + dependencies: + b4a "^1.6.4" + fast-fifo "^1.2.0" + streamx "^2.15.0" + thread-stream@^2.0.0: version "2.3.0" resolved "https://registry.npmjs.org/thread-stream/-/thread-stream-2.3.0.tgz" @@ -1172,7 +1829,7 @@ thread-stream@^2.0.0: tlds@^1.234.0: version "1.238.0" - resolved "https://registry.yarnpkg.com/tlds/-/tlds-1.238.0.tgz#ffe7c19c8940c35b497cda187a6927f9450325a4" + resolved "https://registry.npmjs.org/tlds/-/tlds-1.238.0.tgz" integrity sha512-lFPF9pZFhLrPodaJ0wt9QIN0l8jOxqmUezGZnm7BfkDSVd9q667oVIJukLVzhF+4oW7uDlrLlfJrL5yu9RWwew== toidentifier@1.0.1: @@ -1180,29 +1837,20 @@ toidentifier@1.0.1: resolved "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== -ts-node@^10.9.1: - version "10.9.1" - resolved "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz" - integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw== - dependencies: - "@cspotcode/source-map-support" "^0.8.0" - "@tsconfig/node10" "^1.0.7" - "@tsconfig/node12" "^1.0.7" - "@tsconfig/node14" "^1.0.0" - "@tsconfig/node16" "^1.0.2" - acorn "^8.4.1" - acorn-walk "^8.1.1" - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - v8-compile-cache-lib "^3.0.1" - yn "3.1.1" - tslib@^2.1.0: - version "2.5.2" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338" - integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA== + version "2.6.2" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + +tsx@^4.7.1: + version "4.7.1" + resolved "https://registry.npmjs.org/tsx/-/tsx-4.7.1.tgz" + integrity sha512-8d6VuibXHtlN5E3zFkgY8u4DX7Y3Z27zvvPKVmLon/D4AjuKzarkUBTLDBgj9iTQ0hg5xM7c/mYiRVM+HETf0g== + dependencies: + esbuild "~0.19.10" + get-tsconfig "^4.7.2" + optionalDependencies: + fsevents "~2.3.3" tunnel-agent@^0.6.0: version "0.6.0" @@ -1211,6 +1859,11 @@ tunnel-agent@^0.6.0: dependencies: safe-buffer "^5.0.1" +type-fest@^2.3.3: + version "2.19.0" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz" + integrity sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA== + type-is@~1.6.18: version "1.6.18" resolved "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz" @@ -1221,10 +1874,10 @@ type-is@~1.6.18: typed-emitter@^2.1.0: version "2.1.0" - resolved "https://registry.yarnpkg.com/typed-emitter/-/typed-emitter-2.1.0.tgz#ca78e3d8ef1476f228f548d62e04e3d4d3fd77fb" + resolved "https://registry.npmjs.org/typed-emitter/-/typed-emitter-2.1.0.tgz" integrity sha512-g/KzbYKbH5C2vPkaXGu8DJlHrGKHLsM25Zg9WuC9pMGfuvT+X25tZQWo5fK1BjBm8+UrVE9LDCvaY0CQk+fXDA== optionalDependencies: - rxjs "^7.5.2" + rxjs "*" typescript@^5.0.4: version "5.0.4" @@ -1238,7 +1891,14 @@ uint8arrays@3.0.0: dependencies: multiformats "^9.4.2" -unpipe@1.0.0, unpipe@~1.0.0: +undici@^5.28.3: + version "5.28.3" + resolved "https://registry.npmjs.org/undici/-/undici-5.28.3.tgz" + integrity sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA== + dependencies: + "@fastify/busboy" "^2.0.0" + +unpipe@~1.0.0, unpipe@1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== @@ -1253,17 +1913,12 @@ utils-merge@1.0.1: resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz" integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== -v8-compile-cache-lib@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz" - integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== - varint@^6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/varint/-/varint-6.0.0.tgz" integrity sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg== -vary@~1.1.2: +vary@^1, vary@~1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== @@ -1278,22 +1933,22 @@ ws@^8.12.0: resolved "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz" integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA== +xtend@^4.0.0: + version "4.0.2" + resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" + integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== + yallist@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== -yn@3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" - integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== +zod@^3.14.2, zod@^3.21.4: + version "3.22.2" + resolved "https://registry.npmjs.org/zod/-/zod-3.22.2.tgz" + integrity sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg== zod@3.21.4: version "3.21.4" - resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db" + resolved "https://registry.npmjs.org/zod/-/zod-3.21.4.tgz" integrity sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw== - -zod@^3.21.4: - version "3.22.2" - resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.2.tgz#3add8c682b7077c05ac6f979fea6998b573e157b" - integrity sha512-wvWkphh5WQsJbVk1tbx1l1Ly4yg+XecD+Mq280uBGt9wa5BKSWf4Mhp6GmrkPixhMxmabYY7RbzlwVP32pbGCg==