@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
package/src/client/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/di
|
|
|
14
14
|
import * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent'
|
|
15
15
|
import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
|
|
16
16
|
import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo'
|
|
17
|
+
import * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos'
|
|
17
18
|
import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
|
|
18
19
|
import * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/getModerationEvent'
|
|
19
20
|
import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
|
|
@@ -79,6 +80,7 @@ import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscrib
|
|
|
79
80
|
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
|
|
80
81
|
import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'
|
|
81
82
|
import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'
|
|
83
|
+
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
|
|
82
84
|
import * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'
|
|
83
85
|
import * as AppBskyActorDefs from './types/app/bsky/actor/defs'
|
|
84
86
|
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
|
|
@@ -140,7 +142,6 @@ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
|
|
|
140
142
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
141
143
|
import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
|
|
142
144
|
import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs'
|
|
143
|
-
import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
|
|
144
145
|
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
|
|
145
146
|
import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton'
|
|
146
147
|
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
|
|
@@ -153,6 +154,7 @@ export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/di
|
|
|
153
154
|
export * as ComAtprotoAdminEmitModerationEvent from './types/com/atproto/admin/emitModerationEvent'
|
|
154
155
|
export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
|
|
155
156
|
export * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo'
|
|
157
|
+
export * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos'
|
|
156
158
|
export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
|
|
157
159
|
export * as ComAtprotoAdminGetModerationEvent from './types/com/atproto/admin/getModerationEvent'
|
|
158
160
|
export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
|
|
@@ -218,6 +220,7 @@ export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscrib
|
|
|
218
220
|
export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
|
|
219
221
|
export * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'
|
|
220
222
|
export * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'
|
|
223
|
+
export * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
|
|
221
224
|
export * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'
|
|
222
225
|
export * as AppBskyActorDefs from './types/app/bsky/actor/defs'
|
|
223
226
|
export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
|
|
@@ -279,7 +282,6 @@ export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
|
|
|
279
282
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
280
283
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
|
|
281
284
|
export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs'
|
|
282
|
-
export * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
|
|
283
285
|
export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
|
|
284
286
|
export * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton'
|
|
285
287
|
export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
|
|
@@ -297,6 +299,7 @@ export const COM_ATPROTO_MODERATION = {
|
|
|
297
299
|
DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
|
|
298
300
|
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
|
|
299
301
|
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
302
|
+
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
|
|
300
303
|
}
|
|
301
304
|
export const APP_BSKY_GRAPH = {
|
|
302
305
|
DefsModlist: 'app.bsky.graph.defs#modlist',
|
|
@@ -335,39 +338,39 @@ export class AtpServiceClient {
|
|
|
335
338
|
|
|
336
339
|
export class ComNS {
|
|
337
340
|
_service: AtpServiceClient
|
|
338
|
-
atproto:
|
|
341
|
+
atproto: ComAtprotoNS
|
|
339
342
|
|
|
340
343
|
constructor(service: AtpServiceClient) {
|
|
341
344
|
this._service = service
|
|
342
|
-
this.atproto = new
|
|
345
|
+
this.atproto = new ComAtprotoNS(service)
|
|
343
346
|
}
|
|
344
347
|
}
|
|
345
348
|
|
|
346
|
-
export class
|
|
349
|
+
export class ComAtprotoNS {
|
|
347
350
|
_service: AtpServiceClient
|
|
348
|
-
admin:
|
|
349
|
-
identity:
|
|
350
|
-
label:
|
|
351
|
-
moderation:
|
|
352
|
-
repo:
|
|
353
|
-
server:
|
|
354
|
-
sync:
|
|
355
|
-
temp:
|
|
351
|
+
admin: ComAtprotoAdminNS
|
|
352
|
+
identity: ComAtprotoIdentityNS
|
|
353
|
+
label: ComAtprotoLabelNS
|
|
354
|
+
moderation: ComAtprotoModerationNS
|
|
355
|
+
repo: ComAtprotoRepoNS
|
|
356
|
+
server: ComAtprotoServerNS
|
|
357
|
+
sync: ComAtprotoSyncNS
|
|
358
|
+
temp: ComAtprotoTempNS
|
|
356
359
|
|
|
357
360
|
constructor(service: AtpServiceClient) {
|
|
358
361
|
this._service = service
|
|
359
|
-
this.admin = new
|
|
360
|
-
this.identity = new
|
|
361
|
-
this.label = new
|
|
362
|
-
this.moderation = new
|
|
363
|
-
this.repo = new
|
|
364
|
-
this.server = new
|
|
365
|
-
this.sync = new
|
|
366
|
-
this.temp = new
|
|
362
|
+
this.admin = new ComAtprotoAdminNS(service)
|
|
363
|
+
this.identity = new ComAtprotoIdentityNS(service)
|
|
364
|
+
this.label = new ComAtprotoLabelNS(service)
|
|
365
|
+
this.moderation = new ComAtprotoModerationNS(service)
|
|
366
|
+
this.repo = new ComAtprotoRepoNS(service)
|
|
367
|
+
this.server = new ComAtprotoServerNS(service)
|
|
368
|
+
this.sync = new ComAtprotoSyncNS(service)
|
|
369
|
+
this.temp = new ComAtprotoTempNS(service)
|
|
367
370
|
}
|
|
368
371
|
}
|
|
369
372
|
|
|
370
|
-
export class
|
|
373
|
+
export class ComAtprotoAdminNS {
|
|
371
374
|
_service: AtpServiceClient
|
|
372
375
|
|
|
373
376
|
constructor(service: AtpServiceClient) {
|
|
@@ -440,6 +443,17 @@ export class AdminNS {
|
|
|
440
443
|
})
|
|
441
444
|
}
|
|
442
445
|
|
|
446
|
+
getAccountInfos(
|
|
447
|
+
params?: ComAtprotoAdminGetAccountInfos.QueryParams,
|
|
448
|
+
opts?: ComAtprotoAdminGetAccountInfos.CallOptions,
|
|
449
|
+
): Promise<ComAtprotoAdminGetAccountInfos.Response> {
|
|
450
|
+
return this._service.xrpc
|
|
451
|
+
.call('com.atproto.admin.getAccountInfos', params, undefined, opts)
|
|
452
|
+
.catch((e) => {
|
|
453
|
+
throw ComAtprotoAdminGetAccountInfos.toKnownErr(e)
|
|
454
|
+
})
|
|
455
|
+
}
|
|
456
|
+
|
|
443
457
|
getInviteCodes(
|
|
444
458
|
params?: ComAtprotoAdminGetInviteCodes.QueryParams,
|
|
445
459
|
opts?: ComAtprotoAdminGetInviteCodes.CallOptions,
|
|
@@ -578,7 +592,7 @@ export class AdminNS {
|
|
|
578
592
|
}
|
|
579
593
|
}
|
|
580
594
|
|
|
581
|
-
export class
|
|
595
|
+
export class ComAtprotoIdentityNS {
|
|
582
596
|
_service: AtpServiceClient
|
|
583
597
|
|
|
584
598
|
constructor(service: AtpServiceClient) {
|
|
@@ -608,7 +622,7 @@ export class IdentityNS {
|
|
|
608
622
|
}
|
|
609
623
|
}
|
|
610
624
|
|
|
611
|
-
export class
|
|
625
|
+
export class ComAtprotoLabelNS {
|
|
612
626
|
_service: AtpServiceClient
|
|
613
627
|
|
|
614
628
|
constructor(service: AtpServiceClient) {
|
|
@@ -627,7 +641,7 @@ export class LabelNS {
|
|
|
627
641
|
}
|
|
628
642
|
}
|
|
629
643
|
|
|
630
|
-
export class
|
|
644
|
+
export class ComAtprotoModerationNS {
|
|
631
645
|
_service: AtpServiceClient
|
|
632
646
|
|
|
633
647
|
constructor(service: AtpServiceClient) {
|
|
@@ -646,7 +660,7 @@ export class ModerationNS {
|
|
|
646
660
|
}
|
|
647
661
|
}
|
|
648
662
|
|
|
649
|
-
export class
|
|
663
|
+
export class ComAtprotoRepoNS {
|
|
650
664
|
_service: AtpServiceClient
|
|
651
665
|
|
|
652
666
|
constructor(service: AtpServiceClient) {
|
|
@@ -742,7 +756,7 @@ export class RepoNS {
|
|
|
742
756
|
}
|
|
743
757
|
}
|
|
744
758
|
|
|
745
|
-
export class
|
|
759
|
+
export class ComAtprotoServerNS {
|
|
746
760
|
_service: AtpServiceClient
|
|
747
761
|
|
|
748
762
|
constructor(service: AtpServiceClient) {
|
|
@@ -981,7 +995,7 @@ export class ServerNS {
|
|
|
981
995
|
}
|
|
982
996
|
}
|
|
983
997
|
|
|
984
|
-
export class
|
|
998
|
+
export class ComAtprotoSyncNS {
|
|
985
999
|
_service: AtpServiceClient
|
|
986
1000
|
|
|
987
1001
|
constructor(service: AtpServiceClient) {
|
|
@@ -1110,7 +1124,7 @@ export class SyncNS {
|
|
|
1110
1124
|
}
|
|
1111
1125
|
}
|
|
1112
1126
|
|
|
1113
|
-
export class
|
|
1127
|
+
export class ComAtprotoTempNS {
|
|
1114
1128
|
_service: AtpServiceClient
|
|
1115
1129
|
|
|
1116
1130
|
constructor(service: AtpServiceClient) {
|
|
@@ -1150,6 +1164,17 @@ export class TempNS {
|
|
|
1150
1164
|
})
|
|
1151
1165
|
}
|
|
1152
1166
|
|
|
1167
|
+
requestPhoneVerification(
|
|
1168
|
+
data?: ComAtprotoTempRequestPhoneVerification.InputSchema,
|
|
1169
|
+
opts?: ComAtprotoTempRequestPhoneVerification.CallOptions,
|
|
1170
|
+
): Promise<ComAtprotoTempRequestPhoneVerification.Response> {
|
|
1171
|
+
return this._service.xrpc
|
|
1172
|
+
.call('com.atproto.temp.requestPhoneVerification', opts?.qp, data, opts)
|
|
1173
|
+
.catch((e) => {
|
|
1174
|
+
throw ComAtprotoTempRequestPhoneVerification.toKnownErr(e)
|
|
1175
|
+
})
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1153
1178
|
transferAccount(
|
|
1154
1179
|
data?: ComAtprotoTempTransferAccount.InputSchema,
|
|
1155
1180
|
opts?: ComAtprotoTempTransferAccount.CallOptions,
|
|
@@ -1164,37 +1189,37 @@ export class TempNS {
|
|
|
1164
1189
|
|
|
1165
1190
|
export class AppNS {
|
|
1166
1191
|
_service: AtpServiceClient
|
|
1167
|
-
bsky:
|
|
1192
|
+
bsky: AppBskyNS
|
|
1168
1193
|
|
|
1169
1194
|
constructor(service: AtpServiceClient) {
|
|
1170
1195
|
this._service = service
|
|
1171
|
-
this.bsky = new
|
|
1196
|
+
this.bsky = new AppBskyNS(service)
|
|
1172
1197
|
}
|
|
1173
1198
|
}
|
|
1174
1199
|
|
|
1175
|
-
export class
|
|
1200
|
+
export class AppBskyNS {
|
|
1176
1201
|
_service: AtpServiceClient
|
|
1177
|
-
actor:
|
|
1178
|
-
embed:
|
|
1179
|
-
feed:
|
|
1180
|
-
graph:
|
|
1181
|
-
notification:
|
|
1182
|
-
richtext:
|
|
1183
|
-
unspecced:
|
|
1202
|
+
actor: AppBskyActorNS
|
|
1203
|
+
embed: AppBskyEmbedNS
|
|
1204
|
+
feed: AppBskyFeedNS
|
|
1205
|
+
graph: AppBskyGraphNS
|
|
1206
|
+
notification: AppBskyNotificationNS
|
|
1207
|
+
richtext: AppBskyRichtextNS
|
|
1208
|
+
unspecced: AppBskyUnspeccedNS
|
|
1184
1209
|
|
|
1185
1210
|
constructor(service: AtpServiceClient) {
|
|
1186
1211
|
this._service = service
|
|
1187
|
-
this.actor = new
|
|
1188
|
-
this.embed = new
|
|
1189
|
-
this.feed = new
|
|
1190
|
-
this.graph = new
|
|
1191
|
-
this.notification = new
|
|
1192
|
-
this.richtext = new
|
|
1193
|
-
this.unspecced = new
|
|
1212
|
+
this.actor = new AppBskyActorNS(service)
|
|
1213
|
+
this.embed = new AppBskyEmbedNS(service)
|
|
1214
|
+
this.feed = new AppBskyFeedNS(service)
|
|
1215
|
+
this.graph = new AppBskyGraphNS(service)
|
|
1216
|
+
this.notification = new AppBskyNotificationNS(service)
|
|
1217
|
+
this.richtext = new AppBskyRichtextNS(service)
|
|
1218
|
+
this.unspecced = new AppBskyUnspeccedNS(service)
|
|
1194
1219
|
}
|
|
1195
1220
|
}
|
|
1196
1221
|
|
|
1197
|
-
export class
|
|
1222
|
+
export class AppBskyActorNS {
|
|
1198
1223
|
_service: AtpServiceClient
|
|
1199
1224
|
profile: ProfileRecord
|
|
1200
1225
|
|
|
@@ -1342,7 +1367,7 @@ export class ProfileRecord {
|
|
|
1342
1367
|
}
|
|
1343
1368
|
}
|
|
1344
1369
|
|
|
1345
|
-
export class
|
|
1370
|
+
export class AppBskyEmbedNS {
|
|
1346
1371
|
_service: AtpServiceClient
|
|
1347
1372
|
|
|
1348
1373
|
constructor(service: AtpServiceClient) {
|
|
@@ -1350,7 +1375,7 @@ export class EmbedNS {
|
|
|
1350
1375
|
}
|
|
1351
1376
|
}
|
|
1352
1377
|
|
|
1353
|
-
export class
|
|
1378
|
+
export class AppBskyFeedNS {
|
|
1354
1379
|
_service: AtpServiceClient
|
|
1355
1380
|
generator: GeneratorRecord
|
|
1356
1381
|
like: LikeRecord
|
|
@@ -1853,7 +1878,7 @@ export class ThreadgateRecord {
|
|
|
1853
1878
|
}
|
|
1854
1879
|
}
|
|
1855
1880
|
|
|
1856
|
-
export class
|
|
1881
|
+
export class AppBskyGraphNS {
|
|
1857
1882
|
_service: AtpServiceClient
|
|
1858
1883
|
block: BlockRecord
|
|
1859
1884
|
follow: FollowRecord
|
|
@@ -2328,7 +2353,7 @@ export class ListitemRecord {
|
|
|
2328
2353
|
}
|
|
2329
2354
|
}
|
|
2330
2355
|
|
|
2331
|
-
export class
|
|
2356
|
+
export class AppBskyNotificationNS {
|
|
2332
2357
|
_service: AtpServiceClient
|
|
2333
2358
|
|
|
2334
2359
|
constructor(service: AtpServiceClient) {
|
|
@@ -2380,7 +2405,7 @@ export class NotificationNS {
|
|
|
2380
2405
|
}
|
|
2381
2406
|
}
|
|
2382
2407
|
|
|
2383
|
-
export class
|
|
2408
|
+
export class AppBskyRichtextNS {
|
|
2384
2409
|
_service: AtpServiceClient
|
|
2385
2410
|
|
|
2386
2411
|
constructor(service: AtpServiceClient) {
|
|
@@ -2388,24 +2413,13 @@ export class RichtextNS {
|
|
|
2388
2413
|
}
|
|
2389
2414
|
}
|
|
2390
2415
|
|
|
2391
|
-
export class
|
|
2416
|
+
export class AppBskyUnspeccedNS {
|
|
2392
2417
|
_service: AtpServiceClient
|
|
2393
2418
|
|
|
2394
2419
|
constructor(service: AtpServiceClient) {
|
|
2395
2420
|
this._service = service
|
|
2396
2421
|
}
|
|
2397
2422
|
|
|
2398
|
-
getPopular(
|
|
2399
|
-
params?: AppBskyUnspeccedGetPopular.QueryParams,
|
|
2400
|
-
opts?: AppBskyUnspeccedGetPopular.CallOptions,
|
|
2401
|
-
): Promise<AppBskyUnspeccedGetPopular.Response> {
|
|
2402
|
-
return this._service.xrpc
|
|
2403
|
-
.call('app.bsky.unspecced.getPopular', params, undefined, opts)
|
|
2404
|
-
.catch((e) => {
|
|
2405
|
-
throw AppBskyUnspeccedGetPopular.toKnownErr(e)
|
|
2406
|
-
})
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
2423
|
getPopularFeedGenerators(
|
|
2410
2424
|
params?: AppBskyUnspeccedGetPopularFeedGenerators.QueryParams,
|
|
2411
2425
|
opts?: AppBskyUnspeccedGetPopularFeedGenerators.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -102,6 +102,7 @@ export const schemaDict = {
|
|
|
102
102
|
'lex:com.atproto.admin.defs#modEventAcknowledge',
|
|
103
103
|
'lex:com.atproto.admin.defs#modEventEscalate',
|
|
104
104
|
'lex:com.atproto.admin.defs#modEventMute',
|
|
105
|
+
'lex:com.atproto.admin.defs#modEventResolveAppeal',
|
|
105
106
|
],
|
|
106
107
|
},
|
|
107
108
|
subject: {
|
|
@@ -237,9 +238,20 @@ export const schemaDict = {
|
|
|
237
238
|
type: 'string',
|
|
238
239
|
format: 'datetime',
|
|
239
240
|
},
|
|
241
|
+
lastAppealedAt: {
|
|
242
|
+
type: 'string',
|
|
243
|
+
format: 'datetime',
|
|
244
|
+
description:
|
|
245
|
+
'Timestamp referencing when the author of the subject appealed a moderation action',
|
|
246
|
+
},
|
|
240
247
|
takendown: {
|
|
241
248
|
type: 'boolean',
|
|
242
249
|
},
|
|
250
|
+
appealed: {
|
|
251
|
+
type: 'boolean',
|
|
252
|
+
description:
|
|
253
|
+
'True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators.',
|
|
254
|
+
},
|
|
243
255
|
suspendUntil: {
|
|
244
256
|
type: 'string',
|
|
245
257
|
format: 'datetime',
|
|
@@ -424,6 +436,12 @@ export const schemaDict = {
|
|
|
424
436
|
email: {
|
|
425
437
|
type: 'string',
|
|
426
438
|
},
|
|
439
|
+
relatedRecords: {
|
|
440
|
+
type: 'array',
|
|
441
|
+
items: {
|
|
442
|
+
type: 'unknown',
|
|
443
|
+
},
|
|
444
|
+
},
|
|
427
445
|
indexedAt: {
|
|
428
446
|
type: 'string',
|
|
429
447
|
format: 'datetime',
|
|
@@ -717,6 +735,16 @@ export const schemaDict = {
|
|
|
717
735
|
},
|
|
718
736
|
},
|
|
719
737
|
},
|
|
738
|
+
modEventResolveAppeal: {
|
|
739
|
+
type: 'object',
|
|
740
|
+
description: 'Resolve appeal on a subject',
|
|
741
|
+
properties: {
|
|
742
|
+
comment: {
|
|
743
|
+
type: 'string',
|
|
744
|
+
description: 'Describe resolution.',
|
|
745
|
+
},
|
|
746
|
+
},
|
|
747
|
+
},
|
|
720
748
|
modEventComment: {
|
|
721
749
|
type: 'object',
|
|
722
750
|
description: 'Add a comment to a subject',
|
|
@@ -816,6 +844,10 @@ export const schemaDict = {
|
|
|
816
844
|
type: 'string',
|
|
817
845
|
description: 'The subject line of the email sent to the user.',
|
|
818
846
|
},
|
|
847
|
+
comment: {
|
|
848
|
+
type: 'string',
|
|
849
|
+
description: 'Additional comment about the outgoing comm.',
|
|
850
|
+
},
|
|
819
851
|
},
|
|
820
852
|
},
|
|
821
853
|
},
|
|
@@ -1020,6 +1052,45 @@ export const schemaDict = {
|
|
|
1020
1052
|
},
|
|
1021
1053
|
},
|
|
1022
1054
|
},
|
|
1055
|
+
ComAtprotoAdminGetAccountInfos: {
|
|
1056
|
+
lexicon: 1,
|
|
1057
|
+
id: 'com.atproto.admin.getAccountInfos',
|
|
1058
|
+
defs: {
|
|
1059
|
+
main: {
|
|
1060
|
+
type: 'query',
|
|
1061
|
+
description: 'Get details about some accounts.',
|
|
1062
|
+
parameters: {
|
|
1063
|
+
type: 'params',
|
|
1064
|
+
required: ['dids'],
|
|
1065
|
+
properties: {
|
|
1066
|
+
dids: {
|
|
1067
|
+
type: 'array',
|
|
1068
|
+
items: {
|
|
1069
|
+
type: 'string',
|
|
1070
|
+
format: 'did',
|
|
1071
|
+
},
|
|
1072
|
+
},
|
|
1073
|
+
},
|
|
1074
|
+
},
|
|
1075
|
+
output: {
|
|
1076
|
+
encoding: 'application/json',
|
|
1077
|
+
schema: {
|
|
1078
|
+
type: 'object',
|
|
1079
|
+
required: ['infos'],
|
|
1080
|
+
properties: {
|
|
1081
|
+
infos: {
|
|
1082
|
+
type: 'array',
|
|
1083
|
+
items: {
|
|
1084
|
+
type: 'ref',
|
|
1085
|
+
ref: 'lex:com.atproto.admin.defs#accountView',
|
|
1086
|
+
},
|
|
1087
|
+
},
|
|
1088
|
+
},
|
|
1089
|
+
},
|
|
1090
|
+
},
|
|
1091
|
+
},
|
|
1092
|
+
},
|
|
1093
|
+
},
|
|
1023
1094
|
ComAtprotoAdminGetInviteCodes: {
|
|
1024
1095
|
lexicon: 1,
|
|
1025
1096
|
id: 'com.atproto.admin.getInviteCodes',
|
|
@@ -1357,6 +1428,10 @@ export const schemaDict = {
|
|
|
1357
1428
|
type: 'boolean',
|
|
1358
1429
|
description: 'Get subjects that were taken down',
|
|
1359
1430
|
},
|
|
1431
|
+
appealed: {
|
|
1432
|
+
type: 'boolean',
|
|
1433
|
+
description: 'Get subjects in unresolved appealed status',
|
|
1434
|
+
},
|
|
1360
1435
|
limit: {
|
|
1361
1436
|
type: 'integer',
|
|
1362
1437
|
minimum: 1,
|
|
@@ -1467,6 +1542,11 @@ export const schemaDict = {
|
|
|
1467
1542
|
type: 'string',
|
|
1468
1543
|
format: 'did',
|
|
1469
1544
|
},
|
|
1545
|
+
comment: {
|
|
1546
|
+
type: 'string',
|
|
1547
|
+
description:
|
|
1548
|
+
"Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers",
|
|
1549
|
+
},
|
|
1470
1550
|
},
|
|
1471
1551
|
},
|
|
1472
1552
|
},
|
|
@@ -1937,6 +2017,7 @@ export const schemaDict = {
|
|
|
1937
2017
|
'com.atproto.moderation.defs#reasonSexual',
|
|
1938
2018
|
'com.atproto.moderation.defs#reasonRude',
|
|
1939
2019
|
'com.atproto.moderation.defs#reasonOther',
|
|
2020
|
+
'com.atproto.moderation.defs#reasonAppeal',
|
|
1940
2021
|
],
|
|
1941
2022
|
},
|
|
1942
2023
|
reasonSpam: {
|
|
@@ -1964,6 +2045,10 @@ export const schemaDict = {
|
|
|
1964
2045
|
type: 'token',
|
|
1965
2046
|
description: 'Other: reports not falling under another report category',
|
|
1966
2047
|
},
|
|
2048
|
+
reasonAppeal: {
|
|
2049
|
+
type: 'token',
|
|
2050
|
+
description: 'Appeal: appeal a previously taken moderation action',
|
|
2051
|
+
},
|
|
1967
2052
|
},
|
|
1968
2053
|
},
|
|
1969
2054
|
ComAtprotoRepoApplyWrites: {
|
|
@@ -2579,6 +2664,12 @@ export const schemaDict = {
|
|
|
2579
2664
|
inviteCode: {
|
|
2580
2665
|
type: 'string',
|
|
2581
2666
|
},
|
|
2667
|
+
verificationCode: {
|
|
2668
|
+
type: 'string',
|
|
2669
|
+
},
|
|
2670
|
+
verificationPhone: {
|
|
2671
|
+
type: 'string',
|
|
2672
|
+
},
|
|
2582
2673
|
password: {
|
|
2583
2674
|
type: 'string',
|
|
2584
2675
|
},
|
|
@@ -2983,6 +3074,9 @@ export const schemaDict = {
|
|
|
2983
3074
|
inviteCodeRequired: {
|
|
2984
3075
|
type: 'boolean',
|
|
2985
3076
|
},
|
|
3077
|
+
phoneVerificationRequired: {
|
|
3078
|
+
type: 'boolean',
|
|
3079
|
+
},
|
|
2986
3080
|
availableUserDomains: {
|
|
2987
3081
|
type: 'array',
|
|
2988
3082
|
items: {
|
|
@@ -4055,6 +4149,29 @@ export const schemaDict = {
|
|
|
4055
4149
|
},
|
|
4056
4150
|
},
|
|
4057
4151
|
},
|
|
4152
|
+
ComAtprotoTempRequestPhoneVerification: {
|
|
4153
|
+
lexicon: 1,
|
|
4154
|
+
id: 'com.atproto.temp.requestPhoneVerification',
|
|
4155
|
+
defs: {
|
|
4156
|
+
main: {
|
|
4157
|
+
type: 'procedure',
|
|
4158
|
+
description:
|
|
4159
|
+
'Request a verification code to be sent to the supplied phone number',
|
|
4160
|
+
input: {
|
|
4161
|
+
encoding: 'application/json',
|
|
4162
|
+
schema: {
|
|
4163
|
+
type: 'object',
|
|
4164
|
+
required: ['phoneNumber'],
|
|
4165
|
+
properties: {
|
|
4166
|
+
phoneNumber: {
|
|
4167
|
+
type: 'string',
|
|
4168
|
+
},
|
|
4169
|
+
},
|
|
4170
|
+
},
|
|
4171
|
+
},
|
|
4172
|
+
},
|
|
4173
|
+
},
|
|
4174
|
+
},
|
|
4058
4175
|
ComAtprotoTempTransferAccount: {
|
|
4059
4176
|
lexicon: 1,
|
|
4060
4177
|
id: 'com.atproto.temp.transferAccount',
|
|
@@ -7554,54 +7671,6 @@ export const schemaDict = {
|
|
|
7554
7671
|
},
|
|
7555
7672
|
},
|
|
7556
7673
|
},
|
|
7557
|
-
AppBskyUnspeccedGetPopular: {
|
|
7558
|
-
lexicon: 1,
|
|
7559
|
-
id: 'app.bsky.unspecced.getPopular',
|
|
7560
|
-
defs: {
|
|
7561
|
-
main: {
|
|
7562
|
-
type: 'query',
|
|
7563
|
-
description:
|
|
7564
|
-
'DEPRECATED: will be removed soon. Use a feed generator alternative.',
|
|
7565
|
-
parameters: {
|
|
7566
|
-
type: 'params',
|
|
7567
|
-
properties: {
|
|
7568
|
-
includeNsfw: {
|
|
7569
|
-
type: 'boolean',
|
|
7570
|
-
default: false,
|
|
7571
|
-
},
|
|
7572
|
-
limit: {
|
|
7573
|
-
type: 'integer',
|
|
7574
|
-
minimum: 1,
|
|
7575
|
-
maximum: 100,
|
|
7576
|
-
default: 50,
|
|
7577
|
-
},
|
|
7578
|
-
cursor: {
|
|
7579
|
-
type: 'string',
|
|
7580
|
-
},
|
|
7581
|
-
},
|
|
7582
|
-
},
|
|
7583
|
-
output: {
|
|
7584
|
-
encoding: 'application/json',
|
|
7585
|
-
schema: {
|
|
7586
|
-
type: 'object',
|
|
7587
|
-
required: ['feed'],
|
|
7588
|
-
properties: {
|
|
7589
|
-
cursor: {
|
|
7590
|
-
type: 'string',
|
|
7591
|
-
},
|
|
7592
|
-
feed: {
|
|
7593
|
-
type: 'array',
|
|
7594
|
-
items: {
|
|
7595
|
-
type: 'ref',
|
|
7596
|
-
ref: 'lex:app.bsky.feed.defs#feedViewPost',
|
|
7597
|
-
},
|
|
7598
|
-
},
|
|
7599
|
-
},
|
|
7600
|
-
},
|
|
7601
|
-
},
|
|
7602
|
-
},
|
|
7603
|
-
},
|
|
7604
|
-
},
|
|
7605
7674
|
AppBskyUnspeccedGetPopularFeedGenerators: {
|
|
7606
7675
|
lexicon: 1,
|
|
7607
7676
|
id: 'app.bsky.unspecced.getPopularFeedGenerators',
|
|
@@ -7835,6 +7904,7 @@ export const ids = {
|
|
|
7835
7904
|
ComAtprotoAdminEmitModerationEvent: 'com.atproto.admin.emitModerationEvent',
|
|
7836
7905
|
ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites',
|
|
7837
7906
|
ComAtprotoAdminGetAccountInfo: 'com.atproto.admin.getAccountInfo',
|
|
7907
|
+
ComAtprotoAdminGetAccountInfos: 'com.atproto.admin.getAccountInfos',
|
|
7838
7908
|
ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
|
|
7839
7909
|
ComAtprotoAdminGetModerationEvent: 'com.atproto.admin.getModerationEvent',
|
|
7840
7910
|
ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord',
|
|
@@ -7906,6 +7976,8 @@ export const ids = {
|
|
|
7906
7976
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
|
7907
7977
|
ComAtprotoTempImportRepo: 'com.atproto.temp.importRepo',
|
|
7908
7978
|
ComAtprotoTempPushBlob: 'com.atproto.temp.pushBlob',
|
|
7979
|
+
ComAtprotoTempRequestPhoneVerification:
|
|
7980
|
+
'com.atproto.temp.requestPhoneVerification',
|
|
7909
7981
|
ComAtprotoTempTransferAccount: 'com.atproto.temp.transferAccount',
|
|
7910
7982
|
AppBskyActorDefs: 'app.bsky.actor.defs',
|
|
7911
7983
|
AppBskyActorGetPreferences: 'app.bsky.actor.getPreferences',
|
|
@@ -7969,7 +8041,6 @@ export const ids = {
|
|
|
7969
8041
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
|
7970
8042
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
|
7971
8043
|
AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
|
|
7972
|
-
AppBskyUnspeccedGetPopular: 'app.bsky.unspecced.getPopular',
|
|
7973
8044
|
AppBskyUnspeccedGetPopularFeedGenerators:
|
|
7974
8045
|
'app.bsky.unspecced.getPopularFeedGenerators',
|
|
7975
8046
|
AppBskyUnspeccedGetTimelineSkeleton: 'app.bsky.unspecced.getTimelineSkeleton',
|
|
@@ -76,6 +76,7 @@ export interface ModEventViewDetail {
|
|
|
76
76
|
| ModEventAcknowledge
|
|
77
77
|
| ModEventEscalate
|
|
78
78
|
| ModEventMute
|
|
79
|
+
| ModEventResolveAppeal
|
|
79
80
|
| { $type: string; [k: string]: unknown }
|
|
80
81
|
subject:
|
|
81
82
|
| RepoView
|
|
@@ -147,7 +148,11 @@ export interface SubjectStatusView {
|
|
|
147
148
|
lastReviewedBy?: string
|
|
148
149
|
lastReviewedAt?: string
|
|
149
150
|
lastReportedAt?: string
|
|
151
|
+
/** Timestamp referencing when the author of the subject appealed a moderation action */
|
|
152
|
+
lastAppealedAt?: string
|
|
150
153
|
takendown?: boolean
|
|
154
|
+
/** True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. */
|
|
155
|
+
appealed?: boolean
|
|
151
156
|
suspendUntil?: string
|
|
152
157
|
[k: string]: unknown
|
|
153
158
|
}
|
|
@@ -250,6 +255,7 @@ export interface AccountView {
|
|
|
250
255
|
did: string
|
|
251
256
|
handle: string
|
|
252
257
|
email?: string
|
|
258
|
+
relatedRecords?: {}[]
|
|
253
259
|
indexedAt: string
|
|
254
260
|
invitedBy?: ComAtprotoServerDefs.InviteCode
|
|
255
261
|
invites?: ComAtprotoServerDefs.InviteCode[]
|
|
@@ -538,6 +544,27 @@ export function validateModEventReverseTakedown(v: unknown): ValidationResult {
|
|
|
538
544
|
return lexicons.validate('com.atproto.admin.defs#modEventReverseTakedown', v)
|
|
539
545
|
}
|
|
540
546
|
|
|
547
|
+
/** Resolve appeal on a subject */
|
|
548
|
+
export interface ModEventResolveAppeal {
|
|
549
|
+
/** Describe resolution. */
|
|
550
|
+
comment?: string
|
|
551
|
+
[k: string]: unknown
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export function isModEventResolveAppeal(
|
|
555
|
+
v: unknown,
|
|
556
|
+
): v is ModEventResolveAppeal {
|
|
557
|
+
return (
|
|
558
|
+
isObj(v) &&
|
|
559
|
+
hasProp(v, '$type') &&
|
|
560
|
+
v.$type === 'com.atproto.admin.defs#modEventResolveAppeal'
|
|
561
|
+
)
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export function validateModEventResolveAppeal(v: unknown): ValidationResult {
|
|
565
|
+
return lexicons.validate('com.atproto.admin.defs#modEventResolveAppeal', v)
|
|
566
|
+
}
|
|
567
|
+
|
|
541
568
|
/** Add a comment to a subject */
|
|
542
569
|
export interface ModEventComment {
|
|
543
570
|
comment: string
|
|
@@ -674,6 +701,8 @@ export function validateModEventUnmute(v: unknown): ValidationResult {
|
|
|
674
701
|
export interface ModEventEmail {
|
|
675
702
|
/** The subject line of the email sent to the user. */
|
|
676
703
|
subjectLine: string
|
|
704
|
+
/** Additional comment about the outgoing comm. */
|
|
705
|
+
comment?: string
|
|
677
706
|
[k: string]: unknown
|
|
678
707
|
}
|
|
679
708
|
|