From a3243820c97aa790aabbb68309ea77498dbefc15 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 3 Aug 2026 12:06:59 +0300 Subject: [PATCH] add lexicon codegen: vendored lexicons, lex cli and generation scripts Co-Authored-By: Claude Fable 5 --- .gitignore | 3 + .oxlintrc.json | 1 + .prettierignore | 1 + lexicons.json | 1503 +++++++++++++++++ lexicons/app/bsky/actor/defs.json | 985 +++++++++++ lexicons/app/bsky/actor/getPreferences.json | 30 + lexicons/app/bsky/actor/getProfile.json | 31 + lexicons/app/bsky/actor/getProfiles.json | 45 + lexicons/app/bsky/actor/getSuggestions.json | 54 + lexicons/app/bsky/actor/profile.json | 75 + lexicons/app/bsky/actor/putPreferences.json | 26 + lexicons/app/bsky/actor/searchActors.json | 54 + .../app/bsky/actor/searchActorsTypeahead.json | 48 + lexicons/app/bsky/actor/status.json | 48 + lexicons/app/bsky/ageassurance/begin.json | 61 + lexicons/app/bsky/ageassurance/defs.json | 321 ++++ lexicons/app/bsky/ageassurance/getConfig.json | 18 + lexicons/app/bsky/ageassurance/getState.json | 45 + lexicons/app/bsky/authCreatePosts.json | 38 + lexicons/app/bsky/authDeleteContent.json | 30 + lexicons/app/bsky/authFullApp.json | 142 ++ .../app/bsky/authManageFeedDeclarations.json | 28 + .../app/bsky/authManageLabelerService.json | 28 + lexicons/app/bsky/authManageModeration.json | 44 + .../app/bsky/authManageNotifications.json | 33 + lexicons/app/bsky/authManageProfile.json | 30 + lexicons/app/bsky/authViewAll.json | 91 + .../app/bsky/bookmark/createBookmark.json | 37 + lexicons/app/bsky/bookmark/defs.json | 47 + .../app/bsky/bookmark/deleteBookmark.json | 32 + lexicons/app/bsky/bookmark/getBookmarks.json | 46 + lexicons/app/bsky/contact/defs.json | 67 + lexicons/app/bsky/contact/dismissMatch.json | 42 + lexicons/app/bsky/contact/getMatches.json | 60 + lexicons/app/bsky/contact/getSyncStatus.json | 36 + lexicons/app/bsky/contact/importContacts.json | 72 + lexicons/app/bsky/contact/removeData.json | 33 + .../app/bsky/contact/sendNotification.json | 40 + .../bsky/contact/startPhoneVerification.json | 47 + lexicons/app/bsky/contact/verifyPhone.json | 63 + lexicons/app/bsky/draft/createDraft.json | 47 + lexicons/app/bsky/draft/defs.json | 296 ++++ lexicons/app/bsky/draft/deleteDraft.json | 26 + lexicons/app/bsky/draft/getDrafts.json | 46 + lexicons/app/bsky/draft/updateDraft.json | 26 + lexicons/app/bsky/embed/defs.json | 25 + lexicons/app/bsky/embed/external.json | 210 +++ lexicons/app/bsky/embed/gallery.json | 99 ++ .../app/bsky/embed/getEmbedExternalView.json | 62 + lexicons/app/bsky/embed/images.json | 93 + lexicons/app/bsky/embed/record.json | 162 ++ lexicons/app/bsky/embed/recordWithMedia.json | 52 + lexicons/app/bsky/embed/video.json | 108 ++ lexicons/app/bsky/feed/defs.json | 545 ++++++ .../app/bsky/feed/describeFeedGenerator.json | 61 + lexicons/app/bsky/feed/generator.json | 73 + lexicons/app/bsky/feed/getActorFeeds.json | 53 + lexicons/app/bsky/feed/getActorLikes.json | 61 + lexicons/app/bsky/feed/getAuthorFeed.json | 77 + lexicons/app/bsky/feed/getFeed.json | 58 + lexicons/app/bsky/feed/getFeedGenerator.json | 49 + lexicons/app/bsky/feed/getFeedGenerators.json | 44 + lexicons/app/bsky/feed/getFeedSkeleton.json | 64 + lexicons/app/bsky/feed/getLikes.json | 90 + lexicons/app/bsky/feed/getListFeed.json | 59 + lexicons/app/bsky/feed/getPostThread.json | 66 + lexicons/app/bsky/feed/getPosts.json | 46 + lexicons/app/bsky/feed/getQuotes.json | 68 + lexicons/app/bsky/feed/getRepostedBy.json | 68 + lexicons/app/bsky/feed/getSuggestedFeeds.json | 46 + lexicons/app/bsky/feed/getTimeline.json | 50 + lexicons/app/bsky/feed/like.json | 33 + lexicons/app/bsky/feed/post.json | 146 ++ lexicons/app/bsky/feed/postgate.json | 55 + lexicons/app/bsky/feed/repost.json | 33 + lexicons/app/bsky/feed/searchPosts.json | 113 ++ lexicons/app/bsky/feed/searchPostsV2.json | 251 +++ lexicons/app/bsky/feed/sendInteractions.json | 40 + lexicons/app/bsky/feed/threadgate.json | 81 + lexicons/app/bsky/graph/block.json | 30 + lexicons/app/bsky/graph/defs.json | 353 ++++ lexicons/app/bsky/graph/follow.json | 33 + .../app/bsky/graph/getActorStarterPacks.json | 53 + lexicons/app/bsky/graph/getBlocks.json | 46 + lexicons/app/bsky/graph/getFollowers.json | 58 + lexicons/app/bsky/graph/getFollows.json | 58 + .../app/bsky/graph/getKnownFollowers.json | 58 + lexicons/app/bsky/graph/getList.json | 59 + lexicons/app/bsky/graph/getListBlocks.json | 46 + lexicons/app/bsky/graph/getListMutes.json | 46 + lexicons/app/bsky/graph/getLists.json | 65 + .../bsky/graph/getListsWithMembership.json | 82 + lexicons/app/bsky/graph/getMutes.json | 46 + lexicons/app/bsky/graph/getRelationships.json | 64 + lexicons/app/bsky/graph/getStarterPack.json | 39 + lexicons/app/bsky/graph/getStarterPacks.json | 45 + .../graph/getStarterPacksWithMembership.json | 71 + .../graph/getSuggestedFollowsByActor.json | 54 + lexicons/app/bsky/graph/list.json | 63 + lexicons/app/bsky/graph/listblock.json | 30 + lexicons/app/bsky/graph/listitem.json | 36 + lexicons/app/bsky/graph/muteActor.json | 26 + lexicons/app/bsky/graph/muteActorList.json | 26 + lexicons/app/bsky/graph/muteThread.json | 26 + .../app/bsky/graph/searchStarterPacks.json | 53 + .../app/bsky/graph/searchStarterPacksV2.json | 52 + lexicons/app/bsky/graph/starterpack.json | 70 + lexicons/app/bsky/graph/unmuteActor.json | 26 + lexicons/app/bsky/graph/unmuteActorList.json | 26 + lexicons/app/bsky/graph/unmuteThread.json | 26 + lexicons/app/bsky/graph/verification.json | 42 + lexicons/app/bsky/labeler/defs.json | 153 ++ lexicons/app/bsky/labeler/getServices.json | 51 + lexicons/app/bsky/labeler/service.json | 59 + .../app/bsky/notification/declaration.json | 29 + lexicons/app/bsky/notification/defs.json | 175 ++ .../app/bsky/notification/getPreferences.json | 30 + .../app/bsky/notification/getUnreadCount.json | 37 + .../listActivitySubscriptions.json | 46 + .../bsky/notification/listNotifications.json | 134 ++ .../notification/putActivitySubscription.json | 50 + .../app/bsky/notification/putPreferences.json | 25 + .../bsky/notification/putPreferencesV2.json | 87 + .../app/bsky/notification/registerPush.json | 47 + .../app/bsky/notification/unregisterPush.json | 43 + .../app/bsky/notification/updateSeen.json | 26 + lexicons/app/bsky/richtext/facet.json | 90 + lexicons/app/bsky/unspecced/defs.json | 259 +++ .../bsky/unspecced/getAgeAssuranceState.json | 17 + lexicons/app/bsky/unspecced/getConfig.json | 45 + .../getOnboardingSuggestedStarterPacks.json | 37 + .../unspecced/getPopularFeedGenerators.json | 46 + .../bsky/unspecced/getPostThreadOtherV2.json | 56 + .../app/bsky/unspecced/getPostThreadV2.json | 94 ++ .../app/bsky/unspecced/getSuggestedFeeds.json | 37 + .../unspecced/getSuggestedFeedsSkeleton.json | 42 + .../getSuggestedOnboardingUsers.json | 49 + .../unspecced/getSuggestedStarterPacks.json | 37 + .../getSuggestedStarterPacksSkeleton.json | 42 + .../app/bsky/unspecced/getSuggestedUsers.json | 49 + .../getSuggestedUsersForDiscover.json | 41 + .../getSuggestedUsersForExplore.json | 45 + .../getSuggestedUsersForSeeMore.json | 45 + .../unspecced/getSuggestedUsersSkeleton.json | 54 + .../unspecced/getSuggestionsSkeleton.json | 66 + .../bsky/unspecced/getTaggedSuggestions.json | 47 + .../app/bsky/unspecced/getTrendingTopics.json | 49 + lexicons/app/bsky/unspecced/getTrends.json | 41 + .../app/bsky/unspecced/getTrendsSkeleton.json | 42 + .../app/bsky/unspecced/initAgeAssurance.json | 49 + .../bsky/unspecced/searchActorsSkeleton.json | 67 + .../bsky/unspecced/searchPostsSkeleton.json | 110 ++ .../unspecced/searchStarterPacksSkeleton.json | 63 + lexicons/app/bsky/video/defs.json | 47 + lexicons/app/bsky/video/getJobStatus.json | 37 + lexicons/app/bsky/video/getUploadLimits.json | 37 + lexicons/app/bsky/video/uploadVideo.json | 29 + lexicons/chat/bsky/actor/declaration.json | 37 + lexicons/chat/bsky/actor/defs.json | 105 ++ lexicons/chat/bsky/actor/deleteAccount.json | 17 + .../chat/bsky/actor/exportAccountData.json | 13 + lexicons/chat/bsky/actor/getStatus.json | 36 + lexicons/chat/bsky/authFullChatClient.json | 76 + lexicons/chat/bsky/convo/acceptConvo.json | 42 + lexicons/chat/bsky/convo/addReaction.json | 73 + lexicons/chat/bsky/convo/defs.json | 1312 ++++++++++++++ .../chat/bsky/convo/deleteMessageForSelf.json | 45 + .../chat/bsky/convo/exportAccountData.json | 13 + lexicons/chat/bsky/convo/getConvo.json | 42 + .../chat/bsky/convo/getConvoAvailability.json | 46 + .../chat/bsky/convo/getConvoForMembers.json | 63 + lexicons/chat/bsky/convo/getConvoMembers.json | 57 + lexicons/chat/bsky/convo/getLog.json | 71 + lexicons/chat/bsky/convo/getMessages.json | 69 + lexicons/chat/bsky/convo/getUnreadCounts.json | 41 + lexicons/chat/bsky/convo/leaveConvo.json | 52 + .../chat/bsky/convo/listConvoRequests.json | 49 + lexicons/chat/bsky/convo/listConvos.json | 77 + lexicons/chat/bsky/convo/lockConvo.json | 51 + lexicons/chat/bsky/convo/muteConvo.json | 45 + lexicons/chat/bsky/convo/removeReaction.json | 69 + lexicons/chat/bsky/convo/sendMessage.json | 48 + .../chat/bsky/convo/sendMessageBatch.json | 75 + lexicons/chat/bsky/convo/unlockConvo.json | 51 + lexicons/chat/bsky/convo/unmuteConvo.json | 45 + lexicons/chat/bsky/convo/updateAllRead.json | 41 + lexicons/chat/bsky/convo/updateRead.json | 48 + lexicons/chat/bsky/embed/joinLink.json | 36 + lexicons/chat/bsky/group/addMembers.json | 88 + .../chat/bsky/group/approveJoinRequest.json | 56 + lexicons/chat/bsky/group/createGroup.json | 75 + lexicons/chat/bsky/group/createJoinLink.json | 60 + lexicons/chat/bsky/group/defs.json | 192 +++ lexicons/chat/bsky/group/disableJoinLink.json | 51 + lexicons/chat/bsky/group/editGroup.json | 58 + lexicons/chat/bsky/group/editJoinLink.json | 58 + lexicons/chat/bsky/group/enableJoinLink.json | 54 + .../chat/bsky/group/getJoinLinkPreviews.json | 49 + .../chat/bsky/group/listJoinRequests.json | 60 + .../chat/bsky/group/listMutualGroups.json | 53 + .../chat/bsky/group/rejectJoinRequest.json | 46 + lexicons/chat/bsky/group/removeMembers.json | 57 + lexicons/chat/bsky/group/requestJoin.json | 68 + .../bsky/group/updateJoinRequestsRead.json | 41 + .../chat/bsky/group/withdrawJoinRequest.json | 38 + lexicons/chat/bsky/moderation/defs.json | 81 + .../bsky/moderation/getActorMetadata.json | 70 + lexicons/chat/bsky/moderation/getConvo.json | 42 + .../chat/bsky/moderation/getConvoMembers.json | 57 + lexicons/chat/bsky/moderation/getConvos.json | 45 + .../bsky/moderation/getMessageContext.json | 63 + .../bsky/moderation/subscribeModEvents.json | 675 ++++++++ .../bsky/moderation/updateActorAccess.json | 32 + lexicons/chat/bsky/notification/defs.json | 43 + .../bsky/notification/getPreferences.json | 26 + .../bsky/notification/putPreferences.json | 42 + lexicons/com/atproto/admin/defs.json | 132 ++ lexicons/com/atproto/admin/deleteAccount.json | 26 + .../atproto/admin/disableAccountInvites.json | 30 + .../com/atproto/admin/disableInviteCodes.json | 31 + .../atproto/admin/enableAccountInvites.json | 30 + .../com/atproto/admin/getAccountInfo.json | 30 + .../com/atproto/admin/getAccountInfos.json | 44 + .../com/atproto/admin/getInviteCodes.json | 54 + .../com/atproto/admin/getSubjectStatus.json | 55 + .../com/atproto/admin/searchAccounts.json | 49 + lexicons/com/atproto/admin/sendEmail.json | 56 + .../com/atproto/admin/updateAccountEmail.json | 31 + .../atproto/admin/updateAccountHandle.json | 31 + .../atproto/admin/updateAccountPassword.json | 30 + .../admin/updateAccountSigningKey.json | 32 + .../atproto/admin/updateSubjectStatus.json | 61 + lexicons/com/atproto/identity/defs.json | 30 + .../getRecommendedDidCredentials.json | 38 + .../com/atproto/identity/refreshIdentity.json | 47 + .../requestPlcOperationSignature.json | 11 + lexicons/com/atproto/identity/resolveDid.json | 49 + .../com/atproto/identity/resolveHandle.json | 45 + .../com/atproto/identity/resolveIdentity.json | 45 + .../atproto/identity/signPlcOperation.json | 56 + .../atproto/identity/submitPlcOperation.json | 25 + .../com/atproto/identity/updateHandle.json | 27 + lexicons/com/atproto/label/defs.json | 190 +++ lexicons/com/atproto/label/queryLabels.json | 64 + .../com/atproto/label/subscribeLabels.json | 70 + .../com/atproto/lexicon/resolveLexicon.json | 58 + lexicons/com/atproto/lexicon/schema.json | 24 + .../com/atproto/moderation/createReport.json | 104 ++ lexicons/com/atproto/moderation/defs.json | 96 ++ lexicons/com/atproto/repo/applyWrites.json | 196 +++ lexicons/com/atproto/repo/createRecord.json | 90 + lexicons/com/atproto/repo/defs.json | 24 + lexicons/com/atproto/repo/deleteRecord.json | 66 + lexicons/com/atproto/repo/describeRepo.json | 63 + lexicons/com/atproto/repo/getRecord.json | 69 + lexicons/com/atproto/repo/importRepo.json | 14 + .../com/atproto/repo/listMissingBlobs.json | 63 + lexicons/com/atproto/repo/listRecords.json | 86 + lexicons/com/atproto/repo/putRecord.json | 98 ++ lexicons/com/atproto/repo/strongRef.json | 25 + lexicons/com/atproto/repo/uploadBlob.json | 28 + .../com/atproto/server/activateAccount.json | 11 + .../atproto/server/checkAccountStatus.json | 58 + lexicons/com/atproto/server/confirmEmail.json | 43 + .../com/atproto/server/createAccount.json | 113 ++ .../com/atproto/server/createAppPassword.json | 65 + .../com/atproto/server/createInviteCode.json | 43 + .../com/atproto/server/createInviteCodes.json | 73 + .../com/atproto/server/createSession.json | 97 ++ .../com/atproto/server/deactivateAccount.json | 24 + lexicons/com/atproto/server/defs.json | 64 + .../com/atproto/server/deleteAccount.json | 42 + .../com/atproto/server/deleteSession.json | 19 + .../com/atproto/server/describeServer.json | 73 + .../atproto/server/getAccountInviteCodes.json | 48 + .../com/atproto/server/getServiceAuth.json | 53 + lexicons/com/atproto/server/getSession.json | 55 + .../com/atproto/server/listAppPasswords.json | 53 + .../com/atproto/server/refreshSession.json | 74 + .../atproto/server/requestAccountDelete.json | 11 + .../server/requestEmailConfirmation.json | 11 + .../atproto/server/requestEmailUpdate.json | 25 + .../atproto/server/requestPasswordReset.json | 25 + .../com/atproto/server/reserveSigningKey.json | 39 + .../com/atproto/server/resetPassword.json | 37 + .../com/atproto/server/revokeAppPassword.json | 25 + lexicons/com/atproto/server/updateEmail.json | 43 + lexicons/com/atproto/sync/defs.json | 17 + lexicons/com/atproto/sync/getBlob.json | 50 + lexicons/com/atproto/sync/getBlocks.json | 52 + lexicons/com/atproto/sync/getCheckout.json | 27 + lexicons/com/atproto/sync/getHead.json | 44 + lexicons/com/atproto/sync/getHostStatus.json | 54 + .../com/atproto/sync/getLatestCommit.json | 58 + lexicons/com/atproto/sync/getRecord.json | 55 + lexicons/com/atproto/sync/getRepo.json | 46 + lexicons/com/atproto/sync/getRepoStatus.json | 65 + lexicons/com/atproto/sync/listBlobs.json | 73 + lexicons/com/atproto/sync/listHosts.json | 70 + lexicons/com/atproto/sync/listRepos.json | 84 + .../atproto/sync/listReposByCollection.json | 66 + lexicons/com/atproto/sync/notifyOfUpdate.json | 26 + lexicons/com/atproto/sync/requestCrawl.json | 31 + lexicons/com/atproto/sync/subscribeRepos.json | 276 +++ .../atproto/temp/checkHandleAvailability.json | 88 + .../com/atproto/temp/checkSignupQueue.json | 22 + lexicons/com/germnetwork/declaration.json | 75 + lexicons/tools/ozone/report/defs.json | 212 +++ package.json | 9 +- pnpm-lock.yaml | 397 ++++- pnpm-workspace.yaml | 1 + 311 files changed, 23342 insertions(+), 14 deletions(-) create mode 100644 lexicons.json create mode 100644 lexicons/app/bsky/actor/defs.json create mode 100644 lexicons/app/bsky/actor/getPreferences.json create mode 100644 lexicons/app/bsky/actor/getProfile.json create mode 100644 lexicons/app/bsky/actor/getProfiles.json create mode 100644 lexicons/app/bsky/actor/getSuggestions.json create mode 100644 lexicons/app/bsky/actor/profile.json create mode 100644 lexicons/app/bsky/actor/putPreferences.json create mode 100644 lexicons/app/bsky/actor/searchActors.json create mode 100644 lexicons/app/bsky/actor/searchActorsTypeahead.json create mode 100644 lexicons/app/bsky/actor/status.json create mode 100644 lexicons/app/bsky/ageassurance/begin.json create mode 100644 lexicons/app/bsky/ageassurance/defs.json create mode 100644 lexicons/app/bsky/ageassurance/getConfig.json create mode 100644 lexicons/app/bsky/ageassurance/getState.json create mode 100644 lexicons/app/bsky/authCreatePosts.json create mode 100644 lexicons/app/bsky/authDeleteContent.json create mode 100644 lexicons/app/bsky/authFullApp.json create mode 100644 lexicons/app/bsky/authManageFeedDeclarations.json create mode 100644 lexicons/app/bsky/authManageLabelerService.json create mode 100644 lexicons/app/bsky/authManageModeration.json create mode 100644 lexicons/app/bsky/authManageNotifications.json create mode 100644 lexicons/app/bsky/authManageProfile.json create mode 100644 lexicons/app/bsky/authViewAll.json create mode 100644 lexicons/app/bsky/bookmark/createBookmark.json create mode 100644 lexicons/app/bsky/bookmark/defs.json create mode 100644 lexicons/app/bsky/bookmark/deleteBookmark.json create mode 100644 lexicons/app/bsky/bookmark/getBookmarks.json create mode 100644 lexicons/app/bsky/contact/defs.json create mode 100644 lexicons/app/bsky/contact/dismissMatch.json create mode 100644 lexicons/app/bsky/contact/getMatches.json create mode 100644 lexicons/app/bsky/contact/getSyncStatus.json create mode 100644 lexicons/app/bsky/contact/importContacts.json create mode 100644 lexicons/app/bsky/contact/removeData.json create mode 100644 lexicons/app/bsky/contact/sendNotification.json create mode 100644 lexicons/app/bsky/contact/startPhoneVerification.json create mode 100644 lexicons/app/bsky/contact/verifyPhone.json create mode 100644 lexicons/app/bsky/draft/createDraft.json create mode 100644 lexicons/app/bsky/draft/defs.json create mode 100644 lexicons/app/bsky/draft/deleteDraft.json create mode 100644 lexicons/app/bsky/draft/getDrafts.json create mode 100644 lexicons/app/bsky/draft/updateDraft.json create mode 100644 lexicons/app/bsky/embed/defs.json create mode 100644 lexicons/app/bsky/embed/external.json create mode 100644 lexicons/app/bsky/embed/gallery.json create mode 100644 lexicons/app/bsky/embed/getEmbedExternalView.json create mode 100644 lexicons/app/bsky/embed/images.json create mode 100644 lexicons/app/bsky/embed/record.json create mode 100644 lexicons/app/bsky/embed/recordWithMedia.json create mode 100644 lexicons/app/bsky/embed/video.json create mode 100644 lexicons/app/bsky/feed/defs.json create mode 100644 lexicons/app/bsky/feed/describeFeedGenerator.json create mode 100644 lexicons/app/bsky/feed/generator.json create mode 100644 lexicons/app/bsky/feed/getActorFeeds.json create mode 100644 lexicons/app/bsky/feed/getActorLikes.json create mode 100644 lexicons/app/bsky/feed/getAuthorFeed.json create mode 100644 lexicons/app/bsky/feed/getFeed.json create mode 100644 lexicons/app/bsky/feed/getFeedGenerator.json create mode 100644 lexicons/app/bsky/feed/getFeedGenerators.json create mode 100644 lexicons/app/bsky/feed/getFeedSkeleton.json create mode 100644 lexicons/app/bsky/feed/getLikes.json create mode 100644 lexicons/app/bsky/feed/getListFeed.json create mode 100644 lexicons/app/bsky/feed/getPostThread.json create mode 100644 lexicons/app/bsky/feed/getPosts.json create mode 100644 lexicons/app/bsky/feed/getQuotes.json create mode 100644 lexicons/app/bsky/feed/getRepostedBy.json create mode 100644 lexicons/app/bsky/feed/getSuggestedFeeds.json create mode 100644 lexicons/app/bsky/feed/getTimeline.json create mode 100644 lexicons/app/bsky/feed/like.json create mode 100644 lexicons/app/bsky/feed/post.json create mode 100644 lexicons/app/bsky/feed/postgate.json create mode 100644 lexicons/app/bsky/feed/repost.json create mode 100644 lexicons/app/bsky/feed/searchPosts.json create mode 100644 lexicons/app/bsky/feed/searchPostsV2.json create mode 100644 lexicons/app/bsky/feed/sendInteractions.json create mode 100644 lexicons/app/bsky/feed/threadgate.json create mode 100644 lexicons/app/bsky/graph/block.json create mode 100644 lexicons/app/bsky/graph/defs.json create mode 100644 lexicons/app/bsky/graph/follow.json create mode 100644 lexicons/app/bsky/graph/getActorStarterPacks.json create mode 100644 lexicons/app/bsky/graph/getBlocks.json create mode 100644 lexicons/app/bsky/graph/getFollowers.json create mode 100644 lexicons/app/bsky/graph/getFollows.json create mode 100644 lexicons/app/bsky/graph/getKnownFollowers.json create mode 100644 lexicons/app/bsky/graph/getList.json create mode 100644 lexicons/app/bsky/graph/getListBlocks.json create mode 100644 lexicons/app/bsky/graph/getListMutes.json create mode 100644 lexicons/app/bsky/graph/getLists.json create mode 100644 lexicons/app/bsky/graph/getListsWithMembership.json create mode 100644 lexicons/app/bsky/graph/getMutes.json create mode 100644 lexicons/app/bsky/graph/getRelationships.json create mode 100644 lexicons/app/bsky/graph/getStarterPack.json create mode 100644 lexicons/app/bsky/graph/getStarterPacks.json create mode 100644 lexicons/app/bsky/graph/getStarterPacksWithMembership.json create mode 100644 lexicons/app/bsky/graph/getSuggestedFollowsByActor.json create mode 100644 lexicons/app/bsky/graph/list.json create mode 100644 lexicons/app/bsky/graph/listblock.json create mode 100644 lexicons/app/bsky/graph/listitem.json create mode 100644 lexicons/app/bsky/graph/muteActor.json create mode 100644 lexicons/app/bsky/graph/muteActorList.json create mode 100644 lexicons/app/bsky/graph/muteThread.json create mode 100644 lexicons/app/bsky/graph/searchStarterPacks.json create mode 100644 lexicons/app/bsky/graph/searchStarterPacksV2.json create mode 100644 lexicons/app/bsky/graph/starterpack.json create mode 100644 lexicons/app/bsky/graph/unmuteActor.json create mode 100644 lexicons/app/bsky/graph/unmuteActorList.json create mode 100644 lexicons/app/bsky/graph/unmuteThread.json create mode 100644 lexicons/app/bsky/graph/verification.json create mode 100644 lexicons/app/bsky/labeler/defs.json create mode 100644 lexicons/app/bsky/labeler/getServices.json create mode 100644 lexicons/app/bsky/labeler/service.json create mode 100644 lexicons/app/bsky/notification/declaration.json create mode 100644 lexicons/app/bsky/notification/defs.json create mode 100644 lexicons/app/bsky/notification/getPreferences.json create mode 100644 lexicons/app/bsky/notification/getUnreadCount.json create mode 100644 lexicons/app/bsky/notification/listActivitySubscriptions.json create mode 100644 lexicons/app/bsky/notification/listNotifications.json create mode 100644 lexicons/app/bsky/notification/putActivitySubscription.json create mode 100644 lexicons/app/bsky/notification/putPreferences.json create mode 100644 lexicons/app/bsky/notification/putPreferencesV2.json create mode 100644 lexicons/app/bsky/notification/registerPush.json create mode 100644 lexicons/app/bsky/notification/unregisterPush.json create mode 100644 lexicons/app/bsky/notification/updateSeen.json create mode 100644 lexicons/app/bsky/richtext/facet.json create mode 100644 lexicons/app/bsky/unspecced/defs.json create mode 100644 lexicons/app/bsky/unspecced/getAgeAssuranceState.json create mode 100644 lexicons/app/bsky/unspecced/getConfig.json create mode 100644 lexicons/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.json create mode 100644 lexicons/app/bsky/unspecced/getPopularFeedGenerators.json create mode 100644 lexicons/app/bsky/unspecced/getPostThreadOtherV2.json create mode 100644 lexicons/app/bsky/unspecced/getPostThreadV2.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedFeeds.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedFeedsSkeleton.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedOnboardingUsers.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedStarterPacks.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedUsers.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedUsersForDiscover.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedUsersForExplore.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedUsersForSeeMore.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestedUsersSkeleton.json create mode 100644 lexicons/app/bsky/unspecced/getSuggestionsSkeleton.json create mode 100644 lexicons/app/bsky/unspecced/getTaggedSuggestions.json create mode 100644 lexicons/app/bsky/unspecced/getTrendingTopics.json create mode 100644 lexicons/app/bsky/unspecced/getTrends.json create mode 100644 lexicons/app/bsky/unspecced/getTrendsSkeleton.json create mode 100644 lexicons/app/bsky/unspecced/initAgeAssurance.json create mode 100644 lexicons/app/bsky/unspecced/searchActorsSkeleton.json create mode 100644 lexicons/app/bsky/unspecced/searchPostsSkeleton.json create mode 100644 lexicons/app/bsky/unspecced/searchStarterPacksSkeleton.json create mode 100644 lexicons/app/bsky/video/defs.json create mode 100644 lexicons/app/bsky/video/getJobStatus.json create mode 100644 lexicons/app/bsky/video/getUploadLimits.json create mode 100644 lexicons/app/bsky/video/uploadVideo.json create mode 100644 lexicons/chat/bsky/actor/declaration.json create mode 100644 lexicons/chat/bsky/actor/defs.json create mode 100644 lexicons/chat/bsky/actor/deleteAccount.json create mode 100644 lexicons/chat/bsky/actor/exportAccountData.json create mode 100644 lexicons/chat/bsky/actor/getStatus.json create mode 100644 lexicons/chat/bsky/authFullChatClient.json create mode 100644 lexicons/chat/bsky/convo/acceptConvo.json create mode 100644 lexicons/chat/bsky/convo/addReaction.json create mode 100644 lexicons/chat/bsky/convo/defs.json create mode 100644 lexicons/chat/bsky/convo/deleteMessageForSelf.json create mode 100644 lexicons/chat/bsky/convo/exportAccountData.json create mode 100644 lexicons/chat/bsky/convo/getConvo.json create mode 100644 lexicons/chat/bsky/convo/getConvoAvailability.json create mode 100644 lexicons/chat/bsky/convo/getConvoForMembers.json create mode 100644 lexicons/chat/bsky/convo/getConvoMembers.json create mode 100644 lexicons/chat/bsky/convo/getLog.json create mode 100644 lexicons/chat/bsky/convo/getMessages.json create mode 100644 lexicons/chat/bsky/convo/getUnreadCounts.json create mode 100644 lexicons/chat/bsky/convo/leaveConvo.json create mode 100644 lexicons/chat/bsky/convo/listConvoRequests.json create mode 100644 lexicons/chat/bsky/convo/listConvos.json create mode 100644 lexicons/chat/bsky/convo/lockConvo.json create mode 100644 lexicons/chat/bsky/convo/muteConvo.json create mode 100644 lexicons/chat/bsky/convo/removeReaction.json create mode 100644 lexicons/chat/bsky/convo/sendMessage.json create mode 100644 lexicons/chat/bsky/convo/sendMessageBatch.json create mode 100644 lexicons/chat/bsky/convo/unlockConvo.json create mode 100644 lexicons/chat/bsky/convo/unmuteConvo.json create mode 100644 lexicons/chat/bsky/convo/updateAllRead.json create mode 100644 lexicons/chat/bsky/convo/updateRead.json create mode 100644 lexicons/chat/bsky/embed/joinLink.json create mode 100644 lexicons/chat/bsky/group/addMembers.json create mode 100644 lexicons/chat/bsky/group/approveJoinRequest.json create mode 100644 lexicons/chat/bsky/group/createGroup.json create mode 100644 lexicons/chat/bsky/group/createJoinLink.json create mode 100644 lexicons/chat/bsky/group/defs.json create mode 100644 lexicons/chat/bsky/group/disableJoinLink.json create mode 100644 lexicons/chat/bsky/group/editGroup.json create mode 100644 lexicons/chat/bsky/group/editJoinLink.json create mode 100644 lexicons/chat/bsky/group/enableJoinLink.json create mode 100644 lexicons/chat/bsky/group/getJoinLinkPreviews.json create mode 100644 lexicons/chat/bsky/group/listJoinRequests.json create mode 100644 lexicons/chat/bsky/group/listMutualGroups.json create mode 100644 lexicons/chat/bsky/group/rejectJoinRequest.json create mode 100644 lexicons/chat/bsky/group/removeMembers.json create mode 100644 lexicons/chat/bsky/group/requestJoin.json create mode 100644 lexicons/chat/bsky/group/updateJoinRequestsRead.json create mode 100644 lexicons/chat/bsky/group/withdrawJoinRequest.json create mode 100644 lexicons/chat/bsky/moderation/defs.json create mode 100644 lexicons/chat/bsky/moderation/getActorMetadata.json create mode 100644 lexicons/chat/bsky/moderation/getConvo.json create mode 100644 lexicons/chat/bsky/moderation/getConvoMembers.json create mode 100644 lexicons/chat/bsky/moderation/getConvos.json create mode 100644 lexicons/chat/bsky/moderation/getMessageContext.json create mode 100644 lexicons/chat/bsky/moderation/subscribeModEvents.json create mode 100644 lexicons/chat/bsky/moderation/updateActorAccess.json create mode 100644 lexicons/chat/bsky/notification/defs.json create mode 100644 lexicons/chat/bsky/notification/getPreferences.json create mode 100644 lexicons/chat/bsky/notification/putPreferences.json create mode 100644 lexicons/com/atproto/admin/defs.json create mode 100644 lexicons/com/atproto/admin/deleteAccount.json create mode 100644 lexicons/com/atproto/admin/disableAccountInvites.json create mode 100644 lexicons/com/atproto/admin/disableInviteCodes.json create mode 100644 lexicons/com/atproto/admin/enableAccountInvites.json create mode 100644 lexicons/com/atproto/admin/getAccountInfo.json create mode 100644 lexicons/com/atproto/admin/getAccountInfos.json create mode 100644 lexicons/com/atproto/admin/getInviteCodes.json create mode 100644 lexicons/com/atproto/admin/getSubjectStatus.json create mode 100644 lexicons/com/atproto/admin/searchAccounts.json create mode 100644 lexicons/com/atproto/admin/sendEmail.json create mode 100644 lexicons/com/atproto/admin/updateAccountEmail.json create mode 100644 lexicons/com/atproto/admin/updateAccountHandle.json create mode 100644 lexicons/com/atproto/admin/updateAccountPassword.json create mode 100644 lexicons/com/atproto/admin/updateAccountSigningKey.json create mode 100644 lexicons/com/atproto/admin/updateSubjectStatus.json create mode 100644 lexicons/com/atproto/identity/defs.json create mode 100644 lexicons/com/atproto/identity/getRecommendedDidCredentials.json create mode 100644 lexicons/com/atproto/identity/refreshIdentity.json create mode 100644 lexicons/com/atproto/identity/requestPlcOperationSignature.json create mode 100644 lexicons/com/atproto/identity/resolveDid.json create mode 100644 lexicons/com/atproto/identity/resolveHandle.json create mode 100644 lexicons/com/atproto/identity/resolveIdentity.json create mode 100644 lexicons/com/atproto/identity/signPlcOperation.json create mode 100644 lexicons/com/atproto/identity/submitPlcOperation.json create mode 100644 lexicons/com/atproto/identity/updateHandle.json create mode 100644 lexicons/com/atproto/label/defs.json create mode 100644 lexicons/com/atproto/label/queryLabels.json create mode 100644 lexicons/com/atproto/label/subscribeLabels.json create mode 100644 lexicons/com/atproto/lexicon/resolveLexicon.json create mode 100644 lexicons/com/atproto/lexicon/schema.json create mode 100644 lexicons/com/atproto/moderation/createReport.json create mode 100644 lexicons/com/atproto/moderation/defs.json create mode 100644 lexicons/com/atproto/repo/applyWrites.json create mode 100644 lexicons/com/atproto/repo/createRecord.json create mode 100644 lexicons/com/atproto/repo/defs.json create mode 100644 lexicons/com/atproto/repo/deleteRecord.json create mode 100644 lexicons/com/atproto/repo/describeRepo.json create mode 100644 lexicons/com/atproto/repo/getRecord.json create mode 100644 lexicons/com/atproto/repo/importRepo.json create mode 100644 lexicons/com/atproto/repo/listMissingBlobs.json create mode 100644 lexicons/com/atproto/repo/listRecords.json create mode 100644 lexicons/com/atproto/repo/putRecord.json create mode 100644 lexicons/com/atproto/repo/strongRef.json create mode 100644 lexicons/com/atproto/repo/uploadBlob.json create mode 100644 lexicons/com/atproto/server/activateAccount.json create mode 100644 lexicons/com/atproto/server/checkAccountStatus.json create mode 100644 lexicons/com/atproto/server/confirmEmail.json create mode 100644 lexicons/com/atproto/server/createAccount.json create mode 100644 lexicons/com/atproto/server/createAppPassword.json create mode 100644 lexicons/com/atproto/server/createInviteCode.json create mode 100644 lexicons/com/atproto/server/createInviteCodes.json create mode 100644 lexicons/com/atproto/server/createSession.json create mode 100644 lexicons/com/atproto/server/deactivateAccount.json create mode 100644 lexicons/com/atproto/server/defs.json create mode 100644 lexicons/com/atproto/server/deleteAccount.json create mode 100644 lexicons/com/atproto/server/deleteSession.json create mode 100644 lexicons/com/atproto/server/describeServer.json create mode 100644 lexicons/com/atproto/server/getAccountInviteCodes.json create mode 100644 lexicons/com/atproto/server/getServiceAuth.json create mode 100644 lexicons/com/atproto/server/getSession.json create mode 100644 lexicons/com/atproto/server/listAppPasswords.json create mode 100644 lexicons/com/atproto/server/refreshSession.json create mode 100644 lexicons/com/atproto/server/requestAccountDelete.json create mode 100644 lexicons/com/atproto/server/requestEmailConfirmation.json create mode 100644 lexicons/com/atproto/server/requestEmailUpdate.json create mode 100644 lexicons/com/atproto/server/requestPasswordReset.json create mode 100644 lexicons/com/atproto/server/reserveSigningKey.json create mode 100644 lexicons/com/atproto/server/resetPassword.json create mode 100644 lexicons/com/atproto/server/revokeAppPassword.json create mode 100644 lexicons/com/atproto/server/updateEmail.json create mode 100644 lexicons/com/atproto/sync/defs.json create mode 100644 lexicons/com/atproto/sync/getBlob.json create mode 100644 lexicons/com/atproto/sync/getBlocks.json create mode 100644 lexicons/com/atproto/sync/getCheckout.json create mode 100644 lexicons/com/atproto/sync/getHead.json create mode 100644 lexicons/com/atproto/sync/getHostStatus.json create mode 100644 lexicons/com/atproto/sync/getLatestCommit.json create mode 100644 lexicons/com/atproto/sync/getRecord.json create mode 100644 lexicons/com/atproto/sync/getRepo.json create mode 100644 lexicons/com/atproto/sync/getRepoStatus.json create mode 100644 lexicons/com/atproto/sync/listBlobs.json create mode 100644 lexicons/com/atproto/sync/listHosts.json create mode 100644 lexicons/com/atproto/sync/listRepos.json create mode 100644 lexicons/com/atproto/sync/listReposByCollection.json create mode 100644 lexicons/com/atproto/sync/notifyOfUpdate.json create mode 100644 lexicons/com/atproto/sync/requestCrawl.json create mode 100644 lexicons/com/atproto/sync/subscribeRepos.json create mode 100644 lexicons/com/atproto/temp/checkHandleAvailability.json create mode 100644 lexicons/com/atproto/temp/checkSignupQueue.json create mode 100644 lexicons/com/germnetwork/declaration.json create mode 100644 lexicons/tools/ozone/report/defs.json diff --git a/.gitignore b/.gitignore index 8a38445859..a9d64c266c 100644 --- a/.gitignore +++ b/.gitignore @@ -117,6 +117,9 @@ src/locale/locales/**/messages.js src/locale/locales/**/messages.mjs src/locale/locales/**/messages.ts +# generated lexicon schemas (pnpm lexicons:generate) +src/lexicons/ + # local builds *.apk *.aab diff --git a/.oxlintrc.json b/.oxlintrc.json index 63739f1f48..5868f74bb8 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -62,6 +62,7 @@ "bskyogcard/**", "src/locale/locales/_build/**", "src/locale/locales/**/*.js", + "src/lexicons/**", "*.e2e.ts", "*.e2e.tsx", "eslint.config.mjs", diff --git a/.prettierignore b/.prettierignore index afc71dbac1..be1658124a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -18,6 +18,7 @@ android ios src/locale/locales +src/lexicons lib/react-compiler-runtime bskyweb/static coverage diff --git a/lexicons.json b/lexicons.json new file mode 100644 index 0000000000..eb02ebdd7f --- /dev/null +++ b/lexicons.json @@ -0,0 +1,1503 @@ +{ + "version": 1, + "lexicons": [ + "app.bsky.actor.defs", + "app.bsky.actor.getPreferences", + "app.bsky.actor.getProfile", + "app.bsky.actor.getProfiles", + "app.bsky.actor.getSuggestions", + "app.bsky.actor.profile", + "app.bsky.actor.putPreferences", + "app.bsky.actor.searchActors", + "app.bsky.actor.searchActorsTypeahead", + "app.bsky.actor.status", + "app.bsky.ageassurance.begin", + "app.bsky.ageassurance.defs", + "app.bsky.ageassurance.getConfig", + "app.bsky.ageassurance.getState", + "app.bsky.authCreatePosts", + "app.bsky.authDeleteContent", + "app.bsky.authFullApp", + "app.bsky.authManageFeedDeclarations", + "app.bsky.authManageLabelerService", + "app.bsky.authManageModeration", + "app.bsky.authManageNotifications", + "app.bsky.authManageProfile", + "app.bsky.authViewAll", + "app.bsky.bookmark.createBookmark", + "app.bsky.bookmark.defs", + "app.bsky.bookmark.deleteBookmark", + "app.bsky.bookmark.getBookmarks", + "app.bsky.contact.defs", + "app.bsky.contact.dismissMatch", + "app.bsky.contact.getMatches", + "app.bsky.contact.getSyncStatus", + "app.bsky.contact.importContacts", + "app.bsky.contact.removeData", + "app.bsky.contact.sendNotification", + "app.bsky.contact.startPhoneVerification", + "app.bsky.contact.verifyPhone", + "app.bsky.draft.createDraft", + "app.bsky.draft.defs", + "app.bsky.draft.deleteDraft", + "app.bsky.draft.getDrafts", + "app.bsky.draft.updateDraft", + "app.bsky.embed.defs", + "app.bsky.embed.external", + "app.bsky.embed.gallery", + "app.bsky.embed.getEmbedExternalView", + "app.bsky.embed.images", + "app.bsky.embed.record", + "app.bsky.embed.recordWithMedia", + "app.bsky.embed.video", + "app.bsky.feed.defs", + "app.bsky.feed.describeFeedGenerator", + "app.bsky.feed.generator", + "app.bsky.feed.getActorFeeds", + "app.bsky.feed.getActorLikes", + "app.bsky.feed.getAuthorFeed", + "app.bsky.feed.getFeed", + "app.bsky.feed.getFeedGenerator", + "app.bsky.feed.getFeedGenerators", + "app.bsky.feed.getFeedSkeleton", + "app.bsky.feed.getLikes", + "app.bsky.feed.getListFeed", + "app.bsky.feed.getPostThread", + "app.bsky.feed.getPosts", + "app.bsky.feed.getQuotes", + "app.bsky.feed.getRepostedBy", + "app.bsky.feed.getSuggestedFeeds", + "app.bsky.feed.getTimeline", + "app.bsky.feed.like", + "app.bsky.feed.post", + "app.bsky.feed.postgate", + "app.bsky.feed.repost", + "app.bsky.feed.searchPosts", + "app.bsky.feed.searchPostsV2", + "app.bsky.feed.sendInteractions", + "app.bsky.feed.threadgate", + "app.bsky.graph.block", + "app.bsky.graph.defs", + "app.bsky.graph.follow", + "app.bsky.graph.getActorStarterPacks", + "app.bsky.graph.getBlocks", + "app.bsky.graph.getFollowers", + "app.bsky.graph.getFollows", + "app.bsky.graph.getKnownFollowers", + "app.bsky.graph.getList", + "app.bsky.graph.getListBlocks", + "app.bsky.graph.getListMutes", + "app.bsky.graph.getLists", + "app.bsky.graph.getListsWithMembership", + "app.bsky.graph.getMutes", + "app.bsky.graph.getRelationships", + "app.bsky.graph.getStarterPack", + "app.bsky.graph.getStarterPacks", + "app.bsky.graph.getStarterPacksWithMembership", + "app.bsky.graph.getSuggestedFollowsByActor", + "app.bsky.graph.list", + "app.bsky.graph.listblock", + "app.bsky.graph.listitem", + "app.bsky.graph.muteActor", + "app.bsky.graph.muteActorList", + "app.bsky.graph.muteThread", + "app.bsky.graph.searchStarterPacks", + "app.bsky.graph.searchStarterPacksV2", + "app.bsky.graph.starterpack", + "app.bsky.graph.unmuteActor", + "app.bsky.graph.unmuteActorList", + "app.bsky.graph.unmuteThread", + "app.bsky.graph.verification", + "app.bsky.labeler.defs", + "app.bsky.labeler.getServices", + "app.bsky.labeler.service", + "app.bsky.notification.declaration", + "app.bsky.notification.defs", + "app.bsky.notification.getPreferences", + "app.bsky.notification.getUnreadCount", + "app.bsky.notification.listActivitySubscriptions", + "app.bsky.notification.listNotifications", + "app.bsky.notification.putActivitySubscription", + "app.bsky.notification.putPreferences", + "app.bsky.notification.putPreferencesV2", + "app.bsky.notification.registerPush", + "app.bsky.notification.unregisterPush", + "app.bsky.notification.updateSeen", + "app.bsky.richtext.facet", + "app.bsky.unspecced.getSuggestedOnboardingUsers", + "app.bsky.unspecced.getSuggestedUsersForDiscover", + "app.bsky.unspecced.getSuggestedUsersForExplore", + "app.bsky.unspecced.getSuggestedUsersForSeeMore", + "app.bsky.video.defs", + "app.bsky.video.getJobStatus", + "app.bsky.video.getUploadLimits", + "app.bsky.video.uploadVideo", + "chat.bsky.actor.declaration", + "chat.bsky.actor.defs", + "chat.bsky.actor.deleteAccount", + "chat.bsky.actor.exportAccountData", + "chat.bsky.actor.getStatus", + "chat.bsky.authFullChatClient", + "chat.bsky.convo.acceptConvo", + "chat.bsky.convo.addReaction", + "chat.bsky.convo.defs", + "chat.bsky.convo.deleteMessageForSelf", + "chat.bsky.convo.getConvo", + "chat.bsky.convo.getConvoAvailability", + "chat.bsky.convo.getConvoForMembers", + "chat.bsky.convo.getConvoMembers", + "chat.bsky.convo.getLog", + "chat.bsky.convo.getMessages", + "chat.bsky.convo.getUnreadCounts", + "chat.bsky.convo.leaveConvo", + "chat.bsky.convo.listConvoRequests", + "chat.bsky.convo.listConvos", + "chat.bsky.convo.lockConvo", + "chat.bsky.convo.muteConvo", + "chat.bsky.convo.removeReaction", + "chat.bsky.convo.sendMessage", + "chat.bsky.convo.sendMessageBatch", + "chat.bsky.convo.unlockConvo", + "chat.bsky.convo.unmuteConvo", + "chat.bsky.convo.updateAllRead", + "chat.bsky.convo.updateRead", + "chat.bsky.embed.joinLink", + "chat.bsky.group.addMembers", + "chat.bsky.group.approveJoinRequest", + "chat.bsky.group.createGroup", + "chat.bsky.group.createJoinLink", + "chat.bsky.group.defs", + "chat.bsky.group.disableJoinLink", + "chat.bsky.group.editGroup", + "chat.bsky.group.editJoinLink", + "chat.bsky.group.enableJoinLink", + "chat.bsky.group.getJoinLinkPreviews", + "chat.bsky.group.listJoinRequests", + "chat.bsky.group.listMutualGroups", + "chat.bsky.group.rejectJoinRequest", + "chat.bsky.group.removeMembers", + "chat.bsky.group.requestJoin", + "chat.bsky.group.updateJoinRequestsRead", + "chat.bsky.group.withdrawJoinRequest", + "chat.bsky.moderation.defs", + "chat.bsky.moderation.getActorMetadata", + "chat.bsky.moderation.getConvo", + "chat.bsky.moderation.getConvoMembers", + "chat.bsky.moderation.getConvos", + "chat.bsky.moderation.getMessageContext", + "chat.bsky.moderation.subscribeModEvents", + "chat.bsky.moderation.updateActorAccess", + "chat.bsky.notification.defs", + "chat.bsky.notification.getPreferences", + "chat.bsky.notification.putPreferences", + "com.atproto.admin.defs", + "com.atproto.admin.deleteAccount", + "com.atproto.admin.disableAccountInvites", + "com.atproto.admin.disableInviteCodes", + "com.atproto.admin.enableAccountInvites", + "com.atproto.admin.getAccountInfo", + "com.atproto.admin.getAccountInfos", + "com.atproto.admin.getInviteCodes", + "com.atproto.admin.getSubjectStatus", + "com.atproto.admin.searchAccounts", + "com.atproto.admin.sendEmail", + "com.atproto.admin.updateAccountEmail", + "com.atproto.admin.updateAccountHandle", + "com.atproto.admin.updateAccountPassword", + "com.atproto.admin.updateAccountSigningKey", + "com.atproto.admin.updateSubjectStatus", + "com.atproto.identity.defs", + "com.atproto.identity.getRecommendedDidCredentials", + "com.atproto.identity.refreshIdentity", + "com.atproto.identity.requestPlcOperationSignature", + "com.atproto.identity.resolveDid", + "com.atproto.identity.resolveHandle", + "com.atproto.identity.resolveIdentity", + "com.atproto.identity.signPlcOperation", + "com.atproto.identity.submitPlcOperation", + "com.atproto.identity.updateHandle", + "com.atproto.label.defs", + "com.atproto.label.queryLabels", + "com.atproto.label.subscribeLabels", + "com.atproto.lexicon.resolveLexicon", + "com.atproto.lexicon.schema", + "com.atproto.moderation.createReport", + "com.atproto.moderation.defs", + "com.atproto.repo.applyWrites", + "com.atproto.repo.createRecord", + "com.atproto.repo.defs", + "com.atproto.repo.deleteRecord", + "com.atproto.repo.describeRepo", + "com.atproto.repo.getRecord", + "com.atproto.repo.importRepo", + "com.atproto.repo.listMissingBlobs", + "com.atproto.repo.listRecords", + "com.atproto.repo.putRecord", + "com.atproto.repo.strongRef", + "com.atproto.repo.uploadBlob", + "com.atproto.server.activateAccount", + "com.atproto.server.checkAccountStatus", + "com.atproto.server.confirmEmail", + "com.atproto.server.createAccount", + "com.atproto.server.createAppPassword", + "com.atproto.server.createInviteCode", + "com.atproto.server.createInviteCodes", + "com.atproto.server.createSession", + "com.atproto.server.deactivateAccount", + "com.atproto.server.defs", + "com.atproto.server.deleteAccount", + "com.atproto.server.deleteSession", + "com.atproto.server.describeServer", + "com.atproto.server.getAccountInviteCodes", + "com.atproto.server.getServiceAuth", + "com.atproto.server.getSession", + "com.atproto.server.listAppPasswords", + "com.atproto.server.refreshSession", + "com.atproto.server.requestAccountDelete", + "com.atproto.server.requestEmailConfirmation", + "com.atproto.server.requestEmailUpdate", + "com.atproto.server.requestPasswordReset", + "com.atproto.server.reserveSigningKey", + "com.atproto.server.resetPassword", + "com.atproto.server.revokeAppPassword", + "com.atproto.server.updateEmail", + "com.atproto.sync.defs", + "com.atproto.sync.getBlob", + "com.atproto.sync.getBlocks", + "com.atproto.sync.getCheckout", + "com.atproto.sync.getHead", + "com.atproto.sync.getHostStatus", + "com.atproto.sync.getLatestCommit", + "com.atproto.sync.getRecord", + "com.atproto.sync.getRepo", + "com.atproto.sync.getRepoStatus", + "com.atproto.sync.listBlobs", + "com.atproto.sync.listHosts", + "com.atproto.sync.listRepos", + "com.atproto.sync.listReposByCollection", + "com.atproto.sync.notifyOfUpdate", + "com.atproto.sync.requestCrawl", + "com.atproto.sync.subscribeRepos", + "com.atproto.temp.checkHandleAvailability", + "com.atproto.temp.checkSignupQueue", + "com.germnetwork.declaration" + ], + "resolutions": { + "app.bsky.actor.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.defs", + "cid": "bafyreielcp7ccfxuvtdthry5qqdqmvcqo5wx3shkuz32xd5rlypmhw6ufa" + }, + "app.bsky.actor.getPreferences": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.getPreferences", + "cid": "bafyreiftuoh6n5npkyelejxbzettltmgl46xm3qot5nkn7lm365ej2ahii" + }, + "app.bsky.actor.getProfile": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.getProfile", + "cid": "bafyreigrtosreva7e5m7bwbbfsmw77gkdnieizgxwpobw5iobuck3j54xa" + }, + "app.bsky.actor.getProfiles": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.getProfiles", + "cid": "bafyreihphrndnt2cvnv3nk442f6kohdnpagk4xip74f2jn36uoal25vhta" + }, + "app.bsky.actor.getSuggestions": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.getSuggestions", + "cid": "bafyreig7dhef4df3n72bj6pvklzija26yk5szxdzlixm5x72bingowmf3m" + }, + "app.bsky.actor.profile": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.profile", + "cid": "bafyreia6umzg3a6d7mjbow4p57tviey45muohklhgsvjoamcctoiusr4pe" + }, + "app.bsky.actor.putPreferences": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.putPreferences", + "cid": "bafyreietfhhwbwb3ltcffsonhw5p62z233frhe6edls67su5a3evqrykju" + }, + "app.bsky.actor.searchActors": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.searchActors", + "cid": "bafyreidfkzp3tcbxvqo3aty2prhnaiqoxxbjhrapaqmko2gtnymtgxyqdi" + }, + "app.bsky.actor.searchActorsTypeahead": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.searchActorsTypeahead", + "cid": "bafyreigydtxvpnrndvk7iws4uypd6adqzohcdafeuqajiqmmbcqq5vatmu" + }, + "app.bsky.actor.status": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.actor.status", + "cid": "bafyreifdg4b64wohpwkh5lydc6tckvol2rspnpni6dec6recy2rhvlnz4a" + }, + "app.bsky.ageassurance.begin": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.ageassurance.begin", + "cid": "bafyreieqogxqzohb5fdtw5jiqckscgipkbrtvluoodscm45ajw2ba26zpm" + }, + "app.bsky.ageassurance.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.ageassurance.defs", + "cid": "bafyreiesrww5hnnwhkhyfpym4vx6q6i6ipt5vu36pvra6avxpyah4764um" + }, + "app.bsky.ageassurance.getConfig": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.ageassurance.getConfig", + "cid": "bafyreifpfw7n3y6vqhiyqaqiyrmxm3lypkamyfk7dk6jzho7ujjujou6xq" + }, + "app.bsky.ageassurance.getState": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.ageassurance.getState", + "cid": "bafyreialq63q3obxzsrzbwx25stjmtha3frlifzbgkvtthr535oal3467y" + }, + "app.bsky.authCreatePosts": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authCreatePosts", + "cid": "bafyreignlmombjla5ca4lmqwkf2borlfhu3p3eedtezws3gq4f4vw36xmm" + }, + "app.bsky.authDeleteContent": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authDeleteContent", + "cid": "bafyreicjusvl5bcn7czq5wonsafs34swjjoxw5q2llvn3mpnxb7u5y3hhy" + }, + "app.bsky.authFullApp": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authFullApp", + "cid": "bafyreigpgncgpcqh6y46snppbxqoyc4ynt6n46mviurwifwl7o4p6iuexi" + }, + "app.bsky.authManageFeedDeclarations": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authManageFeedDeclarations", + "cid": "bafyreid6nhglngq5qf4aiwt6q73zc6kx3p537o7d62snzx5rcgpfxvofmy" + }, + "app.bsky.authManageLabelerService": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authManageLabelerService", + "cid": "bafyreibx7gbnishzposjg46tip75o36kzic4wl6r2hwvi5ob3kzegrzqve" + }, + "app.bsky.authManageModeration": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authManageModeration", + "cid": "bafyreidxd327vchmpfjegjwlehlud5bbg3zvecibu6yilcbwt4krpghv3e" + }, + "app.bsky.authManageNotifications": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authManageNotifications", + "cid": "bafyreifu7lmxqckf3zowb2b4j5dhr3dhazm3kvff3pxz3rq2i5dzwzgaxe" + }, + "app.bsky.authManageProfile": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authManageProfile", + "cid": "bafyreicbgdtxretdphpg3sa6j76byzy3k3eb6h2pvebsp22dqfdm65b55q" + }, + "app.bsky.authViewAll": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.authViewAll", + "cid": "bafyreihptgtcgoxpkdcabhcqjvrqmanfsd55cgqzsqi3wkgq5h5yobktrm" + }, + "app.bsky.bookmark.createBookmark": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.bookmark.createBookmark", + "cid": "bafyreiegg2yu2jl5kfswirsylpn56ro2pj7lkfsufvrnv7xik7xdw27kfi" + }, + "app.bsky.bookmark.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.bookmark.defs", + "cid": "bafyreifi3xao6wlbsnrzt36xnrfcvl5pil7jw7owrgqpmppfzy52dpy7e4" + }, + "app.bsky.bookmark.deleteBookmark": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.bookmark.deleteBookmark", + "cid": "bafyreig6rcgoqayi4fwgx5k5va3cnfsjykvc3fes7rmcfpszdd745hvatu" + }, + "app.bsky.bookmark.getBookmarks": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.bookmark.getBookmarks", + "cid": "bafyreicnazdriby4i3uu3nelt5ur4o3575ivjuw5pxlfj46tvfmglpny2e" + }, + "app.bsky.contact.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.defs", + "cid": "bafyreidsqrf3mf6g3zphne4t2swm6hbgd3ojk2nzlmwj6ezsvq62o3abgu" + }, + "app.bsky.contact.dismissMatch": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.dismissMatch", + "cid": "bafyreihtnfxggnq2n6ijlvrmtmpspwz3pzceprcfzqpa6iwjftpoknkory" + }, + "app.bsky.contact.getMatches": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.getMatches", + "cid": "bafyreihk7c54sgsxyh3bhtwd3cf5kdzjh4lauwwpbogau3zm65acfc3b2u" + }, + "app.bsky.contact.getSyncStatus": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.getSyncStatus", + "cid": "bafyreicozb7ibbr4h6xeh23jdjpfs6thxvodudypurdwqajwdnnj7lrioi" + }, + "app.bsky.contact.importContacts": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.importContacts", + "cid": "bafyreihzcos4jxddkpsk3isoxpgmw2x4rqbvp4b3f475cxwnfdzngnl7by" + }, + "app.bsky.contact.removeData": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.removeData", + "cid": "bafyreidtbulghr5cv27rzcato5esrgigddaafde2kgkz6hnivaimclynla" + }, + "app.bsky.contact.sendNotification": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.sendNotification", + "cid": "bafyreietl2pnpkuxeip5ftk7xvvrkuzdu4ndsn2nldt4wf2vbteyj5v6ju" + }, + "app.bsky.contact.startPhoneVerification": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.startPhoneVerification", + "cid": "bafyreif6jrd6gkonvwlvfkv2wyx5tnk4ayuv2xihcao7kyzdms42s34bhe" + }, + "app.bsky.contact.verifyPhone": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.contact.verifyPhone", + "cid": "bafyreiapgsesqmksilfc6nxndzglbxquxtmk3gwiikie44rangg2drplti" + }, + "app.bsky.draft.createDraft": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.draft.createDraft", + "cid": "bafyreiac6mvg7bdmdb3dndr3dvtpbn6ifjtv5uoweliw4sk2wpbdcwlfca" + }, + "app.bsky.draft.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.draft.defs", + "cid": "bafyreiewy3wgajj4al6xifjc2e5gpg4yyj4laf2gl7pe3liekulfzxnlcu" + }, + "app.bsky.draft.deleteDraft": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.draft.deleteDraft", + "cid": "bafyreicxw6nrrrikakfdaue3x45vfp4w62mncscdkpivpeom2orx2ae3su" + }, + "app.bsky.draft.getDrafts": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.draft.getDrafts", + "cid": "bafyreiewac2qwebwwtm4mtvk3aobtsyhbqug3hplhftjlbbn6bvuuxyumy" + }, + "app.bsky.draft.updateDraft": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.draft.updateDraft", + "cid": "bafyreicjy2aatoptybrtogj3nckokmkjpbmelvkej5bkfvxfcs5enu2fhu" + }, + "app.bsky.embed.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.embed.defs", + "cid": "bafyreia42uud4qil67wknywzbxfyxc3b7woewsii54cakq2ould3ldetei" + }, + "app.bsky.embed.external": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.embed.external", + "cid": "bafyreigwach36azu4xg3jvcmb6fe53umfln3wkuj5srqsvcjaypa6rw534" + }, + "app.bsky.embed.gallery": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.embed.gallery", + "cid": "bafyreia4tixag4sadkirfo63qfma6fz3ifbqanify4e6ce6swkl5lwjnfq" + }, + "app.bsky.embed.getEmbedExternalView": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.embed.getEmbedExternalView", + "cid": "bafyreicnv2umobvrfrlo6tqw7umcsxv77owcwit3vld7l46fphpy5uuzky" + }, + "app.bsky.embed.images": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.embed.images", + "cid": "bafyreifw77mkqkzlvm5csjwutkrnaivsjvlhg2qxdlwwabqpahlyyjrpwi" + }, + "app.bsky.embed.record": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.embed.record", + "cid": "bafyreia7yq4c6rqkz32fjf6gj5rcvxsirguducn545s3dvls7qutnn2ali" + }, + "app.bsky.embed.recordWithMedia": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.embed.recordWithMedia", + "cid": "bafyreidszvpeqf7copdmowm4ln4eyhahlqxktlvootjjjdmtkwy6s62jya" + }, + "app.bsky.embed.video": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.embed.video", + "cid": "bafyreie3nug4ezpwodl6yrpgv5edkazzn22t7ea4yaeuun4rctyekkngai" + }, + "app.bsky.feed.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.defs", + "cid": "bafyreibg2zvz4n25vtd5yfqlodqra72s4h4lz7vwdexoutv3523wbw6jca" + }, + "app.bsky.feed.describeFeedGenerator": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.describeFeedGenerator", + "cid": "bafyreigzxk3um5hbi7gbuh5bhmob75bxlfh5bonfsl7h5dmt7woxdhxq54" + }, + "app.bsky.feed.generator": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.generator", + "cid": "bafyreig2rppxkltsbe3523gavulrgprwjkyyb7mvmor22fdkoas6hrc2ju" + }, + "app.bsky.feed.getActorFeeds": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getActorFeeds", + "cid": "bafyreihqvune35emnr3vby6ldv2tzy57cfcgst2qy5icwpeay4mdvughfq" + }, + "app.bsky.feed.getActorLikes": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getActorLikes", + "cid": "bafyreiaxgdm2fv6bjzh2hdixgc3teprs7z46ja273kzevjnsp3hi224xoy" + }, + "app.bsky.feed.getAuthorFeed": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getAuthorFeed", + "cid": "bafyreiha5ca2lkguxvh22smjuehn2evxhyqk7isuiyqy6b23raljriv5a4" + }, + "app.bsky.feed.getFeed": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getFeed", + "cid": "bafyreihnhxqdfxojwo4xnedj55kskjki3opd2oiz3pfa5nm2ijr5janlq4" + }, + "app.bsky.feed.getFeedGenerator": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getFeedGenerator", + "cid": "bafyreibdzaan7vboli3ywi7wqzkibc2puukhfpg5rcdgizxlr7fbxx5gcy" + }, + "app.bsky.feed.getFeedGenerators": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getFeedGenerators", + "cid": "bafyreiervdq422lralzyssoewrfstcmqxsqimtmdskkqeflllszjnq32em" + }, + "app.bsky.feed.getFeedSkeleton": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getFeedSkeleton", + "cid": "bafyreidmn4nltqygzpd3vzobfkrkxcypbfirremfhzuluhlavwp5ht637m" + }, + "app.bsky.feed.getLikes": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getLikes", + "cid": "bafyreib6ylalknwxizbtbwsdmja4rhjswwczut5ivjdavfgew27m7knqou" + }, + "app.bsky.feed.getListFeed": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getListFeed", + "cid": "bafyreifvox2w2c6ybgioi6ofgp2i6pz44guwvo76w26miv4hpy7fgiwvlq" + }, + "app.bsky.feed.getPostThread": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getPostThread", + "cid": "bafyreif37upfzfu7t4rv3pqzz3swu2oc4nrxdxfr3xqjsrrmgyckneitta" + }, + "app.bsky.feed.getPosts": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getPosts", + "cid": "bafyreihy4tanaizkynghab46n3qztsspvoaqtbrkzinvxi4igeylg5ghji" + }, + "app.bsky.feed.getQuotes": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getQuotes", + "cid": "bafyreiftjmrnfpwtri5v47e7yfdgjgpfqds6kx3duf3t2x7vn7qdtbttfy" + }, + "app.bsky.feed.getRepostedBy": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getRepostedBy", + "cid": "bafyreif4v4aucwv4xvwnub6w2npmioqpa6nn4t5dsbqophoyfnimhsuweq" + }, + "app.bsky.feed.getSuggestedFeeds": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getSuggestedFeeds", + "cid": "bafyreif4v4aldmcoc2nkyanu6t3ks4jazqsiffq5gp54tuyn5o6rk2ff5e" + }, + "app.bsky.feed.getTimeline": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.getTimeline", + "cid": "bafyreihumvisufuf6t7ibkyhg4psri37pj535mhmyr4t6mn7ogvgcxpul4" + }, + "app.bsky.feed.like": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.like", + "cid": "bafyreiasvjidnd3sazbx46rzgipfkpejq4mgfuzwv2xrdaesp64t4dl2ry" + }, + "app.bsky.feed.post": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.post", + "cid": "bafyreia7rgxu7467phwpcgzaw62l5bzmxufkpikrc5zm4q3xhjmuhq4pti" + }, + "app.bsky.feed.postgate": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.postgate", + "cid": "bafyreiai5efexyluyptv5tbl6kqbqlnneczqzexcqnxmitmulyjfaftgva" + }, + "app.bsky.feed.repost": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.repost", + "cid": "bafyreihks43jtwanviarzctwx2vvcyloivuxo2kdi7ex24gog5dfn4s5au" + }, + "app.bsky.feed.searchPosts": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.searchPosts", + "cid": "bafyreif3xl6jj27tktxmxr3gtmf74wuxj6y6xnoycs7cclvifh4ncsi6mi" + }, + "app.bsky.feed.searchPostsV2": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.searchPostsV2", + "cid": "bafyreiemtjvwfo6xuab6vkwbji46d7wms5xdzad6vygjymmcqr326quwqu" + }, + "app.bsky.feed.sendInteractions": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.sendInteractions", + "cid": "bafyreicaoiskxpn2lmbzxuvpzawbsqxoewko3drbsxms222obabj2dkque" + }, + "app.bsky.feed.threadgate": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.feed.threadgate", + "cid": "bafyreiht77wd6duduz4yqp62m6dwma5dy7gdihps4g2nd73acfzqlglvdi" + }, + "app.bsky.graph.block": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.block", + "cid": "bafyreifalnveckyi2375ek5b5uyg4ef23mktcdktmgiwwsb3rygdls7owm" + }, + "app.bsky.graph.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.defs", + "cid": "bafyreifcipomli7yggtl46xufgxlnrw7se6xmsdxmzgfcz2tiu76ljatxm" + }, + "app.bsky.graph.follow": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.follow", + "cid": "bafyreiav7u7jchqtsxr2yy3gsazfqqziw5tcrfniuprrmoariruj3cft5u" + }, + "app.bsky.graph.getActorStarterPacks": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getActorStarterPacks", + "cid": "bafyreihm57pc7dmeig4lxcv3x53z53y27obkkxnopimax7dbtqx4enqf7i" + }, + "app.bsky.graph.getBlocks": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getBlocks", + "cid": "bafyreic3yp4tuxthww5sidvv27gmg3ha3argl3moconhmcccwvooobggve" + }, + "app.bsky.graph.getFollowers": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getFollowers", + "cid": "bafyreihqdm5fzu64lo2hsjuzggasy6pu5v3rcy2cs3fdoo3v3d537hi5ay" + }, + "app.bsky.graph.getFollows": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getFollows", + "cid": "bafyreidwk3pssvzpzzmnr7ykl5piiyrp2c5rwadgnouwjbwysghpu3gaui" + }, + "app.bsky.graph.getKnownFollowers": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getKnownFollowers", + "cid": "bafyreia3bjqeaj5uk2zlkhk5pipefehy2mlrdp3hoqtgu3np3tvbg6xjuq" + }, + "app.bsky.graph.getList": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getList", + "cid": "bafyreigplofixg524nkirazfh3loe36lvqqeg6jfqvrggzztspkefwm4re" + }, + "app.bsky.graph.getListBlocks": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getListBlocks", + "cid": "bafyreiagod73i7ecuzpyxwlibrwimo7u4ew75nzc2b3ajdocc5sg6eszpy" + }, + "app.bsky.graph.getListMutes": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getListMutes", + "cid": "bafyreictd7aefsbizbn66bmhfbyvxbirbuz4uiqcp4o5tb3eiyun42wm4a" + }, + "app.bsky.graph.getLists": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getLists", + "cid": "bafyreiffrqdk7vdses2qzrmmfotwyvncuhvq7anaw64x7wmlz5cix5nihy" + }, + "app.bsky.graph.getListsWithMembership": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getListsWithMembership", + "cid": "bafyreifgvypq6ahfxtkbdmudh7bb7vib6c7kvkit6ks3gjoagor747cxfy" + }, + "app.bsky.graph.getMutes": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getMutes", + "cid": "bafyreif4wfqhk2eldaqwn4552ppul26p6z4e4epuqkngb6dkpll7akfqbm" + }, + "app.bsky.graph.getRelationships": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getRelationships", + "cid": "bafyreiabszfuqanet2tbyyx7plxmknfegygnfyaydhwyialt4cbo24k5dq" + }, + "app.bsky.graph.getStarterPack": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getStarterPack", + "cid": "bafyreia77gh56vqe3ws26ntm7pffj43uhvl6l66vpb7uhxrhpih6rvne6m" + }, + "app.bsky.graph.getStarterPacks": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getStarterPacks", + "cid": "bafyreighxbnsgugwwjnu37nzoca7qtpipvf2l5ijz2z74ghdfrgppqfoaa" + }, + "app.bsky.graph.getStarterPacksWithMembership": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getStarterPacksWithMembership", + "cid": "bafyreigpeb22avssmmfqiveh3hem6qnxrduyyhkxc3ixpfgehmhkskgssy" + }, + "app.bsky.graph.getSuggestedFollowsByActor": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.getSuggestedFollowsByActor", + "cid": "bafyreih4zuul6xlijankc73dx7bax3gbeva2dlfnzabk335y7iaptxbmr4" + }, + "app.bsky.graph.list": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.list", + "cid": "bafyreihqckm5nkbamel2pljhk5lbjfqfmczmb7a5eglpic7ontdx3r4sey" + }, + "app.bsky.graph.listblock": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.listblock", + "cid": "bafyreieomtmr6mpvgnbbgwfkdqlyatwymvu4vdnhldpqetzczlj4eywxqq" + }, + "app.bsky.graph.listitem": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.listitem", + "cid": "bafyreiegh2vyadmieea52lnt574lfcddprhpuz5moqhqiij56egfvyf62m" + }, + "app.bsky.graph.muteActor": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.muteActor", + "cid": "bafyreiauvwzkpqibtwpegxofryhdwldk2aitvmz7g2gidchlfcdkamwk6a" + }, + "app.bsky.graph.muteActorList": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.muteActorList", + "cid": "bafyreihadi2x64bpzncb2xfo5ww4mvajftf4qd3nxmsjud7assloxzfm44" + }, + "app.bsky.graph.muteThread": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.muteThread", + "cid": "bafyreib6ppci3qzye6wktkm4byxtb5mnl2vg22fm7oawcdvof2tfogx4dy" + }, + "app.bsky.graph.searchStarterPacks": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.searchStarterPacks", + "cid": "bafyreia446ip6mbnwpml6hlvxab7jtsud7zczde3u6zmnsa3op4bpxu7um" + }, + "app.bsky.graph.searchStarterPacksV2": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.searchStarterPacksV2", + "cid": "bafyreifzm4bcm3tw26peaor6u2ebj7qehfapnjyazhfj5tp6r2zikvet54" + }, + "app.bsky.graph.starterpack": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.starterpack", + "cid": "bafyreiejgf46gibbkpmjtgt5yyiir3wyxgrtvnfxtcdeyxrdrdnsvwgjc4" + }, + "app.bsky.graph.unmuteActor": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.unmuteActor", + "cid": "bafyreihqc6o54652e56jmvzpaf7ix4liws4bmnd2bklc2qkuqjozfcvka4" + }, + "app.bsky.graph.unmuteActorList": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.unmuteActorList", + "cid": "bafyreiamqj5gh6x36dzdk6ve7kfjvzotqjfcg2nplgch7woshqrubbe2ee" + }, + "app.bsky.graph.unmuteThread": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.unmuteThread", + "cid": "bafyreiahpkqj4v7b3ujk45ufdcvynu2dxjtunzi2oipu7kzdupybmysgzu" + }, + "app.bsky.graph.verification": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.graph.verification", + "cid": "bafyreidn7abfzt5p4gcujys2w4seigbhcfnscos6fmh4hnce2gdormbwpa" + }, + "app.bsky.labeler.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.labeler.defs", + "cid": "bafyreicxx5i36v5dbqk5vvfzhnta5gajrvc544mnepux4wksrkid7mw3q4" + }, + "app.bsky.labeler.getServices": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.labeler.getServices", + "cid": "bafyreife7p4pjij5jvmngdlxfq4cjzqe2cx7himnkf7zgxsykcxg6klpl4" + }, + "app.bsky.labeler.service": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.labeler.service", + "cid": "bafyreihr336i3ys6rc4ezhk2wwpeyufnp2ma2n6dxljd2ogksi4sjo6aqe" + }, + "app.bsky.notification.declaration": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.declaration", + "cid": "bafyreibjnupqb7xke5eeeehpcm2gecacduwd4ebifcovgigzdpo42jq3kq" + }, + "app.bsky.notification.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.defs", + "cid": "bafyreifzktxnol5rafjoznauk5j7ub2gsxxm7qjskg3vqmcgn6krrsz55u" + }, + "app.bsky.notification.getPreferences": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.getPreferences", + "cid": "bafyreibaz7cyl7ytpextx7bv6oaguadj5bdvpf4hksw6t737zkfw5y3rue" + }, + "app.bsky.notification.getUnreadCount": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.getUnreadCount", + "cid": "bafyreih2vxe7vy3hcp7fwka7cwenxbkx2d7nd2s3whffh23dn3wxt65s7m" + }, + "app.bsky.notification.listActivitySubscriptions": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.listActivitySubscriptions", + "cid": "bafyreien2hslzbpoypvz3shv6tphkmdtccejieg5lricwl6stdjomiu3zi" + }, + "app.bsky.notification.listNotifications": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.listNotifications", + "cid": "bafyreicpn2mr6mvbug7wheniaqaou2lq3cjbdcu4y5perdy2ekjv32tunq" + }, + "app.bsky.notification.putActivitySubscription": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.putActivitySubscription", + "cid": "bafyreifvbgf53yncsrjpzwa5xwnlax7vyesflkg6fmxb2367vfa6fv7kwu" + }, + "app.bsky.notification.putPreferences": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.putPreferences", + "cid": "bafyreihbqjdbhra45czd5m5665btugrie7bwsiwzehutjdwygyy5dsq4fi" + }, + "app.bsky.notification.putPreferencesV2": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.putPreferencesV2", + "cid": "bafyreiefun5klfddbnd7gfodnlcbn7ing45qo6lbmsahau7qgw4zlgv42i" + }, + "app.bsky.notification.registerPush": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.registerPush", + "cid": "bafyreiayl6ngk3ckmaorocgbwxf2ruqgficcbkm2xvoja2crnyul66u3hy" + }, + "app.bsky.notification.unregisterPush": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.unregisterPush", + "cid": "bafyreiboilq7jye3s7isayixm6iqjbsxrfzizaj727obtdda6qzh56at6y" + }, + "app.bsky.notification.updateSeen": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.notification.updateSeen", + "cid": "bafyreigzds576ji7wzi6alzn4wegtfzk2iqagwtugbw3byb2v3xvqho4hi" + }, + "app.bsky.richtext.facet": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.richtext.facet", + "cid": "bafyreidg56eo7zynf6ihz4xb627vwoqf5idnevkmwp7sxc4tijg6xngbu4" + }, + "app.bsky.unspecced.defs": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.defs", + "cid": "bafyreia54pdzsurj6zqgluzt6klyborq2kq75zgaphnkeyxz3q2uozzepi" + }, + "app.bsky.unspecced.getAgeAssuranceState": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getAgeAssuranceState", + "cid": "bafyreih4xza4elgwnr7oazzbuftplgvnbye2eleiaui7zfkrtlgmhiidfm" + }, + "app.bsky.unspecced.getConfig": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getConfig", + "cid": "bafyreicy6hedmitk4y73bgtt3ogfrivhqsjg67jaksgynkonte5gjuvzjq" + }, + "app.bsky.unspecced.getOnboardingSuggestedStarterPacks": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getOnboardingSuggestedStarterPacks", + "cid": "bafyreic5nokdcwldofzvqnxqoewjzupd6d2opfzjy72bwnn7gpgg3n3x3q" + }, + "app.bsky.unspecced.getPopularFeedGenerators": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getPopularFeedGenerators", + "cid": "bafyreihp3bnetgcjqeaha5k6dk2z4q5pmh3ooqilotpxvznrp3cnsrniyq" + }, + "app.bsky.unspecced.getPostThreadOtherV2": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getPostThreadOtherV2", + "cid": "bafyreiagvk6u73ztjaikuir647k3f7lj3u44t4mo7c3qihw3mmll2zokra" + }, + "app.bsky.unspecced.getPostThreadV2": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getPostThreadV2", + "cid": "bafyreiesr6gvuhu4476lxofrv4rrw5ptsisj4lqgxmxhss5o36km2h5224" + }, + "app.bsky.unspecced.getSuggestedFeeds": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedFeeds", + "cid": "bafyreie4una2mjuc2ohgprqdfxotfsyxuolcmp5xktr7mcbclcs6kracce" + }, + "app.bsky.unspecced.getSuggestedFeedsSkeleton": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedFeedsSkeleton", + "cid": "bafyreihqvsdre7oxhlpl7yucsmpdupwakipyzsu2gjlkbufgmklcgr5cbq" + }, + "app.bsky.unspecced.getSuggestedOnboardingUsers": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedOnboardingUsers", + "cid": "bafyreieot3hdk6h2enuivlp6m2jivd2y4npwbr4h7nsb3kutvnmtpkubm4" + }, + "app.bsky.unspecced.getSuggestedStarterPacks": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedStarterPacks", + "cid": "bafyreih34c76u3vbjaaukyojpsrljslmnptzpnydizyfrjtedzmwosmawy" + }, + "app.bsky.unspecced.getSuggestedStarterPacksSkeleton": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedStarterPacksSkeleton", + "cid": "bafyreifw62zovmzhkufp723hvubrlqzuk26o5jmx7qtafnupm2olggzoe4" + }, + "app.bsky.unspecced.getSuggestedUsers": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedUsers", + "cid": "bafyreib5qavwbqignxipudnk5jzs2inlkjxosckpxakorbk3erlscfn6ba" + }, + "app.bsky.unspecced.getSuggestedUsersForDiscover": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedUsersForDiscover", + "cid": "bafyreienm4jci3ri5umqmdyycpyhtwjbteynqx54tyfjdrilzg6kqr65dm" + }, + "app.bsky.unspecced.getSuggestedUsersForExplore": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedUsersForExplore", + "cid": "bafyreidje2onbwlnhm6st54evtxvvsc5n3al4vxq67maah24a2hvwvsd2m" + }, + "app.bsky.unspecced.getSuggestedUsersForSeeMore": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedUsersForSeeMore", + "cid": "bafyreidg6zyy4x2cskf7jfdhlmn4nps6ug7tzqhckpx3s264xlxrh5djji" + }, + "app.bsky.unspecced.getSuggestedUsersSkeleton": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestedUsersSkeleton", + "cid": "bafyreibvcocfbsxbf2s2rzuvcovkoyq6m7yz3csxrd6mdeoiwmkjqucxke" + }, + "app.bsky.unspecced.getSuggestionsSkeleton": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getSuggestionsSkeleton", + "cid": "bafyreiftdh7etcw5rkoruhixbjikw5p35c2v2r6rdeujol5iql6hpru254" + }, + "app.bsky.unspecced.getTaggedSuggestions": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getTaggedSuggestions", + "cid": "bafyreib6e3tmwibu6qo63vixnqdzlbslm423pqow2x2u3rayaxadzh2yvi" + }, + "app.bsky.unspecced.getTrendingTopics": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getTrendingTopics", + "cid": "bafyreibsh44yasve5t73att24aa6qqqth4ukqekkmn527w45p3nobo5d6e" + }, + "app.bsky.unspecced.getTrends": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getTrends", + "cid": "bafyreihrlvlry47lhborwurq7b2onjxt6nrtgk2yfqrqgy6kjra56aoyvq" + }, + "app.bsky.unspecced.getTrendsSkeleton": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.getTrendsSkeleton", + "cid": "bafyreierste46lq7ihipizzhowyhqsp3qnhoacsu5gbsnmnwnpi2rqjxtu" + }, + "app.bsky.unspecced.initAgeAssurance": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.initAgeAssurance", + "cid": "bafyreicu2zecy76tjiimkb7kbottfbmi45zxn2ierhnnafl6csyjsejp7u" + }, + "app.bsky.unspecced.searchActorsSkeleton": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.searchActorsSkeleton", + "cid": "bafyreihzvsp2ghl2uj3h6blz5oalrl4hgfaixm2ic57birq2rorpbama3a" + }, + "app.bsky.unspecced.searchPostsSkeleton": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.searchPostsSkeleton", + "cid": "bafyreihmduatggtrh5kk7pggqhlh73pbwlbailysbbwau5tsoae5a77py4" + }, + "app.bsky.unspecced.searchStarterPacksSkeleton": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/app.bsky.unspecced.searchStarterPacksSkeleton", + "cid": "bafyreibkqk7fts6bxxwb4ogatm7u4ptvzrso3ccm5imysmkecigsq24lhi" + }, + "app.bsky.video.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.defs", + "cid": "bafyreifgpicywqtgxj3afrw3fsadrr3qeykesmu52we3arwp5sps2blgpm" + }, + "app.bsky.video.getJobStatus": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.getJobStatus", + "cid": "bafyreia5xkrbastzzbpodjm242orufiswrz5aasjqrqtuvb6lmmfwixmqy" + }, + "app.bsky.video.getUploadLimits": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.getUploadLimits", + "cid": "bafyreidlw3fozroigsbrz73jtqdoc7dkdpxi4oie3df7nb3vnycy2kkz2y" + }, + "app.bsky.video.uploadVideo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.uploadVideo", + "cid": "bafyreibvsdivxr54ooykqhsy3i6n6f7223hbfnnnzs4h6xrzr5kvvztuvy" + }, + "chat.bsky.actor.declaration": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.actor.declaration", + "cid": "bafyreih4ivey4vqreb2ebujlt7iranqyizxkv5kpm3ksdlgkinkgcu53pu" + }, + "chat.bsky.actor.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.actor.defs", + "cid": "bafyreigiv5fo5iufd3ahma6tgtozm35xibvx276nhjsjwuvsvxh3zj7u7q" + }, + "chat.bsky.actor.deleteAccount": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.actor.deleteAccount", + "cid": "bafyreierykzslwmkkugpyio3yiaxguttd5his5i4ow7re7wzcbxfogerrq" + }, + "chat.bsky.actor.exportAccountData": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.actor.exportAccountData", + "cid": "bafyreigwllvtmdetzfvgrzwhtzjilnj3gfxaj45yd32oe436etzp7yghai" + }, + "chat.bsky.actor.getStatus": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.actor.getStatus", + "cid": "bafyreib7f6wo5xsnfz37ywggtvqbcuxigf325q6pezshyhzyp2n5pdlzhu" + }, + "chat.bsky.authFullChatClient": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.authFullChatClient", + "cid": "bafyreigbefp73hn747u3syciogu2snm6wez4iqahxar3w6ps5oybf2m36y" + }, + "chat.bsky.convo.acceptConvo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.acceptConvo", + "cid": "bafyreih2ob7rsibl3h3so356rcdo2fop3dosxkna75w2u45qflbtw2r7qm" + }, + "chat.bsky.convo.addReaction": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.addReaction", + "cid": "bafyreia2odzz7wk5vfdjxchttbr44ojcxks72ytdmeybpub6zqt3l327vi" + }, + "chat.bsky.convo.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.defs", + "cid": "bafyreibpb3r5pqc3yrjslx7ntfl5vvgdlgqanuwbcvq3q7sfhayi75x7uu" + }, + "chat.bsky.convo.deleteMessageForSelf": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.deleteMessageForSelf", + "cid": "bafyreicsfbucwa3y5jdtzv6focgl5dao2lhmaa22jljllwjp6rz4noxowe" + }, + "chat.bsky.convo.exportAccountData": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.exportAccountData", + "cid": "bafyreihfj5irzczzucyvft5rovam7cjh6ga7t4sxkxrlrpeeamxotqemmu" + }, + "chat.bsky.convo.getConvo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.getConvo", + "cid": "bafyreidjox5oa467rn7x6xjuko23w5ekypjbkdryia4hz5s7isswhxrilu" + }, + "chat.bsky.convo.getConvoAvailability": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.getConvoAvailability", + "cid": "bafyreidnzzp2b7w4pedgnspgwlzl7oc4uuwxlbh3asteu6s4rgcuagnzl4" + }, + "chat.bsky.convo.getConvoForMembers": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.getConvoForMembers", + "cid": "bafyreicheufh7jkrstr6hgpggylildyh3k5tihbh5747dumqe5nabp24fi" + }, + "chat.bsky.convo.getConvoMembers": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.getConvoMembers", + "cid": "bafyreigup3axpdj3r3p4s3x7qgarrysft3vognwzgetl4bn3n2bgocxl4m" + }, + "chat.bsky.convo.getLog": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.getLog", + "cid": "bafyreicc4wwkmh5rskpzyriwad4lte64rk2w7vnzzzofy6tnhbisxsint4" + }, + "chat.bsky.convo.getMessages": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.getMessages", + "cid": "bafyreif2fjad4zrbjwhbuk3ny7yfnv6sjyr6llrveh2dr4i2aovwe77yia" + }, + "chat.bsky.convo.getUnreadCounts": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.getUnreadCounts", + "cid": "bafyreibuu7abhy74gxfprerxpiimjit43fhcrrewe43zhili7rmr4crrsi" + }, + "chat.bsky.convo.leaveConvo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.leaveConvo", + "cid": "bafyreigdjs5t2jod6zojwnj5giqucsad257vhocykv6fftkj3qkqzqlqua" + }, + "chat.bsky.convo.listConvoRequests": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.listConvoRequests", + "cid": "bafyreieoce2dsrg6czlm7tkfi7glxjvqh6wwvfq777s5zxi6hyzqjeqo3e" + }, + "chat.bsky.convo.listConvos": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.listConvos", + "cid": "bafyreifxh52sx6i7vrlj2xi5h3yd56dmawkplcfdsfiu4npou6rutz4pge" + }, + "chat.bsky.convo.lockConvo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.lockConvo", + "cid": "bafyreidnrgfxtyg233wfvasho34p34k2tiekrpiticcl4sau7k2masydby" + }, + "chat.bsky.convo.muteConvo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.muteConvo", + "cid": "bafyreihpyxtotf6ltd6w6ayoirar7obxoqlijljov6yrb7r5qztq3ag74e" + }, + "chat.bsky.convo.removeReaction": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.removeReaction", + "cid": "bafyreiagvcoqprw5jew2m4uoeg6i32wu6ld2ltgjgb2d2s36k4o6i7arb4" + }, + "chat.bsky.convo.sendMessage": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.sendMessage", + "cid": "bafyreih7yu45wtptd7qjg6iomrugxucfw7zkkz7ijjj7o3bddee3od2q3m" + }, + "chat.bsky.convo.sendMessageBatch": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.sendMessageBatch", + "cid": "bafyreifvinecphums77xvuuspqgjkgfa7cpre3zavtrkh5tffmi643q2rq" + }, + "chat.bsky.convo.unlockConvo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.unlockConvo", + "cid": "bafyreiaind2trvtuo2bgqupx4acxx5vvfhvvo4xwencwcf2trnrithwkya" + }, + "chat.bsky.convo.unmuteConvo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.unmuteConvo", + "cid": "bafyreifbip4w4q4dnm2bvhtaxr4ut3yrzck4xkdu2ifnkoggyqigsuasbe" + }, + "chat.bsky.convo.updateAllRead": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.updateAllRead", + "cid": "bafyreiewx6wmllc4nujgtakvu4jiapnrjtbqyxvugohuu7xfy3bhrn4wq4" + }, + "chat.bsky.convo.updateRead": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.convo.updateRead", + "cid": "bafyreihba5bopb5vnlqqvtavipybqgemp6itwrz4xysnp6yi6iow5ntnv4" + }, + "chat.bsky.embed.joinLink": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.embed.joinLink", + "cid": "bafyreib3z65a2myai4hc55vxa7woue4bmelo2a4dlgnawps746w3l2y72q" + }, + "chat.bsky.group.addMembers": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.addMembers", + "cid": "bafyreiftelalu5yc3zctgch7req6syovskusqgma5vyyd4elas5rs47tvy" + }, + "chat.bsky.group.approveJoinRequest": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.approveJoinRequest", + "cid": "bafyreicykc372f7ebk7c3wrco75wgox3poyop7w3duovvn2piqzsvhzthq" + }, + "chat.bsky.group.createGroup": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.createGroup", + "cid": "bafyreicpqjbpipx4mxby5mujguw2rwpewycm2h6ybbdiycdnghxqgertju" + }, + "chat.bsky.group.createJoinLink": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.createJoinLink", + "cid": "bafyreicxjzsyjrqbkwd7vztmaxstgulx5naln55gsppix27pjnoz5okv7i" + }, + "chat.bsky.group.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.defs", + "cid": "bafyreiexck6gwns5nesq44mqgsikwrjkgplz33cemxaq365xwdcxeoqjje" + }, + "chat.bsky.group.disableJoinLink": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.disableJoinLink", + "cid": "bafyreiholtxhmuqku64fkv6rjl2rn3jyicutkcuieoviys3zdzx6lh43n4" + }, + "chat.bsky.group.editGroup": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.editGroup", + "cid": "bafyreifwwj2mzridii6sm6wlc5sxgu7g6k67bijvylus4jnbvfcup7ecfe" + }, + "chat.bsky.group.editJoinLink": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.editJoinLink", + "cid": "bafyreiafmbnein4xpbr76jzofk53ut6u5opeuwyorilkhpe3u2kzgavlde" + }, + "chat.bsky.group.enableJoinLink": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.enableJoinLink", + "cid": "bafyreib45q6ccuobjlws7sysjojabo6gvww6wlgy7dif5ejkoasb23l7su" + }, + "chat.bsky.group.getJoinLinkPreviews": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.getJoinLinkPreviews", + "cid": "bafyreigrglu52cdsrc7sxxflwoxr6eg6paw4zsd7ioy7kyue2kqfdjyqn4" + }, + "chat.bsky.group.listJoinRequests": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.listJoinRequests", + "cid": "bafyreigoj66wx3sx7nbav4ywxckk7ggjklxvy2w5tmmnrapib7nfpgh3ci" + }, + "chat.bsky.group.listMutualGroups": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.listMutualGroups", + "cid": "bafyreihp23gsqmaie6uzouxfqi6zwhr3wqglqjblbcawkp6asirzmqq4oi" + }, + "chat.bsky.group.rejectJoinRequest": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.rejectJoinRequest", + "cid": "bafyreiaztaygpnfglcldsdbh5dunovp2nz3kenetahycpymoxxrxkafiha" + }, + "chat.bsky.group.removeMembers": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.removeMembers", + "cid": "bafyreidfkumfvrtsseaavuhs2lfblcsmrjbkeaeojh2u576jze5xrfcasy" + }, + "chat.bsky.group.requestJoin": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.requestJoin", + "cid": "bafyreiatzqdp7zlnbqmbti6xt3orag7yqyuqr6tqzwzzp52gq7hlu3it6q" + }, + "chat.bsky.group.updateJoinRequestsRead": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.updateJoinRequestsRead", + "cid": "bafyreieod4o3cdfkhev6tia63q6yrdk3pgwvrrpyxggswxpp6pzwjj2jyi" + }, + "chat.bsky.group.withdrawJoinRequest": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.group.withdrawJoinRequest", + "cid": "bafyreicdn25bcyya4for6vtdhhkjaeyfbkldgaxqtqoh5hfwljbrxszezy" + }, + "chat.bsky.moderation.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.defs", + "cid": "bafyreiee3r5j2psnahumolqrbr6gj6adqt3ov3xflbeibnyfzlwwc3e5km" + }, + "chat.bsky.moderation.getActorMetadata": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.getActorMetadata", + "cid": "bafyreifo2qp6ozex6phd5dd2sewpyltlnzijjqmfl5xpujxk3mkx6b4pze" + }, + "chat.bsky.moderation.getConvo": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.getConvo", + "cid": "bafyreie6ds2blosf5zeg7eralqp5jmbbvsv4befevms3nyqoihblzxwzsy" + }, + "chat.bsky.moderation.getConvoMembers": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.getConvoMembers", + "cid": "bafyreicm4fvldxqk5zdwopjjrsukl7wpib2ixqgkfc3nrszorx46i4np34" + }, + "chat.bsky.moderation.getConvos": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.getConvos", + "cid": "bafyreif5k5jqz4546omvosnx2sey4apq4nebiizwo3xit6q2knf2tteoey" + }, + "chat.bsky.moderation.getMessageContext": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.getMessageContext", + "cid": "bafyreih436hnrsenvuaelqk5bz4esvjku2kz3blwh7lk5fmmjfzn5uxaei" + }, + "chat.bsky.moderation.subscribeModEvents": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.subscribeModEvents", + "cid": "bafyreifb7xeucadmhsbzezibkn4hxyezzajfydjfyy3tjmwm7bwjmiam3u" + }, + "chat.bsky.moderation.updateActorAccess": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.moderation.updateActorAccess", + "cid": "bafyreif3kv6qzqf533kjoodzu6s2cf3qypyafsntemeir6uuac4dnnzlwe" + }, + "chat.bsky.notification.defs": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.notification.defs", + "cid": "bafyreifv3xy2nhjxvr4uqfheezyp3bo2eczvihqto4kp4mmkirnpkmmt4u" + }, + "chat.bsky.notification.getPreferences": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.notification.getPreferences", + "cid": "bafyreicfjpp5ldakcwyo7wmq6e5kpwtizn5owdd7cux4pbif6s2u6dbxne" + }, + "chat.bsky.notification.putPreferences": { + "uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/chat.bsky.notification.putPreferences", + "cid": "bafyreiatnvy5wssiuzrjtdtv3sd2yarrd3xiaijpeuvsnopq3neh52bfay" + }, + "com.atproto.admin.defs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.defs", + "cid": "bafyreicuagseedq4ko6lx6ublh6agdyeaox4pkvbaq7yj54s2d66yjk2h4" + }, + "com.atproto.admin.deleteAccount": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.deleteAccount", + "cid": "bafyreigzxdce4ztwo2n5xxahr6fwd4bozc4budnaepl26mbejpa3q2ess4" + }, + "com.atproto.admin.disableAccountInvites": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.disableAccountInvites", + "cid": "bafyreihi35g5ngllvyykzlq3fdfqs4xjiuao7nxg37ealsdtqcdquvj2ce" + }, + "com.atproto.admin.disableInviteCodes": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.disableInviteCodes", + "cid": "bafyreiatqxhcmu23qc2nkttjf2e7gjsdhbh6x5nrqambamo5fcwq523eey" + }, + "com.atproto.admin.enableAccountInvites": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.enableAccountInvites", + "cid": "bafyreid5xvqhkbpywbk5eaumneqzdcxtkj5lh45hzmcbed4exzvqk37p2i" + }, + "com.atproto.admin.getAccountInfo": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.getAccountInfo", + "cid": "bafyreifcp3jeg332nfwatctxwjiokqv72tyuppb2mzwjxih7qdtr2glou4" + }, + "com.atproto.admin.getAccountInfos": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.getAccountInfos", + "cid": "bafyreib7kdehrlwtxbpdkdk3hxswvjdgw63yadellwf4n32qofh5pbf2zy" + }, + "com.atproto.admin.getInviteCodes": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.getInviteCodes", + "cid": "bafyreiec5v6odvpqm3qfcxmuq5nihskij7xmb5nij32vve426z6s7tii24" + }, + "com.atproto.admin.getSubjectStatus": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.getSubjectStatus", + "cid": "bafyreicx3n74uhu3jtolm6vvtxx4xy3vo57iu4boxn7chocuokx3q7fazm" + }, + "com.atproto.admin.searchAccounts": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.searchAccounts", + "cid": "bafyreigqi7z4ic2ljca6zvmtzha4gdnsa25gsn4pw2upqymrh6lelkzqjy" + }, + "com.atproto.admin.sendEmail": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.sendEmail", + "cid": "bafyreig7vffo7s4diefuoylvl6crosfo5mcc74hlnpkd24fb3xs2wyewbi" + }, + "com.atproto.admin.updateAccountEmail": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.updateAccountEmail", + "cid": "bafyreidlzhtftznouwxruqumookeupzk4iytlvm5giwziuv4m7wzi76lf4" + }, + "com.atproto.admin.updateAccountHandle": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.updateAccountHandle", + "cid": "bafyreidsj323nackffydrz3buggrubayxwnhxu2v2sf3saoiao44im6dnm" + }, + "com.atproto.admin.updateAccountPassword": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.updateAccountPassword", + "cid": "bafyreieptac2cku6iazjjbgn6oy2ivaleofleprdhiysprato336fapghq" + }, + "com.atproto.admin.updateAccountSigningKey": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.updateAccountSigningKey", + "cid": "bafyreibzf73rasuo5rhzjjugexi5l7tpyahcmmjg2rl2bweoxyb3672cca" + }, + "com.atproto.admin.updateSubjectStatus": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.admin.updateSubjectStatus", + "cid": "bafyreieirresnt6qdfshzsaaikwpstoql5q5n7vlbfadkmjwzuweeojuyu" + }, + "com.atproto.identity.defs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.defs", + "cid": "bafyreiftikhen7lwpyay4e4sycmmflexkroqjwwpfuqtmog3vjhs2qnz3m" + }, + "com.atproto.identity.getRecommendedDidCredentials": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.getRecommendedDidCredentials", + "cid": "bafyreidkfpbromp7kjmpbzkbcamycj3722sxvcm47pabju744ytk2ljhay" + }, + "com.atproto.identity.refreshIdentity": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.refreshIdentity", + "cid": "bafyreiabglay3heljv6azsioza4lbbq7ocfnllbugb4ep4cmoofvhbz74q" + }, + "com.atproto.identity.requestPlcOperationSignature": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.requestPlcOperationSignature", + "cid": "bafyreiefkbiptbpxy4ijubutlp2lbjzlkdqbbvt77uguxwg2lns7ba2anm" + }, + "com.atproto.identity.resolveDid": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.resolveDid", + "cid": "bafyreicy6cgn4agn5jnteswy624asmf74k34do54sptozrcmyrlglvnufu" + }, + "com.atproto.identity.resolveHandle": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.resolveHandle", + "cid": "bafyreigckmqtt3jrtzd7tvigjatnz6ajqyafs26h5pwcudwag2anedxnmu" + }, + "com.atproto.identity.resolveIdentity": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.resolveIdentity", + "cid": "bafyreibc3gr2wcoogckav25quul7dz24jnq7oevwvrve4fhanmyypujpai" + }, + "com.atproto.identity.signPlcOperation": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.signPlcOperation", + "cid": "bafyreicjgnk7lmloumjsgwpk6fbnplcu7or23edto4vgdow2quxq2okjha" + }, + "com.atproto.identity.submitPlcOperation": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.submitPlcOperation", + "cid": "bafyreigu67ehin43bdmkt5oyrwsttvzon3lsmp4fkfpzlyptpfnx2hozau" + }, + "com.atproto.identity.updateHandle": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.identity.updateHandle", + "cid": "bafyreibzqwkofzc7g5j7vatyyzolgnarm3zd2g6swegkc3ivz4xivm2buu" + }, + "com.atproto.label.defs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.label.defs", + "cid": "bafyreidp2wpcbzl2qiob2uwoc7lhntojx3tjcr553mmahw2f5cumtm3wpm" + }, + "com.atproto.label.queryLabels": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.label.queryLabels", + "cid": "bafyreig424opkctuzynvqvbwcoqafbqzqu6tl2kilwif7ivnwcdmafbhni" + }, + "com.atproto.label.subscribeLabels": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.label.subscribeLabels", + "cid": "bafyreigeyxddcuwebpvscyy2l7s3urxsbdtzpjrljncjo4az62woytutx4" + }, + "com.atproto.lexicon.resolveLexicon": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.lexicon.resolveLexicon", + "cid": "bafyreihyejjwx2cpbv3ikfojbq57jmtmilhjjsamqwfeiwkg2vanxxaz6m" + }, + "com.atproto.lexicon.schema": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.lexicon.schema", + "cid": "bafyreigtmtzisxiuao4kcswgnbud7wmpkcnsdb6h2kenhbnaolsx7bpiq4" + }, + "com.atproto.moderation.createReport": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.moderation.createReport", + "cid": "bafyreib5kl3klngngi47k7nx2g2bmrg2roj52q3dobvuf73kr3exvn73n4" + }, + "com.atproto.moderation.defs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.moderation.defs", + "cid": "bafyreideawy4rlpgces2oebk5q4kpurbonhb5qtl4pes7dvxsc5osaiksy" + }, + "com.atproto.repo.applyWrites": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.applyWrites", + "cid": "bafyreidwfwif7k5uncwqxhpxpxhvdkgedbvp6kqy6r4nozii433lwlajba" + }, + "com.atproto.repo.createRecord": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.createRecord", + "cid": "bafyreihyvpmy2l4ou2v5etx25j5lbqty6tvna7gsxdqge76rbb7gltulei" + }, + "com.atproto.repo.defs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.defs", + "cid": "bafyreigmp5xfpkhnmwr3l5o626ued2gc2ouioykj2tpgqjqqajvbvm3wlm" + }, + "com.atproto.repo.deleteRecord": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.deleteRecord", + "cid": "bafyreibwdxbyhuuljujl7g4ylwdso2x2ov6yv6nk3ext3sr7kjvvubkula" + }, + "com.atproto.repo.describeRepo": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.describeRepo", + "cid": "bafyreif5ho6rtknjmiqjclrfogiqyzxnix2fzpwxyftfebplkj4q23pnrm" + }, + "com.atproto.repo.getRecord": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.getRecord", + "cid": "bafyreihdnm3v25uaptt5vjvnpfsfgb6fbhxew2ye3l6q4ndm7xi5wpc4vy" + }, + "com.atproto.repo.importRepo": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.importRepo", + "cid": "bafyreihymzggr6n33y3ile7hiy5zekxkgqc6ypkoby5og7tr6buqiasabu" + }, + "com.atproto.repo.listMissingBlobs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.listMissingBlobs", + "cid": "bafyreiayrrhk77vn3az63mor2bepw2qnkskr5awxvpzb5xtgwtzr5z6v3u" + }, + "com.atproto.repo.listRecords": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.listRecords", + "cid": "bafyreihv666jp6lxncj6amcgsu5qrvwq4rwmtc7xbxzndxqdwxamlsatee" + }, + "com.atproto.repo.putRecord": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.putRecord", + "cid": "bafyreigevzo2cypxpaj5re2u35so36df4rkgx6oh4zpi4zwicfvzqfdqpa" + }, + "com.atproto.repo.strongRef": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.strongRef", + "cid": "bafyreifrkdbnkvfjujntdaeigolnrjj3srrs53tfixjhmacclps72qlov4" + }, + "com.atproto.repo.uploadBlob": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.uploadBlob", + "cid": "bafyreifj5rusrt7rd763rqcnyh7srwukrdn427m7qrhwyb5hiayyyq4lxe" + }, + "com.atproto.server.activateAccount": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.activateAccount", + "cid": "bafyreih4z7qtht643ddxszglbworpyttngm4iahyne5vp5n6puvysckc2u" + }, + "com.atproto.server.checkAccountStatus": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.checkAccountStatus", + "cid": "bafyreiggejdmd3ezjwphxo6jgcaf4cnwwc2jxq5so7gvet3suozhb2a52q" + }, + "com.atproto.server.confirmEmail": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.confirmEmail", + "cid": "bafyreigsd23jlgjwtbbvv2pueoiuji3qini232nwzhjiex6tj7ehc57cdy" + }, + "com.atproto.server.createAccount": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.createAccount", + "cid": "bafyreie6o2sq47ukysnnnwxcb7eocpyyazetp5n3m4u3n5f7v5xr7qn62u" + }, + "com.atproto.server.createAppPassword": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.createAppPassword", + "cid": "bafyreickddwu7udrphtmvpcajiittidvobrror7tztxkshnnhcxyexylbu" + }, + "com.atproto.server.createInviteCode": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.createInviteCode", + "cid": "bafyreicce55wknsshpysqc2torzhkuo6v555piprncrkw7glptinbssbli" + }, + "com.atproto.server.createInviteCodes": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.createInviteCodes", + "cid": "bafyreidpwhayukm2ytzncekfinio4dehp5y6ksmwpvrxwl4fhdnqh62ewa" + }, + "com.atproto.server.createSession": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.createSession", + "cid": "bafyreieftxrfcsudzvfk5l73r2cukzwa6axzkfjs2l7dxtieyqnkdngwsq" + }, + "com.atproto.server.deactivateAccount": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.deactivateAccount", + "cid": "bafyreicewuflgo55i4yr7wblmnfcfsrqehy6zrq5jcqap2igkniantarwu" + }, + "com.atproto.server.defs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.defs", + "cid": "bafyreie6rctvespvjvdsway3keyu5yy25eqordhq44jmkxbf6roirlidwm" + }, + "com.atproto.server.deleteAccount": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.deleteAccount", + "cid": "bafyreie44rxc4ax3u2hg54636cgjedydzvy2q2cnifsayo3kxlpockkhzu" + }, + "com.atproto.server.deleteSession": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.deleteSession", + "cid": "bafyreiave4iopcsa62d5hm42ctf4n6z2ajkdqhz5evq53hmw26hghoz35q" + }, + "com.atproto.server.describeServer": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.describeServer", + "cid": "bafyreidjve4qbhebxzppq23ogsto6luddd63mmn7a57rmml6qi3yf7n3ee" + }, + "com.atproto.server.getAccountInviteCodes": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.getAccountInviteCodes", + "cid": "bafyreibeczlag36upzn67uqsheo4st47z7nbpvfrdgko777633saur7jui" + }, + "com.atproto.server.getServiceAuth": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.getServiceAuth", + "cid": "bafyreigjuxsvldkifmwzdrzvziq2ldomzoqizsv5umwgumjv77ld56wxyi" + }, + "com.atproto.server.getSession": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.getSession", + "cid": "bafyreihjh3lkkbdznrs5jfnt6mhxtnaitviqqma6zmoltt3weknwxlc5ae" + }, + "com.atproto.server.listAppPasswords": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.listAppPasswords", + "cid": "bafyreic7ipzaep5tjfw6pzvcl5goidfhkvquzvwyfftqnlgnc6eu2sjqjy" + }, + "com.atproto.server.refreshSession": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.refreshSession", + "cid": "bafyreie5cdpsl3ibp473xuycfxakryp5svq4gzdcwnfdzwm5xkxyzux2ly" + }, + "com.atproto.server.requestAccountDelete": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.requestAccountDelete", + "cid": "bafyreietqywku2g5whu4hehlopx3mwwrnkhupuw3udhp76ovdsqrhbhzgm" + }, + "com.atproto.server.requestEmailConfirmation": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.requestEmailConfirmation", + "cid": "bafyreidwpigpyhtbka5bgc3qkyr6ifp2j22bwdpjuitb2b3sjy5fae6cj4" + }, + "com.atproto.server.requestEmailUpdate": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.requestEmailUpdate", + "cid": "bafyreibd4flizyrui5mlyv5icokqhgocw2txvgjpmxkjrd6ok43jpjbleq" + }, + "com.atproto.server.requestPasswordReset": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.requestPasswordReset", + "cid": "bafyreihcycgtiyv5ah2nnpbbez3qleo2y2a3cf5uvz34tcaliicke2osfa" + }, + "com.atproto.server.reserveSigningKey": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.reserveSigningKey", + "cid": "bafyreig4anpzivr7yutnqobuqdtta6ls6i4xbarupyud5bwztmmpnvcr2u" + }, + "com.atproto.server.resetPassword": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.resetPassword", + "cid": "bafyreighhpnpsmoauobk4gqxpa5qtirodft25gcxnfxme7ic5zpv73tu6u" + }, + "com.atproto.server.revokeAppPassword": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.revokeAppPassword", + "cid": "bafyreif7fouud77wtwkbbxrgz2ixc7pofd7klamsrxotvs4cw63dzcqqvi" + }, + "com.atproto.server.updateEmail": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.server.updateEmail", + "cid": "bafyreia57t6r2crv7hinanwkcfyhqfcbt3qnfqponrj3j5owwlepnbxb7u" + }, + "com.atproto.sync.defs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.defs", + "cid": "bafyreia6vzfbj2nfmr7kn7fwy6lnugozgimpdcg2f3vovgsa4fk6fsfhse" + }, + "com.atproto.sync.getBlob": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getBlob", + "cid": "bafyreigievymssvpqn7v5gb6q7hrlepcyzy7xko5rnfrk2ywcjcfbd3574" + }, + "com.atproto.sync.getBlocks": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getBlocks", + "cid": "bafyreie5jvieoangaotlziavns65njosj5pklfqv6u5psgtkhdgmk25lpa" + }, + "com.atproto.sync.getCheckout": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getCheckout", + "cid": "bafyreiba6hvjo2chopkgwsy5n2sumywx2qhqvqycd5a6tqfsnbf5nodkzm" + }, + "com.atproto.sync.getHead": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getHead", + "cid": "bafyreiecq2pcytdy56ucv22a7snlt5lgacmfvemioj5jjyco6uo7t7akwi" + }, + "com.atproto.sync.getHostStatus": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getHostStatus", + "cid": "bafyreiazetpylsjgp5qfnu6qfb6ahthgjw7spbcl7hpyiz3srl7wnebdsq" + }, + "com.atproto.sync.getLatestCommit": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getLatestCommit", + "cid": "bafyreifewzvfus7z6rnmtv74lpulhldvikqmhzepwqdlaqmhllgyg4oejq" + }, + "com.atproto.sync.getRecord": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getRecord", + "cid": "bafyreiermob6nqcfc6hlhmvuo7jv3imo7hfy3og34oom2p3qe6tldajoru" + }, + "com.atproto.sync.getRepo": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getRepo", + "cid": "bafyreieyt5x6wf4pgcn56tb2724uplmwcqjivkubmi25km3xrvroz6dw5q" + }, + "com.atproto.sync.getRepoStatus": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getRepoStatus", + "cid": "bafyreidv752rhe2abwz2rp2akok2gnopmsk4wlwrwsf22uwhfzst6nh4ry" + }, + "com.atproto.sync.listBlobs": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.listBlobs", + "cid": "bafyreidjsbhbe5rstmx5tjbbjjrznqr2ehlqkdklvlnhlcndhdjycnuc4a" + }, + "com.atproto.sync.listHosts": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.listHosts", + "cid": "bafyreigxo77zttzvqzmhhvttfs7kom5npwjxkapmnmpirjyg7oui5tpwbe" + }, + "com.atproto.sync.listRepos": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.listRepos", + "cid": "bafyreic6q46ptlr4kv4eonzw3isiqegom5ldr32onhrv2kyrmppgakss2i" + }, + "com.atproto.sync.listReposByCollection": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.listReposByCollection", + "cid": "bafyreicl2azqcl4poa5cqyp3ghlomqkzswmu4uqff6cpwk2c7bjrhth75y" + }, + "com.atproto.sync.notifyOfUpdate": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.notifyOfUpdate", + "cid": "bafyreigohysvh6tjme6ihyygbrnjckr7e3rgmsoes6tx7xxhszulbek6gm" + }, + "com.atproto.sync.requestCrawl": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.requestCrawl", + "cid": "bafyreiepdcevsxqy6matus3wn2n3htnyihgc3etubne2ay3idq7h523hte" + }, + "com.atproto.sync.subscribeRepos": { + "uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.subscribeRepos", + "cid": "bafyreid5fdkjulxpnbfqwi4hjehx7ibzzj2h5ln7nachurdzqcpihytbuu" + }, + "com.atproto.temp.checkHandleAvailability": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/com.atproto.temp.checkHandleAvailability", + "cid": "bafyreifanpe7ixmxampsbl3oaftbo24vzhe5pcunhf3xdsmrmgrgkq5ziq" + }, + "com.atproto.temp.checkSignupQueue": { + "uri": "at://did:plc:placeholder00000000000000000000/com.atproto.lexicon.schema/com.atproto.temp.checkSignupQueue", + "cid": "bafyreignao6slhwqr5kqdiey243oy5wmewfkz4vzseoypdxzoyakwen7bm" + }, + "com.germnetwork.declaration": { + "uri": "at://did:plc:qyqmmncrm6qx33kpy7vqndik/com.atproto.lexicon.schema/com.germnetwork.declaration", + "cid": "bafyreickqsspgkujwucg3low5or64ywjryf44eua6xtszd6zsl2yteumoi" + }, + "tools.ozone.report.defs": { + "uri": "at://did:plc:33dt5kftu3jq2h5h4jjlqezt/com.atproto.lexicon.schema/tools.ozone.report.defs", + "cid": "bafyreic3l2rmh2ugirt3jz372wcvy333m7t2ynlyzj2k54oshijs6lxdfu" + } + } +} diff --git a/lexicons/app/bsky/actor/defs.json b/lexicons/app/bsky/actor/defs.json new file mode 100644 index 0000000000..f93af4680e --- /dev/null +++ b/lexicons/app/bsky/actor/defs.json @@ -0,0 +1,985 @@ +{ + "id": "app.bsky.actor.defs", + "defs": { + "nux": { + "type": "object", + "required": [ + "id", + "completed" + ], + "properties": { + "id": { + "type": "string", + "maxLength": 100 + }, + "data": { + "type": "string", + "maxLength": 3000, + "description": "Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.", + "maxGraphemes": 300 + }, + "completed": { + "type": "boolean", + "default": false + }, + "expiresAt": { + "type": "string", + "format": "datetime", + "description": "The date and time at which the NUX will expire and should be considered completed." + } + }, + "description": "A new user experiences (NUX) storage object" + }, + "mutedWord": { + "type": "object", + "required": [ + "value", + "targets" + ], + "properties": { + "id": { + "type": "string" + }, + "value": { + "type": "string", + "maxLength": 10000, + "description": "The muted word itself.", + "maxGraphemes": 1000 + }, + "targets": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#mutedWordTarget", + "type": "ref" + }, + "description": "The intended targets of the muted word." + }, + "expiresAt": { + "type": "string", + "format": "datetime", + "description": "The date and time at which the muted word will expire and no longer be applied." + }, + "actorTarget": { + "type": "string", + "default": "all", + "description": "Groups of users to apply the muted word to. If undefined, applies to all users.", + "knownValues": [ + "all", + "exclude-following" + ] + } + }, + "description": "A word that the account owner has muted." + }, + "savedFeed": { + "type": "object", + "required": [ + "id", + "type", + "value", + "pinned" + ], + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string", + "knownValues": [ + "feed", + "list", + "timeline" + ] + }, + "value": { + "type": "string" + }, + "pinned": { + "type": "boolean" + } + } + }, + "statusView": { + "type": "object", + "required": [ + "status", + "record" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "embed": { + "refs": [ + "app.bsky.embed.external#view" + ], + "type": "union", + "description": "An optional embed associated with the status." + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "record": { + "type": "unknown" + }, + "status": { + "type": "string", + "description": "The status for the account.", + "knownValues": [ + "app.bsky.actor.status#live" + ] + }, + "isActive": { + "type": "boolean", + "description": "True if the status is not expired, false if it is expired. Only present if expiration was set." + }, + "expiresAt": { + "type": "string", + "format": "datetime", + "description": "The date when this status will expire. The application might choose to no longer return the status after expiration." + }, + "isDisabled": { + "type": "boolean", + "description": "True if the user's go-live access has been disabled by a moderator, false otherwise." + } + } + }, + "preferences": { + "type": "array", + "items": { + "refs": [ + "#adultContentPref", + "#contentLabelPref", + "#savedFeedsPref", + "#savedFeedsPrefV2", + "#personalDetailsPref", + "#declaredAgePref", + "#feedViewPref", + "#threadViewPref", + "#interestsPref", + "#mutedWordsPref", + "#hiddenPostsPref", + "#bskyAppStatePref", + "#labelersPref", + "#postInteractionSettingsPref", + "#verificationPrefs", + "#liveEventPreferences" + ], + "type": "union" + } + }, + "profileView": { + "type": "object", + "required": [ + "did", + "handle" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "debug": { + "type": "unknown", + "description": "Debug information for internal development" + }, + "avatar": { + "type": "string", + "format": "uri" + }, + "handle": { + "type": "string", + "format": "handle" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "status": { + "ref": "#statusView", + "type": "ref" + }, + "viewer": { + "ref": "#viewerState", + "type": "ref" + }, + "pronouns": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "associated": { + "ref": "#profileAssociated", + "type": "ref" + }, + "description": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + }, + "displayName": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "verification": { + "ref": "#verificationState", + "type": "ref" + } + } + }, + "viewerState": { + "type": "object", + "properties": { + "muted": { + "type": "boolean" + }, + "blocking": { + "type": "string", + "format": "at-uri" + }, + "blockedBy": { + "type": "boolean" + }, + "following": { + "type": "string", + "format": "at-uri" + }, + "followedBy": { + "type": "string", + "format": "at-uri" + }, + "mutedByList": { + "ref": "app.bsky.graph.defs#listViewBasic", + "type": "ref" + }, + "blockingByList": { + "ref": "app.bsky.graph.defs#listViewBasic", + "type": "ref" + }, + "knownFollowers": { + "ref": "#knownFollowers", + "type": "ref", + "description": "This property is present only in selected cases, as an optimization." + }, + "activitySubscription": { + "ref": "app.bsky.notification.defs#activitySubscription", + "type": "ref", + "description": "This property is present only in selected cases, as an optimization." + } + }, + "description": "Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests." + }, + "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." + }, + "hideReposts": { + "type": "boolean", + "description": "Hide reposts in the feed." + }, + "hideQuotePosts": { + "type": "boolean", + "description": "Hide quote posts in the feed." + }, + "hideRepliesByLikeCount": { + "type": "integer", + "description": "Hide replies in the feed if they do not have this number of likes." + }, + "hideRepliesByUnfollowed": { + "type": "boolean", + "default": true, + "description": "Hide replies in the feed if they are not by followed users." + } + } + }, + "labelersPref": { + "type": "object", + "required": [ + "labelers" + ], + "properties": { + "labelers": { + "type": "array", + "items": { + "ref": "#labelerPrefItem", + "type": "ref" + } + } + } + }, + "interestsPref": { + "type": "object", + "required": [ + "tags" + ], + "properties": { + "tags": { + "type": "array", + "items": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "maxLength": 100, + "description": "A list of tags which describe the account owner's interests gathered during onboarding." + } + } + }, + "knownFollowers": { + "type": "object", + "required": [ + "count", + "followers" + ], + "properties": { + "count": { + "type": "integer" + }, + "followers": { + "type": "array", + "items": { + "ref": "#profileViewBasic", + "type": "ref" + }, + "maxLength": 5, + "minLength": 0 + } + }, + "description": "The subject's followers whom you also follow" + }, + "mutedWordsPref": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#mutedWord", + "type": "ref" + }, + "description": "A list of words the account owner has muted." + } + } + }, + "savedFeedsPref": { + "type": "object", + "required": [ + "pinned", + "saved" + ], + "properties": { + "saved": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + } + }, + "pinned": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + } + }, + "timelineIndex": { + "type": "integer" + } + } + }, + "threadViewPref": { + "type": "object", + "properties": { + "sort": { + "type": "string", + "description": "Sorting mode for threads.", + "knownValues": [ + "oldest", + "newest", + "most-likes", + "random", + "hotness" + ] + } + } + }, + "declaredAgePref": { + "type": "object", + "properties": { + "isOverAge13": { + "type": "boolean", + "description": "Indicates if the user has declared that they are over 13 years of age." + }, + "isOverAge16": { + "type": "boolean", + "description": "Indicates if the user has declared that they are over 16 years of age." + }, + "isOverAge18": { + "type": "boolean", + "description": "Indicates if the user has declared that they are over 18 years of age." + } + }, + "description": "Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration." + }, + "hiddenPostsPref": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + }, + "description": "A list of URIs of posts the account owner has hidden." + } + } + }, + "labelerPrefItem": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + }, + "mutedWordTarget": { + "type": "string", + "maxLength": 640, + "knownValues": [ + "content", + "tag" + ], + "maxGraphemes": 64 + }, + "adultContentPref": { + "type": "object", + "required": [ + "enabled" + ], + "properties": { + "enabled": { + "type": "boolean", + "default": false + } + } + }, + "bskyAppStatePref": { + "type": "object", + "properties": { + "nuxs": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#nux", + "type": "ref" + }, + "maxLength": 100, + "description": "Storage for NUXs the user has encountered." + }, + "isBetaUser": { + "type": "boolean", + "description": "Indicates if the user is participating in the beta features program." + }, + "queuedNudges": { + "type": "array", + "items": { + "type": "string", + "maxLength": 100 + }, + "maxLength": 1000, + "description": "An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user." + }, + "activeProgressGuide": { + "ref": "#bskyAppProgressGuide", + "type": "ref" + } + }, + "description": "A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this." + }, + "contentLabelPref": { + "type": "object", + "required": [ + "label", + "visibility" + ], + "properties": { + "label": { + "type": "string" + }, + "labelerDid": { + "type": "string", + "format": "did", + "description": "Which labeler does this preference apply to? If undefined, applies globally." + }, + "visibility": { + "type": "string", + "knownValues": [ + "ignore", + "show", + "warn", + "hide" + ] + } + } + }, + "profileViewBasic": { + "type": "object", + "required": [ + "did", + "handle" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "debug": { + "type": "unknown", + "description": "Debug information for internal development" + }, + "avatar": { + "type": "string", + "format": "uri" + }, + "handle": { + "type": "string", + "format": "handle" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "status": { + "ref": "#statusView", + "type": "ref" + }, + "viewer": { + "ref": "#viewerState", + "type": "ref" + }, + "pronouns": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "associated": { + "ref": "#profileAssociated", + "type": "ref" + }, + "displayName": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "verification": { + "ref": "#verificationState", + "type": "ref" + } + } + }, + "savedFeedsPrefV2": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#savedFeed", + "type": "ref" + } + } + } + }, + "verificationView": { + "type": "object", + "required": [ + "issuer", + "uri", + "isValid", + "createdAt" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri", + "description": "The AT-URI of the verification record." + }, + "issuer": { + "type": "string", + "format": "did", + "description": "The user who issued this verification." + }, + "isValid": { + "type": "boolean", + "description": "True if the verification passes validation, otherwise false." + }, + "createdAt": { + "type": "string", + "format": "datetime", + "description": "Timestamp when the verification was created." + }, + "issuerHandle": { + "type": "string", + "format": "handle", + "description": "The handle of the issuer." + }, + "issuerDisplayName": { + "type": "string", + "description": "The display name of the issuer." + } + }, + "description": "An individual verification for an associated subject." + }, + "profileAssociated": { + "type": "object", + "properties": { + "chat": { + "ref": "#profileAssociatedChat", + "type": "ref" + }, + "germ": { + "ref": "#profileAssociatedGerm", + "type": "ref" + }, + "lists": { + "type": "integer" + }, + "labeler": { + "type": "boolean" + }, + "feedgens": { + "type": "integer" + }, + "starterPacks": { + "type": "integer" + }, + "activitySubscription": { + "ref": "#profileAssociatedActivitySubscription", + "type": "ref" + } + } + }, + "verificationPrefs": { + "type": "object", + "required": [], + "properties": { + "hideBadges": { + "type": "boolean", + "default": false, + "description": "Hide the blue check badges for verified accounts and trusted verifiers." + } + }, + "description": "Preferences for how verified accounts appear in the app." + }, + "verificationState": { + "type": "object", + "required": [ + "verifications", + "verifiedStatus", + "trustedVerifierStatus" + ], + "properties": { + "verifications": { + "type": "array", + "items": { + "ref": "#verificationView", + "type": "ref" + }, + "description": "All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included." + }, + "verifiedStatus": { + "type": "string", + "description": "The user's status as a verified account.", + "knownValues": [ + "valid", + "invalid", + "none" + ] + }, + "trustedVerifierStatus": { + "type": "string", + "description": "The user's status as a trusted verifier.", + "knownValues": [ + "valid", + "invalid", + "none" + ] + } + }, + "description": "Represents the verification information about the user this object is attached to." + }, + "personalDetailsPref": { + "type": "object", + "properties": { + "birthDate": { + "type": "string", + "format": "datetime", + "description": "The birth date of account owner." + } + } + }, + "profileViewDetailed": { + "type": "object", + "required": [ + "did", + "handle" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "debug": { + "type": "unknown", + "description": "Debug information for internal development" + }, + "avatar": { + "type": "string", + "format": "uri" + }, + "banner": { + "type": "string", + "format": "uri" + }, + "handle": { + "type": "string", + "format": "handle" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "status": { + "ref": "#statusView", + "type": "ref" + }, + "viewer": { + "ref": "#viewerState", + "type": "ref" + }, + "website": { + "type": "string", + "format": "uri" + }, + "pronouns": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "associated": { + "ref": "#profileAssociated", + "type": "ref" + }, + "pinnedPost": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "postsCount": { + "type": "integer" + }, + "description": { + "type": "string", + "maxLength": 2560, + "maxGraphemes": 256 + }, + "displayName": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "followsCount": { + "type": "integer" + }, + "verification": { + "ref": "#verificationState", + "type": "ref" + }, + "followersCount": { + "type": "integer" + }, + "joinedViaStarterPack": { + "ref": "app.bsky.graph.defs#starterPackViewBasic", + "type": "ref" + } + } + }, + "bskyAppProgressGuide": { + "type": "object", + "required": [ + "guide" + ], + "properties": { + "guide": { + "type": "string", + "maxLength": 100 + } + }, + "description": "If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress." + }, + "liveEventPreferences": { + "type": "object", + "properties": { + "hideAllFeeds": { + "type": "boolean", + "default": false, + "description": "Whether to hide all feeds from live events." + }, + "hiddenFeedIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of feed IDs that the user has hidden from live events." + } + }, + "description": "Preferences for live events." + }, + "profileAssociatedChat": { + "type": "object", + "required": [ + "allowIncoming" + ], + "properties": { + "allowIncoming": { + "type": "string", + "knownValues": [ + "all", + "none", + "following" + ] + }, + "allowGroupInvites": { + "type": "string", + "knownValues": [ + "all", + "none", + "following" + ] + } + } + }, + "profileAssociatedGerm": { + "type": "object", + "required": [ + "showButtonTo", + "messageMeUrl" + ], + "properties": { + "messageMeUrl": { + "type": "string", + "format": "uri" + }, + "showButtonTo": { + "type": "string", + "knownValues": [ + "usersIFollow", + "everyone" + ] + } + } + }, + "postInteractionSettingsPref": { + "type": "object", + "required": [], + "properties": { + "threadgateAllowRules": { + "type": "array", + "items": { + "refs": [ + "app.bsky.feed.threadgate#mentionRule", + "app.bsky.feed.threadgate#followerRule", + "app.bsky.feed.threadgate#followingRule", + "app.bsky.feed.threadgate#listRule" + ], + "type": "union" + }, + "maxLength": 5, + "description": "Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply." + }, + "postgateEmbeddingRules": { + "type": "array", + "items": { + "refs": [ + "app.bsky.feed.postgate#disableRule" + ], + "type": "union" + }, + "maxLength": 5, + "description": "Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed." + } + }, + "description": "Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly." + }, + "profileAssociatedActivitySubscription": { + "type": "object", + "required": [ + "allowSubscriptions" + ], + "properties": { + "allowSubscriptions": { + "type": "string", + "knownValues": [ + "followers", + "mutuals", + "none" + ] + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/getPreferences.json b/lexicons/app/bsky/actor/getPreferences.json new file mode 100644 index 0000000000..513d27e6a9 --- /dev/null +++ b/lexicons/app/bsky/actor/getPreferences.json @@ -0,0 +1,30 @@ +{ + "id": "app.bsky.actor.getPreferences", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "preferences" + ], + "properties": { + "preferences": { + "ref": "app.bsky.actor.defs#preferences", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": {} + }, + "description": "Get private preferences attached to the current account. Expected use is synchronization between multiple devices, and import/export during account migration. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/getProfile.json b/lexicons/app/bsky/actor/getProfile.json new file mode 100644 index 0000000000..cbdde68df6 --- /dev/null +++ b/lexicons/app/bsky/actor/getProfile.json @@ -0,0 +1,31 @@ +{ + "id": "app.bsky.actor.getProfile", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "ref": "app.bsky.actor.defs#profileViewDetailed", + "type": "ref" + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier", + "description": "Handle or DID of account to fetch profile of." + } + } + }, + "description": "Get detailed profile view of an actor. Does not require auth, but contains relevant metadata with auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/getProfiles.json b/lexicons/app/bsky/actor/getProfiles.json new file mode 100644 index 0000000000..23f0693417 --- /dev/null +++ b/lexicons/app/bsky/actor/getProfiles.json @@ -0,0 +1,45 @@ +{ + "id": "app.bsky.actor.getProfiles", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "profiles" + ], + "properties": { + "profiles": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileViewDetailed", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actors" + ], + "properties": { + "actors": { + "type": "array", + "items": { + "type": "string", + "format": "at-identifier" + }, + "maxLength": 25 + } + } + }, + "description": "Get detailed profile views of multiple actors." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/getSuggestions.json b/lexicons/app/bsky/actor/getSuggestions.json new file mode 100644 index 0000000000..84afa86b36 --- /dev/null +++ b/lexicons/app/bsky/actor/getSuggestions.json @@ -0,0 +1,54 @@ +{ + "id": "app.bsky.actor.getSuggestions", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "actors" + ], + "properties": { + "recId": { + "type": "integer", + "description": "DEPRECATED: use recIdStr instead." + }, + "actors": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a list of suggested actors. Expected use is discovery of accounts to follow during new account onboarding." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/profile.json b/lexicons/app/bsky/actor/profile.json new file mode 100644 index 0000000000..256405db65 --- /dev/null +++ b/lexicons/app/bsky/actor/profile.json @@ -0,0 +1,75 @@ +{ + "id": "app.bsky.actor.profile", + "defs": { + "main": { + "key": "literal:self", + "type": "record", + "record": { + "type": "object", + "properties": { + "avatar": { + "type": "blob", + "accept": [ + "image/png", + "image/jpeg" + ], + "maxSize": 1000000, + "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'" + }, + "banner": { + "type": "blob", + "accept": [ + "image/png", + "image/jpeg" + ], + "maxSize": 1000000, + "description": "Larger horizontal image to display behind profile view." + }, + "labels": { + "refs": [ + "com.atproto.label.defs#selfLabels" + ], + "type": "union", + "description": "Self-label values, specific to the Bluesky application, on the overall account." + }, + "website": { + "type": "string", + "format": "uri" + }, + "pronouns": { + "type": "string", + "maxLength": 200, + "description": "Free-form pronouns text.", + "maxGraphemes": 20 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "pinnedPost": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "description": { + "type": "string", + "maxLength": 2560, + "description": "Free-form profile description text.", + "maxGraphemes": 256 + }, + "displayName": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "joinedViaStarterPack": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + } + } + }, + "description": "A declaration of a Bluesky account profile." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/putPreferences.json b/lexicons/app/bsky/actor/putPreferences.json new file mode 100644 index 0000000000..824d5a2e80 --- /dev/null +++ b/lexicons/app/bsky/actor/putPreferences.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.actor.putPreferences", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "preferences" + ], + "properties": { + "preferences": { + "ref": "app.bsky.actor.defs#preferences", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Set the private preferences attached to the account." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/searchActors.json b/lexicons/app/bsky/actor/searchActors.json new file mode 100644 index 0000000000..1e097e505f --- /dev/null +++ b/lexicons/app/bsky/actor/searchActors.json @@ -0,0 +1,54 @@ +{ + "id": "app.bsky.actor.searchActors", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "actors" + ], + "properties": { + "actors": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "q": { + "type": "string", + "description": "Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended." + }, + "term": { + "type": "string", + "description": "DEPRECATED: use 'q' instead." + }, + "limit": { + "type": "integer", + "default": 25, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Find actors (profiles) matching search criteria. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/searchActorsTypeahead.json b/lexicons/app/bsky/actor/searchActorsTypeahead.json new file mode 100644 index 0000000000..9f11920c7e --- /dev/null +++ b/lexicons/app/bsky/actor/searchActorsTypeahead.json @@ -0,0 +1,48 @@ +{ + "id": "app.bsky.actor.searchActorsTypeahead", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "actors" + ], + "properties": { + "actors": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileViewBasic", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "q": { + "type": "string", + "description": "Search query prefix; not a full query string." + }, + "term": { + "type": "string", + "description": "DEPRECATED: use 'q' instead." + }, + "limit": { + "type": "integer", + "default": 10, + "maximum": 100, + "minimum": 1 + } + } + }, + "description": "Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/actor/status.json b/lexicons/app/bsky/actor/status.json new file mode 100644 index 0000000000..7fd193c4d5 --- /dev/null +++ b/lexicons/app/bsky/actor/status.json @@ -0,0 +1,48 @@ +{ + "id": "app.bsky.actor.status", + "defs": { + "live": { + "type": "token", + "description": "Advertises an account as currently offering live content." + }, + "main": { + "key": "literal:self", + "type": "record", + "record": { + "type": "object", + "required": [ + "status", + "createdAt" + ], + "properties": { + "embed": { + "refs": [ + "app.bsky.embed.external" + ], + "type": "union", + "description": "An optional embed associated with the status." + }, + "status": { + "type": "string", + "description": "The status for the account.", + "knownValues": [ + "app.bsky.actor.status#live" + ] + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "durationMinutes": { + "type": "integer", + "minimum": 1, + "description": "The duration of the status in minutes. Applications can choose to impose minimum and maximum limits." + } + } + }, + "description": "A declaration of a Bluesky account status." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/ageassurance/begin.json b/lexicons/app/bsky/ageassurance/begin.json new file mode 100644 index 0000000000..0354e12190 --- /dev/null +++ b/lexicons/app/bsky/ageassurance/begin.json @@ -0,0 +1,61 @@ +{ + "id": "app.bsky.ageassurance.begin", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "email", + "language", + "countryCode" + ], + "properties": { + "email": { + "type": "string", + "description": "The user's email address to receive Age Assurance instructions." + }, + "language": { + "type": "string", + "description": "The user's preferred language for communication during the Age Assurance process." + }, + "regionCode": { + "type": "string", + "description": "An optional ISO 3166-2 code of the user's region or state within the country." + }, + "countryCode": { + "type": "string", + "description": "An ISO 3166-1 alpha-2 code of the user's location." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidEmail" + }, + { + "name": "DidTooLong" + }, + { + "name": "InvalidInitiation" + }, + { + "name": "RegionNotSupported" + } + ], + "output": { + "schema": { + "ref": "app.bsky.ageassurance.defs#state", + "type": "ref" + }, + "encoding": "application/json" + }, + "description": "Initiate Age Assurance for an account." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/ageassurance/defs.json b/lexicons/app/bsky/ageassurance/defs.json new file mode 100644 index 0000000000..ad253424cb --- /dev/null +++ b/lexicons/app/bsky/ageassurance/defs.json @@ -0,0 +1,321 @@ +{ + "id": "app.bsky.ageassurance.defs", + "defs": { + "event": { + "type": "object", + "required": [ + "createdAt", + "status", + "access", + "attemptId", + "countryCode" + ], + "properties": { + "email": { + "type": "string", + "description": "The email used for Age Assurance." + }, + "access": { + "type": "string", + "description": "The access level granted based on Age Assurance data we've processed.", + "knownValues": [ + "unknown", + "none", + "safe", + "full" + ] + }, + "initIp": { + "type": "string", + "description": "The IP address used when initiating the Age Assurance flow." + }, + "initUa": { + "type": "string", + "description": "The user agent used when initiating the Age Assurance flow." + }, + "status": { + "type": "string", + "description": "The status of the Age Assurance process.", + "knownValues": [ + "unknown", + "pending", + "assured", + "blocked" + ] + }, + "attemptId": { + "type": "string", + "description": "The unique identifier for this instance of the Age Assurance flow, in UUID format." + }, + "createdAt": { + "type": "string", + "format": "datetime", + "description": "The date and time of this write operation." + }, + "completeIp": { + "type": "string", + "description": "The IP address used when completing the Age Assurance flow." + }, + "completeUa": { + "type": "string", + "description": "The user agent used when completing the Age Assurance flow." + }, + "regionCode": { + "type": "string", + "description": "The ISO 3166-2 region code provided when beginning the Age Assurance flow." + }, + "countryCode": { + "type": "string", + "description": "The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow." + } + }, + "description": "Object used to store Age Assurance data in stash." + }, + "state": { + "type": "object", + "required": [ + "status", + "access" + ], + "properties": { + "access": { + "ref": "app.bsky.ageassurance.defs#access", + "type": "ref" + }, + "status": { + "ref": "app.bsky.ageassurance.defs#status", + "type": "ref" + }, + "lastInitiatedAt": { + "type": "string", + "format": "datetime", + "description": "The timestamp when this state was last updated." + } + }, + "description": "The user's computed Age Assurance state." + }, + "access": { + "type": "string", + "description": "The access level granted based on Age Assurance data we've processed.", + "knownValues": [ + "unknown", + "none", + "safe", + "full" + ] + }, + "config": { + "type": "object", + "required": [ + "regions" + ], + "properties": { + "regions": { + "type": "array", + "items": { + "ref": "app.bsky.ageassurance.defs#configRegion", + "type": "ref" + }, + "description": "The per-region Age Assurance configuration." + } + }, + "description": "" + }, + "status": { + "type": "string", + "description": "The status of the Age Assurance process.", + "knownValues": [ + "unknown", + "pending", + "assured", + "blocked" + ] + }, + "configRegion": { + "type": "object", + "required": [ + "countryCode", + "minAccessAge", + "rules" + ], + "properties": { + "rules": { + "type": "array", + "items": { + "refs": [ + "#configRegionRuleDefault", + "#configRegionRuleIfDeclaredOverAge", + "#configRegionRuleIfDeclaredUnderAge", + "#configRegionRuleIfAssuredOverAge", + "#configRegionRuleIfAssuredUnderAge", + "#configRegionRuleIfAccountNewerThan", + "#configRegionRuleIfAccountOlderThan" + ], + "type": "union" + }, + "description": "The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item." + }, + "regionCode": { + "type": "string", + "description": "The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country." + }, + "countryCode": { + "type": "string", + "description": "The ISO 3166-1 alpha-2 country code this configuration applies to." + }, + "minAccessAge": { + "type": "integer", + "description": "The minimum age (as a whole integer) required to use Bluesky in this region." + }, + "additionalVerificationMethods": { + "type": "array", + "items": { + "type": "string", + "knownValues": [ + "device" + ] + }, + "description": "Verification methods permitted in this region in addition to the third-party (KWS) flow, which is always supported. `device` permits using the native on-device age APIs (e.g. Apple Declared Age Range, Google Play Age Signals)." + } + }, + "description": "The Age Assurance configuration for a specific region." + }, + "stateMetadata": { + "type": "object", + "required": [], + "properties": { + "accountCreatedAt": { + "type": "string", + "format": "datetime", + "description": "The account creation timestamp." + } + }, + "description": "Additional metadata needed to compute Age Assurance state client-side." + }, + "configRegionRuleDefault": { + "type": "object", + "required": [ + "access" + ], + "properties": { + "access": { + "ref": "app.bsky.ageassurance.defs#access", + "type": "ref" + } + }, + "description": "Age Assurance rule that applies by default." + }, + "configRegionRuleIfAssuredOverAge": { + "type": "object", + "required": [ + "age", + "access" + ], + "properties": { + "age": { + "type": "integer", + "description": "The age threshold as a whole integer." + }, + "access": { + "ref": "app.bsky.ageassurance.defs#access", + "type": "ref" + } + }, + "description": "Age Assurance rule that applies if the user has been assured to be equal-to or over a certain age." + }, + "configRegionRuleIfAssuredUnderAge": { + "type": "object", + "required": [ + "age", + "access" + ], + "properties": { + "age": { + "type": "integer", + "description": "The age threshold as a whole integer." + }, + "access": { + "ref": "app.bsky.ageassurance.defs#access", + "type": "ref" + } + }, + "description": "Age Assurance rule that applies if the user has been assured to be under a certain age." + }, + "configRegionRuleIfDeclaredOverAge": { + "type": "object", + "required": [ + "age", + "access" + ], + "properties": { + "age": { + "type": "integer", + "description": "The age threshold as a whole integer." + }, + "access": { + "ref": "app.bsky.ageassurance.defs#access", + "type": "ref" + } + }, + "description": "Age Assurance rule that applies if the user has declared themselves equal-to or over a certain age." + }, + "configRegionRuleIfAccountNewerThan": { + "type": "object", + "required": [ + "date", + "access" + ], + "properties": { + "date": { + "type": "string", + "format": "datetime", + "description": "The date threshold as a datetime string." + }, + "access": { + "ref": "app.bsky.ageassurance.defs#access", + "type": "ref" + } + }, + "description": "Age Assurance rule that applies if the account is equal-to or newer than a certain date." + }, + "configRegionRuleIfAccountOlderThan": { + "type": "object", + "required": [ + "date", + "access" + ], + "properties": { + "date": { + "type": "string", + "format": "datetime", + "description": "The date threshold as a datetime string." + }, + "access": { + "ref": "app.bsky.ageassurance.defs#access", + "type": "ref" + } + }, + "description": "Age Assurance rule that applies if the account is older than a certain date." + }, + "configRegionRuleIfDeclaredUnderAge": { + "type": "object", + "required": [ + "age", + "access" + ], + "properties": { + "age": { + "type": "integer", + "description": "The age threshold as a whole integer." + }, + "access": { + "ref": "app.bsky.ageassurance.defs#access", + "type": "ref" + } + }, + "description": "Age Assurance rule that applies if the user has declared themselves under a certain age." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/ageassurance/getConfig.json b/lexicons/app/bsky/ageassurance/getConfig.json new file mode 100644 index 0000000000..793d5b9519 --- /dev/null +++ b/lexicons/app/bsky/ageassurance/getConfig.json @@ -0,0 +1,18 @@ +{ + "id": "app.bsky.ageassurance.getConfig", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "ref": "app.bsky.ageassurance.defs#config", + "type": "ref" + }, + "encoding": "application/json" + }, + "description": "Returns Age Assurance configuration for use on the client." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/ageassurance/getState.json b/lexicons/app/bsky/ageassurance/getState.json new file mode 100644 index 0000000000..42c7cd0ba9 --- /dev/null +++ b/lexicons/app/bsky/ageassurance/getState.json @@ -0,0 +1,45 @@ +{ + "id": "app.bsky.ageassurance.getState", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "state", + "metadata" + ], + "properties": { + "state": { + "ref": "app.bsky.ageassurance.defs#state", + "type": "ref" + }, + "metadata": { + "ref": "app.bsky.ageassurance.defs#stateMetadata", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "countryCode" + ], + "properties": { + "regionCode": { + "type": "string" + }, + "countryCode": { + "type": "string" + } + } + }, + "description": "Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authCreatePosts.json b/lexicons/app/bsky/authCreatePosts.json new file mode 100644 index 0000000000..78a24b7c6d --- /dev/null +++ b/lexicons/app/bsky/authCreatePosts.json @@ -0,0 +1,38 @@ +{ + "id": "app.bsky.authCreatePosts", + "defs": { + "main": { + "type": "permission-set", + "title": "Create Bluesky Posts", + "detail": "Can not update or delete posts.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "lxm": [ + "app.bsky.video.uploadVideo", + "app.bsky.video.getJobStatus", + "app.bsky.video.getUploadLimits" + ], + "type": "permission", + "resource": "rpc", + "inheritAud": true + }, + { + "type": "permission", + "action": [ + "create" + ], + "resource": "repo", + "collection": [ + "app.bsky.feed.post", + "app.bsky.feed.postgate", + "app.bsky.feed.threadgate" + ] + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authDeleteContent.json b/lexicons/app/bsky/authDeleteContent.json new file mode 100644 index 0000000000..41d2e81e73 --- /dev/null +++ b/lexicons/app/bsky/authDeleteContent.json @@ -0,0 +1,30 @@ +{ + "id": "app.bsky.authDeleteContent", + "defs": { + "main": { + "type": "permission-set", + "title": "Delete Bluesky Content", + "detail": "Clean up public account history: posts, reposts, and likes.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "type": "permission", + "action": [ + "delete" + ], + "resource": "repo", + "collection": [ + "app.bsky.feed.like", + "app.bsky.feed.post", + "app.bsky.feed.postgate", + "app.bsky.feed.repost", + "app.bsky.feed.threadgate" + ] + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authFullApp.json b/lexicons/app/bsky/authFullApp.json new file mode 100644 index 0000000000..756da359ae --- /dev/null +++ b/lexicons/app/bsky/authFullApp.json @@ -0,0 +1,142 @@ +{ + "id": "app.bsky.authFullApp", + "defs": { + "main": { + "type": "permission-set", + "title": "Full Bluesky Social App Permissions", + "detail": "Manage all public content and interactions, private preferences and subscriptions, and other Bluesky-specific app features and data.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "lxm": [ + "app.bsky.actor.getPreferences", + "app.bsky.actor.getProfile", + "app.bsky.actor.getProfiles", + "app.bsky.actor.getSuggestions", + "app.bsky.actor.putPreferences", + "app.bsky.actor.searchActors", + "app.bsky.actor.searchActorsTypeahead", + "app.bsky.bookmark.createBookmark", + "app.bsky.bookmark.deleteBookmark", + "app.bsky.bookmark.getBookmarks", + "app.bsky.contact.dismissMatch", + "app.bsky.contact.getMatches", + "app.bsky.contact.getSyncStatus", + "app.bsky.contact.importContacts", + "app.bsky.contact.removeData", + "app.bsky.contact.startPhoneVerification", + "app.bsky.contact.verifyPhone", + "app.bsky.feed.describeFeedGenerator", + "app.bsky.feed.getActorFeeds", + "app.bsky.feed.getActorLikes", + "app.bsky.feed.getAuthorFeed", + "app.bsky.feed.getFeed", + "app.bsky.feed.getFeedGenerator", + "app.bsky.feed.getFeedGenerators", + "app.bsky.feed.getFeedSkeleton", + "app.bsky.feed.getLikes", + "app.bsky.feed.getListFeed", + "app.bsky.feed.getPostThread", + "app.bsky.feed.getPosts", + "app.bsky.feed.getQuotes", + "app.bsky.feed.getRepostedBy", + "app.bsky.feed.getSuggestedFeeds", + "app.bsky.feed.getTimeline", + "app.bsky.feed.searchPosts", + "app.bsky.feed.searchPostsV2", + "app.bsky.feed.sendInteractions", + "app.bsky.graph.getActorStarterPacks", + "app.bsky.graph.getBlocks", + "app.bsky.graph.getFollowers", + "app.bsky.graph.getFollows", + "app.bsky.graph.getKnownFollowers", + "app.bsky.graph.getList", + "app.bsky.graph.getListBlocks", + "app.bsky.graph.getListMutes", + "app.bsky.graph.getLists", + "app.bsky.graph.getListsWithMembership", + "app.bsky.graph.getMutes", + "app.bsky.graph.getRelationships", + "app.bsky.graph.getStarterPack", + "app.bsky.graph.getStarterPacks", + "app.bsky.graph.getStarterPacksWithMembership", + "app.bsky.graph.getSuggestedFollowsByActor", + "app.bsky.graph.muteActor", + "app.bsky.graph.muteActorList", + "app.bsky.graph.muteThread", + "app.bsky.graph.searchStarterPacks", + "app.bsky.graph.unmuteActor", + "app.bsky.graph.unmuteActorList", + "app.bsky.graph.unmuteThread", + "app.bsky.labeler.getServices", + "app.bsky.notification.getPreferences", + "app.bsky.notification.getUnreadCount", + "app.bsky.notification.listActivitySubscriptions", + "app.bsky.notification.listNotifications", + "app.bsky.notification.putActivitySubscription", + "app.bsky.notification.putPreferences", + "app.bsky.notification.putPreferencesV2", + "app.bsky.notification.registerPush", + "app.bsky.notification.unregisterPush", + "app.bsky.notification.updateSeen", + "app.bsky.unspecced.getAgeAssuranceState", + "app.bsky.unspecced.getConfig", + "app.bsky.unspecced.getOnboardingSuggestedStarterPacks", + "app.bsky.unspecced.getPopularFeedGenerators", + "app.bsky.unspecced.getPostThreadOtherV2", + "app.bsky.unspecced.getPostThreadV2", + "app.bsky.unspecced.getSuggestedFeeds", + "app.bsky.unspecced.getSuggestedFeedsSkeleton", + "app.bsky.unspecced.getSuggestedStarterPacks", + "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", + "app.bsky.unspecced.getSuggestedUsers", + "app.bsky.unspecced.getSuggestedUsersSkeleton", + "app.bsky.unspecced.getSuggestionsSkeleton", + "app.bsky.unspecced.getTaggedSuggestions", + "app.bsky.unspecced.getTrendingTopics", + "app.bsky.unspecced.getTrends", + "app.bsky.unspecced.getTrendsSkeleton", + "app.bsky.unspecced.initAgeAssurance", + "app.bsky.unspecced.searchActorsSkeleton", + "app.bsky.unspecced.searchPostsSkeleton", + "app.bsky.unspecced.searchStarterPacksSkeleton", + "app.bsky.video.getJobStatus", + "app.bsky.video.getUploadLimits", + "app.bsky.video.uploadVideo" + ], + "type": "permission", + "resource": "rpc", + "inheritAud": true + }, + { + "type": "permission", + "action": [ + "create", + "update", + "delete" + ], + "resource": "repo", + "collection": [ + "app.bsky.actor.profile", + "app.bsky.actor.status", + "app.bsky.feed.like", + "app.bsky.feed.post", + "app.bsky.feed.postgate", + "app.bsky.feed.repost", + "app.bsky.feed.threadgate", + "app.bsky.graph.block", + "app.bsky.graph.follow", + "app.bsky.graph.list", + "app.bsky.graph.listblock", + "app.bsky.graph.listitem", + "app.bsky.graph.starterpack", + "app.bsky.notification.declaration" + ] + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authManageFeedDeclarations.json b/lexicons/app/bsky/authManageFeedDeclarations.json new file mode 100644 index 0000000000..c2126f073a --- /dev/null +++ b/lexicons/app/bsky/authManageFeedDeclarations.json @@ -0,0 +1,28 @@ +{ + "id": "app.bsky.authManageFeedDeclarations", + "defs": { + "main": { + "type": "permission-set", + "title": "Manage Hosted Feeds", + "detail": "Configure feed generator declaration records.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "type": "permission", + "action": [ + "create", + "update", + "delete" + ], + "resource": "repo", + "collection": [ + "app.bsky.feed.generator" + ] + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authManageLabelerService.json b/lexicons/app/bsky/authManageLabelerService.json new file mode 100644 index 0000000000..04a09127a4 --- /dev/null +++ b/lexicons/app/bsky/authManageLabelerService.json @@ -0,0 +1,28 @@ +{ + "id": "app.bsky.authManageLabelerService", + "defs": { + "main": { + "type": "permission-set", + "title": "Manage Hosted Labeling Service", + "detail": "Configure labeler declaration records.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "type": "permission", + "action": [ + "create", + "update", + "delete" + ], + "resource": "repo", + "collection": [ + "app.bsky.labeler.service" + ] + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authManageModeration.json b/lexicons/app/bsky/authManageModeration.json new file mode 100644 index 0000000000..ff28ffed02 --- /dev/null +++ b/lexicons/app/bsky/authManageModeration.json @@ -0,0 +1,44 @@ +{ + "id": "app.bsky.authManageModeration", + "defs": { + "main": { + "type": "permission-set", + "title": "Manage Personal Moderation", + "detail": "Control over blocks, mutes, mod lists, mod services, and preferences.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "lxm": [ + "app.bsky.actor.getPreferences", + "app.bsky.actor.putPreferences", + "app.bsky.graph.muteActor", + "app.bsky.graph.muteActorList", + "app.bsky.graph.muteThread", + "app.bsky.graph.unmuteActor", + "app.bsky.graph.unmuteActorList", + "app.bsky.graph.unmuteThread" + ], + "type": "permission", + "resource": "rpc", + "inheritAud": true + }, + { + "type": "permission", + "action": [ + "create", + "update", + "delete" + ], + "resource": "repo", + "collection": [ + "app.bsky.graph.block", + "app.bsky.graph.listblock" + ] + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authManageNotifications.json b/lexicons/app/bsky/authManageNotifications.json new file mode 100644 index 0000000000..8f74a9b17f --- /dev/null +++ b/lexicons/app/bsky/authManageNotifications.json @@ -0,0 +1,33 @@ +{ + "id": "app.bsky.authManageNotifications", + "defs": { + "main": { + "type": "permission-set", + "title": "Manage Bluesky Notifications", + "detail": "View and configure notifications for the Bluesky app.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "lxm": [ + "app.bsky.notification.getPreferences", + "app.bsky.notification.getUnreadCount", + "app.bsky.notification.listActivitySubscriptions", + "app.bsky.notification.listNotifications", + "app.bsky.notification.putActivitySubscription", + "app.bsky.notification.putPreferences", + "app.bsky.notification.putPreferencesV2", + "app.bsky.notification.registerPush", + "app.bsky.notification.unregisterPush", + "app.bsky.notification.updateSeen" + ], + "type": "permission", + "resource": "rpc", + "inheritAud": true + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authManageProfile.json b/lexicons/app/bsky/authManageProfile.json new file mode 100644 index 0000000000..7992284782 --- /dev/null +++ b/lexicons/app/bsky/authManageProfile.json @@ -0,0 +1,30 @@ +{ + "id": "app.bsky.authManageProfile", + "defs": { + "main": { + "type": "permission-set", + "title": "Manage Bluesky Profile", + "detail": "Update profile data, as well as status and public chat visibility.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "type": "permission", + "action": [ + "create", + "update", + "delete" + ], + "resource": "repo", + "collection": [ + "app.bsky.actor.profile", + "app.bsky.actor.status", + "app.bsky.notification.declaration" + ] + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/authViewAll.json b/lexicons/app/bsky/authViewAll.json new file mode 100644 index 0000000000..934d995b89 --- /dev/null +++ b/lexicons/app/bsky/authViewAll.json @@ -0,0 +1,91 @@ +{ + "id": "app.bsky.authViewAll", + "defs": { + "main": { + "type": "permission-set", + "title": "Read-only access to all content", + "detail": "View Bluesky network content from account perspective, and read all notifications and preferences.", + "title:lang": {}, + "detail:lang": {}, + "permissions": [ + { + "lxm": [ + "app.bsky.actor.getPreferences", + "app.bsky.actor.getProfile", + "app.bsky.actor.getProfiles", + "app.bsky.actor.getSuggestions", + "app.bsky.actor.searchActors", + "app.bsky.actor.searchActorsTypeahead", + "app.bsky.bookmark.getBookmarks", + "app.bsky.feed.describeFeedGenerator", + "app.bsky.feed.getActorFeeds", + "app.bsky.feed.getActorLikes", + "app.bsky.feed.getAuthorFeed", + "app.bsky.feed.getFeed", + "app.bsky.feed.getFeedGenerator", + "app.bsky.feed.getFeedGenerators", + "app.bsky.feed.getFeedSkeleton", + "app.bsky.feed.getLikes", + "app.bsky.feed.getListFeed", + "app.bsky.feed.getPostThread", + "app.bsky.feed.getPosts", + "app.bsky.feed.getQuotes", + "app.bsky.feed.getRepostedBy", + "app.bsky.feed.getSuggestedFeeds", + "app.bsky.feed.getTimeline", + "app.bsky.feed.searchPosts", + "app.bsky.feed.searchPostsV2", + "app.bsky.graph.getActorStarterPacks", + "app.bsky.graph.getBlocks", + "app.bsky.graph.getFollowers", + "app.bsky.graph.getFollows", + "app.bsky.graph.getKnownFollowers", + "app.bsky.graph.getListBlocks", + "app.bsky.graph.getListMutes", + "app.bsky.graph.getLists", + "app.bsky.graph.getListsWithMembership", + "app.bsky.graph.getMutes", + "app.bsky.graph.getRelationships", + "app.bsky.graph.getStarterPack", + "app.bsky.graph.getStarterPacks", + "app.bsky.graph.getStarterPacksWithMembership", + "app.bsky.graph.getSuggestedFollowsByActor", + "app.bsky.graph.searchStarterPacks", + "app.bsky.labeler.getServices", + "app.bsky.notification.getPreferences", + "app.bsky.notification.getUnreadCount", + "app.bsky.notification.listActivitySubscriptions", + "app.bsky.notification.listNotifications", + "app.bsky.notification.updateSeen", + "app.bsky.unspecced.getAgeAssuranceState", + "app.bsky.unspecced.getConfig", + "app.bsky.unspecced.getOnboardingSuggestedStarterPacks", + "app.bsky.unspecced.getPopularFeedGenerators", + "app.bsky.unspecced.getPostThreadOtherV2", + "app.bsky.unspecced.getPostThreadV2", + "app.bsky.unspecced.getSuggestedFeeds", + "app.bsky.unspecced.getSuggestedFeedsSkeleton", + "app.bsky.unspecced.getSuggestedStarterPacks", + "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", + "app.bsky.unspecced.getSuggestedUsers", + "app.bsky.unspecced.getSuggestedUsersSkeleton", + "app.bsky.unspecced.getSuggestionsSkeleton", + "app.bsky.unspecced.getTaggedSuggestions", + "app.bsky.unspecced.getTrendingTopics", + "app.bsky.unspecced.getTrends", + "app.bsky.unspecced.getTrendsSkeleton", + "app.bsky.unspecced.searchActorsSkeleton", + "app.bsky.unspecced.searchPostsSkeleton", + "app.bsky.unspecced.searchStarterPacksSkeleton", + "app.bsky.video.getUploadLimits" + ], + "type": "permission", + "resource": "rpc", + "inheritAud": true + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/bookmark/createBookmark.json b/lexicons/app/bsky/bookmark/createBookmark.json new file mode 100644 index 0000000000..378d494a2f --- /dev/null +++ b/lexicons/app/bsky/bookmark/createBookmark.json @@ -0,0 +1,37 @@ +{ + "id": "app.bsky.bookmark.createBookmark", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "uri", + "cid" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "UnsupportedCollection", + "description": "The URI to be bookmarked is for an unsupported collection." + } + ], + "description": "Creates a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/bookmark/defs.json b/lexicons/app/bsky/bookmark/defs.json new file mode 100644 index 0000000000..f499e55cd5 --- /dev/null +++ b/lexicons/app/bsky/bookmark/defs.json @@ -0,0 +1,47 @@ +{ + "id": "app.bsky.bookmark.defs", + "defs": { + "bookmark": { + "type": "object", + "required": [ + "subject" + ], + "properties": { + "subject": { + "ref": "com.atproto.repo.strongRef", + "type": "ref", + "description": "A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported." + } + }, + "description": "Object used to store bookmark data in stash." + }, + "bookmarkView": { + "type": "object", + "required": [ + "subject", + "item" + ], + "properties": { + "item": { + "refs": [ + "app.bsky.feed.defs#blockedPost", + "app.bsky.feed.defs#notFoundPost", + "app.bsky.feed.defs#postView" + ], + "type": "union" + }, + "subject": { + "ref": "com.atproto.repo.strongRef", + "type": "ref", + "description": "A strong ref to the bookmarked record." + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/bookmark/deleteBookmark.json b/lexicons/app/bsky/bookmark/deleteBookmark.json new file mode 100644 index 0000000000..52d5c3c2f5 --- /dev/null +++ b/lexicons/app/bsky/bookmark/deleteBookmark.json @@ -0,0 +1,32 @@ +{ + "id": "app.bsky.bookmark.deleteBookmark", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "uri" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "UnsupportedCollection", + "description": "The URI to be bookmarked is for an unsupported collection." + } + ], + "description": "Deletes a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/bookmark/getBookmarks.json b/lexicons/app/bsky/bookmark/getBookmarks.json new file mode 100644 index 0000000000..301914d4c2 --- /dev/null +++ b/lexicons/app/bsky/bookmark/getBookmarks.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.bookmark.getBookmarks", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "bookmarks" + ], + "properties": { + "cursor": { + "type": "string" + }, + "bookmarks": { + "type": "array", + "items": { + "ref": "app.bsky.bookmark.defs#bookmarkView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Gets views of records bookmarked by the authenticated user. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/defs.json b/lexicons/app/bsky/contact/defs.json new file mode 100644 index 0000000000..68f0179fb3 --- /dev/null +++ b/lexicons/app/bsky/contact/defs.json @@ -0,0 +1,67 @@ +{ + "id": "app.bsky.contact.defs", + "defs": { + "syncStatus": { + "type": "object", + "required": [ + "syncedAt", + "matchesCount" + ], + "properties": { + "syncedAt": { + "type": "string", + "format": "datetime", + "description": "Last date when contacts where imported." + }, + "matchesCount": { + "type": "integer", + "minimum": 0, + "description": "Number of existing contact matches resulting of the user imports and of their imported contacts having imported the user. Matches stop being counted when the user either follows the matched contact or dismisses the match." + } + } + }, + "notification": { + "type": "object", + "required": [ + "from", + "to" + ], + "properties": { + "to": { + "type": "string", + "format": "did", + "description": "The DID of who this notification should go to." + }, + "from": { + "type": "string", + "format": "did", + "description": "The DID of who this notification comes from." + } + }, + "description": "A stash object to be sent via bsync representing a notification to be created." + }, + "matchAndContactIndex": { + "type": "object", + "required": [ + "match", + "contactIndex" + ], + "properties": { + "match": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref", + "description": "Profile of the matched user." + }, + "contactIndex": { + "type": "integer", + "maximum": 999, + "minimum": 0, + "description": "The index of this match in the import contact input." + } + }, + "description": "Associates a profile with the positional index of the contact import input in the call to `app.bsky.contact.importContacts`, so clients can know which phone caused a particular match." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/dismissMatch.json b/lexicons/app/bsky/contact/dismissMatch.json new file mode 100644 index 0000000000..27cb2b3d7a --- /dev/null +++ b/lexicons/app/bsky/contact/dismissMatch.json @@ -0,0 +1,42 @@ +{ + "id": "app.bsky.contact.dismissMatch", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "subject" + ], + "properties": { + "subject": { + "type": "string", + "format": "did", + "description": "The subject's DID to dismiss the match with." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidDid" + }, + { + "name": "InternalError" + } + ], + "output": { + "schema": { + "type": "object", + "properties": {} + }, + "encoding": "application/json" + }, + "description": "Removes a match that was found via contact import. It shouldn't appear again if the same contact is re-imported. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/getMatches.json b/lexicons/app/bsky/contact/getMatches.json new file mode 100644 index 0000000000..cce3cac464 --- /dev/null +++ b/lexicons/app/bsky/contact/getMatches.json @@ -0,0 +1,60 @@ +{ + "id": "app.bsky.contact.getMatches", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "InvalidDid" + }, + { + "name": "InvalidLimit" + }, + { + "name": "InvalidCursor" + }, + { + "name": "InternalError" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "matches" + ], + "properties": { + "cursor": { + "type": "string" + }, + "matches": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Returns the matched contacts (contacts that were mutually imported). Excludes dismissed matches. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/getSyncStatus.json b/lexicons/app/bsky/contact/getSyncStatus.json new file mode 100644 index 0000000000..53dc538f78 --- /dev/null +++ b/lexicons/app/bsky/contact/getSyncStatus.json @@ -0,0 +1,36 @@ +{ + "id": "app.bsky.contact.getSyncStatus", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "InvalidDid" + }, + { + "name": "InternalError" + } + ], + "output": { + "schema": { + "type": "object", + "properties": { + "syncStatus": { + "ref": "app.bsky.contact.defs#syncStatus", + "type": "ref", + "description": "If present, indicates the user has imported their contacts. If not present, indicates the user never used the feature or called `app.bsky.contact.removeData` and didn't import again since." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": {} + }, + "description": "Gets the user's current contact import status. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/importContacts.json b/lexicons/app/bsky/contact/importContacts.json new file mode 100644 index 0000000000..70092e2583 --- /dev/null +++ b/lexicons/app/bsky/contact/importContacts.json @@ -0,0 +1,72 @@ +{ + "id": "app.bsky.contact.importContacts", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "token", + "contacts" + ], + "properties": { + "token": { + "type": "string", + "description": "JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`." + }, + "contacts": { + "type": "array", + "items": { + "type": "string" + }, + "maxLength": 1000, + "minLength": 1, + "description": "List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidDid" + }, + { + "name": "InvalidContacts" + }, + { + "name": "TooManyContacts" + }, + { + "name": "InvalidToken" + }, + { + "name": "InternalError" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "matchesAndContactIndexes" + ], + "properties": { + "matchesAndContactIndexes": { + "type": "array", + "items": { + "ref": "app.bsky.contact.defs#matchAndContactIndex", + "type": "ref" + }, + "description": "The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list." + } + } + }, + "encoding": "application/json" + }, + "description": "Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/removeData.json b/lexicons/app/bsky/contact/removeData.json new file mode 100644 index 0000000000..de8a938336 --- /dev/null +++ b/lexicons/app/bsky/contact/removeData.json @@ -0,0 +1,33 @@ +{ + "id": "app.bsky.contact.removeData", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "properties": {} + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidDid" + }, + { + "name": "InternalError" + } + ], + "output": { + "schema": { + "type": "object", + "properties": {} + }, + "encoding": "application/json" + }, + "description": "Removes all stored hashes used for contact matching, existing matches, and sync status. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/sendNotification.json b/lexicons/app/bsky/contact/sendNotification.json new file mode 100644 index 0000000000..400120ce6f --- /dev/null +++ b/lexicons/app/bsky/contact/sendNotification.json @@ -0,0 +1,40 @@ +{ + "id": "app.bsky.contact.sendNotification", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "from", + "to" + ], + "properties": { + "to": { + "type": "string", + "format": "did", + "description": "The DID of who this notification should go to." + }, + "from": { + "type": "string", + "format": "did", + "description": "The DID of who this notification comes from." + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "properties": {} + }, + "encoding": "application/json" + }, + "description": "System endpoint to send notifications related to contact imports. Requires role authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/startPhoneVerification.json b/lexicons/app/bsky/contact/startPhoneVerification.json new file mode 100644 index 0000000000..d2dcad8769 --- /dev/null +++ b/lexicons/app/bsky/contact/startPhoneVerification.json @@ -0,0 +1,47 @@ +{ + "id": "app.bsky.contact.startPhoneVerification", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "phone" + ], + "properties": { + "phone": { + "type": "string", + "description": "The phone number to receive the code via SMS." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "RateLimitExceeded" + }, + { + "name": "InvalidDid" + }, + { + "name": "InvalidPhone" + }, + { + "name": "InternalError" + } + ], + "output": { + "schema": { + "type": "object", + "properties": {} + }, + "encoding": "application/json" + }, + "description": "Starts a phone verification flow. The phone passed will receive a code via SMS that should be passed to `app.bsky.contact.verifyPhone`. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/contact/verifyPhone.json b/lexicons/app/bsky/contact/verifyPhone.json new file mode 100644 index 0000000000..20386c25f6 --- /dev/null +++ b/lexicons/app/bsky/contact/verifyPhone.json @@ -0,0 +1,63 @@ +{ + "id": "app.bsky.contact.verifyPhone", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "phone", + "code" + ], + "properties": { + "code": { + "type": "string", + "description": "The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`." + }, + "phone": { + "type": "string", + "description": "The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "RateLimitExceeded" + }, + { + "name": "InvalidDid" + }, + { + "name": "InvalidPhone" + }, + { + "name": "InvalidCode" + }, + { + "name": "InternalError" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "token" + ], + "properties": { + "token": { + "type": "string", + "description": "JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call." + } + } + }, + "encoding": "application/json" + }, + "description": "Verifies control over a phone number with a code received via SMS and starts a contact import session. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/draft/createDraft.json b/lexicons/app/bsky/draft/createDraft.json new file mode 100644 index 0000000000..6ba5dba477 --- /dev/null +++ b/lexicons/app/bsky/draft/createDraft.json @@ -0,0 +1,47 @@ +{ + "id": "app.bsky.draft.createDraft", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "draft" + ], + "properties": { + "draft": { + "ref": "app.bsky.draft.defs#draft", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "DraftLimitReached", + "description": "Trying to insert a new draft when the limit was already reached." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the created draft." + } + } + }, + "encoding": "application/json" + }, + "description": "Inserts a draft using private storage (stash). An upper limit of drafts might be enforced. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/draft/defs.json b/lexicons/app/bsky/draft/defs.json new file mode 100644 index 0000000000..507432944d --- /dev/null +++ b/lexicons/app/bsky/draft/defs.json @@ -0,0 +1,296 @@ +{ + "id": "app.bsky.draft.defs", + "defs": { + "draft": { + "type": "object", + "required": [ + "posts" + ], + "properties": { + "langs": { + "type": "array", + "items": { + "type": "string", + "format": "language" + }, + "maxLength": 3, + "description": "Indicates human language of posts primary text content." + }, + "posts": { + "type": "array", + "items": { + "ref": "#draftPost", + "type": "ref" + }, + "maxLength": 100, + "minLength": 1, + "description": "Array of draft posts that compose this draft." + }, + "deviceId": { + "type": "string", + "maxLength": 100, + "description": "UUIDv4 identifier of the device that created this draft." + }, + "deviceName": { + "type": "string", + "maxLength": 100, + "description": "The device and/or platform on which the draft was created." + }, + "threadgateAllow": { + "type": "array", + "items": { + "refs": [ + "app.bsky.feed.threadgate#mentionRule", + "app.bsky.feed.threadgate#followerRule", + "app.bsky.feed.threadgate#followingRule", + "app.bsky.feed.threadgate#listRule" + ], + "type": "union" + }, + "maxLength": 5, + "description": "Allow-rules for the threadgate to be created when this draft is published." + }, + "postgateEmbeddingRules": { + "type": "array", + "items": { + "refs": [ + "app.bsky.feed.postgate#disableRule" + ], + "type": "union" + }, + "maxLength": 5, + "description": "Embedding rules for the postgates to be created when this draft is published." + } + }, + "description": "A draft containing an array of draft posts." + }, + "draftPost": { + "type": "object", + "required": [ + "text" + ], + "properties": { + "text": { + "type": "string", + "maxLength": 10000, + "description": "The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.", + "maxGraphemes": 1000 + }, + "labels": { + "refs": [ + "com.atproto.label.defs#selfLabels" + ], + "type": "union", + "description": "Self-label values for this post. Effectively content warnings." + }, + "embedImages": { + "type": "array", + "items": { + "ref": "#draftEmbedImage", + "type": "ref" + }, + "maxLength": 4 + }, + "embedVideos": { + "type": "array", + "items": { + "ref": "#draftEmbedVideo", + "type": "ref" + }, + "maxLength": 1 + }, + "embedGallery": { + "ref": "#draftEmbedGallery", + "type": "ref" + }, + "embedRecords": { + "type": "array", + "items": { + "ref": "#draftEmbedRecord", + "type": "ref" + }, + "maxLength": 1 + }, + "embedExternals": { + "type": "array", + "items": { + "ref": "#draftEmbedExternal", + "type": "ref" + }, + "maxLength": 1 + } + }, + "description": "One of the posts that compose a draft." + }, + "draftView": { + "type": "object", + "required": [ + "id", + "draft", + "createdAt", + "updatedAt" + ], + "properties": { + "id": { + "type": "string", + "format": "tid", + "description": "A TID to be used as a draft identifier." + }, + "draft": { + "ref": "#draft", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime", + "description": "The time the draft was created." + }, + "updatedAt": { + "type": "string", + "format": "datetime", + "description": "The time the draft was last updated." + } + }, + "description": "View to present drafts data to users." + }, + "draftWithId": { + "type": "object", + "required": [ + "id", + "draft" + ], + "properties": { + "id": { + "type": "string", + "format": "tid", + "description": "A TID to be used as a draft identifier." + }, + "draft": { + "ref": "#draft", + "type": "ref" + } + }, + "description": "A draft with an identifier, used to store drafts in private storage (stash)." + }, + "draftEmbedImage": { + "type": "object", + "required": [ + "localRef" + ], + "properties": { + "alt": { + "type": "string", + "maxGraphemes": 2000 + }, + "localRef": { + "ref": "#draftEmbedLocalRef", + "type": "ref" + } + } + }, + "draftEmbedVideo": { + "type": "object", + "required": [ + "localRef" + ], + "properties": { + "alt": { + "type": "string", + "maxGraphemes": 2000 + }, + "captions": { + "type": "array", + "items": { + "ref": "#draftEmbedCaption", + "type": "ref" + }, + "maxLength": 20 + }, + "localRef": { + "ref": "#draftEmbedLocalRef", + "type": "ref" + } + } + }, + "draftEmbedRecord": { + "type": "object", + "required": [ + "record" + ], + "properties": { + "record": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + } + } + }, + "draftEmbedCaption": { + "type": "object", + "required": [ + "lang", + "content" + ], + "properties": { + "lang": { + "type": "string", + "format": "language" + }, + "content": { + "type": "string", + "maxLength": 10000 + } + } + }, + "draftEmbedGallery": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "ref": "#draftEmbedGalleryItems", + "type": "ref" + } + } + }, + "draftEmbedExternal": { + "type": "object", + "required": [ + "uri" + ], + "properties": { + "uri": { + "type": "string", + "format": "uri" + } + } + }, + "draftEmbedLocalRef": { + "type": "object", + "required": [ + "path" + ], + "properties": { + "path": { + "type": "string", + "maxLength": 1024, + "minLength": 1, + "description": "Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts." + } + } + }, + "draftEmbedGalleryItems": { + "type": "array", + "items": { + "refs": [ + "#draftEmbedImage" + ], + "type": "union" + }, + "maxLength": 20, + "description": "The schema-level maxLength of 20 is a future-proof ceiling. Clients should currently enforce a soft limit of 10 items in authoring UIs." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/draft/deleteDraft.json b/lexicons/app/bsky/draft/deleteDraft.json new file mode 100644 index 0000000000..a88f3d48d2 --- /dev/null +++ b/lexicons/app/bsky/draft/deleteDraft.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.draft.deleteDraft", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "format": "tid" + } + } + }, + "encoding": "application/json" + }, + "description": "Deletes a draft by ID. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/draft/getDrafts.json b/lexicons/app/bsky/draft/getDrafts.json new file mode 100644 index 0000000000..aba35d59f8 --- /dev/null +++ b/lexicons/app/bsky/draft/getDrafts.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.draft.getDrafts", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "drafts" + ], + "properties": { + "cursor": { + "type": "string" + }, + "drafts": { + "type": "array", + "items": { + "ref": "app.bsky.draft.defs#draftView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Gets views of user drafts. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/draft/updateDraft.json b/lexicons/app/bsky/draft/updateDraft.json new file mode 100644 index 0000000000..a99f331e1b --- /dev/null +++ b/lexicons/app/bsky/draft/updateDraft.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.draft.updateDraft", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "draft" + ], + "properties": { + "draft": { + "ref": "app.bsky.draft.defs#draftWithId", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Updates a draft using private storage (stash). If the draft ID points to a non-existing ID, the update will be silently ignored. This is done because updates don't enforce draft limit, so it accepts all writes, but will ignore invalid ones. Requires authentication." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/embed/defs.json b/lexicons/app/bsky/embed/defs.json new file mode 100644 index 0000000000..9aff68864c --- /dev/null +++ b/lexicons/app/bsky/embed/defs.json @@ -0,0 +1,25 @@ +{ + "id": "app.bsky.embed.defs", + "defs": { + "aspectRatio": { + "type": "object", + "required": [ + "width", + "height" + ], + "properties": { + "width": { + "type": "integer", + "minimum": 1 + }, + "height": { + "type": "integer", + "minimum": 1 + } + }, + "description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/embed/external.json b/lexicons/app/bsky/embed/external.json new file mode 100644 index 0000000000..d4bd886490 --- /dev/null +++ b/lexicons/app/bsky/embed/external.json @@ -0,0 +1,210 @@ +{ + "id": "app.bsky.embed.external", + "defs": { + "main": { + "type": "object", + "required": [ + "external" + ], + "properties": { + "external": { + "ref": "#external", + "type": "ref" + } + }, + "description": "A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post)." + }, + "view": { + "type": "object", + "required": [ + "external" + ], + "properties": { + "external": { + "ref": "#viewExternal", + "type": "ref" + } + } + }, + "colorRGB": { + "type": "object", + "required": [ + "r", + "g", + "b" + ], + "properties": { + "b": { + "type": "integer", + "maximum": 255, + "minimum": 0 + }, + "g": { + "type": "integer", + "maximum": 255, + "minimum": 0 + }, + "r": { + "type": "integer", + "maximum": 255, + "minimum": 0 + } + }, + "description": "RGB color definition, inspired by site.standard.theme.color#rgb" + }, + "external": { + "type": "object", + "required": [ + "uri", + "title", + "description" + ], + "properties": { + "uri": { + "type": "string", + "format": "uri" + }, + "thumb": { + "type": "blob", + "accept": [ + "image/*" + ], + "maxSize": 1000000 + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "associatedRefs": { + "type": "array", + "items": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "description": "StrongRefs (uri+cid) of the Atmosphere records that backed this view." + } + } + }, + "viewExternal": { + "type": "object", + "required": [ + "uri", + "title", + "description" + ], + "properties": { + "uri": { + "type": "string", + "format": "uri" + }, + "thumb": { + "type": "string", + "format": "uri" + }, + "title": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "source": { + "ref": "#viewExternalSource", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime", + "description": "When the external content was created, if available. Example: a publication date, for an article." + }, + "updatedAt": { + "type": "string", + "format": "datetime", + "description": "When the external content was updated, if available." + }, + "description": { + "type": "string" + }, + "readingTime": { + "type": "integer", + "description": "Estimated reading time in minutes, if applicable and available." + }, + "associatedRefs": { + "type": "array", + "items": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "description": "StrongRefs (uri+cid) of the Atmosphere records that backed this view." + }, + "associatedProfiles": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles of the owners of the Atmosphere records that backed this view." + } + } + }, + "viewExternalSource": { + "type": "object", + "required": [ + "uri", + "title" + ], + "properties": { + "uri": { + "type": "string", + "format": "uri", + "description": "URI of the source, if available. Example: the https:// URL of a site.standard.publication record." + }, + "icon": { + "type": "string", + "format": "uri", + "description": "Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View." + }, + "theme": { + "ref": "#viewExternalSourceTheme", + "type": "ref" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "description": "The source of an external embed, such as a standard.site publication." + }, + "viewExternalSourceTheme": { + "type": "object", + "properties": { + "accentRGB": { + "ref": "#colorRGB", + "type": "ref" + }, + "backgroundRGB": { + "ref": "#colorRGB", + "type": "ref" + }, + "foregroundRGB": { + "ref": "#colorRGB", + "type": "ref" + }, + "accentForegroundRGB": { + "ref": "#colorRGB", + "type": "ref" + } + }, + "description": "The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/embed/gallery.json b/lexicons/app/bsky/embed/gallery.json new file mode 100644 index 0000000000..39f8a3024e --- /dev/null +++ b/lexicons/app/bsky/embed/gallery.json @@ -0,0 +1,99 @@ +{ + "id": "app.bsky.embed.gallery", + "defs": { + "main": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "refs": [ + "#image" + ], + "type": "union", + "description": "The media items in the gallery. Each item may be of a different type, but all types must be supported by the client." + }, + "maxLength": 20, + "description": "The schema-level maxLength of 20 is a future-proof ceiling. Clients should currently enforce a soft limit of 10 items in authoring UIs." + } + } + }, + "view": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "refs": [ + "#viewImage" + ], + "type": "union" + } + } + } + }, + "image": { + "type": "object", + "required": [ + "image", + "alt", + "aspectRatio" + ], + "properties": { + "alt": { + "type": "string", + "description": "Alt text description of the image, for accessibility." + }, + "image": { + "type": "blob", + "accept": [ + "image/*" + ], + "maxSize": 2000000 + }, + "aspectRatio": { + "ref": "app.bsky.embed.defs#aspectRatio", + "type": "ref" + } + } + }, + "viewImage": { + "type": "object", + "required": [ + "thumbnail", + "fullsize", + "alt", + "aspectRatio" + ], + "properties": { + "alt": { + "type": "string", + "description": "Alt text description of the image, for accessibility." + }, + "fullsize": { + "type": "string", + "format": "uri", + "description": "Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View." + }, + "thumbnail": { + "type": "string", + "format": "uri", + "description": "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View." + }, + "aspectRatio": { + "ref": "app.bsky.embed.defs#aspectRatio", + "type": "ref" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1, + "description": "An assortment of media embedded in a Bluesky record (eg, a post)." +} diff --git a/lexicons/app/bsky/embed/getEmbedExternalView.json b/lexicons/app/bsky/embed/getEmbedExternalView.json new file mode 100644 index 0000000000..7b60eb3fc9 --- /dev/null +++ b/lexicons/app/bsky/embed/getEmbedExternalView.json @@ -0,0 +1,62 @@ +{ + "id": "app.bsky.embed.getEmbedExternalView", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "properties": { + "view": { + "ref": "app.bsky.embed.external#view", + "type": "ref", + "description": "Hydrated view of the embed. Present only when the resolved records back the requested URL and supply enough information to populate the required `viewExternal` fields. Omitted alongside the rest of the response when no records resolved or validation failed." + }, + "associatedRefs": { + "type": "array", + "items": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "description": "StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a post's external.associatedRefs." + }, + "associatedRecords": { + "type": "array", + "items": { + "type": "unknown", + "description": "The raw record data of the Atmosphere records that backed this view. This is returned for convenience, to avoid the need for the client to separately fetch the record data for the associatedRefs. Example: the site.standard.document and site.standard.publication records that backed this view." + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "url", + "uris" + ], + "properties": { + "url": { + "type": "string", + "format": "uri", + "description": "The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's `uri`. May be used for validation in the future." + }, + "uris": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + }, + "maxLength": 4, + "description": "AT-URIs of any Atmosphere records that can be resolved and used to construct #externalView views. Example: a site.standard.document and optionally its associated site.standard.publication." + } + } + }, + "description": "Resolve one or more AT-URIs into the data needed to render an enhanced external embed. Returns `associatedRefs` (strongRefs to embed into a post's external.associatedRefs), the raw `associatedRecords`, and a hydrated `view`. The response is empty (`{}`) when no records were resolvable, or when validation determined the resolved records don't actually back the requested URL; clients should fall back to their own link-card rendering in that case and skip writing strongRefs to the post." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/embed/images.json b/lexicons/app/bsky/embed/images.json new file mode 100644 index 0000000000..7f9c30c263 --- /dev/null +++ b/lexicons/app/bsky/embed/images.json @@ -0,0 +1,93 @@ +{ + "id": "app.bsky.embed.images", + "defs": { + "main": { + "type": "object", + "required": [ + "images" + ], + "properties": { + "images": { + "type": "array", + "items": { + "ref": "#image", + "type": "ref" + }, + "maxLength": 4 + } + } + }, + "view": { + "type": "object", + "required": [ + "images" + ], + "properties": { + "images": { + "type": "array", + "items": { + "ref": "#viewImage", + "type": "ref" + }, + "maxLength": 4 + } + } + }, + "image": { + "type": "object", + "required": [ + "image", + "alt" + ], + "properties": { + "alt": { + "type": "string", + "description": "Alt text description of the image, for accessibility." + }, + "image": { + "type": "blob", + "accept": [ + "image/*" + ], + "maxSize": 2000000, + "description": "The raw image file. May be up to 2 MB, formerly limited to 1 MB." + }, + "aspectRatio": { + "ref": "app.bsky.embed.defs#aspectRatio", + "type": "ref" + } + } + }, + "viewImage": { + "type": "object", + "required": [ + "thumb", + "fullsize", + "alt" + ], + "properties": { + "alt": { + "type": "string", + "description": "Alt text description of the image, for accessibility." + }, + "thumb": { + "type": "string", + "format": "uri", + "description": "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View." + }, + "fullsize": { + "type": "string", + "format": "uri", + "description": "Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View." + }, + "aspectRatio": { + "ref": "app.bsky.embed.defs#aspectRatio", + "type": "ref" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1, + "description": "A set of images embedded in a Bluesky record (eg, a post)." +} diff --git a/lexicons/app/bsky/embed/record.json b/lexicons/app/bsky/embed/record.json new file mode 100644 index 0000000000..3aef654207 --- /dev/null +++ b/lexicons/app/bsky/embed/record.json @@ -0,0 +1,162 @@ +{ + "id": "app.bsky.embed.record", + "defs": { + "main": { + "type": "object", + "required": [ + "record" + ], + "properties": { + "record": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + } + } + }, + "view": { + "type": "object", + "required": [ + "record" + ], + "properties": { + "record": { + "refs": [ + "#viewRecord", + "#viewNotFound", + "#viewBlocked", + "#viewDetached", + "app.bsky.feed.defs#generatorView", + "app.bsky.graph.defs#listView", + "app.bsky.labeler.defs#labelerView", + "app.bsky.graph.defs#starterPackViewBasic" + ], + "type": "union" + } + } + }, + "viewRecord": { + "type": "object", + "required": [ + "uri", + "cid", + "author", + "value", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "value": { + "type": "unknown", + "description": "The record data itself." + }, + "author": { + "ref": "app.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "embeds": { + "type": "array", + "items": { + "refs": [ + "app.bsky.embed.images#view", + "app.bsky.embed.video#view", + "app.bsky.embed.gallery#view", + "app.bsky.embed.external#view", + "app.bsky.embed.record#view", + "app.bsky.embed.recordWithMedia#view" + ], + "type": "union" + } + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "likeCount": { + "type": "integer" + }, + "quoteCount": { + "type": "integer" + }, + "replyCount": { + "type": "integer" + }, + "repostCount": { + "type": "integer" + } + } + }, + "viewBlocked": { + "type": "object", + "required": [ + "uri", + "blocked", + "author" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "author": { + "ref": "app.bsky.feed.defs#blockedAuthor", + "type": "ref" + }, + "blocked": { + "type": "boolean", + "const": true + } + } + }, + "viewDetached": { + "type": "object", + "required": [ + "uri", + "detached" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "detached": { + "type": "boolean", + "const": true + } + } + }, + "viewNotFound": { + "type": "object", + "required": [ + "uri", + "notFound" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "notFound": { + "type": "boolean", + "const": true + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1, + "description": "A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record." +} diff --git a/lexicons/app/bsky/embed/recordWithMedia.json b/lexicons/app/bsky/embed/recordWithMedia.json new file mode 100644 index 0000000000..76da14a364 --- /dev/null +++ b/lexicons/app/bsky/embed/recordWithMedia.json @@ -0,0 +1,52 @@ +{ + "id": "app.bsky.embed.recordWithMedia", + "defs": { + "main": { + "type": "object", + "required": [ + "record", + "media" + ], + "properties": { + "media": { + "refs": [ + "app.bsky.embed.images", + "app.bsky.embed.video", + "app.bsky.embed.gallery", + "app.bsky.embed.external" + ], + "type": "union" + }, + "record": { + "ref": "app.bsky.embed.record", + "type": "ref" + } + } + }, + "view": { + "type": "object", + "required": [ + "record", + "media" + ], + "properties": { + "media": { + "refs": [ + "app.bsky.embed.images#view", + "app.bsky.embed.video#view", + "app.bsky.embed.gallery#view", + "app.bsky.embed.external#view" + ], + "type": "union" + }, + "record": { + "ref": "app.bsky.embed.record#view", + "type": "ref" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1, + "description": "A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card." +} diff --git a/lexicons/app/bsky/embed/video.json b/lexicons/app/bsky/embed/video.json new file mode 100644 index 0000000000..67278da9c2 --- /dev/null +++ b/lexicons/app/bsky/embed/video.json @@ -0,0 +1,108 @@ +{ + "id": "app.bsky.embed.video", + "defs": { + "main": { + "type": "object", + "required": [ + "video" + ], + "properties": { + "alt": { + "type": "string", + "maxLength": 10000, + "description": "Alt text description of the video, for accessibility.", + "maxGraphemes": 1000 + }, + "video": { + "type": "blob", + "accept": [ + "video/mp4" + ], + "maxSize": 100000000, + "description": "The mp4 video file. May be up to 100mb, formerly limited to 50mb." + }, + "captions": { + "type": "array", + "items": { + "ref": "#caption", + "type": "ref" + }, + "maxLength": 20 + }, + "aspectRatio": { + "ref": "app.bsky.embed.defs#aspectRatio", + "type": "ref" + }, + "presentation": { + "type": "string", + "description": "A hint to the client about how to present the video.", + "knownValues": [ + "default", + "gif" + ] + } + } + }, + "view": { + "type": "object", + "required": [ + "cid", + "playlist" + ], + "properties": { + "alt": { + "type": "string", + "maxLength": 10000, + "maxGraphemes": 1000 + }, + "cid": { + "type": "string", + "format": "cid" + }, + "playlist": { + "type": "string", + "format": "uri" + }, + "thumbnail": { + "type": "string", + "format": "uri" + }, + "aspectRatio": { + "ref": "app.bsky.embed.defs#aspectRatio", + "type": "ref" + }, + "presentation": { + "type": "string", + "description": "A hint to the client about how to present the video.", + "knownValues": [ + "default", + "gif" + ] + } + } + }, + "caption": { + "type": "object", + "required": [ + "lang", + "file" + ], + "properties": { + "file": { + "type": "blob", + "accept": [ + "text/vtt" + ], + "maxSize": 20000 + }, + "lang": { + "type": "string", + "format": "language" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1, + "description": "A video embedded in a Bluesky record (eg, a post)." +} diff --git a/lexicons/app/bsky/feed/defs.json b/lexicons/app/bsky/feed/defs.json new file mode 100644 index 0000000000..436782d4ec --- /dev/null +++ b/lexicons/app/bsky/feed/defs.json @@ -0,0 +1,545 @@ +{ + "id": "app.bsky.feed.defs", + "defs": { + "postView": { + "type": "object", + "required": [ + "uri", + "cid", + "author", + "record", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "debug": { + "type": "unknown", + "description": "Debug information for internal development" + }, + "embed": { + "refs": [ + "app.bsky.embed.images#view", + "app.bsky.embed.video#view", + "app.bsky.embed.gallery#view", + "app.bsky.embed.external#view", + "app.bsky.embed.record#view", + "app.bsky.embed.recordWithMedia#view" + ], + "type": "union" + }, + "author": { + "ref": "app.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "record": { + "type": "unknown" + }, + "viewer": { + "ref": "#viewerState", + "type": "ref" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "likeCount": { + "type": "integer" + }, + "quoteCount": { + "type": "integer" + }, + "replyCount": { + "type": "integer" + }, + "threadgate": { + "ref": "#threadgateView", + "type": "ref" + }, + "repostCount": { + "type": "integer" + }, + "bookmarkCount": { + "type": "integer" + } + } + }, + "replyRef": { + "type": "object", + "required": [ + "root", + "parent" + ], + "properties": { + "root": { + "refs": [ + "#postView", + "#notFoundPost", + "#blockedPost" + ], + "type": "union" + }, + "parent": { + "refs": [ + "#postView", + "#notFoundPost", + "#blockedPost" + ], + "type": "union" + }, + "grandparentAuthor": { + "ref": "app.bsky.actor.defs#profileViewBasic", + "type": "ref", + "description": "When parent is a reply to another post, this is the author of that post." + } + } + }, + "reasonPin": { + "type": "object", + "properties": {} + }, + "blockedPost": { + "type": "object", + "required": [ + "uri", + "blocked", + "author" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "author": { + "ref": "#blockedAuthor", + "type": "ref" + }, + "blocked": { + "type": "boolean", + "const": true + } + } + }, + "interaction": { + "type": "object", + "properties": { + "item": { + "type": "string", + "format": "at-uri" + }, + "event": { + "type": "string", + "knownValues": [ + "app.bsky.feed.defs#requestLess", + "app.bsky.feed.defs#requestMore", + "app.bsky.feed.defs#clickthroughItem", + "app.bsky.feed.defs#clickthroughAuthor", + "app.bsky.feed.defs#clickthroughReposter", + "app.bsky.feed.defs#clickthroughEmbed", + "app.bsky.feed.defs#interactionSeen", + "app.bsky.feed.defs#interactionLike", + "app.bsky.feed.defs#interactionRepost", + "app.bsky.feed.defs#interactionReply", + "app.bsky.feed.defs#interactionQuote", + "app.bsky.feed.defs#interactionShare" + ] + }, + "reqId": { + "type": "string", + "maxLength": 100, + "description": "Unique identifier per request that may be passed back alongside interactions." + }, + "feedContext": { + "type": "string", + "maxLength": 2000, + "description": "Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton." + } + } + }, + "requestLess": { + "type": "token", + "description": "Request that less content like the given feed item be shown in the feed" + }, + "requestMore": { + "type": "token", + "description": "Request that more content like the given feed item be shown in the feed" + }, + "viewerState": { + "type": "object", + "properties": { + "like": { + "type": "string", + "format": "at-uri" + }, + "pinned": { + "type": "boolean" + }, + "repost": { + "type": "string", + "format": "at-uri" + }, + "bookmarked": { + "type": "boolean" + }, + "threadMuted": { + "type": "boolean" + }, + "replyDisabled": { + "type": "boolean" + }, + "embeddingDisabled": { + "type": "boolean" + } + }, + "description": "Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests." + }, + "feedViewPost": { + "type": "object", + "required": [ + "post" + ], + "properties": { + "post": { + "ref": "#postView", + "type": "ref" + }, + "reply": { + "ref": "#replyRef", + "type": "ref" + }, + "reqId": { + "type": "string", + "maxLength": 100, + "description": "Unique identifier per request that may be passed back alongside interactions." + }, + "reason": { + "refs": [ + "#reasonRepost", + "#reasonPin" + ], + "type": "union" + }, + "feedContext": { + "type": "string", + "maxLength": 2000, + "description": "Context provided by feed generator that may be passed back alongside interactions." + } + } + }, + "notFoundPost": { + "type": "object", + "required": [ + "uri", + "notFound" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "notFound": { + "type": "boolean", + "const": true + } + } + }, + "reasonRepost": { + "type": "object", + "required": [ + "by", + "indexedAt" + ], + "properties": { + "by": { + "ref": "app.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + } + } + }, + "blockedAuthor": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "viewer": { + "ref": "app.bsky.actor.defs#viewerState", + "type": "ref" + } + } + }, + "generatorView": { + "type": "object", + "required": [ + "uri", + "cid", + "did", + "creator", + "displayName", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "did": { + "type": "string", + "format": "did" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "avatar": { + "type": "string", + "format": "uri" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "viewer": { + "ref": "#generatorViewerState", + "type": "ref" + }, + "creator": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "likeCount": { + "type": "integer", + "minimum": 0 + }, + "contentMode": { + "type": "string", + "knownValues": [ + "app.bsky.feed.defs#contentModeUnspecified", + "app.bsky.feed.defs#contentModeVideo" + ] + }, + "description": { + "type": "string", + "maxLength": 3000, + "maxGraphemes": 300 + }, + "displayName": { + "type": "string" + }, + "descriptionFacets": { + "type": "array", + "items": { + "ref": "app.bsky.richtext.facet", + "type": "ref" + } + }, + "acceptsInteractions": { + "type": "boolean" + } + } + }, + "threadContext": { + "type": "object", + "properties": { + "rootAuthorLike": { + "type": "string", + "format": "at-uri" + } + }, + "description": "Metadata about this post within the context of the thread it is in." + }, + "threadViewPost": { + "type": "object", + "required": [ + "post" + ], + "properties": { + "post": { + "ref": "#postView", + "type": "ref" + }, + "parent": { + "refs": [ + "#threadViewPost", + "#notFoundPost", + "#blockedPost" + ], + "type": "union" + }, + "replies": { + "type": "array", + "items": { + "refs": [ + "#threadViewPost", + "#notFoundPost", + "#blockedPost" + ], + "type": "union" + } + }, + "threadContext": { + "ref": "#threadContext", + "type": "ref" + } + } + }, + "threadgateView": { + "type": "object", + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "lists": { + "type": "array", + "items": { + "ref": "app.bsky.graph.defs#listViewBasic", + "type": "ref" + } + }, + "record": { + "type": "unknown" + } + } + }, + "interactionLike": { + "type": "token", + "description": "User liked the feed item" + }, + "interactionSeen": { + "type": "token", + "description": "Feed item was seen by user" + }, + "clickthroughItem": { + "type": "token", + "description": "User clicked through to the feed item" + }, + "contentModeVideo": { + "type": "token", + "description": "Declares the feed generator returns posts containing app.bsky.embed.video embeds." + }, + "interactionQuote": { + "type": "token", + "description": "User quoted the feed item" + }, + "interactionReply": { + "type": "token", + "description": "User replied to the feed item" + }, + "interactionShare": { + "type": "token", + "description": "User shared the feed item" + }, + "skeletonFeedPost": { + "type": "object", + "required": [ + "post" + ], + "properties": { + "post": { + "type": "string", + "format": "at-uri" + }, + "reason": { + "refs": [ + "#skeletonReasonRepost", + "#skeletonReasonPin" + ], + "type": "union" + }, + "feedContext": { + "type": "string", + "maxLength": 2000, + "description": "Context that will be passed through to client and may be passed to feed generator back alongside interactions." + } + } + }, + "clickthroughEmbed": { + "type": "token", + "description": "User clicked through to the embedded content of the feed item" + }, + "interactionRepost": { + "type": "token", + "description": "User reposted the feed item" + }, + "skeletonReasonPin": { + "type": "object", + "properties": {} + }, + "clickthroughAuthor": { + "type": "token", + "description": "User clicked through to the author of the feed item" + }, + "clickthroughReposter": { + "type": "token", + "description": "User clicked through to the reposter of the feed item" + }, + "generatorViewerState": { + "type": "object", + "properties": { + "like": { + "type": "string", + "format": "at-uri" + } + } + }, + "skeletonReasonRepost": { + "type": "object", + "required": [ + "repost" + ], + "properties": { + "repost": { + "type": "string", + "format": "at-uri" + } + } + }, + "contentModeUnspecified": { + "type": "token", + "description": "Declares the feed generator returns any types of posts." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/describeFeedGenerator.json b/lexicons/app/bsky/feed/describeFeedGenerator.json new file mode 100644 index 0000000000..1549935910 --- /dev/null +++ b/lexicons/app/bsky/feed/describeFeedGenerator.json @@ -0,0 +1,61 @@ +{ + "id": "app.bsky.feed.describeFeedGenerator", + "defs": { + "feed": { + "type": "object", + "required": [ + "uri" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + } + } + }, + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "did", + "feeds" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "feeds": { + "type": "array", + "items": { + "ref": "#feed", + "type": "ref" + } + }, + "links": { + "ref": "#links", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Get information about a feed generator, including policies and offered feed URIs. Does not require auth; implemented by Feed Generator services (not App View)." + }, + "links": { + "type": "object", + "properties": { + "privacyPolicy": { + "type": "string" + }, + "termsOfService": { + "type": "string" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/generator.json b/lexicons/app/bsky/feed/generator.json new file mode 100644 index 0000000000..082a6ca372 --- /dev/null +++ b/lexicons/app/bsky/feed/generator.json @@ -0,0 +1,73 @@ +{ + "id": "app.bsky.feed.generator", + "defs": { + "main": { + "key": "any", + "type": "record", + "record": { + "type": "object", + "required": [ + "did", + "displayName", + "createdAt" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "avatar": { + "type": "blob", + "accept": [ + "image/png", + "image/jpeg" + ], + "maxSize": 1000000 + }, + "labels": { + "refs": [ + "com.atproto.label.defs#selfLabels" + ], + "type": "union", + "description": "Self-label values" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "contentMode": { + "type": "string", + "knownValues": [ + "app.bsky.feed.defs#contentModeUnspecified", + "app.bsky.feed.defs#contentModeVideo" + ] + }, + "description": { + "type": "string", + "maxLength": 3000, + "maxGraphemes": 300 + }, + "displayName": { + "type": "string", + "maxLength": 240, + "maxGraphemes": 24 + }, + "descriptionFacets": { + "type": "array", + "items": { + "ref": "app.bsky.richtext.facet", + "type": "ref" + } + }, + "acceptsInteractions": { + "type": "boolean", + "description": "Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions" + } + } + }, + "description": "Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getActorFeeds.json b/lexicons/app/bsky/feed/getActorFeeds.json new file mode 100644 index 0000000000..f0a41e2cb4 --- /dev/null +++ b/lexicons/app/bsky/feed/getActorFeeds.json @@ -0,0 +1,53 @@ +{ + "id": "app.bsky.feed.getActorFeeds", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "feeds" + ], + "properties": { + "feeds": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#generatorView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a list of feeds (feed generator records) created by the actor (in the actor's repo)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getActorLikes.json b/lexicons/app/bsky/feed/getActorLikes.json new file mode 100644 index 0000000000..532b7df2f4 --- /dev/null +++ b/lexicons/app/bsky/feed/getActorLikes.json @@ -0,0 +1,61 @@ +{ + "id": "app.bsky.feed.getActorLikes", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "BlockedActor" + }, + { + "name": "BlockedByActor" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#feedViewPost", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a list of posts liked by an actor. Requires auth, actor must be the requesting account." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getAuthorFeed.json b/lexicons/app/bsky/feed/getAuthorFeed.json new file mode 100644 index 0000000000..4d113c3123 --- /dev/null +++ b/lexicons/app/bsky/feed/getAuthorFeed.json @@ -0,0 +1,77 @@ +{ + "id": "app.bsky.feed.getAuthorFeed", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "BlockedActor" + }, + { + "name": "BlockedByActor" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#feedViewPost", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "filter": { + "type": "string", + "default": "posts_with_replies", + "description": "Combinations of post/repost types to include in response.", + "knownValues": [ + "posts_with_replies", + "posts_no_replies", + "posts_with_media", + "posts_and_author_threads", + "posts_with_video" + ] + }, + "includePins": { + "type": "boolean", + "default": false + } + } + }, + "description": "Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getFeed.json b/lexicons/app/bsky/feed/getFeed.json new file mode 100644 index 0000000000..6d19d64b96 --- /dev/null +++ b/lexicons/app/bsky/feed/getFeed.json @@ -0,0 +1,58 @@ +{ + "id": "app.bsky.feed.getFeed", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "UnknownFeed" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#feedViewPost", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "string", + "format": "at-uri" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a hydrated feed from an actor's selected feed generator. Implemented by App View." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getFeedGenerator.json b/lexicons/app/bsky/feed/getFeedGenerator.json new file mode 100644 index 0000000000..9403bbc5fa --- /dev/null +++ b/lexicons/app/bsky/feed/getFeedGenerator.json @@ -0,0 +1,49 @@ +{ + "id": "app.bsky.feed.getFeedGenerator", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "view", + "isOnline", + "isValid" + ], + "properties": { + "view": { + "ref": "app.bsky.feed.defs#generatorView", + "type": "ref" + }, + "isValid": { + "type": "boolean", + "description": "Indicates whether the feed generator service is compatible with the record declaration." + }, + "isOnline": { + "type": "boolean", + "description": "Indicates whether the feed generator service has been online recently, or else seems to be inactive." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "string", + "format": "at-uri", + "description": "AT-URI of the feed generator record." + } + } + }, + "description": "Get information about a feed generator. Implemented by AppView." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getFeedGenerators.json b/lexicons/app/bsky/feed/getFeedGenerators.json new file mode 100644 index 0000000000..79938c932b --- /dev/null +++ b/lexicons/app/bsky/feed/getFeedGenerators.json @@ -0,0 +1,44 @@ +{ + "id": "app.bsky.feed.getFeedGenerators", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "feeds" + ], + "properties": { + "feeds": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#generatorView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "feeds" + ], + "properties": { + "feeds": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + } + } + } + }, + "description": "Get information about a list of feed generators." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getFeedSkeleton.json b/lexicons/app/bsky/feed/getFeedSkeleton.json new file mode 100644 index 0000000000..f9ca591405 --- /dev/null +++ b/lexicons/app/bsky/feed/getFeedSkeleton.json @@ -0,0 +1,64 @@ +{ + "id": "app.bsky.feed.getFeedSkeleton", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "UnknownFeed" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#skeletonFeedPost", + "type": "ref" + } + }, + "reqId": { + "type": "string", + "maxLength": 100, + "description": "Unique identifier per request that may be passed back alongside interactions." + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "string", + "format": "at-uri", + "description": "Reference to feed generator record describing the specific feed being requested." + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a skeleton of a feed provided by a feed generator. Auth is optional, depending on provider requirements, and provides the DID of the requester. Implemented by Feed Generator Service." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getLikes.json b/lexicons/app/bsky/feed/getLikes.json new file mode 100644 index 0000000000..db5c83ecda --- /dev/null +++ b/lexicons/app/bsky/feed/getLikes.json @@ -0,0 +1,90 @@ +{ + "id": "app.bsky.feed.getLikes", + "defs": { + "like": { + "type": "object", + "required": [ + "indexedAt", + "createdAt", + "actor" + ], + "properties": { + "actor": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + } + } + }, + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "uri", + "likes" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "likes": { + "type": "array", + "items": { + "ref": "#like", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "uri" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid", + "description": "CID of the subject record (aka, specific version of record), to filter likes." + }, + "uri": { + "type": "string", + "format": "at-uri", + "description": "AT-URI of the subject (eg, a post record)." + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get like records which reference a subject (by AT-URI and CID)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getListFeed.json b/lexicons/app/bsky/feed/getListFeed.json new file mode 100644 index 0000000000..7d9311799f --- /dev/null +++ b/lexicons/app/bsky/feed/getListFeed.json @@ -0,0 +1,59 @@ +{ + "id": "app.bsky.feed.getListFeed", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "UnknownList" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#feedViewPost", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "list" + ], + "properties": { + "list": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to the list record." + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getPostThread.json b/lexicons/app/bsky/feed/getPostThread.json new file mode 100644 index 0000000000..b62a78a00a --- /dev/null +++ b/lexicons/app/bsky/feed/getPostThread.json @@ -0,0 +1,66 @@ +{ + "id": "app.bsky.feed.getPostThread", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "NotFound" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "thread" + ], + "properties": { + "thread": { + "refs": [ + "app.bsky.feed.defs#threadViewPost", + "app.bsky.feed.defs#notFoundPost", + "app.bsky.feed.defs#blockedPost" + ], + "type": "union" + }, + "threadgate": { + "ref": "app.bsky.feed.defs#threadgateView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "uri" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to post record." + }, + "depth": { + "type": "integer", + "default": 6, + "maximum": 1000, + "minimum": 0, + "description": "How many levels of reply depth should be included in response." + }, + "parentHeight": { + "type": "integer", + "default": 80, + "maximum": 1000, + "minimum": 0, + "description": "How many levels of parent (and grandparent, etc) post to include." + } + } + }, + "description": "Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getPosts.json b/lexicons/app/bsky/feed/getPosts.json new file mode 100644 index 0000000000..c52de1aecd --- /dev/null +++ b/lexicons/app/bsky/feed/getPosts.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.feed.getPosts", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "posts" + ], + "properties": { + "posts": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#postView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "uris" + ], + "properties": { + "uris": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + }, + "maxLength": 25, + "description": "List of post AT-URIs to return hydrated views for." + } + } + }, + "description": "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getQuotes.json b/lexicons/app/bsky/feed/getQuotes.json new file mode 100644 index 0000000000..cc507ec925 --- /dev/null +++ b/lexicons/app/bsky/feed/getQuotes.json @@ -0,0 +1,68 @@ +{ + "id": "app.bsky.feed.getQuotes", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "uri", + "posts" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "posts": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#postView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "uri" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid", + "description": "If supplied, filters to quotes of specific version (by CID) of the post record." + }, + "uri": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) of post record" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a list of quotes for a given post." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getRepostedBy.json b/lexicons/app/bsky/feed/getRepostedBy.json new file mode 100644 index 0000000000..3df7fa8f53 --- /dev/null +++ b/lexicons/app/bsky/feed/getRepostedBy.json @@ -0,0 +1,68 @@ +{ + "id": "app.bsky.feed.getRepostedBy", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "uri", + "repostedBy" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cursor": { + "type": "string" + }, + "repostedBy": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "uri" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid", + "description": "If supplied, filters to reposts of specific version (by CID) of the post record." + }, + "uri": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) of post record" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a list of reposts for a given post." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getSuggestedFeeds.json b/lexicons/app/bsky/feed/getSuggestedFeeds.json new file mode 100644 index 0000000000..26cb0d1b49 --- /dev/null +++ b/lexicons/app/bsky/feed/getSuggestedFeeds.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.feed.getSuggestedFeeds", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "feeds" + ], + "properties": { + "feeds": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#generatorView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a list of suggested feeds (feed generators) for the requesting account." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/getTimeline.json b/lexicons/app/bsky/feed/getTimeline.json new file mode 100644 index 0000000000..e35dbbc1cb --- /dev/null +++ b/lexicons/app/bsky/feed/getTimeline.json @@ -0,0 +1,50 @@ +{ + "id": "app.bsky.feed.getTimeline", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "feed" + ], + "properties": { + "feed": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#feedViewPost", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "algorithm": { + "type": "string", + "description": "Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism." + } + } + }, + "description": "Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/like.json b/lexicons/app/bsky/feed/like.json new file mode 100644 index 0000000000..2b941f743c --- /dev/null +++ b/lexicons/app/bsky/feed/like.json @@ -0,0 +1,33 @@ +{ + "id": "app.bsky.feed.like", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "subject", + "createdAt" + ], + "properties": { + "via": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "subject": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + } + }, + "description": "Record declaring a 'like' of a piece of subject content." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/post.json b/lexicons/app/bsky/feed/post.json new file mode 100644 index 0000000000..50b8a53c88 --- /dev/null +++ b/lexicons/app/bsky/feed/post.json @@ -0,0 +1,146 @@ +{ + "id": "app.bsky.feed.post", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "text", + "createdAt" + ], + "properties": { + "tags": { + "type": "array", + "items": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "maxLength": 8, + "description": "Additional hashtags, in addition to any included in post text and facets." + }, + "text": { + "type": "string", + "maxLength": 3000, + "description": "The primary post content. May be an empty string, if there are embeds.", + "maxGraphemes": 300 + }, + "embed": { + "refs": [ + "app.bsky.embed.images", + "app.bsky.embed.video", + "app.bsky.embed.gallery", + "app.bsky.embed.external", + "app.bsky.embed.record", + "app.bsky.embed.recordWithMedia" + ], + "type": "union" + }, + "langs": { + "type": "array", + "items": { + "type": "string", + "format": "language" + }, + "maxLength": 3, + "description": "Indicates human language of post primary text content." + }, + "reply": { + "ref": "#replyRef", + "type": "ref" + }, + "facets": { + "type": "array", + "items": { + "ref": "app.bsky.richtext.facet", + "type": "ref" + }, + "description": "Annotations of text (mentions, URLs, hashtags, etc)" + }, + "labels": { + "refs": [ + "com.atproto.label.defs#selfLabels" + ], + "type": "union", + "description": "Self-label values for this post. Effectively content warnings." + }, + "entities": { + "type": "array", + "items": { + "ref": "#entity", + "type": "ref" + }, + "description": "DEPRECATED: replaced by app.bsky.richtext.facet." + }, + "createdAt": { + "type": "string", + "format": "datetime", + "description": "Client-declared timestamp when this post was originally created." + } + } + }, + "description": "Record containing a Bluesky post." + }, + "entity": { + "type": "object", + "required": [ + "index", + "type", + "value" + ], + "properties": { + "type": { + "type": "string", + "description": "Expected values are 'mention' and 'link'." + }, + "index": { + "ref": "#textSlice", + "type": "ref" + }, + "value": { + "type": "string" + } + }, + "description": "Deprecated: use facets instead." + }, + "replyRef": { + "type": "object", + "required": [ + "root", + "parent" + ], + "properties": { + "root": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "parent": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + } + } + }, + "textSlice": { + "type": "object", + "required": [ + "start", + "end" + ], + "properties": { + "end": { + "type": "integer", + "minimum": 0 + }, + "start": { + "type": "integer", + "minimum": 0 + } + }, + "description": "Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/postgate.json b/lexicons/app/bsky/feed/postgate.json new file mode 100644 index 0000000000..9fa0775a68 --- /dev/null +++ b/lexicons/app/bsky/feed/postgate.json @@ -0,0 +1,55 @@ +{ + "id": "app.bsky.feed.postgate", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "post", + "createdAt" + ], + "properties": { + "post": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to the post record." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "embeddingRules": { + "type": "array", + "items": { + "refs": [ + "#disableRule" + ], + "type": "union" + }, + "maxLength": 5, + "description": "List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed." + }, + "detachedEmbeddingUris": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + }, + "maxLength": 50, + "description": "List of AT-URIs embedding this post that the author has detached from." + } + } + }, + "description": "Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository." + }, + "disableRule": { + "type": "object", + "properties": {}, + "description": "Disables embedding of this post." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/repost.json b/lexicons/app/bsky/feed/repost.json new file mode 100644 index 0000000000..6563b1f5e4 --- /dev/null +++ b/lexicons/app/bsky/feed/repost.json @@ -0,0 +1,33 @@ +{ + "id": "app.bsky.feed.repost", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "subject", + "createdAt" + ], + "properties": { + "via": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "subject": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + } + }, + "description": "Record representing a 'repost' of an existing Bluesky post." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/searchPosts.json b/lexicons/app/bsky/feed/searchPosts.json new file mode 100644 index 0000000000..23ba045c24 --- /dev/null +++ b/lexicons/app/bsky/feed/searchPosts.json @@ -0,0 +1,113 @@ +{ + "id": "app.bsky.feed.searchPosts", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "BadQueryString" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "posts" + ], + "properties": { + "posts": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#postView", + "type": "ref" + } + }, + "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." + } + } + }, + "encoding": "application/json" + }, + "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." + }, + "tag": { + "type": "array", + "items": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "description": "Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching." + }, + "url": { + "type": "string", + "format": "uri", + "description": "Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching." + }, + "lang": { + "type": "string", + "format": "language", + "description": "Filter to posts in the given language. Expected to be based on post language field, though server may override language detection." + }, + "sort": { + "type": "string", + "default": "latest", + "description": "Specifies the ranking order of results.", + "knownValues": [ + "top", + "latest" + ] + }, + "limit": { + "type": "integer", + "default": 25, + "maximum": 100, + "minimum": 1 + }, + "since": { + "type": "string", + "description": "Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD)." + }, + "until": { + "type": "string", + "description": "Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD)." + }, + "author": { + "type": "string", + "format": "at-identifier", + "description": "Filter to posts by the given account. Handles are resolved to DID before query-time." + }, + "cursor": { + "type": "string", + "description": "Optional pagination mechanism; may not necessarily allow scrolling through entire result set." + }, + "domain": { + "type": "string", + "description": "Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization." + }, + "mentions": { + "type": "string", + "format": "at-identifier", + "description": "Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions." + } + } + }, + "description": "Find posts matching search criteria, returning views of those posts. Note that this API endpoint may require authentication (eg, not public) for some service providers and implementations." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/searchPostsV2.json b/lexicons/app/bsky/feed/searchPostsV2.json new file mode 100644 index 0000000000..0d3ba5cc16 --- /dev/null +++ b/lexicons/app/bsky/feed/searchPostsV2.json @@ -0,0 +1,251 @@ +{ + "id": "app.bsky.feed.searchPostsV2", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "BadQueryString" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "posts" + ], + "properties": { + "posts": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#postView", + "type": "ref" + }, + "description": "Hydrated views of matching posts." + }, + "cursor": { + "type": "string", + "description": "Cursor for the next page of results." + }, + "hitsTotal": { + "type": "integer", + "description": "Estimated total number of matching hits. May be rounded or truncated." + }, + "detectedQueryLanguages": { + "type": "array", + "items": { + "type": "string", + "knownValues": [ + "ja", + "zh", + "ko", + "th", + "ar" + ] + }, + "description": "Query languages detected for CJK, Thai, or Arabic text. Empty or omitted for other scripts." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [], + "properties": { + "sort": { + "type": "string", + "description": "Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking.", + "knownValues": [ + "recent", + "top" + ] + }, + "urls": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "description": "Include posts that link to any of these URLs." + }, + "limit": { + "type": "integer", + "default": 25, + "maximum": 100, + "minimum": 1, + "description": "Maximum number of results to return." + }, + "query": { + "type": "string", + "description": "Search query string. A query or at least one filter is required." + }, + "since": { + "type": "string", + "description": "Include posts indexed at or after this timestamp. Can be a datetime, or just an ISO date (YYYY-MM-DD)." + }, + "until": { + "type": "string", + "description": "Include posts indexed before this timestamp. Defaults to the current time. Can be a datetime, or just an ISO date (YYYY-MM-DD)." + }, + "cursor": { + "type": "string", + "description": "Optional pagination cursor." + }, + "allTime": { + "type": "boolean", + "description": "Search the full index instead of the recent-post window." + }, + "authors": { + "type": "array", + "items": { + "type": "string", + "format": "at-identifier" + }, + "description": "Include posts by any of these authors. Handles are resolved to DIDs before searching." + }, + "domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Include posts that link to any of these domains." + }, + "hasMedia": { + "type": "boolean", + "description": "Include only posts with media." + }, + "hasVideo": { + "type": "boolean", + "description": "Include only posts with video." + }, + "hashtags": { + "type": "array", + "items": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "description": "Include posts tagged with any of these hashtags. Do not include the hash (#) prefix." + }, + "mentions": { + "type": "array", + "items": { + "type": "string", + "format": "at-identifier" + }, + "description": "Include posts that mention any of these accounts. Handles are resolved to DIDs before searching." + }, + "following": { + "type": "boolean", + "description": "Include only posts from accounts followed by the viewer." + }, + "languages": { + "type": "array", + "items": { + "type": "string", + "format": "language" + }, + "description": "Include posts whose language matches any of these language codes." + }, + "excludeUrls": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "description": "Exclude posts that link to any of these URLs." + }, + "repliesOnly": { + "type": "boolean", + "description": "Include only replies. Mutually exclusive with excludeReplies." + }, + "queryLanguage": { + "type": "string", + "description": "Language analyzer hint for the query text. If unset, the server auto-detects when possible.", + "knownValues": [ + "ja", + "zh", + "ko", + "th", + "ar" + ] + }, + "threadRootUri": { + "type": "string", + "format": "at-uri", + "description": "Include only posts in the thread rooted at this post URI." + }, + "embeddedAtUris": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + }, + "description": "Include posts that embed any of these AT URIs." + }, + "excludeAuthors": { + "type": "array", + "items": { + "type": "string", + "format": "at-identifier" + }, + "description": "Exclude posts by any of these authors. Handles are resolved to DIDs before searching." + }, + "excludeDomains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Exclude posts that link to any of these domains." + }, + "excludeReplies": { + "type": "boolean", + "description": "Exclude replies from results. Mutually exclusive with repliesOnly." + }, + "replyParentUri": { + "type": "string", + "format": "at-uri", + "description": "Include only direct replies to this parent post URI." + }, + "excludeHashtags": { + "type": "array", + "items": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "description": "Exclude posts tagged with any of these hashtags. Do not include the hash (#) prefix." + }, + "excludeMentions": { + "type": "array", + "items": { + "type": "string", + "format": "at-identifier" + }, + "description": "Exclude posts that mention any of these accounts. Handles are resolved to DIDs before searching." + }, + "excludeLanguages": { + "type": "array", + "items": { + "type": "string", + "format": "language" + }, + "description": "Exclude posts whose language matches any of these language codes." + }, + "excludeEmbeddedAtUris": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + }, + "description": "Exclude posts that embed any of these AT URIs." + } + } + }, + "description": "Find posts matching a search query or filters, returning search hits for matching post records." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/sendInteractions.json b/lexicons/app/bsky/feed/sendInteractions.json new file mode 100644 index 0000000000..eea9f6c1fc --- /dev/null +++ b/lexicons/app/bsky/feed/sendInteractions.json @@ -0,0 +1,40 @@ +{ + "id": "app.bsky.feed.sendInteractions", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "interactions" + ], + "properties": { + "feed": { + "type": "string", + "format": "at-uri" + }, + "interactions": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#interaction", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "properties": {} + }, + "encoding": "application/json" + }, + "description": "Send information about interactions with feed items back to the feed generator that served them." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/feed/threadgate.json b/lexicons/app/bsky/feed/threadgate.json new file mode 100644 index 0000000000..8b4d3c6117 --- /dev/null +++ b/lexicons/app/bsky/feed/threadgate.json @@ -0,0 +1,81 @@ +{ + "id": "app.bsky.feed.threadgate", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "post", + "createdAt" + ], + "properties": { + "post": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to the post record." + }, + "allow": { + "type": "array", + "items": { + "refs": [ + "#mentionRule", + "#followerRule", + "#followingRule", + "#listRule" + ], + "type": "union" + }, + "maxLength": 5, + "description": "List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "hiddenReplies": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + }, + "maxLength": 300, + "description": "List of hidden reply URIs." + } + } + }, + "description": "Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository." + }, + "listRule": { + "type": "object", + "required": [ + "list" + ], + "properties": { + "list": { + "type": "string", + "format": "at-uri" + } + }, + "description": "Allow replies from actors on a list." + }, + "mentionRule": { + "type": "object", + "properties": {}, + "description": "Allow replies from actors mentioned in your post." + }, + "followerRule": { + "type": "object", + "properties": {}, + "description": "Allow replies from actors who follow you." + }, + "followingRule": { + "type": "object", + "properties": {}, + "description": "Allow replies from actors you follow." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/block.json b/lexicons/app/bsky/graph/block.json new file mode 100644 index 0000000000..bc0cd214df --- /dev/null +++ b/lexicons/app/bsky/graph/block.json @@ -0,0 +1,30 @@ +{ + "id": "app.bsky.graph.block", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "subject", + "createdAt" + ], + "properties": { + "subject": { + "type": "string", + "format": "did", + "description": "DID of the account to be blocked." + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + } + }, + "description": "Record declaring a 'block' relationship against another account. NOTE: blocks are public in Bluesky; see blog posts for details." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/defs.json b/lexicons/app/bsky/graph/defs.json new file mode 100644 index 0000000000..eca42fc875 --- /dev/null +++ b/lexicons/app/bsky/graph/defs.json @@ -0,0 +1,353 @@ +{ + "id": "app.bsky.graph.defs", + "defs": { + "modlist": { + "type": "token", + "description": "A list of actors to apply an aggregate moderation action (mute/block) on." + }, + "listView": { + "type": "object", + "required": [ + "uri", + "cid", + "creator", + "name", + "purpose", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "name": { + "type": "string", + "maxLength": 64, + "minLength": 1 + }, + "avatar": { + "type": "string", + "format": "uri" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "viewer": { + "ref": "#listViewerState", + "type": "ref" + }, + "creator": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + }, + "purpose": { + "ref": "#listPurpose", + "type": "ref" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "description": { + "type": "string", + "maxLength": 3000, + "maxGraphemes": 300 + }, + "listItemCount": { + "type": "integer", + "minimum": 0 + }, + "descriptionFacets": { + "type": "array", + "items": { + "ref": "app.bsky.richtext.facet", + "type": "ref" + } + } + } + }, + "curatelist": { + "type": "token", + "description": "A list of actors used for curation purposes such as list feeds or interaction gating." + }, + "listPurpose": { + "type": "string", + "knownValues": [ + "app.bsky.graph.defs#modlist", + "app.bsky.graph.defs#curatelist", + "app.bsky.graph.defs#referencelist" + ] + }, + "listItemView": { + "type": "object", + "required": [ + "uri", + "subject" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "subject": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + } + }, + "relationship": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "blocking": { + "type": "string", + "format": "at-uri", + "description": "if the actor blocks this DID, this is the AT-URI of the block record" + }, + "blockedBy": { + "type": "string", + "format": "at-uri", + "description": "if the actor is blocked by this DID, contains the AT-URI of the block record" + }, + "following": { + "type": "string", + "format": "at-uri", + "description": "if the actor follows this DID, this is the AT-URI of the follow record" + }, + "followedBy": { + "type": "string", + "format": "at-uri", + "description": "if the actor is followed by this DID, contains the AT-URI of the follow record" + }, + "blockedByList": { + "type": "string", + "format": "at-uri", + "description": "if the actor is blocked by this DID via a block list, contains the AT-URI of the listblock record" + }, + "blockingByList": { + "type": "string", + "format": "at-uri", + "description": "if the actor blocks this DID via a block list, this is the AT-URI of the listblock record" + } + }, + "description": "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)" + }, + "listViewBasic": { + "type": "object", + "required": [ + "uri", + "cid", + "name", + "purpose" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "name": { + "type": "string", + "maxLength": 64, + "minLength": 1 + }, + "avatar": { + "type": "string", + "format": "uri" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "viewer": { + "ref": "#listViewerState", + "type": "ref" + }, + "purpose": { + "ref": "#listPurpose", + "type": "ref" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "listItemCount": { + "type": "integer", + "minimum": 0 + } + } + }, + "notFoundActor": { + "type": "object", + "required": [ + "actor", + "notFound" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + }, + "notFound": { + "type": "boolean", + "const": true + } + }, + "description": "indicates that a handle or DID could not be resolved" + }, + "referencelist": { + "type": "token", + "description": "A list of actors used for only for reference purposes such as within a starter pack." + }, + "listViewerState": { + "type": "object", + "properties": { + "muted": { + "type": "boolean" + }, + "blocked": { + "type": "string", + "format": "at-uri" + } + } + }, + "starterPackView": { + "type": "object", + "required": [ + "uri", + "cid", + "record", + "creator", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "list": { + "ref": "#listViewBasic", + "type": "ref" + }, + "feeds": { + "type": "array", + "items": { + "ref": "app.bsky.feed.defs#generatorView", + "type": "ref" + }, + "maxLength": 3 + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "record": { + "type": "unknown" + }, + "creator": { + "ref": "app.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "joinedWeekCount": { + "type": "integer", + "minimum": 0 + }, + "listItemsSample": { + "type": "array", + "items": { + "ref": "#listItemView", + "type": "ref" + }, + "maxLength": 12 + }, + "joinedAllTimeCount": { + "type": "integer", + "minimum": 0 + } + } + }, + "starterPackViewBasic": { + "type": "object", + "required": [ + "uri", + "cid", + "record", + "creator", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "record": { + "type": "unknown" + }, + "creator": { + "ref": "app.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "listItemCount": { + "type": "integer", + "minimum": 0 + }, + "joinedWeekCount": { + "type": "integer", + "minimum": 0 + }, + "joinedAllTimeCount": { + "type": "integer", + "minimum": 0 + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/follow.json b/lexicons/app/bsky/graph/follow.json new file mode 100644 index 0000000000..1918ba075d --- /dev/null +++ b/lexicons/app/bsky/graph/follow.json @@ -0,0 +1,33 @@ +{ + "id": "app.bsky.graph.follow", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "subject", + "createdAt" + ], + "properties": { + "via": { + "ref": "com.atproto.repo.strongRef", + "type": "ref" + }, + "subject": { + "type": "string", + "format": "did" + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + } + }, + "description": "Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getActorStarterPacks.json b/lexicons/app/bsky/graph/getActorStarterPacks.json new file mode 100644 index 0000000000..8cccf2b909 --- /dev/null +++ b/lexicons/app/bsky/graph/getActorStarterPacks.json @@ -0,0 +1,53 @@ +{ + "id": "app.bsky.graph.getActorStarterPacks", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "starterPacks" + ], + "properties": { + "cursor": { + "type": "string" + }, + "starterPacks": { + "type": "array", + "items": { + "ref": "app.bsky.graph.defs#starterPackViewBasic", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get a list of starter packs created by the actor." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getBlocks.json b/lexicons/app/bsky/graph/getBlocks.json new file mode 100644 index 0000000000..35e2b289fa --- /dev/null +++ b/lexicons/app/bsky/graph/getBlocks.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.graph.getBlocks", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "blocks" + ], + "properties": { + "blocks": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates which accounts the requesting account is currently blocking. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getFollowers.json b/lexicons/app/bsky/graph/getFollowers.json new file mode 100644 index 0000000000..17aef5da4d --- /dev/null +++ b/lexicons/app/bsky/graph/getFollowers.json @@ -0,0 +1,58 @@ +{ + "id": "app.bsky.graph.getFollowers", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "subject", + "followers" + ], + "properties": { + "cursor": { + "type": "string" + }, + "subject": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + }, + "followers": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates accounts which follow a specified account (actor)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getFollows.json b/lexicons/app/bsky/graph/getFollows.json new file mode 100644 index 0000000000..d6aec08a8e --- /dev/null +++ b/lexicons/app/bsky/graph/getFollows.json @@ -0,0 +1,58 @@ +{ + "id": "app.bsky.graph.getFollows", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "subject", + "follows" + ], + "properties": { + "cursor": { + "type": "string" + }, + "follows": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + }, + "subject": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates accounts which a specified account (actor) follows." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getKnownFollowers.json b/lexicons/app/bsky/graph/getKnownFollowers.json new file mode 100644 index 0000000000..2c705fc3c1 --- /dev/null +++ b/lexicons/app/bsky/graph/getKnownFollowers.json @@ -0,0 +1,58 @@ +{ + "id": "app.bsky.graph.getKnownFollowers", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "subject", + "followers" + ], + "properties": { + "cursor": { + "type": "string" + }, + "subject": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + }, + "followers": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates accounts which follow a specified account (actor) and are followed by the viewer." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getList.json b/lexicons/app/bsky/graph/getList.json new file mode 100644 index 0000000000..b5a6e226ae --- /dev/null +++ b/lexicons/app/bsky/graph/getList.json @@ -0,0 +1,59 @@ +{ + "id": "app.bsky.graph.getList", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "list", + "items" + ], + "properties": { + "list": { + "ref": "app.bsky.graph.defs#listView", + "type": "ref" + }, + "items": { + "type": "array", + "items": { + "ref": "app.bsky.graph.defs#listItemView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "list" + ], + "properties": { + "list": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) of the list record to hydrate." + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Gets a 'view' (with additional context) of a specified list." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getListBlocks.json b/lexicons/app/bsky/graph/getListBlocks.json new file mode 100644 index 0000000000..03477a13b6 --- /dev/null +++ b/lexicons/app/bsky/graph/getListBlocks.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.graph.getListBlocks", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "lists" + ], + "properties": { + "lists": { + "type": "array", + "items": { + "ref": "app.bsky.graph.defs#listView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get mod lists that the requesting account (actor) is blocking. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getListMutes.json b/lexicons/app/bsky/graph/getListMutes.json new file mode 100644 index 0000000000..ea54aab6d2 --- /dev/null +++ b/lexicons/app/bsky/graph/getListMutes.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.graph.getListMutes", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "lists" + ], + "properties": { + "lists": { + "type": "array", + "items": { + "ref": "app.bsky.graph.defs#listView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates mod lists that the requesting account (actor) currently has muted. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getLists.json b/lexicons/app/bsky/graph/getLists.json new file mode 100644 index 0000000000..03c960da01 --- /dev/null +++ b/lexicons/app/bsky/graph/getLists.json @@ -0,0 +1,65 @@ +{ + "id": "app.bsky.graph.getLists", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "lists" + ], + "properties": { + "lists": { + "type": "array", + "items": { + "ref": "app.bsky.graph.defs#listView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier", + "description": "The account (actor) to enumerate lists from." + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "purposes": { + "type": "array", + "items": { + "type": "string", + "knownValues": [ + "modlist", + "curatelist" + ] + }, + "description": "Optional filter by list purpose. If not specified, all supported types are returned." + } + } + }, + "description": "Enumerates the lists created by a specified account (actor)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getListsWithMembership.json b/lexicons/app/bsky/graph/getListsWithMembership.json new file mode 100644 index 0000000000..7e0b34a666 --- /dev/null +++ b/lexicons/app/bsky/graph/getListsWithMembership.json @@ -0,0 +1,82 @@ +{ + "id": "app.bsky.graph.getListsWithMembership", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "listsWithMembership" + ], + "properties": { + "cursor": { + "type": "string" + }, + "listsWithMembership": { + "type": "array", + "items": { + "ref": "#listWithMembership", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier", + "description": "The account (actor) to check for membership." + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "purposes": { + "type": "array", + "items": { + "type": "string", + "knownValues": [ + "modlist", + "curatelist" + ] + }, + "description": "Optional filter by list purpose. If not specified, all supported types are returned." + } + } + }, + "description": "Enumerates the lists created by the session user, and includes membership information about `actor` in those lists. Only supports curation and moderation lists (no reference lists, used in starter packs). Requires auth." + }, + "listWithMembership": { + "type": "object", + "required": [ + "list" + ], + "properties": { + "list": { + "ref": "app.bsky.graph.defs#listView", + "type": "ref" + }, + "listItem": { + "ref": "app.bsky.graph.defs#listItemView", + "type": "ref" + } + }, + "description": "A list and an optional list item indicating membership of a target user to that list." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getMutes.json b/lexicons/app/bsky/graph/getMutes.json new file mode 100644 index 0000000000..f20e358e84 --- /dev/null +++ b/lexicons/app/bsky/graph/getMutes.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.graph.getMutes", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "mutes" + ], + "properties": { + "mutes": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates accounts that the requesting account (actor) currently has muted. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getRelationships.json b/lexicons/app/bsky/graph/getRelationships.json new file mode 100644 index 0000000000..84cc69fe59 --- /dev/null +++ b/lexicons/app/bsky/graph/getRelationships.json @@ -0,0 +1,64 @@ +{ + "id": "app.bsky.graph.getRelationships", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "ActorNotFound", + "description": "the primary actor at-identifier could not be resolved" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "relationships" + ], + "properties": { + "actor": { + "type": "string", + "format": "did" + }, + "relationships": { + "type": "array", + "items": { + "refs": [ + "app.bsky.graph.defs#relationship", + "app.bsky.graph.defs#notFoundActor" + ], + "type": "union" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier", + "description": "Primary account requesting relationships for." + }, + "others": { + "type": "array", + "items": { + "type": "string", + "format": "at-identifier" + }, + "maxLength": 30, + "description": "List of 'other' accounts to be related back to the primary." + } + } + }, + "description": "Enumerates public relationships between one account, and a list of other accounts. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getStarterPack.json b/lexicons/app/bsky/graph/getStarterPack.json new file mode 100644 index 0000000000..aa8ef6ce2a --- /dev/null +++ b/lexicons/app/bsky/graph/getStarterPack.json @@ -0,0 +1,39 @@ +{ + "id": "app.bsky.graph.getStarterPack", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "starterPack" + ], + "properties": { + "starterPack": { + "ref": "app.bsky.graph.defs#starterPackView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "starterPack" + ], + "properties": { + "starterPack": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) of the starter pack record." + } + } + }, + "description": "Gets a view of a starter pack." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getStarterPacks.json b/lexicons/app/bsky/graph/getStarterPacks.json new file mode 100644 index 0000000000..15d73a1e55 --- /dev/null +++ b/lexicons/app/bsky/graph/getStarterPacks.json @@ -0,0 +1,45 @@ +{ + "id": "app.bsky.graph.getStarterPacks", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "starterPacks" + ], + "properties": { + "starterPacks": { + "type": "array", + "items": { + "ref": "app.bsky.graph.defs#starterPackViewBasic", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "uris" + ], + "properties": { + "uris": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + }, + "maxLength": 25 + } + } + }, + "description": "Get views for a list of starter packs." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getStarterPacksWithMembership.json b/lexicons/app/bsky/graph/getStarterPacksWithMembership.json new file mode 100644 index 0000000000..c57d254ce3 --- /dev/null +++ b/lexicons/app/bsky/graph/getStarterPacksWithMembership.json @@ -0,0 +1,71 @@ +{ + "id": "app.bsky.graph.getStarterPacksWithMembership", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "starterPacksWithMembership" + ], + "properties": { + "cursor": { + "type": "string" + }, + "starterPacksWithMembership": { + "type": "array", + "items": { + "ref": "#starterPackWithMembership", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier", + "description": "The account (actor) to check for membership." + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates the starter packs created by the session user, and includes membership information about `actor` in those starter packs. Requires auth." + }, + "starterPackWithMembership": { + "type": "object", + "required": [ + "starterPack" + ], + "properties": { + "listItem": { + "ref": "app.bsky.graph.defs#listItemView", + "type": "ref" + }, + "starterPack": { + "ref": "app.bsky.graph.defs#starterPackView", + "type": "ref" + } + }, + "description": "A starter pack and an optional list item indicating membership of a target user to that starter pack." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/getSuggestedFollowsByActor.json b/lexicons/app/bsky/graph/getSuggestedFollowsByActor.json new file mode 100644 index 0000000000..12b617d0a4 --- /dev/null +++ b/lexicons/app/bsky/graph/getSuggestedFollowsByActor.json @@ -0,0 +1,54 @@ +{ + "id": "app.bsky.graph.getSuggestedFollowsByActor", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "suggestions" + ], + "properties": { + "recId": { + "type": "integer", + "description": "DEPRECATED: use recIdStr instead." + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + }, + "isFallback": { + "type": "boolean", + "default": false, + "description": "DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid" + }, + "suggestions": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + } + } + }, + "description": "Enumerates follows similar to a given account (actor). Expected use is to recommend additional accounts immediately after following one account." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/list.json b/lexicons/app/bsky/graph/list.json new file mode 100644 index 0000000000..dd67d4e99b --- /dev/null +++ b/lexicons/app/bsky/graph/list.json @@ -0,0 +1,63 @@ +{ + "id": "app.bsky.graph.list", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "name", + "purpose", + "createdAt" + ], + "properties": { + "name": { + "type": "string", + "maxLength": 64, + "minLength": 1, + "description": "Display name for list; can not be empty." + }, + "avatar": { + "type": "blob", + "accept": [ + "image/png", + "image/jpeg" + ], + "maxSize": 1000000 + }, + "labels": { + "refs": [ + "com.atproto.label.defs#selfLabels" + ], + "type": "union" + }, + "purpose": { + "ref": "app.bsky.graph.defs#listPurpose", + "type": "ref", + "description": "Defines the purpose of the list (aka, moderation-oriented or curration-oriented)" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "description": { + "type": "string", + "maxLength": 3000, + "maxGraphemes": 300 + }, + "descriptionFacets": { + "type": "array", + "items": { + "ref": "app.bsky.richtext.facet", + "type": "ref" + } + } + } + }, + "description": "Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/listblock.json b/lexicons/app/bsky/graph/listblock.json new file mode 100644 index 0000000000..cef4b85255 --- /dev/null +++ b/lexicons/app/bsky/graph/listblock.json @@ -0,0 +1,30 @@ +{ + "id": "app.bsky.graph.listblock", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "subject", + "createdAt" + ], + "properties": { + "subject": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to the mod list record." + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + } + }, + "description": "Record representing a block relationship against an entire an entire list of accounts (actors)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/listitem.json b/lexicons/app/bsky/graph/listitem.json new file mode 100644 index 0000000000..edfb268b35 --- /dev/null +++ b/lexicons/app/bsky/graph/listitem.json @@ -0,0 +1,36 @@ +{ + "id": "app.bsky.graph.listitem", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "subject", + "list", + "createdAt" + ], + "properties": { + "list": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to the list record (app.bsky.graph.list)." + }, + "subject": { + "type": "string", + "format": "did", + "description": "The account which is included on the list." + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + } + }, + "description": "Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/muteActor.json b/lexicons/app/bsky/graph/muteActor.json new file mode 100644 index 0000000000..734bec3576 --- /dev/null +++ b/lexicons/app/bsky/graph/muteActor.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.graph.muteActor", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + } + } + }, + "encoding": "application/json" + }, + "description": "Creates a mute relationship for the specified account. Mutes are private in Bluesky. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/muteActorList.json b/lexicons/app/bsky/graph/muteActorList.json new file mode 100644 index 0000000000..7a2d060d03 --- /dev/null +++ b/lexicons/app/bsky/graph/muteActorList.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.graph.muteActorList", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "list" + ], + "properties": { + "list": { + "type": "string", + "format": "at-uri" + } + } + }, + "encoding": "application/json" + }, + "description": "Creates a mute relationship for the specified list of accounts. Mutes are private in Bluesky. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/muteThread.json b/lexicons/app/bsky/graph/muteThread.json new file mode 100644 index 0000000000..7cfb6890f2 --- /dev/null +++ b/lexicons/app/bsky/graph/muteThread.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.graph.muteThread", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "root" + ], + "properties": { + "root": { + "type": "string", + "format": "at-uri" + } + } + }, + "encoding": "application/json" + }, + "description": "Mutes a thread preventing notifications from the thread and any of its children. Mutes are private in Bluesky. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/searchStarterPacks.json b/lexicons/app/bsky/graph/searchStarterPacks.json new file mode 100644 index 0000000000..20ac032f3f --- /dev/null +++ b/lexicons/app/bsky/graph/searchStarterPacks.json @@ -0,0 +1,53 @@ +{ + "id": "app.bsky.graph.searchStarterPacks", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "starterPacks" + ], + "properties": { + "cursor": { + "type": "string" + }, + "starterPacks": { + "type": "array", + "items": { + "ref": "app.bsky.graph.defs#starterPackViewBasic", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "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", + "default": 25, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Find starter packs matching search criteria. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/searchStarterPacksV2.json b/lexicons/app/bsky/graph/searchStarterPacksV2.json new file mode 100644 index 0000000000..4885c9dfe3 --- /dev/null +++ b/lexicons/app/bsky/graph/searchStarterPacksV2.json @@ -0,0 +1,52 @@ +{ + "lexicon": 1, + "id": "app.bsky.graph.searchStarterPacksV2", + "defs": { + "main": { + "type": "query", + "description": "Find starter packs matching search criteria. Does not require auth.", + "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" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["starterPacks"], + "properties": { + "cursor": { + "type": "string" + }, + "hitsTotal": { + "type": "integer", + "description": "Estimated total number of matching hits. May be rounded or truncated." + }, + "starterPacks": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.graph.defs#starterPackView" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/graph/starterpack.json b/lexicons/app/bsky/graph/starterpack.json new file mode 100644 index 0000000000..add9530335 --- /dev/null +++ b/lexicons/app/bsky/graph/starterpack.json @@ -0,0 +1,70 @@ +{ + "id": "app.bsky.graph.starterpack", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "name", + "list", + "createdAt" + ], + "properties": { + "list": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to the list record." + }, + "name": { + "type": "string", + "maxLength": 500, + "minLength": 1, + "description": "Display name for starter pack; can not be empty.", + "maxGraphemes": 50 + }, + "feeds": { + "type": "array", + "items": { + "ref": "#feedItem", + "type": "ref" + }, + "maxLength": 3 + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "description": { + "type": "string", + "maxLength": 3000, + "maxGraphemes": 300 + }, + "descriptionFacets": { + "type": "array", + "items": { + "ref": "app.bsky.richtext.facet", + "type": "ref" + } + } + } + }, + "description": "Record defining a starter pack of actors and feeds for new users." + }, + "feedItem": { + "type": "object", + "required": [ + "uri" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/unmuteActor.json b/lexicons/app/bsky/graph/unmuteActor.json new file mode 100644 index 0000000000..8b9ca6cdb2 --- /dev/null +++ b/lexicons/app/bsky/graph/unmuteActor.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.graph.unmuteActor", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "at-identifier" + } + } + }, + "encoding": "application/json" + }, + "description": "Unmutes the specified account. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/unmuteActorList.json b/lexicons/app/bsky/graph/unmuteActorList.json new file mode 100644 index 0000000000..b770634928 --- /dev/null +++ b/lexicons/app/bsky/graph/unmuteActorList.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.graph.unmuteActorList", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "list" + ], + "properties": { + "list": { + "type": "string", + "format": "at-uri" + } + } + }, + "encoding": "application/json" + }, + "description": "Unmutes the specified list of accounts. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/unmuteThread.json b/lexicons/app/bsky/graph/unmuteThread.json new file mode 100644 index 0000000000..5b86269582 --- /dev/null +++ b/lexicons/app/bsky/graph/unmuteThread.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.graph.unmuteThread", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "root" + ], + "properties": { + "root": { + "type": "string", + "format": "at-uri" + } + } + }, + "encoding": "application/json" + }, + "description": "Unmutes the specified thread. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/graph/verification.json b/lexicons/app/bsky/graph/verification.json new file mode 100644 index 0000000000..6d55ebf909 --- /dev/null +++ b/lexicons/app/bsky/graph/verification.json @@ -0,0 +1,42 @@ +{ + "id": "app.bsky.graph.verification", + "defs": { + "main": { + "key": "tid", + "type": "record", + "record": { + "type": "object", + "required": [ + "subject", + "handle", + "displayName", + "createdAt" + ], + "properties": { + "handle": { + "type": "string", + "format": "handle", + "description": "Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying." + }, + "subject": { + "type": "string", + "format": "did", + "description": "DID of the subject the verification applies to." + }, + "createdAt": { + "type": "string", + "format": "datetime", + "description": "Date of when the verification was created." + }, + "displayName": { + "type": "string", + "description": "Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying." + } + } + }, + "description": "Record declaring a verification relationship between two accounts. Verifications are only considered valid by an app if issued by an account the app considers trusted." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/labeler/defs.json b/lexicons/app/bsky/labeler/defs.json new file mode 100644 index 0000000000..20de6e051b --- /dev/null +++ b/lexicons/app/bsky/labeler/defs.json @@ -0,0 +1,153 @@ +{ + "id": "app.bsky.labeler.defs", + "defs": { + "labelerView": { + "type": "object", + "required": [ + "uri", + "cid", + "creator", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "viewer": { + "ref": "#labelerViewerState", + "type": "ref" + }, + "creator": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "likeCount": { + "type": "integer", + "minimum": 0 + } + } + }, + "labelerPolicies": { + "type": "object", + "required": [ + "labelValues" + ], + "properties": { + "labelValues": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#labelValue", + "type": "ref" + }, + "description": "The label values which this labeler publishes. May include global or custom labels." + }, + "labelValueDefinitions": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#labelValueDefinition", + "type": "ref" + }, + "description": "Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler." + } + } + }, + "labelerViewerState": { + "type": "object", + "properties": { + "like": { + "type": "string", + "format": "at-uri" + } + } + }, + "labelerViewDetailed": { + "type": "object", + "required": [ + "uri", + "cid", + "creator", + "policies", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "viewer": { + "ref": "#labelerViewerState", + "type": "ref" + }, + "creator": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + }, + "policies": { + "ref": "app.bsky.labeler.defs#labelerPolicies", + "type": "ref" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "likeCount": { + "type": "integer", + "minimum": 0 + }, + "reasonTypes": { + "type": "array", + "items": { + "ref": "com.atproto.moderation.defs#reasonType", + "type": "ref" + }, + "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed." + }, + "subjectTypes": { + "type": "array", + "items": { + "ref": "com.atproto.moderation.defs#subjectType", + "type": "ref" + }, + "description": "The set of subject types (account, record, etc) this service accepts reports on." + }, + "subjectCollections": { + "type": "array", + "items": { + "type": "string", + "format": "nsid" + }, + "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type." + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/labeler/getServices.json b/lexicons/app/bsky/labeler/getServices.json new file mode 100644 index 0000000000..84a8856569 --- /dev/null +++ b/lexicons/app/bsky/labeler/getServices.json @@ -0,0 +1,51 @@ +{ + "id": "app.bsky.labeler.getServices", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "views" + ], + "properties": { + "views": { + "type": "array", + "items": { + "refs": [ + "app.bsky.labeler.defs#labelerView", + "app.bsky.labeler.defs#labelerViewDetailed" + ], + "type": "union" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "dids" + ], + "properties": { + "dids": { + "type": "array", + "items": { + "type": "string", + "format": "did" + } + }, + "detailed": { + "type": "boolean", + "default": false + } + } + }, + "description": "Get information about a list of labeler services." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/labeler/service.json b/lexicons/app/bsky/labeler/service.json new file mode 100644 index 0000000000..65f20e1fee --- /dev/null +++ b/lexicons/app/bsky/labeler/service.json @@ -0,0 +1,59 @@ +{ + "id": "app.bsky.labeler.service", + "defs": { + "main": { + "key": "literal:self", + "type": "record", + "record": { + "type": "object", + "required": [ + "policies", + "createdAt" + ], + "properties": { + "labels": { + "refs": [ + "com.atproto.label.defs#selfLabels" + ], + "type": "union" + }, + "policies": { + "ref": "app.bsky.labeler.defs#labelerPolicies", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "reasonTypes": { + "type": "array", + "items": { + "ref": "com.atproto.moderation.defs#reasonType", + "type": "ref" + }, + "description": "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed." + }, + "subjectTypes": { + "type": "array", + "items": { + "ref": "com.atproto.moderation.defs#subjectType", + "type": "ref" + }, + "description": "The set of subject types (account, record, etc) this service accepts reports on." + }, + "subjectCollections": { + "type": "array", + "items": { + "type": "string", + "format": "nsid" + }, + "description": "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type." + } + } + }, + "description": "A declaration of the existence of labeler service." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/declaration.json b/lexicons/app/bsky/notification/declaration.json new file mode 100644 index 0000000000..185af94404 --- /dev/null +++ b/lexicons/app/bsky/notification/declaration.json @@ -0,0 +1,29 @@ +{ + "id": "app.bsky.notification.declaration", + "defs": { + "main": { + "key": "literal:self", + "type": "record", + "record": { + "type": "object", + "required": [ + "allowSubscriptions" + ], + "properties": { + "allowSubscriptions": { + "type": "string", + "description": "A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'.", + "knownValues": [ + "followers", + "mutuals", + "none" + ] + } + } + }, + "description": "A declaration of the user's choices related to notifications that can be produced by them." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/defs.json b/lexicons/app/bsky/notification/defs.json new file mode 100644 index 0000000000..3e767ca298 --- /dev/null +++ b/lexicons/app/bsky/notification/defs.json @@ -0,0 +1,175 @@ +{ + "id": "app.bsky.notification.defs", + "defs": { + "preference": { + "type": "object", + "required": [ + "list", + "push" + ], + "properties": { + "list": { + "type": "boolean" + }, + "push": { + "type": "boolean" + } + } + }, + "preferences": { + "type": "object", + "required": [ + "chat", + "follow", + "like", + "likeViaRepost", + "mention", + "quote", + "reply", + "repost", + "repostViaRepost", + "starterpackJoined", + "subscribedPost", + "unverified", + "verified" + ], + "properties": { + "chat": { + "ref": "#chatPreference", + "type": "ref", + "description": "Deprecated: use chat.bsky.notification preferences instead. This will only return a default value." + }, + "like": { + "ref": "#filterablePreference", + "type": "ref" + }, + "quote": { + "ref": "#filterablePreference", + "type": "ref" + }, + "reply": { + "ref": "#filterablePreference", + "type": "ref" + }, + "follow": { + "ref": "#filterablePreference", + "type": "ref" + }, + "repost": { + "ref": "#filterablePreference", + "type": "ref" + }, + "mention": { + "ref": "#filterablePreference", + "type": "ref" + }, + "verified": { + "ref": "#preference", + "type": "ref" + }, + "unverified": { + "ref": "#preference", + "type": "ref" + }, + "likeViaRepost": { + "ref": "#filterablePreference", + "type": "ref" + }, + "subscribedPost": { + "ref": "#preference", + "type": "ref" + }, + "repostViaRepost": { + "ref": "#filterablePreference", + "type": "ref" + }, + "starterpackJoined": { + "ref": "#preference", + "type": "ref" + } + } + }, + "recordDeleted": { + "type": "object", + "properties": {} + }, + "chatPreference": { + "type": "object", + "required": [ + "include", + "push" + ], + "properties": { + "push": { + "type": "boolean" + }, + "include": { + "type": "string", + "knownValues": [ + "all", + "accepted" + ] + } + }, + "description": "Deprecated: use chat.bsky.notification preferences instead. This will only return a default value." + }, + "activitySubscription": { + "type": "object", + "required": [ + "post", + "reply" + ], + "properties": { + "post": { + "type": "boolean" + }, + "reply": { + "type": "boolean" + } + } + }, + "filterablePreference": { + "type": "object", + "required": [ + "include", + "list", + "push" + ], + "properties": { + "list": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "include": { + "type": "string", + "knownValues": [ + "all", + "follows" + ] + } + } + }, + "subjectActivitySubscription": { + "type": "object", + "required": [ + "subject", + "activitySubscription" + ], + "properties": { + "subject": { + "type": "string", + "format": "did" + }, + "activitySubscription": { + "ref": "#activitySubscription", + "type": "ref" + } + }, + "description": "Object used to store activity subscription data in stash." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/getPreferences.json b/lexicons/app/bsky/notification/getPreferences.json new file mode 100644 index 0000000000..54482fb455 --- /dev/null +++ b/lexicons/app/bsky/notification/getPreferences.json @@ -0,0 +1,30 @@ +{ + "id": "app.bsky.notification.getPreferences", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "preferences" + ], + "properties": { + "preferences": { + "ref": "app.bsky.notification.defs#preferences", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": {} + }, + "description": "Get notification-related preferences for an account. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/getUnreadCount.json b/lexicons/app/bsky/notification/getUnreadCount.json new file mode 100644 index 0000000000..87a37810d9 --- /dev/null +++ b/lexicons/app/bsky/notification/getUnreadCount.json @@ -0,0 +1,37 @@ +{ + "id": "app.bsky.notification.getUnreadCount", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "count" + ], + "properties": { + "count": { + "type": "integer" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "seenAt": { + "type": "string", + "format": "datetime" + }, + "priority": { + "type": "boolean" + } + } + }, + "description": "Count the number of unread notifications for the requesting account. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/listActivitySubscriptions.json b/lexicons/app/bsky/notification/listActivitySubscriptions.json new file mode 100644 index 0000000000..350b822ac9 --- /dev/null +++ b/lexicons/app/bsky/notification/listActivitySubscriptions.json @@ -0,0 +1,46 @@ +{ + "id": "app.bsky.notification.listActivitySubscriptions", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "subscriptions" + ], + "properties": { + "cursor": { + "type": "string" + }, + "subscriptions": { + "type": "array", + "items": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerate all accounts to which the requesting account is subscribed to receive notifications for. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/listNotifications.json b/lexicons/app/bsky/notification/listNotifications.json new file mode 100644 index 0000000000..52ef3ae919 --- /dev/null +++ b/lexicons/app/bsky/notification/listNotifications.json @@ -0,0 +1,134 @@ +{ + "id": "app.bsky.notification.listNotifications", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "notifications" + ], + "properties": { + "cursor": { + "type": "string" + }, + "seenAt": { + "type": "string", + "format": "datetime" + }, + "priority": { + "type": "boolean" + }, + "notifications": { + "type": "array", + "items": { + "ref": "#notification", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "seenAt": { + "type": "string", + "format": "datetime" + }, + "reasons": { + "type": "array", + "items": { + "type": "string", + "description": "A reason that matches the reason property of #notification." + }, + "description": "Notification reasons to include in response." + }, + "priority": { + "type": "boolean" + } + } + }, + "description": "Enumerate notifications for the requesting account. Requires auth." + }, + "notification": { + "type": "object", + "required": [ + "uri", + "cid", + "author", + "reason", + "record", + "isRead", + "indexedAt" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "author": { + "ref": "app.bsky.actor.defs#profileView", + "type": "ref" + }, + "isRead": { + "type": "boolean" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "reason": { + "type": "string", + "description": "The reason why this notification was delivered - e.g. your post was liked, or you received a new follower.", + "knownValues": [ + "like", + "repost", + "follow", + "mention", + "reply", + "quote", + "starterpack-joined", + "verified", + "unverified", + "like-via-repost", + "repost-via-repost", + "subscribed-post", + "contact-match" + ] + }, + "record": { + "type": "unknown" + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "reasonSubject": { + "type": "string", + "format": "at-uri" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/putActivitySubscription.json b/lexicons/app/bsky/notification/putActivitySubscription.json new file mode 100644 index 0000000000..65cc67b335 --- /dev/null +++ b/lexicons/app/bsky/notification/putActivitySubscription.json @@ -0,0 +1,50 @@ +{ + "id": "app.bsky.notification.putActivitySubscription", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "subject", + "activitySubscription" + ], + "properties": { + "subject": { + "type": "string", + "format": "did" + }, + "activitySubscription": { + "ref": "app.bsky.notification.defs#activitySubscription", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "subject" + ], + "properties": { + "subject": { + "type": "string", + "format": "did" + }, + "activitySubscription": { + "ref": "app.bsky.notification.defs#activitySubscription", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Puts an activity subscription entry. The key should be omitted for creation and provided for updates. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/putPreferences.json b/lexicons/app/bsky/notification/putPreferences.json new file mode 100644 index 0000000000..2875de467b --- /dev/null +++ b/lexicons/app/bsky/notification/putPreferences.json @@ -0,0 +1,25 @@ +{ + "id": "app.bsky.notification.putPreferences", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "priority" + ], + "properties": { + "priority": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "description": "Set notification-related preferences for an account. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/putPreferencesV2.json b/lexicons/app/bsky/notification/putPreferencesV2.json new file mode 100644 index 0000000000..6a5d98fbda --- /dev/null +++ b/lexicons/app/bsky/notification/putPreferencesV2.json @@ -0,0 +1,87 @@ +{ + "id": "app.bsky.notification.putPreferencesV2", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "properties": { + "chat": { + "ref": "app.bsky.notification.defs#chatPreference", + "type": "ref", + "description": "Deprecated: use chat.bsky.notification preferences instead. Setting this won't stick and the default values will be returned." + }, + "like": { + "ref": "app.bsky.notification.defs#filterablePreference", + "type": "ref" + }, + "quote": { + "ref": "app.bsky.notification.defs#filterablePreference", + "type": "ref" + }, + "reply": { + "ref": "app.bsky.notification.defs#filterablePreference", + "type": "ref" + }, + "follow": { + "ref": "app.bsky.notification.defs#filterablePreference", + "type": "ref" + }, + "repost": { + "ref": "app.bsky.notification.defs#filterablePreference", + "type": "ref" + }, + "mention": { + "ref": "app.bsky.notification.defs#filterablePreference", + "type": "ref" + }, + "verified": { + "ref": "app.bsky.notification.defs#preference", + "type": "ref" + }, + "unverified": { + "ref": "app.bsky.notification.defs#preference", + "type": "ref" + }, + "likeViaRepost": { + "ref": "app.bsky.notification.defs#filterablePreference", + "type": "ref" + }, + "subscribedPost": { + "ref": "app.bsky.notification.defs#preference", + "type": "ref" + }, + "repostViaRepost": { + "ref": "app.bsky.notification.defs#filterablePreference", + "type": "ref" + }, + "starterpackJoined": { + "ref": "app.bsky.notification.defs#preference", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "preferences" + ], + "properties": { + "preferences": { + "ref": "app.bsky.notification.defs#preferences", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Set notification-related preferences for an account. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/registerPush.json b/lexicons/app/bsky/notification/registerPush.json new file mode 100644 index 0000000000..db1fff3ab7 --- /dev/null +++ b/lexicons/app/bsky/notification/registerPush.json @@ -0,0 +1,47 @@ +{ + "id": "app.bsky.notification.registerPush", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "serviceDid", + "token", + "platform", + "appId" + ], + "properties": { + "appId": { + "type": "string" + }, + "token": { + "type": "string" + }, + "platform": { + "type": "string", + "knownValues": [ + "ios", + "android", + "web" + ] + }, + "serviceDid": { + "type": "string", + "format": "did" + }, + "ageRestricted": { + "type": "boolean", + "description": "Set to true when the actor is age restricted" + } + } + }, + "encoding": "application/json" + }, + "description": "Register to receive push notifications, via a specified service, for the requesting account. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/unregisterPush.json b/lexicons/app/bsky/notification/unregisterPush.json new file mode 100644 index 0000000000..a73bd6afde --- /dev/null +++ b/lexicons/app/bsky/notification/unregisterPush.json @@ -0,0 +1,43 @@ +{ + "id": "app.bsky.notification.unregisterPush", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "serviceDid", + "token", + "platform", + "appId" + ], + "properties": { + "appId": { + "type": "string" + }, + "token": { + "type": "string" + }, + "platform": { + "type": "string", + "knownValues": [ + "ios", + "android", + "web" + ] + }, + "serviceDid": { + "type": "string", + "format": "did" + } + } + }, + "encoding": "application/json" + }, + "description": "The inverse of registerPush - inform a specified service that push notifications should no longer be sent to the given token for the requesting account. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/notification/updateSeen.json b/lexicons/app/bsky/notification/updateSeen.json new file mode 100644 index 0000000000..128b8611e3 --- /dev/null +++ b/lexicons/app/bsky/notification/updateSeen.json @@ -0,0 +1,26 @@ +{ + "id": "app.bsky.notification.updateSeen", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "seenAt" + ], + "properties": { + "seenAt": { + "type": "string", + "format": "datetime" + } + } + }, + "encoding": "application/json" + }, + "description": "Notify server that the requesting account has seen notifications. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/richtext/facet.json b/lexicons/app/bsky/richtext/facet.json new file mode 100644 index 0000000000..39b039b790 --- /dev/null +++ b/lexicons/app/bsky/richtext/facet.json @@ -0,0 +1,90 @@ +{ + "id": "app.bsky.richtext.facet", + "defs": { + "tag": { + "type": "object", + "required": [ + "tag" + ], + "properties": { + "tag": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + } + }, + "description": "Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags')." + }, + "link": { + "type": "object", + "required": [ + "uri" + ], + "properties": { + "uri": { + "type": "string", + "format": "uri" + } + }, + "description": "Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL." + }, + "main": { + "type": "object", + "required": [ + "index", + "features" + ], + "properties": { + "index": { + "ref": "#byteSlice", + "type": "ref" + }, + "features": { + "type": "array", + "items": { + "refs": [ + "#mention", + "#link", + "#tag" + ], + "type": "union" + } + } + }, + "description": "Annotation of a sub-string within rich text." + }, + "mention": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + }, + "description": "Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID." + }, + "byteSlice": { + "type": "object", + "required": [ + "byteStart", + "byteEnd" + ], + "properties": { + "byteEnd": { + "type": "integer", + "minimum": 0 + }, + "byteStart": { + "type": "integer", + "minimum": 0 + } + }, + "description": "Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/unspecced/defs.json b/lexicons/app/bsky/unspecced/defs.json new file mode 100644 index 0000000000..609de81f8f --- /dev/null +++ b/lexicons/app/bsky/unspecced/defs.json @@ -0,0 +1,259 @@ +{ + "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" + } + } + }, + "skeletonSearchStarterPack": { + "type": "object", + "required": ["uri"], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + } + } + }, + "trendingTopic": { + "type": "object", + "required": ["topic", "link"], + "properties": { + "topic": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "link": { + "type": "string" + } + } + }, + "skeletonTrend": { + "type": "object", + "required": [ + "topic", + "displayName", + "link", + "startedAt", + "postCount", + "dids" + ], + "properties": { + "topic": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "link": { + "type": "string" + }, + "startedAt": { + "type": "string", + "format": "datetime" + }, + "postCount": { + "type": "integer" + }, + "status": { + "type": "string", + "knownValues": ["hot"] + }, + "category": { + "type": "string" + }, + "dids": { + "type": "array", + "items": { + "type": "string", + "format": "did" + } + } + } + }, + "trendView": { + "type": "object", + "required": [ + "topic", + "displayName", + "link", + "startedAt", + "postCount", + "actors" + ], + "properties": { + "topic": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "link": { + "type": "string" + }, + "startedAt": { + "type": "string", + "format": "datetime" + }, + "postCount": { + "type": "integer" + }, + "status": { + "type": "string", + "knownValues": ["hot"] + }, + "category": { + "type": "string" + }, + "actors": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileViewBasic" + } + } + } + }, + "threadItemPost": { + "type": "object", + "required": [ + "post", + "moreParents", + "moreReplies", + "opThread", + "hiddenByThreadgate", + "mutedByViewer" + ], + "properties": { + "post": { + "type": "ref", + "ref": "app.bsky.feed.defs#postView" + }, + "moreParents": { + "type": "boolean", + "description": "This post has more parents that were not present in the response. This is just a boolean, without the number of parents." + }, + "moreReplies": { + "type": "integer", + "description": "This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate." + }, + "opThread": { + "type": "boolean", + "description": "This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread." + }, + "hiddenByThreadgate": { + "type": "boolean", + "description": "The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread." + }, + "mutedByViewer": { + "type": "boolean", + "description": "This is by an account muted by the viewer requesting it." + } + } + }, + "threadItemNoUnauthenticated": { + "type": "object", + "properties": {} + }, + "threadItemNotFound": { + "type": "object", + "properties": {} + }, + "threadItemBlocked": { + "type": "object", + "required": ["author"], + "properties": { + "author": { + "type": "ref", + "ref": "app.bsky.feed.defs#blockedAuthor" + } + } + }, + "ageAssuranceState": { + "type": "object", + "description": "The computed state of the age assurance process, returned to the user in question on certain authenticated requests.", + "required": ["status"], + "properties": { + "lastInitiatedAt": { + "type": "string", + "format": "datetime", + "description": "The timestamp when this state was last updated." + }, + "status": { + "type": "string", + "description": "The status of the age assurance process.", + "knownValues": ["unknown", "pending", "assured", "blocked"] + } + } + }, + "ageAssuranceEvent": { + "type": "object", + "description": "Object used to store age assurance data in stash.", + "required": ["createdAt", "status", "attemptId"], + "properties": { + "createdAt": { + "type": "string", + "format": "datetime", + "description": "The date and time of this write operation." + }, + "status": { + "type": "string", + "description": "The status of the age assurance process.", + "knownValues": ["unknown", "pending", "assured"] + }, + "attemptId": { + "type": "string", + "description": "The unique identifier for this instance of the age assurance flow, in UUID format." + }, + "email": { + "type": "string", + "description": "The email used for AA." + }, + "initIp": { + "type": "string", + "description": "The IP address used when initiating the AA flow." + }, + "initUa": { + "type": "string", + "description": "The user agent used when initiating the AA flow." + }, + "completeIp": { + "type": "string", + "description": "The IP address used when completing the AA flow." + }, + "completeUa": { + "type": "string", + "description": "The user agent used when completing the AA flow." + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getAgeAssuranceState.json b/lexicons/app/bsky/unspecced/getAgeAssuranceState.json new file mode 100644 index 0000000000..3bd42b3246 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getAgeAssuranceState.json @@ -0,0 +1,17 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getAgeAssuranceState", + "defs": { + "main": { + "type": "query", + "description": "Returns the current state of the age assurance process for an account. This is used to check if the user has completed age assurance or if further action is required.", + "output": { + "encoding": "application/json", + "schema": { + "type": "ref", + "ref": "app.bsky.unspecced.defs#ageAssuranceState" + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getConfig.json b/lexicons/app/bsky/unspecced/getConfig.json new file mode 100644 index 0000000000..1e40f80dc2 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getConfig.json @@ -0,0 +1,45 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getConfig", + "defs": { + "main": { + "type": "query", + "description": "Get miscellaneous runtime configuration.", + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": [], + "properties": { + "checkEmailConfirmed": { + "type": "boolean" + }, + "liveNow": { + "type": "array", + "items": { + "type": "ref", + "ref": "#liveNowConfig" + } + } + } + } + } + }, + "liveNowConfig": { + "type": "object", + "required": ["did", "domains"], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "domains": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.json b/lexicons/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.json new file mode 100644 index 0000000000..60b1490137 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getOnboardingSuggestedStarterPacks", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggested starterpacks for onboarding", + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 10 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["starterPacks"], + "properties": { + "starterPacks": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.graph.defs#starterPackView" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getPopularFeedGenerators.json b/lexicons/app/bsky/unspecced/getPopularFeedGenerators.json new file mode 100644 index 0000000000..407ff66e3a --- /dev/null +++ b/lexicons/app/bsky/unspecced/getPopularFeedGenerators.json @@ -0,0 +1,46 @@ +{ + "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": "app.bsky.feed.defs#generatorView" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getPostThreadOtherV2.json b/lexicons/app/bsky/unspecced/getPostThreadOtherV2.json new file mode 100644 index 0000000000..7fab28bfeb --- /dev/null +++ b/lexicons/app/bsky/unspecced/getPostThreadOtherV2.json @@ -0,0 +1,56 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getPostThreadOtherV2", + "defs": { + "main": { + "type": "query", + "description": "(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting `app.bsky.unspecced.getPostThreadV2`. Does not require auth, but additional metadata and filtering will be applied for authed requests.", + "parameters": { + "type": "params", + "required": ["anchor"], + "properties": { + "anchor": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to post record. This is the anchor post." + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["thread"], + "properties": { + "thread": { + "type": "array", + "description": "A flat list of other thread items. The depth of each item is indicated by the depth property inside the item.", + "items": { + "type": "ref", + "ref": "#threadItem" + } + } + } + } + } + }, + "threadItem": { + "type": "object", + "required": ["uri", "depth", "value"], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "depth": { + "type": "integer", + "description": "The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths." + }, + "value": { + "type": "union", + "refs": ["app.bsky.unspecced.defs#threadItemPost"] + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getPostThreadV2.json b/lexicons/app/bsky/unspecced/getPostThreadV2.json new file mode 100644 index 0000000000..e38dfde964 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getPostThreadV2.json @@ -0,0 +1,94 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getPostThreadV2", + "defs": { + "main": { + "type": "query", + "description": "(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it (recursive replies, with branching to their replies). Does not require auth, but additional metadata and filtering will be applied for authed requests.", + "parameters": { + "type": "params", + "required": ["anchor"], + "properties": { + "anchor": { + "type": "string", + "format": "at-uri", + "description": "Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post." + }, + "above": { + "type": "boolean", + "description": "Whether to include parents above the anchor.", + "default": true + }, + "below": { + "type": "integer", + "description": "How many levels of replies to include below the anchor.", + "default": 6, + "minimum": 0, + "maximum": 20 + }, + "branchingFactor": { + "type": "integer", + "description": "Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).", + "default": 10, + "minimum": 0, + "maximum": 100 + }, + "sort": { + "type": "string", + "description": "Sorting for the thread replies.", + "knownValues": ["newest", "oldest", "top"], + "default": "oldest" + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["thread", "hasOtherReplies"], + "properties": { + "thread": { + "type": "array", + "description": "A flat list of thread items. The depth of each item is indicated by the depth property inside the item.", + "items": { + "type": "ref", + "ref": "#threadItem" + } + }, + "threadgate": { + "type": "ref", + "ref": "app.bsky.feed.defs#threadgateView" + }, + "hasOtherReplies": { + "type": "boolean", + "description": "Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them." + } + } + } + } + }, + "threadItem": { + "type": "object", + "required": ["uri", "depth", "value"], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "depth": { + "type": "integer", + "description": "The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths." + }, + "value": { + "type": "union", + "refs": [ + "app.bsky.unspecced.defs#threadItemPost", + "app.bsky.unspecced.defs#threadItemNoUnauthenticated", + "app.bsky.unspecced.defs#threadItemNotFound", + "app.bsky.unspecced.defs#threadItemBlocked" + ] + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedFeeds.json b/lexicons/app/bsky/unspecced/getSuggestedFeeds.json new file mode 100644 index 0000000000..1a723a0bbb --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedFeeds.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedFeeds", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggested feeds", + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 10 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["feeds"], + "properties": { + "feeds": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.feed.defs#generatorView" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedFeedsSkeleton.json b/lexicons/app/bsky/unspecced/getSuggestedFeedsSkeleton.json new file mode 100644 index 0000000000..c0b72da680 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedFeedsSkeleton.json @@ -0,0 +1,42 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedFeedsSkeleton", + "defs": { + "main": { + "type": "query", + "description": "Get a skeleton of suggested feeds. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedFeeds", + "parameters": { + "type": "params", + "properties": { + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries)." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 10 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["feeds"], + "properties": { + "feeds": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedOnboardingUsers.json b/lexicons/app/bsky/unspecced/getSuggestedOnboardingUsers.json new file mode 100644 index 0000000000..24e45566ef --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedOnboardingUsers.json @@ -0,0 +1,49 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedOnboardingUsers", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggested users for onboarding", + "parameters": { + "type": "params", + "properties": { + "category": { + "type": "string", + "description": "Category of users to get suggestions for." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 50, + "default": 25 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["actors"], + "properties": { + "actors": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } + }, + "recId": { + "type": "string", + "description": "DEPRECATED: use recIdStr instead." + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedStarterPacks.json b/lexicons/app/bsky/unspecced/getSuggestedStarterPacks.json new file mode 100644 index 0000000000..d4bdd22643 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedStarterPacks.json @@ -0,0 +1,37 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedStarterPacks", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggested starterpacks", + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 10 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["starterPacks"], + "properties": { + "starterPacks": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.graph.defs#starterPackView" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.json b/lexicons/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.json new file mode 100644 index 0000000000..cf5d88e060 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.json @@ -0,0 +1,42 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", + "defs": { + "main": { + "type": "query", + "description": "Get a skeleton of suggested starterpacks. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedStarterpacks", + "parameters": { + "type": "params", + "properties": { + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries)." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 10 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["starterPacks"], + "properties": { + "starterPacks": { + "type": "array", + "items": { + "type": "string", + "format": "at-uri" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedUsers.json b/lexicons/app/bsky/unspecced/getSuggestedUsers.json new file mode 100644 index 0000000000..705e21c9d6 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedUsers.json @@ -0,0 +1,49 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedUsers", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggested users", + "parameters": { + "type": "params", + "properties": { + "category": { + "type": "string", + "description": "Category of users to get suggestions for." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 50, + "default": 25 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["actors"], + "properties": { + "actors": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } + }, + "recId": { + "type": "string", + "description": "DEPRECATED: use recIdStr instead." + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedUsersForDiscover.json b/lexicons/app/bsky/unspecced/getSuggestedUsersForDiscover.json new file mode 100644 index 0000000000..7d0f289d12 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedUsersForDiscover.json @@ -0,0 +1,41 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedUsersForDiscover", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggested users for the Discover page", + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 50, + "default": 25 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["actors"], + "properties": { + "actors": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedUsersForExplore.json b/lexicons/app/bsky/unspecced/getSuggestedUsersForExplore.json new file mode 100644 index 0000000000..a37a21a7eb --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedUsersForExplore.json @@ -0,0 +1,45 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedUsersForExplore", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggested users for the Explore page", + "parameters": { + "type": "params", + "properties": { + "category": { + "type": "string", + "description": "Category of users to get suggestions for." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 50, + "default": 25 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["actors"], + "properties": { + "actors": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedUsersForSeeMore.json b/lexicons/app/bsky/unspecced/getSuggestedUsersForSeeMore.json new file mode 100644 index 0000000000..1938df7e55 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedUsersForSeeMore.json @@ -0,0 +1,45 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedUsersForSeeMore", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggested users for the See More page", + "parameters": { + "type": "params", + "properties": { + "category": { + "type": "string", + "description": "Category of users to get suggestions for." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 50, + "default": 25 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["actors"], + "properties": { + "actors": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.actor.defs#profileView" + } + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestedUsersSkeleton.json b/lexicons/app/bsky/unspecced/getSuggestedUsersSkeleton.json new file mode 100644 index 0000000000..3fed8dd95d --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestedUsersSkeleton.json @@ -0,0 +1,54 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestedUsersSkeleton", + "defs": { + "main": { + "type": "query", + "description": "Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers", + "parameters": { + "type": "params", + "properties": { + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries)." + }, + "category": { + "type": "string", + "description": "Category of users to get suggestions for." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 50, + "default": 25 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["dids"], + "properties": { + "dids": { + "type": "array", + "items": { + "type": "string", + "format": "did" + } + }, + "recId": { + "type": "string", + "description": "DEPRECATED: use recIdStr instead." + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getSuggestionsSkeleton.json b/lexicons/app/bsky/unspecced/getSuggestionsSkeleton.json new file mode 100644 index 0000000000..466815ed47 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getSuggestionsSkeleton.json @@ -0,0 +1,66 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getSuggestionsSkeleton", + "defs": { + "main": { + "type": "query", + "description": "Get a skeleton of suggested actors. Intended to be called and then hydrated through app.bsky.actor.getSuggestions", + "parameters": { + "type": "params", + "properties": { + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 50 + }, + "cursor": { + "type": "string" + }, + "relativeToDid": { + "type": "string", + "format": "did", + "description": "DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer." + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["actors"], + "properties": { + "cursor": { + "type": "string" + }, + "actors": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.unspecced.defs#skeletonSearchActor" + } + }, + "relativeToDid": { + "type": "string", + "format": "did", + "description": "DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer." + }, + "recId": { + "type": "integer", + "description": "DEPRECATED: use recIdStr instead." + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getTaggedSuggestions.json b/lexicons/app/bsky/unspecced/getTaggedSuggestions.json new file mode 100644 index 0000000000..f81459098d --- /dev/null +++ b/lexicons/app/bsky/unspecced/getTaggedSuggestions.json @@ -0,0 +1,47 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getTaggedSuggestions", + "defs": { + "main": { + "type": "query", + "description": "Get a list of suggestions (feeds and users) tagged with categories", + "parameters": { + "type": "params", + "properties": {} + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["suggestions"], + "properties": { + "suggestions": { + "type": "array", + "items": { + "type": "ref", + "ref": "#suggestion" + } + } + } + } + } + }, + "suggestion": { + "type": "object", + "required": ["tag", "subjectType", "subject"], + "properties": { + "tag": { + "type": "string" + }, + "subjectType": { + "type": "string", + "knownValues": ["actor", "feed"] + }, + "subject": { + "type": "string", + "format": "uri" + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getTrendingTopics.json b/lexicons/app/bsky/unspecced/getTrendingTopics.json new file mode 100644 index 0000000000..097dc1c54d --- /dev/null +++ b/lexicons/app/bsky/unspecced/getTrendingTopics.json @@ -0,0 +1,49 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getTrendingTopics", + "defs": { + "main": { + "type": "query", + "description": "Get a list of trending topics", + "parameters": { + "type": "params", + "properties": { + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 10 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["topics", "suggested"], + "properties": { + "topics": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.unspecced.defs#trendingTopic" + } + }, + "suggested": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.unspecced.defs#trendingTopic" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getTrends.json b/lexicons/app/bsky/unspecced/getTrends.json new file mode 100644 index 0000000000..b857c8681b --- /dev/null +++ b/lexicons/app/bsky/unspecced/getTrends.json @@ -0,0 +1,41 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getTrends", + "defs": { + "main": { + "type": "query", + "description": "Get the current trends on the network", + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 10 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["trends"], + "properties": { + "trends": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.unspecced.defs#trendView" + } + }, + "recIdStr": { + "type": "string", + "description": "Snowflake for this recommendation, use when submitting recommendation events." + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/getTrendsSkeleton.json b/lexicons/app/bsky/unspecced/getTrendsSkeleton.json new file mode 100644 index 0000000000..d0b6272bb6 --- /dev/null +++ b/lexicons/app/bsky/unspecced/getTrendsSkeleton.json @@ -0,0 +1,42 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.getTrendsSkeleton", + "defs": { + "main": { + "type": "query", + "description": "Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bsky.unspecced.getTrends", + "parameters": { + "type": "params", + "properties": { + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries)." + }, + "limit": { + "type": "integer", + "minimum": 1, + "maximum": 25, + "default": 10 + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["trends"], + "properties": { + "trends": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.unspecced.defs#skeletonTrend" + } + } + } + } + } + } + } +} diff --git a/lexicons/app/bsky/unspecced/initAgeAssurance.json b/lexicons/app/bsky/unspecced/initAgeAssurance.json new file mode 100644 index 0000000000..236c07cf36 --- /dev/null +++ b/lexicons/app/bsky/unspecced/initAgeAssurance.json @@ -0,0 +1,49 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.initAgeAssurance", + "defs": { + "main": { + "type": "procedure", + "description": "Initiate age assurance for an account. This is a one-time action that will start the process of verifying the user's age.", + "input": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["email", "language", "countryCode"], + "properties": { + "email": { + "type": "string", + "description": "The user's email address to receive assurance instructions." + }, + "language": { + "type": "string", + "description": "The user's preferred language for communication during the assurance process." + }, + "countryCode": { + "type": "string", + "description": "An ISO 3166-1 alpha-2 code of the user's location." + } + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "ref", + "ref": "app.bsky.unspecced.defs#ageAssuranceState" + } + }, + "errors": [ + { + "name": "InvalidEmail" + }, + { + "name": "DidTooLong" + }, + { + "name": "InvalidInitiation" + } + ] + } + } +} diff --git a/lexicons/app/bsky/unspecced/searchActorsSkeleton.json b/lexicons/app/bsky/unspecced/searchActorsSkeleton.json new file mode 100644 index 0000000000..71784336a3 --- /dev/null +++ b/lexicons/app/bsky/unspecced/searchActorsSkeleton.json @@ -0,0 +1,67 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.searchActorsSkeleton", + "defs": { + "main": { + "type": "query", + "description": "Backend Actors (profile) search, returns 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." + }, + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking." + }, + "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": "app.bsky.unspecced.defs#skeletonSearchActor" + } + } + } + } + }, + "errors": [ + { + "name": "BadQueryString" + } + ] + } + } +} diff --git a/lexicons/app/bsky/unspecced/searchPostsSkeleton.json b/lexicons/app/bsky/unspecced/searchPostsSkeleton.json new file mode 100644 index 0000000000..63c3cf4858 --- /dev/null +++ b/lexicons/app/bsky/unspecced/searchPostsSkeleton.json @@ -0,0 +1,110 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.searchPostsSkeleton", + "defs": { + "main": { + "type": "query", + "description": "Backend Posts search, returns 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." + }, + "sort": { + "type": "string", + "knownValues": ["top", "latest"], + "default": "latest", + "description": "Specifies the ranking order of results." + }, + "since": { + "type": "string", + "description": "Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD)." + }, + "until": { + "type": "string", + "description": "Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD)." + }, + "mentions": { + "type": "string", + "format": "at-identifier", + "description": "Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions." + }, + "author": { + "type": "string", + "format": "at-identifier", + "description": "Filter to posts by the given account. Handles are resolved to DID before query-time." + }, + "lang": { + "type": "string", + "format": "language", + "description": "Filter to posts in the given language. Expected to be based on post language field, though server may override language detection." + }, + "domain": { + "type": "string", + "description": "Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization." + }, + "url": { + "type": "string", + "format": "uri", + "description": "Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching." + }, + "tag": { + "type": "array", + "items": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "description": "Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching." + }, + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries." + }, + "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": "app.bsky.unspecced.defs#skeletonSearchPost" + } + } + } + } + }, + "errors": [ + { + "name": "BadQueryString" + } + ] + } + } +} diff --git a/lexicons/app/bsky/unspecced/searchStarterPacksSkeleton.json b/lexicons/app/bsky/unspecced/searchStarterPacksSkeleton.json new file mode 100644 index 0000000000..80c1b88179 --- /dev/null +++ b/lexicons/app/bsky/unspecced/searchStarterPacksSkeleton.json @@ -0,0 +1,63 @@ +{ + "lexicon": 1, + "id": "app.bsky.unspecced.searchStarterPacksSkeleton", + "defs": { + "main": { + "type": "query", + "description": "Backend Starter Pack search, returns 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." + }, + "viewer": { + "type": "string", + "format": "did", + "description": "DID of the account making the request (not included for public/unauthenticated queries)." + }, + "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": ["starterPacks"], + "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." + }, + "starterPacks": { + "type": "array", + "items": { + "type": "ref", + "ref": "app.bsky.unspecced.defs#skeletonSearchStarterPack" + } + } + } + } + }, + "errors": [ + { + "name": "BadQueryString" + } + ] + } + } +} diff --git a/lexicons/app/bsky/video/defs.json b/lexicons/app/bsky/video/defs.json new file mode 100644 index 0000000000..d7c5ef0f90 --- /dev/null +++ b/lexicons/app/bsky/video/defs.json @@ -0,0 +1,47 @@ +{ + "id": "app.bsky.video.defs", + "defs": { + "jobStatus": { + "type": "object", + "required": [ + "jobId", + "did", + "state" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "blob": { + "type": "blob" + }, + "error": { + "type": "string" + }, + "jobId": { + "type": "string" + }, + "state": { + "type": "string", + "description": "The state of the video processing job. All values not listed as a known value indicate that the job is in process.", + "knownValues": [ + "JOB_STATE_COMPLETED", + "JOB_STATE_FAILED" + ] + }, + "message": { + "type": "string" + }, + "progress": { + "type": "integer", + "maximum": 100, + "minimum": 0, + "description": "Progress within the current processing state." + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/video/getJobStatus.json b/lexicons/app/bsky/video/getJobStatus.json new file mode 100644 index 0000000000..7fb3ae4a46 --- /dev/null +++ b/lexicons/app/bsky/video/getJobStatus.json @@ -0,0 +1,37 @@ +{ + "id": "app.bsky.video.getJobStatus", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "jobStatus" + ], + "properties": { + "jobStatus": { + "ref": "app.bsky.video.defs#jobStatus", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "jobId" + ], + "properties": { + "jobId": { + "type": "string" + } + } + }, + "description": "Get status details for a video processing job." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/video/getUploadLimits.json b/lexicons/app/bsky/video/getUploadLimits.json new file mode 100644 index 0000000000..fdc11082ec --- /dev/null +++ b/lexicons/app/bsky/video/getUploadLimits.json @@ -0,0 +1,37 @@ +{ + "id": "app.bsky.video.getUploadLimits", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "canUpload" + ], + "properties": { + "error": { + "type": "string" + }, + "message": { + "type": "string" + }, + "canUpload": { + "type": "boolean" + }, + "remainingDailyBytes": { + "type": "integer" + }, + "remainingDailyVideos": { + "type": "integer" + } + } + }, + "encoding": "application/json" + }, + "description": "Get video upload limits for the authenticated user." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/app/bsky/video/uploadVideo.json b/lexicons/app/bsky/video/uploadVideo.json new file mode 100644 index 0000000000..01330b1b9a --- /dev/null +++ b/lexicons/app/bsky/video/uploadVideo.json @@ -0,0 +1,29 @@ +{ + "id": "app.bsky.video.uploadVideo", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "video/mp4" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "jobStatus" + ], + "properties": { + "jobStatus": { + "ref": "app.bsky.video.defs#jobStatus", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Upload a video to be processed then stored on the PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/actor/declaration.json b/lexicons/chat/bsky/actor/declaration.json new file mode 100644 index 0000000000..de04440ac7 --- /dev/null +++ b/lexicons/chat/bsky/actor/declaration.json @@ -0,0 +1,37 @@ +{ + "id": "chat.bsky.actor.declaration", + "defs": { + "main": { + "key": "literal:self", + "type": "record", + "record": { + "type": "object", + "required": [ + "allowIncoming" + ], + "properties": { + "allowIncoming": { + "type": "string", + "knownValues": [ + "all", + "none", + "following" + ] + }, + "allowGroupInvites": { + "type": "string", + "description": "Declaration about group chat invitation preferences for the record owner.", + "knownValues": [ + "all", + "none", + "following" + ] + } + } + }, + "description": "A declaration of a Bluesky chat account." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/actor/defs.json b/lexicons/chat/bsky/actor/defs.json new file mode 100644 index 0000000000..87b18d714b --- /dev/null +++ b/lexicons/chat/bsky/actor/defs.json @@ -0,0 +1,105 @@ +{ + "id": "chat.bsky.actor.defs", + "defs": { + "memberRole": { + "type": "string", + "knownValues": [ + "owner", + "standard" + ] + }, + "groupConvoMember": { + "type": "object", + "required": [ + "role" + ], + "properties": { + "role": { + "ref": "#memberRole", + "type": "ref", + "description": "The member's role within this conversation. Only present in group conversation member lists." + }, + "addedBy": { + "ref": "#profileViewBasic", + "type": "ref", + "description": "Who added this member. Only present if the member was added (instead of joining via link)." + } + }, + "description": "A current group convo member." + }, + "profileViewBasic": { + "type": "object", + "required": [ + "did", + "handle" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "kind": { + "refs": [ + "#directConvoMember", + "#groupConvoMember", + "#pastGroupConvoMember" + ], + "type": "union", + "description": "Union field that has data specific to different kinds of convos." + }, + "avatar": { + "type": "string", + "format": "uri" + }, + "handle": { + "type": "string", + "format": "handle" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + }, + "viewer": { + "ref": "app.bsky.actor.defs#viewerState", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "associated": { + "ref": "app.bsky.actor.defs#profileAssociated", + "type": "ref" + }, + "displayName": { + "type": "string", + "maxLength": 640, + "maxGraphemes": 64 + }, + "chatDisabled": { + "type": "boolean", + "description": "Set to true when the actor cannot actively participate in conversations" + }, + "verification": { + "ref": "app.bsky.actor.defs#verificationState", + "type": "ref" + } + } + }, + "directConvoMember": { + "type": "object", + "properties": {} + }, + "pastGroupConvoMember": { + "type": "object", + "required": [], + "properties": {}, + "description": "A past group convo member." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/actor/deleteAccount.json b/lexicons/chat/bsky/actor/deleteAccount.json new file mode 100644 index 0000000000..f8955411db --- /dev/null +++ b/lexicons/chat/bsky/actor/deleteAccount.json @@ -0,0 +1,17 @@ +{ + "id": "chat.bsky.actor.deleteAccount", + "defs": { + "main": { + "type": "procedure", + "output": { + "schema": { + "type": "object", + "properties": {} + }, + "encoding": "application/json" + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/actor/exportAccountData.json b/lexicons/chat/bsky/actor/exportAccountData.json new file mode 100644 index 0000000000..dd8b9bfdda --- /dev/null +++ b/lexicons/chat/bsky/actor/exportAccountData.json @@ -0,0 +1,13 @@ +{ + "id": "chat.bsky.actor.exportAccountData", + "defs": { + "main": { + "type": "query", + "output": { + "encoding": "application/jsonl" + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/actor/getStatus.json b/lexicons/chat/bsky/actor/getStatus.json new file mode 100644 index 0000000000..4e1311a97b --- /dev/null +++ b/lexicons/chat/bsky/actor/getStatus.json @@ -0,0 +1,36 @@ +{ + "id": "chat.bsky.actor.getStatus", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "chatDisabled", + "canCreateGroups", + "groupMemberLimit" + ], + "properties": { + "chatDisabled": { + "type": "boolean", + "description": "True when the viewer's account is disabled and cannot actively participate in chat." + }, + "canCreateGroups": { + "type": "boolean", + "description": "Whether the viewer's account is allowed to create group chats. New accounts are restricted from creating groups." + }, + "groupMemberLimit": { + "type": "integer", + "description": "The maximum number of members allowed in a group conversation." + } + } + }, + "encoding": "application/json" + }, + "description": "Get the authenticated viewer's chat status: whether their account is chat-disabled and whether their group-membership additions are restricted to accounts they follow." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/authFullChatClient.json b/lexicons/chat/bsky/authFullChatClient.json new file mode 100644 index 0000000000..5ab19031fe --- /dev/null +++ b/lexicons/chat/bsky/authFullChatClient.json @@ -0,0 +1,76 @@ +{ + "id": "chat.bsky.authFullChatClient", + "defs": { + "main": { + "type": "permission-set", + "title": "Full Chat Client (All Conversations)", + "detail": "Control of all chat conversations and configuration management.", + "title:lang": {}, + "detail:lang": { + "en": "All Chat Conversations" + }, + "permissions": [ + { + "lxm": [ + "chat.bsky.actor.deleteAccount", + "chat.bsky.actor.getStatus", + "chat.bsky.convo.acceptConvo", + "chat.bsky.convo.addReaction", + "chat.bsky.convo.deleteMessageForSelf", + "chat.bsky.convo.exportAccountData", + "chat.bsky.convo.getConvo", + "chat.bsky.convo.getConvoAvailability", + "chat.bsky.convo.getConvoForMembers", + "chat.bsky.convo.getConvoMembers", + "chat.bsky.convo.getLog", + "chat.bsky.convo.getMessages", + "chat.bsky.convo.leaveConvo", + "chat.bsky.convo.listConvoRequests", + "chat.bsky.convo.listConvos", + "chat.bsky.convo.lockConvo", + "chat.bsky.convo.muteConvo", + "chat.bsky.convo.removeReaction", + "chat.bsky.convo.sendMessage", + "chat.bsky.convo.sendMessageBatch", + "chat.bsky.convo.unlockConvo", + "chat.bsky.convo.unmuteConvo", + "chat.bsky.convo.updateAllRead", + "chat.bsky.convo.updateRead", + "chat.bsky.group.addMembers", + "chat.bsky.group.approveJoinRequest", + "chat.bsky.group.createGroup", + "chat.bsky.group.createJoinLink", + "chat.bsky.group.disableJoinLink", + "chat.bsky.group.editGroup", + "chat.bsky.group.editJoinLink", + "chat.bsky.group.enableJoinLink", + "chat.bsky.group.getJoinLinkPreviews", + "chat.bsky.group.listJoinRequests", + "chat.bsky.group.listMutualGroups", + "chat.bsky.group.rejectJoinRequest", + "chat.bsky.group.removeMembers", + "chat.bsky.group.requestJoin", + "chat.bsky.group.withdrawJoinRequest" + ], + "type": "permission", + "resource": "rpc", + "inheritAud": true + }, + { + "type": "permission", + "action": [ + "create", + "update", + "delete" + ], + "resource": "repo", + "collection": [ + "chat.bsky.actor.declaration" + ] + } + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/acceptConvo.json b/lexicons/chat/bsky/convo/acceptConvo.json new file mode 100644 index 0000000000..bafc162b11 --- /dev/null +++ b/lexicons/chat/bsky/convo/acceptConvo.json @@ -0,0 +1,42 @@ +{ + "id": "chat.bsky.convo.acceptConvo", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "properties": { + "rev": { + "type": "string", + "description": "Rev when the convo was accepted. If not present, the convo was already accepted." + } + } + }, + "encoding": "application/json" + }, + "description": "Marks a conversation as accepted, so it is shown in the list of accepted convos instead on the request convos." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/addReaction.json b/lexicons/chat/bsky/convo/addReaction.json new file mode 100644 index 0000000000..7f317c84a9 --- /dev/null +++ b/lexicons/chat/bsky/convo/addReaction.json @@ -0,0 +1,73 @@ +{ + "id": "chat.bsky.convo.addReaction", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "messageId", + "value" + ], + "properties": { + "value": { + "type": "string", + "maxLength": 64, + "minLength": 1, + "maxGraphemes": 1, + "minGraphemes": 1 + }, + "convoId": { + "type": "string" + }, + "messageId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "ReactionNotAllowed", + "description": "Indicates that reactions are not allowed on this message, e.g. because it is a system message." + }, + { + "name": "ReactionMessageDeleted", + "description": "Indicates that the message has been deleted and reactions can no longer be added/removed." + }, + { + "name": "ReactionLimitReached", + "description": "Indicates that the message has the maximum number of reactions allowed for a single user, and the requested reaction wasn't yet present. If it was already present, the request will not fail since it is idempotent." + }, + { + "name": "ReactionInvalidValue", + "description": "Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "message" + ], + "properties": { + "message": { + "ref": "chat.bsky.convo.defs#messageView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/defs.json b/lexicons/chat/bsky/convo/defs.json new file mode 100644 index 0000000000..eecef5ac5c --- /dev/null +++ b/lexicons/chat/bsky/convo/defs.json @@ -0,0 +1,1312 @@ +{ + "id": "chat.bsky.convo.defs", + "defs": { + "convoRef": { + "type": "object", + "required": [ + "did", + "convoId" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "convoId": { + "type": "string" + } + } + }, + "replyRef": { + "type": "object", + "required": [ + "messageId" + ], + "properties": { + "messageId": { + "type": "string" + } + }, + "description": "A reference to another message within the same convo, used to indicate that a message is a reply to it." + }, + "convoKind": { + "type": "string", + "knownValues": [ + "direct", + "group" + ] + }, + "convoView": { + "type": "object", + "required": [ + "id", + "rev", + "members", + "muted", + "unreadCount" + ], + "properties": { + "id": { + "type": "string" + }, + "rev": { + "type": "string" + }, + "kind": { + "refs": [ + "#directConvo", + "#groupConvo" + ], + "type": "union", + "description": "Union field that has data specific to different kinds of convos." + }, + "muted": { + "type": "boolean" + }, + "status": { + "ref": "#convoStatus", + "type": "ref", + "description": "Convo status for the viewer member (not the convo itself)." + }, + "members": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Members of this conversation. For direct convos, it will be an immutable list of the 2 members. For group convos, it will a list of important members (the first few members, the viewer, the member who added the viewer, the member who sent the last message, the member who sent the last reaction), but will not contain the full list of members. Use chat.bsky.convo.getConvoMembers to list all members." + }, + "lastMessage": { + "refs": [ + "#messageView", + "#deletedMessageView", + "#systemMessageView" + ], + "type": "union" + }, + "unreadCount": { + "type": "integer" + }, + "lastReaction": { + "refs": [ + "#messageAndReactionView" + ], + "type": "union" + } + } + }, + "groupConvo": { + "type": "object", + "required": [ + "createdAt", + "lockStatus", + "lockStatusModerationOverride", + "memberCount", + "memberLimit", + "name" + ], + "properties": { + "name": { + "type": "string", + "maxLength": 500, + "description": "The display name of the group conversation.", + "maxGraphemes": 50 + }, + "joinLink": { + "ref": "chat.bsky.group.defs#joinLinkView", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "lockStatus": { + "ref": "#convoLockStatus", + "type": "ref", + "description": "The lock status of the conversation." + }, + "memberCount": { + "type": "integer", + "description": "The total number of members in the group conversation." + }, + "memberLimit": { + "type": "integer", + "description": "The maximum number of members allowed in the group conversation." + }, + "joinRequestCount": { + "type": "integer", + "description": "The total number of pending join requests for the group conversation. Only present for the owner. Capped at 21." + }, + "unreadJoinRequestCount": { + "type": "integer", + "description": "The number of unread join requests for the group conversation. Only present for the owner." + }, + "lockStatusModerationOverride": { + "type": "boolean", + "description": "Whether the lock status is being forced by a moderation override (account inactivation or convo takedown) rather than the owner's own setting." + } + } + }, + "messageRef": { + "type": "object", + "required": [ + "did", + "messageId", + "convoId" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "convoId": { + "type": "string" + }, + "messageId": { + "type": "string" + } + } + }, + "convoStatus": { + "type": "string", + "knownValues": [ + "request", + "accepted" + ] + }, + "directConvo": { + "type": "object", + "properties": {} + }, + "messageView": { + "type": "object", + "required": [ + "id", + "rev", + "text", + "sender", + "sentAt" + ], + "properties": { + "id": { + "type": "string" + }, + "rev": { + "type": "string" + }, + "text": { + "type": "string", + "maxLength": 10000, + "maxGraphemes": 1000 + }, + "embed": { + "refs": [ + "app.bsky.embed.record#view", + "chat.bsky.embed.joinLink#view" + ], + "type": "union" + }, + "facets": { + "type": "array", + "items": { + "ref": "app.bsky.richtext.facet", + "type": "ref" + }, + "description": "Annotations of text (mentions, URLs, hashtags, etc)" + }, + "sender": { + "ref": "#messageViewSender", + "type": "ref" + }, + "sentAt": { + "type": "string", + "format": "datetime" + }, + "replyTo": { + "refs": [ + "#messageView", + "#deletedMessageView", + "#messageBeforeUserJoinedGroupView" + ], + "type": "union", + "description": "If set, the message this message is replying to. The full view of the referenced message is embedded so the client can render it inline. Only a single level is embedded: the embedded message will not itself have a populated 'replyTo' field even if it was also a reply." + }, + "reactions": { + "type": "array", + "items": { + "ref": "#reactionView", + "type": "ref" + }, + "description": "Reactions to this message, in ascending order of creation time." + } + } + }, + "logAddMember": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "relatedProfiles" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataAddMember" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the system message." + } + }, + "description": "Event indicating a member was added to a group convo. The member who was added gets a logBeginConvo (to create the convo) but also a logAddMember (to show the system message as the first message the user sees)." + }, + "logEditGroup": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataEditGroup" + } + }, + "description": "Event indicating info about group convo was edited." + }, + "logLockConvo": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "relatedProfiles" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataLockConvo" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the system message." + } + }, + "description": "Event indicating a group convo was locked." + }, + "logMuteConvo": { + "type": "object", + "required": [ + "rev", + "convoId" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating the viewer muted a convo. Can be direct or group." + }, + "logReadConvo": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "refs": [ + "#messageView", + "#deletedMessageView", + "#systemMessageView" + ], + "type": "union" + } + }, + "description": "Event indicating a convo was read up to a certain message." + }, + "messageInput": { + "type": "object", + "required": [ + "text" + ], + "properties": { + "text": { + "type": "string", + "maxLength": 10000, + "maxGraphemes": 1000 + }, + "embed": { + "refs": [ + "app.bsky.embed.record", + "chat.bsky.embed.joinLink" + ], + "type": "union" + }, + "facets": { + "type": "array", + "items": { + "ref": "app.bsky.richtext.facet", + "type": "ref" + }, + "description": "Annotations of text (mentions, URLs, hashtags, etc)" + }, + "replyTo": { + "ref": "#replyRef", + "type": "ref", + "description": "If set, the message this message is replying to. The referenced message must be in the same convo." + } + } + }, + "reactionView": { + "type": "object", + "required": [ + "value", + "sender", + "createdAt" + ], + "properties": { + "value": { + "type": "string" + }, + "sender": { + "ref": "#reactionViewSender", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + } + }, + "logBeginConvo": { + "type": "object", + "required": [ + "rev", + "convoId" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating a convo containing the viewer was started. Can be direct or group. When a member is added to a group convo, they also get this event." + }, + "logLeaveConvo": { + "type": "object", + "required": [ + "rev", + "convoId" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating the viewer left a convo. Can be direct or group." + }, + "logMemberJoin": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "relatedProfiles" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataMemberJoin" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the system message." + } + }, + "description": "Event indicating a member joined a group convo via join link. The member who was added gets a logBeginConvo (to create the convo) but also a logMemberJoin (to show the system message as the first message the user sees)." + }, + "logAcceptConvo": { + "type": "object", + "required": [ + "rev", + "convoId" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating the viewer accepted a convo, and it can be moved out of the request inbox. Can be direct or group." + }, + "logAddReaction": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "reaction" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "refs": [ + "#messageView", + "#deletedMessageView" + ], + "type": "union" + }, + "reaction": { + "ref": "#reactionView", + "type": "ref" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present." + } + }, + "description": "Event indicating a reaction was added to a message." + }, + "logMemberLeave": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "relatedProfiles" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataMemberLeave" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the system message." + } + }, + "description": "Event indicating a member voluntarily left a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logMemberLeave (because they already left, so can't see the system message)." + }, + "logReadMessage": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "refs": [ + "#messageView", + "#deletedMessageView", + "#systemMessageView" + ], + "type": "union" + } + }, + "description": "DEPRECATED: use logReadConvo instead. Event indicating a convo was read up to a certain message." + }, + "logUnlockConvo": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "relatedProfiles" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataUnlockConvo" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the system message." + } + }, + "description": "Event indicating a group convo was unlocked." + }, + "logUnmuteConvo": { + "type": "object", + "required": [ + "rev", + "convoId" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating the viewer unmuted a convo. Can be direct or group." + }, + "convoLockStatus": { + "type": "string", + "knownValues": [ + "unlocked", + "locked", + "locked-permanently" + ] + }, + "logEditJoinLink": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataEditJoinLink" + } + }, + "description": "Event indicating a settings about a join link for a group convo were edited." + }, + "logRemoveMember": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "relatedProfiles" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataRemoveMember" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the system message." + } + }, + "description": "Event indicating a member was removed from a group convo. The member who was removed gets a logLeaveConvo (to leave the convo) but not a logRemoveMember (because they already left, so can't see the system message)." + }, + "logCreateMessage": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "refs": [ + "#messageView", + "#deletedMessageView" + ], + "type": "union" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred to in the message view. This isn't required for compatibility, because it was added later, but should generally be present." + } + }, + "description": "Event indicating a user-originated message was created. Is not emitted for system messages." + }, + "logDeleteMessage": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "refs": [ + "#messageView", + "#deletedMessageView" + ], + "type": "union" + } + }, + "description": "Event indicating a user-originated message was deleted. Is not emitted for system messages." + }, + "logCreateJoinLink": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataCreateJoinLink" + } + }, + "description": "Event indicating a join link was created for a group convo." + }, + "logEnableJoinLink": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataEnableJoinLink" + } + }, + "description": "Event indicating a join link was enabled for a group convo." + }, + "logRemoveReaction": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "reaction" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "refs": [ + "#messageView", + "#deletedMessageView" + ], + "type": "union" + }, + "reaction": { + "ref": "#reactionView", + "type": "ref" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the message and reaction views. This isn't required for compatibility, because it was added later, but should generally be present." + } + }, + "description": "Event indicating a reaction was removed from a message." + }, + "messageViewSender": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + }, + "systemMessageView": { + "type": "object", + "required": [ + "id", + "rev", + "sentAt", + "data" + ], + "properties": { + "id": { + "type": "string" + }, + "rev": { + "type": "string" + }, + "data": { + "refs": [ + "#systemMessageDataAddMember", + "#systemMessageDataRemoveMember", + "#systemMessageDataMemberJoin", + "#systemMessageDataMemberLeave", + "#systemMessageDataLockConvo", + "#systemMessageDataUnlockConvo", + "#systemMessageDataLockConvoPermanently", + "#systemMessageDataEditGroup", + "#systemMessageDataCreateJoinLink", + "#systemMessageDataEditJoinLink", + "#systemMessageDataEnableJoinLink", + "#systemMessageDataDisableJoinLink" + ], + "type": "union" + }, + "sentAt": { + "type": "string", + "format": "datetime" + } + } + }, + "deletedMessageView": { + "type": "object", + "required": [ + "id", + "rev", + "sender", + "sentAt" + ], + "properties": { + "id": { + "type": "string" + }, + "rev": { + "type": "string" + }, + "sender": { + "ref": "#messageViewSender", + "type": "ref" + }, + "sentAt": { + "type": "string", + "format": "datetime" + } + } + }, + "logDisableJoinLink": { + "type": "object", + "required": [ + "rev", + "convoId", + "message" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataDisableJoinLink" + } + }, + "description": "Event indicating a join link was disabled for a group convo." + }, + "reactionViewSender": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + }, + "logReadJoinRequests": { + "type": "object", + "required": [ + "rev", + "convoId" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating the group owner marked join requests as read. Only the owner gets this." + }, + "logRejectJoinRequest": { + "type": "object", + "required": [ + "rev", + "convoId", + "member" + ], + "properties": { + "rev": { + "type": "string" + }, + "member": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref", + "description": "Prospective member who requested to join." + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating a join request was rejected by the viewer. Only the owner gets this." + }, + "logApproveJoinRequest": { + "type": "object", + "required": [ + "rev", + "convoId", + "member" + ], + "properties": { + "rev": { + "type": "string" + }, + "member": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref", + "description": "Prospective member who requested to join." + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating a join request was approved by the viewer. Only the owner gets this. The approved member gets a logBeginConvo." + }, + "logIncomingJoinRequest": { + "type": "object", + "required": [ + "rev", + "convoId", + "member" + ], + "properties": { + "rev": { + "type": "string" + }, + "member": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref", + "description": "Prospective member who requested to join." + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating a join request was made to a group the viewer owns. Only the owner gets this." + }, + "logOutgoingJoinRequest": { + "type": "object", + "required": [ + "rev", + "convoId" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating a join request was made by the requester. Only requester actor gets this." + }, + "messageAndReactionView": { + "type": "object", + "required": [ + "message", + "reaction" + ], + "properties": { + "message": { + "ref": "#messageView", + "type": "ref" + }, + "reaction": { + "ref": "#reactionView", + "type": "ref" + } + } + }, + "logLockConvoPermanently": { + "type": "object", + "required": [ + "rev", + "convoId", + "message", + "relatedProfiles" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "message": { + "ref": "#systemMessageView", + "type": "ref", + "description": "A system message with data of type #systemMessageDataLockConvoPermanently" + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Profiles referred in the system message." + } + }, + "description": "Event indicating a group convo was locked permanently." + }, + "systemMessageReferredUser": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + }, + "systemMessageDataAddMember": { + "type": "object", + "required": [ + "member", + "role", + "addedBy" + ], + "properties": { + "role": { + "ref": "chat.bsky.actor.defs#memberRole", + "type": "ref", + "description": "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical." + }, + "member": { + "ref": "#systemMessageReferredUser", + "type": "ref", + "description": "Current view of the member who was added." + }, + "addedBy": { + "ref": "#systemMessageReferredUser", + "type": "ref" + } + }, + "description": "System message indicating a user was added to the group convo." + }, + "systemMessageDataEditGroup": { + "type": "object", + "properties": { + "newName": { + "type": "string", + "description": "Group name that replaced the old." + }, + "oldName": { + "type": "string", + "description": "Group name that was replaced." + } + }, + "description": "System message indicating the group info was edited." + }, + "systemMessageDataLockConvo": { + "type": "object", + "required": [ + "lockedBy" + ], + "properties": { + "lockedBy": { + "ref": "#systemMessageReferredUser", + "type": "ref", + "description": "Current view of the member who locked the group." + } + }, + "description": "System message indicating the group convo was locked." + }, + "systemMessageDataMemberJoin": { + "type": "object", + "required": [ + "member", + "role" + ], + "properties": { + "role": { + "ref": "chat.bsky.actor.defs#memberRole", + "type": "ref", + "description": "Role the user was added to the group with. The role from 'member' will reflect the current data, not historical." + }, + "member": { + "ref": "#systemMessageReferredUser", + "type": "ref", + "description": "Current view of the member who joined." + }, + "approvedBy": { + "ref": "#systemMessageReferredUser", + "type": "ref", + "description": "If join link was configured to require approval, this will be set to who approved the request. Undefined if approval was not required." + } + }, + "description": "System message indicating a user joined the group convo via join link." + }, + "systemMessageDataMemberLeave": { + "type": "object", + "required": [ + "member" + ], + "properties": { + "member": { + "ref": "#systemMessageReferredUser", + "type": "ref", + "description": "Current view of the member who left the group." + } + }, + "description": "System message indicating a user voluntarily left the group convo." + }, + "systemMessageDataUnlockConvo": { + "type": "object", + "required": [ + "unlockedBy" + ], + "properties": { + "unlockedBy": { + "ref": "#systemMessageReferredUser", + "type": "ref", + "description": "Current view of the member who unlocked the group." + } + }, + "description": "System message indicating the group convo was unlocked." + }, + "systemMessageDataEditJoinLink": { + "type": "object", + "properties": {}, + "description": "System message indicating the group join link was edited." + }, + "systemMessageDataRemoveMember": { + "type": "object", + "required": [ + "member", + "removedBy" + ], + "properties": { + "member": { + "ref": "#systemMessageReferredUser", + "type": "ref", + "description": "Current view of the member who was removed." + }, + "removedBy": { + "ref": "#systemMessageReferredUser", + "type": "ref" + } + }, + "description": "System message indicating a user was removed from the group convo." + }, + "logWithdrawIncomingJoinRequest": { + "type": "object", + "required": [ + "rev", + "convoId", + "member" + ], + "properties": { + "rev": { + "type": "string" + }, + "member": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref", + "description": "Prospective member who withdrew their join request." + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating a prospective member withdrew their join request. Only the owner gets this." + }, + "logWithdrawOutgoingJoinRequest": { + "type": "object", + "required": [ + "rev", + "convoId" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + }, + "description": "Event indicating the viewer withdrew their own join request. Only requester actor gets this." + }, + "systemMessageDataCreateJoinLink": { + "type": "object", + "properties": {}, + "description": "System message indicating the group join link was created." + }, + "systemMessageDataEnableJoinLink": { + "type": "object", + "properties": {}, + "description": "System message indicating the group join link was enabled." + }, + "messageBeforeUserJoinedGroupView": { + "type": "object", + "properties": {}, + "description": "Placeholder embedded in place of a reply's parent message when that parent was sent before the viewer joined the group convo. The viewer has no access to that history, so no message data is carried." + }, + "systemMessageDataDisableJoinLink": { + "type": "object", + "properties": {}, + "description": "System message indicating the group join link was disabled." + }, + "systemMessageDataLockConvoPermanently": { + "type": "object", + "required": [ + "lockedBy" + ], + "properties": { + "lockedBy": { + "ref": "#systemMessageReferredUser", + "type": "ref", + "description": "Current view of the member who locked the group." + } + }, + "description": "System message indicating the group convo was locked permanently." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/deleteMessageForSelf.json b/lexicons/chat/bsky/convo/deleteMessageForSelf.json new file mode 100644 index 0000000000..39e4c109a0 --- /dev/null +++ b/lexicons/chat/bsky/convo/deleteMessageForSelf.json @@ -0,0 +1,45 @@ +{ + "id": "chat.bsky.convo.deleteMessageForSelf", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "messageId" + ], + "properties": { + "convoId": { + "type": "string" + }, + "messageId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "MessageDeleteNotAllowed", + "description": "Indicates that this message cannot be deleted, e.g. because it is a system message." + } + ], + "output": { + "schema": { + "ref": "chat.bsky.convo.defs#deletedMessageView", + "type": "ref" + }, + "encoding": "application/json" + }, + "description": "Marks a message as deleted for the viewer, so they won't see that message in future enumerations." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/exportAccountData.json b/lexicons/chat/bsky/convo/exportAccountData.json new file mode 100644 index 0000000000..4c2067a975 --- /dev/null +++ b/lexicons/chat/bsky/convo/exportAccountData.json @@ -0,0 +1,13 @@ +{ + "lexicon": 1, + "id": "chat.bsky.convo.exportAccountData", + "description": "Stub: chat.bsky.convo.exportAccountData is referenced in chat.bsky.authFullChatClient but the lexicon may have been renamed in the local repo.", + "defs": { + "main": { + "type": "query", + "output": { + "encoding": "application/jsonl" + } + } + } +} diff --git a/lexicons/chat/bsky/convo/getConvo.json b/lexicons/chat/bsky/convo/getConvo.json new file mode 100644 index 0000000000..cbe3b2684e --- /dev/null +++ b/lexicons/chat/bsky/convo/getConvo.json @@ -0,0 +1,42 @@ +{ + "id": "chat.bsky.convo.getConvo", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "description": "Gets an existing conversation by its ID." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/getConvoAvailability.json b/lexicons/chat/bsky/convo/getConvoAvailability.json new file mode 100644 index 0000000000..37c3c745cf --- /dev/null +++ b/lexicons/chat/bsky/convo/getConvoAvailability.json @@ -0,0 +1,46 @@ +{ + "id": "chat.bsky.convo.getConvoAvailability", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "canChat" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + }, + "canChat": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "members" + ], + "properties": { + "members": { + "type": "array", + "items": { + "type": "string", + "format": "did" + }, + "maxLength": 10, + "minLength": 1 + } + } + }, + "description": "Check whether the requester and the other members can start a 1-1 chat. Only applicable to direct (non-group) conversations. If an existing convo is found for these members, it is returned. Does not create a new convo if it doesn't exist." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/getConvoForMembers.json b/lexicons/chat/bsky/convo/getConvoForMembers.json new file mode 100644 index 0000000000..21c12ead32 --- /dev/null +++ b/lexicons/chat/bsky/convo/getConvoForMembers.json @@ -0,0 +1,63 @@ +{ + "id": "chat.bsky.convo.getConvoForMembers", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "AccountSuspended" + }, + { + "name": "BlockedActor" + }, + { + "name": "BlockedSubject" + }, + { + "name": "MessagesDisabled" + }, + { + "name": "NotFollowedBySender" + }, + { + "name": "RecipientNotFound" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "members" + ], + "properties": { + "members": { + "type": "array", + "items": { + "type": "string", + "format": "did" + }, + "maxLength": 10, + "minLength": 1 + } + } + }, + "description": "Get or create a 1-1 conversation for the given members. Always returns the same direct (non-group) conversation. To create a group conversation, use createGroup." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/getConvoMembers.json b/lexicons/chat/bsky/convo/getConvoMembers.json new file mode 100644 index 0000000000..0e89f0e916 --- /dev/null +++ b/lexicons/chat/bsky/convo/getConvoMembers.json @@ -0,0 +1,57 @@ +{ + "id": "chat.bsky.convo.getConvoMembers", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "members" + ], + "properties": { + "cursor": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "convoId" + ], + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "convoId": { + "type": "string" + } + } + }, + "description": "Returns a paginated list of members from a conversation." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/getLog.json b/lexicons/chat/bsky/convo/getLog.json new file mode 100644 index 0000000000..42c738d46d --- /dev/null +++ b/lexicons/chat/bsky/convo/getLog.json @@ -0,0 +1,71 @@ +{ + "id": "chat.bsky.convo.getLog", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "logs" + ], + "properties": { + "logs": { + "type": "array", + "items": { + "refs": [ + "chat.bsky.convo.defs#logBeginConvo", + "chat.bsky.convo.defs#logAcceptConvo", + "chat.bsky.convo.defs#logLeaveConvo", + "chat.bsky.convo.defs#logMuteConvo", + "chat.bsky.convo.defs#logUnmuteConvo", + "chat.bsky.convo.defs#logCreateMessage", + "chat.bsky.convo.defs#logDeleteMessage", + "chat.bsky.convo.defs#logReadMessage", + "chat.bsky.convo.defs#logAddReaction", + "chat.bsky.convo.defs#logRemoveReaction", + "chat.bsky.convo.defs#logReadConvo", + "chat.bsky.convo.defs#logAddMember", + "chat.bsky.convo.defs#logRemoveMember", + "chat.bsky.convo.defs#logMemberJoin", + "chat.bsky.convo.defs#logMemberLeave", + "chat.bsky.convo.defs#logLockConvo", + "chat.bsky.convo.defs#logUnlockConvo", + "chat.bsky.convo.defs#logLockConvoPermanently", + "chat.bsky.convo.defs#logEditGroup", + "chat.bsky.convo.defs#logCreateJoinLink", + "chat.bsky.convo.defs#logEditJoinLink", + "chat.bsky.convo.defs#logEnableJoinLink", + "chat.bsky.convo.defs#logDisableJoinLink", + "chat.bsky.convo.defs#logIncomingJoinRequest", + "chat.bsky.convo.defs#logApproveJoinRequest", + "chat.bsky.convo.defs#logRejectJoinRequest", + "chat.bsky.convo.defs#logOutgoingJoinRequest", + "chat.bsky.convo.defs#logWithdrawIncomingJoinRequest", + "chat.bsky.convo.defs#logWithdrawOutgoingJoinRequest", + "chat.bsky.convo.defs#logReadJoinRequests" + ], + "type": "union" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [], + "properties": { + "cursor": { + "type": "string" + } + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/getMessages.json b/lexicons/chat/bsky/convo/getMessages.json new file mode 100644 index 0000000000..b157290de8 --- /dev/null +++ b/lexicons/chat/bsky/convo/getMessages.json @@ -0,0 +1,69 @@ +{ + "id": "chat.bsky.convo.getMessages", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "messages" + ], + "properties": { + "cursor": { + "type": "string" + }, + "messages": { + "type": "array", + "items": { + "refs": [ + "chat.bsky.convo.defs#messageView", + "chat.bsky.convo.defs#deletedMessageView", + "chat.bsky.convo.defs#systemMessageView" + ], + "type": "union" + } + }, + "relatedProfiles": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "description": "Set of all members who authored or reacted to the returned messages. Members referred to by system messages are also included." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "convoId" + ], + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "convoId": { + "type": "string" + } + } + }, + "description": "Returns a page of messages from a conversation." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/getUnreadCounts.json b/lexicons/chat/bsky/convo/getUnreadCounts.json new file mode 100644 index 0000000000..ddfe955a2b --- /dev/null +++ b/lexicons/chat/bsky/convo/getUnreadCounts.json @@ -0,0 +1,41 @@ +{ + "id": "chat.bsky.convo.getUnreadCounts", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "unreadAcceptedConvos", + "unreadRequestConvos" + ], + "properties": { + "unreadRequestConvos": { + "type": "integer", + "description": "Number of unread, unlocked request convos. Includes convos with unread messages, but not with unread join request, since only the owner of a group has join requests to read, and the group would necessarily be accepted. Capped at 100, where 100 means more than 99." + }, + "unreadAcceptedConvos": { + "type": "integer", + "description": "Number of unread, unlocked accepted convos. Counts convos with unread messages and unread join requests. Capped at 100, where 100 means more than 99." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "includeGroupChats": { + "type": "boolean", + "default": true, + "description": "When false, group convos are excluded from the counts." + } + } + }, + "description": "Returns unread conversation counts for conversations that are unlocked, not muted, split by convo status. Direct convos are excluded when a block relationship exists between the actor and the other member, or when the other member's account is deleted or deactivated. Group convos are considered unread if they have unread join request counts." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/leaveConvo.json b/lexicons/chat/bsky/convo/leaveConvo.json new file mode 100644 index 0000000000..b1e74ca2d2 --- /dev/null +++ b/lexicons/chat/bsky/convo/leaveConvo.json @@ -0,0 +1,52 @@ +{ + "id": "chat.bsky.convo.leaveConvo", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "OwnerCannotLeave", + "description": "The owner of a group conversation cannot leave before locking the group." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convoId", + "rev" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "description": "Leaves a conversation (direct or group). For group, this effectively removes membership. For direct, membership is never removed, only changed to remove from enumerations by the user who left." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/listConvoRequests.json b/lexicons/chat/bsky/convo/listConvoRequests.json new file mode 100644 index 0000000000..6be7fea5fc --- /dev/null +++ b/lexicons/chat/bsky/convo/listConvoRequests.json @@ -0,0 +1,49 @@ +{ + "id": "chat.bsky.convo.listConvoRequests", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "requests" + ], + "properties": { + "cursor": { + "type": "string" + }, + "requests": { + "type": "array", + "items": { + "refs": [ + "chat.bsky.convo.defs#convoView", + "chat.bsky.group.defs#joinRequestConvoView" + ], + "type": "union" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Returns a page of incoming conversation requests for the user. Direct convo requests are returned as convoView; group join requests made by the user are returned as joinRequestConvoView." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/listConvos.json b/lexicons/chat/bsky/convo/listConvos.json new file mode 100644 index 0000000000..2ac41d00b3 --- /dev/null +++ b/lexicons/chat/bsky/convo/listConvos.json @@ -0,0 +1,77 @@ +{ + "id": "chat.bsky.convo.listConvos", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "convos" + ], + "properties": { + "convos": { + "type": "array", + "items": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "kind": { + "type": "string", + "description": "Filter by conversation kind.", + "knownValues": [ + "direct", + "group" + ] + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "status": { + "type": "string", + "description": "Filter convos by their status. It is discouraged to call with \"request\" and preferred to call chat.bsky.convo.listConvoRequests, which also includes group join requests made by the user.", + "knownValues": [ + "request", + "accepted" + ] + }, + "readState": { + "type": "string", + "knownValues": [ + "unread" + ] + }, + "lockStatus": { + "type": "string", + "description": "Filter by conversation lock status. Values follow chat.bsky.convo.defs#convoLockStatus.", + "knownValues": [ + "unlocked", + "locked", + "locked-permanently" + ] + } + } + }, + "description": "Returns a page of conversations (direct or group) for the user." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/lockConvo.json b/lexicons/chat/bsky/convo/lockConvo.json new file mode 100644 index 0000000000..fb0177b0b6 --- /dev/null +++ b/lexicons/chat/bsky/convo/lockConvo.json @@ -0,0 +1,51 @@ +{ + "id": "chat.bsky.convo.lockConvo", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "ConvoLocked" + }, + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Locks a group convo so no more content (messages, reactions) can be added to it." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/muteConvo.json b/lexicons/chat/bsky/convo/muteConvo.json new file mode 100644 index 0000000000..091136aaf6 --- /dev/null +++ b/lexicons/chat/bsky/convo/muteConvo.json @@ -0,0 +1,45 @@ +{ + "id": "chat.bsky.convo.muteConvo", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Mutes a conversation, preventing notifications related to it." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/removeReaction.json b/lexicons/chat/bsky/convo/removeReaction.json new file mode 100644 index 0000000000..8bcdd28e21 --- /dev/null +++ b/lexicons/chat/bsky/convo/removeReaction.json @@ -0,0 +1,69 @@ +{ + "id": "chat.bsky.convo.removeReaction", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "messageId", + "value" + ], + "properties": { + "value": { + "type": "string", + "maxLength": 64, + "minLength": 1, + "maxGraphemes": 1, + "minGraphemes": 1 + }, + "convoId": { + "type": "string" + }, + "messageId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "ReactionNotAllowed", + "description": "Indicates that reactions are not allowed on this message, e.g. because it is a system message." + }, + { + "name": "ReactionMessageDeleted", + "description": "Indicates that the message has been deleted and reactions can no longer be added/removed." + }, + { + "name": "ReactionInvalidValue", + "description": "Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "message" + ], + "properties": { + "message": { + "ref": "chat.bsky.convo.defs#messageView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/sendMessage.json b/lexicons/chat/bsky/convo/sendMessage.json new file mode 100644 index 0000000000..612bc292ca --- /dev/null +++ b/lexicons/chat/bsky/convo/sendMessage.json @@ -0,0 +1,48 @@ +{ + "id": "chat.bsky.convo.sendMessage", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "message" + ], + "properties": { + "convoId": { + "type": "string" + }, + "message": { + "ref": "chat.bsky.convo.defs#messageInput", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "ConvoLocked" + }, + { + "name": "InvalidConvo" + }, + { + "name": "ReplyTargetNotFound" + } + ], + "output": { + "schema": { + "ref": "chat.bsky.convo.defs#messageView", + "type": "ref" + }, + "encoding": "application/json" + }, + "description": "Sends a message to a conversation." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/sendMessageBatch.json b/lexicons/chat/bsky/convo/sendMessageBatch.json new file mode 100644 index 0000000000..843443f167 --- /dev/null +++ b/lexicons/chat/bsky/convo/sendMessageBatch.json @@ -0,0 +1,75 @@ +{ + "id": "chat.bsky.convo.sendMessageBatch", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "ref": "#batchItem", + "type": "ref" + }, + "maxLength": 100 + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "ConvoLocked" + }, + { + "name": "InvalidConvo" + }, + { + "name": "ReplyTargetNotFound" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "items": { + "type": "array", + "items": { + "ref": "chat.bsky.convo.defs#messageView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "description": "Sends a batch of messages to a conversation." + }, + "batchItem": { + "type": "object", + "required": [ + "convoId", + "message" + ], + "properties": { + "convoId": { + "type": "string" + }, + "message": { + "ref": "chat.bsky.convo.defs#messageInput", + "type": "ref" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/unlockConvo.json b/lexicons/chat/bsky/convo/unlockConvo.json new file mode 100644 index 0000000000..83c3c8fe8a --- /dev/null +++ b/lexicons/chat/bsky/convo/unlockConvo.json @@ -0,0 +1,51 @@ +{ + "id": "chat.bsky.convo.unlockConvo", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + }, + { + "name": "ConvoLockedByModeration" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Unlocks a group convo so it is able to receive new content." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/unmuteConvo.json b/lexicons/chat/bsky/convo/unmuteConvo.json new file mode 100644 index 0000000000..813146cd53 --- /dev/null +++ b/lexicons/chat/bsky/convo/unmuteConvo.json @@ -0,0 +1,45 @@ +{ + "id": "chat.bsky.convo.unmuteConvo", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Unmutes a conversation, allowing notifications related to it." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/updateAllRead.json b/lexicons/chat/bsky/convo/updateAllRead.json new file mode 100644 index 0000000000..288e873196 --- /dev/null +++ b/lexicons/chat/bsky/convo/updateAllRead.json @@ -0,0 +1,41 @@ +{ + "id": "chat.bsky.convo.updateAllRead", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "knownValues": [ + "request", + "accepted" + ] + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "updatedCount" + ], + "properties": { + "updatedCount": { + "type": "integer", + "description": "The count of updated convos." + } + } + }, + "encoding": "application/json" + }, + "description": "Sets conversations from a user as read to the latest message, with filters." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/convo/updateRead.json b/lexicons/chat/bsky/convo/updateRead.json new file mode 100644 index 0000000000..1aa6d1152c --- /dev/null +++ b/lexicons/chat/bsky/convo/updateRead.json @@ -0,0 +1,48 @@ +{ + "id": "chat.bsky.convo.updateRead", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + }, + "messageId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Updates the read state of a conversation from, optionally specifying the last read message." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/embed/joinLink.json b/lexicons/chat/bsky/embed/joinLink.json new file mode 100644 index 0000000000..0dc09657b9 --- /dev/null +++ b/lexicons/chat/bsky/embed/joinLink.json @@ -0,0 +1,36 @@ +{ + "id": "chat.bsky.embed.joinLink", + "defs": { + "main": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "code": { + "type": "string", + "description": "The join link code." + } + } + }, + "view": { + "type": "object", + "required": [ + "joinLinkPreview" + ], + "properties": { + "joinLinkPreview": { + "refs": [ + "chat.bsky.group.defs#joinLinkPreviewView", + "chat.bsky.group.defs#disabledJoinLinkPreviewView", + "chat.bsky.group.defs#invalidJoinLinkPreviewView" + ], + "type": "union" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1, + "description": "A join link embedded in a chat message." +} diff --git a/lexicons/chat/bsky/group/addMembers.json b/lexicons/chat/bsky/group/addMembers.json new file mode 100644 index 0000000000..39a14a5b83 --- /dev/null +++ b/lexicons/chat/bsky/group/addMembers.json @@ -0,0 +1,88 @@ +{ + "id": "chat.bsky.group.addMembers", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "members" + ], + "properties": { + "convoId": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "type": "string", + "format": "did" + }, + "minLength": 1 + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "AccountSuspended" + }, + { + "name": "BlockedActor" + }, + { + "name": "BlockedSubject" + }, + { + "name": "ConvoLocked" + }, + { + "name": "InsufficientRole" + }, + { + "name": "InvalidConvo" + }, + { + "name": "MemberLimitReached" + }, + { + "name": "NotFollowedBySender" + }, + { + "name": "RecipientNotFound" + }, + { + "name": "UserForbidsGroups" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + }, + "addedMembers": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "description": "Adds members to a group. The members are added in 'request' status, so they have to accept it. This creates convo memberships." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/approveJoinRequest.json b/lexicons/chat/bsky/group/approveJoinRequest.json new file mode 100644 index 0000000000..c8186db259 --- /dev/null +++ b/lexicons/chat/bsky/group/approveJoinRequest.json @@ -0,0 +1,56 @@ +{ + "id": "chat.bsky.group.approveJoinRequest", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "member" + ], + "properties": { + "member": { + "type": "string", + "format": "did" + }, + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + }, + { + "name": "MemberLimitReached" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Approves a request to join a group (via join link) the user owns. Action taken by the group owner." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/createGroup.json b/lexicons/chat/bsky/group/createGroup.json new file mode 100644 index 0000000000..571d6066d5 --- /dev/null +++ b/lexicons/chat/bsky/group/createGroup.json @@ -0,0 +1,75 @@ +{ + "id": "chat.bsky.group.createGroup", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "members", + "name" + ], + "properties": { + "name": { + "type": "string", + "maxLength": 500, + "minLength": 1, + "maxGraphemes": 50 + }, + "members": { + "type": "array", + "items": { + "type": "string", + "format": "did" + }, + "maxLength": 49 + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "AccountSuspended" + }, + { + "name": "BlockedActor" + }, + { + "name": "BlockedSubject" + }, + { + "name": "NewAccountCannotCreateGroup" + }, + { + "name": "NotFollowedBySender" + }, + { + "name": "RecipientNotFound" + }, + { + "name": "UserForbidsGroups" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Creates a group convo, specifying the members to be added to it. Unlike getConvoForMembers, this isn't idempotent. It will create new groups even if the membership is identical to pre-existing groups. Will create 'request' membership for all members, except the owner who is 'accepted'." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/createJoinLink.json b/lexicons/chat/bsky/group/createJoinLink.json new file mode 100644 index 0000000000..679f1bc3b3 --- /dev/null +++ b/lexicons/chat/bsky/group/createJoinLink.json @@ -0,0 +1,60 @@ +{ + "id": "chat.bsky.group.createJoinLink", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "joinRule" + ], + "properties": { + "convoId": { + "type": "string" + }, + "joinRule": { + "ref": "chat.bsky.group.defs#joinRule", + "type": "ref" + }, + "requireApproval": { + "type": "boolean", + "default": false + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "EnabledJoinLinkAlreadyExists" + }, + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "joinLink" + ], + "properties": { + "joinLink": { + "ref": "chat.bsky.group.defs#joinLinkView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Creates a join link for the group convo." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/defs.json b/lexicons/chat/bsky/group/defs.json new file mode 100644 index 0000000000..3b1cc4bef3 --- /dev/null +++ b/lexicons/chat/bsky/group/defs.json @@ -0,0 +1,192 @@ +{ + "id": "chat.bsky.group.defs", + "defs": { + "joinRule": { + "type": "string", + "knownValues": [ + "anyone", + "followedByOwner" + ] + }, + "joinLinkView": { + "type": "object", + "required": [ + "code", + "enabledStatus", + "requireApproval", + "joinRule", + "createdAt" + ], + "properties": { + "code": { + "type": "string" + }, + "joinRule": { + "ref": "#joinRule", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "enabledStatus": { + "ref": "#linkEnabledStatus", + "type": "ref" + }, + "requireApproval": { + "type": "boolean" + } + }, + "description": "Join link view to be used within a group view, so the convo is surrounding, not specified inside this view." + }, + "joinRequestView": { + "type": "object", + "required": [ + "convoId", + "requestedBy", + "requestedAt" + ], + "properties": { + "convoId": { + "type": "string" + }, + "requestedAt": { + "type": "string", + "format": "datetime" + }, + "requestedBy": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + } + }, + "description": "A join request from the perspective of the group owner." + }, + "linkEnabledStatus": { + "type": "string", + "knownValues": [ + "enabled", + "disabled" + ] + }, + "joinLinkPreviewView": { + "type": "object", + "required": [ + "convoId", + "code", + "name", + "owner", + "memberCount", + "memberLimit", + "requireApproval", + "joinRule" + ], + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref", + "description": "Present only if the request is authenticated and the user is a member of the group." + }, + "owner": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "viewer": { + "ref": "#joinLinkViewerState", + "type": "ref" + }, + "convoId": { + "type": "string" + }, + "joinRule": { + "ref": "#joinRule", + "type": "ref" + }, + "memberCount": { + "type": "integer" + }, + "memberLimit": { + "type": "integer" + }, + "requireApproval": { + "type": "boolean" + } + }, + "description": "Preview that can be shown in feeds, including to unauthenticated viewers." + }, + "joinLinkViewerState": { + "type": "object", + "properties": { + "requestedAt": { + "type": "string", + "format": "datetime" + } + } + }, + "joinRequestConvoView": { + "type": "object", + "required": [ + "convoId", + "name", + "owner", + "memberCount", + "memberLimit", + "viewer" + ], + "properties": { + "name": { + "type": "string" + }, + "owner": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + }, + "viewer": { + "ref": "#joinLinkViewerState", + "type": "ref" + }, + "convoId": { + "type": "string" + }, + "memberCount": { + "type": "integer" + }, + "memberLimit": { + "type": "integer" + } + }, + "description": "A join request from the perspective of the requester, including enough group context to render the request in a list (e.g. group name, owner, member count)." + }, + "invalidJoinLinkPreviewView": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "code": { + "type": "string" + } + }, + "description": "Preview for a join link code that does not map to an existing link. Carries only the code so clients can correlate with the input and render an invalid state." + }, + "disabledJoinLinkPreviewView": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "code": { + "type": "string" + } + }, + "description": "Preview for a disabled join link. Carries only the code so clients can correlate with the input and render a disabled state." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/disableJoinLink.json b/lexicons/chat/bsky/group/disableJoinLink.json new file mode 100644 index 0000000000..e240344a17 --- /dev/null +++ b/lexicons/chat/bsky/group/disableJoinLink.json @@ -0,0 +1,51 @@ +{ + "id": "chat.bsky.group.disableJoinLink", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + }, + { + "name": "NoJoinLink" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "joinLink" + ], + "properties": { + "joinLink": { + "ref": "chat.bsky.group.defs#joinLinkView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Disables the active join link for the group convo." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/editGroup.json b/lexicons/chat/bsky/group/editGroup.json new file mode 100644 index 0000000000..2ce53704cd --- /dev/null +++ b/lexicons/chat/bsky/group/editGroup.json @@ -0,0 +1,58 @@ +{ + "id": "chat.bsky.group.editGroup", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "name" + ], + "properties": { + "name": { + "type": "string", + "maxLength": 500, + "minLength": 1, + "maxGraphemes": 50 + }, + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "ConvoLocked" + }, + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Edits group settings." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/editJoinLink.json b/lexicons/chat/bsky/group/editJoinLink.json new file mode 100644 index 0000000000..17bc143555 --- /dev/null +++ b/lexicons/chat/bsky/group/editJoinLink.json @@ -0,0 +1,58 @@ +{ + "id": "chat.bsky.group.editJoinLink", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + }, + "joinRule": { + "ref": "chat.bsky.group.defs#joinRule", + "type": "ref" + }, + "requireApproval": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + }, + { + "name": "NoJoinLink" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "joinLink" + ], + "properties": { + "joinLink": { + "ref": "chat.bsky.group.defs#joinLinkView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Edits the existing join link settings for the group convo." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/enableJoinLink.json b/lexicons/chat/bsky/group/enableJoinLink.json new file mode 100644 index 0000000000..ed82a96495 --- /dev/null +++ b/lexicons/chat/bsky/group/enableJoinLink.json @@ -0,0 +1,54 @@ +{ + "id": "chat.bsky.group.enableJoinLink", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + }, + { + "name": "NoJoinLink" + }, + { + "name": "LinkAlreadyEnabled" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "joinLink" + ], + "properties": { + "joinLink": { + "ref": "chat.bsky.group.defs#joinLinkView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Re-enables a previously disabled join link for the group convo." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/getJoinLinkPreviews.json b/lexicons/chat/bsky/group/getJoinLinkPreviews.json new file mode 100644 index 0000000000..c9c8491cad --- /dev/null +++ b/lexicons/chat/bsky/group/getJoinLinkPreviews.json @@ -0,0 +1,49 @@ +{ + "id": "chat.bsky.group.getJoinLinkPreviews", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "joinLinkPreviews" + ], + "properties": { + "joinLinkPreviews": { + "type": "array", + "items": { + "refs": [ + "chat.bsky.group.defs#joinLinkPreviewView", + "chat.bsky.group.defs#disabledJoinLinkPreviewView", + "chat.bsky.group.defs#invalidJoinLinkPreviewView" + ], + "type": "union" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "codes" + ], + "properties": { + "codes": { + "type": "array", + "items": { + "type": "string" + }, + "maxLength": 50, + "minLength": 1 + } + } + }, + "description": "Get public information about groups from join links. The output array matches the input codes one-to-one by position (and each view also carries its 'code'). Disabled codes return a disabledJoinLinkPreviewView, and codes that do not map to a previewable link return an invalidJoinLinkPreviewView." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/listJoinRequests.json b/lexicons/chat/bsky/group/listJoinRequests.json new file mode 100644 index 0000000000..b8ecd295dd --- /dev/null +++ b/lexicons/chat/bsky/group/listJoinRequests.json @@ -0,0 +1,60 @@ +{ + "id": "chat.bsky.group.listJoinRequests", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "requests" + ], + "properties": { + "cursor": { + "type": "string" + }, + "requests": { + "type": "array", + "items": { + "ref": "chat.bsky.group.defs#joinRequestView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "convoId" + ], + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "convoId": { + "type": "string" + } + } + }, + "description": "Lists a page of request to join a group (via join link) the user owns. Shows the data from the owner's point of view." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/listMutualGroups.json b/lexicons/chat/bsky/group/listMutualGroups.json new file mode 100644 index 0000000000..26d04f1edd --- /dev/null +++ b/lexicons/chat/bsky/group/listMutualGroups.json @@ -0,0 +1,53 @@ +{ + "id": "chat.bsky.group.listMutualGroups", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "convos" + ], + "properties": { + "convos": { + "type": "array", + "items": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "subject" + ], + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "subject": { + "type": "string", + "format": "did" + } + } + }, + "description": "Returns a page of group conversations that both the requester and the specified actor are members of." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/rejectJoinRequest.json b/lexicons/chat/bsky/group/rejectJoinRequest.json new file mode 100644 index 0000000000..fb8edf64ea --- /dev/null +++ b/lexicons/chat/bsky/group/rejectJoinRequest.json @@ -0,0 +1,46 @@ +{ + "id": "chat.bsky.group.rejectJoinRequest", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "member" + ], + "properties": { + "member": { + "type": "string", + "format": "did" + }, + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + } + ], + "output": { + "schema": { + "type": "object", + "required": [], + "properties": {} + }, + "encoding": "application/json" + }, + "description": "Rejects a request to join a group (via join link) the user owns. Action taken by the group owner." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/removeMembers.json b/lexicons/chat/bsky/group/removeMembers.json new file mode 100644 index 0000000000..e7e795a6bb --- /dev/null +++ b/lexicons/chat/bsky/group/removeMembers.json @@ -0,0 +1,57 @@ +{ + "id": "chat.bsky.group.removeMembers", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId", + "members" + ], + "properties": { + "convoId": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "type": "string", + "format": "did" + }, + "minLength": 1 + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Removes members from a group. This deletes convo memberships, doesn't just set a status." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/requestJoin.json b/lexicons/chat/bsky/group/requestJoin.json new file mode 100644 index 0000000000..b3cbbd6b4c --- /dev/null +++ b/lexicons/chat/bsky/group/requestJoin.json @@ -0,0 +1,68 @@ +{ + "id": "chat.bsky.group.requestJoin", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "code": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "ConvoLocked" + }, + { + "name": "FollowRequired" + }, + { + "name": "InvalidCode" + }, + { + "name": "LinkDisabled" + }, + { + "name": "MemberLimitReached" + }, + { + "name": "UserKicked" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "convo": { + "ref": "chat.bsky.convo.defs#convoView", + "type": "ref", + "description": "The group convo joined. This is only present in the case of status=joined" + }, + "status": { + "type": "string", + "knownValues": [ + "joined", + "pending" + ] + } + } + }, + "encoding": "application/json" + }, + "description": "Sends a request to join a group (via join link) to the group owner. Action taken by the prospective group member." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/updateJoinRequestsRead.json b/lexicons/chat/bsky/group/updateJoinRequestsRead.json new file mode 100644 index 0000000000..e80c671d5e --- /dev/null +++ b/lexicons/chat/bsky/group/updateJoinRequestsRead.json @@ -0,0 +1,41 @@ +{ + "id": "chat.bsky.group.updateJoinRequestsRead", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidConvo" + }, + { + "name": "InsufficientRole" + } + ], + "output": { + "schema": { + "type": "object", + "required": [], + "properties": {} + }, + "encoding": "application/json" + }, + "description": "Marks all join requests as read for the group owner." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/group/withdrawJoinRequest.json b/lexicons/chat/bsky/group/withdrawJoinRequest.json new file mode 100644 index 0000000000..4d13bb4249 --- /dev/null +++ b/lexicons/chat/bsky/group/withdrawJoinRequest.json @@ -0,0 +1,38 @@ +{ + "id": "chat.bsky.group.withdrawJoinRequest", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidJoinRequest" + } + ], + "output": { + "schema": { + "type": "object", + "required": [], + "properties": {} + }, + "encoding": "application/json" + }, + "description": "Withdraws a pending request to join a group. Action taken by the prospective member who originally requested to join." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/moderation/defs.json b/lexicons/chat/bsky/moderation/defs.json new file mode 100644 index 0000000000..895b3bee77 --- /dev/null +++ b/lexicons/chat/bsky/moderation/defs.json @@ -0,0 +1,81 @@ +{ + "id": "chat.bsky.moderation.defs", + "defs": { + "convoView": { + "type": "object", + "required": [ + "id", + "rev" + ], + "properties": { + "id": { + "type": "string" + }, + "rev": { + "type": "string" + }, + "kind": { + "refs": [ + "#directConvo", + "#groupConvo" + ], + "type": "union", + "description": "Union field that has data specific to different kinds of convos." + } + }, + "description": "A view of a conversation for moderation purposes. Unlike chat.bsky.convo.defs#convoView, it does not include viewer-specific data (such as muted, unreadCount, status, lastMessage, lastReaction), since the requester is a moderator and not a member of the conversation. The member list is not included; use chat.bsky.moderation.getConvoMembers to list members." + }, + "groupConvo": { + "type": "object", + "required": [ + "createdAt", + "joinRequestCount", + "lockStatus", + "memberCount", + "memberLimit", + "name" + ], + "properties": { + "name": { + "type": "string", + "maxLength": 500, + "description": "The display name of the group conversation.", + "maxGraphemes": 50 + }, + "joinLink": { + "ref": "chat.bsky.group.defs#joinLinkView", + "type": "ref" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "lockStatus": { + "ref": "chat.bsky.convo.defs#convoLockStatus", + "type": "ref", + "description": "The lock status of the conversation." + }, + "memberCount": { + "type": "integer", + "description": "The total number of members in the group conversation." + }, + "memberLimit": { + "type": "integer", + "description": "The maximum number of members allowed in the group conversation." + }, + "joinRequestCount": { + "type": "integer", + "description": "The total number of pending join requests for the group conversation. This information is only visible to the owner and to moderators. Capped at 21." + } + }, + "description": "Data specific to a group conversation, for moderation purposes. Unlike chat.bsky.convo.defs#groupConvo, it does not include viewer-specific data (such as unreadJoinRequestCount), since the requester is a moderator and not a member of the conversation." + }, + "directConvo": { + "type": "object", + "properties": {}, + "description": "Data specific to a direct conversation, for moderation purposes." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/moderation/getActorMetadata.json b/lexicons/chat/bsky/moderation/getActorMetadata.json new file mode 100644 index 0000000000..3f20fe2170 --- /dev/null +++ b/lexicons/chat/bsky/moderation/getActorMetadata.json @@ -0,0 +1,70 @@ +{ + "id": "chat.bsky.moderation.getActorMetadata", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "day", + "month", + "all" + ], + "properties": { + "all": { + "ref": "#metadata", + "type": "ref" + }, + "day": { + "ref": "#metadata", + "type": "ref" + }, + "month": { + "ref": "#metadata", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "actor" + ], + "properties": { + "actor": { + "type": "string", + "format": "did" + } + } + } + }, + "metadata": { + "type": "object", + "required": [ + "messagesSent", + "messagesReceived", + "convos", + "convosStarted" + ], + "properties": { + "convos": { + "type": "integer" + }, + "messagesSent": { + "type": "integer" + }, + "convosStarted": { + "type": "integer" + }, + "messagesReceived": { + "type": "integer" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/moderation/getConvo.json b/lexicons/chat/bsky/moderation/getConvo.json new file mode 100644 index 0000000000..a9213df585 --- /dev/null +++ b/lexicons/chat/bsky/moderation/getConvo.json @@ -0,0 +1,42 @@ +{ + "id": "chat.bsky.moderation.getConvo", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "convo" + ], + "properties": { + "convo": { + "ref": "chat.bsky.moderation.defs#convoView", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "convoId" + ], + "properties": { + "convoId": { + "type": "string" + } + } + }, + "description": "Gets an existing conversation by its ID, for moderation purposes. Does not require the requester to be a member of the conversation." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/moderation/getConvoMembers.json b/lexicons/chat/bsky/moderation/getConvoMembers.json new file mode 100644 index 0000000000..236663422c --- /dev/null +++ b/lexicons/chat/bsky/moderation/getConvoMembers.json @@ -0,0 +1,57 @@ +{ + "id": "chat.bsky.moderation.getConvoMembers", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "InvalidConvo" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "members" + ], + "properties": { + "cursor": { + "type": "string" + }, + "members": { + "type": "array", + "items": { + "ref": "chat.bsky.actor.defs#profileViewBasic", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "convoId" + ], + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "convoId": { + "type": "string" + } + } + }, + "description": "Returns a paginated list of members from a conversation, for moderation purposes. Does not require the requester to be a member of the conversation." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/moderation/getConvos.json b/lexicons/chat/bsky/moderation/getConvos.json new file mode 100644 index 0000000000..2169dc64dd --- /dev/null +++ b/lexicons/chat/bsky/moderation/getConvos.json @@ -0,0 +1,45 @@ +{ + "id": "chat.bsky.moderation.getConvos", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "convos" + ], + "properties": { + "convos": { + "type": "array", + "items": { + "ref": "chat.bsky.moderation.defs#convoView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "convoIds" + ], + "properties": { + "convoIds": { + "type": "array", + "items": { + "type": "string" + }, + "maxLength": 100, + "minLength": 1 + } + } + }, + "description": "Gets existing conversations by their IDs, for moderation purposes. Does not require the requester to be a member of the conversations. Unknown IDs are silently omitted from the response." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/moderation/getMessageContext.json b/lexicons/chat/bsky/moderation/getMessageContext.json new file mode 100644 index 0000000000..f88034c105 --- /dev/null +++ b/lexicons/chat/bsky/moderation/getMessageContext.json @@ -0,0 +1,63 @@ +{ + "id": "chat.bsky.moderation.getMessageContext", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "messages" + ], + "properties": { + "messages": { + "type": "array", + "items": { + "refs": [ + "chat.bsky.convo.defs#messageView", + "chat.bsky.convo.defs#systemMessageView" + ], + "type": "union" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "messageId" + ], + "properties": { + "after": { + "type": "integer", + "default": 5, + "description": "Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages after the target, up to `maxInterleavedSystemMessages` system messages immediately following the target are returned instead." + }, + "before": { + "type": "integer", + "default": 5, + "description": "Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages before the target, up to `maxInterleavedSystemMessages` system messages immediately preceding the target are returned instead." + }, + "convoId": { + "type": "string", + "description": "Conversation that the message is from. NOTE: this field will eventually be required." + }, + "messageId": { + "type": "string" + }, + "maxInterleavedSystemMessages": { + "type": "integer", + "default": 10, + "maximum": 1000, + "minimum": 0, + "description": "Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept." + } + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/moderation/subscribeModEvents.json b/lexicons/chat/bsky/moderation/subscribeModEvents.json new file mode 100644 index 0000000000..277c85b248 --- /dev/null +++ b/lexicons/chat/bsky/moderation/subscribeModEvents.json @@ -0,0 +1,675 @@ +{ + "id": "chat.bsky.moderation.subscribeModEvents", + "defs": { + "main": { + "type": "subscription", + "errors": [ + { + "name": "FutureCursor" + }, + { + "name": "ConsumerTooSlow", + "description": "If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection." + } + ], + "message": { + "schema": { + "refs": [ + "#eventConvoFirstMessage", + "#eventGroupChatCreated", + "#eventGroupChatMemberAdded", + "#eventGroupChatMemberJoined", + "#eventGroupChatJoinRequest", + "#eventGroupChatJoinRequestApproved", + "#eventGroupChatJoinRequestRejected", + "#eventChatAccepted", + "#eventGroupChatMemberLeft", + "#eventGroupChatUpdated", + "#eventRateLimitExceeded" + ], + "type": "union" + } + }, + "parameters": { + "type": "params", + "properties": { + "cursor": { + "type": "string", + "description": "The last known event seq number to backfill from. Use '2222222222222' to backfill from the beginning. Don't specify a cursor to listen only for new events." + } + } + }, + "description": "Subscribe to stream of chat events targeted to moderation. Private endpoint." + }, + "eventChatAccepted": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "method", + "rev" + ], + "properties": { + "rev": { + "type": "string" + }, + "method": { + "type": "string", + "description": "How the convo was accepted.", + "knownValues": [ + "explicit", + "message" + ] + }, + "convoId": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the person accepting the convo." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner. Only present for group convos." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string", + "description": "The name of the group chat. Only present for group convos." + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the convo was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event. Only present for group convos." + } + }, + "description": "Fired when a user accepts a chat convo, either explicitly or by sending a message." + }, + "eventGroupChatCreated": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "groupMemberCount", + "groupName", + "initialMemberDids", + "ownerDid", + "rev" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the actor performing the action. For this event, same as ownerDid." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string", + "description": "The name set at creation time." + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the group was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event." + }, + "initialMemberDids": { + "type": "array", + "items": { + "type": "string", + "format": "did" + }, + "description": "DIDs of everyone added at creation time." + } + }, + "description": "Fire when a group chat is created." + }, + "eventGroupChatUpdated": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "groupMemberCount", + "groupName", + "ownerDid", + "rev", + "updateType" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "newName": { + "type": "string", + "description": "The new group name. Only present when updateType is 'name_changed'." + }, + "oldName": { + "type": "string", + "description": "The previous group name. Only present when updateType is 'name_changed'." + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the actor performing the action (the owner)." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string", + "description": "Current group name." + }, + "lockReason": { + "type": "string", + "description": "Why the group was locked. Only present when updateType is 'locked'.", + "knownValues": [ + "owner_action", + "owner_left", + "owner_deactivated", + "owner_deleted", + "owner_suspended", + "owner_taken_down", + "label_applied", + "convo_taken_down" + ] + }, + "updateType": { + "type": "string", + "description": "What changed.", + "knownValues": [ + "name_changed", + "locked", + "locked_permanently", + "unlocked", + "join_link_created", + "join_link_disabled", + "join_link_settings_changed" + ] + }, + "joinLinkCode": { + "type": "string", + "description": "The code of the join link. Only present when updateType is join-link-related." + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the group was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event." + }, + "joinLinkFollowersOnly": { + "type": "boolean", + "description": "Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related." + }, + "joinLinkRequiresApproval": { + "type": "boolean", + "description": "Whether the join link requires owner approval to join. Only present when updateType is join-link-related." + } + }, + "description": "Fired when a group chat's metadata or status changes." + }, + "eventConvoFirstMessage": { + "type": "object", + "required": [ + "createdAt", + "rev", + "convoId", + "user", + "recipients" + ], + "properties": { + "rev": { + "type": "string" + }, + "user": { + "type": "string", + "format": "did", + "description": "The DID of the message author." + }, + "convoId": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "messageId": { + "type": "string" + }, + "recipients": { + "type": "array", + "items": { + "type": "string", + "format": "did" + }, + "description": "The list of DIDs message recipients. Does not include the sender, which is in the `user` field" + } + }, + "description": "Fired when the first message was sent on a convo." + }, + "eventRateLimitExceeded": { + "type": "object", + "required": [ + "actorDid", + "createdAt", + "endpoint", + "rev" + ], + "properties": { + "rev": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the user who hit the rate limit." + }, + "endpoint": { + "type": "string", + "description": "The NSID of the endpoint that was rate limited." + }, + "createdAt": { + "type": "string", + "format": "datetime" + } + }, + "description": "Fired when a user exceeds a rate limit." + }, + "eventGroupChatMemberLeft": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "groupMemberCount", + "groupName", + "leaveMethod", + "ownerDid", + "rev", + "subjectDid" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the actor. For voluntary: the person leaving. For kicked: the owner." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string" + }, + "subjectDid": { + "type": "string", + "format": "did", + "description": "The DID of the member who left or was removed." + }, + "leaveMethod": { + "type": "string", + "description": "How the member left.", + "knownValues": [ + "voluntary", + "kicked" + ] + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the group was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event." + } + }, + "description": "Fired when a member leaves or is removed from a group chat." + }, + "eventGroupChatJoinRequest": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "groupMemberCount", + "groupName", + "joinLinkCode", + "ownerDid", + "rev", + "subjectFollowsOwner" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the person requesting to join." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string" + }, + "joinLinkCode": { + "type": "string", + "description": "The code of the join link used to request joining." + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the group was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event." + }, + "subjectFollowsOwner": { + "type": "boolean", + "description": "Whether the requesting member follows the group owner." + } + }, + "description": "Fired when a user requests to join a group chat via an join link that requires approval." + }, + "eventGroupChatMemberAdded": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "groupMemberCount", + "groupName", + "ownerDid", + "requestMembersCount", + "rev", + "subjectDid", + "subjectFollowsOwner" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the actor performing the action. For this event, same as ownerDid." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string" + }, + "subjectDid": { + "type": "string", + "format": "did", + "description": "The DID of the member who was added." + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the group was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event." + }, + "requestMembersCount": { + "type": "integer", + "description": "The number of members who have not yet accepted the convo." + }, + "subjectFollowsOwner": { + "type": "boolean", + "description": "Whether the added member follows the group owner." + } + }, + "description": "Fired when a member is added to a group chat. Note that members are added in the 'request' state." + }, + "eventGroupChatMemberJoined": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "groupMemberCount", + "groupName", + "joinLinkCode", + "ownerDid", + "rev", + "subjectFollowsOwner" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the person joining." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string" + }, + "joinLinkCode": { + "type": "string", + "description": "The code of the join link used to join." + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the group was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event." + }, + "subjectFollowsOwner": { + "type": "boolean", + "description": "Whether the joining member follows the group owner." + } + }, + "description": "Fired when a member joins a group chat via an join link that does not require approval." + }, + "eventGroupChatJoinRequestApproved": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "groupMemberCount", + "groupName", + "ownerDid", + "rev", + "subjectDid" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the owner approving the request." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string" + }, + "subjectDid": { + "type": "string", + "format": "did", + "description": "The DID of the member whose request was approved." + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the group was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event." + } + }, + "description": "Fired when a join request is approved by the group owner." + }, + "eventGroupChatJoinRequestRejected": { + "type": "object", + "required": [ + "actorDid", + "convoCreatedAt", + "convoId", + "createdAt", + "groupMemberCount", + "groupName", + "ownerDid", + "rev", + "subjectDid" + ], + "properties": { + "rev": { + "type": "string" + }, + "convoId": { + "type": "string" + }, + "actorDid": { + "type": "string", + "format": "did", + "description": "The DID of the owner rejecting the request." + }, + "ownerDid": { + "type": "string", + "format": "did", + "description": "The DID of the group chat owner." + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "groupName": { + "type": "string" + }, + "subjectDid": { + "type": "string", + "format": "did", + "description": "The DID of the member whose request was rejected." + }, + "convoCreatedAt": { + "type": "string", + "format": "datetime", + "description": "When the group was originally created." + }, + "groupMemberCount": { + "type": "integer", + "description": "Current member count at the time of the event." + } + }, + "description": "Fired when a join request is rejected by the group owner." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/moderation/updateActorAccess.json b/lexicons/chat/bsky/moderation/updateActorAccess.json new file mode 100644 index 0000000000..8e2d711a17 --- /dev/null +++ b/lexicons/chat/bsky/moderation/updateActorAccess.json @@ -0,0 +1,32 @@ +{ + "id": "chat.bsky.moderation.updateActorAccess", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "actor", + "allowAccess" + ], + "properties": { + "ref": { + "type": "string" + }, + "actor": { + "type": "string", + "format": "did" + }, + "allowAccess": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/notification/defs.json b/lexicons/chat/bsky/notification/defs.json new file mode 100644 index 0000000000..927f7242de --- /dev/null +++ b/lexicons/chat/bsky/notification/defs.json @@ -0,0 +1,43 @@ +{ + "id": "chat.bsky.notification.defs", + "defs": { + "preferences": { + "type": "object", + "required": [ + "chat", + "chatRequest" + ], + "properties": { + "chat": { + "ref": "#chatPreference", + "type": "ref" + }, + "chatRequest": { + "ref": "#chatPreference", + "type": "ref" + } + } + }, + "chatPreference": { + "type": "object", + "required": [ + "include", + "push" + ], + "properties": { + "push": { + "type": "boolean" + }, + "include": { + "type": "string", + "knownValues": [ + "all", + "follows" + ] + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/notification/getPreferences.json b/lexicons/chat/bsky/notification/getPreferences.json new file mode 100644 index 0000000000..e1924b0ea9 --- /dev/null +++ b/lexicons/chat/bsky/notification/getPreferences.json @@ -0,0 +1,26 @@ +{ + "id": "chat.bsky.notification.getPreferences", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "preferences" + ], + "properties": { + "preferences": { + "ref": "chat.bsky.notification.defs#preferences", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Get the requesting account's chat notification preferences. Defaults are returned for accounts that have not set any preferences. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/chat/bsky/notification/putPreferences.json b/lexicons/chat/bsky/notification/putPreferences.json new file mode 100644 index 0000000000..1d278ddb8a --- /dev/null +++ b/lexicons/chat/bsky/notification/putPreferences.json @@ -0,0 +1,42 @@ +{ + "id": "chat.bsky.notification.putPreferences", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "properties": { + "chat": { + "ref": "chat.bsky.notification.defs#chatPreference", + "type": "ref" + }, + "chatRequest": { + "ref": "chat.bsky.notification.defs#chatPreference", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "preferences" + ], + "properties": { + "preferences": { + "ref": "chat.bsky.notification.defs#preferences", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/defs.json b/lexicons/com/atproto/admin/defs.json new file mode 100644 index 0000000000..ee74d849c7 --- /dev/null +++ b/lexicons/com/atproto/admin/defs.json @@ -0,0 +1,132 @@ +{ + "id": "com.atproto.admin.defs", + "defs": { + "repoRef": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + }, + "statusAttr": { + "type": "object", + "required": [ + "applied" + ], + "properties": { + "ref": { + "type": "string" + }, + "applied": { + "type": "boolean" + } + } + }, + "accountView": { + "type": "object", + "required": [ + "did", + "handle", + "indexedAt" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "email": { + "type": "string" + }, + "handle": { + "type": "string", + "format": "handle" + }, + "invites": { + "type": "array", + "items": { + "ref": "com.atproto.server.defs#inviteCode", + "type": "ref" + } + }, + "indexedAt": { + "type": "string", + "format": "datetime" + }, + "invitedBy": { + "ref": "com.atproto.server.defs#inviteCode", + "type": "ref" + }, + "inviteNote": { + "type": "string" + }, + "deactivatedAt": { + "type": "string", + "format": "datetime" + }, + "relatedRecords": { + "type": "array", + "items": { + "type": "unknown" + } + }, + "invitesDisabled": { + "type": "boolean" + }, + "emailConfirmedAt": { + "type": "string", + "format": "datetime" + }, + "threatSignatures": { + "type": "array", + "items": { + "ref": "#threatSignature", + "type": "ref" + } + } + } + }, + "repoBlobRef": { + "type": "object", + "required": [ + "did", + "cid" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "did": { + "type": "string", + "format": "did" + }, + "recordUri": { + "type": "string", + "format": "at-uri" + } + } + }, + "threatSignature": { + "type": "object", + "required": [ + "property", + "value" + ], + "properties": { + "value": { + "type": "string" + }, + "property": { + "type": "string" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/deleteAccount.json b/lexicons/com/atproto/admin/deleteAccount.json new file mode 100644 index 0000000000..33497c78c1 --- /dev/null +++ b/lexicons/com/atproto/admin/deleteAccount.json @@ -0,0 +1,26 @@ +{ + "id": "com.atproto.admin.deleteAccount", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + }, + "encoding": "application/json" + }, + "description": "Delete a user account as an administrator." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/disableAccountInvites.json b/lexicons/com/atproto/admin/disableAccountInvites.json new file mode 100644 index 0000000000..3263b02e14 --- /dev/null +++ b/lexicons/com/atproto/admin/disableAccountInvites.json @@ -0,0 +1,30 @@ +{ + "id": "com.atproto.admin.disableAccountInvites", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "account" + ], + "properties": { + "note": { + "type": "string", + "description": "Optional reason for disabled invites." + }, + "account": { + "type": "string", + "format": "did" + } + } + }, + "encoding": "application/json" + }, + "description": "Disable an account from receiving new invite codes, but does not invalidate existing codes." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/disableInviteCodes.json b/lexicons/com/atproto/admin/disableInviteCodes.json new file mode 100644 index 0000000000..97ed72bd54 --- /dev/null +++ b/lexicons/com/atproto/admin/disableInviteCodes.json @@ -0,0 +1,31 @@ +{ + "id": "com.atproto.admin.disableInviteCodes", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "properties": { + "codes": { + "type": "array", + "items": { + "type": "string" + } + }, + "accounts": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "encoding": "application/json" + }, + "description": "Disable some set of codes and/or all codes associated with a set of users." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/enableAccountInvites.json b/lexicons/com/atproto/admin/enableAccountInvites.json new file mode 100644 index 0000000000..d7bc1f7dd2 --- /dev/null +++ b/lexicons/com/atproto/admin/enableAccountInvites.json @@ -0,0 +1,30 @@ +{ + "id": "com.atproto.admin.enableAccountInvites", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "account" + ], + "properties": { + "note": { + "type": "string", + "description": "Optional reason for enabled invites." + }, + "account": { + "type": "string", + "format": "did" + } + } + }, + "encoding": "application/json" + }, + "description": "Re-enable an account's ability to receive invite codes." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/getAccountInfo.json b/lexicons/com/atproto/admin/getAccountInfo.json new file mode 100644 index 0000000000..d64dd43920 --- /dev/null +++ b/lexicons/com/atproto/admin/getAccountInfo.json @@ -0,0 +1,30 @@ +{ + "id": "com.atproto.admin.getAccountInfo", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "ref": "com.atproto.admin.defs#accountView", + "type": "ref" + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + }, + "description": "Get details about an account." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/getAccountInfos.json b/lexicons/com/atproto/admin/getAccountInfos.json new file mode 100644 index 0000000000..b23ec065f8 --- /dev/null +++ b/lexicons/com/atproto/admin/getAccountInfos.json @@ -0,0 +1,44 @@ +{ + "id": "com.atproto.admin.getAccountInfos", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "infos" + ], + "properties": { + "infos": { + "type": "array", + "items": { + "ref": "com.atproto.admin.defs#accountView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "dids" + ], + "properties": { + "dids": { + "type": "array", + "items": { + "type": "string", + "format": "did" + } + } + } + }, + "description": "Get details about some accounts." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/getInviteCodes.json b/lexicons/com/atproto/admin/getInviteCodes.json new file mode 100644 index 0000000000..085de7dfdf --- /dev/null +++ b/lexicons/com/atproto/admin/getInviteCodes.json @@ -0,0 +1,54 @@ +{ + "id": "com.atproto.admin.getInviteCodes", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "codes" + ], + "properties": { + "codes": { + "type": "array", + "items": { + "ref": "com.atproto.server.defs#inviteCode", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "sort": { + "type": "string", + "default": "recent", + "knownValues": [ + "recent", + "usage" + ] + }, + "limit": { + "type": "integer", + "default": 100, + "maximum": 500, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get an admin view of invite codes." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/getSubjectStatus.json b/lexicons/com/atproto/admin/getSubjectStatus.json new file mode 100644 index 0000000000..ad10fd9d45 --- /dev/null +++ b/lexicons/com/atproto/admin/getSubjectStatus.json @@ -0,0 +1,55 @@ +{ + "id": "com.atproto.admin.getSubjectStatus", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "subject" + ], + "properties": { + "subject": { + "refs": [ + "com.atproto.admin.defs#repoRef", + "com.atproto.repo.strongRef", + "com.atproto.admin.defs#repoBlobRef" + ], + "type": "union" + }, + "takedown": { + "ref": "com.atproto.admin.defs#statusAttr", + "type": "ref" + }, + "deactivated": { + "ref": "com.atproto.admin.defs#statusAttr", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "blob": { + "type": "string", + "format": "cid" + } + } + }, + "description": "Get the service-specific admin status of a subject (account, record, or blob)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/searchAccounts.json b/lexicons/com/atproto/admin/searchAccounts.json new file mode 100644 index 0000000000..57770a2f87 --- /dev/null +++ b/lexicons/com/atproto/admin/searchAccounts.json @@ -0,0 +1,49 @@ +{ + "id": "com.atproto.admin.searchAccounts", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "accounts" + ], + "properties": { + "cursor": { + "type": "string" + }, + "accounts": { + "type": "array", + "items": { + "ref": "com.atproto.admin.defs#accountView", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "email": { + "type": "string" + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Get list of accounts that matches your search query." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/sendEmail.json b/lexicons/com/atproto/admin/sendEmail.json new file mode 100644 index 0000000000..d619342572 --- /dev/null +++ b/lexicons/com/atproto/admin/sendEmail.json @@ -0,0 +1,56 @@ +{ + "id": "com.atproto.admin.sendEmail", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "recipientDid", + "content", + "senderDid" + ], + "properties": { + "comment": { + "type": "string", + "description": "Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers" + }, + "content": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "senderDid": { + "type": "string", + "format": "did" + }, + "recipientDid": { + "type": "string", + "format": "did" + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "sent" + ], + "properties": { + "sent": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "description": "Send email to a user's account email address." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/updateAccountEmail.json b/lexicons/com/atproto/admin/updateAccountEmail.json new file mode 100644 index 0000000000..e42c2320fb --- /dev/null +++ b/lexicons/com/atproto/admin/updateAccountEmail.json @@ -0,0 +1,31 @@ +{ + "id": "com.atproto.admin.updateAccountEmail", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "account", + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "account": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo." + } + } + }, + "encoding": "application/json" + }, + "description": "Administrative action to update an account's email." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/updateAccountHandle.json b/lexicons/com/atproto/admin/updateAccountHandle.json new file mode 100644 index 0000000000..aa1cc6d593 --- /dev/null +++ b/lexicons/com/atproto/admin/updateAccountHandle.json @@ -0,0 +1,31 @@ +{ + "id": "com.atproto.admin.updateAccountHandle", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "did", + "handle" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "handle": { + "type": "string", + "format": "handle" + } + } + }, + "encoding": "application/json" + }, + "description": "Administrative action to update an account's handle." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/updateAccountPassword.json b/lexicons/com/atproto/admin/updateAccountPassword.json new file mode 100644 index 0000000000..c87cf4e198 --- /dev/null +++ b/lexicons/com/atproto/admin/updateAccountPassword.json @@ -0,0 +1,30 @@ +{ + "id": "com.atproto.admin.updateAccountPassword", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "did", + "password" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "password": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "description": "Update the password for a user account as an administrator." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/updateAccountSigningKey.json b/lexicons/com/atproto/admin/updateAccountSigningKey.json new file mode 100644 index 0000000000..47f3584b8a --- /dev/null +++ b/lexicons/com/atproto/admin/updateAccountSigningKey.json @@ -0,0 +1,32 @@ +{ + "id": "com.atproto.admin.updateAccountSigningKey", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "did", + "signingKey" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "signingKey": { + "type": "string", + "format": "did", + "description": "Did-key formatted public key" + } + } + }, + "encoding": "application/json" + }, + "description": "Administrative action to update an account's signing key in their Did document." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/admin/updateSubjectStatus.json b/lexicons/com/atproto/admin/updateSubjectStatus.json new file mode 100644 index 0000000000..35ba17b451 --- /dev/null +++ b/lexicons/com/atproto/admin/updateSubjectStatus.json @@ -0,0 +1,61 @@ +{ + "id": "com.atproto.admin.updateSubjectStatus", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "subject" + ], + "properties": { + "subject": { + "refs": [ + "com.atproto.admin.defs#repoRef", + "com.atproto.repo.strongRef", + "com.atproto.admin.defs#repoBlobRef" + ], + "type": "union" + }, + "takedown": { + "ref": "com.atproto.admin.defs#statusAttr", + "type": "ref" + }, + "deactivated": { + "ref": "com.atproto.admin.defs#statusAttr", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "subject" + ], + "properties": { + "subject": { + "refs": [ + "com.atproto.admin.defs#repoRef", + "com.atproto.repo.strongRef", + "com.atproto.admin.defs#repoBlobRef" + ], + "type": "union" + }, + "takedown": { + "ref": "com.atproto.admin.defs#statusAttr", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Update the service-specific admin status of a subject (account, record, or blob)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/defs.json b/lexicons/com/atproto/identity/defs.json new file mode 100644 index 0000000000..3ee467f515 --- /dev/null +++ b/lexicons/com/atproto/identity/defs.json @@ -0,0 +1,30 @@ +{ + "id": "com.atproto.identity.defs", + "defs": { + "identityInfo": { + "type": "object", + "required": [ + "did", + "handle", + "didDoc" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "didDoc": { + "type": "unknown", + "description": "The complete DID document for the identity." + }, + "handle": { + "type": "string", + "format": "handle", + "description": "The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document." + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/getRecommendedDidCredentials.json b/lexicons/com/atproto/identity/getRecommendedDidCredentials.json new file mode 100644 index 0000000000..057c62e481 --- /dev/null +++ b/lexicons/com/atproto/identity/getRecommendedDidCredentials.json @@ -0,0 +1,38 @@ +{ + "id": "com.atproto.identity.getRecommendedDidCredentials", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "properties": { + "services": { + "type": "unknown" + }, + "alsoKnownAs": { + "type": "array", + "items": { + "type": "string" + } + }, + "rotationKeys": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs." + }, + "verificationMethods": { + "type": "unknown" + } + } + }, + "encoding": "application/json" + }, + "description": "Describe the credentials that should be included in the DID doc of an account that is migrating to this service." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/refreshIdentity.json b/lexicons/com/atproto/identity/refreshIdentity.json new file mode 100644 index 0000000000..5dd7fe46b6 --- /dev/null +++ b/lexicons/com/atproto/identity/refreshIdentity.json @@ -0,0 +1,47 @@ +{ + "id": "com.atproto.identity.refreshIdentity", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "identifier" + ], + "properties": { + "identifier": { + "type": "string", + "format": "at-identifier" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "HandleNotFound", + "description": "The resolution process confirmed that the handle does not resolve to any DID." + }, + { + "name": "DidNotFound", + "description": "The DID resolution process confirmed that there is no current DID." + }, + { + "name": "DidDeactivated", + "description": "The DID previously existed, but has been deactivated." + } + ], + "output": { + "schema": { + "ref": "com.atproto.identity.defs#identityInfo", + "type": "ref" + }, + "encoding": "application/json" + }, + "description": "Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/requestPlcOperationSignature.json b/lexicons/com/atproto/identity/requestPlcOperationSignature.json new file mode 100644 index 0000000000..0d79ffc7aa --- /dev/null +++ b/lexicons/com/atproto/identity/requestPlcOperationSignature.json @@ -0,0 +1,11 @@ +{ + "id": "com.atproto.identity.requestPlcOperationSignature", + "defs": { + "main": { + "type": "procedure", + "description": "Request an email with a code to in order to request a signed PLC operation. Requires Auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/resolveDid.json b/lexicons/com/atproto/identity/resolveDid.json new file mode 100644 index 0000000000..e6e8c88d90 --- /dev/null +++ b/lexicons/com/atproto/identity/resolveDid.json @@ -0,0 +1,49 @@ +{ + "id": "com.atproto.identity.resolveDid", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "DidNotFound", + "description": "The DID resolution process confirmed that there is no current DID." + }, + { + "name": "DidDeactivated", + "description": "The DID previously existed, but has been deactivated." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "didDoc" + ], + "properties": { + "didDoc": { + "type": "unknown", + "description": "The complete DID document for the identity." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "DID to resolve." + } + } + }, + "description": "Resolves DID to DID document. Does not bi-directionally verify handle." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/resolveHandle.json b/lexicons/com/atproto/identity/resolveHandle.json new file mode 100644 index 0000000000..855e1b9827 --- /dev/null +++ b/lexicons/com/atproto/identity/resolveHandle.json @@ -0,0 +1,45 @@ +{ + "id": "com.atproto.identity.resolveHandle", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "HandleNotFound", + "description": "The resolution process confirmed that the handle does not resolve to any DID." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "handle" + ], + "properties": { + "handle": { + "type": "string", + "format": "handle", + "description": "The handle to resolve." + } + } + }, + "description": "Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/resolveIdentity.json b/lexicons/com/atproto/identity/resolveIdentity.json new file mode 100644 index 0000000000..4da92470e3 --- /dev/null +++ b/lexicons/com/atproto/identity/resolveIdentity.json @@ -0,0 +1,45 @@ +{ + "id": "com.atproto.identity.resolveIdentity", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "HandleNotFound", + "description": "The resolution process confirmed that the handle does not resolve to any DID." + }, + { + "name": "DidNotFound", + "description": "The DID resolution process confirmed that there is no current DID." + }, + { + "name": "DidDeactivated", + "description": "The DID previously existed, but has been deactivated." + } + ], + "output": { + "schema": { + "ref": "com.atproto.identity.defs#identityInfo", + "type": "ref" + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "identifier" + ], + "properties": { + "identifier": { + "type": "string", + "format": "at-identifier", + "description": "Handle or DID to resolve." + } + } + }, + "description": "Resolves an identity (DID or Handle) to a full identity (DID document and verified handle)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/signPlcOperation.json b/lexicons/com/atproto/identity/signPlcOperation.json new file mode 100644 index 0000000000..0922c60e43 --- /dev/null +++ b/lexicons/com/atproto/identity/signPlcOperation.json @@ -0,0 +1,56 @@ +{ + "id": "com.atproto.identity.signPlcOperation", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "A token received through com.atproto.identity.requestPlcOperationSignature" + }, + "services": { + "type": "unknown" + }, + "alsoKnownAs": { + "type": "array", + "items": { + "type": "string" + } + }, + "rotationKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "verificationMethods": { + "type": "unknown" + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "operation" + ], + "properties": { + "operation": { + "type": "unknown", + "description": "A signed DID PLC operation." + } + } + }, + "encoding": "application/json" + }, + "description": "Signs a PLC operation to update some value(s) in the requesting DID's document." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/submitPlcOperation.json b/lexicons/com/atproto/identity/submitPlcOperation.json new file mode 100644 index 0000000000..ee0a6b2206 --- /dev/null +++ b/lexicons/com/atproto/identity/submitPlcOperation.json @@ -0,0 +1,25 @@ +{ + "id": "com.atproto.identity.submitPlcOperation", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "operation" + ], + "properties": { + "operation": { + "type": "unknown" + } + } + }, + "encoding": "application/json" + }, + "description": "Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry" + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/identity/updateHandle.json b/lexicons/com/atproto/identity/updateHandle.json new file mode 100644 index 0000000000..5ad0daabf7 --- /dev/null +++ b/lexicons/com/atproto/identity/updateHandle.json @@ -0,0 +1,27 @@ +{ + "id": "com.atproto.identity.updateHandle", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "handle" + ], + "properties": { + "handle": { + "type": "string", + "format": "handle", + "description": "The new handle." + } + } + }, + "encoding": "application/json" + }, + "description": "Updates the current account's handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/label/defs.json b/lexicons/com/atproto/label/defs.json new file mode 100644 index 0000000000..4c2a357295 --- /dev/null +++ b/lexicons/com/atproto/label/defs.json @@ -0,0 +1,190 @@ +{ + "id": "com.atproto.label.defs", + "defs": { + "label": { + "type": "object", + "required": [ + "src", + "uri", + "val", + "cts" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid", + "description": "Optionally, CID specifying the specific version of 'uri' resource this label applies to." + }, + "cts": { + "type": "string", + "format": "datetime", + "description": "Timestamp when this label was created." + }, + "exp": { + "type": "string", + "format": "datetime", + "description": "Timestamp at which this label expires (no longer applies)." + }, + "neg": { + "type": "boolean", + "description": "If true, this is a negation label, overwriting a previous label." + }, + "sig": { + "type": "bytes", + "description": "Signature of dag-cbor encoded label." + }, + "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 that this label applies to." + }, + "val": { + "type": "string", + "maxLength": 128, + "description": "The short string name of the value or type of this label." + }, + "ver": { + "type": "integer", + "description": "The AT Protocol version of the label object." + } + }, + "description": "Metadata tag on an atproto resource (eg, repo or record)." + }, + "selfLabel": { + "type": "object", + "required": [ + "val" + ], + "properties": { + "val": { + "type": "string", + "maxLength": 128, + "description": "The short string name of the value or type of this label." + } + }, + "description": "Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel." + }, + "labelValue": { + "type": "string", + "knownValues": [ + "!hide", + "!warn", + "!no-unauthenticated", + "porn", + "sexual", + "nudity", + "graphic-media", + "bot" + ] + }, + "selfLabels": { + "type": "object", + "required": [ + "values" + ], + "properties": { + "values": { + "type": "array", + "items": { + "ref": "#selfLabel", + "type": "ref" + }, + "maxLength": 10 + } + }, + "description": "Metadata tags on an atproto record, published by the author within the record." + }, + "labelValueDefinition": { + "type": "object", + "required": [ + "identifier", + "severity", + "blurs", + "locales" + ], + "properties": { + "blurs": { + "type": "string", + "description": "What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.", + "knownValues": [ + "content", + "media", + "none" + ] + }, + "locales": { + "type": "array", + "items": { + "ref": "#labelValueDefinitionStrings", + "type": "ref" + } + }, + "severity": { + "type": "string", + "description": "How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.", + "knownValues": [ + "inform", + "alert", + "none" + ] + }, + "adultOnly": { + "type": "boolean", + "description": "Does the user need to have adult content enabled in order to configure this label?" + }, + "identifier": { + "type": "string", + "maxLength": 100, + "description": "The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).", + "maxGraphemes": 100 + }, + "defaultSetting": { + "type": "string", + "default": "warn", + "description": "The default setting for this label.", + "knownValues": [ + "ignore", + "warn", + "hide" + ] + } + }, + "description": "Declares a label value and its expected interpretations and behaviors." + }, + "labelValueDefinitionStrings": { + "type": "object", + "required": [ + "lang", + "name", + "description" + ], + "properties": { + "lang": { + "type": "string", + "format": "language", + "description": "The code of the language these strings are written in." + }, + "name": { + "type": "string", + "maxLength": 640, + "description": "A short human-readable name for the label.", + "maxGraphemes": 64 + }, + "description": { + "type": "string", + "maxLength": 100000, + "description": "A longer description of what the label means and why it might be applied.", + "maxGraphemes": 10000 + } + }, + "description": "Strings which describe the label in the UI, localized into a specific language." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/label/queryLabels.json b/lexicons/com/atproto/label/queryLabels.json new file mode 100644 index 0000000000..d147ecbcbc --- /dev/null +++ b/lexicons/com/atproto/label/queryLabels.json @@ -0,0 +1,64 @@ +{ + "id": "com.atproto.label.queryLabels", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "labels" + ], + "properties": { + "cursor": { + "type": "string" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "uriPatterns" + ], + "properties": { + "limit": { + "type": "integer", + "default": 50, + "maximum": 250, + "minimum": 1 + }, + "cursor": { + "type": "string" + }, + "sources": { + "type": "array", + "items": { + "type": "string", + "format": "did" + }, + "description": "Optional list of label sources (DIDs) to filter on." + }, + "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." + } + } + }, + "description": "Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/label/subscribeLabels.json b/lexicons/com/atproto/label/subscribeLabels.json new file mode 100644 index 0000000000..984ed19220 --- /dev/null +++ b/lexicons/com/atproto/label/subscribeLabels.json @@ -0,0 +1,70 @@ +{ + "id": "com.atproto.label.subscribeLabels", + "defs": { + "info": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "knownValues": [ + "OutdatedCursor" + ] + }, + "message": { + "type": "string" + } + } + }, + "main": { + "type": "subscription", + "errors": [ + { + "name": "FutureCursor" + } + ], + "message": { + "schema": { + "refs": [ + "#labels", + "#info" + ], + "type": "union" + } + }, + "parameters": { + "type": "params", + "properties": { + "cursor": { + "type": "integer", + "description": "The last known event seq number to backfill from." + } + } + }, + "description": "Subscribe to stream of labels (and negations). Public endpoint implemented by mod services. Uses same sequencing scheme as repo event stream." + }, + "labels": { + "type": "object", + "required": [ + "seq", + "labels" + ], + "properties": { + "seq": { + "type": "integer" + }, + "labels": { + "type": "array", + "items": { + "ref": "com.atproto.label.defs#label", + "type": "ref" + } + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/lexicon/resolveLexicon.json b/lexicons/com/atproto/lexicon/resolveLexicon.json new file mode 100644 index 0000000000..6807a4dcf8 --- /dev/null +++ b/lexicons/com/atproto/lexicon/resolveLexicon.json @@ -0,0 +1,58 @@ +{ + "id": "com.atproto.lexicon.resolveLexicon", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "LexiconNotFound", + "description": "No lexicon was resolved for the NSID." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "uri", + "cid", + "schema" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid", + "description": "The CID of the lexicon schema record." + }, + "uri": { + "type": "string", + "format": "at-uri", + "description": "The AT-URI of the lexicon schema record." + }, + "schema": { + "ref": "com.atproto.lexicon.schema#main", + "type": "ref", + "description": "The resolved lexicon schema record." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "nsid" + ], + "properties": { + "nsid": { + "type": "string", + "format": "nsid", + "description": "The lexicon NSID to resolve." + } + } + }, + "description": "Resolves an atproto lexicon (NSID) to a schema." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/lexicon/schema.json b/lexicons/com/atproto/lexicon/schema.json new file mode 100644 index 0000000000..824b1086d8 --- /dev/null +++ b/lexicons/com/atproto/lexicon/schema.json @@ -0,0 +1,24 @@ +{ + "id": "com.atproto.lexicon.schema", + "defs": { + "main": { + "key": "nsid", + "type": "record", + "record": { + "type": "object", + "required": [ + "lexicon" + ], + "properties": { + "lexicon": { + "type": "integer", + "description": "Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system." + } + } + }, + "description": "Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc)." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/moderation/createReport.json b/lexicons/com/atproto/moderation/createReport.json new file mode 100644 index 0000000000..ee6f58525f --- /dev/null +++ b/lexicons/com/atproto/moderation/createReport.json @@ -0,0 +1,104 @@ +{ + "id": "com.atproto.moderation.createReport", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "reasonType", + "subject" + ], + "properties": { + "reason": { + "type": "string", + "maxLength": 20000, + "description": "Additional context about the content and violation.", + "maxGraphemes": 2000 + }, + "modTool": { + "ref": "#modTool", + "type": "ref" + }, + "subject": { + "refs": [ + "com.atproto.admin.defs#repoRef", + "com.atproto.repo.strongRef" + ], + "type": "union" + }, + "reasonType": { + "ref": "com.atproto.moderation.defs#reasonType", + "type": "ref", + "description": "Indicates the broad category of violation the report is for." + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "id", + "reasonType", + "subject", + "reportedBy", + "createdAt" + ], + "properties": { + "id": { + "type": "integer" + }, + "reason": { + "type": "string", + "maxLength": 20000, + "maxGraphemes": 2000 + }, + "subject": { + "refs": [ + "com.atproto.admin.defs#repoRef", + "com.atproto.repo.strongRef" + ], + "type": "union" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "reasonType": { + "ref": "com.atproto.moderation.defs#reasonType", + "type": "ref" + }, + "reportedBy": { + "type": "string", + "format": "did" + } + } + }, + "encoding": "application/json" + }, + "description": "Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth." + }, + "modTool": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "meta": { + "type": "unknown", + "description": "Additional arbitrary metadata about the source" + }, + "name": { + "type": "string", + "description": "Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome')" + } + }, + "description": "Moderation tool information for tracing the source of the action" + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/moderation/defs.json b/lexicons/com/atproto/moderation/defs.json new file mode 100644 index 0000000000..57fff90b21 --- /dev/null +++ b/lexicons/com/atproto/moderation/defs.json @@ -0,0 +1,96 @@ +{ + "id": "com.atproto.moderation.defs", + "defs": { + "reasonRude": { + "type": "token", + "description": "Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`." + }, + "reasonSpam": { + "type": "token", + "description": "Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`." + }, + "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", + "com.atproto.moderation.defs#reasonAppeal", + "tools.ozone.report.defs#reasonAppeal", + "tools.ozone.report.defs#reasonOther", + "tools.ozone.report.defs#reasonViolenceAnimal", + "tools.ozone.report.defs#reasonViolenceThreats", + "tools.ozone.report.defs#reasonViolenceGraphicContent", + "tools.ozone.report.defs#reasonViolenceGlorification", + "tools.ozone.report.defs#reasonViolenceExtremistContent", + "tools.ozone.report.defs#reasonViolenceTrafficking", + "tools.ozone.report.defs#reasonViolenceOther", + "tools.ozone.report.defs#reasonSexualAbuseContent", + "tools.ozone.report.defs#reasonSexualNCII", + "tools.ozone.report.defs#reasonSexualDeepfake", + "tools.ozone.report.defs#reasonSexualAnimal", + "tools.ozone.report.defs#reasonSexualUnlabeled", + "tools.ozone.report.defs#reasonSexualOther", + "tools.ozone.report.defs#reasonChildSafetyCSAM", + "tools.ozone.report.defs#reasonChildSafetyGroom", + "tools.ozone.report.defs#reasonChildSafetyPrivacy", + "tools.ozone.report.defs#reasonChildSafetyHarassment", + "tools.ozone.report.defs#reasonChildSafetyOther", + "tools.ozone.report.defs#reasonHarassmentTroll", + "tools.ozone.report.defs#reasonHarassmentTargeted", + "tools.ozone.report.defs#reasonHarassmentHateSpeech", + "tools.ozone.report.defs#reasonHarassmentDoxxing", + "tools.ozone.report.defs#reasonHarassmentOther", + "tools.ozone.report.defs#reasonMisleadingBot", + "tools.ozone.report.defs#reasonMisleadingImpersonation", + "tools.ozone.report.defs#reasonMisleadingSpam", + "tools.ozone.report.defs#reasonMisleadingScam", + "tools.ozone.report.defs#reasonMisleadingElections", + "tools.ozone.report.defs#reasonMisleadingOther", + "tools.ozone.report.defs#reasonRuleSiteSecurity", + "tools.ozone.report.defs#reasonRuleProhibitedSales", + "tools.ozone.report.defs#reasonRuleBanEvasion", + "tools.ozone.report.defs#reasonRuleOther", + "tools.ozone.report.defs#reasonSelfHarmContent", + "tools.ozone.report.defs#reasonSelfHarmED", + "tools.ozone.report.defs#reasonSelfHarmStunts", + "tools.ozone.report.defs#reasonSelfHarmSubstances", + "tools.ozone.report.defs#reasonSelfHarmOther" + ] + }, + "reasonOther": { + "type": "token", + "description": "Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonOther`." + }, + "subjectType": { + "type": "string", + "description": "Tag describing a type of subject that might be reported.", + "knownValues": [ + "account", + "record", + "chat" + ] + }, + "reasonAppeal": { + "type": "token", + "description": "Appeal a previously taken moderation action" + }, + "reasonSexual": { + "type": "token", + "description": "Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`." + }, + "reasonViolation": { + "type": "token", + "description": "Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`." + }, + "reasonMisleading": { + "type": "token", + "description": "Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/applyWrites.json b/lexicons/com/atproto/repo/applyWrites.json new file mode 100644 index 0000000000..f82bf2ba88 --- /dev/null +++ b/lexicons/com/atproto/repo/applyWrites.json @@ -0,0 +1,196 @@ +{ + "id": "com.atproto.repo.applyWrites", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "repo", + "writes" + ], + "properties": { + "repo": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo (aka, current account)." + }, + "writes": { + "type": "array", + "items": { + "refs": [ + "#create", + "#update", + "#delete" + ], + "type": "union", + "closed": true + } + }, + "validate": { + "type": "boolean", + "description": "Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons." + }, + "swapCommit": { + "type": "string", + "format": "cid", + "description": "If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidSwap", + "description": "Indicates that the 'swapCommit' parameter did not match current commit." + } + ], + "output": { + "schema": { + "type": "object", + "required": [], + "properties": { + "commit": { + "ref": "com.atproto.repo.defs#commitMeta", + "type": "ref" + }, + "results": { + "type": "array", + "items": { + "refs": [ + "#createResult", + "#updateResult", + "#deleteResult" + ], + "type": "union", + "closed": true + } + } + } + }, + "encoding": "application/json" + }, + "description": "Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS." + }, + "create": { + "type": "object", + "required": [ + "collection", + "value" + ], + "properties": { + "rkey": { + "type": "string", + "format": "record-key", + "maxLength": 512, + "description": "NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility." + }, + "value": { + "type": "unknown" + }, + "collection": { + "type": "string", + "format": "nsid" + } + }, + "description": "Operation which creates a new record." + }, + "delete": { + "type": "object", + "required": [ + "collection", + "rkey" + ], + "properties": { + "rkey": { + "type": "string", + "format": "record-key" + }, + "collection": { + "type": "string", + "format": "nsid" + } + }, + "description": "Operation which deletes an existing record." + }, + "update": { + "type": "object", + "required": [ + "collection", + "rkey", + "value" + ], + "properties": { + "rkey": { + "type": "string", + "format": "record-key" + }, + "value": { + "type": "unknown" + }, + "collection": { + "type": "string", + "format": "nsid" + } + }, + "description": "Operation which updates an existing record." + }, + "createResult": { + "type": "object", + "required": [ + "uri", + "cid" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "validationStatus": { + "type": "string", + "knownValues": [ + "valid", + "unknown" + ] + } + } + }, + "deleteResult": { + "type": "object", + "required": [], + "properties": {} + }, + "updateResult": { + "type": "object", + "required": [ + "uri", + "cid" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "validationStatus": { + "type": "string", + "knownValues": [ + "valid", + "unknown" + ] + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/createRecord.json b/lexicons/com/atproto/repo/createRecord.json new file mode 100644 index 0000000000..2483457b9e --- /dev/null +++ b/lexicons/com/atproto/repo/createRecord.json @@ -0,0 +1,90 @@ +{ + "id": "com.atproto.repo.createRecord", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "repo", + "collection", + "record" + ], + "properties": { + "repo": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo (aka, current account)." + }, + "rkey": { + "type": "string", + "format": "record-key", + "maxLength": 512, + "description": "The Record Key." + }, + "record": { + "type": "unknown", + "description": "The record itself. Must contain a $type field." + }, + "validate": { + "type": "boolean", + "description": "Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons." + }, + "collection": { + "type": "string", + "format": "nsid", + "description": "The NSID of the record collection." + }, + "swapCommit": { + "type": "string", + "format": "cid", + "description": "Compare and swap with the previous commit by CID." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidSwap", + "description": "Indicates that 'swapCommit' didn't match current repo commit." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "uri", + "cid" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "commit": { + "ref": "com.atproto.repo.defs#commitMeta", + "type": "ref" + }, + "validationStatus": { + "type": "string", + "knownValues": [ + "valid", + "unknown" + ] + } + } + }, + "encoding": "application/json" + }, + "description": "Create a single new repository record. Requires auth, implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/defs.json b/lexicons/com/atproto/repo/defs.json new file mode 100644 index 0000000000..f0d13f7d45 --- /dev/null +++ b/lexicons/com/atproto/repo/defs.json @@ -0,0 +1,24 @@ +{ + "id": "com.atproto.repo.defs", + "defs": { + "commitMeta": { + "type": "object", + "required": [ + "cid", + "rev" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "rev": { + "type": "string", + "format": "tid" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/deleteRecord.json b/lexicons/com/atproto/repo/deleteRecord.json new file mode 100644 index 0000000000..21a25165de --- /dev/null +++ b/lexicons/com/atproto/repo/deleteRecord.json @@ -0,0 +1,66 @@ +{ + "id": "com.atproto.repo.deleteRecord", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "repo", + "collection", + "rkey" + ], + "properties": { + "repo": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo (aka, current account)." + }, + "rkey": { + "type": "string", + "format": "record-key", + "description": "The Record Key." + }, + "collection": { + "type": "string", + "format": "nsid", + "description": "The NSID of the record collection." + }, + "swapCommit": { + "type": "string", + "format": "cid", + "description": "Compare and swap with the previous commit by CID." + }, + "swapRecord": { + "type": "string", + "format": "cid", + "description": "Compare and swap with the previous record by CID." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidSwap" + } + ], + "output": { + "schema": { + "type": "object", + "properties": { + "commit": { + "ref": "com.atproto.repo.defs#commitMeta", + "type": "ref" + } + } + }, + "encoding": "application/json" + }, + "description": "Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/describeRepo.json b/lexicons/com/atproto/repo/describeRepo.json new file mode 100644 index 0000000000..05e9cb42cd --- /dev/null +++ b/lexicons/com/atproto/repo/describeRepo.json @@ -0,0 +1,63 @@ +{ + "id": "com.atproto.repo.describeRepo", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "handle", + "did", + "didDoc", + "collections", + "handleIsCorrect" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "didDoc": { + "type": "unknown", + "description": "The complete DID document for this account." + }, + "handle": { + "type": "string", + "format": "handle" + }, + "collections": { + "type": "array", + "items": { + "type": "string", + "format": "nsid" + }, + "description": "List of all the collections (NSIDs) for which this repo contains at least one record." + }, + "handleIsCorrect": { + "type": "boolean", + "description": "Indicates if handle is currently valid (resolves bi-directionally)" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "repo" + ], + "properties": { + "repo": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo." + } + } + }, + "description": "Get information about an account and repository, including the list of collections. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/getRecord.json b/lexicons/com/atproto/repo/getRecord.json new file mode 100644 index 0000000000..ffbaf8ee74 --- /dev/null +++ b/lexicons/com/atproto/repo/getRecord.json @@ -0,0 +1,69 @@ +{ + "id": "com.atproto.repo.getRecord", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "RecordNotFound" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "uri", + "value" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "value": { + "type": "unknown" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "repo", + "collection", + "rkey" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid", + "description": "The CID of the version of the record. If not specified, then return the most recent version." + }, + "repo": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo." + }, + "rkey": { + "type": "string", + "format": "record-key", + "description": "The Record Key." + }, + "collection": { + "type": "string", + "format": "nsid", + "description": "The NSID of the record collection." + } + } + }, + "description": "Get a single record from a repository. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/importRepo.json b/lexicons/com/atproto/repo/importRepo.json new file mode 100644 index 0000000000..897e329160 --- /dev/null +++ b/lexicons/com/atproto/repo/importRepo.json @@ -0,0 +1,14 @@ +{ + "id": "com.atproto.repo.importRepo", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "application/vnd.ipld.car" + }, + "description": "Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/listMissingBlobs.json b/lexicons/com/atproto/repo/listMissingBlobs.json new file mode 100644 index 0000000000..41c831af66 --- /dev/null +++ b/lexicons/com/atproto/repo/listMissingBlobs.json @@ -0,0 +1,63 @@ +{ + "id": "com.atproto.repo.listMissingBlobs", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "blobs" + ], + "properties": { + "blobs": { + "type": "array", + "items": { + "ref": "#recordBlob", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 500, + "maximum": 1000, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow." + }, + "recordBlob": { + "type": "object", + "required": [ + "cid", + "recordUri" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "recordUri": { + "type": "string", + "format": "at-uri" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/listRecords.json b/lexicons/com/atproto/repo/listRecords.json new file mode 100644 index 0000000000..c34f519ed8 --- /dev/null +++ b/lexicons/com/atproto/repo/listRecords.json @@ -0,0 +1,86 @@ +{ + "id": "com.atproto.repo.listRecords", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "records" + ], + "properties": { + "cursor": { + "type": "string" + }, + "records": { + "type": "array", + "items": { + "ref": "#record", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "repo", + "collection" + ], + "properties": { + "repo": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo." + }, + "limit": { + "type": "integer", + "default": 50, + "maximum": 100, + "minimum": 1, + "description": "The number of records to return." + }, + "cursor": { + "type": "string" + }, + "reverse": { + "type": "boolean", + "description": "Flag to reverse the order of the returned records." + }, + "collection": { + "type": "string", + "format": "nsid", + "description": "The NSID of the record type." + } + } + }, + "description": "List a range of records in a repository, matching a specific collection. Does not require auth." + }, + "record": { + "type": "object", + "required": [ + "uri", + "cid", + "value" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "value": { + "type": "unknown" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/putRecord.json b/lexicons/com/atproto/repo/putRecord.json new file mode 100644 index 0000000000..6584a2048a --- /dev/null +++ b/lexicons/com/atproto/repo/putRecord.json @@ -0,0 +1,98 @@ +{ + "id": "com.atproto.repo.putRecord", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "nullable": [ + "swapRecord" + ], + "required": [ + "repo", + "collection", + "rkey", + "record" + ], + "properties": { + "repo": { + "type": "string", + "format": "at-identifier", + "description": "The handle or DID of the repo (aka, current account)." + }, + "rkey": { + "type": "string", + "format": "record-key", + "maxLength": 512, + "description": "The Record Key." + }, + "record": { + "type": "unknown", + "description": "The record to write." + }, + "validate": { + "type": "boolean", + "description": "Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons." + }, + "collection": { + "type": "string", + "format": "nsid", + "description": "The NSID of the record collection." + }, + "swapCommit": { + "type": "string", + "format": "cid", + "description": "Compare and swap with the previous commit by CID." + }, + "swapRecord": { + "type": "string", + "format": "cid", + "description": "Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidSwap" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "uri", + "cid" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "commit": { + "ref": "com.atproto.repo.defs#commitMeta", + "type": "ref" + }, + "validationStatus": { + "type": "string", + "knownValues": [ + "valid", + "unknown" + ] + } + } + }, + "encoding": "application/json" + }, + "description": "Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/repo/strongRef.json b/lexicons/com/atproto/repo/strongRef.json new file mode 100644 index 0000000000..f45cca3908 --- /dev/null +++ b/lexicons/com/atproto/repo/strongRef.json @@ -0,0 +1,25 @@ +{ + "id": "com.atproto.repo.strongRef", + "defs": { + "main": { + "type": "object", + "required": [ + "uri", + "cid" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "uri": { + "type": "string", + "format": "at-uri" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1, + "description": "A URI with a content-hash fingerprint." +} diff --git a/lexicons/com/atproto/repo/uploadBlob.json b/lexicons/com/atproto/repo/uploadBlob.json new file mode 100644 index 0000000000..9b1bdd4a93 --- /dev/null +++ b/lexicons/com/atproto/repo/uploadBlob.json @@ -0,0 +1,28 @@ +{ + "id": "com.atproto.repo.uploadBlob", + "defs": { + "main": { + "type": "procedure", + "input": { + "encoding": "*/*" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "blob" + ], + "properties": { + "blob": { + "type": "blob" + } + } + }, + "encoding": "application/json" + }, + "description": "Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/activateAccount.json b/lexicons/com/atproto/server/activateAccount.json new file mode 100644 index 0000000000..459607c827 --- /dev/null +++ b/lexicons/com/atproto/server/activateAccount.json @@ -0,0 +1,11 @@ +{ + "id": "com.atproto.server.activateAccount", + "defs": { + "main": { + "type": "procedure", + "description": "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/checkAccountStatus.json b/lexicons/com/atproto/server/checkAccountStatus.json new file mode 100644 index 0000000000..289ca52c2e --- /dev/null +++ b/lexicons/com/atproto/server/checkAccountStatus.json @@ -0,0 +1,58 @@ +{ + "id": "com.atproto.server.checkAccountStatus", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "activated", + "validDid", + "repoCommit", + "repoRev", + "repoBlocks", + "indexedRecords", + "privateStateValues", + "expectedBlobs", + "importedBlobs" + ], + "properties": { + "repoRev": { + "type": "string" + }, + "validDid": { + "type": "boolean" + }, + "activated": { + "type": "boolean" + }, + "repoBlocks": { + "type": "integer" + }, + "repoCommit": { + "type": "string", + "format": "cid" + }, + "expectedBlobs": { + "type": "integer" + }, + "importedBlobs": { + "type": "integer" + }, + "indexedRecords": { + "type": "integer" + }, + "privateStateValues": { + "type": "integer" + } + } + }, + "encoding": "application/json" + }, + "description": "Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/confirmEmail.json b/lexicons/com/atproto/server/confirmEmail.json new file mode 100644 index 0000000000..4412676285 --- /dev/null +++ b/lexicons/com/atproto/server/confirmEmail.json @@ -0,0 +1,43 @@ +{ + "id": "com.atproto.server.confirmEmail", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "email", + "token" + ], + "properties": { + "email": { + "type": "string" + }, + "token": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "AccountNotFound" + }, + { + "name": "ExpiredToken" + }, + { + "name": "InvalidToken" + }, + { + "name": "InvalidEmail" + } + ], + "description": "Confirm an email using a token from com.atproto.server.requestEmailConfirmation." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/createAccount.json b/lexicons/com/atproto/server/createAccount.json new file mode 100644 index 0000000000..5b14ca30ce --- /dev/null +++ b/lexicons/com/atproto/server/createAccount.json @@ -0,0 +1,113 @@ +{ + "id": "com.atproto.server.createAccount", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "handle" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "Pre-existing atproto DID, being imported to a new account." + }, + "email": { + "type": "string" + }, + "plcOp": { + "type": "unknown", + "description": "A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented." + }, + "handle": { + "type": "string", + "format": "handle", + "description": "Requested handle for the account." + }, + "password": { + "type": "string", + "description": "Initial account password. May need to meet instance-specific password strength requirements." + }, + "inviteCode": { + "type": "string" + }, + "recoveryKey": { + "type": "string", + "description": "DID PLC rotation key (aka, recovery key) to be included in PLC creation operation." + }, + "verificationCode": { + "type": "string" + }, + "verificationPhone": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "InvalidHandle" + }, + { + "name": "InvalidPassword" + }, + { + "name": "InvalidInviteCode" + }, + { + "name": "HandleNotAvailable" + }, + { + "name": "UnsupportedDomain" + }, + { + "name": "UnresolvableDid" + }, + { + "name": "IncompatibleDidDoc" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "accessJwt", + "refreshJwt", + "handle", + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID of the new account." + }, + "didDoc": { + "type": "unknown", + "description": "Complete DID document." + }, + "handle": { + "type": "string", + "format": "handle" + }, + "accessJwt": { + "type": "string" + }, + "refreshJwt": { + "type": "string" + } + }, + "description": "Account login session returned on successful account creation." + }, + "encoding": "application/json" + }, + "description": "Create an account. Implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/createAppPassword.json b/lexicons/com/atproto/server/createAppPassword.json new file mode 100644 index 0000000000..72e24ba7b2 --- /dev/null +++ b/lexicons/com/atproto/server/createAppPassword.json @@ -0,0 +1,65 @@ +{ + "id": "com.atproto.server.createAppPassword", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "A short name for the App Password, to help distinguish them." + }, + "privileged": { + "type": "boolean", + "description": "If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "AccountTakedown" + } + ], + "output": { + "schema": { + "ref": "#appPassword", + "type": "ref" + }, + "encoding": "application/json" + }, + "description": "Create an App Password." + }, + "appPassword": { + "type": "object", + "required": [ + "name", + "password", + "createdAt" + ], + "properties": { + "name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "privileged": { + "type": "boolean" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/createInviteCode.json b/lexicons/com/atproto/server/createInviteCode.json new file mode 100644 index 0000000000..d355ddfec3 --- /dev/null +++ b/lexicons/com/atproto/server/createInviteCode.json @@ -0,0 +1,43 @@ +{ + "id": "com.atproto.server.createInviteCode", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "useCount" + ], + "properties": { + "useCount": { + "type": "integer" + }, + "forAccount": { + "type": "string", + "format": "did" + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "code" + ], + "properties": { + "code": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "description": "Create an invite code." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/createInviteCodes.json b/lexicons/com/atproto/server/createInviteCodes.json new file mode 100644 index 0000000000..4843e28dc0 --- /dev/null +++ b/lexicons/com/atproto/server/createInviteCodes.json @@ -0,0 +1,73 @@ +{ + "id": "com.atproto.server.createInviteCodes", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "codeCount", + "useCount" + ], + "properties": { + "useCount": { + "type": "integer" + }, + "codeCount": { + "type": "integer", + "default": 1 + }, + "forAccounts": { + "type": "array", + "items": { + "type": "string", + "format": "did" + } + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "codes" + ], + "properties": { + "codes": { + "type": "array", + "items": { + "ref": "#accountCodes", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "description": "Create invite codes." + }, + "accountCodes": { + "type": "object", + "required": [ + "account", + "codes" + ], + "properties": { + "codes": { + "type": "array", + "items": { + "type": "string" + } + }, + "account": { + "type": "string" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/createSession.json b/lexicons/com/atproto/server/createSession.json new file mode 100644 index 0000000000..1b353cbb59 --- /dev/null +++ b/lexicons/com/atproto/server/createSession.json @@ -0,0 +1,97 @@ +{ + "id": "com.atproto.server.createSession", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "identifier", + "password" + ], + "properties": { + "password": { + "type": "string" + }, + "identifier": { + "type": "string", + "description": "Handle or other identifier supported by the server for the authenticating user." + }, + "allowTakendown": { + "type": "boolean", + "description": "When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned" + }, + "authFactorToken": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "AccountTakedown" + }, + { + "name": "AuthFactorTokenRequired" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "accessJwt", + "refreshJwt", + "handle", + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "email": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "didDoc": { + "type": "unknown" + }, + "handle": { + "type": "string", + "format": "handle" + }, + "status": { + "type": "string", + "description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.", + "knownValues": [ + "takendown", + "suspended", + "deactivated" + ] + }, + "accessJwt": { + "type": "string" + }, + "refreshJwt": { + "type": "string" + }, + "emailConfirmed": { + "type": "boolean" + }, + "emailAuthFactor": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "description": "Create an authentication session." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/deactivateAccount.json b/lexicons/com/atproto/server/deactivateAccount.json new file mode 100644 index 0000000000..0607e0efc6 --- /dev/null +++ b/lexicons/com/atproto/server/deactivateAccount.json @@ -0,0 +1,24 @@ +{ + "id": "com.atproto.server.deactivateAccount", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "properties": { + "deleteAfter": { + "type": "string", + "format": "datetime", + "description": "A recommendation to server as to how long they should hold onto the deactivated account before deleting." + } + } + }, + "encoding": "application/json" + }, + "description": "Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/defs.json b/lexicons/com/atproto/server/defs.json new file mode 100644 index 0000000000..60cdf91571 --- /dev/null +++ b/lexicons/com/atproto/server/defs.json @@ -0,0 +1,64 @@ +{ + "id": "com.atproto.server.defs", + "defs": { + "inviteCode": { + "type": "object", + "required": [ + "code", + "available", + "disabled", + "forAccount", + "createdBy", + "createdAt", + "uses" + ], + "properties": { + "code": { + "type": "string" + }, + "uses": { + "type": "array", + "items": { + "ref": "#inviteCodeUse", + "type": "ref" + } + }, + "disabled": { + "type": "boolean" + }, + "available": { + "type": "integer" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "createdBy": { + "type": "string" + }, + "forAccount": { + "type": "string" + } + } + }, + "inviteCodeUse": { + "type": "object", + "required": [ + "usedBy", + "usedAt" + ], + "properties": { + "usedAt": { + "type": "string", + "format": "datetime" + }, + "usedBy": { + "type": "string", + "format": "did" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/deleteAccount.json b/lexicons/com/atproto/server/deleteAccount.json new file mode 100644 index 0000000000..6743a74431 --- /dev/null +++ b/lexicons/com/atproto/server/deleteAccount.json @@ -0,0 +1,42 @@ +{ + "id": "com.atproto.server.deleteAccount", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "did", + "password", + "token" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "token": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "ExpiredToken" + }, + { + "name": "InvalidToken" + } + ], + "description": "Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/deleteSession.json b/lexicons/com/atproto/server/deleteSession.json new file mode 100644 index 0000000000..e2cc504c39 --- /dev/null +++ b/lexicons/com/atproto/server/deleteSession.json @@ -0,0 +1,19 @@ +{ + "id": "com.atproto.server.deleteSession", + "defs": { + "main": { + "type": "procedure", + "errors": [ + { + "name": "InvalidToken" + }, + { + "name": "ExpiredToken" + } + ], + "description": "Delete the current session. Requires auth using the 'refreshJwt' (not the 'accessJwt')." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/describeServer.json b/lexicons/com/atproto/server/describeServer.json new file mode 100644 index 0000000000..25dc2d2912 --- /dev/null +++ b/lexicons/com/atproto/server/describeServer.json @@ -0,0 +1,73 @@ +{ + "id": "com.atproto.server.describeServer", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "did", + "availableUserDomains" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "links": { + "ref": "#links", + "type": "ref", + "description": "URLs of service policy documents." + }, + "contact": { + "ref": "#contact", + "type": "ref", + "description": "Contact information" + }, + "inviteCodeRequired": { + "type": "boolean", + "description": "If true, an invite code must be supplied to create an account on this instance." + }, + "availableUserDomains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of domain suffixes that can be used in account handles." + }, + "phoneVerificationRequired": { + "type": "boolean", + "description": "If true, a phone verification token must be supplied to create an account on this instance." + } + } + }, + "encoding": "application/json" + }, + "description": "Describes the server's account creation requirements and capabilities. Implemented by PDS." + }, + "links": { + "type": "object", + "properties": { + "privacyPolicy": { + "type": "string", + "format": "uri" + }, + "termsOfService": { + "type": "string", + "format": "uri" + } + } + }, + "contact": { + "type": "object", + "properties": { + "email": { + "type": "string" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/getAccountInviteCodes.json b/lexicons/com/atproto/server/getAccountInviteCodes.json new file mode 100644 index 0000000000..6b6bb1fa32 --- /dev/null +++ b/lexicons/com/atproto/server/getAccountInviteCodes.json @@ -0,0 +1,48 @@ +{ + "id": "com.atproto.server.getAccountInviteCodes", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "DuplicateCreate" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "codes" + ], + "properties": { + "codes": { + "type": "array", + "items": { + "ref": "com.atproto.server.defs#inviteCode", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "includeUsed": { + "type": "boolean", + "default": true + }, + "createAvailable": { + "type": "boolean", + "default": true, + "description": "Controls whether any new 'earned' but not 'created' invites should be created." + } + } + }, + "description": "Get all invite codes for the current account. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/getServiceAuth.json b/lexicons/com/atproto/server/getServiceAuth.json new file mode 100644 index 0000000000..80f5a1148c --- /dev/null +++ b/lexicons/com/atproto/server/getServiceAuth.json @@ -0,0 +1,53 @@ +{ + "id": "com.atproto.server.getServiceAuth", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "BadExpiration", + "description": "Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes." + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "token" + ], + "properties": { + "token": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "aud" + ], + "properties": { + "aud": { + "type": "string", + "format": "did", + "description": "The DID of the service that the token will be used to authenticate with" + }, + "exp": { + "type": "integer", + "description": "The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope." + }, + "lxm": { + "type": "string", + "format": "nsid", + "description": "Lexicon (XRPC) method to bind the requested token to" + } + } + }, + "description": "Get a signed token on behalf of the requesting DID for the requested service." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/getSession.json b/lexicons/com/atproto/server/getSession.json new file mode 100644 index 0000000000..8e9810d72e --- /dev/null +++ b/lexicons/com/atproto/server/getSession.json @@ -0,0 +1,55 @@ +{ + "id": "com.atproto.server.getSession", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "handle", + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "email": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "didDoc": { + "type": "unknown" + }, + "handle": { + "type": "string", + "format": "handle" + }, + "status": { + "type": "string", + "description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.", + "knownValues": [ + "takendown", + "suspended", + "deactivated" + ] + }, + "emailConfirmed": { + "type": "boolean" + }, + "emailAuthFactor": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "description": "Get information about the current auth session. Requires auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/listAppPasswords.json b/lexicons/com/atproto/server/listAppPasswords.json new file mode 100644 index 0000000000..8ff2678ea3 --- /dev/null +++ b/lexicons/com/atproto/server/listAppPasswords.json @@ -0,0 +1,53 @@ +{ + "id": "com.atproto.server.listAppPasswords", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "AccountTakedown" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "passwords" + ], + "properties": { + "passwords": { + "type": "array", + "items": { + "ref": "#appPassword", + "type": "ref" + } + } + } + }, + "encoding": "application/json" + }, + "description": "List all App Passwords." + }, + "appPassword": { + "type": "object", + "required": [ + "name", + "createdAt" + ], + "properties": { + "name": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "datetime" + }, + "privileged": { + "type": "boolean" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/refreshSession.json b/lexicons/com/atproto/server/refreshSession.json new file mode 100644 index 0000000000..3924c2b665 --- /dev/null +++ b/lexicons/com/atproto/server/refreshSession.json @@ -0,0 +1,74 @@ +{ + "id": "com.atproto.server.refreshSession", + "defs": { + "main": { + "type": "procedure", + "errors": [ + { + "name": "AccountTakedown" + }, + { + "name": "InvalidToken" + }, + { + "name": "ExpiredToken" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "accessJwt", + "refreshJwt", + "handle", + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "email": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "didDoc": { + "type": "unknown" + }, + "handle": { + "type": "string", + "format": "handle" + }, + "status": { + "type": "string", + "description": "Hosting status of the account. If not specified, then assume 'active'.", + "knownValues": [ + "takendown", + "suspended", + "deactivated" + ] + }, + "accessJwt": { + "type": "string" + }, + "refreshJwt": { + "type": "string" + }, + "emailConfirmed": { + "type": "boolean" + }, + "emailAuthFactor": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "description": "Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt')." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/requestAccountDelete.json b/lexicons/com/atproto/server/requestAccountDelete.json new file mode 100644 index 0000000000..94c21ae5a6 --- /dev/null +++ b/lexicons/com/atproto/server/requestAccountDelete.json @@ -0,0 +1,11 @@ +{ + "id": "com.atproto.server.requestAccountDelete", + "defs": { + "main": { + "type": "procedure", + "description": "Initiate a user account deletion via email." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/requestEmailConfirmation.json b/lexicons/com/atproto/server/requestEmailConfirmation.json new file mode 100644 index 0000000000..808c2aa4f7 --- /dev/null +++ b/lexicons/com/atproto/server/requestEmailConfirmation.json @@ -0,0 +1,11 @@ +{ + "id": "com.atproto.server.requestEmailConfirmation", + "defs": { + "main": { + "type": "procedure", + "description": "Request an email with a code to confirm ownership of email." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/requestEmailUpdate.json b/lexicons/com/atproto/server/requestEmailUpdate.json new file mode 100644 index 0000000000..158ba0f990 --- /dev/null +++ b/lexicons/com/atproto/server/requestEmailUpdate.json @@ -0,0 +1,25 @@ +{ + "id": "com.atproto.server.requestEmailUpdate", + "defs": { + "main": { + "type": "procedure", + "output": { + "schema": { + "type": "object", + "required": [ + "tokenRequired" + ], + "properties": { + "tokenRequired": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "description": "Request a token in order to update email." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/requestPasswordReset.json b/lexicons/com/atproto/server/requestPasswordReset.json new file mode 100644 index 0000000000..fdb81f40e4 --- /dev/null +++ b/lexicons/com/atproto/server/requestPasswordReset.json @@ -0,0 +1,25 @@ +{ + "id": "com.atproto.server.requestPasswordReset", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "description": "Initiate a user account password reset via email." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/reserveSigningKey.json b/lexicons/com/atproto/server/reserveSigningKey.json new file mode 100644 index 0000000000..cd54f637fa --- /dev/null +++ b/lexicons/com/atproto/server/reserveSigningKey.json @@ -0,0 +1,39 @@ +{ + "id": "com.atproto.server.reserveSigningKey", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID to reserve a key for." + } + } + }, + "encoding": "application/json" + }, + "output": { + "schema": { + "type": "object", + "required": [ + "signingKey" + ], + "properties": { + "signingKey": { + "type": "string", + "description": "The public key for the reserved signing key, in did:key serialization." + } + } + }, + "encoding": "application/json" + }, + "description": "Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/resetPassword.json b/lexicons/com/atproto/server/resetPassword.json new file mode 100644 index 0000000000..b8857cfca0 --- /dev/null +++ b/lexicons/com/atproto/server/resetPassword.json @@ -0,0 +1,37 @@ +{ + "id": "com.atproto.server.resetPassword", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "token", + "password" + ], + "properties": { + "token": { + "type": "string" + }, + "password": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "ExpiredToken" + }, + { + "name": "InvalidToken" + } + ], + "description": "Reset a user account password using a token." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/revokeAppPassword.json b/lexicons/com/atproto/server/revokeAppPassword.json new file mode 100644 index 0000000000..362306cc96 --- /dev/null +++ b/lexicons/com/atproto/server/revokeAppPassword.json @@ -0,0 +1,25 @@ +{ + "id": "com.atproto.server.revokeAppPassword", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "description": "Revoke an App Password by name." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/server/updateEmail.json b/lexicons/com/atproto/server/updateEmail.json new file mode 100644 index 0000000000..a5390b4de3 --- /dev/null +++ b/lexicons/com/atproto/server/updateEmail.json @@ -0,0 +1,43 @@ +{ + "id": "com.atproto.server.updateEmail", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "token": { + "type": "string", + "description": "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed." + }, + "emailAuthFactor": { + "type": "boolean" + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "ExpiredToken" + }, + { + "name": "InvalidToken" + }, + { + "name": "TokenRequired" + } + ], + "description": "Update an account's email." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/defs.json b/lexicons/com/atproto/sync/defs.json new file mode 100644 index 0000000000..3f2f42fe8c --- /dev/null +++ b/lexicons/com/atproto/sync/defs.json @@ -0,0 +1,17 @@ +{ + "id": "com.atproto.sync.defs", + "defs": { + "hostStatus": { + "type": "string", + "knownValues": [ + "active", + "idle", + "offline", + "throttled", + "banned" + ] + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getBlob.json b/lexicons/com/atproto/sync/getBlob.json new file mode 100644 index 0000000000..b571d31736 --- /dev/null +++ b/lexicons/com/atproto/sync/getBlob.json @@ -0,0 +1,50 @@ +{ + "id": "com.atproto.sync.getBlob", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "BlobNotFound" + }, + { + "name": "RepoNotFound" + }, + { + "name": "RepoTakendown" + }, + { + "name": "RepoSuspended" + }, + { + "name": "RepoDeactivated" + } + ], + "output": { + "encoding": "*/*" + }, + "parameters": { + "type": "params", + "required": [ + "did", + "cid" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid", + "description": "The CID of the blob to fetch" + }, + "did": { + "type": "string", + "format": "did", + "description": "The DID of the account." + } + } + }, + "description": "Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getBlocks.json b/lexicons/com/atproto/sync/getBlocks.json new file mode 100644 index 0000000000..8cd269ecea --- /dev/null +++ b/lexicons/com/atproto/sync/getBlocks.json @@ -0,0 +1,52 @@ +{ + "id": "com.atproto.sync.getBlocks", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "BlockNotFound" + }, + { + "name": "RepoNotFound" + }, + { + "name": "RepoTakendown" + }, + { + "name": "RepoSuspended" + }, + { + "name": "RepoDeactivated" + } + ], + "output": { + "encoding": "application/vnd.ipld.car" + }, + "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" + } + } + } + }, + "description": "Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getCheckout.json b/lexicons/com/atproto/sync/getCheckout.json new file mode 100644 index 0000000000..9e5b0b3066 --- /dev/null +++ b/lexicons/com/atproto/sync/getCheckout.json @@ -0,0 +1,27 @@ +{ + "id": "com.atproto.sync.getCheckout", + "defs": { + "main": { + "type": "query", + "output": { + "encoding": "application/vnd.ipld.car" + }, + "parameters": { + "type": "params", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID of the repo." + } + } + }, + "description": "DEPRECATED - please use com.atproto.sync.getRepo instead" + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getHead.json b/lexicons/com/atproto/sync/getHead.json new file mode 100644 index 0000000000..fc5af39d45 --- /dev/null +++ b/lexicons/com/atproto/sync/getHead.json @@ -0,0 +1,44 @@ +{ + "id": "com.atproto.sync.getHead", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "HeadNotFound" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "root" + ], + "properties": { + "root": { + "type": "string", + "format": "cid" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID of the repo." + } + } + }, + "description": "DEPRECATED - please use com.atproto.sync.getLatestCommit instead" + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getHostStatus.json b/lexicons/com/atproto/sync/getHostStatus.json new file mode 100644 index 0000000000..86d563fa24 --- /dev/null +++ b/lexicons/com/atproto/sync/getHostStatus.json @@ -0,0 +1,54 @@ +{ + "id": "com.atproto.sync.getHostStatus", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "HostNotFound" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "hostname" + ], + "properties": { + "seq": { + "type": "integer", + "description": "Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)." + }, + "status": { + "ref": "com.atproto.sync.defs#hostStatus", + "type": "ref" + }, + "hostname": { + "type": "string" + }, + "accountCount": { + "type": "integer", + "description": "Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts." + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "hostname" + ], + "properties": { + "hostname": { + "type": "string", + "description": "Hostname of the host (eg, PDS or relay) being queried." + } + } + }, + "description": "Returns information about a specified upstream host, as consumed by the server. Implemented by relays." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getLatestCommit.json b/lexicons/com/atproto/sync/getLatestCommit.json new file mode 100644 index 0000000000..e8ce2cd800 --- /dev/null +++ b/lexicons/com/atproto/sync/getLatestCommit.json @@ -0,0 +1,58 @@ +{ + "id": "com.atproto.sync.getLatestCommit", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "RepoNotFound" + }, + { + "name": "RepoTakendown" + }, + { + "name": "RepoSuspended" + }, + { + "name": "RepoDeactivated" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "cid", + "rev" + ], + "properties": { + "cid": { + "type": "string", + "format": "cid" + }, + "rev": { + "type": "string", + "format": "tid" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID of the repo." + } + } + }, + "description": "Get the current commit CID & revision of the specified repo. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getRecord.json b/lexicons/com/atproto/sync/getRecord.json new file mode 100644 index 0000000000..330826046d --- /dev/null +++ b/lexicons/com/atproto/sync/getRecord.json @@ -0,0 +1,55 @@ +{ + "id": "com.atproto.sync.getRecord", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "RecordNotFound" + }, + { + "name": "RepoNotFound" + }, + { + "name": "RepoTakendown" + }, + { + "name": "RepoSuspended" + }, + { + "name": "RepoDeactivated" + } + ], + "output": { + "encoding": "application/vnd.ipld.car" + }, + "parameters": { + "type": "params", + "required": [ + "did", + "collection", + "rkey" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID of the repo." + }, + "rkey": { + "type": "string", + "format": "record-key", + "description": "Record Key" + }, + "collection": { + "type": "string", + "format": "nsid" + } + } + }, + "description": "Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getRepo.json b/lexicons/com/atproto/sync/getRepo.json new file mode 100644 index 0000000000..3ec4c0489b --- /dev/null +++ b/lexicons/com/atproto/sync/getRepo.json @@ -0,0 +1,46 @@ +{ + "id": "com.atproto.sync.getRepo", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "RepoNotFound" + }, + { + "name": "RepoTakendown" + }, + { + "name": "RepoSuspended" + }, + { + "name": "RepoDeactivated" + } + ], + "output": { + "encoding": "application/vnd.ipld.car" + }, + "parameters": { + "type": "params", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID of the repo." + }, + "since": { + "type": "string", + "format": "tid", + "description": "The revision ('rev') of the repo to create a diff from." + } + } + }, + "description": "Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/getRepoStatus.json b/lexicons/com/atproto/sync/getRepoStatus.json new file mode 100644 index 0000000000..698b80d509 --- /dev/null +++ b/lexicons/com/atproto/sync/getRepoStatus.json @@ -0,0 +1,65 @@ +{ + "id": "com.atproto.sync.getRepoStatus", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "RepoNotFound" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "did", + "active" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "rev": { + "type": "string", + "format": "tid", + "description": "Optional field, the current rev of the repo, if active=true" + }, + "active": { + "type": "boolean" + }, + "status": { + "type": "string", + "description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.", + "knownValues": [ + "takendown", + "suspended", + "deleted", + "deactivated", + "desynchronized", + "throttled" + ] + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID of the repo." + } + } + }, + "description": "Get the hosting status for a repository, on this server. Expected to be implemented by PDS and Relay." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/listBlobs.json b/lexicons/com/atproto/sync/listBlobs.json new file mode 100644 index 0000000000..ee98c6ecb6 --- /dev/null +++ b/lexicons/com/atproto/sync/listBlobs.json @@ -0,0 +1,73 @@ +{ + "id": "com.atproto.sync.listBlobs", + "defs": { + "main": { + "type": "query", + "errors": [ + { + "name": "RepoNotFound" + }, + { + "name": "RepoTakendown" + }, + { + "name": "RepoSuspended" + }, + { + "name": "RepoDeactivated" + } + ], + "output": { + "schema": { + "type": "object", + "required": [ + "cids" + ], + "properties": { + "cids": { + "type": "array", + "items": { + "type": "string", + "format": "cid" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The DID of the repo." + }, + "limit": { + "type": "integer", + "default": 500, + "maximum": 1000, + "minimum": 1 + }, + "since": { + "type": "string", + "format": "tid", + "description": "Optional revision of the repo to list blobs since." + }, + "cursor": { + "type": "string" + } + } + }, + "description": "List blob CIDs for an account, since some repo revision. Does not require auth; implemented by PDS." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/listHosts.json b/lexicons/com/atproto/sync/listHosts.json new file mode 100644 index 0000000000..66f78df6e1 --- /dev/null +++ b/lexicons/com/atproto/sync/listHosts.json @@ -0,0 +1,70 @@ +{ + "id": "com.atproto.sync.listHosts", + "defs": { + "host": { + "type": "object", + "required": [ + "hostname" + ], + "properties": { + "seq": { + "type": "integer", + "description": "Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)." + }, + "status": { + "ref": "com.atproto.sync.defs#hostStatus", + "type": "ref" + }, + "hostname": { + "type": "string", + "description": "hostname of server; not a URL (no scheme)" + }, + "accountCount": { + "type": "integer" + } + } + }, + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "hosts" + ], + "properties": { + "hosts": { + "type": "array", + "items": { + "ref": "#host", + "type": "ref" + }, + "description": "Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first." + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 200, + "maximum": 1000, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/listRepos.json b/lexicons/com/atproto/sync/listRepos.json new file mode 100644 index 0000000000..0341bccc9d --- /dev/null +++ b/lexicons/com/atproto/sync/listRepos.json @@ -0,0 +1,84 @@ +{ + "id": "com.atproto.sync.listRepos", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "repos" + ], + "properties": { + "repos": { + "type": "array", + "items": { + "ref": "#repo", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "properties": { + "limit": { + "type": "integer", + "default": 500, + "maximum": 1000, + "minimum": 1 + }, + "cursor": { + "type": "string" + } + } + }, + "description": "Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay." + }, + "repo": { + "type": "object", + "required": [ + "did", + "head", + "rev" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "rev": { + "type": "string", + "format": "tid" + }, + "head": { + "type": "string", + "format": "cid", + "description": "Current repo commit CID" + }, + "active": { + "type": "boolean" + }, + "status": { + "type": "string", + "description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.", + "knownValues": [ + "takendown", + "suspended", + "deleted", + "deactivated", + "desynchronized", + "throttled" + ] + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/listReposByCollection.json b/lexicons/com/atproto/sync/listReposByCollection.json new file mode 100644 index 0000000000..c472ae9102 --- /dev/null +++ b/lexicons/com/atproto/sync/listReposByCollection.json @@ -0,0 +1,66 @@ +{ + "id": "com.atproto.sync.listReposByCollection", + "defs": { + "main": { + "type": "query", + "output": { + "schema": { + "type": "object", + "required": [ + "repos" + ], + "properties": { + "repos": { + "type": "array", + "items": { + "ref": "#repo", + "type": "ref" + } + }, + "cursor": { + "type": "string" + } + } + }, + "encoding": "application/json" + }, + "parameters": { + "type": "params", + "required": [ + "collection" + ], + "properties": { + "limit": { + "type": "integer", + "default": 500, + "maximum": 2000, + "minimum": 1, + "description": "Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists." + }, + "cursor": { + "type": "string" + }, + "collection": { + "type": "string", + "format": "nsid" + } + } + }, + "description": "Enumerates all the DIDs which have records with the given collection NSID." + }, + "repo": { + "type": "object", + "required": [ + "did" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/notifyOfUpdate.json b/lexicons/com/atproto/sync/notifyOfUpdate.json new file mode 100644 index 0000000000..aa674c7380 --- /dev/null +++ b/lexicons/com/atproto/sync/notifyOfUpdate.json @@ -0,0 +1,26 @@ +{ + "id": "com.atproto.sync.notifyOfUpdate", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "hostname" + ], + "properties": { + "hostname": { + "type": "string", + "description": "Hostname of the current service (usually a PDS) that is notifying of update." + } + } + }, + "encoding": "application/json" + }, + "description": "Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl" + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/requestCrawl.json b/lexicons/com/atproto/sync/requestCrawl.json new file mode 100644 index 0000000000..6245282cc8 --- /dev/null +++ b/lexicons/com/atproto/sync/requestCrawl.json @@ -0,0 +1,31 @@ +{ + "id": "com.atproto.sync.requestCrawl", + "defs": { + "main": { + "type": "procedure", + "input": { + "schema": { + "type": "object", + "required": [ + "hostname" + ], + "properties": { + "hostname": { + "type": "string", + "description": "Hostname of the current service (eg, PDS) that is requesting to be crawled." + } + } + }, + "encoding": "application/json" + }, + "errors": [ + { + "name": "HostBanned" + } + ], + "description": "Request a service to persistently crawl hosted repos. Expected use is new PDS instances declaring their existence to Relays. Does not require auth." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/sync/subscribeRepos.json b/lexicons/com/atproto/sync/subscribeRepos.json new file mode 100644 index 0000000000..4408da07e6 --- /dev/null +++ b/lexicons/com/atproto/sync/subscribeRepos.json @@ -0,0 +1,276 @@ +{ + "id": "com.atproto.sync.subscribeRepos", + "defs": { + "info": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "knownValues": [ + "OutdatedCursor" + ] + }, + "message": { + "type": "string" + } + } + }, + "main": { + "type": "subscription", + "errors": [ + { + "name": "FutureCursor" + }, + { + "name": "ConsumerTooSlow", + "description": "If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection." + } + ], + "message": { + "schema": { + "refs": [ + "#commit", + "#sync", + "#identity", + "#account", + "#info" + ], + "type": "union" + } + }, + "parameters": { + "type": "params", + "properties": { + "cursor": { + "type": "integer", + "description": "The last known event seq number to backfill from." + } + } + }, + "description": "Repository event stream, aka Firehose endpoint. Outputs repo commits with diff data, and identity update events, for all repositories on the current server. See the atproto specifications for details around stream sequencing, repo versioning, CAR diff format, and more. Public and does not require auth; implemented by PDS and Relay." + }, + "sync": { + "type": "object", + "required": [ + "seq", + "did", + "blocks", + "rev", + "time" + ], + "properties": { + "did": { + "type": "string", + "format": "did", + "description": "The account this repo event corresponds to. Must match that in the commit object." + }, + "rev": { + "type": "string", + "description": "The rev of the commit. This value must match that in the commit object." + }, + "seq": { + "type": "integer", + "description": "The stream sequence number of this message." + }, + "time": { + "type": "string", + "format": "datetime", + "description": "Timestamp of when this message was originally broadcast." + }, + "blocks": { + "type": "bytes", + "maxLength": 10000, + "description": "CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'." + } + }, + "description": "Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository." + }, + "commit": { + "type": "object", + "nullable": [ + "since" + ], + "required": [ + "seq", + "rebase", + "tooBig", + "repo", + "commit", + "rev", + "since", + "blocks", + "ops", + "blobs", + "time" + ], + "properties": { + "ops": { + "type": "array", + "items": { + "ref": "#repoOp", + "type": "ref", + "description": "List of repo mutation operations in this commit (eg, records created, updated, or deleted)." + }, + "maxLength": 200 + }, + "rev": { + "type": "string", + "format": "tid", + "description": "The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event." + }, + "seq": { + "type": "integer", + "description": "The stream sequence number of this message." + }, + "repo": { + "type": "string", + "format": "did", + "description": "The repo this event comes from. Note that all other message types name this field 'did'." + }, + "time": { + "type": "string", + "format": "datetime", + "description": "Timestamp of when this message was originally broadcast." + }, + "blobs": { + "type": "array", + "items": { + "type": "cid-link", + "description": "DEPRECATED -- will soon always be empty. List of new blobs (by CID) referenced by records in this commit." + } + }, + "since": { + "type": "string", + "format": "tid", + "description": "The rev of the last emitted commit from this repo (if any)." + }, + "blocks": { + "type": "bytes", + "maxLength": 2000000, + "description": "CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list." + }, + "commit": { + "type": "cid-link", + "description": "Repo commit object CID." + }, + "rebase": { + "type": "boolean", + "description": "DEPRECATED -- unused" + }, + "tooBig": { + "type": "boolean", + "description": "DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data." + }, + "prevData": { + "type": "cid-link", + "description": "The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose." + } + }, + "description": "Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature." + }, + "repoOp": { + "type": "object", + "nullable": [ + "cid" + ], + "required": [ + "action", + "path", + "cid" + ], + "properties": { + "cid": { + "type": "cid-link", + "description": "For creates and updates, the new record CID. For deletions, null." + }, + "path": { + "type": "string" + }, + "prev": { + "type": "cid-link", + "description": "For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined." + }, + "action": { + "type": "string", + "knownValues": [ + "create", + "update", + "delete" + ] + } + }, + "description": "A repo operation, ie a mutation of a single record." + }, + "account": { + "type": "object", + "required": [ + "seq", + "did", + "time", + "active" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "seq": { + "type": "integer" + }, + "time": { + "type": "string", + "format": "datetime" + }, + "active": { + "type": "boolean", + "description": "Indicates that the account has a repository which can be fetched from the host that emitted this event." + }, + "status": { + "type": "string", + "description": "If active=false, this optional field indicates a reason for why the account is not active.", + "knownValues": [ + "takendown", + "suspended", + "deleted", + "deactivated", + "desynchronized", + "throttled" + ] + } + }, + "description": "Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active." + }, + "identity": { + "type": "object", + "required": [ + "seq", + "did", + "time" + ], + "properties": { + "did": { + "type": "string", + "format": "did" + }, + "seq": { + "type": "integer" + }, + "time": { + "type": "string", + "format": "datetime" + }, + "handle": { + "type": "string", + "format": "handle", + "description": "The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details." + } + }, + "description": "Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/com/atproto/temp/checkHandleAvailability.json b/lexicons/com/atproto/temp/checkHandleAvailability.json new file mode 100644 index 0000000000..ffbdd6f732 --- /dev/null +++ b/lexicons/com/atproto/temp/checkHandleAvailability.json @@ -0,0 +1,88 @@ +{ + "lexicon": 1, + "id": "com.atproto.temp.checkHandleAvailability", + "defs": { + "main": { + "type": "query", + "description": "Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.", + "parameters": { + "type": "params", + "required": ["handle"], + "properties": { + "handle": { + "type": "string", + "format": "handle", + "description": "Tentative handle. Will be checked for availability or used to build handle suggestions." + }, + "email": { + "type": "string", + "description": "User-provided email. Might be used to build handle suggestions." + }, + "birthDate": { + "type": "string", + "format": "datetime", + "description": "User-provided birth date. Might be used to build handle suggestions." + } + } + }, + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["handle", "result"], + "properties": { + "handle": { + "type": "string", + "format": "handle", + "description": "Echo of the input handle." + }, + "result": { + "type": "union", + "refs": ["#resultAvailable", "#resultUnavailable"] + } + } + } + }, + "errors": [ + { + "name": "InvalidEmail", + "description": "An invalid email was provided." + } + ] + }, + "resultAvailable": { + "type": "object", + "description": "Indicates the provided handle is available.", + "properties": {} + }, + "resultUnavailable": { + "type": "object", + "description": "Indicates the provided handle is unavailable and gives suggestions of available handles.", + "required": ["suggestions"], + "properties": { + "suggestions": { + "type": "array", + "description": "List of suggested handles based on the provided inputs.", + "items": { + "type": "ref", + "ref": "#suggestion" + } + } + } + }, + "suggestion": { + "type": "object", + "required": ["handle", "method"], + "properties": { + "handle": { + "type": "string", + "format": "handle" + }, + "method": { + "type": "string", + "description": "Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics." + } + } + } + } +} diff --git a/lexicons/com/atproto/temp/checkSignupQueue.json b/lexicons/com/atproto/temp/checkSignupQueue.json new file mode 100644 index 0000000000..b7d9e65d7c --- /dev/null +++ b/lexicons/com/atproto/temp/checkSignupQueue.json @@ -0,0 +1,22 @@ +{ + "lexicon": 1, + "id": "com.atproto.temp.checkSignupQueue", + "defs": { + "main": { + "type": "query", + "description": "Check accounts location in signup queue.", + "output": { + "encoding": "application/json", + "schema": { + "type": "object", + "required": ["activated"], + "properties": { + "activated": { "type": "boolean" }, + "placeInQueue": { "type": "integer" }, + "estimatedTimeMs": { "type": "integer" } + } + } + } + } + } +} diff --git a/lexicons/com/germnetwork/declaration.json b/lexicons/com/germnetwork/declaration.json new file mode 100644 index 0000000000..2c9e42486d --- /dev/null +++ b/lexicons/com/germnetwork/declaration.json @@ -0,0 +1,75 @@ +{ + "id": "com.germnetwork.declaration", + "defs": { + "main": { + "key": "literal:self", + "type": "record", + "record": { + "type": "object", + "required": [ + "version", + "currentKey" + ], + "properties": { + "version": { + "type": "string", + "maxLength": 14, + "minLength": 5, + "description": "Semver version number, without pre-release or build information, for the format of opaque content" + }, + "messageMe": { + "ref": "#messageMe", + "type": "ref", + "description": "Controls who can message this account" + }, + "currentKey": { + "type": "bytes", + "description": "Opaque value, an ed25519 public key prefixed with a byte enum" + }, + "keyPackage": { + "type": "bytes", + "description": "Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey" + }, + "continuityProofs": { + "type": "array", + "items": { + "type": "bytes" + }, + "maxLength": 1000, + "description": "Array of opaque values to allow for key rolling" + } + } + }, + "description": "A declaration of a Germ Network account" + }, + "messageMe": { + "type": "object", + "required": [ + "showButtonTo", + "messageMeUrl" + ], + "properties": { + "messageMeUrl": { + "type": "string", + "format": "uri", + "maxLength": 2047, + "minLength": 1, + "description": "A URL to present to an account that does not have its own com.germnetwork.declaration record, must have an empty fragment component, where the app should fill in the fragment component with the DIDs of the two accounts who wish to message each other" + }, + "showButtonTo": { + "type": "string", + "maxLength": 100, + "minLength": 1, + "description": "The policy of who can message the account, this value is included in the keyPackage, but is duplicated here to allow applications to decide if they should show a 'Message on Germ' button to the viewer.", + "knownValues": [ + "none", + "usersIFollow", + "everyone" + ] + } + } + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/lexicons/tools/ozone/report/defs.json b/lexicons/tools/ozone/report/defs.json new file mode 100644 index 0000000000..2742fbd1ff --- /dev/null +++ b/lexicons/tools/ozone/report/defs.json @@ -0,0 +1,212 @@ +{ + "id": "tools.ozone.report.defs", + "defs": { + "reasonType": { + "type": "string", + "knownValues": [ + "tools.ozone.report.defs#reasonAppeal", + "tools.ozone.report.defs#reasonOther", + "tools.ozone.report.defs#reasonViolenceAnimal", + "tools.ozone.report.defs#reasonViolenceThreats", + "tools.ozone.report.defs#reasonViolenceGraphicContent", + "tools.ozone.report.defs#reasonViolenceGlorification", + "tools.ozone.report.defs#reasonViolenceExtremistContent", + "tools.ozone.report.defs#reasonViolenceTrafficking", + "tools.ozone.report.defs#reasonViolenceOther", + "tools.ozone.report.defs#reasonSexualAbuseContent", + "tools.ozone.report.defs#reasonSexualNCII", + "tools.ozone.report.defs#reasonSexualDeepfake", + "tools.ozone.report.defs#reasonSexualAnimal", + "tools.ozone.report.defs#reasonSexualUnlabeled", + "tools.ozone.report.defs#reasonSexualOther", + "tools.ozone.report.defs#reasonChildSafetyCSAM", + "tools.ozone.report.defs#reasonChildSafetyGroom", + "tools.ozone.report.defs#reasonChildSafetyPrivacy", + "tools.ozone.report.defs#reasonChildSafetyHarassment", + "tools.ozone.report.defs#reasonChildSafetyOther", + "tools.ozone.report.defs#reasonHarassmentTroll", + "tools.ozone.report.defs#reasonHarassmentTargeted", + "tools.ozone.report.defs#reasonHarassmentHateSpeech", + "tools.ozone.report.defs#reasonHarassmentDoxxing", + "tools.ozone.report.defs#reasonHarassmentOther", + "tools.ozone.report.defs#reasonMisleadingBot", + "tools.ozone.report.defs#reasonMisleadingImpersonation", + "tools.ozone.report.defs#reasonMisleadingSpam", + "tools.ozone.report.defs#reasonMisleadingScam", + "tools.ozone.report.defs#reasonMisleadingElections", + "tools.ozone.report.defs#reasonMisleadingOther", + "tools.ozone.report.defs#reasonRuleSiteSecurity", + "tools.ozone.report.defs#reasonRuleProhibitedSales", + "tools.ozone.report.defs#reasonRuleBanEvasion", + "tools.ozone.report.defs#reasonRuleOther", + "tools.ozone.report.defs#reasonSelfHarmContent", + "tools.ozone.report.defs#reasonSelfHarmED", + "tools.ozone.report.defs#reasonSelfHarmStunts", + "tools.ozone.report.defs#reasonSelfHarmSubstances", + "tools.ozone.report.defs#reasonSelfHarmOther" + ] + }, + "reasonOther": { + "type": "token", + "description": "An issue not included in these options" + }, + "reasonAppeal": { + "type": "token", + "description": "Appeal a previously taken moderation action" + }, + "reasonRuleOther": { + "type": "token", + "description": "Other" + }, + "reasonSelfHarmED": { + "type": "token", + "description": "Eating disorders" + }, + "reasonSexualNCII": { + "type": "token", + "description": "Non-consensual intimate imagery" + }, + "reasonSexualOther": { + "type": "token", + "description": "Other sexual violence content" + }, + "reasonSexualAnimal": { + "type": "token", + "description": "Animal sexual abuse" + }, + "reasonMisleadingBot": { + "type": "token", + "description": "Fake account or bot" + }, + "reasonSelfHarmOther": { + "type": "token", + "description": "Other dangerous content" + }, + "reasonViolenceOther": { + "type": "token", + "description": "Other violent content" + }, + "reasonMisleadingScam": { + "type": "token", + "description": "Scam" + }, + "reasonMisleadingSpam": { + "type": "token", + "description": "Spam" + }, + "reasonRuleBanEvasion": { + "type": "token", + "description": "Banned user returning" + }, + "reasonSelfHarmStunts": { + "type": "token", + "description": "Dangerous challenges or activities" + }, + "reasonSexualDeepfake": { + "type": "token", + "description": "Deepfake adult content" + }, + "reasonViolenceAnimal": { + "type": "token", + "description": "Animal welfare violations" + }, + "reasonChildSafetyCSAM": { + "type": "token", + "description": "Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority." + }, + "reasonHarassmentOther": { + "type": "token", + "description": "Other harassing or hateful content" + }, + "reasonHarassmentTroll": { + "type": "token", + "description": "Trolling" + }, + "reasonMisleadingOther": { + "type": "token", + "description": "Other misleading content" + }, + "reasonSelfHarmContent": { + "type": "token", + "description": "Content promoting or depicting self-harm" + }, + "reasonSexualUnlabeled": { + "type": "token", + "description": "Unlabelled adult content" + }, + "reasonViolenceThreats": { + "type": "token", + "description": "Threats or incitement" + }, + "reasonChildSafetyGroom": { + "type": "token", + "description": "Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority." + }, + "reasonChildSafetyOther": { + "type": "token", + "description": "Other child safety. These reports will be sent only be sent to the application's Moderation Authority." + }, + "reasonRuleSiteSecurity": { + "type": "token", + "description": "Hacking or system attacks" + }, + "reasonHarassmentDoxxing": { + "type": "token", + "description": "Doxxing" + }, + "reasonChildSafetyPrivacy": { + "type": "token", + "description": "Privacy violation involving a minor" + }, + "reasonHarassmentTargeted": { + "type": "token", + "description": "Targeted harassment" + }, + "reasonSelfHarmSubstances": { + "type": "token", + "description": "Dangerous substances or drug abuse" + }, + "reasonSexualAbuseContent": { + "type": "token", + "description": "Adult sexual abuse content" + }, + "reasonMisleadingElections": { + "type": "token", + "description": "False information about elections" + }, + "reasonRuleProhibitedSales": { + "type": "token", + "description": "Promoting or selling prohibited items or services" + }, + "reasonViolenceTrafficking": { + "type": "token", + "description": "Human trafficking" + }, + "reasonHarassmentHateSpeech": { + "type": "token", + "description": "Hate speech" + }, + "reasonChildSafetyHarassment": { + "type": "token", + "description": "Harassment or bullying of minors" + }, + "reasonViolenceGlorification": { + "type": "token", + "description": "Glorification of violence" + }, + "reasonViolenceGraphicContent": { + "type": "token", + "description": "Graphic violent content" + }, + "reasonMisleadingImpersonation": { + "type": "token", + "description": "Impersonation" + }, + "reasonViolenceExtremistContent": { + "type": "token", + "description": "Extremist content. These reports will be sent only be sent to the application's Moderation Authority." + } + }, + "$type": "com.atproto.lexicon.schema", + "lexicon": 1 +} diff --git a/package.json b/package.json index 93d671ff31..ff60e52601 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ }, "scripts": { "prepare": "is-ci || husky", - "postinstall": "pnpm intl:compile-if-needed", + "postinstall": "lex install --ci && pnpm lexicons:generate && pnpm intl:compile-if-needed", "prebuild": "EXPO_NO_GIT_STATUS=1 expo prebuild --clean", "android": "expo run:android --variant debugOptimized", "android:prod": "expo run:android --variant release", @@ -62,6 +62,8 @@ "lint": "oxlint --quiet src modules", "lint-native": "swiftlint ./modules && ktlint ./modules", "lint-native:fix": "swiftlint --fix ./modules && ktlint --format ./modules", + "lexicons:generate": "lex build --clear --index-file --import-ext ''", + "lexicons:update": "lex install --update", "typecheck": "pnpm run typecheck:ios && pnpm run typecheck:android && pnpm run typecheck:web", "typecheck:ios": "tsc --project ./tsconfig.check.ios.json", "typecheck:android": "tsc --project ./tsconfig.check.android.json", @@ -98,8 +100,9 @@ "dependencies": { "@atproto/api": "0.20.39", "@atproto/common-web": "0.5.7", - "@atproto/lex-client": "0.3.0", - "@atproto/lex-password-session": "0.1.8", + "@atproto/lex": "0.3.2", + "@atproto/lex-client": "0.3.1", + "@atproto/lex-password-session": "0.1.9", "@atproto/syntax": "0.7.2", "@bitdrift/react-native": "^0.6.8", "@braintree/sanitize-url": "^6.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b4baf4a374..441a32025e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -248,12 +248,15 @@ importers: '@atproto/common-web': specifier: 0.5.7 version: 0.5.7 + '@atproto/lex': + specifier: 0.3.2 + version: 0.3.2 '@atproto/lex-client': - specifier: 0.3.0 - version: 0.3.0 + specifier: 0.3.1 + version: 0.3.1 '@atproto/lex-password-session': - specifier: 0.1.8 - version: 0.1.8 + specifier: 0.1.9 + version: 0.1.9 '@atproto/syntax': specifier: 0.7.2 version: 0.7.2 @@ -881,6 +884,26 @@ packages: graphql: optional: true + '@atproto-labs/did-resolver@0.3.7': + resolution: {integrity: sha512-F3M3U5cU1QSAXX3J5auGEc5N2pgDgpirAjvyDFsytXuyWfrjWfTPd/H+DZrrED7gK+noW0cAWtxxjdX7/cTSVQ==} + engines: {node: '>=22'} + + '@atproto-labs/fetch@0.3.5': + resolution: {integrity: sha512-iDFZEoNqfL17EVKE+uNzdUD7YF8LWhEhxeBtP6x+PNuAxoXv3ip9vLmB8nNzNxFwVn++FipfDtSiPqmziv1bdA==} + engines: {node: '>=22'} + + '@atproto-labs/pipe@0.2.4': + resolution: {integrity: sha512-n67jCcrC+ouAeO10cWkpPzzLMlDi/lDCU30Us+LGqhOPhT6c4t5ASdBLQi9W3jUQtRzQBt3G9zipF+xKWNvVbw==} + engines: {node: '>=22'} + + '@atproto-labs/simple-store-memory@0.2.6': + resolution: {integrity: sha512-DD1v7MEfYF3BAcEpMTTpzfBLWLoI2HuyBhku2YpjHoqPrRrhCtE1alkxfPHjtjJVIjuU/XNU0cF/wB3+5FiKsA==} + engines: {node: '>=22'} + + '@atproto-labs/simple-store@0.5.1': + resolution: {integrity: sha512-vfvoDhu6ds6BT3Pqe+d2/LBU1WpDRtt69y6zltlfMCoucPm82m1j50/Wb6xTvv+oZ+2j0JyZVXsmXQ12SWYQJg==} + engines: {node: '>=22'} + '@atproto/api@0.20.39': resolution: {integrity: sha512-FRjwAmYe0kKlWsAe8IvfbmAAKyjpXnl2NV67vWEEjux0FwIEIG6JbOo6YkD5tjK2xjL0Daa429R0E8phmxRrrQ==} engines: {node: '>=22'} @@ -893,8 +916,32 @@ packages: resolution: {integrity: sha512-2c5C6YV8352JJz9Z5fNfcsstllaKGAb3cQW9aO7unMAGh/FzTGFq+xOwNMW2lTeagO6z530uxYm8AiSRM6O+DQ==} engines: {node: '>=22'} - '@atproto/lex-client@0.3.0': - resolution: {integrity: sha512-P+S3hWdIIOgNTun7J42dvxSyCkQog3Q2ShTjvcwP761TqiRex7zDWaRAaT9gvCy6I4pRuNdBCStysjSMlJeSdg==} + '@atproto/common@0.7.6': + resolution: {integrity: sha512-xRge0hFyBG9H5912JlILR0eKQ1Upo/aq9ZLYQy4qtCiYaWXZHXNitdKb5IViYeXjONRVMgAVp8KtNkthsKgSYg==} + engines: {node: '>=22'} + + '@atproto/crypto@0.5.4': + resolution: {integrity: sha512-UR0BkuYNYuFtw+dA+y/oPPxzX0SWRnGJ+1Cfh/jGP1BvjRUyezK3omjpeLms5fYrXbM9vnfX+ckJFJqkBgLOdw==} + engines: {node: '>=22'} + + '@atproto/did@0.5.4': + resolution: {integrity: sha512-BlnwQ+obL+4ZA71KH/EzZ3TY+cpSxnLiUI85mjBJIQwvDF/oN2sQA18wIj9jpduviIt2b/cMtlJuzHjzBkfXvw==} + engines: {node: '>=22'} + + '@atproto/lex-builder@0.1.12': + resolution: {integrity: sha512-uo3mcdoOgqBfQnf+PhYYLNEBdUTgoNe2ARYb3cUaiec8O0oritOeZndUDgmths06ACrlqFkZNTV1YJX6CsH71g==} + engines: {node: '>=22'} + + '@atproto/lex-cbor@0.1.6': + resolution: {integrity: sha512-PxLQy7jzV8u9zTGURNF8ZczLPk+ZH+WNx/2z/z7RacJbu7sWNpx26U2pC7cIkWtt4jyDaruaLhssw3w3atLotA==} + engines: {node: '>=22'} + + '@atproto/lex-client@0.3.1': + resolution: {integrity: sha512-GK5rhqOtIhzxd2BEByQTs1/K7u1QJ+0NkkksV94HgrTAHG+0S3DBg5P5+RPQu2uhHIDKFzXFhP5L+fFJubX4GQ==} + engines: {node: '>=22'} + + '@atproto/lex-client@0.3.3': + resolution: {integrity: sha512-sWChe7Jukm9uxDfxT6ElICp6vMTqAFmwcHdSLdMDtsKBZSrwO7vWL9F6rpoMPyxS29Ob9nNAhMg30kKfZrb+uw==} engines: {node: '>=22'} '@atproto/lex-data@0.1.6': @@ -905,6 +952,14 @@ packages: resolution: {integrity: sha512-kW/dPLqo/WgCLV+XESR4JKwV6c1rZWJGOfuPupZGTjEDAKoBbKXdaEzX9/1vKQYbZ9U3j0DS/n7OFFK7wBugyQ==} engines: {node: '>=22'} + '@atproto/lex-document@0.1.9': + resolution: {integrity: sha512-TmpwttQ9pKCXlvwUlJ/5HMZPtJMFBvgZ1bunEeQD5JfU6n/sgK/fob8tfjhTdL2QrpZMtM6opMEk3w5STm1RDQ==} + engines: {node: '>=22'} + + '@atproto/lex-installer@0.1.14': + resolution: {integrity: sha512-P2TAMvrWQmPrdOlfWFKg/qlvnGsGvot/6wXL25M57ObNoUpE1TE3sMO+H0eSl6u5UYjcSYl6byrVe+HhOJwfdA==} + engines: {node: '>=22'} + '@atproto/lex-json@0.1.5': resolution: {integrity: sha512-qOp6+Za5p/xDXACYIP3vySbKaf9CJDwiZEN78ghPT1gRoJohKG3ONt/WmvOxBVJqc6VTRaqEpbG9vX9oLF2qsA==} engines: {node: '>=22'} @@ -913,18 +968,31 @@ packages: resolution: {integrity: sha512-mvrAd0lbyuecIHjyld8QN6MN6CBf4j0GCxLzegsvLh0SvDf+GbYWklkcQqmITL44yFQOwmA/QNIQj0Uvh7+R/g==} engines: {node: '>=22'} - '@atproto/lex-password-session@0.1.8': - resolution: {integrity: sha512-Zr3HLu6rgadiq2w82VSThOQcNfwTJNlrzlT8n9oBXDBw3CUEq3cTMatzTpdk4HYqv0unaqhaEowcKhJ4eWvSxQ==} + '@atproto/lex-password-session@0.1.9': + resolution: {integrity: sha512-LvMRNquC2S6lANbMHbBxmst+0sSknDyDQjorsPrp5+ESSrrY1aGH0j0JP7s4bh/210REyI3USKeJFpUFug+jUw==} + engines: {node: '>=22'} + + '@atproto/lex-resolver@0.2.7': + resolution: {integrity: sha512-7zxI3VW+63WoE9s34lBxpXt+uhF3XUeoMmuxntU4j2W5Eq8ioMRXvsk24qKHp/86bysnnODAF0+y/Qr662j+UQ==} engines: {node: '>=22'} '@atproto/lex-schema@0.2.5': resolution: {integrity: sha512-/tP3dRqaZu0EIoq0BSVzhvFGL6u0uu2KFDV21i73DpFsg6TXOTddKJ9bvgK83XdAJYL7PWi703XsaR31v9u5Qg==} engines: {node: '>=22'} + '@atproto/lex@0.3.2': + resolution: {integrity: sha512-/HcdVoq2BtkHxdWRo3vCciT6Cge9LfHVYtatnBrGlgHw6LYvjG2LHxmquhfPj26mKa3n2zVM8+3ia9RpoemSxw==} + engines: {node: '>=22'} + hasBin: true + '@atproto/lexicon@0.7.11': resolution: {integrity: sha512-ukCZMCWmiu7fAlssBbLs+IMaf2K2R9mADaTKz2jEeC/xeZ3jT77Ka0S2G+ELBB+Dc9ijBACU0iPMQLhquOkuzQ==} engines: {node: '>=22'} + '@atproto/repo@0.10.10': + resolution: {integrity: sha512-+PHEbksplSTxU4prfNF1HLUN/1/uc3uYuPfYecsNH2E9Ky6rerhlKG46DUIAV72j/6/i6wsQdP180TsnmiCXVg==} + engines: {node: '>=22'} + '@atproto/syntax@0.7.2': resolution: {integrity: sha512-tZ1Tr0R9pK4bI4Zs69t29cjMlCFQvRNBeNkqJC5pGeNuCt64D0eoF7s/AlqeVmYppClmQ0xJquggGgsMDP6j7w==} engines: {node: '>=22'} @@ -2336,6 +2404,14 @@ packages: '@messageformat/parser@5.1.1': resolution: {integrity: sha512-3p0YRGCcTUCYvBKLIxtDDyrJ0YijGIwrTRu1DT8gIviIDZru8H23+FkY6MJBzM1n9n20CiM4VeDYuBsrrwnLjg==} + '@noble/curves@1.9.7': + resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==} + engines: {node: ^14.21.3 || >=16} + + '@noble/hashes@1.8.0': + resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} + engines: {node: ^14.21.3 || >=16} + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -2500,6 +2576,9 @@ packages: cpu: [x64] os: [win32] + '@pinojs/redact@0.4.0': + resolution: {integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==} + '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -3661,6 +3740,9 @@ packages: resolution: {integrity: sha512-HqmEUIGRJ5fSXchkVgR5F7qn48bDBzv0kWj/Kfu5e6uci4UlEeng4331LnBkWffb++Ei3FOVLxo8JJWMFBDMeQ==} engines: {node: '>= 10'} + '@ts-morph/common@0.28.1': + resolution: {integrity: sha512-W74iWf7ILp1ZKNYXY5qbddNaml7e9Sedv5lvU1V8lftlitkc9Pq1A+jlH23ltDgWYeZFFEqGCD1Ies9hqu3O+g==} + '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -4246,6 +4328,10 @@ packages: asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + atomic-sleep@1.0.0: + resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} + engines: {node: '>=8.0.0'} + available-typed-arrays@1.0.7: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} @@ -4488,6 +4574,10 @@ packages: caniuse-lite@1.0.30001792: resolution: {integrity: sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==} + cborg@4.5.8: + resolution: {integrity: sha512-6/viltD51JklRhq4L7jC3zgy6gryuG5xfZ3kzpE+PravtyeQLeQmCYLREhQH7pWENg5pY4Yu/XCd6a7dKScVlw==} + hasBin: true + cborg@5.1.1: resolution: {integrity: sha512-BDbSRIp6XrQXkTc7g+DN0RB9RrDPTUfals2ecWUlt3juPLjbAvy/V72mJcXY0Ehu0Dq/3WpNCOCT68HUTbW+lw==} hasBin: true @@ -4591,6 +4681,10 @@ packages: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} + cliui@9.0.1: + resolution: {integrity: sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==} + engines: {node: '>=20'} + clone@1.0.4: resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} engines: {node: '>=0.8'} @@ -4599,6 +4693,9 @@ packages: resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} + code-block-writer@13.0.3: + resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==} + collect-v8-coverage@1.0.3: resolution: {integrity: sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==} @@ -4722,6 +4819,9 @@ packages: core-js-pure@3.49.0: resolution: {integrity: sha512-XM4RFka59xATyJv/cS3O3Kml72hQXUeGRuuTmMYFxwzc9/7C8OYTaIR/Ji+Yt8DXzsFLNhat15cE/JP15HrCgw==} + core-js@3.50.0: + resolution: {integrity: sha512-BRWgOLKkFeCgRudR6zrs8p9XJZcE14grzKMMssoYrk6krtuEZ7MTKPIY5RzOnqsEKIR9kst7wNzphttraT+Yqw==} + core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} @@ -7421,6 +7521,10 @@ packages: obuf@1.1.2: resolution: {integrity: sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==} + on-exit-leak-free@2.1.2: + resolution: {integrity: sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==} + engines: {node: '>=14.0.0'} + on-finished@2.3.0: resolution: {integrity: sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==} engines: {node: '>= 0.8'} @@ -7556,6 +7660,9 @@ packages: pascal-case@3.1.2: resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} + path-browserify@1.0.1: + resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} + path-exists@3.0.0: resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} engines: {node: '>=4'} @@ -7623,6 +7730,16 @@ packages: resolution: {integrity: sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==} engines: {node: '>=0.10.0'} + pino-abstract-transport@3.0.0: + resolution: {integrity: sha512-wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==} + + pino-std-serializers@7.1.0: + resolution: {integrity: sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==} + + pino@10.3.1: + resolution: {integrity: sha512-r34yH/GlQpKZbU1BvFFqOjhISRo1MNx1tWYsYvmj6KIRHSPMT2+yHOEb1SG6NMvRoHRF0a07kCOox/9yakl1vg==} + hasBin: true + pirates@4.0.7: resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} engines: {node: '>= 6'} @@ -7867,6 +7984,11 @@ packages: engines: {node: '>=14'} hasBin: true + prettier@3.9.6: + resolution: {integrity: sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==} + engines: {node: '>=14'} + hasBin: true + pretty-bytes@5.6.0: resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==} engines: {node: '>=6'} @@ -7889,6 +8011,9 @@ packages: process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + process-warning@5.1.0: + resolution: {integrity: sha512-jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==} + progress@2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} engines: {node: '>=0.4.0'} @@ -8016,6 +8141,9 @@ packages: queue@6.0.2: resolution: {integrity: sha512-iHZWu+q3IdFZFX36ro/lKBkSvfkztY5Y7HMiPlOUjhupPcG2JMfst2KKEpu5XndviX/3UhFbRngUPNKtgvtZiA==} + quick-format-unescaped@4.0.4: + resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} + radix-ui@1.4.3: resolution: {integrity: sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA==} peerDependencies: @@ -8317,6 +8445,13 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} + real-require@0.2.0: + resolution: {integrity: sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==} + engines: {node: '>= 12.13.0'} + + real-require@1.0.0: + resolution: {integrity: sha512-P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==} + redent@3.0.0: resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} engines: {node: '>=8'} @@ -8472,6 +8607,10 @@ packages: resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==} engines: {node: '>= 0.4'} + safe-stable-stringify@2.5.0: + resolution: {integrity: sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==} + engines: {node: '>=10'} + safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} @@ -8648,6 +8787,9 @@ packages: sockjs@0.3.24: resolution: {integrity: sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==} + sonic-boom@4.2.1: + resolution: {integrity: sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==} + sonner-native@0.26.4: resolution: {integrity: sha512-wBE/pctNfz+ieXjpYX7uu5hH38ws8xRmH0AFmEdEgkOS363k6N8QfFoyjGqDmdUDy15m4AAvOjd2Wz/jATukIA==} peerDependencies: @@ -8712,6 +8854,10 @@ packages: resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==} engines: {node: '>=6'} + split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} @@ -8970,6 +9116,10 @@ packages: thenify@3.3.1: resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + thread-stream@4.2.0: + resolution: {integrity: sha512-e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ==} + engines: {node: '>=20'} + threads@1.7.0: resolution: {integrity: sha512-Mx5NBSHX3sQYR6iI9VYbgHKBLisyB+xROCBGjjWm1O9wb9vfLxdaGtmT/KCjUqMsSNW6nERzCW3T6H43LqjDZQ==} @@ -9036,6 +9186,9 @@ packages: ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} + ts-morph@27.0.2: + resolution: {integrity: sha512-fhUhgeljcrdZ+9DZND1De1029PrE+cMkIP7ooqkLRTrRLTqcki2AstsyJm0vRNbTbVCNJ0idGlbBrfqc7/nA8w==} + ts-plugin-sort-import-suggestions@1.0.4: resolution: {integrity: sha512-85n5lm2OQQ+b7aRNK9omU1gmjMNXRsgeLwojm5u4OSY5sVBkAHTcgMQPEeHMNlyyfFW0uXnwgqAU0pNfhD96Bw==} @@ -9107,6 +9260,9 @@ packages: uc.micro@2.1.0: resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} + uint8arrays@5.1.1: + resolution: {integrity: sha512-9muQwa4wZG4dKi9gMAIBtnk2Pw87SRpvWTH6lOGm19V2Uqxr4uomUf2PGqPnWc+qs06sN8owUU4jfcoWOcfwVQ==} + unbox-primitive@1.1.0: resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==} engines: {node: '>= 0.4'} @@ -9263,6 +9419,9 @@ packages: resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + varint@6.0.0: + resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==} + vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} @@ -9539,6 +9698,10 @@ packages: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} + yargs-parser@22.0.0: + resolution: {integrity: sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==} + engines: {node: ^20.19.0 || ^22.12.0 || >=23} + yargs@15.4.1: resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} engines: {node: '>=8'} @@ -9547,6 +9710,10 @@ packages: resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} engines: {node: '>=12'} + yargs@18.1.0: + resolution: {integrity: sha512-2rAgRKu54VsHkqI0/tYkmluGXHD4KW7yZoycuqDQ15QOTnc2VVfy0nN/1eMhnQLO00A+dwtK20xuCnc1YGeUyg==} + engines: {node: ^20.19.0 || ^22.12.0 || >=23} + yauzl@3.3.0: resolution: {integrity: sha512-PtGEvEP30p7sbIBJKUBjUnqgTVOyMURc4dLo9iNyAJnNIEz9pm88cCXF21w94Kg3k6RXkeZh5DHOGS0qEONvNQ==} engines: {node: '>=12'} @@ -9568,6 +9735,28 @@ snapshots: '@0no-co/graphql.web@1.2.0': {} + '@atproto-labs/did-resolver@0.3.7': + dependencies: + '@atproto-labs/fetch': 0.3.5 + '@atproto-labs/pipe': 0.2.4 + '@atproto-labs/simple-store': 0.5.1 + '@atproto-labs/simple-store-memory': 0.2.6 + '@atproto/did': 0.5.4 + zod: 3.25.76 + + '@atproto-labs/fetch@0.3.5': + dependencies: + '@atproto-labs/pipe': 0.2.4 + + '@atproto-labs/pipe@0.2.4': {} + + '@atproto-labs/simple-store-memory@0.2.6': + dependencies: + '@atproto-labs/simple-store': 0.5.1 + lru-cache: 10.4.3 + + '@atproto-labs/simple-store@0.5.1': {} + '@atproto/api@0.20.39': dependencies: '@atproto/common-web': 0.5.9 @@ -9593,7 +9782,46 @@ snapshots: '@atproto/syntax': 0.7.4 zod: 3.25.76 - '@atproto/lex-client@0.3.0': + '@atproto/common@0.7.6': + dependencies: + '@atproto/common-web': 0.5.9 + '@atproto/lex-cbor': 0.1.6 + '@atproto/lex-data': 0.1.7 + multiformats: 13.4.2 + pino: 10.3.1 + + '@atproto/crypto@0.5.4': + dependencies: + '@noble/curves': 1.9.7 + '@noble/hashes': 1.8.0 + uint8arrays: 5.1.1 + + '@atproto/did@0.5.4': + dependencies: + zod: 3.25.76 + + '@atproto/lex-builder@0.1.12': + dependencies: + '@atproto/lex-document': 0.1.9 + '@atproto/lex-schema': 0.2.5 + prettier: 3.9.6 + ts-morph: 27.0.2 + tslib: 2.8.1 + + '@atproto/lex-cbor@0.1.6': + dependencies: + '@atproto/lex-data': 0.1.7 + cborg: 4.5.8 + tslib: 2.8.1 + + '@atproto/lex-client@0.3.1': + dependencies: + '@atproto/lex-data': 0.1.7 + '@atproto/lex-json': 0.1.6 + '@atproto/lex-schema': 0.2.5 + tslib: 2.8.1 + + '@atproto/lex-client@0.3.3': dependencies: '@atproto/lex-data': 0.1.7 '@atproto/lex-json': 0.1.6 @@ -9612,6 +9840,23 @@ snapshots: tslib: 2.8.1 unicode-segmenter: 0.14.5 + '@atproto/lex-document@0.1.9': + dependencies: + '@atproto/lex-schema': 0.2.5 + core-js: 3.50.0 + tslib: 2.8.1 + + '@atproto/lex-installer@0.1.14': + dependencies: + '@atproto/lex-builder': 0.1.12 + '@atproto/lex-cbor': 0.1.6 + '@atproto/lex-data': 0.1.7 + '@atproto/lex-document': 0.1.9 + '@atproto/lex-resolver': 0.2.7 + '@atproto/lex-schema': 0.2.5 + '@atproto/syntax': 0.7.4 + tslib: 2.8.1 + '@atproto/lex-json@0.1.5': dependencies: '@atproto/lex-data': 0.1.6 @@ -9622,12 +9867,24 @@ snapshots: '@atproto/lex-data': 0.1.7 tslib: 2.8.1 - '@atproto/lex-password-session@0.1.8': + '@atproto/lex-password-session@0.1.9': dependencies: - '@atproto/lex-client': 0.3.0 + '@atproto/lex-client': 0.3.1 '@atproto/lex-schema': 0.2.5 tslib: 2.8.1 + '@atproto/lex-resolver@0.2.7': + dependencies: + '@atproto-labs/did-resolver': 0.3.7 + '@atproto/crypto': 0.5.4 + '@atproto/lex-client': 0.3.3 + '@atproto/lex-data': 0.1.7 + '@atproto/lex-document': 0.1.9 + '@atproto/lex-schema': 0.2.5 + '@atproto/repo': 0.10.10 + '@atproto/syntax': 0.7.4 + tslib: 2.8.1 + '@atproto/lex-schema@0.2.5': dependencies: '@atproto/lex-data': 0.1.7 @@ -9635,6 +9892,17 @@ snapshots: '@standard-schema/spec': 1.1.0 tslib: 2.8.1 + '@atproto/lex@0.3.2': + dependencies: + '@atproto/lex-builder': 0.1.12 + '@atproto/lex-client': 0.3.1 + '@atproto/lex-data': 0.1.7 + '@atproto/lex-installer': 0.1.14 + '@atproto/lex-json': 0.1.6 + '@atproto/lex-schema': 0.2.5 + tslib: 2.8.1 + yargs: 18.1.0 + '@atproto/lexicon@0.7.11': dependencies: '@atproto/common-web': 0.5.9 @@ -9642,6 +9910,17 @@ snapshots: multiformats: 13.4.2 zod: 3.25.76 + '@atproto/repo@0.10.10': + dependencies: + '@atproto/common': 0.7.6 + '@atproto/common-web': 0.5.9 + '@atproto/crypto': 0.5.4 + '@atproto/lex-cbor': 0.1.6 + '@atproto/lex-data': 0.1.7 + '@atproto/syntax': 0.7.4 + varint: 6.0.0 + zod: 3.25.76 + '@atproto/syntax@0.7.2': dependencies: iso-datestring-validator: 2.2.2 @@ -11557,6 +11836,12 @@ snapshots: dependencies: moo: 0.5.3 + '@noble/curves@1.9.7': + dependencies: + '@noble/hashes': 1.8.0 + + '@noble/hashes@1.8.0': {} + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -11644,6 +11929,8 @@ snapshots: '@oxlint/binding-win32-x64-msvc@1.73.0': optional: true + '@pinojs/redact@0.4.0': {} + '@pkgjs/parseargs@0.11.0': optional: true @@ -12938,6 +13225,12 @@ snapshots: '@tootallnate/once@2.0.1': {} + '@ts-morph/common@0.28.1': + dependencies: + minimatch: 10.2.5 + path-browserify: 1.0.1 + tinyglobby: 0.2.16 + '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.29.3 @@ -13522,6 +13815,8 @@ snapshots: asynckit@0.4.0: {} + atomic-sleep@1.0.0: {} + available-typed-arrays@1.0.7: dependencies: possible-typed-array-names: 1.1.0 @@ -13869,6 +14164,8 @@ snapshots: caniuse-lite@1.0.30001792: {} + cborg@4.5.8: {} + cborg@5.1.1: {} chalk@2.4.2: @@ -13991,10 +14288,18 @@ snapshots: strip-ansi: 6.0.1 wrap-ansi: 7.0.0 + cliui@9.0.1: + dependencies: + string-width: 7.2.0 + strip-ansi: 7.2.0 + wrap-ansi: 9.0.2 + clone@1.0.4: {} co@4.6.0: {} + code-block-writer@13.0.3: {} + collect-v8-coverage@1.0.3: {} color-convert@1.9.3: @@ -14106,6 +14411,8 @@ snapshots: core-js-pure@3.49.0: {} + core-js@3.50.0: {} + core-util-is@1.0.3: {} cosmiconfig@8.3.6(@typescript/typescript6@6.0.2): @@ -17308,6 +17615,8 @@ snapshots: obuf@1.1.2: {} + on-exit-leak-free@2.1.2: {} + on-finished@2.3.0: dependencies: ee-first: 1.1.1 @@ -17479,6 +17788,8 @@ snapshots: no-case: 3.0.4 tslib: 2.8.1 + path-browserify@1.0.1: {} + path-exists@3.0.0: {} path-exists@4.0.0: {} @@ -17523,6 +17834,26 @@ snapshots: pinkie@2.0.4: {} + pino-abstract-transport@3.0.0: + dependencies: + split2: 4.2.0 + + pino-std-serializers@7.1.0: {} + + pino@10.3.1: + dependencies: + '@pinojs/redact': 0.4.0 + atomic-sleep: 1.0.0 + on-exit-leak-free: 2.1.2 + pino-abstract-transport: 3.0.0 + pino-std-serializers: 7.1.0 + process-warning: 5.1.0 + quick-format-unescaped: 4.0.4 + real-require: 0.2.0 + safe-stable-stringify: 2.5.0 + sonic-boom: 4.2.1 + thread-stream: 4.2.0 + pirates@4.0.7: {} pkg-dir@4.2.0: @@ -17744,6 +18075,8 @@ snapshots: prettier@3.8.3: {} + prettier@3.9.6: {} + pretty-bytes@5.6.0: {} pretty-error@4.0.0: @@ -17768,6 +18101,8 @@ snapshots: process-nextick-args@2.0.1: {} + process-warning@5.1.0: {} + progress@2.0.3: {} promise@7.3.1: @@ -17938,6 +18273,8 @@ snapshots: dependencies: inherits: 2.0.4 + quick-format-unescaped@4.0.4: {} + radix-ui@1.4.3(@types/react-dom@19.1.11(@types/react@19.1.17))(@types/react@19.1.17)(react-dom@19.1.0(react@19.1.0))(react@19.1.0): dependencies: '@radix-ui/primitive': 1.1.3 @@ -18351,6 +18688,10 @@ snapshots: dependencies: picomatch: 2.3.2 + real-require@0.2.0: {} + + real-require@1.0.0: {} + redent@3.0.0: dependencies: indent-string: 4.0.0 @@ -18517,6 +18858,8 @@ snapshots: es-errors: 1.3.0 is-regex: 1.2.1 + safe-stable-stringify@2.5.0: {} + safer-buffer@2.1.2: {} sax@1.6.0: {} @@ -18727,6 +19070,10 @@ snapshots: uuid: 8.3.2 websocket-driver: 0.7.4 + sonic-boom@4.2.1: + dependencies: + atomic-sleep: 1.0.0 + sonner-native@0.26.4(dd52c15d65a2604bcf203dfed917879b): dependencies: react: 19.1.0 @@ -18795,6 +19142,8 @@ snapshots: split-on-first@1.1.0: {} + split2@4.2.0: {} + sprintf-js@1.0.3: {} stable@0.1.8: {} @@ -19050,6 +19399,10 @@ snapshots: dependencies: any-promise: 1.3.0 + thread-stream@4.2.0: + dependencies: + real-require: 1.0.0 + threads@1.7.0(supports-color@8.1.1): dependencies: callsites: 3.1.0 @@ -19116,6 +19469,11 @@ snapshots: ts-interface-checker@0.1.13: {} + ts-morph@27.0.2: + dependencies: + '@ts-morph/common': 0.28.1 + code-block-writer: 13.0.3 + ts-plugin-sort-import-suggestions@1.0.4: {} tslib@2.8.1: {} @@ -19204,6 +19562,10 @@ snapshots: uc.micro@2.1.0: {} + uint8arrays@5.1.1: + dependencies: + multiformats: 13.4.2 + unbox-primitive@1.1.0: dependencies: call-bound: 1.0.4 @@ -19335,6 +19697,8 @@ snapshots: validate-npm-package-name@5.0.1: {} + varint@6.0.0: {} + vary@1.1.2: {} vlq@1.0.1: {} @@ -19661,6 +20025,8 @@ snapshots: yargs-parser@21.1.1: {} + yargs-parser@22.0.0: {} + yargs@15.4.1: dependencies: cliui: 6.0.0 @@ -19685,6 +20051,15 @@ snapshots: y18n: 5.0.8 yargs-parser: 21.1.1 + yargs@18.1.0: + dependencies: + cliui: 9.0.1 + escalade: 3.2.0 + get-caller-file: 2.0.5 + string-width: 8.2.1 + y18n: 5.0.8 + yargs-parser: 22.0.0 + yauzl@3.3.0: dependencies: buffer-crc32: 0.2.13 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index aa9a37f930..0605a3a564 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -16,6 +16,7 @@ overrides: 'react-native-screens': '4.24.0' allowBuilds: '@sentry/cli': true + core-js: false 'core-js-pure': true 'esbuild': true 'unrs-resolver': true