@atproto/api 0.20.0 → 0.20.2
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 +18 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +12 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +488 -12
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +249 -6
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +45 -2
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js +21 -0
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts +32 -0
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -0
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.js +8 -0
- package/dist/client/types/app/bsky/embed/getEmbedExternalView.js.map +1 -0
- package/dist/client/types/chat/bsky/actor/getStatus.d.ts +23 -0
- package/dist/client/types/chat/bsky/actor/getStatus.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/actor/getStatus.js +8 -0
- package/dist/client/types/chat/bsky/actor/getStatus.js.map +1 -0
- package/dist/client/types/chat/bsky/group/addMembers.d.ts +3 -3
- package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.js +7 -7
- package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.d.ts +4 -1
- package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.js +10 -3
- package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
- package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts +26 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.js +8 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.js.map +1 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
- package/package.json +6 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/client/index.ts +0 -6408
- package/src/client/lexicons.ts +0 -25781
- package/src/client/types/app/bsky/actor/defs.ts +0 -716
- package/src/client/types/app/bsky/actor/getPreferences.ts +0 -39
- package/src/client/types/app/bsky/actor/getProfile.ts +0 -39
- package/src/client/types/app/bsky/actor/getProfiles.ts +0 -41
- package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -47
- package/src/client/types/app/bsky/actor/profile.ts +0 -52
- package/src/client/types/app/bsky/actor/putPreferences.ts +0 -39
- package/src/client/types/app/bsky/actor/searchActors.ts +0 -47
- package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +0 -45
- package/src/client/types/app/bsky/actor/status.ts +0 -46
- package/src/client/types/app/bsky/ageassurance/begin.ts +0 -80
- package/src/client/types/app/bsky/ageassurance/defs.ts +0 -303
- package/src/client/types/app/bsky/ageassurance/getConfig.ts +0 -36
- package/src/client/types/app/bsky/ageassurance/getState.ts +0 -43
- package/src/client/types/app/bsky/bookmark/createBookmark.ts +0 -50
- package/src/client/types/app/bsky/bookmark/defs.ts +0 -54
- package/src/client/types/app/bsky/bookmark/deleteBookmark.ts +0 -49
- package/src/client/types/app/bsky/bookmark/getBookmarks.ts +0 -43
- package/src/client/types/app/bsky/contact/defs.ts +0 -71
- package/src/client/types/app/bsky/contact/dismissMatch.ts +0 -59
- package/src/client/types/app/bsky/contact/getMatches.ts +0 -74
- package/src/client/types/app/bsky/contact/getSyncStatus.ts +0 -56
- package/src/client/types/app/bsky/contact/importContacts.ts +0 -86
- package/src/client/types/app/bsky/contact/removeData.ts +0 -56
- package/src/client/types/app/bsky/contact/sendNotification.ts +0 -44
- package/src/client/types/app/bsky/contact/startPhoneVerification.ts +0 -73
- package/src/client/types/app/bsky/contact/verifyPhone.ts +0 -85
- package/src/client/types/app/bsky/draft/createDraft.ts +0 -55
- package/src/client/types/app/bsky/draft/defs.ts +0 -212
- package/src/client/types/app/bsky/draft/deleteDraft.ts +0 -38
- package/src/client/types/app/bsky/draft/getDrafts.ts +0 -43
- package/src/client/types/app/bsky/draft/updateDraft.ts +0 -39
- package/src/client/types/app/bsky/embed/defs.ts +0 -32
- package/src/client/types/app/bsky/embed/external.ts +0 -85
- package/src/client/types/app/bsky/embed/images.ts +0 -86
- package/src/client/types/app/bsky/embed/record.ts +0 -146
- package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -59
- package/src/client/types/app/bsky/embed/video.ts +0 -75
- package/src/client/types/app/bsky/feed/defs.ts +0 -428
- package/src/client/types/app/bsky/feed/describeFeedGenerator.ts +0 -71
- package/src/client/types/app/bsky/feed/generator.ts +0 -51
- package/src/client/types/app/bsky/feed/getActorFeeds.ts +0 -44
- package/src/client/types/app/bsky/feed/getActorLikes.ts +0 -61
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +0 -70
- package/src/client/types/app/bsky/feed/getFeed.ts +0 -54
- package/src/client/types/app/bsky/feed/getFeedGenerator.ts +0 -46
- package/src/client/types/app/bsky/feed/getFeedGenerators.ts +0 -41
- package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +0 -57
- package/src/client/types/app/bsky/feed/getLikes.ts +0 -66
- package/src/client/types/app/bsky/feed/getListFeed.ts +0 -55
- package/src/client/types/app/bsky/feed/getPostThread.ts +0 -61
- package/src/client/types/app/bsky/feed/getPosts.ts +0 -42
- package/src/client/types/app/bsky/feed/getQuotes.ts +0 -49
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +0 -49
- package/src/client/types/app/bsky/feed/getSuggestedFeeds.ts +0 -43
- package/src/client/types/app/bsky/feed/getTimeline.ts +0 -45
- package/src/client/types/app/bsky/feed/like.ts +0 -40
- package/src/client/types/app/bsky/feed/post.ts +0 -117
- package/src/client/types/app/bsky/feed/postgate.ts +0 -58
- package/src/client/types/app/bsky/feed/repost.ts +0 -40
- package/src/client/types/app/bsky/feed/searchPosts.ts +0 -76
- package/src/client/types/app/bsky/feed/sendInteractions.ts +0 -43
- package/src/client/types/app/bsky/feed/threadgate.ts +0 -110
- package/src/client/types/app/bsky/graph/block.ts +0 -39
- package/src/client/types/app/bsky/graph/defs.ts +0 -206
- package/src/client/types/app/bsky/graph/follow.ts +0 -40
- package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +0 -44
- package/src/client/types/app/bsky/graph/getBlocks.ts +0 -43
- package/src/client/types/app/bsky/graph/getFollowers.ts +0 -45
- package/src/client/types/app/bsky/graph/getFollows.ts +0 -45
- package/src/client/types/app/bsky/graph/getKnownFollowers.ts +0 -45
- package/src/client/types/app/bsky/graph/getList.ts +0 -46
- package/src/client/types/app/bsky/graph/getListBlocks.ts +0 -43
- package/src/client/types/app/bsky/graph/getListMutes.ts +0 -43
- package/src/client/types/app/bsky/graph/getLists.ts +0 -47
- package/src/client/types/app/bsky/graph/getListsWithMembership.ts +0 -64
- package/src/client/types/app/bsky/graph/getMutes.ts +0 -43
- package/src/client/types/app/bsky/graph/getRelationships.ts +0 -59
- package/src/client/types/app/bsky/graph/getStarterPack.ts +0 -42
- package/src/client/types/app/bsky/graph/getStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +0 -66
- package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -47
- package/src/client/types/app/bsky/graph/list.ts +0 -47
- package/src/client/types/app/bsky/graph/listblock.ts +0 -39
- package/src/client/types/app/bsky/graph/listitem.ts +0 -41
- package/src/client/types/app/bsky/graph/muteActor.ts +0 -38
- package/src/client/types/app/bsky/graph/muteActorList.ts +0 -38
- package/src/client/types/app/bsky/graph/muteThread.ts +0 -38
- package/src/client/types/app/bsky/graph/searchStarterPacks.ts +0 -45
- package/src/client/types/app/bsky/graph/starterpack.ts +0 -60
- package/src/client/types/app/bsky/graph/unmuteActor.ts +0 -38
- package/src/client/types/app/bsky/graph/unmuteActorList.ts +0 -38
- package/src/client/types/app/bsky/graph/unmuteThread.ts +0 -38
- package/src/client/types/app/bsky/graph/verification.ts +0 -44
- package/src/client/types/app/bsky/labeler/defs.ts +0 -100
- package/src/client/types/app/bsky/labeler/getServices.ts +0 -46
- package/src/client/types/app/bsky/labeler/service.ts +0 -48
- package/src/client/types/app/bsky/notification/declaration.ts +0 -38
- package/src/client/types/app/bsky/notification/defs.ts +0 -142
- package/src/client/types/app/bsky/notification/getPreferences.ts +0 -39
- package/src/client/types/app/bsky/notification/getUnreadCount.ts +0 -41
- package/src/client/types/app/bsky/notification/listActivitySubscriptions.ts +0 -43
- package/src/client/types/app/bsky/notification/listNotifications.ts +0 -88
- package/src/client/types/app/bsky/notification/putActivitySubscription.ts +0 -46
- package/src/client/types/app/bsky/notification/putPreferences.ts +0 -38
- package/src/client/types/app/bsky/notification/putPreferencesV2.ts +0 -56
- package/src/client/types/app/bsky/notification/registerPush.ts +0 -43
- package/src/client/types/app/bsky/notification/unregisterPush.ts +0 -41
- package/src/client/types/app/bsky/notification/updateSeen.ts +0 -38
- package/src/client/types/app/bsky/richtext/facet.ts +0 -97
- package/src/client/types/app/bsky/unspecced/defs.ts +0 -250
- package/src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts +0 -36
- package/src/client/types/app/bsky/unspecced/getConfig.ts +0 -55
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts +0 -48
- package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -61
- package/src/client/types/app/bsky/unspecced/getPostThreadV2.ts +0 -78
- package/src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +0 -47
- package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getSuggestedUsers.ts +0 -47
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +0 -43
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +0 -45
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +0 -46
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +0 -45
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +0 -46
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +0 -48
- package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +0 -53
- package/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts +0 -55
- package/src/client/types/app/bsky/unspecced/getTrendingTopics.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getTrends.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getTrendsSkeleton.ts +0 -43
- package/src/client/types/app/bsky/unspecced/initAgeAssurance.ts +0 -71
- package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +0 -62
- package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +0 -78
- package/src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +0 -60
- package/src/client/types/app/bsky/video/defs.ts +0 -38
- package/src/client/types/app/bsky/video/getJobStatus.ts +0 -41
- package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -42
- package/src/client/types/app/bsky/video/uploadVideo.ts +0 -41
- package/src/client/types/chat/bsky/actor/declaration.ts +0 -39
- package/src/client/types/chat/bsky/actor/defs.ts +0 -96
- package/src/client/types/chat/bsky/actor/deleteAccount.ts +0 -37
- package/src/client/types/chat/bsky/actor/exportAccountData.ts +0 -34
- package/src/client/types/chat/bsky/convo/acceptConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/addReaction.ts +0 -87
- package/src/client/types/chat/bsky/convo/defs.ts +0 -1058
- package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +0 -61
- package/src/client/types/chat/bsky/convo/getConvo.ts +0 -51
- package/src/client/types/chat/bsky/convo/getConvoAvailability.ts +0 -42
- package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +0 -80
- package/src/client/types/chat/bsky/convo/getConvoMembers.ts +0 -54
- package/src/client/types/chat/bsky/convo/getLog.ts +0 -71
- package/src/client/types/chat/bsky/convo/getMessages.ts +0 -62
- package/src/client/types/chat/bsky/convo/leaveConvo.ts +0 -61
- package/src/client/types/chat/bsky/convo/listConvoRequests.ts +0 -48
- package/src/client/types/chat/bsky/convo/listConvos.ts +0 -50
- package/src/client/types/chat/bsky/convo/lockConvo.ts +0 -68
- package/src/client/types/chat/bsky/convo/muteConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/removeReaction.ts +0 -79
- package/src/client/types/chat/bsky/convo/sendMessage.ts +0 -60
- package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +0 -77
- package/src/client/types/chat/bsky/convo/unlockConvo.ts +0 -61
- package/src/client/types/chat/bsky/convo/unmuteConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/updateAllRead.ts +0 -44
- package/src/client/types/chat/bsky/convo/updateRead.ts +0 -55
- package/src/client/types/chat/bsky/group/addMembers.ts +0 -114
- package/src/client/types/chat/bsky/group/approveJoinRequest.ts +0 -69
- package/src/client/types/chat/bsky/group/createGroup.ts +0 -84
- package/src/client/types/chat/bsky/group/createJoinLink.ts +0 -71
- package/src/client/types/chat/bsky/group/defs.ts +0 -75
- package/src/client/types/chat/bsky/group/disableJoinLink.ts +0 -68
- package/src/client/types/chat/bsky/group/editGroup.ts +0 -69
- package/src/client/types/chat/bsky/group/editJoinLink.ts +0 -70
- package/src/client/types/chat/bsky/group/enableJoinLink.ts +0 -75
- package/src/client/types/chat/bsky/group/getJoinLinkPreview.ts +0 -51
- package/src/client/types/chat/bsky/group/listJoinRequests.ts +0 -61
- package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +0 -59
- package/src/client/types/chat/bsky/group/removeMembers.ts +0 -62
- package/src/client/types/chat/bsky/group/requestJoin.ts +0 -90
- package/src/client/types/chat/bsky/moderation/getActorMetadata.ts +0 -60
- package/src/client/types/chat/bsky/moderation/getMessageContext.ts +0 -53
- package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +0 -366
- package/src/client/types/chat/bsky/moderation/updateActorAccess.ts +0 -40
- package/src/client/types/com/atproto/admin/defs.ts +0 -106
- package/src/client/types/com/atproto/admin/deleteAccount.ts +0 -38
- package/src/client/types/com/atproto/admin/disableAccountInvites.ts +0 -40
- package/src/client/types/com/atproto/admin/disableInviteCodes.ts +0 -39
- package/src/client/types/com/atproto/admin/enableAccountInvites.ts +0 -40
- package/src/client/types/com/atproto/admin/getAccountInfo.ts +0 -38
- package/src/client/types/com/atproto/admin/getAccountInfos.ts +0 -41
- package/src/client/types/com/atproto/admin/getInviteCodes.ts +0 -44
- package/src/client/types/com/atproto/admin/getSubjectStatus.ts +0 -50
- package/src/client/types/com/atproto/admin/searchAccounts.ts +0 -44
- package/src/client/types/com/atproto/admin/sendEmail.ts +0 -48
- package/src/client/types/com/atproto/admin/updateAccountEmail.ts +0 -40
- package/src/client/types/com/atproto/admin/updateAccountHandle.ts +0 -39
- package/src/client/types/com/atproto/admin/updateAccountPassword.ts +0 -39
- package/src/client/types/com/atproto/admin/updateAccountSigningKey.ts +0 -40
- package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +0 -56
- package/src/client/types/com/atproto/identity/defs.ts +0 -34
- package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +0 -42
- package/src/client/types/com/atproto/identity/refreshIdentity.ts +0 -66
- package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +0 -34
- package/src/client/types/com/atproto/identity/resolveDid.ts +0 -59
- package/src/client/types/com/atproto/identity/resolveHandle.ts +0 -51
- package/src/client/types/com/atproto/identity/resolveIdentity.ts +0 -63
- package/src/client/types/com/atproto/identity/signPlcOperation.ts +0 -49
- package/src/client/types/com/atproto/identity/submitPlcOperation.ts +0 -38
- package/src/client/types/com/atproto/identity/updateHandle.ts +0 -39
- package/src/client/types/com/atproto/label/defs.ts +0 -143
- package/src/client/types/com/atproto/label/queryLabels.ts +0 -47
- package/src/client/types/com/atproto/label/subscribeLabels.ts +0 -49
- package/src/client/types/com/atproto/lexicon/resolveLexicon.ts +0 -56
- package/src/client/types/com/atproto/lexicon/schema.ts +0 -38
- package/src/client/types/com/atproto/moderation/createReport.ts +0 -80
- package/src/client/types/com/atproto/moderation/defs.ts +0 -83
- package/src/client/types/com/atproto/repo/applyWrites.ts +0 -167
- package/src/client/types/com/atproto/repo/createRecord.ts +0 -68
- package/src/client/types/com/atproto/repo/defs.ts +0 -31
- package/src/client/types/com/atproto/repo/deleteRecord.ts +0 -63
- package/src/client/types/com/atproto/repo/describeRepo.ts +0 -48
- package/src/client/types/com/atproto/repo/getRecord.ts +0 -59
- package/src/client/types/com/atproto/repo/importRepo.ts +0 -35
- package/src/client/types/com/atproto/repo/listMissingBlobs.ts +0 -58
- package/src/client/types/com/atproto/repo/listRecords.ts +0 -66
- package/src/client/types/com/atproto/repo/putRecord.ts +0 -70
- package/src/client/types/com/atproto/repo/strongRef.ts +0 -31
- package/src/client/types/com/atproto/repo/uploadBlob.ts +0 -40
- package/src/client/types/com/atproto/server/activateAccount.ts +0 -34
- package/src/client/types/com/atproto/server/checkAccountStatus.ts +0 -46
- package/src/client/types/com/atproto/server/confirmEmail.ts +0 -70
- package/src/client/types/com/atproto/server/createAccount.ts +0 -115
- package/src/client/types/com/atproto/server/createAppPassword.ts +0 -72
- package/src/client/types/com/atproto/server/createInviteCode.ts +0 -44
- package/src/client/types/com/atproto/server/createInviteCodes.ts +0 -61
- package/src/client/types/com/atproto/server/createSession.ts +0 -76
- package/src/client/types/com/atproto/server/deactivateAccount.ts +0 -39
- package/src/client/types/com/atproto/server/defs.ts +0 -52
- package/src/client/types/com/atproto/server/deleteAccount.ts +0 -57
- package/src/client/types/com/atproto/server/deleteSession.ts +0 -51
- package/src/client/types/com/atproto/server/describeServer.ts +0 -77
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +0 -53
- package/src/client/types/com/atproto/server/getServiceAuth.ts +0 -55
- package/src/client/types/com/atproto/server/getSession.ts +0 -46
- package/src/client/types/com/atproto/server/listAppPasswords.ts +0 -65
- package/src/client/types/com/atproto/server/refreshSession.ts +0 -73
- package/src/client/types/com/atproto/server/requestAccountDelete.ts +0 -34
- package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +0 -34
- package/src/client/types/com/atproto/server/requestEmailUpdate.ts +0 -39
- package/src/client/types/com/atproto/server/requestPasswordReset.ts +0 -38
- package/src/client/types/com/atproto/server/reserveSigningKey.ts +0 -45
- package/src/client/types/com/atproto/server/resetPassword.ts +0 -56
- package/src/client/types/com/atproto/server/revokeAppPassword.ts +0 -38
- package/src/client/types/com/atproto/server/updateEmail.ts +0 -65
- package/src/client/types/com/atproto/sync/defs.ts +0 -23
- package/src/client/types/com/atproto/sync/getBlob.ts +0 -77
- package/src/client/types/com/atproto/sync/getBlocks.ts +0 -76
- package/src/client/types/com/atproto/sync/getCheckout.ts +0 -37
- package/src/client/types/com/atproto/sync/getHead.ts +0 -51
- package/src/client/types/com/atproto/sync/getHostStatus.ts +0 -57
- package/src/client/types/com/atproto/sync/getLatestCommit.ts +0 -73
- package/src/client/types/com/atproto/sync/getRecord.ts +0 -78
- package/src/client/types/com/atproto/sync/getRepo.ts +0 -70
- package/src/client/types/com/atproto/sync/getRepoStatus.ts +0 -63
- package/src/client/types/com/atproto/sync/listBlobs.ts +0 -77
- package/src/client/types/com/atproto/sync/listHosts.ts +0 -64
- package/src/client/types/com/atproto/sync/listRepos.ts +0 -70
- package/src/client/types/com/atproto/sync/listReposByCollection.ts +0 -59
- package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +0 -39
- package/src/client/types/com/atproto/sync/requestCrawl.ts +0 -49
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -164
- package/src/client/types/com/atproto/temp/addReservedHandle.ts +0 -41
- package/src/client/types/com/atproto/temp/checkHandleAvailability.ts +0 -109
- package/src/client/types/com/atproto/temp/checkSignupQueue.ts +0 -40
- package/src/client/types/com/atproto/temp/dereferenceScope.ts +0 -53
- package/src/client/types/com/atproto/temp/fetchLabels.ts +0 -42
- package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +0 -38
- package/src/client/types/com/atproto/temp/revokeAccountCredentials.ts +0 -38
- package/src/client/types/com/germnetwork/declaration.ts +0 -63
- package/src/client/types/tools/ozone/communication/createTemplate.ts +0 -62
- package/src/client/types/tools/ozone/communication/defs.ts +0 -43
- package/src/client/types/tools/ozone/communication/deleteTemplate.ts +0 -38
- package/src/client/types/tools/ozone/communication/listTemplates.ts +0 -39
- package/src/client/types/tools/ozone/communication/updateTemplate.ts +0 -65
- package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +0 -148
- package/src/client/types/tools/ozone/moderation/cancelScheduledActions.ts +0 -79
- package/src/client/types/tools/ozone/moderation/defs.ts +0 -1176
- package/src/client/types/tools/ozone/moderation/emitEvent.ts +0 -121
- package/src/client/types/tools/ozone/moderation/getAccountTimeline.ts +0 -115
- package/src/client/types/tools/ozone/moderation/getEvent.ts +0 -38
- package/src/client/types/tools/ozone/moderation/getRecord.ts +0 -49
- package/src/client/types/tools/ozone/moderation/getRecords.ts +0 -45
- package/src/client/types/tools/ozone/moderation/getRepo.ts +0 -48
- package/src/client/types/tools/ozone/moderation/getReporterStats.ts +0 -41
- package/src/client/types/tools/ozone/moderation/getRepos.ts +0 -45
- package/src/client/types/tools/ozone/moderation/getSubjects.ts +0 -41
- package/src/client/types/tools/ozone/moderation/listScheduledActions.ts +0 -57
- package/src/client/types/tools/ozone/moderation/queryEvents.ts +0 -87
- package/src/client/types/tools/ozone/moderation/queryStatuses.ts +0 -122
- package/src/client/types/tools/ozone/moderation/scheduleAction.ts +0 -133
- package/src/client/types/tools/ozone/moderation/searchRepos.ts +0 -46
- package/src/client/types/tools/ozone/queue/assignModerator.ts +0 -55
- package/src/client/types/tools/ozone/queue/createQueue.ts +0 -63
- package/src/client/types/tools/ozone/queue/defs.ts +0 -99
- package/src/client/types/tools/ozone/queue/deleteQueue.ts +0 -48
- package/src/client/types/tools/ozone/queue/getAssignments.ts +0 -49
- package/src/client/types/tools/ozone/queue/listQueues.ts +0 -51
- package/src/client/types/tools/ozone/queue/routeReports.ts +0 -59
- package/src/client/types/tools/ozone/queue/unassignModerator.ts +0 -51
- package/src/client/types/tools/ozone/queue/updateQueue.ts +0 -51
- package/src/client/types/tools/ozone/report/assignModerator.ts +0 -66
- package/src/client/types/tools/ozone/report/createActivity.ts +0 -85
- package/src/client/types/tools/ozone/report/defs.ts +0 -466
- package/src/client/types/tools/ozone/report/getAssignments.ts +0 -49
- package/src/client/types/tools/ozone/report/getHistoricalStats.ts +0 -55
- package/src/client/types/tools/ozone/report/getLatestReport.ts +0 -49
- package/src/client/types/tools/ozone/report/getLiveStats.ts +0 -46
- package/src/client/types/tools/ozone/report/getReport.ts +0 -49
- package/src/client/types/tools/ozone/report/listActivities.ts +0 -45
- package/src/client/types/tools/ozone/report/queryReports.ts +0 -73
- package/src/client/types/tools/ozone/report/reassignQueue.ts +0 -88
- package/src/client/types/tools/ozone/report/refreshStats.ts +0 -46
- package/src/client/types/tools/ozone/report/unassignModerator.ts +0 -53
- package/src/client/types/tools/ozone/safelink/addRule.ts +0 -67
- package/src/client/types/tools/ozone/safelink/defs.ts +0 -76
- package/src/client/types/tools/ozone/safelink/queryEvents.ts +0 -55
- package/src/client/types/tools/ozone/safelink/queryRules.ts +0 -61
- package/src/client/types/tools/ozone/safelink/removeRule.ts +0 -58
- package/src/client/types/tools/ozone/safelink/updateRule.ts +0 -60
- package/src/client/types/tools/ozone/server/getConfig.ts +0 -79
- package/src/client/types/tools/ozone/set/addValues.ts +0 -41
- package/src/client/types/tools/ozone/set/defs.ts +0 -50
- package/src/client/types/tools/ozone/set/deleteSet.ts +0 -52
- package/src/client/types/tools/ozone/set/deleteValues.ts +0 -51
- package/src/client/types/tools/ozone/set/getValues.ts +0 -55
- package/src/client/types/tools/ozone/set/querySets.ts +0 -47
- package/src/client/types/tools/ozone/set/upsertSet.ts +0 -38
- package/src/client/types/tools/ozone/setting/defs.ts +0 -44
- package/src/client/types/tools/ozone/setting/listOptions.ts +0 -48
- package/src/client/types/tools/ozone/setting/removeOptions.ts +0 -42
- package/src/client/types/tools/ozone/setting/upsertOption.ts +0 -53
- package/src/client/types/tools/ozone/signature/defs.ts +0 -31
- package/src/client/types/tools/ozone/signature/findCorrelation.ts +0 -41
- package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +0 -61
- package/src/client/types/tools/ozone/signature/searchAccounts.ts +0 -44
- package/src/client/types/tools/ozone/team/addMember.ts +0 -59
- package/src/client/types/tools/ozone/team/defs.ts +0 -51
- package/src/client/types/tools/ozone/team/deleteMember.ts +0 -55
- package/src/client/types/tools/ozone/team/listMembers.ts +0 -46
- package/src/client/types/tools/ozone/team/updateMember.ts +0 -59
- package/src/client/types/tools/ozone/verification/defs.ts +0 -59
- package/src/client/types/tools/ozone/verification/grantVerifications.ts +0 -87
- package/src/client/types/tools/ozone/verification/listVerifications.ts +0 -57
- package/src/client/types/tools/ozone/verification/revokeVerifications.ts +0 -68
- package/src/client/util.ts +0 -82
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
import type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'
|
|
15
|
-
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'
|
|
16
|
-
|
|
17
|
-
const is$typed = _is$typed,
|
|
18
|
-
validate = _validate
|
|
19
|
-
const id = 'tools.ozone.moderation.emitEvent'
|
|
20
|
-
|
|
21
|
-
export type QueryParams = {}
|
|
22
|
-
|
|
23
|
-
export interface InputSchema {
|
|
24
|
-
event:
|
|
25
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventTakedown>
|
|
26
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventAcknowledge>
|
|
27
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventEscalate>
|
|
28
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventComment>
|
|
29
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventLabel>
|
|
30
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventReport>
|
|
31
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventMute>
|
|
32
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventUnmute>
|
|
33
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventMuteReporter>
|
|
34
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventUnmuteReporter>
|
|
35
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventReverseTakedown>
|
|
36
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventResolveAppeal>
|
|
37
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventEmail>
|
|
38
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventDivert>
|
|
39
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventTag>
|
|
40
|
-
| $Typed<ToolsOzoneModerationDefs.AccountEvent>
|
|
41
|
-
| $Typed<ToolsOzoneModerationDefs.IdentityEvent>
|
|
42
|
-
| $Typed<ToolsOzoneModerationDefs.RecordEvent>
|
|
43
|
-
| $Typed<ToolsOzoneModerationDefs.ModEventPriorityScore>
|
|
44
|
-
| $Typed<ToolsOzoneModerationDefs.AgeAssuranceEvent>
|
|
45
|
-
| $Typed<ToolsOzoneModerationDefs.AgeAssuranceOverrideEvent>
|
|
46
|
-
| $Typed<ToolsOzoneModerationDefs.AgeAssurancePurgeEvent>
|
|
47
|
-
| $Typed<ToolsOzoneModerationDefs.RevokeAccountCredentialsEvent>
|
|
48
|
-
| $Typed<ToolsOzoneModerationDefs.ScheduleTakedownEvent>
|
|
49
|
-
| $Typed<ToolsOzoneModerationDefs.CancelScheduledTakedownEvent>
|
|
50
|
-
| { $type: string }
|
|
51
|
-
subject:
|
|
52
|
-
| $Typed<ComAtprotoAdminDefs.RepoRef>
|
|
53
|
-
| $Typed<ComAtprotoRepoStrongRef.Main>
|
|
54
|
-
| { $type: string }
|
|
55
|
-
subjectBlobCids?: string[]
|
|
56
|
-
createdBy: string
|
|
57
|
-
modTool?: ToolsOzoneModerationDefs.ModTool
|
|
58
|
-
/** An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject. */
|
|
59
|
-
externalId?: string
|
|
60
|
-
reportAction?: ReportAction
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export type OutputSchema = ToolsOzoneModerationDefs.ModEventView
|
|
64
|
-
|
|
65
|
-
export interface CallOptions {
|
|
66
|
-
signal?: AbortSignal
|
|
67
|
-
headers?: HeadersMap
|
|
68
|
-
qp?: QueryParams
|
|
69
|
-
encoding?: 'application/json'
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface Response {
|
|
73
|
-
success: boolean
|
|
74
|
-
headers: HeadersMap
|
|
75
|
-
data: OutputSchema
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export class SubjectHasActionError extends XRPCError {
|
|
79
|
-
constructor(src: XRPCError) {
|
|
80
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export class DuplicateExternalIdError extends XRPCError {
|
|
85
|
-
constructor(src: XRPCError) {
|
|
86
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function toKnownErr(e: any) {
|
|
91
|
-
if (e instanceof XRPCError) {
|
|
92
|
-
if (e.error === 'SubjectHasAction') return new SubjectHasActionError(e)
|
|
93
|
-
if (e.error === 'DuplicateExternalId')
|
|
94
|
-
return new DuplicateExternalIdError(e)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return e
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/** Target specific reports when emitting a moderation event */
|
|
101
|
-
export interface ReportAction {
|
|
102
|
-
$type?: 'tools.ozone.moderation.emitEvent#reportAction'
|
|
103
|
-
/** Target specific report IDs */
|
|
104
|
-
ids?: number[]
|
|
105
|
-
/** Target reports matching these report types on the subject (fully qualified NSIDs) */
|
|
106
|
-
types?: string[]
|
|
107
|
-
/** Target ALL reports on the subject */
|
|
108
|
-
all?: boolean
|
|
109
|
-
/** Note to send to reporter(s) when actioning their report */
|
|
110
|
-
note?: string
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const hashReportAction = 'reportAction'
|
|
114
|
-
|
|
115
|
-
export function isReportAction<V>(v: V) {
|
|
116
|
-
return is$typed(v, id, hashReportAction)
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function validateReportAction<V>(v: V) {
|
|
120
|
-
return validate<ReportAction & V>(v, id, hashReportAction)
|
|
121
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
|
|
14
|
-
const is$typed = _is$typed,
|
|
15
|
-
validate = _validate
|
|
16
|
-
const id = 'tools.ozone.moderation.getAccountTimeline'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {
|
|
19
|
-
did: string
|
|
20
|
-
}
|
|
21
|
-
export type InputSchema = undefined
|
|
22
|
-
|
|
23
|
-
export interface OutputSchema {
|
|
24
|
-
timeline: TimelineItem[]
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface CallOptions {
|
|
28
|
-
signal?: AbortSignal
|
|
29
|
-
headers?: HeadersMap
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface Response {
|
|
33
|
-
success: boolean
|
|
34
|
-
headers: HeadersMap
|
|
35
|
-
data: OutputSchema
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export class RepoNotFoundError extends XRPCError {
|
|
39
|
-
constructor(src: XRPCError) {
|
|
40
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function toKnownErr(e: any) {
|
|
45
|
-
if (e instanceof XRPCError) {
|
|
46
|
-
if (e.error === 'RepoNotFound') return new RepoNotFoundError(e)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return e
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface TimelineItem {
|
|
53
|
-
$type?: 'tools.ozone.moderation.getAccountTimeline#timelineItem'
|
|
54
|
-
day: string
|
|
55
|
-
summary: TimelineItemSummary[]
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const hashTimelineItem = 'timelineItem'
|
|
59
|
-
|
|
60
|
-
export function isTimelineItem<V>(v: V) {
|
|
61
|
-
return is$typed(v, id, hashTimelineItem)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function validateTimelineItem<V>(v: V) {
|
|
65
|
-
return validate<TimelineItem & V>(v, id, hashTimelineItem)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export interface TimelineItemSummary {
|
|
69
|
-
$type?: 'tools.ozone.moderation.getAccountTimeline#timelineItemSummary'
|
|
70
|
-
eventSubjectType: 'account' | 'record' | 'chat' | (string & {})
|
|
71
|
-
eventType:
|
|
72
|
-
| 'tools.ozone.moderation.defs#modEventTakedown'
|
|
73
|
-
| 'tools.ozone.moderation.defs#modEventReverseTakedown'
|
|
74
|
-
| 'tools.ozone.moderation.defs#modEventComment'
|
|
75
|
-
| 'tools.ozone.moderation.defs#modEventReport'
|
|
76
|
-
| 'tools.ozone.moderation.defs#modEventLabel'
|
|
77
|
-
| 'tools.ozone.moderation.defs#modEventAcknowledge'
|
|
78
|
-
| 'tools.ozone.moderation.defs#modEventEscalate'
|
|
79
|
-
| 'tools.ozone.moderation.defs#modEventMute'
|
|
80
|
-
| 'tools.ozone.moderation.defs#modEventUnmute'
|
|
81
|
-
| 'tools.ozone.moderation.defs#modEventMuteReporter'
|
|
82
|
-
| 'tools.ozone.moderation.defs#modEventUnmuteReporter'
|
|
83
|
-
| 'tools.ozone.moderation.defs#modEventEmail'
|
|
84
|
-
| 'tools.ozone.moderation.defs#modEventResolveAppeal'
|
|
85
|
-
| 'tools.ozone.moderation.defs#modEventDivert'
|
|
86
|
-
| 'tools.ozone.moderation.defs#modEventTag'
|
|
87
|
-
| 'tools.ozone.moderation.defs#accountEvent'
|
|
88
|
-
| 'tools.ozone.moderation.defs#identityEvent'
|
|
89
|
-
| 'tools.ozone.moderation.defs#recordEvent'
|
|
90
|
-
| 'tools.ozone.moderation.defs#modEventPriorityScore'
|
|
91
|
-
| 'tools.ozone.moderation.defs#revokeAccountCredentialsEvent'
|
|
92
|
-
| 'tools.ozone.moderation.defs#ageAssuranceEvent'
|
|
93
|
-
| 'tools.ozone.moderation.defs#ageAssuranceOverrideEvent'
|
|
94
|
-
| 'tools.ozone.moderation.defs#timelineEventPlcCreate'
|
|
95
|
-
| 'tools.ozone.moderation.defs#timelineEventPlcOperation'
|
|
96
|
-
| 'tools.ozone.moderation.defs#timelineEventPlcTombstone'
|
|
97
|
-
| 'tools.ozone.hosting.getAccountHistory#accountCreated'
|
|
98
|
-
| 'tools.ozone.hosting.getAccountHistory#emailConfirmed'
|
|
99
|
-
| 'tools.ozone.hosting.getAccountHistory#passwordUpdated'
|
|
100
|
-
| 'tools.ozone.hosting.getAccountHistory#handleUpdated'
|
|
101
|
-
| 'tools.ozone.moderation.defs#scheduleTakedownEvent'
|
|
102
|
-
| 'tools.ozone.moderation.defs#cancelScheduledTakedownEvent'
|
|
103
|
-
| (string & {})
|
|
104
|
-
count: number
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
const hashTimelineItemSummary = 'timelineItemSummary'
|
|
108
|
-
|
|
109
|
-
export function isTimelineItemSummary<V>(v: V) {
|
|
110
|
-
return is$typed(v, id, hashTimelineItemSummary)
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function validateTimelineItemSummary<V>(v: V) {
|
|
114
|
-
return validate<TimelineItemSummary & V>(v, id, hashTimelineItemSummary)
|
|
115
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.getEvent'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
id: number
|
|
21
|
-
}
|
|
22
|
-
export type InputSchema = undefined
|
|
23
|
-
export type OutputSchema = ToolsOzoneModerationDefs.ModEventViewDetail
|
|
24
|
-
|
|
25
|
-
export interface CallOptions {
|
|
26
|
-
signal?: AbortSignal
|
|
27
|
-
headers?: HeadersMap
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface Response {
|
|
31
|
-
success: boolean
|
|
32
|
-
headers: HeadersMap
|
|
33
|
-
data: OutputSchema
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function toKnownErr(e: any) {
|
|
37
|
-
return e
|
|
38
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.getRecord'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
uri: string
|
|
21
|
-
cid?: string
|
|
22
|
-
}
|
|
23
|
-
export type InputSchema = undefined
|
|
24
|
-
export type OutputSchema = ToolsOzoneModerationDefs.RecordViewDetail
|
|
25
|
-
|
|
26
|
-
export interface CallOptions {
|
|
27
|
-
signal?: AbortSignal
|
|
28
|
-
headers?: HeadersMap
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface Response {
|
|
32
|
-
success: boolean
|
|
33
|
-
headers: HeadersMap
|
|
34
|
-
data: OutputSchema
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export class RecordNotFoundError extends XRPCError {
|
|
38
|
-
constructor(src: XRPCError) {
|
|
39
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function toKnownErr(e: any) {
|
|
44
|
-
if (e instanceof XRPCError) {
|
|
45
|
-
if (e.error === 'RecordNotFound') return new RecordNotFoundError(e)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return e
|
|
49
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.getRecords'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
uris: string[]
|
|
21
|
-
}
|
|
22
|
-
export type InputSchema = undefined
|
|
23
|
-
|
|
24
|
-
export interface OutputSchema {
|
|
25
|
-
records: (
|
|
26
|
-
| $Typed<ToolsOzoneModerationDefs.RecordViewDetail>
|
|
27
|
-
| $Typed<ToolsOzoneModerationDefs.RecordViewNotFound>
|
|
28
|
-
| { $type: string }
|
|
29
|
-
)[]
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface CallOptions {
|
|
33
|
-
signal?: AbortSignal
|
|
34
|
-
headers?: HeadersMap
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface Response {
|
|
38
|
-
success: boolean
|
|
39
|
-
headers: HeadersMap
|
|
40
|
-
data: OutputSchema
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function toKnownErr(e: any) {
|
|
44
|
-
return e
|
|
45
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.getRepo'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
did: string
|
|
21
|
-
}
|
|
22
|
-
export type InputSchema = undefined
|
|
23
|
-
export type OutputSchema = ToolsOzoneModerationDefs.RepoViewDetail
|
|
24
|
-
|
|
25
|
-
export interface CallOptions {
|
|
26
|
-
signal?: AbortSignal
|
|
27
|
-
headers?: HeadersMap
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface Response {
|
|
31
|
-
success: boolean
|
|
32
|
-
headers: HeadersMap
|
|
33
|
-
data: OutputSchema
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export class RepoNotFoundError extends XRPCError {
|
|
37
|
-
constructor(src: XRPCError) {
|
|
38
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function toKnownErr(e: any) {
|
|
43
|
-
if (e instanceof XRPCError) {
|
|
44
|
-
if (e.error === 'RepoNotFound') return new RepoNotFoundError(e)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return e
|
|
48
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.getReporterStats'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
dids: string[]
|
|
21
|
-
}
|
|
22
|
-
export type InputSchema = undefined
|
|
23
|
-
|
|
24
|
-
export interface OutputSchema {
|
|
25
|
-
stats: ToolsOzoneModerationDefs.ReporterStats[]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface CallOptions {
|
|
29
|
-
signal?: AbortSignal
|
|
30
|
-
headers?: HeadersMap
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface Response {
|
|
34
|
-
success: boolean
|
|
35
|
-
headers: HeadersMap
|
|
36
|
-
data: OutputSchema
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function toKnownErr(e: any) {
|
|
40
|
-
return e
|
|
41
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.getRepos'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
dids: string[]
|
|
21
|
-
}
|
|
22
|
-
export type InputSchema = undefined
|
|
23
|
-
|
|
24
|
-
export interface OutputSchema {
|
|
25
|
-
repos: (
|
|
26
|
-
| $Typed<ToolsOzoneModerationDefs.RepoViewDetail>
|
|
27
|
-
| $Typed<ToolsOzoneModerationDefs.RepoViewNotFound>
|
|
28
|
-
| { $type: string }
|
|
29
|
-
)[]
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface CallOptions {
|
|
33
|
-
signal?: AbortSignal
|
|
34
|
-
headers?: HeadersMap
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface Response {
|
|
38
|
-
success: boolean
|
|
39
|
-
headers: HeadersMap
|
|
40
|
-
data: OutputSchema
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function toKnownErr(e: any) {
|
|
44
|
-
return e
|
|
45
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.getSubjects'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
subjects: string[]
|
|
21
|
-
}
|
|
22
|
-
export type InputSchema = undefined
|
|
23
|
-
|
|
24
|
-
export interface OutputSchema {
|
|
25
|
-
subjects: ToolsOzoneModerationDefs.SubjectView[]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface CallOptions {
|
|
29
|
-
signal?: AbortSignal
|
|
30
|
-
headers?: HeadersMap
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface Response {
|
|
34
|
-
success: boolean
|
|
35
|
-
headers: HeadersMap
|
|
36
|
-
data: OutputSchema
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function toKnownErr(e: any) {
|
|
40
|
-
return e
|
|
41
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.listScheduledActions'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {}
|
|
20
|
-
|
|
21
|
-
export interface InputSchema {
|
|
22
|
-
/** Filter actions scheduled to execute after this time */
|
|
23
|
-
startsAfter?: string
|
|
24
|
-
/** Filter actions scheduled to execute before this time */
|
|
25
|
-
endsBefore?: string
|
|
26
|
-
/** Filter actions for specific DID subjects */
|
|
27
|
-
subjects?: string[]
|
|
28
|
-
/** Filter actions by status */
|
|
29
|
-
statuses: ('pending' | 'executed' | 'cancelled' | 'failed' | (string & {}))[]
|
|
30
|
-
/** Maximum number of results to return */
|
|
31
|
-
limit?: number
|
|
32
|
-
/** Cursor for pagination */
|
|
33
|
-
cursor?: string
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface OutputSchema {
|
|
37
|
-
actions: ToolsOzoneModerationDefs.ScheduledActionView[]
|
|
38
|
-
/** Cursor for next page of results */
|
|
39
|
-
cursor?: string
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface CallOptions {
|
|
43
|
-
signal?: AbortSignal
|
|
44
|
-
headers?: HeadersMap
|
|
45
|
-
qp?: QueryParams
|
|
46
|
-
encoding?: 'application/json'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface Response {
|
|
50
|
-
success: boolean
|
|
51
|
-
headers: HeadersMap
|
|
52
|
-
data: OutputSchema
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function toKnownErr(e: any) {
|
|
56
|
-
return e
|
|
57
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
import type * as ToolsOzoneModerationDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.moderation.queryEvents'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned. */
|
|
21
|
-
types?: string[]
|
|
22
|
-
createdBy?: string
|
|
23
|
-
/** Sort direction for the events. Defaults to descending order of created at timestamp. */
|
|
24
|
-
sortDirection?: 'asc' | 'desc'
|
|
25
|
-
/** Retrieve events created after a given timestamp */
|
|
26
|
-
createdAfter?: string
|
|
27
|
-
/** Retrieve events created before a given timestamp */
|
|
28
|
-
createdBefore?: string
|
|
29
|
-
subject?: string
|
|
30
|
-
/** If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored. */
|
|
31
|
-
collections?: string[]
|
|
32
|
-
/** If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. */
|
|
33
|
-
subjectType?: 'account' | 'record' | (string & {})
|
|
34
|
-
/** If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. */
|
|
35
|
-
includeAllUserRecords?: boolean
|
|
36
|
-
limit?: number
|
|
37
|
-
/** If true, only events with comments are returned */
|
|
38
|
-
hasComment?: boolean
|
|
39
|
-
/** If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition. */
|
|
40
|
-
comment?: string
|
|
41
|
-
/** If specified, only events where all of these labels were added are returned */
|
|
42
|
-
addedLabels?: string[]
|
|
43
|
-
/** If specified, only events where all of these labels were removed are returned */
|
|
44
|
-
removedLabels?: string[]
|
|
45
|
-
/** If specified, only events where all of these tags were added are returned */
|
|
46
|
-
addedTags?: string[]
|
|
47
|
-
/** If specified, only events where all of these tags were removed are returned */
|
|
48
|
-
removedTags?: string[]
|
|
49
|
-
reportTypes?: string[]
|
|
50
|
-
policies?: string[]
|
|
51
|
-
/** If specified, only events where the modTool name matches any of the given values are returned */
|
|
52
|
-
modTool?: string[]
|
|
53
|
-
/** If specified, only events where the batchId matches the given value are returned */
|
|
54
|
-
batchId?: string
|
|
55
|
-
/** If specified, only events where the age assurance state matches the given value are returned */
|
|
56
|
-
ageAssuranceState?:
|
|
57
|
-
| 'pending'
|
|
58
|
-
| 'assured'
|
|
59
|
-
| 'unknown'
|
|
60
|
-
| 'reset'
|
|
61
|
-
| 'blocked'
|
|
62
|
-
| (string & {})
|
|
63
|
-
/** If specified, only events where strikeCount value is set are returned. */
|
|
64
|
-
withStrike?: boolean
|
|
65
|
-
cursor?: string
|
|
66
|
-
}
|
|
67
|
-
export type InputSchema = undefined
|
|
68
|
-
|
|
69
|
-
export interface OutputSchema {
|
|
70
|
-
cursor?: string
|
|
71
|
-
events: ToolsOzoneModerationDefs.ModEventView[]
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface CallOptions {
|
|
75
|
-
signal?: AbortSignal
|
|
76
|
-
headers?: HeadersMap
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface Response {
|
|
80
|
-
success: boolean
|
|
81
|
-
headers: HeadersMap
|
|
82
|
-
data: OutputSchema
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function toKnownErr(e: any) {
|
|
86
|
-
return e
|
|
87
|
-
}
|