@atproto/api 0.7.4 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +2 -2
- package/dist/client/index.d.ts +41 -37
- package/dist/client/lexicons.d.ts +113 -48
- package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/getPreferences.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -2
- package/dist/client/types/app/bsky/actor/getProfiles.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/ref.d.ts +28 -0
- package/dist/client/types/app/bsky/actor/search.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchActor.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/actor/searchActors.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +47 -0
- package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/describeFeedGenerator.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
- package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getActorLikes.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
- package/dist/client/types/app/bsky/feed/getFeed.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getFeedGenerator.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getFeedGenerators.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getFeedSkeleton.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getLikes.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getListFeed.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getPosts.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +21 -0
- package/dist/client/types/app/bsky/feed/getSuggestedFeeds.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getTimeline.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
- package/dist/client/types/app/bsky/feed/saveFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/searchPosts.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
- package/dist/client/types/app/bsky/feed/trend.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/vote.d.ts +10 -0
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/assertion.d.ts +10 -0
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +11 -0
- package/dist/client/types/app/bsky/graph/defs.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +48 -0
- package/dist/client/types/app/bsky/graph/getBlocks.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getFollowers.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getList.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getListMutes.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getLists.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +36 -0
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +36 -0
- package/dist/client/types/app/bsky/graph/getMutes.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +1 -1
- package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
- package/dist/client/types/app/bsky/moderation/defs.d.ts +49 -0
- package/dist/client/types/app/bsky/moderation/getService.d.ts +16 -0
- package/dist/client/types/app/bsky/moderation/getServices.d.ts +19 -0
- package/dist/client/types/app/bsky/moderation/service.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +1 -1
- package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
- package/dist/client/types/app/bsky/notification/listNotifications.d.ts +1 -1
- package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
- package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
- package/dist/client/types/app/bsky/system/declRef.d.ts +8 -0
- package/dist/client/types/app/bsky/system/declaration.d.ts +7 -0
- package/dist/client/types/app/bsky/unspecced/applyLabels.d.ts +18 -0
- package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +1 -1
- package/dist/client/types/app/bsky/unspecced/getPopularFeedGenerators.d.ts +1 -1
- package/dist/client/types/app/bsky/unspecced/getTimelineSkeleton.d.ts +1 -1
- package/dist/client/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +1 -1
- package/dist/client/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +1 -1
- package/dist/client/types/com/atproto/account/create.d.ts +41 -0
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
- package/dist/client/types/com/atproto/account/delete.d.ts +25 -0
- package/dist/client/types/com/atproto/account/get.d.ts +12 -0
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +24 -0
- package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +12 -2
- package/dist/client/types/com/atproto/admin/emitModerationEvent.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/getAccountInfo.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getAccountInfos.d.ts +19 -0
- package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +29 -0
- package/dist/client/types/com/atproto/admin/getInviteCodes.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/getModerationEvent.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +28 -0
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/getSubjectState.d.ts +26 -0
- package/dist/client/types/com/atproto/admin/getSubjectStatus.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/getUserAccountInfo.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +60 -0
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/queryModerationEvents.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -1
- package/dist/client/types/com/atproto/admin/rebaseRepo.d.ts +24 -0
- package/dist/client/types/com/atproto/admin/record.d.ts +43 -0
- package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/sendEmail.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +34 -0
- package/dist/client/types/com/atproto/admin/updateSubjectState.d.ts +32 -0
- package/dist/client/types/com/atproto/blob/upload.d.ts +19 -0
- package/dist/client/types/com/atproto/handle/resolve.d.ts +18 -0
- package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
- package/dist/client/types/com/atproto/identity/resolveHandle.d.ts +1 -1
- package/dist/client/types/com/atproto/label/queryLabels.d.ts +1 -1
- package/dist/client/types/com/atproto/moderation/defs.d.ts +2 -1
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +46 -0
- package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/client/types/com/atproto/repo/describeRepo.d.ts +1 -1
- package/dist/client/types/com/atproto/repo/getRecord.d.ts +1 -1
- package/dist/client/types/com/atproto/repo/importRepo.d.ts +19 -0
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +1 -1
- package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +24 -0
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
- package/dist/client/types/com/atproto/repo/uploadBlob.d.ts +1 -1
- package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +19 -0
- package/dist/client/types/com/atproto/report/create.d.ts +39 -0
- package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
- package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
- package/dist/client/types/com/atproto/server/createAccount.d.ts +2 -0
- package/dist/client/types/com/atproto/server/createAppPassword.d.ts +1 -1
- package/dist/client/types/com/atproto/server/deleteSession.d.ts +1 -1
- package/dist/client/types/com/atproto/server/describeServer.d.ts +2 -1
- package/dist/client/types/com/atproto/server/getAccountInviteCodes.d.ts +1 -1
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +27 -0
- package/dist/client/types/com/atproto/server/getSession.d.ts +1 -1
- package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +31 -0
- package/dist/client/types/com/atproto/server/listAppPasswords.d.ts +1 -1
- package/dist/client/types/com/atproto/server/refreshSession.d.ts +1 -1
- package/dist/client/types/com/atproto/server/requestAccountDelete.d.ts +1 -1
- package/dist/client/types/com/atproto/server/requestEmailConfirmation.d.ts +1 -1
- package/dist/client/types/com/atproto/server/requestEmailUpdate.d.ts +1 -1
- package/dist/client/types/com/atproto/session/create.d.ts +29 -0
- package/dist/client/types/com/atproto/session/delete.d.ts +13 -0
- package/dist/client/types/com/atproto/session/get.d.ts +18 -0
- package/dist/client/types/com/atproto/session/refresh.d.ts +24 -0
- package/dist/client/types/com/atproto/sync/getBlob.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/getBlocks.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
- package/dist/client/types/com/atproto/sync/getCurrent.d.ts +22 -0
- package/dist/client/types/com/atproto/sync/getHead.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/getLatestCommit.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +21 -0
- package/dist/client/types/com/atproto/sync/importRepo.d.ts +16 -0
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/listRepos.d.ts +1 -1
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/client/types/com/atproto/temp/fetchLabels.d.ts +1 -1
- package/dist/client/types/com/atproto/temp/importRepo.d.ts +1 -1
- package/dist/client/types/com/atproto/temp/pushBlob.d.ts +1 -1
- package/dist/client/types/com/atproto/temp/requestPhoneVerification.d.ts +17 -0
- package/dist/client/types/com/atproto/temp/upgradeRepoVersion.d.ts +18 -0
- package/dist/index.js +535 -437
- package/dist/index.js.map +3 -3
- package/dist/moderation/types.d.ts +14 -14
- package/dist/rich-text/detection.d.ts +1 -1
- package/dist/rich-text/rich-text.d.ts +5 -5
- package/dist/session.d.ts +42 -0
- package/dist/src/client/index.d.ts +462 -0
- package/dist/src/client/lexicons.d.ts +2910 -0
- package/dist/src/client/schemas.d.ts +17 -0
- package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
- package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
- package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
- package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
- package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
- package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
- package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
- package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
- package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
- package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
- package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
- package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
- package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
- package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
- package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
- package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
- package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
- package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
- package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
- package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
- package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +18 -0
- package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
- package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
- package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
- package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
- package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
- package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
- package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
- package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
- package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
- package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
- package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
- package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
- package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
- package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
- package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
- package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
- package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
- package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
- package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
- package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
- package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
- package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
- package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
- package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
- package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
- package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
- package/dist/src/client/types/app/bsky/like.d.ts +10 -0
- package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
- package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
- package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
- package/dist/src/client/types/app/bsky/post.d.ts +23 -0
- package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
- package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
- package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
- package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
- package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
- package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
- package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
- package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
- package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
- package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
- package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
- package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
- package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
- package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
- package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
- package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
- package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
- package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
- package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
- package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
- package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
- package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
- package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
- package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
- package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
- package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
- package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
- package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
- package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
- package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
- package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
- package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
- package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
- package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
- package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
- package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
- package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
- package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
- package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
- package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
- package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
- package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
- package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
- package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
- package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
- package/dist/src/client/types/com/atproto/session/create.d.ts +26 -0
- package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
- package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
- package/dist/src/client/types/com/atproto/session/refresh.d.ts +21 -0
- package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
- package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
- package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/schemas.d.ts +19 -0
- package/dist/src/session.d.ts +42 -0
- package/dist/src/types/app/bsky/acceptedBadge.d.ts +10 -0
- package/dist/src/types/app/bsky/badge.d.ts +22 -0
- package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
- package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
- package/dist/src/types/app/bsky/declaration.d.ts +6 -0
- package/dist/src/types/app/bsky/follow.d.ts +9 -0
- package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
- package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
- package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
- package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
- package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
- package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
- package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
- package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
- package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
- package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
- package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
- package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
- package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
- package/dist/src/types/app/bsky/invite.d.ts +10 -0
- package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
- package/dist/src/types/app/bsky/like.d.ts +10 -0
- package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
- package/dist/src/types/app/bsky/post.d.ts +23 -0
- package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
- package/dist/src/types/app/bsky/profile.d.ts +11 -0
- package/dist/src/types/app/bsky/repost.d.ts +10 -0
- package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
- package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
- package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
- package/dist/src/types/com/atproto/createSession.d.ts +23 -0
- package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
- package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
- package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
- package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
- package/dist/src/types/com/atproto/getSession.d.ts +17 -0
- package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
- package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
- package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
- package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
- package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
- package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
- package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
- package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
- package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
- package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
- package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
- package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
- package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
- package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
- package/dist/src/types/todo/adx/createAccount.d.ts +36 -0
- package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
- package/dist/src/types/todo/adx/createSession.d.ts +22 -0
- package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
- package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
- package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
- package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
- package/dist/src/types/todo/adx/getSession.d.ts +17 -0
- package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
- package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
- package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
- package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
- package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
- package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
- package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
- package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
- package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
- package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
- package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
- package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
- package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
- package/dist/src/types/todo/social/badge.d.ts +23 -0
- package/dist/src/types/todo/social/follow.d.ts +5 -0
- package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
- package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
- package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
- package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
- package/dist/src/types/todo/social/getProfile.d.ts +40 -0
- package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
- package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
- package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
- package/dist/src/types/todo/social/like.d.ts +5 -0
- package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
- package/dist/src/types/todo/social/post.d.ts +18 -0
- package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
- package/dist/src/types/todo/social/profile.d.ts +10 -0
- package/dist/src/types/todo/social/repost.d.ts +5 -0
- package/dist/types.d.ts +5 -5
- package/docs/moderation.md +3 -3
- package/package.json +6 -6
- package/src/agent.ts +26 -8
- package/src/client/index.ts +78 -64
- package/src/client/lexicons.ts +120 -49
- package/src/client/types/com/atproto/admin/defs.ts +29 -0
- package/src/client/types/{app/bsky/unspecced/getPopular.ts → com/atproto/admin/getAccountInfos.ts} +3 -6
- package/src/client/types/com/atproto/admin/queryModerationStatuses.ts +2 -0
- package/src/client/types/com/atproto/admin/sendEmail.ts +2 -0
- package/src/client/types/com/atproto/moderation/defs.ts +3 -0
- package/src/client/types/com/atproto/server/createAccount.ts +2 -0
- package/src/client/types/com/atproto/server/describeServer.ts +1 -0
- package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +32 -0
- package/src/moderation/index.ts +4 -4
- package/src/types.ts +6 -1
- package/tests/agent.test.ts +2 -2
- package/tests/moderation.test.ts +1 -1
|
@@ -31,7 +31,7 @@ export declare function isModEventView(v: unknown): v is ModEventView;
|
|
|
31
31
|
export declare function validateModEventView(v: unknown): ValidationResult;
|
|
32
32
|
export interface ModEventViewDetail {
|
|
33
33
|
id: number;
|
|
34
|
-
event: ModEventTakedown | ModEventReverseTakedown | ModEventComment | ModEventReport | ModEventLabel | ModEventAcknowledge | ModEventEscalate | ModEventMute | {
|
|
34
|
+
event: ModEventTakedown | ModEventReverseTakedown | ModEventComment | ModEventReport | ModEventLabel | ModEventAcknowledge | ModEventEscalate | ModEventMute | ModEventResolveAppeal | {
|
|
35
35
|
$type: string;
|
|
36
36
|
[k: string]: unknown;
|
|
37
37
|
};
|
|
@@ -78,7 +78,9 @@ export interface SubjectStatusView {
|
|
|
78
78
|
lastReviewedBy?: string;
|
|
79
79
|
lastReviewedAt?: string;
|
|
80
80
|
lastReportedAt?: string;
|
|
81
|
+
lastAppealedAt?: string;
|
|
81
82
|
takendown?: boolean;
|
|
83
|
+
appealed?: boolean;
|
|
82
84
|
suspendUntil?: string;
|
|
83
85
|
[k: string]: unknown;
|
|
84
86
|
}
|
|
@@ -135,6 +137,7 @@ export interface AccountView {
|
|
|
135
137
|
did: string;
|
|
136
138
|
handle: string;
|
|
137
139
|
email?: string;
|
|
140
|
+
relatedRecords?: {}[];
|
|
138
141
|
indexedAt: string;
|
|
139
142
|
invitedBy?: ComAtprotoServerDefs.InviteCode;
|
|
140
143
|
invites?: ComAtprotoServerDefs.InviteCode[];
|
|
@@ -237,7 +240,7 @@ export interface VideoDetails {
|
|
|
237
240
|
}
|
|
238
241
|
export declare function isVideoDetails(v: unknown): v is VideoDetails;
|
|
239
242
|
export declare function validateVideoDetails(v: unknown): ValidationResult;
|
|
240
|
-
export
|
|
243
|
+
export type SubjectReviewState = 'lex:com.atproto.admin.defs#reviewOpen' | 'lex:com.atproto.admin.defs#reviewEscalated' | 'lex:com.atproto.admin.defs#reviewClosed' | (string & {});
|
|
241
244
|
export declare const REVIEWOPEN = "com.atproto.admin.defs#reviewOpen";
|
|
242
245
|
export declare const REVIEWESCALATED = "com.atproto.admin.defs#reviewEscalated";
|
|
243
246
|
export declare const REVIEWCLOSED = "com.atproto.admin.defs#reviewClosed";
|
|
@@ -254,6 +257,12 @@ export interface ModEventReverseTakedown {
|
|
|
254
257
|
}
|
|
255
258
|
export declare function isModEventReverseTakedown(v: unknown): v is ModEventReverseTakedown;
|
|
256
259
|
export declare function validateModEventReverseTakedown(v: unknown): ValidationResult;
|
|
260
|
+
export interface ModEventResolveAppeal {
|
|
261
|
+
comment?: string;
|
|
262
|
+
[k: string]: unknown;
|
|
263
|
+
}
|
|
264
|
+
export declare function isModEventResolveAppeal(v: unknown): v is ModEventResolveAppeal;
|
|
265
|
+
export declare function validateModEventResolveAppeal(v: unknown): ValidationResult;
|
|
257
266
|
export interface ModEventComment {
|
|
258
267
|
comment: string;
|
|
259
268
|
sticky?: boolean;
|
|
@@ -303,6 +312,7 @@ export declare function isModEventUnmute(v: unknown): v is ModEventUnmute;
|
|
|
303
312
|
export declare function validateModEventUnmute(v: unknown): ValidationResult;
|
|
304
313
|
export interface ModEventEmail {
|
|
305
314
|
subjectLine: string;
|
|
315
|
+
comment?: string;
|
|
306
316
|
[k: string]: unknown;
|
|
307
317
|
}
|
|
308
318
|
export declare function isModEventEmail(v: unknown): v is ModEventEmail;
|
|
@@ -16,7 +16,7 @@ export interface InputSchema {
|
|
|
16
16
|
createdBy: string;
|
|
17
17
|
[k: string]: unknown;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type OutputSchema = ComAtprotoAdminDefs.ModEventView;
|
|
20
20
|
export interface CallOptions {
|
|
21
21
|
headers?: Headers;
|
|
22
22
|
qp?: QueryParams;
|
|
@@ -3,8 +3,8 @@ import * as ComAtprotoAdminDefs from './defs';
|
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
did: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type InputSchema = undefined;
|
|
7
|
+
export type OutputSchema = ComAtprotoAdminDefs.AccountView;
|
|
8
8
|
export interface CallOptions {
|
|
9
9
|
headers?: Headers;
|
|
10
10
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
dids: string[];
|
|
5
|
+
}
|
|
6
|
+
export type InputSchema = undefined;
|
|
7
|
+
export interface OutputSchema {
|
|
8
|
+
infos: ComAtprotoAdminDefs.AccountView[];
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
headers?: Headers;
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
data: OutputSchema;
|
|
18
|
+
}
|
|
19
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export declare type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
total: CodesDetail;
|
|
8
|
+
user: CodesDetail;
|
|
9
|
+
admin: CodesDetail;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
headers?: Headers;
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
data: OutputSchema;
|
|
19
|
+
}
|
|
20
|
+
export declare function toKnownErr(e: any): any;
|
|
21
|
+
export interface CodesDetail {
|
|
22
|
+
count: number;
|
|
23
|
+
available: number;
|
|
24
|
+
used: number;
|
|
25
|
+
disabled: number;
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export declare function isCodesDetail(v: unknown): v is CodesDetail;
|
|
29
|
+
export declare function validateCodesDetail(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
id: number;
|
|
5
|
+
}
|
|
6
|
+
export declare type InputSchema = undefined;
|
|
7
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionViewDetail;
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
}
|
|
11
|
+
export interface Response {
|
|
12
|
+
success: boolean;
|
|
13
|
+
headers: Headers;
|
|
14
|
+
data: OutputSchema;
|
|
15
|
+
}
|
|
16
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
subject?: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
actions: ComAtprotoAdminDefs.ActionView[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
headers?: Headers;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -3,8 +3,8 @@ import * as ComAtprotoAdminDefs from './defs';
|
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
id: number;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type InputSchema = undefined;
|
|
7
|
+
export type OutputSchema = ComAtprotoAdminDefs.ModEventViewDetail;
|
|
8
8
|
export interface CallOptions {
|
|
9
9
|
headers?: Headers;
|
|
10
10
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
id: number;
|
|
5
|
+
}
|
|
6
|
+
export declare type InputSchema = undefined;
|
|
7
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ReportViewDetail;
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
}
|
|
11
|
+
export interface Response {
|
|
12
|
+
success: boolean;
|
|
13
|
+
headers: Headers;
|
|
14
|
+
data: OutputSchema;
|
|
15
|
+
}
|
|
16
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
subject?: string;
|
|
5
|
+
ignoreSubjects?: string[];
|
|
6
|
+
actionedBy?: string;
|
|
7
|
+
reporters?: string[];
|
|
8
|
+
resolved?: boolean;
|
|
9
|
+
actionType?: 'com.atproto.admin.defs#takedown' | 'com.atproto.admin.defs#flag' | 'com.atproto.admin.defs#acknowledge' | 'com.atproto.admin.defs#escalate' | (string & {});
|
|
10
|
+
limit?: number;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
reverse?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare type InputSchema = undefined;
|
|
15
|
+
export interface OutputSchema {
|
|
16
|
+
cursor?: string;
|
|
17
|
+
reports: ComAtprotoAdminDefs.ReportView[];
|
|
18
|
+
[k: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
export interface CallOptions {
|
|
21
|
+
headers?: Headers;
|
|
22
|
+
}
|
|
23
|
+
export interface Response {
|
|
24
|
+
success: boolean;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
data: OutputSchema;
|
|
27
|
+
}
|
|
28
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -4,8 +4,8 @@ export interface QueryParams {
|
|
|
4
4
|
uri: string;
|
|
5
5
|
cid?: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type InputSchema = undefined;
|
|
8
|
+
export type OutputSchema = ComAtprotoAdminDefs.RecordViewDetail;
|
|
9
9
|
export interface CallOptions {
|
|
10
10
|
headers?: Headers;
|
|
11
11
|
}
|
|
@@ -3,8 +3,8 @@ import * as ComAtprotoAdminDefs from './defs';
|
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
did: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type InputSchema = undefined;
|
|
7
|
+
export type OutputSchema = ComAtprotoAdminDefs.RepoViewDetail;
|
|
8
8
|
export interface CallOptions {
|
|
9
9
|
headers?: Headers;
|
|
10
10
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
4
|
+
export interface QueryParams {
|
|
5
|
+
did?: string;
|
|
6
|
+
uri?: string;
|
|
7
|
+
blob?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type InputSchema = undefined;
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | ComAtprotoAdminDefs.RepoBlobRef | {
|
|
12
|
+
$type: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
takedown?: ComAtprotoAdminDefs.SubjectState;
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
headers?: Headers;
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -6,7 +6,7 @@ export interface QueryParams {
|
|
|
6
6
|
uri?: string;
|
|
7
7
|
blob?: string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type InputSchema = undefined;
|
|
10
10
|
export interface OutputSchema {
|
|
11
11
|
subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | ComAtprotoAdminDefs.RepoBlobRef | {
|
|
12
12
|
$type: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
did: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type InputSchema = undefined;
|
|
7
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.UserAccountView;
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
}
|
|
11
|
+
export interface Response {
|
|
12
|
+
success: boolean;
|
|
13
|
+
headers: Headers;
|
|
14
|
+
data: OutputSchema;
|
|
15
|
+
}
|
|
16
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
|
|
3
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
4
|
+
import * as ComAtprotoAdminRepo from './repo';
|
|
5
|
+
import * as ComAtprotoAdminRecord from './record';
|
|
6
|
+
import * as ComAtprotoAdminBlob from './blob';
|
|
7
|
+
import * as ComAtprotoAdminModerationReport from './moderationReport';
|
|
8
|
+
export interface View {
|
|
9
|
+
id: number;
|
|
10
|
+
action: ActionType;
|
|
11
|
+
subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
|
|
12
|
+
$type: string;
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
subjectBlobCids: string[];
|
|
16
|
+
reason: string;
|
|
17
|
+
createdBy: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
reversal?: Reversal;
|
|
20
|
+
resolvedReportIds: number[];
|
|
21
|
+
[k: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export declare function isView(v: unknown): v is View;
|
|
24
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
25
|
+
export interface ViewDetail {
|
|
26
|
+
id: number;
|
|
27
|
+
action: ActionType;
|
|
28
|
+
subject: ComAtprotoAdminRepo.View | ComAtprotoAdminRecord.View | {
|
|
29
|
+
$type: string;
|
|
30
|
+
[k: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
subjectBlobs: ComAtprotoAdminBlob.View[];
|
|
33
|
+
reason: string;
|
|
34
|
+
createdBy: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
reversal?: Reversal;
|
|
37
|
+
resolvedReports: ComAtprotoAdminModerationReport.View[];
|
|
38
|
+
[k: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
41
|
+
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
42
|
+
export interface ViewCurrent {
|
|
43
|
+
id: number;
|
|
44
|
+
action: ActionType;
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export declare function isViewCurrent(v: unknown): v is ViewCurrent;
|
|
48
|
+
export declare function validateViewCurrent(v: unknown): ValidationResult;
|
|
49
|
+
export interface Reversal {
|
|
50
|
+
reason: string;
|
|
51
|
+
createdBy: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
[k: string]: unknown;
|
|
54
|
+
}
|
|
55
|
+
export declare function isReversal(v: unknown): v is Reversal;
|
|
56
|
+
export declare function validateReversal(v: unknown): ValidationResult;
|
|
57
|
+
export declare type ActionType = 'com.atproto.admin.moderationAction#takedown' | 'com.atproto.admin.moderationAction#flag' | 'com.atproto.admin.moderationAction#acknowledge' | (string & {});
|
|
58
|
+
export declare const TAKEDOWN = "com.atproto.admin.moderationAction#takedown";
|
|
59
|
+
export declare const FLAG = "com.atproto.admin.moderationAction#flag";
|
|
60
|
+
export declare const ACKNOWLEDGE = "com.atproto.admin.moderationAction#acknowledge";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoReportReasonType from '../report/reasonType';
|
|
3
|
+
import * as ComAtprotoRepoRepoRef from '../repo/repoRef';
|
|
4
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
5
|
+
import * as ComAtprotoAdminRepo from './repo';
|
|
6
|
+
import * as ComAtprotoAdminRecord from './record';
|
|
7
|
+
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
8
|
+
export interface View {
|
|
9
|
+
id: number;
|
|
10
|
+
reasonType: ComAtprotoReportReasonType.Main;
|
|
11
|
+
reason?: string;
|
|
12
|
+
subject: ComAtprotoRepoRepoRef.Main | ComAtprotoRepoStrongRef.Main | {
|
|
13
|
+
$type: string;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
reportedByDid: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
resolvedByActionIds: number[];
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export declare function isView(v: unknown): v is View;
|
|
22
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
23
|
+
export interface ViewDetail {
|
|
24
|
+
id: number;
|
|
25
|
+
reasonType: ComAtprotoReportReasonType.Main;
|
|
26
|
+
reason?: string;
|
|
27
|
+
subject: ComAtprotoAdminRepo.View | ComAtprotoAdminRecord.View | {
|
|
28
|
+
$type: string;
|
|
29
|
+
[k: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
reportedByDid: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
resolvedByActions: ComAtprotoAdminModerationAction.View[];
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
37
|
+
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
@@ -9,7 +9,7 @@ export interface QueryParams {
|
|
|
9
9
|
limit?: number;
|
|
10
10
|
cursor?: string;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type InputSchema = undefined;
|
|
13
13
|
export interface OutputSchema {
|
|
14
14
|
cursor?: string;
|
|
15
15
|
events: ComAtprotoAdminDefs.ModEventView[];
|
|
@@ -14,10 +14,11 @@ export interface QueryParams {
|
|
|
14
14
|
sortField?: 'lastReviewedAt' | 'lastReportedAt';
|
|
15
15
|
sortDirection?: 'asc' | 'desc';
|
|
16
16
|
takendown?: boolean;
|
|
17
|
+
appealed?: boolean;
|
|
17
18
|
limit?: number;
|
|
18
19
|
cursor?: string;
|
|
19
20
|
}
|
|
20
|
-
export
|
|
21
|
+
export type InputSchema = undefined;
|
|
21
22
|
export interface OutputSchema {
|
|
22
23
|
cursor?: string;
|
|
23
24
|
subjectStatuses: ComAtprotoAdminDefs.SubjectStatusView[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
repo: string;
|
|
6
|
+
swapCommit?: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface CallOptions {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
qp?: QueryParams;
|
|
12
|
+
encoding: 'application/json';
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
}
|
|
18
|
+
export declare class InvalidSwapError extends XRPCError {
|
|
19
|
+
constructor(src: XRPCError);
|
|
20
|
+
}
|
|
21
|
+
export declare class ConcurrentWritesError extends XRPCError {
|
|
22
|
+
constructor(src: XRPCError);
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoAdminRepo from './repo';
|
|
3
|
+
import * as ComAtprotoAdminBlob from './blob';
|
|
4
|
+
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
5
|
+
import * as ComAtprotoAdminModerationReport from './moderationReport';
|
|
6
|
+
export interface View {
|
|
7
|
+
uri: string;
|
|
8
|
+
cid: string;
|
|
9
|
+
value: {};
|
|
10
|
+
blobCids: string[];
|
|
11
|
+
indexedAt: string;
|
|
12
|
+
moderation: Moderation;
|
|
13
|
+
repo: ComAtprotoAdminRepo.View;
|
|
14
|
+
[k: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export declare function isView(v: unknown): v is View;
|
|
17
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
18
|
+
export interface ViewDetail {
|
|
19
|
+
uri: string;
|
|
20
|
+
cid: string;
|
|
21
|
+
value: {};
|
|
22
|
+
blobs: ComAtprotoAdminBlob.View[];
|
|
23
|
+
indexedAt: string;
|
|
24
|
+
moderation: ModerationDetail;
|
|
25
|
+
repo: ComAtprotoAdminRepo.View;
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
29
|
+
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
30
|
+
export interface Moderation {
|
|
31
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
32
|
+
[k: string]: unknown;
|
|
33
|
+
}
|
|
34
|
+
export declare function isModeration(v: unknown): v is Moderation;
|
|
35
|
+
export declare function validateModeration(v: unknown): ValidationResult;
|
|
36
|
+
export interface ModerationDetail {
|
|
37
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
38
|
+
actions: ComAtprotoAdminModerationAction.View[];
|
|
39
|
+
reports: ComAtprotoAdminModerationReport.View[];
|
|
40
|
+
[k: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
export declare function isModerationDetail(v: unknown): v is ModerationDetail;
|
|
43
|
+
export declare function validateModerationDetail(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
2
|
+
import * as ComAtprotoAdminModerationAction from './moderationAction';
|
|
3
|
+
import * as ComAtprotoAdminModerationReport from './moderationReport';
|
|
4
|
+
export interface View {
|
|
5
|
+
did: string;
|
|
6
|
+
handle: string;
|
|
7
|
+
account?: Account;
|
|
8
|
+
relatedRecords: {}[];
|
|
9
|
+
indexedAt: string;
|
|
10
|
+
moderation: Moderation;
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export declare function isView(v: unknown): v is View;
|
|
14
|
+
export declare function validateView(v: unknown): ValidationResult;
|
|
15
|
+
export interface ViewDetail {
|
|
16
|
+
did: string;
|
|
17
|
+
handle: string;
|
|
18
|
+
account?: Account;
|
|
19
|
+
relatedRecords: {}[];
|
|
20
|
+
indexedAt: string;
|
|
21
|
+
moderation: ModerationDetail;
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
export declare function isViewDetail(v: unknown): v is ViewDetail;
|
|
25
|
+
export declare function validateViewDetail(v: unknown): ValidationResult;
|
|
26
|
+
export interface Account {
|
|
27
|
+
email: string;
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
export declare function isAccount(v: unknown): v is Account;
|
|
31
|
+
export declare function validateAccount(v: unknown): ValidationResult;
|
|
32
|
+
export interface Moderation {
|
|
33
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare function isModeration(v: unknown): v is Moderation;
|
|
37
|
+
export declare function validateModeration(v: unknown): ValidationResult;
|
|
38
|
+
export interface ModerationDetail {
|
|
39
|
+
currentAction?: ComAtprotoAdminModerationAction.ViewCurrent;
|
|
40
|
+
actions: ComAtprotoAdminModerationAction.View[];
|
|
41
|
+
reports: ComAtprotoAdminModerationReport.View[];
|
|
42
|
+
[k: string]: unknown;
|
|
43
|
+
}
|
|
44
|
+
export declare function isModerationDetail(v: unknown): v is ModerationDetail;
|
|
45
|
+
export declare function validateModerationDetail(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
actionId: number;
|
|
7
|
+
reportIds: number[];
|
|
8
|
+
createdBy: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionView;
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
headers?: Headers;
|
|
14
|
+
qp?: QueryParams;
|
|
15
|
+
encoding: 'application/json';
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
id: number;
|
|
7
|
+
reason: string;
|
|
8
|
+
createdBy: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionView;
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
headers?: Headers;
|
|
14
|
+
qp?: QueryParams;
|
|
15
|
+
encoding: 'application/json';
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
3
|
+
import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
4
|
+
export interface QueryParams {
|
|
5
|
+
}
|
|
6
|
+
export interface InputSchema {
|
|
7
|
+
action: 'com.atproto.admin.defs#takedown' | 'com.atproto.admin.defs#flag' | 'com.atproto.admin.defs#acknowledge' | (string & {});
|
|
8
|
+
subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | {
|
|
9
|
+
$type: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
subjectBlobCids?: string[];
|
|
13
|
+
createLabelVals?: string[];
|
|
14
|
+
negateLabelVals?: string[];
|
|
15
|
+
reason: string;
|
|
16
|
+
durationInHours?: number;
|
|
17
|
+
createdBy: string;
|
|
18
|
+
[k: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
export declare type OutputSchema = ComAtprotoAdminDefs.ActionView;
|
|
21
|
+
export interface CallOptions {
|
|
22
|
+
headers?: Headers;
|
|
23
|
+
qp?: QueryParams;
|
|
24
|
+
encoding: 'application/json';
|
|
25
|
+
}
|
|
26
|
+
export interface Response {
|
|
27
|
+
success: boolean;
|
|
28
|
+
headers: Headers;
|
|
29
|
+
data: OutputSchema;
|
|
30
|
+
}
|
|
31
|
+
export declare class SubjectHasActionError extends XRPCError {
|
|
32
|
+
constructor(src: XRPCError);
|
|
33
|
+
}
|
|
34
|
+
export declare function toKnownErr(e: any): any;
|