@atproto/api 0.0.5 → 0.0.7
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/dist/client/index.d.ts +72 -44
- package/dist/client/lexicons.d.ts +1034 -398
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +0 -2
- package/dist/client/types/app/bsky/actor/search.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -1
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +1 -8
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +1 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +1 -1
- package/dist/client/types/app/bsky/system/declaration.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +23 -0
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +17 -0
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +49 -0
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/record.d.ts +40 -0
- package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +28 -0
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
- package/dist/client/types/com/atproto/report/create.d.ts +39 -0
- package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
- package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
- package/dist/client/types/com/atproto/session/create.d.ts +5 -2
- package/dist/client/types/com/atproto/session/refresh.d.ts +4 -1
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
- package/dist/client/types/com/atproto/sync/getHead.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +17 -0
- package/dist/index.js +2040 -988
- package/dist/index.js.map +4 -4
- package/dist/src/client/index.d.ts +474 -0
- package/dist/src/client/lexicons.d.ts +3036 -0
- package/dist/src/client/schemas.d.ts +17 -0
- package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
- package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
- package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
- package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
- package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
- package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
- package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
- package/dist/src/client/types/app/bsky/administration/moderationAction.d.ts +16 -0
- package/dist/src/client/types/app/bsky/administration/reverseModerationAction.d.ts +22 -0
- package/dist/src/client/types/app/bsky/administration/takeModerationAction.d.ts +27 -0
- package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
- package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
- package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
- package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
- package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
- package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
- package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
- package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
- package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
- package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
- package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
- package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
- package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
- package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +15 -0
- package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
- package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
- package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
- package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
- package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
- package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
- package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
- package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
- package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
- package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
- package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
- package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
- package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
- package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
- package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
- package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
- package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
- package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
- package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
- package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
- package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
- package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
- package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
- package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
- package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
- package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
- package/dist/src/client/types/app/bsky/like.d.ts +10 -0
- package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
- package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
- package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
- package/dist/src/client/types/app/bsky/post.d.ts +23 -0
- package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
- package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
- package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
- package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
- package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
- package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
- package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
- package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
- package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
- package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
- package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
- package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
- package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
- package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
- package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
- package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
- package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
- package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
- package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
- package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
- package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
- package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
- package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
- package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
- package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
- package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
- package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
- package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
- package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
- package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
- package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
- package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
- package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
- package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
- package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
- package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
- package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
- package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
- package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
- package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
- package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
- package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
- package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
- package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
- package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
- package/dist/src/client/types/com/atproto/session/create.d.ts +29 -0
- package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
- package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
- package/dist/src/client/types/com/atproto/session/refresh.d.ts +24 -0
- package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
- package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
- package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/schemas.d.ts +19 -0
- package/dist/src/session.d.ts +42 -0
- package/dist/src/types/app/bsky/badge.d.ts +22 -0
- package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
- package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
- package/dist/src/types/app/bsky/declaration.d.ts +6 -0
- package/dist/src/types/app/bsky/follow.d.ts +9 -0
- package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
- package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
- package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
- package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
- package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
- package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
- package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
- package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
- package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
- package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
- package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
- package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
- package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
- package/dist/src/types/app/bsky/invite.d.ts +10 -0
- package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
- package/dist/src/types/app/bsky/like.d.ts +10 -0
- package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
- package/dist/src/types/app/bsky/post.d.ts +23 -0
- package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
- package/dist/src/types/app/bsky/profile.d.ts +11 -0
- package/dist/src/types/app/bsky/repost.d.ts +10 -0
- package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
- package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
- package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
- package/dist/src/types/com/atproto/createSession.d.ts +23 -0
- package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
- package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
- package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
- package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
- package/dist/src/types/com/atproto/getSession.d.ts +17 -0
- package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
- package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
- package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
- package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
- package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
- package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
- package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
- package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
- package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
- package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
- package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
- package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
- package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
- package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +236 -142
- package/src/client/lexicons.ts +1151 -443
- package/src/client/types/app/bsky/actor/getProfile.ts +0 -2
- package/src/client/types/app/bsky/actor/search.ts +1 -1
- package/src/client/types/app/bsky/actor/searchTypeahead.ts +1 -1
- package/src/client/types/app/bsky/actor/updateProfile.ts +0 -1
- package/src/client/types/app/bsky/feed/feedViewPost.ts +1 -19
- package/src/client/types/app/bsky/graph/getFollows.ts +1 -0
- package/src/client/types/app/bsky/notification/list.ts +1 -2
- package/src/client/types/app/bsky/system/declRef.ts +1 -4
- package/src/client/types/app/bsky/system/declaration.ts +1 -4
- package/src/client/types/com/atproto/admin/getModerationAction.ts +31 -0
- package/src/client/types/com/atproto/admin/getModerationActions.ts +38 -0
- package/src/client/types/com/atproto/admin/getModerationReport.ts +31 -0
- package/src/client/types/com/atproto/admin/getModerationReports.ts +39 -0
- package/src/client/types/com/atproto/admin/getRecord.ts +32 -0
- package/src/client/types/com/atproto/admin/getRepo.ts +31 -0
- package/src/client/types/com/atproto/admin/moderationAction.ts +99 -0
- package/src/client/types/com/atproto/admin/moderationReport.ts +64 -0
- package/src/client/types/com/atproto/admin/record.ts +89 -0
- package/src/client/types/com/atproto/admin/repo.ts +103 -0
- package/src/client/types/com/atproto/admin/resolveModerationReports.ts +37 -0
- package/src/client/types/com/atproto/admin/reverseModerationAction.ts +37 -0
- package/src/client/types/com/atproto/admin/searchRepos.ts +38 -0
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +47 -0
- package/src/client/types/com/atproto/repo/recordRef.ts +25 -0
- package/src/client/types/com/atproto/repo/repoRef.ts +24 -0
- package/src/client/types/com/atproto/report/create.ts +54 -0
- package/src/client/types/com/atproto/report/reasonType.ts +16 -0
- package/src/client/types/com/atproto/report/subject.ts +66 -0
- package/src/client/types/com/atproto/session/create.ts +9 -1
- package/src/client/types/com/atproto/session/refresh.ts +7 -0
- package/src/client/types/com/atproto/sync/{updateRepo.ts → getCheckout.ts} +4 -3
- package/src/client/types/com/atproto/sync/getCommitPath.ts +39 -0
- package/src/client/types/com/atproto/sync/{getRoot.ts → getHead.ts} +0 -0
- package/src/client/types/com/atproto/sync/getRecord.ts +34 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/client/types/app/bsky/actor/createScene.ts +0 -55
- package/src/client/types/app/bsky/feed/trend.ts +0 -26
- package/src/client/types/app/bsky/graph/getAssertions.ts +0 -85
- package/src/client/types/app/bsky/graph/getMembers.ts +0 -62
- package/src/client/types/app/bsky/graph/getMemberships.ts +0 -62
- package/src/client/types/app/bsky/system/actorScene.ts +0 -9
package/src/client/index.ts
CHANGED
|
@@ -12,6 +12,20 @@ import * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'
|
|
|
12
12
|
import * as ComAtprotoAccountGet from './types/com/atproto/account/get'
|
|
13
13
|
import * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'
|
|
14
14
|
import * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'
|
|
15
|
+
import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
|
|
16
|
+
import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
|
|
17
|
+
import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport'
|
|
18
|
+
import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports'
|
|
19
|
+
import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
|
|
20
|
+
import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
|
|
21
|
+
import * as ComAtprotoAdminModerationAction from './types/com/atproto/admin/moderationAction'
|
|
22
|
+
import * as ComAtprotoAdminModerationReport from './types/com/atproto/admin/moderationReport'
|
|
23
|
+
import * as ComAtprotoAdminRecord from './types/com/atproto/admin/record'
|
|
24
|
+
import * as ComAtprotoAdminRepo from './types/com/atproto/admin/repo'
|
|
25
|
+
import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports'
|
|
26
|
+
import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
|
|
27
|
+
import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
|
|
28
|
+
import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
|
|
15
29
|
import * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
|
|
16
30
|
import * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
|
|
17
31
|
import * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
|
|
@@ -21,16 +35,22 @@ import * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'
|
|
|
21
35
|
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
22
36
|
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
23
37
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
38
|
+
import * as ComAtprotoRepoRecordRef from './types/com/atproto/repo/recordRef'
|
|
39
|
+
import * as ComAtprotoRepoRepoRef from './types/com/atproto/repo/repoRef'
|
|
24
40
|
import * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
|
|
41
|
+
import * as ComAtprotoReportCreate from './types/com/atproto/report/create'
|
|
42
|
+
import * as ComAtprotoReportReasonType from './types/com/atproto/report/reasonType'
|
|
43
|
+
import * as ComAtprotoReportSubject from './types/com/atproto/report/subject'
|
|
25
44
|
import * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'
|
|
26
45
|
import * as ComAtprotoSessionCreate from './types/com/atproto/session/create'
|
|
27
46
|
import * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'
|
|
28
47
|
import * as ComAtprotoSessionGet from './types/com/atproto/session/get'
|
|
29
48
|
import * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'
|
|
49
|
+
import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
|
|
50
|
+
import * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath'
|
|
51
|
+
import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
|
|
52
|
+
import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
|
|
30
53
|
import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
|
|
31
|
-
import * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot'
|
|
32
|
-
import * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo'
|
|
33
|
-
import * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene'
|
|
34
54
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
35
55
|
import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
|
|
36
56
|
import * as AppBskyActorProfile from './types/app/bsky/actor/profile'
|
|
@@ -49,25 +69,20 @@ import * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'
|
|
|
49
69
|
import * as AppBskyFeedPost from './types/app/bsky/feed/post'
|
|
50
70
|
import * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
|
|
51
71
|
import * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'
|
|
52
|
-
import * as AppBskyFeedTrend from './types/app/bsky/feed/trend'
|
|
53
72
|
import * as AppBskyFeedVote from './types/app/bsky/feed/vote'
|
|
54
73
|
import * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'
|
|
55
74
|
import * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'
|
|
56
75
|
import * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'
|
|
57
76
|
import * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'
|
|
58
77
|
import * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
59
|
-
import * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions'
|
|
60
78
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
61
79
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
62
|
-
import * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers'
|
|
63
|
-
import * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'
|
|
64
80
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
65
81
|
import * as AppBskyGraphMute from './types/app/bsky/graph/mute'
|
|
66
82
|
import * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute'
|
|
67
83
|
import * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'
|
|
68
84
|
import * as AppBskyNotificationList from './types/app/bsky/notification/list'
|
|
69
85
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
70
|
-
import * as AppBskySystemActorScene from './types/app/bsky/system/actorScene'
|
|
71
86
|
import * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'
|
|
72
87
|
import * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'
|
|
73
88
|
import * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'
|
|
@@ -78,6 +93,20 @@ export * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'
|
|
|
78
93
|
export * as ComAtprotoAccountGet from './types/com/atproto/account/get'
|
|
79
94
|
export * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'
|
|
80
95
|
export * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'
|
|
96
|
+
export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
|
|
97
|
+
export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
|
|
98
|
+
export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport'
|
|
99
|
+
export * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports'
|
|
100
|
+
export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
|
|
101
|
+
export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
|
|
102
|
+
export * as ComAtprotoAdminModerationAction from './types/com/atproto/admin/moderationAction'
|
|
103
|
+
export * as ComAtprotoAdminModerationReport from './types/com/atproto/admin/moderationReport'
|
|
104
|
+
export * as ComAtprotoAdminRecord from './types/com/atproto/admin/record'
|
|
105
|
+
export * as ComAtprotoAdminRepo from './types/com/atproto/admin/repo'
|
|
106
|
+
export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports'
|
|
107
|
+
export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
|
|
108
|
+
export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
|
|
109
|
+
export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
|
|
81
110
|
export * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
|
|
82
111
|
export * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
|
|
83
112
|
export * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
|
|
@@ -87,16 +116,22 @@ export * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'
|
|
|
87
116
|
export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
88
117
|
export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
89
118
|
export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
119
|
+
export * as ComAtprotoRepoRecordRef from './types/com/atproto/repo/recordRef'
|
|
120
|
+
export * as ComAtprotoRepoRepoRef from './types/com/atproto/repo/repoRef'
|
|
90
121
|
export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
|
|
122
|
+
export * as ComAtprotoReportCreate from './types/com/atproto/report/create'
|
|
123
|
+
export * as ComAtprotoReportReasonType from './types/com/atproto/report/reasonType'
|
|
124
|
+
export * as ComAtprotoReportSubject from './types/com/atproto/report/subject'
|
|
91
125
|
export * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'
|
|
92
126
|
export * as ComAtprotoSessionCreate from './types/com/atproto/session/create'
|
|
93
127
|
export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'
|
|
94
128
|
export * as ComAtprotoSessionGet from './types/com/atproto/session/get'
|
|
95
129
|
export * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'
|
|
130
|
+
export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
|
|
131
|
+
export * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath'
|
|
132
|
+
export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
|
|
133
|
+
export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
|
|
96
134
|
export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
|
|
97
|
-
export * as ComAtprotoSyncGetRoot from './types/com/atproto/sync/getRoot'
|
|
98
|
-
export * as ComAtprotoSyncUpdateRepo from './types/com/atproto/sync/updateRepo'
|
|
99
|
-
export * as AppBskyActorCreateScene from './types/app/bsky/actor/createScene'
|
|
100
135
|
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
101
136
|
export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
|
|
102
137
|
export * as AppBskyActorProfile from './types/app/bsky/actor/profile'
|
|
@@ -115,35 +150,38 @@ export * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'
|
|
|
115
150
|
export * as AppBskyFeedPost from './types/app/bsky/feed/post'
|
|
116
151
|
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
|
|
117
152
|
export * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'
|
|
118
|
-
export * as AppBskyFeedTrend from './types/app/bsky/feed/trend'
|
|
119
153
|
export * as AppBskyFeedVote from './types/app/bsky/feed/vote'
|
|
120
154
|
export * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'
|
|
121
155
|
export * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'
|
|
122
156
|
export * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'
|
|
123
157
|
export * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'
|
|
124
158
|
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
|
|
125
|
-
export * as AppBskyGraphGetAssertions from './types/app/bsky/graph/getAssertions'
|
|
126
159
|
export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
127
160
|
export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
128
|
-
export * as AppBskyGraphGetMembers from './types/app/bsky/graph/getMembers'
|
|
129
|
-
export * as AppBskyGraphGetMemberships from './types/app/bsky/graph/getMemberships'
|
|
130
161
|
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
|
|
131
162
|
export * as AppBskyGraphMute from './types/app/bsky/graph/mute'
|
|
132
163
|
export * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute'
|
|
133
164
|
export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'
|
|
134
165
|
export * as AppBskyNotificationList from './types/app/bsky/notification/list'
|
|
135
166
|
export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
136
|
-
export * as AppBskySystemActorScene from './types/app/bsky/system/actorScene'
|
|
137
167
|
export * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'
|
|
138
168
|
export * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'
|
|
139
169
|
export * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'
|
|
140
170
|
|
|
171
|
+
export const COM_ATPROTO_ADMIN = {
|
|
172
|
+
ModerationActionTakedown: 'com.atproto.admin.moderationAction#takedown',
|
|
173
|
+
ModerationActionFlag: 'com.atproto.admin.moderationAction#flag',
|
|
174
|
+
ModerationActionAcknowledge: 'com.atproto.admin.moderationAction#acknowledge',
|
|
175
|
+
}
|
|
176
|
+
export const COM_ATPROTO_REPORT = {
|
|
177
|
+
ReasonTypeSpam: 'com.atproto.report.reasonType#spam',
|
|
178
|
+
ReasonTypeOther: 'com.atproto.report.reasonType#other',
|
|
179
|
+
}
|
|
141
180
|
export const APP_BSKY_GRAPH = {
|
|
142
181
|
AssertCreator: 'app.bsky.graph.assertCreator',
|
|
143
182
|
AssertMember: 'app.bsky.graph.assertMember',
|
|
144
183
|
}
|
|
145
184
|
export const APP_BSKY_SYSTEM = {
|
|
146
|
-
ActorScene: 'app.bsky.system.actorScene',
|
|
147
185
|
ActorUser: 'app.bsky.system.actorUser',
|
|
148
186
|
}
|
|
149
187
|
|
|
@@ -193,9 +231,11 @@ export class ComNS {
|
|
|
193
231
|
export class AtprotoNS {
|
|
194
232
|
_service: ServiceClient
|
|
195
233
|
account: AccountNS
|
|
234
|
+
admin: AdminNS
|
|
196
235
|
blob: BlobNS
|
|
197
236
|
handle: HandleNS
|
|
198
237
|
repo: RepoNS
|
|
238
|
+
report: ReportNS
|
|
199
239
|
server: ServerNS
|
|
200
240
|
session: SessionNS
|
|
201
241
|
sync: SyncNS
|
|
@@ -203,9 +243,11 @@ export class AtprotoNS {
|
|
|
203
243
|
constructor(service: ServiceClient) {
|
|
204
244
|
this._service = service
|
|
205
245
|
this.account = new AccountNS(service)
|
|
246
|
+
this.admin = new AdminNS(service)
|
|
206
247
|
this.blob = new BlobNS(service)
|
|
207
248
|
this.handle = new HandleNS(service)
|
|
208
249
|
this.repo = new RepoNS(service)
|
|
250
|
+
this.report = new ReportNS(service)
|
|
209
251
|
this.server = new ServerNS(service)
|
|
210
252
|
this.session = new SessionNS(service)
|
|
211
253
|
this.sync = new SyncNS(service)
|
|
@@ -286,6 +328,124 @@ export class AccountNS {
|
|
|
286
328
|
}
|
|
287
329
|
}
|
|
288
330
|
|
|
331
|
+
export class AdminNS {
|
|
332
|
+
_service: ServiceClient
|
|
333
|
+
|
|
334
|
+
constructor(service: ServiceClient) {
|
|
335
|
+
this._service = service
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
getModerationAction(
|
|
339
|
+
params?: ComAtprotoAdminGetModerationAction.QueryParams,
|
|
340
|
+
opts?: ComAtprotoAdminGetModerationAction.CallOptions,
|
|
341
|
+
): Promise<ComAtprotoAdminGetModerationAction.Response> {
|
|
342
|
+
return this._service.xrpc
|
|
343
|
+
.call('com.atproto.admin.getModerationAction', params, undefined, opts)
|
|
344
|
+
.catch((e) => {
|
|
345
|
+
throw ComAtprotoAdminGetModerationAction.toKnownErr(e)
|
|
346
|
+
})
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
getModerationActions(
|
|
350
|
+
params?: ComAtprotoAdminGetModerationActions.QueryParams,
|
|
351
|
+
opts?: ComAtprotoAdminGetModerationActions.CallOptions,
|
|
352
|
+
): Promise<ComAtprotoAdminGetModerationActions.Response> {
|
|
353
|
+
return this._service.xrpc
|
|
354
|
+
.call('com.atproto.admin.getModerationActions', params, undefined, opts)
|
|
355
|
+
.catch((e) => {
|
|
356
|
+
throw ComAtprotoAdminGetModerationActions.toKnownErr(e)
|
|
357
|
+
})
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
getModerationReport(
|
|
361
|
+
params?: ComAtprotoAdminGetModerationReport.QueryParams,
|
|
362
|
+
opts?: ComAtprotoAdminGetModerationReport.CallOptions,
|
|
363
|
+
): Promise<ComAtprotoAdminGetModerationReport.Response> {
|
|
364
|
+
return this._service.xrpc
|
|
365
|
+
.call('com.atproto.admin.getModerationReport', params, undefined, opts)
|
|
366
|
+
.catch((e) => {
|
|
367
|
+
throw ComAtprotoAdminGetModerationReport.toKnownErr(e)
|
|
368
|
+
})
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
getModerationReports(
|
|
372
|
+
params?: ComAtprotoAdminGetModerationReports.QueryParams,
|
|
373
|
+
opts?: ComAtprotoAdminGetModerationReports.CallOptions,
|
|
374
|
+
): Promise<ComAtprotoAdminGetModerationReports.Response> {
|
|
375
|
+
return this._service.xrpc
|
|
376
|
+
.call('com.atproto.admin.getModerationReports', params, undefined, opts)
|
|
377
|
+
.catch((e) => {
|
|
378
|
+
throw ComAtprotoAdminGetModerationReports.toKnownErr(e)
|
|
379
|
+
})
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
getRecord(
|
|
383
|
+
params?: ComAtprotoAdminGetRecord.QueryParams,
|
|
384
|
+
opts?: ComAtprotoAdminGetRecord.CallOptions,
|
|
385
|
+
): Promise<ComAtprotoAdminGetRecord.Response> {
|
|
386
|
+
return this._service.xrpc
|
|
387
|
+
.call('com.atproto.admin.getRecord', params, undefined, opts)
|
|
388
|
+
.catch((e) => {
|
|
389
|
+
throw ComAtprotoAdminGetRecord.toKnownErr(e)
|
|
390
|
+
})
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
getRepo(
|
|
394
|
+
params?: ComAtprotoAdminGetRepo.QueryParams,
|
|
395
|
+
opts?: ComAtprotoAdminGetRepo.CallOptions,
|
|
396
|
+
): Promise<ComAtprotoAdminGetRepo.Response> {
|
|
397
|
+
return this._service.xrpc
|
|
398
|
+
.call('com.atproto.admin.getRepo', params, undefined, opts)
|
|
399
|
+
.catch((e) => {
|
|
400
|
+
throw ComAtprotoAdminGetRepo.toKnownErr(e)
|
|
401
|
+
})
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
resolveModerationReports(
|
|
405
|
+
data?: ComAtprotoAdminResolveModerationReports.InputSchema,
|
|
406
|
+
opts?: ComAtprotoAdminResolveModerationReports.CallOptions,
|
|
407
|
+
): Promise<ComAtprotoAdminResolveModerationReports.Response> {
|
|
408
|
+
return this._service.xrpc
|
|
409
|
+
.call('com.atproto.admin.resolveModerationReports', opts?.qp, data, opts)
|
|
410
|
+
.catch((e) => {
|
|
411
|
+
throw ComAtprotoAdminResolveModerationReports.toKnownErr(e)
|
|
412
|
+
})
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
reverseModerationAction(
|
|
416
|
+
data?: ComAtprotoAdminReverseModerationAction.InputSchema,
|
|
417
|
+
opts?: ComAtprotoAdminReverseModerationAction.CallOptions,
|
|
418
|
+
): Promise<ComAtprotoAdminReverseModerationAction.Response> {
|
|
419
|
+
return this._service.xrpc
|
|
420
|
+
.call('com.atproto.admin.reverseModerationAction', opts?.qp, data, opts)
|
|
421
|
+
.catch((e) => {
|
|
422
|
+
throw ComAtprotoAdminReverseModerationAction.toKnownErr(e)
|
|
423
|
+
})
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
searchRepos(
|
|
427
|
+
params?: ComAtprotoAdminSearchRepos.QueryParams,
|
|
428
|
+
opts?: ComAtprotoAdminSearchRepos.CallOptions,
|
|
429
|
+
): Promise<ComAtprotoAdminSearchRepos.Response> {
|
|
430
|
+
return this._service.xrpc
|
|
431
|
+
.call('com.atproto.admin.searchRepos', params, undefined, opts)
|
|
432
|
+
.catch((e) => {
|
|
433
|
+
throw ComAtprotoAdminSearchRepos.toKnownErr(e)
|
|
434
|
+
})
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
takeModerationAction(
|
|
438
|
+
data?: ComAtprotoAdminTakeModerationAction.InputSchema,
|
|
439
|
+
opts?: ComAtprotoAdminTakeModerationAction.CallOptions,
|
|
440
|
+
): Promise<ComAtprotoAdminTakeModerationAction.Response> {
|
|
441
|
+
return this._service.xrpc
|
|
442
|
+
.call('com.atproto.admin.takeModerationAction', opts?.qp, data, opts)
|
|
443
|
+
.catch((e) => {
|
|
444
|
+
throw ComAtprotoAdminTakeModerationAction.toKnownErr(e)
|
|
445
|
+
})
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
289
449
|
export class BlobNS {
|
|
290
450
|
_service: ServiceClient
|
|
291
451
|
|
|
@@ -409,6 +569,25 @@ export class RepoNS {
|
|
|
409
569
|
}
|
|
410
570
|
}
|
|
411
571
|
|
|
572
|
+
export class ReportNS {
|
|
573
|
+
_service: ServiceClient
|
|
574
|
+
|
|
575
|
+
constructor(service: ServiceClient) {
|
|
576
|
+
this._service = service
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
create(
|
|
580
|
+
data?: ComAtprotoReportCreate.InputSchema,
|
|
581
|
+
opts?: ComAtprotoReportCreate.CallOptions,
|
|
582
|
+
): Promise<ComAtprotoReportCreate.Response> {
|
|
583
|
+
return this._service.xrpc
|
|
584
|
+
.call('com.atproto.report.create', opts?.qp, data, opts)
|
|
585
|
+
.catch((e) => {
|
|
586
|
+
throw ComAtprotoReportCreate.toKnownErr(e)
|
|
587
|
+
})
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
412
591
|
export class ServerNS {
|
|
413
592
|
_service: ServiceClient
|
|
414
593
|
|
|
@@ -487,36 +666,58 @@ export class SyncNS {
|
|
|
487
666
|
this._service = service
|
|
488
667
|
}
|
|
489
668
|
|
|
490
|
-
|
|
491
|
-
params?:
|
|
492
|
-
opts?:
|
|
493
|
-
): Promise<
|
|
669
|
+
getCheckout(
|
|
670
|
+
params?: ComAtprotoSyncGetCheckout.QueryParams,
|
|
671
|
+
opts?: ComAtprotoSyncGetCheckout.CallOptions,
|
|
672
|
+
): Promise<ComAtprotoSyncGetCheckout.Response> {
|
|
494
673
|
return this._service.xrpc
|
|
495
|
-
.call('com.atproto.sync.
|
|
674
|
+
.call('com.atproto.sync.getCheckout', params, undefined, opts)
|
|
496
675
|
.catch((e) => {
|
|
497
|
-
throw
|
|
676
|
+
throw ComAtprotoSyncGetCheckout.toKnownErr(e)
|
|
498
677
|
})
|
|
499
678
|
}
|
|
500
679
|
|
|
501
|
-
|
|
502
|
-
params?:
|
|
503
|
-
opts?:
|
|
504
|
-
): Promise<
|
|
680
|
+
getCommitPath(
|
|
681
|
+
params?: ComAtprotoSyncGetCommitPath.QueryParams,
|
|
682
|
+
opts?: ComAtprotoSyncGetCommitPath.CallOptions,
|
|
683
|
+
): Promise<ComAtprotoSyncGetCommitPath.Response> {
|
|
505
684
|
return this._service.xrpc
|
|
506
|
-
.call('com.atproto.sync.
|
|
685
|
+
.call('com.atproto.sync.getCommitPath', params, undefined, opts)
|
|
507
686
|
.catch((e) => {
|
|
508
|
-
throw
|
|
687
|
+
throw ComAtprotoSyncGetCommitPath.toKnownErr(e)
|
|
509
688
|
})
|
|
510
689
|
}
|
|
511
690
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
opts?:
|
|
515
|
-
): Promise<
|
|
691
|
+
getHead(
|
|
692
|
+
params?: ComAtprotoSyncGetHead.QueryParams,
|
|
693
|
+
opts?: ComAtprotoSyncGetHead.CallOptions,
|
|
694
|
+
): Promise<ComAtprotoSyncGetHead.Response> {
|
|
516
695
|
return this._service.xrpc
|
|
517
|
-
.call('com.atproto.sync.
|
|
696
|
+
.call('com.atproto.sync.getHead', params, undefined, opts)
|
|
518
697
|
.catch((e) => {
|
|
519
|
-
throw
|
|
698
|
+
throw ComAtprotoSyncGetHead.toKnownErr(e)
|
|
699
|
+
})
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
getRecord(
|
|
703
|
+
params?: ComAtprotoSyncGetRecord.QueryParams,
|
|
704
|
+
opts?: ComAtprotoSyncGetRecord.CallOptions,
|
|
705
|
+
): Promise<ComAtprotoSyncGetRecord.Response> {
|
|
706
|
+
return this._service.xrpc
|
|
707
|
+
.call('com.atproto.sync.getRecord', params, undefined, opts)
|
|
708
|
+
.catch((e) => {
|
|
709
|
+
throw ComAtprotoSyncGetRecord.toKnownErr(e)
|
|
710
|
+
})
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
getRepo(
|
|
714
|
+
params?: ComAtprotoSyncGetRepo.QueryParams,
|
|
715
|
+
opts?: ComAtprotoSyncGetRepo.CallOptions,
|
|
716
|
+
): Promise<ComAtprotoSyncGetRepo.Response> {
|
|
717
|
+
return this._service.xrpc
|
|
718
|
+
.call('com.atproto.sync.getRepo', params, undefined, opts)
|
|
719
|
+
.catch((e) => {
|
|
720
|
+
throw ComAtprotoSyncGetRepo.toKnownErr(e)
|
|
520
721
|
})
|
|
521
722
|
}
|
|
522
723
|
}
|
|
@@ -560,17 +761,6 @@ export class ActorNS {
|
|
|
560
761
|
this.profile = new ProfileRecord(service)
|
|
561
762
|
}
|
|
562
763
|
|
|
563
|
-
createScene(
|
|
564
|
-
data?: AppBskyActorCreateScene.InputSchema,
|
|
565
|
-
opts?: AppBskyActorCreateScene.CallOptions,
|
|
566
|
-
): Promise<AppBskyActorCreateScene.Response> {
|
|
567
|
-
return this._service.xrpc
|
|
568
|
-
.call('app.bsky.actor.createScene', opts?.qp, data, opts)
|
|
569
|
-
.catch((e) => {
|
|
570
|
-
throw AppBskyActorCreateScene.toKnownErr(e)
|
|
571
|
-
})
|
|
572
|
-
}
|
|
573
|
-
|
|
574
764
|
getProfile(
|
|
575
765
|
params?: AppBskyActorGetProfile.QueryParams,
|
|
576
766
|
opts?: AppBskyActorGetProfile.CallOptions,
|
|
@@ -700,14 +890,12 @@ export class FeedNS {
|
|
|
700
890
|
_service: ServiceClient
|
|
701
891
|
post: PostRecord
|
|
702
892
|
repost: RepostRecord
|
|
703
|
-
trend: TrendRecord
|
|
704
893
|
vote: VoteRecord
|
|
705
894
|
|
|
706
895
|
constructor(service: ServiceClient) {
|
|
707
896
|
this._service = service
|
|
708
897
|
this.post = new PostRecord(service)
|
|
709
898
|
this.repost = new RepostRecord(service)
|
|
710
|
-
this.trend = new TrendRecord(service)
|
|
711
899
|
this.vote = new VoteRecord(service)
|
|
712
900
|
}
|
|
713
901
|
|
|
@@ -900,67 +1088,6 @@ export class RepostRecord {
|
|
|
900
1088
|
}
|
|
901
1089
|
}
|
|
902
1090
|
|
|
903
|
-
export class TrendRecord {
|
|
904
|
-
_service: ServiceClient
|
|
905
|
-
|
|
906
|
-
constructor(service: ServiceClient) {
|
|
907
|
-
this._service = service
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
async list(
|
|
911
|
-
params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
|
|
912
|
-
): Promise<{
|
|
913
|
-
cursor?: string
|
|
914
|
-
records: { uri: string; value: AppBskyFeedTrend.Record }[]
|
|
915
|
-
}> {
|
|
916
|
-
const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
|
|
917
|
-
collection: 'app.bsky.feed.trend',
|
|
918
|
-
...params,
|
|
919
|
-
})
|
|
920
|
-
return res.data
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
async get(
|
|
924
|
-
params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
|
|
925
|
-
): Promise<{ uri: string; cid: string; value: AppBskyFeedTrend.Record }> {
|
|
926
|
-
const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
|
|
927
|
-
collection: 'app.bsky.feed.trend',
|
|
928
|
-
...params,
|
|
929
|
-
})
|
|
930
|
-
return res.data
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
async create(
|
|
934
|
-
params: Omit<
|
|
935
|
-
ComAtprotoRepoCreateRecord.InputSchema,
|
|
936
|
-
'collection' | 'record'
|
|
937
|
-
>,
|
|
938
|
-
record: AppBskyFeedTrend.Record,
|
|
939
|
-
headers?: Record<string, string>,
|
|
940
|
-
): Promise<{ uri: string; cid: string }> {
|
|
941
|
-
record.$type = 'app.bsky.feed.trend'
|
|
942
|
-
const res = await this._service.xrpc.call(
|
|
943
|
-
'com.atproto.repo.createRecord',
|
|
944
|
-
undefined,
|
|
945
|
-
{ collection: 'app.bsky.feed.trend', ...params, record },
|
|
946
|
-
{ encoding: 'application/json', headers },
|
|
947
|
-
)
|
|
948
|
-
return res.data
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
async delete(
|
|
952
|
-
params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
953
|
-
headers?: Record<string, string>,
|
|
954
|
-
): Promise<void> {
|
|
955
|
-
await this._service.xrpc.call(
|
|
956
|
-
'com.atproto.repo.deleteRecord',
|
|
957
|
-
undefined,
|
|
958
|
-
{ collection: 'app.bsky.feed.trend', ...params },
|
|
959
|
-
{ headers },
|
|
960
|
-
)
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
|
|
964
1091
|
export class VoteRecord {
|
|
965
1092
|
_service: ServiceClient
|
|
966
1093
|
|
|
@@ -1035,17 +1162,6 @@ export class GraphNS {
|
|
|
1035
1162
|
this.follow = new FollowRecord(service)
|
|
1036
1163
|
}
|
|
1037
1164
|
|
|
1038
|
-
getAssertions(
|
|
1039
|
-
params?: AppBskyGraphGetAssertions.QueryParams,
|
|
1040
|
-
opts?: AppBskyGraphGetAssertions.CallOptions,
|
|
1041
|
-
): Promise<AppBskyGraphGetAssertions.Response> {
|
|
1042
|
-
return this._service.xrpc
|
|
1043
|
-
.call('app.bsky.graph.getAssertions', params, undefined, opts)
|
|
1044
|
-
.catch((e) => {
|
|
1045
|
-
throw AppBskyGraphGetAssertions.toKnownErr(e)
|
|
1046
|
-
})
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
1165
|
getFollowers(
|
|
1050
1166
|
params?: AppBskyGraphGetFollowers.QueryParams,
|
|
1051
1167
|
opts?: AppBskyGraphGetFollowers.CallOptions,
|
|
@@ -1068,28 +1184,6 @@ export class GraphNS {
|
|
|
1068
1184
|
})
|
|
1069
1185
|
}
|
|
1070
1186
|
|
|
1071
|
-
getMembers(
|
|
1072
|
-
params?: AppBskyGraphGetMembers.QueryParams,
|
|
1073
|
-
opts?: AppBskyGraphGetMembers.CallOptions,
|
|
1074
|
-
): Promise<AppBskyGraphGetMembers.Response> {
|
|
1075
|
-
return this._service.xrpc
|
|
1076
|
-
.call('app.bsky.graph.getMembers', params, undefined, opts)
|
|
1077
|
-
.catch((e) => {
|
|
1078
|
-
throw AppBskyGraphGetMembers.toKnownErr(e)
|
|
1079
|
-
})
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
getMemberships(
|
|
1083
|
-
params?: AppBskyGraphGetMemberships.QueryParams,
|
|
1084
|
-
opts?: AppBskyGraphGetMemberships.CallOptions,
|
|
1085
|
-
): Promise<AppBskyGraphGetMemberships.Response> {
|
|
1086
|
-
return this._service.xrpc
|
|
1087
|
-
.call('app.bsky.graph.getMemberships', params, undefined, opts)
|
|
1088
|
-
.catch((e) => {
|
|
1089
|
-
throw AppBskyGraphGetMemberships.toKnownErr(e)
|
|
1090
|
-
})
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
1187
|
getMutes(
|
|
1094
1188
|
params?: AppBskyGraphGetMutes.QueryParams,
|
|
1095
1189
|
opts?: AppBskyGraphGetMutes.CallOptions,
|