@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,466 +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
|
-
import type * as ToolsOzoneModerationDefs from '../moderation/defs.js'
|
|
14
|
-
import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'
|
|
15
|
-
import type * as ToolsOzoneQueueDefs from '../queue/defs.js'
|
|
16
|
-
|
|
17
|
-
const is$typed = _is$typed,
|
|
18
|
-
validate = _validate
|
|
19
|
-
const id = 'tools.ozone.report.defs'
|
|
20
|
-
|
|
21
|
-
export type ReasonType =
|
|
22
|
-
| 'tools.ozone.report.defs#reasonAppeal'
|
|
23
|
-
| 'tools.ozone.report.defs#reasonOther'
|
|
24
|
-
| 'tools.ozone.report.defs#reasonViolenceAnimal'
|
|
25
|
-
| 'tools.ozone.report.defs#reasonViolenceThreats'
|
|
26
|
-
| 'tools.ozone.report.defs#reasonViolenceGraphicContent'
|
|
27
|
-
| 'tools.ozone.report.defs#reasonViolenceGlorification'
|
|
28
|
-
| 'tools.ozone.report.defs#reasonViolenceExtremistContent'
|
|
29
|
-
| 'tools.ozone.report.defs#reasonViolenceTrafficking'
|
|
30
|
-
| 'tools.ozone.report.defs#reasonViolenceOther'
|
|
31
|
-
| 'tools.ozone.report.defs#reasonSexualAbuseContent'
|
|
32
|
-
| 'tools.ozone.report.defs#reasonSexualNCII'
|
|
33
|
-
| 'tools.ozone.report.defs#reasonSexualDeepfake'
|
|
34
|
-
| 'tools.ozone.report.defs#reasonSexualAnimal'
|
|
35
|
-
| 'tools.ozone.report.defs#reasonSexualUnlabeled'
|
|
36
|
-
| 'tools.ozone.report.defs#reasonSexualOther'
|
|
37
|
-
| 'tools.ozone.report.defs#reasonChildSafetyCSAM'
|
|
38
|
-
| 'tools.ozone.report.defs#reasonChildSafetyGroom'
|
|
39
|
-
| 'tools.ozone.report.defs#reasonChildSafetyPrivacy'
|
|
40
|
-
| 'tools.ozone.report.defs#reasonChildSafetyHarassment'
|
|
41
|
-
| 'tools.ozone.report.defs#reasonChildSafetyOther'
|
|
42
|
-
| 'tools.ozone.report.defs#reasonHarassmentTroll'
|
|
43
|
-
| 'tools.ozone.report.defs#reasonHarassmentTargeted'
|
|
44
|
-
| 'tools.ozone.report.defs#reasonHarassmentHateSpeech'
|
|
45
|
-
| 'tools.ozone.report.defs#reasonHarassmentDoxxing'
|
|
46
|
-
| 'tools.ozone.report.defs#reasonHarassmentOther'
|
|
47
|
-
| 'tools.ozone.report.defs#reasonMisleadingBot'
|
|
48
|
-
| 'tools.ozone.report.defs#reasonMisleadingImpersonation'
|
|
49
|
-
| 'tools.ozone.report.defs#reasonMisleadingSpam'
|
|
50
|
-
| 'tools.ozone.report.defs#reasonMisleadingScam'
|
|
51
|
-
| 'tools.ozone.report.defs#reasonMisleadingElections'
|
|
52
|
-
| 'tools.ozone.report.defs#reasonMisleadingOther'
|
|
53
|
-
| 'tools.ozone.report.defs#reasonRuleSiteSecurity'
|
|
54
|
-
| 'tools.ozone.report.defs#reasonRuleProhibitedSales'
|
|
55
|
-
| 'tools.ozone.report.defs#reasonRuleBanEvasion'
|
|
56
|
-
| 'tools.ozone.report.defs#reasonRuleOther'
|
|
57
|
-
| 'tools.ozone.report.defs#reasonSelfHarmContent'
|
|
58
|
-
| 'tools.ozone.report.defs#reasonSelfHarmED'
|
|
59
|
-
| 'tools.ozone.report.defs#reasonSelfHarmStunts'
|
|
60
|
-
| 'tools.ozone.report.defs#reasonSelfHarmSubstances'
|
|
61
|
-
| 'tools.ozone.report.defs#reasonSelfHarmOther'
|
|
62
|
-
| (string & {})
|
|
63
|
-
|
|
64
|
-
/** Appeal a previously taken moderation action */
|
|
65
|
-
export const REASONAPPEAL = `${id}#reasonAppeal`
|
|
66
|
-
/** An issue not included in these options */
|
|
67
|
-
export const REASONOTHER = `${id}#reasonOther`
|
|
68
|
-
/** Animal welfare violations */
|
|
69
|
-
export const REASONVIOLENCEANIMAL = `${id}#reasonViolenceAnimal`
|
|
70
|
-
/** Threats or incitement */
|
|
71
|
-
export const REASONVIOLENCETHREATS = `${id}#reasonViolenceThreats`
|
|
72
|
-
/** Graphic violent content */
|
|
73
|
-
export const REASONVIOLENCEGRAPHICCONTENT = `${id}#reasonViolenceGraphicContent`
|
|
74
|
-
/** Glorification of violence */
|
|
75
|
-
export const REASONVIOLENCEGLORIFICATION = `${id}#reasonViolenceGlorification`
|
|
76
|
-
/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */
|
|
77
|
-
export const REASONVIOLENCEEXTREMISTCONTENT = `${id}#reasonViolenceExtremistContent`
|
|
78
|
-
/** Human trafficking */
|
|
79
|
-
export const REASONVIOLENCETRAFFICKING = `${id}#reasonViolenceTrafficking`
|
|
80
|
-
/** Other violent content */
|
|
81
|
-
export const REASONVIOLENCEOTHER = `${id}#reasonViolenceOther`
|
|
82
|
-
/** Adult sexual abuse content */
|
|
83
|
-
export const REASONSEXUALABUSECONTENT = `${id}#reasonSexualAbuseContent`
|
|
84
|
-
/** Non-consensual intimate imagery */
|
|
85
|
-
export const REASONSEXUALNCII = `${id}#reasonSexualNCII`
|
|
86
|
-
/** Deepfake adult content */
|
|
87
|
-
export const REASONSEXUALDEEPFAKE = `${id}#reasonSexualDeepfake`
|
|
88
|
-
/** Animal sexual abuse */
|
|
89
|
-
export const REASONSEXUALANIMAL = `${id}#reasonSexualAnimal`
|
|
90
|
-
/** Unlabelled adult content */
|
|
91
|
-
export const REASONSEXUALUNLABELED = `${id}#reasonSexualUnlabeled`
|
|
92
|
-
/** Other sexual violence content */
|
|
93
|
-
export const REASONSEXUALOTHER = `${id}#reasonSexualOther`
|
|
94
|
-
/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */
|
|
95
|
-
export const REASONCHILDSAFETYCSAM = `${id}#reasonChildSafetyCSAM`
|
|
96
|
-
/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */
|
|
97
|
-
export const REASONCHILDSAFETYGROOM = `${id}#reasonChildSafetyGroom`
|
|
98
|
-
/** Privacy violation involving a minor */
|
|
99
|
-
export const REASONCHILDSAFETYPRIVACY = `${id}#reasonChildSafetyPrivacy`
|
|
100
|
-
/** Harassment or bullying of minors */
|
|
101
|
-
export const REASONCHILDSAFETYHARASSMENT = `${id}#reasonChildSafetyHarassment`
|
|
102
|
-
/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */
|
|
103
|
-
export const REASONCHILDSAFETYOTHER = `${id}#reasonChildSafetyOther`
|
|
104
|
-
/** Trolling */
|
|
105
|
-
export const REASONHARASSMENTTROLL = `${id}#reasonHarassmentTroll`
|
|
106
|
-
/** Targeted harassment */
|
|
107
|
-
export const REASONHARASSMENTTARGETED = `${id}#reasonHarassmentTargeted`
|
|
108
|
-
/** Hate speech */
|
|
109
|
-
export const REASONHARASSMENTHATESPEECH = `${id}#reasonHarassmentHateSpeech`
|
|
110
|
-
/** Doxxing */
|
|
111
|
-
export const REASONHARASSMENTDOXXING = `${id}#reasonHarassmentDoxxing`
|
|
112
|
-
/** Other harassing or hateful content */
|
|
113
|
-
export const REASONHARASSMENTOTHER = `${id}#reasonHarassmentOther`
|
|
114
|
-
/** Fake account or bot */
|
|
115
|
-
export const REASONMISLEADINGBOT = `${id}#reasonMisleadingBot`
|
|
116
|
-
/** Impersonation */
|
|
117
|
-
export const REASONMISLEADINGIMPERSONATION = `${id}#reasonMisleadingImpersonation`
|
|
118
|
-
/** Spam */
|
|
119
|
-
export const REASONMISLEADINGSPAM = `${id}#reasonMisleadingSpam`
|
|
120
|
-
/** Scam */
|
|
121
|
-
export const REASONMISLEADINGSCAM = `${id}#reasonMisleadingScam`
|
|
122
|
-
/** False information about elections */
|
|
123
|
-
export const REASONMISLEADINGELECTIONS = `${id}#reasonMisleadingElections`
|
|
124
|
-
/** Other misleading content */
|
|
125
|
-
export const REASONMISLEADINGOTHER = `${id}#reasonMisleadingOther`
|
|
126
|
-
/** Hacking or system attacks */
|
|
127
|
-
export const REASONRULESITESECURITY = `${id}#reasonRuleSiteSecurity`
|
|
128
|
-
/** Promoting or selling prohibited items or services */
|
|
129
|
-
export const REASONRULEPROHIBITEDSALES = `${id}#reasonRuleProhibitedSales`
|
|
130
|
-
/** Banned user returning */
|
|
131
|
-
export const REASONRULEBANEVASION = `${id}#reasonRuleBanEvasion`
|
|
132
|
-
/** Other */
|
|
133
|
-
export const REASONRULEOTHER = `${id}#reasonRuleOther`
|
|
134
|
-
/** Content promoting or depicting self-harm */
|
|
135
|
-
export const REASONSELFHARMCONTENT = `${id}#reasonSelfHarmContent`
|
|
136
|
-
/** Eating disorders */
|
|
137
|
-
export const REASONSELFHARMED = `${id}#reasonSelfHarmED`
|
|
138
|
-
/** Dangerous challenges or activities */
|
|
139
|
-
export const REASONSELFHARMSTUNTS = `${id}#reasonSelfHarmStunts`
|
|
140
|
-
/** Dangerous substances or drug abuse */
|
|
141
|
-
export const REASONSELFHARMSUBSTANCES = `${id}#reasonSelfHarmSubstances`
|
|
142
|
-
/** Other dangerous content */
|
|
143
|
-
export const REASONSELFHARMOTHER = `${id}#reasonSelfHarmOther`
|
|
144
|
-
|
|
145
|
-
/** Information about the moderator currently assigned to a report. */
|
|
146
|
-
export interface ReportAssignment {
|
|
147
|
-
$type?: 'tools.ozone.report.defs#reportAssignment'
|
|
148
|
-
/** DID of the assigned moderator */
|
|
149
|
-
did: string
|
|
150
|
-
moderator?: ToolsOzoneTeamDefs.Member
|
|
151
|
-
/** When the report was assigned */
|
|
152
|
-
assignedAt: string
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const hashReportAssignment = 'reportAssignment'
|
|
156
|
-
|
|
157
|
-
export function isReportAssignment<V>(v: V) {
|
|
158
|
-
return is$typed(v, id, hashReportAssignment)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export function validateReportAssignment<V>(v: V) {
|
|
162
|
-
return validate<ReportAssignment & V>(v, id, hashReportAssignment)
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface ReportView {
|
|
166
|
-
$type?: 'tools.ozone.report.defs#reportView'
|
|
167
|
-
/** Report ID */
|
|
168
|
-
id: number
|
|
169
|
-
/** ID of the moderation event that created this report */
|
|
170
|
-
eventId: number
|
|
171
|
-
/** Current status of the report */
|
|
172
|
-
status:
|
|
173
|
-
| 'open'
|
|
174
|
-
| 'closed'
|
|
175
|
-
| 'escalated'
|
|
176
|
-
| 'queued'
|
|
177
|
-
| 'assigned'
|
|
178
|
-
| (string & {})
|
|
179
|
-
subject: ToolsOzoneModerationDefs.SubjectView
|
|
180
|
-
reportType: ComAtprotoModerationDefs.ReasonType
|
|
181
|
-
/** DID of the user who made the report */
|
|
182
|
-
reportedBy: string
|
|
183
|
-
reporter: ToolsOzoneModerationDefs.SubjectView
|
|
184
|
-
/** Comment provided by the reporter */
|
|
185
|
-
comment?: string
|
|
186
|
-
/** When the report was created */
|
|
187
|
-
createdAt: string
|
|
188
|
-
/** When the report was last updated */
|
|
189
|
-
updatedAt?: string
|
|
190
|
-
/** When the report was assigned to its current queue */
|
|
191
|
-
queuedAt?: string
|
|
192
|
-
/** Array of moderation event IDs representing actions taken on this report (sorted DESC, most recent first) */
|
|
193
|
-
actionEventIds?: number[]
|
|
194
|
-
/** Optional: expanded action events */
|
|
195
|
-
actions?: ToolsOzoneModerationDefs.ModEventView[]
|
|
196
|
-
/** Note sent to reporter when report was actioned */
|
|
197
|
-
actionNote?: string
|
|
198
|
-
subjectStatus?: ToolsOzoneModerationDefs.SubjectStatusView
|
|
199
|
-
/** Number of other pending reports on the same subject */
|
|
200
|
-
relatedReportCount?: number
|
|
201
|
-
assignment?: ReportAssignment
|
|
202
|
-
queue?: ToolsOzoneQueueDefs.QueueView
|
|
203
|
-
/** Whether this report is muted. A report is muted if the reporter was muted or the subject was muted at the time the report was created. */
|
|
204
|
-
isMuted?: boolean
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
const hashReportView = 'reportView'
|
|
208
|
-
|
|
209
|
-
export function isReportView<V>(v: V) {
|
|
210
|
-
return is$typed(v, id, hashReportView)
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export function validateReportView<V>(v: V) {
|
|
214
|
-
return validate<ReportView & V>(v, id, hashReportView)
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/** Activity recording a report being routed to a queue. */
|
|
218
|
-
export interface QueueActivity {
|
|
219
|
-
$type?: 'tools.ozone.report.defs#queueActivity'
|
|
220
|
-
/** The report's status before this activity. Populated automatically from the report row; not required in input. */
|
|
221
|
-
previousStatus?:
|
|
222
|
-
| 'open'
|
|
223
|
-
| 'closed'
|
|
224
|
-
| 'escalated'
|
|
225
|
-
| 'queued'
|
|
226
|
-
| 'assigned'
|
|
227
|
-
| (string & {})
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
const hashQueueActivity = 'queueActivity'
|
|
231
|
-
|
|
232
|
-
export function isQueueActivity<V>(v: V) {
|
|
233
|
-
return is$typed(v, id, hashQueueActivity)
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export function validateQueueActivity<V>(v: V) {
|
|
237
|
-
return validate<QueueActivity & V>(v, id, hashQueueActivity)
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/** Activity recording a moderator being assigned to a report. */
|
|
241
|
-
export interface AssignmentActivity {
|
|
242
|
-
$type?: 'tools.ozone.report.defs#assignmentActivity'
|
|
243
|
-
/** The report's status before this activity. Populated automatically from the report row; not required in input. */
|
|
244
|
-
previousStatus?:
|
|
245
|
-
| 'open'
|
|
246
|
-
| 'closed'
|
|
247
|
-
| 'escalated'
|
|
248
|
-
| 'queued'
|
|
249
|
-
| 'assigned'
|
|
250
|
-
| (string & {})
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
const hashAssignmentActivity = 'assignmentActivity'
|
|
254
|
-
|
|
255
|
-
export function isAssignmentActivity<V>(v: V) {
|
|
256
|
-
return is$typed(v, id, hashAssignmentActivity)
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export function validateAssignmentActivity<V>(v: V) {
|
|
260
|
-
return validate<AssignmentActivity & V>(v, id, hashAssignmentActivity)
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/** Activity recording a report being escalated. */
|
|
264
|
-
export interface EscalationActivity {
|
|
265
|
-
$type?: 'tools.ozone.report.defs#escalationActivity'
|
|
266
|
-
/** The report's status before this activity. Populated automatically from the report row; not required in input. */
|
|
267
|
-
previousStatus?:
|
|
268
|
-
| 'open'
|
|
269
|
-
| 'closed'
|
|
270
|
-
| 'escalated'
|
|
271
|
-
| 'queued'
|
|
272
|
-
| 'assigned'
|
|
273
|
-
| (string & {})
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
const hashEscalationActivity = 'escalationActivity'
|
|
277
|
-
|
|
278
|
-
export function isEscalationActivity<V>(v: V) {
|
|
279
|
-
return is$typed(v, id, hashEscalationActivity)
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export function validateEscalationActivity<V>(v: V) {
|
|
283
|
-
return validate<EscalationActivity & V>(v, id, hashEscalationActivity)
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/** Activity recording a report being closed. */
|
|
287
|
-
export interface CloseActivity {
|
|
288
|
-
$type?: 'tools.ozone.report.defs#closeActivity'
|
|
289
|
-
/** The report's status before this activity. Populated automatically from the report row; not required in input. */
|
|
290
|
-
previousStatus?:
|
|
291
|
-
| 'open'
|
|
292
|
-
| 'closed'
|
|
293
|
-
| 'escalated'
|
|
294
|
-
| 'queued'
|
|
295
|
-
| 'assigned'
|
|
296
|
-
| (string & {})
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
const hashCloseActivity = 'closeActivity'
|
|
300
|
-
|
|
301
|
-
export function isCloseActivity<V>(v: V) {
|
|
302
|
-
return is$typed(v, id, hashCloseActivity)
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export function validateCloseActivity<V>(v: V) {
|
|
306
|
-
return validate<CloseActivity & V>(v, id, hashCloseActivity)
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */
|
|
310
|
-
export interface ReopenActivity {
|
|
311
|
-
$type?: 'tools.ozone.report.defs#reopenActivity'
|
|
312
|
-
/** The report's status before this activity. Populated automatically from the report row; not required in input. */
|
|
313
|
-
previousStatus?:
|
|
314
|
-
| 'open'
|
|
315
|
-
| 'closed'
|
|
316
|
-
| 'escalated'
|
|
317
|
-
| 'queued'
|
|
318
|
-
| 'assigned'
|
|
319
|
-
| (string & {})
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
const hashReopenActivity = 'reopenActivity'
|
|
323
|
-
|
|
324
|
-
export function isReopenActivity<V>(v: V) {
|
|
325
|
-
return is$typed(v, id, hashReopenActivity)
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export function validateReopenActivity<V>(v: V) {
|
|
329
|
-
return validate<ReopenActivity & V>(v, id, hashReopenActivity)
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */
|
|
333
|
-
export interface NoteActivity {
|
|
334
|
-
$type?: 'tools.ozone.report.defs#noteActivity'
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
const hashNoteActivity = 'noteActivity'
|
|
338
|
-
|
|
339
|
-
export function isNoteActivity<V>(v: V) {
|
|
340
|
-
return is$typed(v, id, hashNoteActivity)
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export function validateNoteActivity<V>(v: V) {
|
|
344
|
-
return validate<NoteActivity & V>(v, id, hashNoteActivity)
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
/** A single activity entry on a report. */
|
|
348
|
-
export interface ReportActivityView {
|
|
349
|
-
$type?: 'tools.ozone.report.defs#reportActivityView'
|
|
350
|
-
/** Activity ID */
|
|
351
|
-
id: number
|
|
352
|
-
/** ID of the report this activity belongs to */
|
|
353
|
-
reportId: number
|
|
354
|
-
activity:
|
|
355
|
-
| $Typed<QueueActivity>
|
|
356
|
-
| $Typed<AssignmentActivity>
|
|
357
|
-
| $Typed<EscalationActivity>
|
|
358
|
-
| $Typed<CloseActivity>
|
|
359
|
-
| $Typed<ReopenActivity>
|
|
360
|
-
| $Typed<NoteActivity>
|
|
361
|
-
| { $type: string }
|
|
362
|
-
/** Optional moderator-only note. Not visible to reporters. */
|
|
363
|
-
internalNote?: string
|
|
364
|
-
/** Optional public note, potentially visible to the reporter. */
|
|
365
|
-
publicNote?: string
|
|
366
|
-
/** Extensible JSON payload for loose activity-specific metadata (e.g. assignmentId). */
|
|
367
|
-
meta?: { [_ in string]: unknown }
|
|
368
|
-
/** True if this activity was created by an automated process (e.g. queue router) rather than a direct human action. */
|
|
369
|
-
isAutomated: boolean
|
|
370
|
-
/** DID of the actor who created this activity, or the service DID for automated activities. */
|
|
371
|
-
createdBy: string
|
|
372
|
-
moderator?: ToolsOzoneTeamDefs.Member
|
|
373
|
-
/** When this activity was created */
|
|
374
|
-
createdAt: string
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
const hashReportActivityView = 'reportActivityView'
|
|
378
|
-
|
|
379
|
-
export function isReportActivityView<V>(v: V) {
|
|
380
|
-
return is$typed(v, id, hashReportActivityView)
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export function validateReportActivityView<V>(v: V) {
|
|
384
|
-
return validate<ReportActivityView & V>(v, id, hashReportActivityView)
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */
|
|
388
|
-
export interface LiveStats {
|
|
389
|
-
$type?: 'tools.ozone.report.defs#liveStats'
|
|
390
|
-
/** Number of reports currently not closed. */
|
|
391
|
-
pendingCount?: number
|
|
392
|
-
/** Number of reports closed today. */
|
|
393
|
-
actionedCount?: number
|
|
394
|
-
/** Number of reports escalated today. */
|
|
395
|
-
escalatedCount?: number
|
|
396
|
-
/** Reports received today. */
|
|
397
|
-
inboundCount?: number
|
|
398
|
-
/** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. */
|
|
399
|
-
actionRate?: number
|
|
400
|
-
/** Average time in seconds from report creation (or moderator assignment) to close. */
|
|
401
|
-
avgHandlingTimeSec?: number
|
|
402
|
-
/** When these statistics were last computed. */
|
|
403
|
-
lastUpdated?: string
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
const hashLiveStats = 'liveStats'
|
|
407
|
-
|
|
408
|
-
export function isLiveStats<V>(v: V) {
|
|
409
|
-
return is$typed(v, id, hashLiveStats)
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export function validateLiveStats<V>(v: V) {
|
|
413
|
-
return validate<LiveStats & V>(v, id, hashLiveStats)
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/** A single daily snapshot of report statistics for a calendar date. */
|
|
417
|
-
export interface HistoricalStats {
|
|
418
|
-
$type?: 'tools.ozone.report.defs#historicalStats'
|
|
419
|
-
/** The calendar date this snapshot covers (YYYY-MM-DD). */
|
|
420
|
-
date: string
|
|
421
|
-
/** When this snapshot was last computed. */
|
|
422
|
-
computedAt?: string
|
|
423
|
-
/** Number of reports not closed at time of computation. */
|
|
424
|
-
pendingCount?: number
|
|
425
|
-
/** Number of reports closed during this day. */
|
|
426
|
-
actionedCount?: number
|
|
427
|
-
/** Number of reports escalated during this day. */
|
|
428
|
-
escalatedCount?: number
|
|
429
|
-
/** Reports received during this day. */
|
|
430
|
-
inboundCount?: number
|
|
431
|
-
/** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. */
|
|
432
|
-
actionRate?: number
|
|
433
|
-
/** Average time in seconds from report creation (or moderator assignment) to close. */
|
|
434
|
-
avgHandlingTimeSec?: number
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
const hashHistoricalStats = 'historicalStats'
|
|
438
|
-
|
|
439
|
-
export function isHistoricalStats<V>(v: V) {
|
|
440
|
-
return is$typed(v, id, hashHistoricalStats)
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
export function validateHistoricalStats<V>(v: V) {
|
|
444
|
-
return validate<HistoricalStats & V>(v, id, hashHistoricalStats)
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
export interface AssignmentView {
|
|
448
|
-
$type?: 'tools.ozone.report.defs#assignmentView'
|
|
449
|
-
id: number
|
|
450
|
-
did: string
|
|
451
|
-
moderator?: ToolsOzoneTeamDefs.Member
|
|
452
|
-
queue?: ToolsOzoneQueueDefs.QueueView
|
|
453
|
-
reportId: number
|
|
454
|
-
startAt: string
|
|
455
|
-
endAt?: string
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
const hashAssignmentView = 'assignmentView'
|
|
459
|
-
|
|
460
|
-
export function isAssignmentView<V>(v: V) {
|
|
461
|
-
return is$typed(v, id, hashAssignmentView)
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
export function validateAssignmentView<V>(v: V) {
|
|
465
|
-
return validate<AssignmentView & V>(v, id, hashAssignmentView)
|
|
466
|
-
}
|
|
@@ -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 ToolsOzoneReportDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.report.getAssignments'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** When true, only returns active assignments. */
|
|
21
|
-
onlyActive?: boolean
|
|
22
|
-
/** If specified, returns assignments for these reports only. */
|
|
23
|
-
reportIds?: 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: ToolsOzoneReportDefs.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,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 ToolsOzoneReportDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.report.getHistoricalStats'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** Filter stats by queue. Use -1 for unqueued reports. */
|
|
21
|
-
queueId?: number
|
|
22
|
-
/** Filter stats by moderator DID. */
|
|
23
|
-
moderatorDid?: string
|
|
24
|
-
/** Filter stats by report types. */
|
|
25
|
-
reportTypes?: string[]
|
|
26
|
-
/** Earliest date to include (inclusive). */
|
|
27
|
-
startDate?: string
|
|
28
|
-
/** Latest date to include (inclusive). */
|
|
29
|
-
endDate?: string
|
|
30
|
-
/** Maximum number of entries to return. */
|
|
31
|
-
limit?: number
|
|
32
|
-
/** Pagination cursor. */
|
|
33
|
-
cursor?: string
|
|
34
|
-
}
|
|
35
|
-
export type InputSchema = undefined
|
|
36
|
-
|
|
37
|
-
export interface OutputSchema {
|
|
38
|
-
stats: ToolsOzoneReportDefs.HistoricalStats[]
|
|
39
|
-
cursor?: string
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface CallOptions {
|
|
43
|
-
signal?: AbortSignal
|
|
44
|
-
headers?: HeadersMap
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface Response {
|
|
48
|
-
success: boolean
|
|
49
|
-
headers: HeadersMap
|
|
50
|
-
data: OutputSchema
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function toKnownErr(e: any) {
|
|
54
|
-
return e
|
|
55
|
-
}
|
|
@@ -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 ToolsOzoneReportDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.report.getLatestReport'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {}
|
|
20
|
-
export type InputSchema = undefined
|
|
21
|
-
|
|
22
|
-
export interface OutputSchema {
|
|
23
|
-
report: ToolsOzoneReportDefs.ReportView
|
|
24
|
-
}
|
|
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 NotFoundError 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 === 'NotFound') return new NotFoundError(e)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return e
|
|
49
|
-
}
|
|
@@ -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 ToolsOzoneReportDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'tools.ozone.report.getLiveStats'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** Filter stats by queue. Use -1 for unqueued reports. */
|
|
21
|
-
queueId?: number
|
|
22
|
-
/** Filter stats by moderator DID. */
|
|
23
|
-
moderatorDid?: string
|
|
24
|
-
/** Filter stats by report types. */
|
|
25
|
-
reportTypes?: string[]
|
|
26
|
-
}
|
|
27
|
-
export type InputSchema = undefined
|
|
28
|
-
|
|
29
|
-
export interface OutputSchema {
|
|
30
|
-
stats: ToolsOzoneReportDefs.LiveStats
|
|
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
|
-
}
|