@atproto/api 0.20.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 +8 -0
- 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 +98 -2
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +50 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts +26 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.js +8 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.js.map +1 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
- package/package.json +6 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/client/index.ts +0 -6408
- package/src/client/lexicons.ts +0 -25781
- package/src/client/types/app/bsky/actor/defs.ts +0 -716
- package/src/client/types/app/bsky/actor/getPreferences.ts +0 -39
- package/src/client/types/app/bsky/actor/getProfile.ts +0 -39
- package/src/client/types/app/bsky/actor/getProfiles.ts +0 -41
- package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -47
- package/src/client/types/app/bsky/actor/profile.ts +0 -52
- package/src/client/types/app/bsky/actor/putPreferences.ts +0 -39
- package/src/client/types/app/bsky/actor/searchActors.ts +0 -47
- package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +0 -45
- package/src/client/types/app/bsky/actor/status.ts +0 -46
- package/src/client/types/app/bsky/ageassurance/begin.ts +0 -80
- package/src/client/types/app/bsky/ageassurance/defs.ts +0 -303
- package/src/client/types/app/bsky/ageassurance/getConfig.ts +0 -36
- package/src/client/types/app/bsky/ageassurance/getState.ts +0 -43
- package/src/client/types/app/bsky/bookmark/createBookmark.ts +0 -50
- package/src/client/types/app/bsky/bookmark/defs.ts +0 -54
- package/src/client/types/app/bsky/bookmark/deleteBookmark.ts +0 -49
- package/src/client/types/app/bsky/bookmark/getBookmarks.ts +0 -43
- package/src/client/types/app/bsky/contact/defs.ts +0 -71
- package/src/client/types/app/bsky/contact/dismissMatch.ts +0 -59
- package/src/client/types/app/bsky/contact/getMatches.ts +0 -74
- package/src/client/types/app/bsky/contact/getSyncStatus.ts +0 -56
- package/src/client/types/app/bsky/contact/importContacts.ts +0 -86
- package/src/client/types/app/bsky/contact/removeData.ts +0 -56
- package/src/client/types/app/bsky/contact/sendNotification.ts +0 -44
- package/src/client/types/app/bsky/contact/startPhoneVerification.ts +0 -73
- package/src/client/types/app/bsky/contact/verifyPhone.ts +0 -85
- package/src/client/types/app/bsky/draft/createDraft.ts +0 -55
- package/src/client/types/app/bsky/draft/defs.ts +0 -212
- package/src/client/types/app/bsky/draft/deleteDraft.ts +0 -38
- package/src/client/types/app/bsky/draft/getDrafts.ts +0 -43
- package/src/client/types/app/bsky/draft/updateDraft.ts +0 -39
- package/src/client/types/app/bsky/embed/defs.ts +0 -32
- package/src/client/types/app/bsky/embed/external.ts +0 -85
- package/src/client/types/app/bsky/embed/images.ts +0 -86
- package/src/client/types/app/bsky/embed/record.ts +0 -146
- package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -59
- package/src/client/types/app/bsky/embed/video.ts +0 -75
- package/src/client/types/app/bsky/feed/defs.ts +0 -428
- package/src/client/types/app/bsky/feed/describeFeedGenerator.ts +0 -71
- package/src/client/types/app/bsky/feed/generator.ts +0 -51
- package/src/client/types/app/bsky/feed/getActorFeeds.ts +0 -44
- package/src/client/types/app/bsky/feed/getActorLikes.ts +0 -61
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +0 -70
- package/src/client/types/app/bsky/feed/getFeed.ts +0 -54
- package/src/client/types/app/bsky/feed/getFeedGenerator.ts +0 -46
- package/src/client/types/app/bsky/feed/getFeedGenerators.ts +0 -41
- package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +0 -57
- package/src/client/types/app/bsky/feed/getLikes.ts +0 -66
- package/src/client/types/app/bsky/feed/getListFeed.ts +0 -55
- package/src/client/types/app/bsky/feed/getPostThread.ts +0 -61
- package/src/client/types/app/bsky/feed/getPosts.ts +0 -42
- package/src/client/types/app/bsky/feed/getQuotes.ts +0 -49
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +0 -49
- package/src/client/types/app/bsky/feed/getSuggestedFeeds.ts +0 -43
- package/src/client/types/app/bsky/feed/getTimeline.ts +0 -45
- package/src/client/types/app/bsky/feed/like.ts +0 -40
- package/src/client/types/app/bsky/feed/post.ts +0 -117
- package/src/client/types/app/bsky/feed/postgate.ts +0 -58
- package/src/client/types/app/bsky/feed/repost.ts +0 -40
- package/src/client/types/app/bsky/feed/searchPosts.ts +0 -76
- package/src/client/types/app/bsky/feed/sendInteractions.ts +0 -43
- package/src/client/types/app/bsky/feed/threadgate.ts +0 -110
- package/src/client/types/app/bsky/graph/block.ts +0 -39
- package/src/client/types/app/bsky/graph/defs.ts +0 -206
- package/src/client/types/app/bsky/graph/follow.ts +0 -40
- package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +0 -44
- package/src/client/types/app/bsky/graph/getBlocks.ts +0 -43
- package/src/client/types/app/bsky/graph/getFollowers.ts +0 -45
- package/src/client/types/app/bsky/graph/getFollows.ts +0 -45
- package/src/client/types/app/bsky/graph/getKnownFollowers.ts +0 -45
- package/src/client/types/app/bsky/graph/getList.ts +0 -46
- package/src/client/types/app/bsky/graph/getListBlocks.ts +0 -43
- package/src/client/types/app/bsky/graph/getListMutes.ts +0 -43
- package/src/client/types/app/bsky/graph/getLists.ts +0 -47
- package/src/client/types/app/bsky/graph/getListsWithMembership.ts +0 -64
- package/src/client/types/app/bsky/graph/getMutes.ts +0 -43
- package/src/client/types/app/bsky/graph/getRelationships.ts +0 -59
- package/src/client/types/app/bsky/graph/getStarterPack.ts +0 -42
- package/src/client/types/app/bsky/graph/getStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +0 -66
- package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -47
- package/src/client/types/app/bsky/graph/list.ts +0 -47
- package/src/client/types/app/bsky/graph/listblock.ts +0 -39
- package/src/client/types/app/bsky/graph/listitem.ts +0 -41
- package/src/client/types/app/bsky/graph/muteActor.ts +0 -38
- package/src/client/types/app/bsky/graph/muteActorList.ts +0 -38
- package/src/client/types/app/bsky/graph/muteThread.ts +0 -38
- package/src/client/types/app/bsky/graph/searchStarterPacks.ts +0 -45
- package/src/client/types/app/bsky/graph/starterpack.ts +0 -60
- package/src/client/types/app/bsky/graph/unmuteActor.ts +0 -38
- package/src/client/types/app/bsky/graph/unmuteActorList.ts +0 -38
- package/src/client/types/app/bsky/graph/unmuteThread.ts +0 -38
- package/src/client/types/app/bsky/graph/verification.ts +0 -44
- package/src/client/types/app/bsky/labeler/defs.ts +0 -100
- package/src/client/types/app/bsky/labeler/getServices.ts +0 -46
- package/src/client/types/app/bsky/labeler/service.ts +0 -48
- package/src/client/types/app/bsky/notification/declaration.ts +0 -38
- package/src/client/types/app/bsky/notification/defs.ts +0 -142
- package/src/client/types/app/bsky/notification/getPreferences.ts +0 -39
- package/src/client/types/app/bsky/notification/getUnreadCount.ts +0 -41
- package/src/client/types/app/bsky/notification/listActivitySubscriptions.ts +0 -43
- package/src/client/types/app/bsky/notification/listNotifications.ts +0 -88
- package/src/client/types/app/bsky/notification/putActivitySubscription.ts +0 -46
- package/src/client/types/app/bsky/notification/putPreferences.ts +0 -38
- package/src/client/types/app/bsky/notification/putPreferencesV2.ts +0 -56
- package/src/client/types/app/bsky/notification/registerPush.ts +0 -43
- package/src/client/types/app/bsky/notification/unregisterPush.ts +0 -41
- package/src/client/types/app/bsky/notification/updateSeen.ts +0 -38
- package/src/client/types/app/bsky/richtext/facet.ts +0 -97
- package/src/client/types/app/bsky/unspecced/defs.ts +0 -250
- package/src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts +0 -36
- package/src/client/types/app/bsky/unspecced/getConfig.ts +0 -55
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts +0 -48
- package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -61
- package/src/client/types/app/bsky/unspecced/getPostThreadV2.ts +0 -78
- package/src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +0 -47
- package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getSuggestedUsers.ts +0 -47
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +0 -43
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +0 -45
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +0 -46
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +0 -45
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +0 -46
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +0 -48
- package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +0 -53
- package/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts +0 -55
- package/src/client/types/app/bsky/unspecced/getTrendingTopics.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getTrends.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getTrendsSkeleton.ts +0 -43
- package/src/client/types/app/bsky/unspecced/initAgeAssurance.ts +0 -71
- package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +0 -62
- package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +0 -78
- package/src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +0 -60
- package/src/client/types/app/bsky/video/defs.ts +0 -38
- package/src/client/types/app/bsky/video/getJobStatus.ts +0 -41
- package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -42
- package/src/client/types/app/bsky/video/uploadVideo.ts +0 -41
- package/src/client/types/chat/bsky/actor/declaration.ts +0 -39
- package/src/client/types/chat/bsky/actor/defs.ts +0 -96
- package/src/client/types/chat/bsky/actor/deleteAccount.ts +0 -37
- package/src/client/types/chat/bsky/actor/exportAccountData.ts +0 -34
- package/src/client/types/chat/bsky/convo/acceptConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/addReaction.ts +0 -87
- package/src/client/types/chat/bsky/convo/defs.ts +0 -1058
- package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +0 -61
- package/src/client/types/chat/bsky/convo/getConvo.ts +0 -51
- package/src/client/types/chat/bsky/convo/getConvoAvailability.ts +0 -42
- package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +0 -80
- package/src/client/types/chat/bsky/convo/getConvoMembers.ts +0 -54
- package/src/client/types/chat/bsky/convo/getLog.ts +0 -71
- package/src/client/types/chat/bsky/convo/getMessages.ts +0 -62
- package/src/client/types/chat/bsky/convo/leaveConvo.ts +0 -61
- package/src/client/types/chat/bsky/convo/listConvoRequests.ts +0 -48
- package/src/client/types/chat/bsky/convo/listConvos.ts +0 -50
- package/src/client/types/chat/bsky/convo/lockConvo.ts +0 -68
- package/src/client/types/chat/bsky/convo/muteConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/removeReaction.ts +0 -79
- package/src/client/types/chat/bsky/convo/sendMessage.ts +0 -60
- package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +0 -77
- package/src/client/types/chat/bsky/convo/unlockConvo.ts +0 -61
- package/src/client/types/chat/bsky/convo/unmuteConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/updateAllRead.ts +0 -44
- package/src/client/types/chat/bsky/convo/updateRead.ts +0 -55
- package/src/client/types/chat/bsky/group/addMembers.ts +0 -114
- package/src/client/types/chat/bsky/group/approveJoinRequest.ts +0 -69
- package/src/client/types/chat/bsky/group/createGroup.ts +0 -84
- package/src/client/types/chat/bsky/group/createJoinLink.ts +0 -71
- package/src/client/types/chat/bsky/group/defs.ts +0 -75
- package/src/client/types/chat/bsky/group/disableJoinLink.ts +0 -68
- package/src/client/types/chat/bsky/group/editGroup.ts +0 -69
- package/src/client/types/chat/bsky/group/editJoinLink.ts +0 -70
- package/src/client/types/chat/bsky/group/enableJoinLink.ts +0 -75
- package/src/client/types/chat/bsky/group/getJoinLinkPreview.ts +0 -51
- package/src/client/types/chat/bsky/group/listJoinRequests.ts +0 -61
- package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +0 -59
- package/src/client/types/chat/bsky/group/removeMembers.ts +0 -62
- package/src/client/types/chat/bsky/group/requestJoin.ts +0 -90
- package/src/client/types/chat/bsky/moderation/getActorMetadata.ts +0 -60
- package/src/client/types/chat/bsky/moderation/getMessageContext.ts +0 -53
- package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +0 -366
- package/src/client/types/chat/bsky/moderation/updateActorAccess.ts +0 -40
- package/src/client/types/com/atproto/admin/defs.ts +0 -106
- package/src/client/types/com/atproto/admin/deleteAccount.ts +0 -38
- package/src/client/types/com/atproto/admin/disableAccountInvites.ts +0 -40
- package/src/client/types/com/atproto/admin/disableInviteCodes.ts +0 -39
- package/src/client/types/com/atproto/admin/enableAccountInvites.ts +0 -40
- package/src/client/types/com/atproto/admin/getAccountInfo.ts +0 -38
- package/src/client/types/com/atproto/admin/getAccountInfos.ts +0 -41
- package/src/client/types/com/atproto/admin/getInviteCodes.ts +0 -44
- package/src/client/types/com/atproto/admin/getSubjectStatus.ts +0 -50
- package/src/client/types/com/atproto/admin/searchAccounts.ts +0 -44
- package/src/client/types/com/atproto/admin/sendEmail.ts +0 -48
- package/src/client/types/com/atproto/admin/updateAccountEmail.ts +0 -40
- package/src/client/types/com/atproto/admin/updateAccountHandle.ts +0 -39
- package/src/client/types/com/atproto/admin/updateAccountPassword.ts +0 -39
- package/src/client/types/com/atproto/admin/updateAccountSigningKey.ts +0 -40
- package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +0 -56
- package/src/client/types/com/atproto/identity/defs.ts +0 -34
- package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +0 -42
- package/src/client/types/com/atproto/identity/refreshIdentity.ts +0 -66
- package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +0 -34
- package/src/client/types/com/atproto/identity/resolveDid.ts +0 -59
- package/src/client/types/com/atproto/identity/resolveHandle.ts +0 -51
- package/src/client/types/com/atproto/identity/resolveIdentity.ts +0 -63
- package/src/client/types/com/atproto/identity/signPlcOperation.ts +0 -49
- package/src/client/types/com/atproto/identity/submitPlcOperation.ts +0 -38
- package/src/client/types/com/atproto/identity/updateHandle.ts +0 -39
- package/src/client/types/com/atproto/label/defs.ts +0 -143
- package/src/client/types/com/atproto/label/queryLabels.ts +0 -47
- package/src/client/types/com/atproto/label/subscribeLabels.ts +0 -49
- package/src/client/types/com/atproto/lexicon/resolveLexicon.ts +0 -56
- package/src/client/types/com/atproto/lexicon/schema.ts +0 -38
- package/src/client/types/com/atproto/moderation/createReport.ts +0 -80
- package/src/client/types/com/atproto/moderation/defs.ts +0 -83
- package/src/client/types/com/atproto/repo/applyWrites.ts +0 -167
- package/src/client/types/com/atproto/repo/createRecord.ts +0 -68
- package/src/client/types/com/atproto/repo/defs.ts +0 -31
- package/src/client/types/com/atproto/repo/deleteRecord.ts +0 -63
- package/src/client/types/com/atproto/repo/describeRepo.ts +0 -48
- package/src/client/types/com/atproto/repo/getRecord.ts +0 -59
- package/src/client/types/com/atproto/repo/importRepo.ts +0 -35
- package/src/client/types/com/atproto/repo/listMissingBlobs.ts +0 -58
- package/src/client/types/com/atproto/repo/listRecords.ts +0 -66
- package/src/client/types/com/atproto/repo/putRecord.ts +0 -70
- package/src/client/types/com/atproto/repo/strongRef.ts +0 -31
- package/src/client/types/com/atproto/repo/uploadBlob.ts +0 -40
- package/src/client/types/com/atproto/server/activateAccount.ts +0 -34
- package/src/client/types/com/atproto/server/checkAccountStatus.ts +0 -46
- package/src/client/types/com/atproto/server/confirmEmail.ts +0 -70
- package/src/client/types/com/atproto/server/createAccount.ts +0 -115
- package/src/client/types/com/atproto/server/createAppPassword.ts +0 -72
- package/src/client/types/com/atproto/server/createInviteCode.ts +0 -44
- package/src/client/types/com/atproto/server/createInviteCodes.ts +0 -61
- package/src/client/types/com/atproto/server/createSession.ts +0 -76
- package/src/client/types/com/atproto/server/deactivateAccount.ts +0 -39
- package/src/client/types/com/atproto/server/defs.ts +0 -52
- package/src/client/types/com/atproto/server/deleteAccount.ts +0 -57
- package/src/client/types/com/atproto/server/deleteSession.ts +0 -51
- package/src/client/types/com/atproto/server/describeServer.ts +0 -77
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +0 -53
- package/src/client/types/com/atproto/server/getServiceAuth.ts +0 -55
- package/src/client/types/com/atproto/server/getSession.ts +0 -46
- package/src/client/types/com/atproto/server/listAppPasswords.ts +0 -65
- package/src/client/types/com/atproto/server/refreshSession.ts +0 -73
- package/src/client/types/com/atproto/server/requestAccountDelete.ts +0 -34
- package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +0 -34
- package/src/client/types/com/atproto/server/requestEmailUpdate.ts +0 -39
- package/src/client/types/com/atproto/server/requestPasswordReset.ts +0 -38
- package/src/client/types/com/atproto/server/reserveSigningKey.ts +0 -45
- package/src/client/types/com/atproto/server/resetPassword.ts +0 -56
- package/src/client/types/com/atproto/server/revokeAppPassword.ts +0 -38
- package/src/client/types/com/atproto/server/updateEmail.ts +0 -65
- package/src/client/types/com/atproto/sync/defs.ts +0 -23
- package/src/client/types/com/atproto/sync/getBlob.ts +0 -77
- package/src/client/types/com/atproto/sync/getBlocks.ts +0 -76
- package/src/client/types/com/atproto/sync/getCheckout.ts +0 -37
- package/src/client/types/com/atproto/sync/getHead.ts +0 -51
- package/src/client/types/com/atproto/sync/getHostStatus.ts +0 -57
- package/src/client/types/com/atproto/sync/getLatestCommit.ts +0 -73
- package/src/client/types/com/atproto/sync/getRecord.ts +0 -78
- package/src/client/types/com/atproto/sync/getRepo.ts +0 -70
- package/src/client/types/com/atproto/sync/getRepoStatus.ts +0 -63
- package/src/client/types/com/atproto/sync/listBlobs.ts +0 -77
- package/src/client/types/com/atproto/sync/listHosts.ts +0 -64
- package/src/client/types/com/atproto/sync/listRepos.ts +0 -70
- package/src/client/types/com/atproto/sync/listReposByCollection.ts +0 -59
- package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +0 -39
- package/src/client/types/com/atproto/sync/requestCrawl.ts +0 -49
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -164
- package/src/client/types/com/atproto/temp/addReservedHandle.ts +0 -41
- package/src/client/types/com/atproto/temp/checkHandleAvailability.ts +0 -109
- package/src/client/types/com/atproto/temp/checkSignupQueue.ts +0 -40
- package/src/client/types/com/atproto/temp/dereferenceScope.ts +0 -53
- package/src/client/types/com/atproto/temp/fetchLabels.ts +0 -42
- package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +0 -38
- package/src/client/types/com/atproto/temp/revokeAccountCredentials.ts +0 -38
- package/src/client/types/com/germnetwork/declaration.ts +0 -63
- package/src/client/types/tools/ozone/communication/createTemplate.ts +0 -62
- package/src/client/types/tools/ozone/communication/defs.ts +0 -43
- package/src/client/types/tools/ozone/communication/deleteTemplate.ts +0 -38
- package/src/client/types/tools/ozone/communication/listTemplates.ts +0 -39
- package/src/client/types/tools/ozone/communication/updateTemplate.ts +0 -65
- package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +0 -148
- package/src/client/types/tools/ozone/moderation/cancelScheduledActions.ts +0 -79
- package/src/client/types/tools/ozone/moderation/defs.ts +0 -1176
- package/src/client/types/tools/ozone/moderation/emitEvent.ts +0 -121
- package/src/client/types/tools/ozone/moderation/getAccountTimeline.ts +0 -115
- package/src/client/types/tools/ozone/moderation/getEvent.ts +0 -38
- package/src/client/types/tools/ozone/moderation/getRecord.ts +0 -49
- package/src/client/types/tools/ozone/moderation/getRecords.ts +0 -45
- package/src/client/types/tools/ozone/moderation/getRepo.ts +0 -48
- package/src/client/types/tools/ozone/moderation/getReporterStats.ts +0 -41
- package/src/client/types/tools/ozone/moderation/getRepos.ts +0 -45
- package/src/client/types/tools/ozone/moderation/getSubjects.ts +0 -41
- package/src/client/types/tools/ozone/moderation/listScheduledActions.ts +0 -57
- package/src/client/types/tools/ozone/moderation/queryEvents.ts +0 -87
- package/src/client/types/tools/ozone/moderation/queryStatuses.ts +0 -122
- package/src/client/types/tools/ozone/moderation/scheduleAction.ts +0 -133
- package/src/client/types/tools/ozone/moderation/searchRepos.ts +0 -46
- package/src/client/types/tools/ozone/queue/assignModerator.ts +0 -55
- package/src/client/types/tools/ozone/queue/createQueue.ts +0 -63
- package/src/client/types/tools/ozone/queue/defs.ts +0 -99
- package/src/client/types/tools/ozone/queue/deleteQueue.ts +0 -48
- package/src/client/types/tools/ozone/queue/getAssignments.ts +0 -49
- package/src/client/types/tools/ozone/queue/listQueues.ts +0 -51
- package/src/client/types/tools/ozone/queue/routeReports.ts +0 -59
- package/src/client/types/tools/ozone/queue/unassignModerator.ts +0 -51
- package/src/client/types/tools/ozone/queue/updateQueue.ts +0 -51
- package/src/client/types/tools/ozone/report/assignModerator.ts +0 -66
- package/src/client/types/tools/ozone/report/createActivity.ts +0 -85
- package/src/client/types/tools/ozone/report/defs.ts +0 -466
- package/src/client/types/tools/ozone/report/getAssignments.ts +0 -49
- package/src/client/types/tools/ozone/report/getHistoricalStats.ts +0 -55
- package/src/client/types/tools/ozone/report/getLatestReport.ts +0 -49
- package/src/client/types/tools/ozone/report/getLiveStats.ts +0 -46
- package/src/client/types/tools/ozone/report/getReport.ts +0 -49
- package/src/client/types/tools/ozone/report/listActivities.ts +0 -45
- package/src/client/types/tools/ozone/report/queryReports.ts +0 -73
- package/src/client/types/tools/ozone/report/reassignQueue.ts +0 -88
- package/src/client/types/tools/ozone/report/refreshStats.ts +0 -46
- package/src/client/types/tools/ozone/report/unassignModerator.ts +0 -53
- package/src/client/types/tools/ozone/safelink/addRule.ts +0 -67
- package/src/client/types/tools/ozone/safelink/defs.ts +0 -76
- package/src/client/types/tools/ozone/safelink/queryEvents.ts +0 -55
- package/src/client/types/tools/ozone/safelink/queryRules.ts +0 -61
- package/src/client/types/tools/ozone/safelink/removeRule.ts +0 -58
- package/src/client/types/tools/ozone/safelink/updateRule.ts +0 -60
- package/src/client/types/tools/ozone/server/getConfig.ts +0 -79
- package/src/client/types/tools/ozone/set/addValues.ts +0 -41
- package/src/client/types/tools/ozone/set/defs.ts +0 -50
- package/src/client/types/tools/ozone/set/deleteSet.ts +0 -52
- package/src/client/types/tools/ozone/set/deleteValues.ts +0 -51
- package/src/client/types/tools/ozone/set/getValues.ts +0 -55
- package/src/client/types/tools/ozone/set/querySets.ts +0 -47
- package/src/client/types/tools/ozone/set/upsertSet.ts +0 -38
- package/src/client/types/tools/ozone/setting/defs.ts +0 -44
- package/src/client/types/tools/ozone/setting/listOptions.ts +0 -48
- package/src/client/types/tools/ozone/setting/removeOptions.ts +0 -42
- package/src/client/types/tools/ozone/setting/upsertOption.ts +0 -53
- package/src/client/types/tools/ozone/signature/defs.ts +0 -31
- package/src/client/types/tools/ozone/signature/findCorrelation.ts +0 -41
- package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +0 -61
- package/src/client/types/tools/ozone/signature/searchAccounts.ts +0 -44
- package/src/client/types/tools/ozone/team/addMember.ts +0 -59
- package/src/client/types/tools/ozone/team/defs.ts +0 -51
- package/src/client/types/tools/ozone/team/deleteMember.ts +0 -55
- package/src/client/types/tools/ozone/team/listMembers.ts +0 -46
- package/src/client/types/tools/ozone/team/updateMember.ts +0 -59
- package/src/client/types/tools/ozone/verification/defs.ts +0 -59
- package/src/client/types/tools/ozone/verification/grantVerifications.ts +0 -87
- package/src/client/types/tools/ozone/verification/listVerifications.ts +0 -57
- package/src/client/types/tools/ozone/verification/revokeVerifications.ts +0 -68
- package/src/client/util.ts +0 -82
|
@@ -1,62 +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 ChatBskyConvoDefs from '../convo/defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'chat.bsky.group.removeMembers'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {}
|
|
20
|
-
|
|
21
|
-
export interface InputSchema {
|
|
22
|
-
convoId: string
|
|
23
|
-
members: string[]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface OutputSchema {
|
|
27
|
-
convo: ChatBskyConvoDefs.ConvoView
|
|
28
|
-
}
|
|
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 InvalidConvoError extends XRPCError {
|
|
44
|
-
constructor(src: XRPCError) {
|
|
45
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export class InsufficientRoleError extends XRPCError {
|
|
50
|
-
constructor(src: XRPCError) {
|
|
51
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function toKnownErr(e: any) {
|
|
56
|
-
if (e instanceof XRPCError) {
|
|
57
|
-
if (e.error === 'InvalidConvo') return new InvalidConvoError(e)
|
|
58
|
-
if (e.error === 'InsufficientRole') return new InsufficientRoleError(e)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return e
|
|
62
|
-
}
|
|
@@ -1,90 +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 ChatBskyConvoDefs from '../convo/defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'chat.bsky.group.requestJoin'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {}
|
|
20
|
-
|
|
21
|
-
export interface InputSchema {
|
|
22
|
-
code: string
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface OutputSchema {
|
|
26
|
-
status: 'joined' | 'pending' | (string & {})
|
|
27
|
-
convo?: ChatBskyConvoDefs.ConvoView
|
|
28
|
-
}
|
|
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 ConvoLockedError extends XRPCError {
|
|
44
|
-
constructor(src: XRPCError) {
|
|
45
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export class FollowRequiredError extends XRPCError {
|
|
50
|
-
constructor(src: XRPCError) {
|
|
51
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export class InvalidCodeError extends XRPCError {
|
|
56
|
-
constructor(src: XRPCError) {
|
|
57
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export class LinkDisabledError extends XRPCError {
|
|
62
|
-
constructor(src: XRPCError) {
|
|
63
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export class MemberLimitReachedError extends XRPCError {
|
|
68
|
-
constructor(src: XRPCError) {
|
|
69
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export class UserKickedError extends XRPCError {
|
|
74
|
-
constructor(src: XRPCError) {
|
|
75
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function toKnownErr(e: any) {
|
|
80
|
-
if (e instanceof XRPCError) {
|
|
81
|
-
if (e.error === 'ConvoLocked') return new ConvoLockedError(e)
|
|
82
|
-
if (e.error === 'FollowRequired') return new FollowRequiredError(e)
|
|
83
|
-
if (e.error === 'InvalidCode') return new InvalidCodeError(e)
|
|
84
|
-
if (e.error === 'LinkDisabled') return new LinkDisabledError(e)
|
|
85
|
-
if (e.error === 'MemberLimitReached') return new MemberLimitReachedError(e)
|
|
86
|
-
if (e.error === 'UserKicked') return new UserKickedError(e)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return e
|
|
90
|
-
}
|
|
@@ -1,60 +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 = 'chat.bsky.moderation.getActorMetadata'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {
|
|
19
|
-
actor: string
|
|
20
|
-
}
|
|
21
|
-
export type InputSchema = undefined
|
|
22
|
-
|
|
23
|
-
export interface OutputSchema {
|
|
24
|
-
day: Metadata
|
|
25
|
-
month: Metadata
|
|
26
|
-
all: Metadata
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface CallOptions {
|
|
30
|
-
signal?: AbortSignal
|
|
31
|
-
headers?: HeadersMap
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface Response {
|
|
35
|
-
success: boolean
|
|
36
|
-
headers: HeadersMap
|
|
37
|
-
data: OutputSchema
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function toKnownErr(e: any) {
|
|
41
|
-
return e
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface Metadata {
|
|
45
|
-
$type?: 'chat.bsky.moderation.getActorMetadata#metadata'
|
|
46
|
-
messagesSent: number
|
|
47
|
-
messagesReceived: number
|
|
48
|
-
convos: number
|
|
49
|
-
convosStarted: number
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const hashMetadata = 'metadata'
|
|
53
|
-
|
|
54
|
-
export function isMetadata<V>(v: V) {
|
|
55
|
-
return is$typed(v, id, hashMetadata)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function validateMetadata<V>(v: V) {
|
|
59
|
-
return validate<Metadata & V>(v, id, hashMetadata)
|
|
60
|
-
}
|
|
@@ -1,53 +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 ChatBskyConvoDefs from '../convo/defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'chat.bsky.moderation.getMessageContext'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {
|
|
20
|
-
/** Conversation that the message is from. NOTE: this field will eventually be required. */
|
|
21
|
-
convoId?: string
|
|
22
|
-
messageId: string
|
|
23
|
-
/** Number of user messages before the target to include. System messages between the earliest returned user message and the target are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages before the target, up to `maxInterleavedSystemMessages` system messages immediately preceding the target are returned instead. */
|
|
24
|
-
before?: number
|
|
25
|
-
/** Number of user messages after the target to include. System messages between the target and the latest returned user message are also included, capped per gap by `maxInterleavedSystemMessages`. If there are no user messages after the target, up to `maxInterleavedSystemMessages` system messages immediately following the target are returned instead. */
|
|
26
|
-
after?: number
|
|
27
|
-
/** Maximum number of system messages to include per gap between consecutive returned messages (and per side when there are no user messages on that side). Within a gap, the system messages closest to the earlier message are kept. */
|
|
28
|
-
maxInterleavedSystemMessages?: number
|
|
29
|
-
}
|
|
30
|
-
export type InputSchema = undefined
|
|
31
|
-
|
|
32
|
-
export interface OutputSchema {
|
|
33
|
-
messages: (
|
|
34
|
-
| $Typed<ChatBskyConvoDefs.MessageView>
|
|
35
|
-
| $Typed<ChatBskyConvoDefs.SystemMessageView>
|
|
36
|
-
| { $type: string }
|
|
37
|
-
)[]
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface CallOptions {
|
|
41
|
-
signal?: AbortSignal
|
|
42
|
-
headers?: HeadersMap
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface Response {
|
|
46
|
-
success: boolean
|
|
47
|
-
headers: HeadersMap
|
|
48
|
-
data: OutputSchema
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function toKnownErr(e: any) {
|
|
52
|
-
return e
|
|
53
|
-
}
|
|
@@ -1,366 +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 = 'chat.bsky.moderation.subscribeModEvents'
|
|
17
|
-
|
|
18
|
-
/** Fired when the first message was sent on a convo. */
|
|
19
|
-
export interface EventConvoFirstMessage {
|
|
20
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventConvoFirstMessage'
|
|
21
|
-
convoId: string
|
|
22
|
-
createdAt: string
|
|
23
|
-
messageId?: string
|
|
24
|
-
/** The list of DIDs message recipients. Does not include the sender, which is in the `user` field */
|
|
25
|
-
recipients: string[]
|
|
26
|
-
rev: string
|
|
27
|
-
/** The DID of the message author. */
|
|
28
|
-
user: string
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const hashEventConvoFirstMessage = 'eventConvoFirstMessage'
|
|
32
|
-
|
|
33
|
-
export function isEventConvoFirstMessage<V>(v: V) {
|
|
34
|
-
return is$typed(v, id, hashEventConvoFirstMessage)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function validateEventConvoFirstMessage<V>(v: V) {
|
|
38
|
-
return validate<EventConvoFirstMessage & V>(v, id, hashEventConvoFirstMessage)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** Fire when a group chat is created. */
|
|
42
|
-
export interface EventGroupChatCreated {
|
|
43
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatCreated'
|
|
44
|
-
/** The DID of the actor performing the action. For this event, same as ownerDid. */
|
|
45
|
-
actorDid: string
|
|
46
|
-
/** When the group was originally created. */
|
|
47
|
-
convoCreatedAt: string
|
|
48
|
-
convoId: string
|
|
49
|
-
createdAt: string
|
|
50
|
-
/** Current member count at the time of the event. */
|
|
51
|
-
groupMemberCount: number
|
|
52
|
-
/** The name set at creation time. */
|
|
53
|
-
groupName: string
|
|
54
|
-
/** DIDs of everyone added at creation time. */
|
|
55
|
-
initialMemberDids: string[]
|
|
56
|
-
/** The DID of the group chat owner. */
|
|
57
|
-
ownerDid: string
|
|
58
|
-
rev: string
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const hashEventGroupChatCreated = 'eventGroupChatCreated'
|
|
62
|
-
|
|
63
|
-
export function isEventGroupChatCreated<V>(v: V) {
|
|
64
|
-
return is$typed(v, id, hashEventGroupChatCreated)
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function validateEventGroupChatCreated<V>(v: V) {
|
|
68
|
-
return validate<EventGroupChatCreated & V>(v, id, hashEventGroupChatCreated)
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/** Fired when a member is added to a group chat. Note that members are added in the 'request' state. */
|
|
72
|
-
export interface EventGroupChatMemberAdded {
|
|
73
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberAdded'
|
|
74
|
-
/** The DID of the actor performing the action. For this event, same as ownerDid. */
|
|
75
|
-
actorDid: string
|
|
76
|
-
/** When the group was originally created. */
|
|
77
|
-
convoCreatedAt: string
|
|
78
|
-
convoId: string
|
|
79
|
-
createdAt: string
|
|
80
|
-
/** Current member count at the time of the event. */
|
|
81
|
-
groupMemberCount: number
|
|
82
|
-
groupName: string
|
|
83
|
-
/** The DID of the group chat owner. */
|
|
84
|
-
ownerDid: string
|
|
85
|
-
/** The number of members who have not yet accepted the convo. */
|
|
86
|
-
requestMembersCount: number
|
|
87
|
-
rev: string
|
|
88
|
-
/** The DID of the member who was added. */
|
|
89
|
-
subjectDid: string
|
|
90
|
-
/** Whether the added member follows the group owner. */
|
|
91
|
-
subjectFollowsOwner: boolean
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const hashEventGroupChatMemberAdded = 'eventGroupChatMemberAdded'
|
|
95
|
-
|
|
96
|
-
export function isEventGroupChatMemberAdded<V>(v: V) {
|
|
97
|
-
return is$typed(v, id, hashEventGroupChatMemberAdded)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function validateEventGroupChatMemberAdded<V>(v: V) {
|
|
101
|
-
return validate<EventGroupChatMemberAdded & V>(
|
|
102
|
-
v,
|
|
103
|
-
id,
|
|
104
|
-
hashEventGroupChatMemberAdded,
|
|
105
|
-
)
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/** Fired when a member joins a group chat via an join link that does not require approval. */
|
|
109
|
-
export interface EventGroupChatMemberJoined {
|
|
110
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberJoined'
|
|
111
|
-
/** The DID of the person joining. */
|
|
112
|
-
actorDid: string
|
|
113
|
-
/** When the group was originally created. */
|
|
114
|
-
convoCreatedAt: string
|
|
115
|
-
convoId: string
|
|
116
|
-
createdAt: string
|
|
117
|
-
/** Current member count at the time of the event. */
|
|
118
|
-
groupMemberCount: number
|
|
119
|
-
groupName: string
|
|
120
|
-
/** The code of the join link used to join. */
|
|
121
|
-
joinLinkCode: string
|
|
122
|
-
/** The DID of the group chat owner. */
|
|
123
|
-
ownerDid: string
|
|
124
|
-
rev: string
|
|
125
|
-
/** Whether the joining member follows the group owner. */
|
|
126
|
-
subjectFollowsOwner: boolean
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
const hashEventGroupChatMemberJoined = 'eventGroupChatMemberJoined'
|
|
130
|
-
|
|
131
|
-
export function isEventGroupChatMemberJoined<V>(v: V) {
|
|
132
|
-
return is$typed(v, id, hashEventGroupChatMemberJoined)
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export function validateEventGroupChatMemberJoined<V>(v: V) {
|
|
136
|
-
return validate<EventGroupChatMemberJoined & V>(
|
|
137
|
-
v,
|
|
138
|
-
id,
|
|
139
|
-
hashEventGroupChatMemberJoined,
|
|
140
|
-
)
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/** Fired when a user requests to join a group chat via an join link that requires approval. */
|
|
144
|
-
export interface EventGroupChatJoinRequest {
|
|
145
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequest'
|
|
146
|
-
/** The DID of the person requesting to join. */
|
|
147
|
-
actorDid: string
|
|
148
|
-
/** When the group was originally created. */
|
|
149
|
-
convoCreatedAt: string
|
|
150
|
-
convoId: string
|
|
151
|
-
createdAt: string
|
|
152
|
-
/** Current member count at the time of the event. */
|
|
153
|
-
groupMemberCount: number
|
|
154
|
-
groupName: string
|
|
155
|
-
/** The code of the join link used to request joining. */
|
|
156
|
-
joinLinkCode: string
|
|
157
|
-
/** The DID of the group chat owner. */
|
|
158
|
-
ownerDid: string
|
|
159
|
-
rev: string
|
|
160
|
-
/** Whether the requesting member follows the group owner. */
|
|
161
|
-
subjectFollowsOwner: boolean
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const hashEventGroupChatJoinRequest = 'eventGroupChatJoinRequest'
|
|
165
|
-
|
|
166
|
-
export function isEventGroupChatJoinRequest<V>(v: V) {
|
|
167
|
-
return is$typed(v, id, hashEventGroupChatJoinRequest)
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export function validateEventGroupChatJoinRequest<V>(v: V) {
|
|
171
|
-
return validate<EventGroupChatJoinRequest & V>(
|
|
172
|
-
v,
|
|
173
|
-
id,
|
|
174
|
-
hashEventGroupChatJoinRequest,
|
|
175
|
-
)
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/** Fired when a join request is approved by the group owner. */
|
|
179
|
-
export interface EventGroupChatJoinRequestApproved {
|
|
180
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestApproved'
|
|
181
|
-
/** The DID of the owner approving the request. */
|
|
182
|
-
actorDid: string
|
|
183
|
-
/** When the group was originally created. */
|
|
184
|
-
convoCreatedAt: string
|
|
185
|
-
convoId: string
|
|
186
|
-
createdAt: string
|
|
187
|
-
/** Current member count at the time of the event. */
|
|
188
|
-
groupMemberCount: number
|
|
189
|
-
groupName: string
|
|
190
|
-
/** The DID of the group chat owner. */
|
|
191
|
-
ownerDid: string
|
|
192
|
-
rev: string
|
|
193
|
-
/** The DID of the member whose request was approved. */
|
|
194
|
-
subjectDid: string
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
const hashEventGroupChatJoinRequestApproved =
|
|
198
|
-
'eventGroupChatJoinRequestApproved'
|
|
199
|
-
|
|
200
|
-
export function isEventGroupChatJoinRequestApproved<V>(v: V) {
|
|
201
|
-
return is$typed(v, id, hashEventGroupChatJoinRequestApproved)
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export function validateEventGroupChatJoinRequestApproved<V>(v: V) {
|
|
205
|
-
return validate<EventGroupChatJoinRequestApproved & V>(
|
|
206
|
-
v,
|
|
207
|
-
id,
|
|
208
|
-
hashEventGroupChatJoinRequestApproved,
|
|
209
|
-
)
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/** Fired when a join request is rejected by the group owner. */
|
|
213
|
-
export interface EventGroupChatJoinRequestRejected {
|
|
214
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatJoinRequestRejected'
|
|
215
|
-
/** The DID of the owner rejecting the request. */
|
|
216
|
-
actorDid: string
|
|
217
|
-
/** When the group was originally created. */
|
|
218
|
-
convoCreatedAt: string
|
|
219
|
-
convoId: string
|
|
220
|
-
createdAt: string
|
|
221
|
-
/** Current member count at the time of the event. */
|
|
222
|
-
groupMemberCount: number
|
|
223
|
-
groupName: string
|
|
224
|
-
/** The DID of the group chat owner. */
|
|
225
|
-
ownerDid: string
|
|
226
|
-
rev: string
|
|
227
|
-
/** The DID of the member whose request was rejected. */
|
|
228
|
-
subjectDid: string
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
const hashEventGroupChatJoinRequestRejected =
|
|
232
|
-
'eventGroupChatJoinRequestRejected'
|
|
233
|
-
|
|
234
|
-
export function isEventGroupChatJoinRequestRejected<V>(v: V) {
|
|
235
|
-
return is$typed(v, id, hashEventGroupChatJoinRequestRejected)
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export function validateEventGroupChatJoinRequestRejected<V>(v: V) {
|
|
239
|
-
return validate<EventGroupChatJoinRequestRejected & V>(
|
|
240
|
-
v,
|
|
241
|
-
id,
|
|
242
|
-
hashEventGroupChatJoinRequestRejected,
|
|
243
|
-
)
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/** Fired when a user accepts a chat convo, either explicitly or by sending a message. */
|
|
247
|
-
export interface EventChatAccepted {
|
|
248
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventChatAccepted'
|
|
249
|
-
/** The DID of the person accepting the convo. */
|
|
250
|
-
actorDid: string
|
|
251
|
-
/** When the convo was originally created. */
|
|
252
|
-
convoCreatedAt: string
|
|
253
|
-
convoId: string
|
|
254
|
-
createdAt: string
|
|
255
|
-
/** Current member count at the time of the event. Only present for group convos. */
|
|
256
|
-
groupMemberCount?: number
|
|
257
|
-
/** The name of the group chat. Only present for group convos. */
|
|
258
|
-
groupName?: string
|
|
259
|
-
/** How the convo was accepted. */
|
|
260
|
-
method: 'explicit' | 'message' | (string & {})
|
|
261
|
-
/** The DID of the group chat owner. Only present for group convos. */
|
|
262
|
-
ownerDid?: string
|
|
263
|
-
rev: string
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
const hashEventChatAccepted = 'eventChatAccepted'
|
|
267
|
-
|
|
268
|
-
export function isEventChatAccepted<V>(v: V) {
|
|
269
|
-
return is$typed(v, id, hashEventChatAccepted)
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export function validateEventChatAccepted<V>(v: V) {
|
|
273
|
-
return validate<EventChatAccepted & V>(v, id, hashEventChatAccepted)
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/** Fired when a member leaves or is removed from a group chat. */
|
|
277
|
-
export interface EventGroupChatMemberLeft {
|
|
278
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatMemberLeft'
|
|
279
|
-
/** The DID of the actor. For voluntary: the person leaving. For kicked: the owner. */
|
|
280
|
-
actorDid: string
|
|
281
|
-
/** When the group was originally created. */
|
|
282
|
-
convoCreatedAt: string
|
|
283
|
-
convoId: string
|
|
284
|
-
createdAt: string
|
|
285
|
-
/** Current member count at the time of the event. */
|
|
286
|
-
groupMemberCount: number
|
|
287
|
-
groupName: string
|
|
288
|
-
/** How the member left. */
|
|
289
|
-
leaveMethod: 'voluntary' | 'kicked' | (string & {})
|
|
290
|
-
/** The DID of the group chat owner. */
|
|
291
|
-
ownerDid: string
|
|
292
|
-
rev: string
|
|
293
|
-
/** The DID of the member who left or was removed. */
|
|
294
|
-
subjectDid: string
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
const hashEventGroupChatMemberLeft = 'eventGroupChatMemberLeft'
|
|
298
|
-
|
|
299
|
-
export function isEventGroupChatMemberLeft<V>(v: V) {
|
|
300
|
-
return is$typed(v, id, hashEventGroupChatMemberLeft)
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export function validateEventGroupChatMemberLeft<V>(v: V) {
|
|
304
|
-
return validate<EventGroupChatMemberLeft & V>(
|
|
305
|
-
v,
|
|
306
|
-
id,
|
|
307
|
-
hashEventGroupChatMemberLeft,
|
|
308
|
-
)
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/** Fired when a group chat's metadata or status changes. */
|
|
312
|
-
export interface EventGroupChatUpdated {
|
|
313
|
-
$type?: 'chat.bsky.moderation.subscribeModEvents#eventGroupChatUpdated'
|
|
314
|
-
/** The DID of the actor performing the action (the owner). */
|
|
315
|
-
actorDid: string
|
|
316
|
-
/** When the group was originally created. */
|
|
317
|
-
convoCreatedAt: string
|
|
318
|
-
convoId: string
|
|
319
|
-
createdAt: string
|
|
320
|
-
/** Current member count at the time of the event. */
|
|
321
|
-
groupMemberCount: number
|
|
322
|
-
/** Current group name. */
|
|
323
|
-
groupName: string
|
|
324
|
-
/** The code of the join link. Only present when updateType is join-link-related. */
|
|
325
|
-
joinLinkCode?: string
|
|
326
|
-
/** Whether the join link is restricted to followers of the owner. Only present when updateType is join-link-related. */
|
|
327
|
-
joinLinkFollowersOnly?: boolean
|
|
328
|
-
/** Whether the join link requires owner approval to join. Only present when updateType is join-link-related. */
|
|
329
|
-
joinLinkRequiresApproval?: boolean
|
|
330
|
-
/** Why the group was locked. Only present when updateType is 'locked'. */
|
|
331
|
-
lockReason?:
|
|
332
|
-
| 'owner_action'
|
|
333
|
-
| 'owner_left'
|
|
334
|
-
| 'owner_deactivated'
|
|
335
|
-
| 'owner_deleted'
|
|
336
|
-
| 'owner_taken_down'
|
|
337
|
-
| 'label_applied'
|
|
338
|
-
| (string & {})
|
|
339
|
-
/** The new group name. Only present when updateType is 'name_changed'. */
|
|
340
|
-
newName?: string
|
|
341
|
-
/** The previous group name. Only present when updateType is 'name_changed'. */
|
|
342
|
-
oldName?: string
|
|
343
|
-
/** The DID of the group chat owner. */
|
|
344
|
-
ownerDid: string
|
|
345
|
-
rev: string
|
|
346
|
-
/** What changed. */
|
|
347
|
-
updateType:
|
|
348
|
-
| 'name_changed'
|
|
349
|
-
| 'locked'
|
|
350
|
-
| 'locked_permanently'
|
|
351
|
-
| 'unlocked'
|
|
352
|
-
| 'join_link_created'
|
|
353
|
-
| 'join_link_disabled'
|
|
354
|
-
| 'join_link_settings_changed'
|
|
355
|
-
| (string & {})
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
const hashEventGroupChatUpdated = 'eventGroupChatUpdated'
|
|
359
|
-
|
|
360
|
-
export function isEventGroupChatUpdated<V>(v: V) {
|
|
361
|
-
return is$typed(v, id, hashEventGroupChatUpdated)
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export function validateEventGroupChatUpdated<V>(v: V) {
|
|
365
|
-
return validate<EventGroupChatUpdated & V>(v, id, hashEventGroupChatUpdated)
|
|
366
|
-
}
|
|
@@ -1,40 +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 = 'chat.bsky.moderation.updateActorAccess'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {}
|
|
19
|
-
|
|
20
|
-
export interface InputSchema {
|
|
21
|
-
actor: string
|
|
22
|
-
allowAccess: boolean
|
|
23
|
-
ref?: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface CallOptions {
|
|
27
|
-
signal?: AbortSignal
|
|
28
|
-
headers?: HeadersMap
|
|
29
|
-
qp?: QueryParams
|
|
30
|
-
encoding?: 'application/json'
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface Response {
|
|
34
|
-
success: boolean
|
|
35
|
-
headers: HeadersMap
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function toKnownErr(e: any) {
|
|
39
|
-
return e
|
|
40
|
-
}
|