@atproto/api 0.20.0-next.0 → 0.20.1
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 +26 -10
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +1030 -16
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +631 -7
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +2 -1
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.d.ts +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.js +3 -3
- package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.d.ts +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.js +3 -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/getMessageContext.d.ts +5 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +206 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +63 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
- package/dist/rich-text/detection.js +1 -1
- package/dist/rich-text/detection.js.map +1 -1
- package/jest.config.cjs +9 -2
- package/package.json +9 -8
- package/src/rich-text/detection.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/client/index.ts +0 -6408
- package/src/client/lexicons.ts +0 -25182
- 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 -84
- 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 -115
- package/src/client/types/chat/bsky/group/approveJoinRequest.ts +0 -69
- package/src/client/types/chat/bsky/group/createGroup.ts +0 -85
- 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 -50
- package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +0 -38
- 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,122 +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.queryStatuses'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** Number of queues being used by moderators. Subjects will be split among all queues. */
|
|
21
|
-
queueCount?: number
|
|
22
|
-
/** Index of the queue to fetch subjects from. Works only when queueCount value is specified. */
|
|
23
|
-
queueIndex?: number
|
|
24
|
-
/** A seeder to shuffle/balance the queue items. */
|
|
25
|
-
queueSeed?: string
|
|
26
|
-
/** All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned. */
|
|
27
|
-
includeAllUserRecords?: boolean
|
|
28
|
-
/** The subject to get the status for. */
|
|
29
|
-
subject?: string
|
|
30
|
-
/** Search subjects by keyword from comments */
|
|
31
|
-
comment?: string
|
|
32
|
-
/** Search subjects reported after a given timestamp */
|
|
33
|
-
reportedAfter?: string
|
|
34
|
-
/** Search subjects reported before a given timestamp */
|
|
35
|
-
reportedBefore?: string
|
|
36
|
-
/** Search subjects reviewed after a given timestamp */
|
|
37
|
-
reviewedAfter?: string
|
|
38
|
-
/** Search subjects where the associated record/account was deleted after a given timestamp */
|
|
39
|
-
hostingDeletedAfter?: string
|
|
40
|
-
/** Search subjects where the associated record/account was deleted before a given timestamp */
|
|
41
|
-
hostingDeletedBefore?: string
|
|
42
|
-
/** Search subjects where the associated record/account was updated after a given timestamp */
|
|
43
|
-
hostingUpdatedAfter?: string
|
|
44
|
-
/** Search subjects where the associated record/account was updated before a given timestamp */
|
|
45
|
-
hostingUpdatedBefore?: string
|
|
46
|
-
/** Search subjects by the status of the associated record/account */
|
|
47
|
-
hostingStatuses?: string[]
|
|
48
|
-
/** Search subjects reviewed before a given timestamp */
|
|
49
|
-
reviewedBefore?: string
|
|
50
|
-
/** By default, we don't include muted subjects in the results. Set this to true to include them. */
|
|
51
|
-
includeMuted?: boolean
|
|
52
|
-
/** When set to true, only muted subjects and reporters will be returned. */
|
|
53
|
-
onlyMuted?: boolean
|
|
54
|
-
/** Specify when fetching subjects in a certain state */
|
|
55
|
-
reviewState?:
|
|
56
|
-
| 'tools.ozone.moderation.defs#reviewOpen'
|
|
57
|
-
| 'tools.ozone.moderation.defs#reviewClosed'
|
|
58
|
-
| 'tools.ozone.moderation.defs#reviewEscalated'
|
|
59
|
-
| 'tools.ozone.moderation.defs#reviewNone'
|
|
60
|
-
| (string & {})
|
|
61
|
-
ignoreSubjects?: string[]
|
|
62
|
-
/** Get all subject statuses that were reviewed by a specific moderator */
|
|
63
|
-
lastReviewedBy?: string
|
|
64
|
-
sortField?:
|
|
65
|
-
| 'lastReviewedAt'
|
|
66
|
-
| 'lastReportedAt'
|
|
67
|
-
| 'reportedRecordsCount'
|
|
68
|
-
| 'takendownRecordsCount'
|
|
69
|
-
| 'priorityScore'
|
|
70
|
-
sortDirection?: 'asc' | 'desc'
|
|
71
|
-
/** Get subjects that were taken down */
|
|
72
|
-
takendown?: boolean
|
|
73
|
-
/** Get subjects in unresolved appealed status */
|
|
74
|
-
appealed?: boolean
|
|
75
|
-
limit?: number
|
|
76
|
-
tags?: string[]
|
|
77
|
-
excludeTags?: string[]
|
|
78
|
-
cursor?: string
|
|
79
|
-
/** If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored. */
|
|
80
|
-
collections?: string[]
|
|
81
|
-
/** If specified, subjects 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. */
|
|
82
|
-
subjectType?: 'account' | 'record' | (string & {})
|
|
83
|
-
/** If specified, only subjects that belong to an account that has at least this many suspensions will be returned. */
|
|
84
|
-
minAccountSuspendCount?: number
|
|
85
|
-
/** If specified, only subjects that belong to an account that has at least this many reported records will be returned. */
|
|
86
|
-
minReportedRecordsCount?: number
|
|
87
|
-
/** If specified, only subjects that belong to an account that has at least this many taken down records will be returned. */
|
|
88
|
-
minTakendownRecordsCount?: number
|
|
89
|
-
/** If specified, only subjects that have priority score value above the given value will be returned. */
|
|
90
|
-
minPriorityScore?: number
|
|
91
|
-
/** If specified, only subjects that belong to an account that has at least this many active strikes will be returned. */
|
|
92
|
-
minStrikeCount?: number
|
|
93
|
-
/** If specified, only subjects with the given age assurance state will be returned. */
|
|
94
|
-
ageAssuranceState?:
|
|
95
|
-
| 'pending'
|
|
96
|
-
| 'assured'
|
|
97
|
-
| 'unknown'
|
|
98
|
-
| 'reset'
|
|
99
|
-
| 'blocked'
|
|
100
|
-
| (string & {})
|
|
101
|
-
}
|
|
102
|
-
export type InputSchema = undefined
|
|
103
|
-
|
|
104
|
-
export interface OutputSchema {
|
|
105
|
-
cursor?: string
|
|
106
|
-
subjectStatuses: ToolsOzoneModerationDefs.SubjectStatusView[]
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface CallOptions {
|
|
110
|
-
signal?: AbortSignal
|
|
111
|
-
headers?: HeadersMap
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface Response {
|
|
115
|
-
success: boolean
|
|
116
|
-
headers: HeadersMap
|
|
117
|
-
data: OutputSchema
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function toKnownErr(e: any) {
|
|
121
|
-
return e
|
|
122
|
-
}
|
|
@@ -1,133 +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.scheduleAction'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {}
|
|
20
|
-
|
|
21
|
-
export interface InputSchema {
|
|
22
|
-
action: $Typed<Takedown> | { $type: string }
|
|
23
|
-
/** Array of DID subjects to schedule the action for */
|
|
24
|
-
subjects: string[]
|
|
25
|
-
createdBy: string
|
|
26
|
-
scheduling: SchedulingConfig
|
|
27
|
-
modTool?: ToolsOzoneModerationDefs.ModTool
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type OutputSchema = ScheduledActionResults
|
|
31
|
-
|
|
32
|
-
export interface CallOptions {
|
|
33
|
-
signal?: AbortSignal
|
|
34
|
-
headers?: HeadersMap
|
|
35
|
-
qp?: QueryParams
|
|
36
|
-
encoding?: 'application/json'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface Response {
|
|
40
|
-
success: boolean
|
|
41
|
-
headers: HeadersMap
|
|
42
|
-
data: OutputSchema
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function toKnownErr(e: any) {
|
|
46
|
-
return e
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** Schedule a takedown action */
|
|
50
|
-
export interface Takedown {
|
|
51
|
-
$type?: 'tools.ozone.moderation.scheduleAction#takedown'
|
|
52
|
-
comment?: string
|
|
53
|
-
/** Indicates how long the takedown should be in effect before automatically expiring. */
|
|
54
|
-
durationInHours?: number
|
|
55
|
-
/** If true, all other reports on content authored by this account will be resolved (acknowledged). */
|
|
56
|
-
acknowledgeAccountSubjects?: boolean
|
|
57
|
-
/** Names/Keywords of the policies that drove the decision. */
|
|
58
|
-
policies?: string[]
|
|
59
|
-
/** Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.). */
|
|
60
|
-
severityLevel?: string
|
|
61
|
-
/** Number of strikes to assign to the user when takedown is applied. */
|
|
62
|
-
strikeCount?: number
|
|
63
|
-
/** When the strike should expire. If not provided, the strike never expires. */
|
|
64
|
-
strikeExpiresAt?: string
|
|
65
|
-
/** Email content to be sent to the user upon takedown. */
|
|
66
|
-
emailContent?: string
|
|
67
|
-
/** Subject of the email to be sent to the user upon takedown. */
|
|
68
|
-
emailSubject?: string
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const hashTakedown = 'takedown'
|
|
72
|
-
|
|
73
|
-
export function isTakedown<V>(v: V) {
|
|
74
|
-
return is$typed(v, id, hashTakedown)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function validateTakedown<V>(v: V) {
|
|
78
|
-
return validate<Takedown & V>(v, id, hashTakedown)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/** Configuration for when the action should be executed */
|
|
82
|
-
export interface SchedulingConfig {
|
|
83
|
-
$type?: 'tools.ozone.moderation.scheduleAction#schedulingConfig'
|
|
84
|
-
/** Exact time to execute the action */
|
|
85
|
-
executeAt?: string
|
|
86
|
-
/** Earliest time to execute the action (for randomized scheduling) */
|
|
87
|
-
executeAfter?: string
|
|
88
|
-
/** Latest time to execute the action (for randomized scheduling) */
|
|
89
|
-
executeUntil?: string
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const hashSchedulingConfig = 'schedulingConfig'
|
|
93
|
-
|
|
94
|
-
export function isSchedulingConfig<V>(v: V) {
|
|
95
|
-
return is$typed(v, id, hashSchedulingConfig)
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export function validateSchedulingConfig<V>(v: V) {
|
|
99
|
-
return validate<SchedulingConfig & V>(v, id, hashSchedulingConfig)
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export interface ScheduledActionResults {
|
|
103
|
-
$type?: 'tools.ozone.moderation.scheduleAction#scheduledActionResults'
|
|
104
|
-
succeeded: string[]
|
|
105
|
-
failed: FailedScheduling[]
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const hashScheduledActionResults = 'scheduledActionResults'
|
|
109
|
-
|
|
110
|
-
export function isScheduledActionResults<V>(v: V) {
|
|
111
|
-
return is$typed(v, id, hashScheduledActionResults)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export function validateScheduledActionResults<V>(v: V) {
|
|
115
|
-
return validate<ScheduledActionResults & V>(v, id, hashScheduledActionResults)
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface FailedScheduling {
|
|
119
|
-
$type?: 'tools.ozone.moderation.scheduleAction#failedScheduling'
|
|
120
|
-
subject: string
|
|
121
|
-
error: string
|
|
122
|
-
errorCode?: string
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const hashFailedScheduling = 'failedScheduling'
|
|
126
|
-
|
|
127
|
-
export function isFailedScheduling<V>(v: V) {
|
|
128
|
-
return is$typed(v, id, hashFailedScheduling)
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export function validateFailedScheduling<V>(v: V) {
|
|
132
|
-
return validate<FailedScheduling & V>(v, id, hashFailedScheduling)
|
|
133
|
-
}
|
|
@@ -1,46 +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.searchRepos'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** DEPRECATED: use 'q' instead */
|
|
21
|
-
term?: string
|
|
22
|
-
q?: string
|
|
23
|
-
limit?: number
|
|
24
|
-
cursor?: string
|
|
25
|
-
}
|
|
26
|
-
export type InputSchema = undefined
|
|
27
|
-
|
|
28
|
-
export interface OutputSchema {
|
|
29
|
-
cursor?: string
|
|
30
|
-
repos: ToolsOzoneModerationDefs.RepoView[]
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface CallOptions {
|
|
34
|
-
signal?: AbortSignal
|
|
35
|
-
headers?: HeadersMap
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface Response {
|
|
39
|
-
success: boolean
|
|
40
|
-
headers: HeadersMap
|
|
41
|
-
data: OutputSchema
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function toKnownErr(e: any) {
|
|
45
|
-
return e
|
|
46
|
-
}
|
|
@@ -1,55 +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 ToolsOzoneQueueDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.queue.assignModerator'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {}
|
|
20
|
-
|
|
21
|
-
export interface InputSchema {
|
|
22
|
-
/** The ID of the queue to assign the user to. */
|
|
23
|
-
queueId: number
|
|
24
|
-
/** DID to be assigned. */
|
|
25
|
-
did: string
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type OutputSchema = ToolsOzoneQueueDefs.AssignmentView
|
|
29
|
-
|
|
30
|
-
export interface CallOptions {
|
|
31
|
-
signal?: AbortSignal
|
|
32
|
-
headers?: HeadersMap
|
|
33
|
-
qp?: QueryParams
|
|
34
|
-
encoding?: 'application/json'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface Response {
|
|
38
|
-
success: boolean
|
|
39
|
-
headers: HeadersMap
|
|
40
|
-
data: OutputSchema
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export class InvalidAssignmentError extends XRPCError {
|
|
44
|
-
constructor(src: XRPCError) {
|
|
45
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function toKnownErr(e: any) {
|
|
50
|
-
if (e instanceof XRPCError) {
|
|
51
|
-
if (e.error === 'InvalidAssignment') return new InvalidAssignmentError(e)
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return e
|
|
55
|
-
}
|
|
@@ -1,63 +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 ToolsOzoneQueueDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.queue.createQueue'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {}
|
|
20
|
-
|
|
21
|
-
export interface InputSchema {
|
|
22
|
-
/** Display name for the queue (must be unique) */
|
|
23
|
-
name: string
|
|
24
|
-
/** Subject types this queue accepts */
|
|
25
|
-
subjectTypes: ('account' | 'record' | 'message' | (string & {}))[]
|
|
26
|
-
/** Collection name for record subjects. Required if subjectTypes includes 'record'. */
|
|
27
|
-
collection?: string
|
|
28
|
-
/** Report reason types (fully qualified NSIDs) */
|
|
29
|
-
reportTypes: string[]
|
|
30
|
-
/** Optional description of the queue */
|
|
31
|
-
description?: string
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface OutputSchema {
|
|
35
|
-
queue: ToolsOzoneQueueDefs.QueueView
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface CallOptions {
|
|
39
|
-
signal?: AbortSignal
|
|
40
|
-
headers?: HeadersMap
|
|
41
|
-
qp?: QueryParams
|
|
42
|
-
encoding?: 'application/json'
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface Response {
|
|
46
|
-
success: boolean
|
|
47
|
-
headers: HeadersMap
|
|
48
|
-
data: OutputSchema
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export class ConflictingQueueError extends XRPCError {
|
|
52
|
-
constructor(src: XRPCError) {
|
|
53
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function toKnownErr(e: any) {
|
|
58
|
-
if (e instanceof XRPCError) {
|
|
59
|
-
if (e.error === 'ConflictingQueue') return new ConflictingQueueError(e)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return e
|
|
63
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
-
import { CID } from 'multiformats/cid'
|
|
6
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
7
|
-
import {
|
|
8
|
-
type $Typed,
|
|
9
|
-
is$typed as _is$typed,
|
|
10
|
-
type OmitKey,
|
|
11
|
-
} from '../../../../util.js'
|
|
12
|
-
import type * as ToolsOzoneTeamDefs from '../team/defs.js'
|
|
13
|
-
|
|
14
|
-
const is$typed = _is$typed,
|
|
15
|
-
validate = _validate
|
|
16
|
-
const id = 'tools.ozone.queue.defs'
|
|
17
|
-
|
|
18
|
-
export interface QueueView {
|
|
19
|
-
$type?: 'tools.ozone.queue.defs#queueView'
|
|
20
|
-
/** Queue ID */
|
|
21
|
-
id: number
|
|
22
|
-
/** Display name of the queue */
|
|
23
|
-
name: string
|
|
24
|
-
/** Subject types this queue accepts. */
|
|
25
|
-
subjectTypes: ('account' | 'record' | 'message' | (string & {}))[]
|
|
26
|
-
/** Collection name for record subjects (e.g., 'app.bsky.feed.post') */
|
|
27
|
-
collection?: string
|
|
28
|
-
/** Report reason types this queue accepts (fully qualified NSIDs) */
|
|
29
|
-
reportTypes: string[]
|
|
30
|
-
/** Optional description of the queue */
|
|
31
|
-
description?: string
|
|
32
|
-
/** DID of moderator who created this queue */
|
|
33
|
-
createdBy: string
|
|
34
|
-
createdAt: string
|
|
35
|
-
updatedAt: string
|
|
36
|
-
/** Whether this queue is currently active */
|
|
37
|
-
enabled: boolean
|
|
38
|
-
/** When the queue was deleted, if applicable */
|
|
39
|
-
deletedAt?: string
|
|
40
|
-
stats: QueueStats
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const hashQueueView = 'queueView'
|
|
44
|
-
|
|
45
|
-
export function isQueueView<V>(v: V) {
|
|
46
|
-
return is$typed(v, id, hashQueueView)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function validateQueueView<V>(v: V) {
|
|
50
|
-
return validate<QueueView & V>(v, id, hashQueueView)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface QueueStats {
|
|
54
|
-
$type?: 'tools.ozone.queue.defs#queueStats'
|
|
55
|
-
/** Number of reports in 'open' status */
|
|
56
|
-
pendingCount?: number
|
|
57
|
-
/** Number of reports in 'closed' status */
|
|
58
|
-
actionedCount?: number
|
|
59
|
-
/** Number of reports in 'escalated' status */
|
|
60
|
-
escalatedCount?: number
|
|
61
|
-
/** Reports received in this queue in the last 24 hours. */
|
|
62
|
-
inboundCount?: number
|
|
63
|
-
/** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0. */
|
|
64
|
-
actionRate?: number
|
|
65
|
-
/** Average time in seconds from report creation to close, for reports closed in this period. */
|
|
66
|
-
avgHandlingTimeSec?: number
|
|
67
|
-
/** When these statistics were last computed */
|
|
68
|
-
lastUpdated?: string
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const hashQueueStats = 'queueStats'
|
|
72
|
-
|
|
73
|
-
export function isQueueStats<V>(v: V) {
|
|
74
|
-
return is$typed(v, id, hashQueueStats)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function validateQueueStats<V>(v: V) {
|
|
78
|
-
return validate<QueueStats & V>(v, id, hashQueueStats)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface AssignmentView {
|
|
82
|
-
$type?: 'tools.ozone.queue.defs#assignmentView'
|
|
83
|
-
id: number
|
|
84
|
-
did: string
|
|
85
|
-
moderator?: ToolsOzoneTeamDefs.Member
|
|
86
|
-
queue: QueueView
|
|
87
|
-
startAt: string
|
|
88
|
-
endAt?: string
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
const hashAssignmentView = 'assignmentView'
|
|
92
|
-
|
|
93
|
-
export function isAssignmentView<V>(v: V) {
|
|
94
|
-
return is$typed(v, id, hashAssignmentView)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export function validateAssignmentView<V>(v: V) {
|
|
98
|
-
return validate<AssignmentView & V>(v, id, hashAssignmentView)
|
|
99
|
-
}
|
|
@@ -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
|
-
|
|
14
|
-
const is$typed = _is$typed,
|
|
15
|
-
validate = _validate
|
|
16
|
-
const id = 'tools.ozone.queue.deleteQueue'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {}
|
|
19
|
-
|
|
20
|
-
export interface InputSchema {
|
|
21
|
-
/** ID of the queue to delete */
|
|
22
|
-
queueId: number
|
|
23
|
-
/** Optional: migrate all reports to this queue. If not specified, reports will be set to unassigned (-1). */
|
|
24
|
-
migrateToQueueId?: number
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface OutputSchema {
|
|
28
|
-
deleted: boolean
|
|
29
|
-
/** Number of reports that were migrated (if migration occurred) */
|
|
30
|
-
reportsMigrated?: number
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface CallOptions {
|
|
34
|
-
signal?: AbortSignal
|
|
35
|
-
headers?: HeadersMap
|
|
36
|
-
qp?: QueryParams
|
|
37
|
-
encoding?: 'application/json'
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface Response {
|
|
41
|
-
success: boolean
|
|
42
|
-
headers: HeadersMap
|
|
43
|
-
data: OutputSchema
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function toKnownErr(e: any) {
|
|
47
|
-
return e
|
|
48
|
-
}
|
|
@@ -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 ToolsOzoneQueueDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.queue.getAssignments'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** When true, only returns active assignments. */
|
|
21
|
-
onlyActive?: boolean
|
|
22
|
-
/** If specified, returns assignments for these queues only. */
|
|
23
|
-
queueIds?: number[]
|
|
24
|
-
/** If specified, returns assignments for these moderators only. */
|
|
25
|
-
dids?: string[]
|
|
26
|
-
limit?: number
|
|
27
|
-
cursor?: string
|
|
28
|
-
}
|
|
29
|
-
export type InputSchema = undefined
|
|
30
|
-
|
|
31
|
-
export interface OutputSchema {
|
|
32
|
-
cursor?: string
|
|
33
|
-
assignments: ToolsOzoneQueueDefs.AssignmentView[]
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface CallOptions {
|
|
37
|
-
signal?: AbortSignal
|
|
38
|
-
headers?: HeadersMap
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface Response {
|
|
42
|
-
success: boolean
|
|
43
|
-
headers: HeadersMap
|
|
44
|
-
data: OutputSchema
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function toKnownErr(e: any) {
|
|
48
|
-
return e
|
|
49
|
-
}
|
|
@@ -1,51 +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 ToolsOzoneQueueDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.queue.listQueues'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** Filter by enabled status. If not specified, returns all queues. */
|
|
21
|
-
enabled?: boolean
|
|
22
|
-
/** Filter queues that handle this subject type ('account' or 'record'). */
|
|
23
|
-
subjectType?: string
|
|
24
|
-
/** Filter queues by collection name (e.g. 'app.bsky.feed.post'). */
|
|
25
|
-
collection?: string
|
|
26
|
-
/** Filter queues that handle any of these report reason types. */
|
|
27
|
-
reportTypes?: string[]
|
|
28
|
-
limit?: number
|
|
29
|
-
cursor?: string
|
|
30
|
-
}
|
|
31
|
-
export type InputSchema = undefined
|
|
32
|
-
|
|
33
|
-
export interface OutputSchema {
|
|
34
|
-
cursor?: string
|
|
35
|
-
queues: ToolsOzoneQueueDefs.QueueView[]
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface CallOptions {
|
|
39
|
-
signal?: AbortSignal
|
|
40
|
-
headers?: HeadersMap
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface Response {
|
|
44
|
-
success: boolean
|
|
45
|
-
headers: HeadersMap
|
|
46
|
-
data: OutputSchema
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function toKnownErr(e: any) {
|
|
50
|
-
return e
|
|
51
|
-
}
|