@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,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
|
|
14
|
-
const is$typed = _is$typed,
|
|
15
|
-
validate = _validate
|
|
16
|
-
const id = 'com.atproto.repo.describeRepo'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {
|
|
19
|
-
/** The handle or DID of the repo. */
|
|
20
|
-
repo: string
|
|
21
|
-
}
|
|
22
|
-
export type InputSchema = undefined
|
|
23
|
-
|
|
24
|
-
export interface OutputSchema {
|
|
25
|
-
handle: string
|
|
26
|
-
did: string
|
|
27
|
-
/** The complete DID document for this account. */
|
|
28
|
-
didDoc: { [_ in string]: unknown }
|
|
29
|
-
/** List of all the collections (NSIDs) for which this repo contains at least one record. */
|
|
30
|
-
collections: string[]
|
|
31
|
-
/** Indicates if handle is currently valid (resolves bi-directionally) */
|
|
32
|
-
handleIsCorrect: boolean
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface CallOptions {
|
|
36
|
-
signal?: AbortSignal
|
|
37
|
-
headers?: HeadersMap
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface Response {
|
|
41
|
-
success: boolean
|
|
42
|
-
headers: HeadersMap
|
|
43
|
-
data: OutputSchema
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function toKnownErr(e: any) {
|
|
47
|
-
return e
|
|
48
|
-
}
|
|
@@ -1,59 +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 = 'com.atproto.repo.getRecord'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {
|
|
19
|
-
/** The handle or DID of the repo. */
|
|
20
|
-
repo: string
|
|
21
|
-
/** The NSID of the record collection. */
|
|
22
|
-
collection: string
|
|
23
|
-
/** The Record Key. */
|
|
24
|
-
rkey: string
|
|
25
|
-
/** The CID of the version of the record. If not specified, then return the most recent version. */
|
|
26
|
-
cid?: string
|
|
27
|
-
}
|
|
28
|
-
export type InputSchema = undefined
|
|
29
|
-
|
|
30
|
-
export interface OutputSchema {
|
|
31
|
-
uri: string
|
|
32
|
-
cid?: string
|
|
33
|
-
value: { [_ in string]: unknown }
|
|
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 class RecordNotFoundError extends XRPCError {
|
|
48
|
-
constructor(src: XRPCError) {
|
|
49
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function toKnownErr(e: any) {
|
|
54
|
-
if (e instanceof XRPCError) {
|
|
55
|
-
if (e.error === 'RecordNotFound') return new RecordNotFoundError(e)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return e
|
|
59
|
-
}
|
|
@@ -1,35 +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 = 'com.atproto.repo.importRepo'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {}
|
|
19
|
-
export type InputSchema = string | Uint8Array | Blob
|
|
20
|
-
|
|
21
|
-
export interface CallOptions {
|
|
22
|
-
signal?: AbortSignal
|
|
23
|
-
headers?: HeadersMap
|
|
24
|
-
qp?: QueryParams
|
|
25
|
-
encoding?: 'application/vnd.ipld.car'
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface Response {
|
|
29
|
-
success: boolean
|
|
30
|
-
headers: HeadersMap
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function toKnownErr(e: any) {
|
|
34
|
-
return e
|
|
35
|
-
}
|
|
@@ -1,58 +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 = 'com.atproto.repo.listMissingBlobs'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {
|
|
19
|
-
limit?: number
|
|
20
|
-
cursor?: string
|
|
21
|
-
}
|
|
22
|
-
export type InputSchema = undefined
|
|
23
|
-
|
|
24
|
-
export interface OutputSchema {
|
|
25
|
-
cursor?: string
|
|
26
|
-
blobs: RecordBlob[]
|
|
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 RecordBlob {
|
|
45
|
-
$type?: 'com.atproto.repo.listMissingBlobs#recordBlob'
|
|
46
|
-
cid: string
|
|
47
|
-
recordUri: string
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const hashRecordBlob = 'recordBlob'
|
|
51
|
-
|
|
52
|
-
export function isRecordBlob<V>(v: V) {
|
|
53
|
-
return is$typed(v, id, hashRecordBlob)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function validateRecordBlob<V>(v: V) {
|
|
57
|
-
return validate<RecordBlob & V>(v, id, hashRecordBlob)
|
|
58
|
-
}
|
|
@@ -1,66 +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 = 'com.atproto.repo.listRecords'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {
|
|
19
|
-
/** The handle or DID of the repo. */
|
|
20
|
-
repo: string
|
|
21
|
-
/** The NSID of the record type. */
|
|
22
|
-
collection: string
|
|
23
|
-
/** The number of records to return. */
|
|
24
|
-
limit?: number
|
|
25
|
-
cursor?: string
|
|
26
|
-
/** Flag to reverse the order of the returned records. */
|
|
27
|
-
reverse?: boolean
|
|
28
|
-
}
|
|
29
|
-
export type InputSchema = undefined
|
|
30
|
-
|
|
31
|
-
export interface OutputSchema {
|
|
32
|
-
cursor?: string
|
|
33
|
-
records: Record[]
|
|
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
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface Record {
|
|
52
|
-
$type?: 'com.atproto.repo.listRecords#record'
|
|
53
|
-
uri: string
|
|
54
|
-
cid: string
|
|
55
|
-
value: { [_ in string]: unknown }
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const hashRecord = 'record'
|
|
59
|
-
|
|
60
|
-
export function isRecord<V>(v: V) {
|
|
61
|
-
return is$typed(v, id, hashRecord)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function validateRecord<V>(v: V) {
|
|
65
|
-
return validate<Record & V>(v, id, hashRecord)
|
|
66
|
-
}
|
|
@@ -1,70 +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 ComAtprotoRepoDefs from './defs.js'
|
|
14
|
-
|
|
15
|
-
const is$typed = _is$typed,
|
|
16
|
-
validate = _validate
|
|
17
|
-
const id = 'com.atproto.repo.putRecord'
|
|
18
|
-
|
|
19
|
-
export type QueryParams = {}
|
|
20
|
-
|
|
21
|
-
export interface InputSchema {
|
|
22
|
-
/** The handle or DID of the repo (aka, current account). */
|
|
23
|
-
repo: string
|
|
24
|
-
/** The NSID of the record collection. */
|
|
25
|
-
collection: string
|
|
26
|
-
/** The Record Key. */
|
|
27
|
-
rkey: string
|
|
28
|
-
/** Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. */
|
|
29
|
-
validate?: boolean
|
|
30
|
-
/** The record to write. */
|
|
31
|
-
record: { [_ in string]: unknown }
|
|
32
|
-
/** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
|
|
33
|
-
swapRecord?: string | null
|
|
34
|
-
/** Compare and swap with the previous commit by CID. */
|
|
35
|
-
swapCommit?: string
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface OutputSchema {
|
|
39
|
-
uri: string
|
|
40
|
-
cid: string
|
|
41
|
-
commit?: ComAtprotoRepoDefs.CommitMeta
|
|
42
|
-
validationStatus?: 'valid' | 'unknown' | (string & {})
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface CallOptions {
|
|
46
|
-
signal?: AbortSignal
|
|
47
|
-
headers?: HeadersMap
|
|
48
|
-
qp?: QueryParams
|
|
49
|
-
encoding?: 'application/json'
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface Response {
|
|
53
|
-
success: boolean
|
|
54
|
-
headers: HeadersMap
|
|
55
|
-
data: OutputSchema
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export class InvalidSwapError extends XRPCError {
|
|
59
|
-
constructor(src: XRPCError) {
|
|
60
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function toKnownErr(e: any) {
|
|
65
|
-
if (e instanceof XRPCError) {
|
|
66
|
-
if (e.error === 'InvalidSwap') return new InvalidSwapError(e)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return e
|
|
70
|
-
}
|
|
@@ -1,31 +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
|
-
|
|
13
|
-
const is$typed = _is$typed,
|
|
14
|
-
validate = _validate
|
|
15
|
-
const id = 'com.atproto.repo.strongRef'
|
|
16
|
-
|
|
17
|
-
export interface Main {
|
|
18
|
-
$type?: 'com.atproto.repo.strongRef'
|
|
19
|
-
uri: string
|
|
20
|
-
cid: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const hashMain = 'main'
|
|
24
|
-
|
|
25
|
-
export function isMain<V>(v: V) {
|
|
26
|
-
return is$typed(v, id, hashMain)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function validateMain<V>(v: V) {
|
|
30
|
-
return validate<Main & V>(v, id, hashMain)
|
|
31
|
-
}
|
|
@@ -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 = 'com.atproto.repo.uploadBlob'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {}
|
|
19
|
-
export type InputSchema = string | Uint8Array | Blob
|
|
20
|
-
|
|
21
|
-
export interface OutputSchema {
|
|
22
|
-
blob: BlobRef
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface CallOptions {
|
|
26
|
-
signal?: AbortSignal
|
|
27
|
-
headers?: HeadersMap
|
|
28
|
-
qp?: QueryParams
|
|
29
|
-
encoding?: string
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface Response {
|
|
33
|
-
success: boolean
|
|
34
|
-
headers: HeadersMap
|
|
35
|
-
data: OutputSchema
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function toKnownErr(e: any) {
|
|
39
|
-
return e
|
|
40
|
-
}
|
|
@@ -1,34 +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 = 'com.atproto.server.activateAccount'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {}
|
|
19
|
-
export type InputSchema = undefined
|
|
20
|
-
|
|
21
|
-
export interface CallOptions {
|
|
22
|
-
signal?: AbortSignal
|
|
23
|
-
headers?: HeadersMap
|
|
24
|
-
qp?: QueryParams
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface Response {
|
|
28
|
-
success: boolean
|
|
29
|
-
headers: HeadersMap
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function toKnownErr(e: any) {
|
|
33
|
-
return e
|
|
34
|
-
}
|
|
@@ -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
|
-
|
|
14
|
-
const is$typed = _is$typed,
|
|
15
|
-
validate = _validate
|
|
16
|
-
const id = 'com.atproto.server.checkAccountStatus'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {}
|
|
19
|
-
export type InputSchema = undefined
|
|
20
|
-
|
|
21
|
-
export interface OutputSchema {
|
|
22
|
-
activated: boolean
|
|
23
|
-
validDid: boolean
|
|
24
|
-
repoCommit: string
|
|
25
|
-
repoRev: string
|
|
26
|
-
repoBlocks: number
|
|
27
|
-
indexedRecords: number
|
|
28
|
-
privateStateValues: number
|
|
29
|
-
expectedBlobs: number
|
|
30
|
-
importedBlobs: number
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface CallOptions {
|
|
34
|
-
signal?: AbortSignal
|
|
35
|
-
headers?: HeadersMap
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface Response {
|
|
39
|
-
success: boolean
|
|
40
|
-
headers: HeadersMap
|
|
41
|
-
data: OutputSchema
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function toKnownErr(e: any) {
|
|
45
|
-
return e
|
|
46
|
-
}
|
|
@@ -1,70 +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 = 'com.atproto.server.confirmEmail'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {}
|
|
19
|
-
|
|
20
|
-
export interface InputSchema {
|
|
21
|
-
email: string
|
|
22
|
-
token: string
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface CallOptions {
|
|
26
|
-
signal?: AbortSignal
|
|
27
|
-
headers?: HeadersMap
|
|
28
|
-
qp?: QueryParams
|
|
29
|
-
encoding?: 'application/json'
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface Response {
|
|
33
|
-
success: boolean
|
|
34
|
-
headers: HeadersMap
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export class AccountNotFoundError extends XRPCError {
|
|
38
|
-
constructor(src: XRPCError) {
|
|
39
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export class ExpiredTokenError extends XRPCError {
|
|
44
|
-
constructor(src: XRPCError) {
|
|
45
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export class InvalidTokenError extends XRPCError {
|
|
50
|
-
constructor(src: XRPCError) {
|
|
51
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export class InvalidEmailError extends XRPCError {
|
|
56
|
-
constructor(src: XRPCError) {
|
|
57
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function toKnownErr(e: any) {
|
|
62
|
-
if (e instanceof XRPCError) {
|
|
63
|
-
if (e.error === 'AccountNotFound') return new AccountNotFoundError(e)
|
|
64
|
-
if (e.error === 'ExpiredToken') return new ExpiredTokenError(e)
|
|
65
|
-
if (e.error === 'InvalidToken') return new InvalidTokenError(e)
|
|
66
|
-
if (e.error === 'InvalidEmail') return new InvalidEmailError(e)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return e
|
|
70
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
-
import { CID } from 'multiformats/cid'
|
|
7
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
8
|
-
import {
|
|
9
|
-
type $Typed,
|
|
10
|
-
is$typed as _is$typed,
|
|
11
|
-
type OmitKey,
|
|
12
|
-
} from '../../../../util.js'
|
|
13
|
-
|
|
14
|
-
const is$typed = _is$typed,
|
|
15
|
-
validate = _validate
|
|
16
|
-
const id = 'com.atproto.server.createAccount'
|
|
17
|
-
|
|
18
|
-
export type QueryParams = {}
|
|
19
|
-
|
|
20
|
-
export interface InputSchema {
|
|
21
|
-
email?: string
|
|
22
|
-
/** Requested handle for the account. */
|
|
23
|
-
handle: string
|
|
24
|
-
/** Pre-existing atproto DID, being imported to a new account. */
|
|
25
|
-
did?: string
|
|
26
|
-
inviteCode?: string
|
|
27
|
-
verificationCode?: string
|
|
28
|
-
verificationPhone?: string
|
|
29
|
-
/** Initial account password. May need to meet instance-specific password strength requirements. */
|
|
30
|
-
password?: string
|
|
31
|
-
/** DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. */
|
|
32
|
-
recoveryKey?: string
|
|
33
|
-
/** A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. */
|
|
34
|
-
plcOp?: { [_ in string]: unknown }
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** Account login session returned on successful account creation. */
|
|
38
|
-
export interface OutputSchema {
|
|
39
|
-
accessJwt: string
|
|
40
|
-
refreshJwt: string
|
|
41
|
-
handle: string
|
|
42
|
-
/** The DID of the new account. */
|
|
43
|
-
did: string
|
|
44
|
-
/** Complete DID document. */
|
|
45
|
-
didDoc?: { [_ in string]: unknown }
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface CallOptions {
|
|
49
|
-
signal?: AbortSignal
|
|
50
|
-
headers?: HeadersMap
|
|
51
|
-
qp?: QueryParams
|
|
52
|
-
encoding?: 'application/json'
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface Response {
|
|
56
|
-
success: boolean
|
|
57
|
-
headers: HeadersMap
|
|
58
|
-
data: OutputSchema
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export class InvalidHandleError extends XRPCError {
|
|
62
|
-
constructor(src: XRPCError) {
|
|
63
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export class InvalidPasswordError extends XRPCError {
|
|
68
|
-
constructor(src: XRPCError) {
|
|
69
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export class InvalidInviteCodeError extends XRPCError {
|
|
74
|
-
constructor(src: XRPCError) {
|
|
75
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export class HandleNotAvailableError extends XRPCError {
|
|
80
|
-
constructor(src: XRPCError) {
|
|
81
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export class UnsupportedDomainError extends XRPCError {
|
|
86
|
-
constructor(src: XRPCError) {
|
|
87
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export class UnresolvableDidError extends XRPCError {
|
|
92
|
-
constructor(src: XRPCError) {
|
|
93
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export class IncompatibleDidDocError extends XRPCError {
|
|
98
|
-
constructor(src: XRPCError) {
|
|
99
|
-
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function toKnownErr(e: any) {
|
|
104
|
-
if (e instanceof XRPCError) {
|
|
105
|
-
if (e.error === 'InvalidHandle') return new InvalidHandleError(e)
|
|
106
|
-
if (e.error === 'InvalidPassword') return new InvalidPasswordError(e)
|
|
107
|
-
if (e.error === 'InvalidInviteCode') return new InvalidInviteCodeError(e)
|
|
108
|
-
if (e.error === 'HandleNotAvailable') return new HandleNotAvailableError(e)
|
|
109
|
-
if (e.error === 'UnsupportedDomain') return new UnsupportedDomainError(e)
|
|
110
|
-
if (e.error === 'UnresolvableDid') return new UnresolvableDidError(e)
|
|
111
|
-
if (e.error === 'IncompatibleDidDoc') return new IncompatibleDidDocError(e)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return e
|
|
115
|
-
}
|