@atproto/api 0.2.10 → 0.3.0
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/README.md +2 -2
- package/dist/client/index.d.ts +37 -0
- package/dist/client/lexicons.d.ts +199 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +2 -0
- package/dist/client/types/app/bsky/actor/searchActor.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchActorTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +10 -3
- package/dist/client/types/app/bsky/embed/record.d.ts +7 -1
- package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +9 -2
- package/dist/client/types/app/bsky/feed/generator.d.ts +12 -0
- package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +7 -1
- package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +21 -0
- package/dist/client/types/app/bsky/feed/getFeed.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getFeedSkeleton.d.ts +22 -0
- package/dist/client/types/app/bsky/feed/getPostThread.d.ts +1 -1
- package/dist/client/types/app/bsky/feed/unbookmarkFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/block.d.ts +8 -0
- package/dist/client/types/app/bsky/graph/getBlocks.d.ts +21 -0
- package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +4 -1
- package/dist/client/types/com/atproto/admin/disableAccountInvites.d.ts +17 -0
- package/dist/client/types/com/atproto/admin/enableAccountInvites.d.ts +17 -0
- package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +29 -0
- package/dist/client/types/com/atproto/repo/importRepo.d.ts +19 -0
- package/dist/client/types/com/atproto/repo/rebaseRepo.d.ts +21 -0
- package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +19 -0
- package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +31 -0
- package/dist/index.js +605 -235
- package/dist/index.js.map +4 -4
- package/dist/src/client/index.d.ts +462 -0
- package/dist/src/client/lexicons.d.ts +2910 -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/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 +18 -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 +26 -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 +21 -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/acceptedBadge.d.ts +10 -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/src/types/todo/adx/createAccount.d.ts +36 -0
- package/dist/src/types/todo/adx/createInviteCode.d.ts +19 -0
- package/dist/src/types/todo/adx/createSession.d.ts +22 -0
- package/dist/src/types/todo/adx/deleteAccount.d.ts +19 -0
- package/dist/src/types/todo/adx/deleteSession.d.ts +19 -0
- package/dist/src/types/todo/adx/getAccount.d.ts +19 -0
- package/dist/src/types/todo/adx/getAccountsConfig.d.ts +17 -0
- package/dist/src/types/todo/adx/getSession.d.ts +17 -0
- package/dist/src/types/todo/adx/repoBatchWrite.d.ts +34 -0
- package/dist/src/types/todo/adx/repoCreateRecord.d.ts +22 -0
- package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +15 -0
- package/dist/src/types/todo/adx/repoDescribe.d.ts +21 -0
- package/dist/src/types/todo/adx/repoGetRecord.d.ts +20 -0
- package/dist/src/types/todo/adx/repoListRecords.d.ts +25 -0
- package/dist/src/types/todo/adx/repoPutRecord.d.ts +23 -0
- package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +18 -0
- package/dist/src/types/todo/adx/resetAccountPassword.d.ts +25 -0
- package/dist/src/types/todo/adx/resolveName.d.ts +17 -0
- package/dist/src/types/todo/adx/syncGetRepo.d.ts +15 -0
- package/dist/src/types/todo/adx/syncGetRoot.d.ts +17 -0
- package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +14 -0
- package/dist/src/types/todo/social/badge.d.ts +23 -0
- package/dist/src/types/todo/social/follow.d.ts +5 -0
- package/dist/src/types/todo/social/getAuthorFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getHomeFeed.d.ts +55 -0
- package/dist/src/types/todo/social/getLikedBy.d.ts +26 -0
- package/dist/src/types/todo/social/getNotificationCount.d.ts +16 -0
- package/dist/src/types/todo/social/getNotifications.d.ts +31 -0
- package/dist/src/types/todo/social/getPostThread.d.ts +54 -0
- package/dist/src/types/todo/social/getProfile.d.ts +40 -0
- package/dist/src/types/todo/social/getRepostedBy.d.ts +26 -0
- package/dist/src/types/todo/social/getUserFollowers.d.ts +30 -0
- package/dist/src/types/todo/social/getUserFollows.d.ts +30 -0
- package/dist/src/types/todo/social/like.d.ts +5 -0
- package/dist/src/types/todo/social/mediaEmbed.d.ts +15 -0
- package/dist/src/types/todo/social/post.d.ts +18 -0
- package/dist/src/types/todo/social/postNotificationsSeen.d.ts +19 -0
- package/dist/src/types/todo/social/profile.d.ts +10 -0
- package/dist/src/types/todo/social/repost.d.ts +5 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +6 -1
- package/src/client/index.ts +118 -0
- package/src/client/lexicons.ts +215 -0
- package/src/client/types/app/bsky/actor/defs.ts +2 -0
- package/src/client/types/app/bsky/embed/record.ts +22 -1
- package/src/client/types/app/bsky/feed/defs.ts +20 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +14 -0
- package/src/client/types/app/bsky/feed/getPostThread.ts +1 -0
- package/src/client/types/app/bsky/graph/block.ts +26 -0
- package/src/client/types/app/bsky/graph/getBlocks.ts +38 -0
- package/src/client/types/app/bsky/unspecced/getPopular.ts +1 -0
- package/src/client/types/com/atproto/admin/defs.ts +5 -0
- package/src/client/types/com/atproto/admin/disableAccountInvites.ts +32 -0
- package/src/client/types/com/atproto/admin/enableAccountInvites.ts +32 -0
- package/src/client/types/com/atproto/repo/rebaseRepo.ts +42 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/helpers/bsky.d.ts +0 -20
- package/dist/mixins/bsky.d.ts +0 -23
- package/dist/rich-text/sanitize.d.ts +0 -4
package/README.md
CHANGED
|
@@ -176,7 +176,7 @@ const res1 = await agent.com.atproto.repo.createRecord(
|
|
|
176
176
|
record: {
|
|
177
177
|
$type: 'app.bsky.feed.post',
|
|
178
178
|
text: 'Hello, world!',
|
|
179
|
-
createdAt:
|
|
179
|
+
createdAt: new Date().toISOString()
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
)
|
|
@@ -184,7 +184,7 @@ const res2 = await agent.com.atproto.repo.listRecords({repo: alice.did, collecti
|
|
|
184
184
|
|
|
185
185
|
const res3 = await agent.app.bsky.feed.post.create({repo: alice.did}, {
|
|
186
186
|
text: 'Hello, world!',
|
|
187
|
-
createdAt:
|
|
187
|
+
createdAt: new Date().toISOString()
|
|
188
188
|
})
|
|
189
189
|
const res4 = await agent.app.bsky.feed.post.list({repo: alice.did})
|
|
190
190
|
```
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atproto/xrpc';
|
|
2
|
+
import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
|
|
2
3
|
import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
|
|
4
|
+
import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
|
|
3
5
|
import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
|
|
4
6
|
import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
|
|
5
7
|
import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
|
|
@@ -24,6 +26,7 @@ import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRe
|
|
|
24
26
|
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
|
|
25
27
|
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
|
|
26
28
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
|
|
29
|
+
import * as ComAtprotoRepoRebaseRepo from './types/com/atproto/repo/rebaseRepo';
|
|
27
30
|
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
|
|
28
31
|
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
|
|
29
32
|
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword';
|
|
@@ -67,7 +70,9 @@ import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
|
|
|
67
70
|
import * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
68
71
|
import * as AppBskyFeedPost from './types/app/bsky/feed/post';
|
|
69
72
|
import * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
|
|
73
|
+
import * as AppBskyGraphBlock from './types/app/bsky/graph/block';
|
|
70
74
|
import * as AppBskyGraphFollow from './types/app/bsky/graph/follow';
|
|
75
|
+
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks';
|
|
71
76
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers';
|
|
72
77
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows';
|
|
73
78
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes';
|
|
@@ -78,7 +83,9 @@ import * as AppBskyNotificationListNotifications from './types/app/bsky/notifica
|
|
|
78
83
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen';
|
|
79
84
|
import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular';
|
|
80
85
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs';
|
|
86
|
+
export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
|
|
81
87
|
export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
|
|
88
|
+
export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
|
|
82
89
|
export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
|
|
83
90
|
export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
|
|
84
91
|
export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
|
|
@@ -106,6 +113,7 @@ export * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRe
|
|
|
106
113
|
export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord';
|
|
107
114
|
export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords';
|
|
108
115
|
export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord';
|
|
116
|
+
export * as ComAtprotoRepoRebaseRepo from './types/com/atproto/repo/rebaseRepo';
|
|
109
117
|
export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef';
|
|
110
118
|
export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob';
|
|
111
119
|
export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount';
|
|
@@ -158,7 +166,9 @@ export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
|
|
|
158
166
|
export * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
159
167
|
export * as AppBskyFeedPost from './types/app/bsky/feed/post';
|
|
160
168
|
export * as AppBskyFeedRepost from './types/app/bsky/feed/repost';
|
|
169
|
+
export * as AppBskyGraphBlock from './types/app/bsky/graph/block';
|
|
161
170
|
export * as AppBskyGraphFollow from './types/app/bsky/graph/follow';
|
|
171
|
+
export * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks';
|
|
162
172
|
export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers';
|
|
163
173
|
export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows';
|
|
164
174
|
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes';
|
|
@@ -173,6 +183,7 @@ export declare const COM_ATPROTO_ADMIN: {
|
|
|
173
183
|
DefsTakedown: string;
|
|
174
184
|
DefsFlag: string;
|
|
175
185
|
DefsAcknowledge: string;
|
|
186
|
+
DefsEscalate: string;
|
|
176
187
|
};
|
|
177
188
|
export declare const COM_ATPROTO_MODERATION: {
|
|
178
189
|
DefsReasonSpam: string;
|
|
@@ -214,7 +225,9 @@ export declare class AtprotoNS {
|
|
|
214
225
|
export declare class AdminNS {
|
|
215
226
|
_service: AtpServiceClient;
|
|
216
227
|
constructor(service: AtpServiceClient);
|
|
228
|
+
disableAccountInvites(data?: ComAtprotoAdminDisableAccountInvites.InputSchema, opts?: ComAtprotoAdminDisableAccountInvites.CallOptions): Promise<ComAtprotoAdminDisableAccountInvites.Response>;
|
|
217
229
|
disableInviteCodes(data?: ComAtprotoAdminDisableInviteCodes.InputSchema, opts?: ComAtprotoAdminDisableInviteCodes.CallOptions): Promise<ComAtprotoAdminDisableInviteCodes.Response>;
|
|
230
|
+
enableAccountInvites(data?: ComAtprotoAdminEnableAccountInvites.InputSchema, opts?: ComAtprotoAdminEnableAccountInvites.CallOptions): Promise<ComAtprotoAdminEnableAccountInvites.Response>;
|
|
218
231
|
getInviteCodes(params?: ComAtprotoAdminGetInviteCodes.QueryParams, opts?: ComAtprotoAdminGetInviteCodes.CallOptions): Promise<ComAtprotoAdminGetInviteCodes.Response>;
|
|
219
232
|
getModerationAction(params?: ComAtprotoAdminGetModerationAction.QueryParams, opts?: ComAtprotoAdminGetModerationAction.CallOptions): Promise<ComAtprotoAdminGetModerationAction.Response>;
|
|
220
233
|
getModerationActions(params?: ComAtprotoAdminGetModerationActions.QueryParams, opts?: ComAtprotoAdminGetModerationActions.CallOptions): Promise<ComAtprotoAdminGetModerationActions.Response>;
|
|
@@ -255,6 +268,7 @@ export declare class RepoNS {
|
|
|
255
268
|
getRecord(params?: ComAtprotoRepoGetRecord.QueryParams, opts?: ComAtprotoRepoGetRecord.CallOptions): Promise<ComAtprotoRepoGetRecord.Response>;
|
|
256
269
|
listRecords(params?: ComAtprotoRepoListRecords.QueryParams, opts?: ComAtprotoRepoListRecords.CallOptions): Promise<ComAtprotoRepoListRecords.Response>;
|
|
257
270
|
putRecord(data?: ComAtprotoRepoPutRecord.InputSchema, opts?: ComAtprotoRepoPutRecord.CallOptions): Promise<ComAtprotoRepoPutRecord.Response>;
|
|
271
|
+
rebaseRepo(data?: ComAtprotoRepoRebaseRepo.InputSchema, opts?: ComAtprotoRepoRebaseRepo.CallOptions): Promise<ComAtprotoRepoRebaseRepo.Response>;
|
|
258
272
|
uploadBlob(data?: ComAtprotoRepoUploadBlob.InputSchema, opts?: ComAtprotoRepoUploadBlob.CallOptions): Promise<ComAtprotoRepoUploadBlob.Response>;
|
|
259
273
|
}
|
|
260
274
|
export declare class ServerNS {
|
|
@@ -421,14 +435,37 @@ export declare class RepostRecord {
|
|
|
421
435
|
}
|
|
422
436
|
export declare class GraphNS {
|
|
423
437
|
_service: AtpServiceClient;
|
|
438
|
+
block: BlockRecord;
|
|
424
439
|
follow: FollowRecord;
|
|
425
440
|
constructor(service: AtpServiceClient);
|
|
441
|
+
getBlocks(params?: AppBskyGraphGetBlocks.QueryParams, opts?: AppBskyGraphGetBlocks.CallOptions): Promise<AppBskyGraphGetBlocks.Response>;
|
|
426
442
|
getFollowers(params?: AppBskyGraphGetFollowers.QueryParams, opts?: AppBskyGraphGetFollowers.CallOptions): Promise<AppBskyGraphGetFollowers.Response>;
|
|
427
443
|
getFollows(params?: AppBskyGraphGetFollows.QueryParams, opts?: AppBskyGraphGetFollows.CallOptions): Promise<AppBskyGraphGetFollows.Response>;
|
|
428
444
|
getMutes(params?: AppBskyGraphGetMutes.QueryParams, opts?: AppBskyGraphGetMutes.CallOptions): Promise<AppBskyGraphGetMutes.Response>;
|
|
429
445
|
muteActor(data?: AppBskyGraphMuteActor.InputSchema, opts?: AppBskyGraphMuteActor.CallOptions): Promise<AppBskyGraphMuteActor.Response>;
|
|
430
446
|
unmuteActor(data?: AppBskyGraphUnmuteActor.InputSchema, opts?: AppBskyGraphUnmuteActor.CallOptions): Promise<AppBskyGraphUnmuteActor.Response>;
|
|
431
447
|
}
|
|
448
|
+
export declare class BlockRecord {
|
|
449
|
+
_service: AtpServiceClient;
|
|
450
|
+
constructor(service: AtpServiceClient);
|
|
451
|
+
list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
|
452
|
+
cursor?: string;
|
|
453
|
+
records: {
|
|
454
|
+
uri: string;
|
|
455
|
+
value: AppBskyGraphBlock.Record;
|
|
456
|
+
}[];
|
|
457
|
+
}>;
|
|
458
|
+
get(params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
|
459
|
+
uri: string;
|
|
460
|
+
cid: string;
|
|
461
|
+
value: AppBskyGraphBlock.Record;
|
|
462
|
+
}>;
|
|
463
|
+
create(params: Omit<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: AppBskyGraphBlock.Record, headers?: Record<string, string>): Promise<{
|
|
464
|
+
uri: string;
|
|
465
|
+
cid: string;
|
|
466
|
+
}>;
|
|
467
|
+
delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
468
|
+
}
|
|
432
469
|
export declare class FollowRecord {
|
|
433
470
|
_service: AtpServiceClient;
|
|
434
471
|
constructor(service: AtpServiceClient);
|
|
@@ -164,6 +164,10 @@ export declare const schemaDict: {
|
|
|
164
164
|
type: string;
|
|
165
165
|
description: string;
|
|
166
166
|
};
|
|
167
|
+
escalate: {
|
|
168
|
+
type: string;
|
|
169
|
+
description: string;
|
|
170
|
+
};
|
|
167
171
|
reportView: {
|
|
168
172
|
type: string;
|
|
169
173
|
required: string[];
|
|
@@ -266,6 +270,9 @@ export declare const schemaDict: {
|
|
|
266
270
|
type: string;
|
|
267
271
|
ref: string;
|
|
268
272
|
};
|
|
273
|
+
invitesDisabled: {
|
|
274
|
+
type: string;
|
|
275
|
+
};
|
|
269
276
|
};
|
|
270
277
|
};
|
|
271
278
|
repoViewDetail: {
|
|
@@ -315,6 +322,9 @@ export declare const schemaDict: {
|
|
|
315
322
|
ref: string;
|
|
316
323
|
};
|
|
317
324
|
};
|
|
325
|
+
invitesDisabled: {
|
|
326
|
+
type: string;
|
|
327
|
+
};
|
|
318
328
|
};
|
|
319
329
|
};
|
|
320
330
|
repoRef: {
|
|
@@ -497,6 +507,29 @@ export declare const schemaDict: {
|
|
|
497
507
|
};
|
|
498
508
|
};
|
|
499
509
|
};
|
|
510
|
+
ComAtprotoAdminDisableAccountInvites: {
|
|
511
|
+
lexicon: number;
|
|
512
|
+
id: string;
|
|
513
|
+
defs: {
|
|
514
|
+
main: {
|
|
515
|
+
type: string;
|
|
516
|
+
description: string;
|
|
517
|
+
input: {
|
|
518
|
+
encoding: string;
|
|
519
|
+
schema: {
|
|
520
|
+
type: string;
|
|
521
|
+
required: string[];
|
|
522
|
+
properties: {
|
|
523
|
+
account: {
|
|
524
|
+
type: string;
|
|
525
|
+
format: string;
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
500
533
|
ComAtprotoAdminDisableInviteCodes: {
|
|
501
534
|
lexicon: number;
|
|
502
535
|
id: string;
|
|
@@ -527,6 +560,29 @@ export declare const schemaDict: {
|
|
|
527
560
|
};
|
|
528
561
|
};
|
|
529
562
|
};
|
|
563
|
+
ComAtprotoAdminEnableAccountInvites: {
|
|
564
|
+
lexicon: number;
|
|
565
|
+
id: string;
|
|
566
|
+
defs: {
|
|
567
|
+
main: {
|
|
568
|
+
type: string;
|
|
569
|
+
description: string;
|
|
570
|
+
input: {
|
|
571
|
+
encoding: string;
|
|
572
|
+
schema: {
|
|
573
|
+
type: string;
|
|
574
|
+
required: string[];
|
|
575
|
+
properties: {
|
|
576
|
+
account: {
|
|
577
|
+
type: string;
|
|
578
|
+
format: string;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
};
|
|
530
586
|
ComAtprotoAdminGetInviteCodes: {
|
|
531
587
|
lexicon: number;
|
|
532
588
|
id: string;
|
|
@@ -1798,6 +1854,38 @@ export declare const schemaDict: {
|
|
|
1798
1854
|
};
|
|
1799
1855
|
};
|
|
1800
1856
|
};
|
|
1857
|
+
ComAtprotoRepoRebaseRepo: {
|
|
1858
|
+
lexicon: number;
|
|
1859
|
+
id: string;
|
|
1860
|
+
defs: {
|
|
1861
|
+
main: {
|
|
1862
|
+
type: string;
|
|
1863
|
+
description: string;
|
|
1864
|
+
input: {
|
|
1865
|
+
encoding: string;
|
|
1866
|
+
schema: {
|
|
1867
|
+
type: string;
|
|
1868
|
+
required: string[];
|
|
1869
|
+
properties: {
|
|
1870
|
+
repo: {
|
|
1871
|
+
type: string;
|
|
1872
|
+
format: string;
|
|
1873
|
+
description: string;
|
|
1874
|
+
};
|
|
1875
|
+
swapCommit: {
|
|
1876
|
+
type: string;
|
|
1877
|
+
format: string;
|
|
1878
|
+
description: string;
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
};
|
|
1882
|
+
};
|
|
1883
|
+
errors: {
|
|
1884
|
+
name: string;
|
|
1885
|
+
}[];
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1801
1889
|
ComAtprotoRepoStrongRef: {
|
|
1802
1890
|
lexicon: number;
|
|
1803
1891
|
id: string;
|
|
@@ -3169,6 +3257,13 @@ export declare const schemaDict: {
|
|
|
3169
3257
|
muted: {
|
|
3170
3258
|
type: string;
|
|
3171
3259
|
};
|
|
3260
|
+
blockedBy: {
|
|
3261
|
+
type: string;
|
|
3262
|
+
};
|
|
3263
|
+
blocking: {
|
|
3264
|
+
type: string;
|
|
3265
|
+
format: string;
|
|
3266
|
+
};
|
|
3172
3267
|
following: {
|
|
3173
3268
|
type: string;
|
|
3174
3269
|
format: string;
|
|
@@ -3615,6 +3710,16 @@ export declare const schemaDict: {
|
|
|
3615
3710
|
};
|
|
3616
3711
|
};
|
|
3617
3712
|
};
|
|
3713
|
+
viewBlocked: {
|
|
3714
|
+
type: string;
|
|
3715
|
+
required: string[];
|
|
3716
|
+
properties: {
|
|
3717
|
+
uri: {
|
|
3718
|
+
type: string;
|
|
3719
|
+
format: string;
|
|
3720
|
+
};
|
|
3721
|
+
};
|
|
3722
|
+
};
|
|
3618
3723
|
};
|
|
3619
3724
|
};
|
|
3620
3725
|
AppBskyEmbedRecordWithMedia: {
|
|
@@ -3799,6 +3904,20 @@ export declare const schemaDict: {
|
|
|
3799
3904
|
};
|
|
3800
3905
|
};
|
|
3801
3906
|
};
|
|
3907
|
+
blockedPost: {
|
|
3908
|
+
type: string;
|
|
3909
|
+
required: string[];
|
|
3910
|
+
properties: {
|
|
3911
|
+
uri: {
|
|
3912
|
+
type: string;
|
|
3913
|
+
format: string;
|
|
3914
|
+
};
|
|
3915
|
+
blocked: {
|
|
3916
|
+
type: string;
|
|
3917
|
+
const: boolean;
|
|
3918
|
+
};
|
|
3919
|
+
};
|
|
3920
|
+
};
|
|
3802
3921
|
};
|
|
3803
3922
|
};
|
|
3804
3923
|
AppBskyFeedGetAuthorFeed: {
|
|
@@ -3846,6 +3965,9 @@ export declare const schemaDict: {
|
|
|
3846
3965
|
};
|
|
3847
3966
|
};
|
|
3848
3967
|
};
|
|
3968
|
+
errors: {
|
|
3969
|
+
name: string;
|
|
3970
|
+
}[];
|
|
3849
3971
|
};
|
|
3850
3972
|
};
|
|
3851
3973
|
};
|
|
@@ -4252,6 +4374,31 @@ export declare const schemaDict: {
|
|
|
4252
4374
|
};
|
|
4253
4375
|
};
|
|
4254
4376
|
};
|
|
4377
|
+
AppBskyGraphBlock: {
|
|
4378
|
+
lexicon: number;
|
|
4379
|
+
id: string;
|
|
4380
|
+
defs: {
|
|
4381
|
+
main: {
|
|
4382
|
+
type: string;
|
|
4383
|
+
description: string;
|
|
4384
|
+
key: string;
|
|
4385
|
+
record: {
|
|
4386
|
+
type: string;
|
|
4387
|
+
required: string[];
|
|
4388
|
+
properties: {
|
|
4389
|
+
subject: {
|
|
4390
|
+
type: string;
|
|
4391
|
+
format: string;
|
|
4392
|
+
};
|
|
4393
|
+
createdAt: {
|
|
4394
|
+
type: string;
|
|
4395
|
+
format: string;
|
|
4396
|
+
};
|
|
4397
|
+
};
|
|
4398
|
+
};
|
|
4399
|
+
};
|
|
4400
|
+
};
|
|
4401
|
+
};
|
|
4255
4402
|
AppBskyGraphFollow: {
|
|
4256
4403
|
lexicon: number;
|
|
4257
4404
|
id: string;
|
|
@@ -4277,6 +4424,49 @@ export declare const schemaDict: {
|
|
|
4277
4424
|
};
|
|
4278
4425
|
};
|
|
4279
4426
|
};
|
|
4427
|
+
AppBskyGraphGetBlocks: {
|
|
4428
|
+
lexicon: number;
|
|
4429
|
+
id: string;
|
|
4430
|
+
defs: {
|
|
4431
|
+
main: {
|
|
4432
|
+
type: string;
|
|
4433
|
+
description: string;
|
|
4434
|
+
parameters: {
|
|
4435
|
+
type: string;
|
|
4436
|
+
properties: {
|
|
4437
|
+
limit: {
|
|
4438
|
+
type: string;
|
|
4439
|
+
minimum: number;
|
|
4440
|
+
maximum: number;
|
|
4441
|
+
default: number;
|
|
4442
|
+
};
|
|
4443
|
+
cursor: {
|
|
4444
|
+
type: string;
|
|
4445
|
+
};
|
|
4446
|
+
};
|
|
4447
|
+
};
|
|
4448
|
+
output: {
|
|
4449
|
+
encoding: string;
|
|
4450
|
+
schema: {
|
|
4451
|
+
type: string;
|
|
4452
|
+
required: string[];
|
|
4453
|
+
properties: {
|
|
4454
|
+
cursor: {
|
|
4455
|
+
type: string;
|
|
4456
|
+
};
|
|
4457
|
+
blocks: {
|
|
4458
|
+
type: string;
|
|
4459
|
+
items: {
|
|
4460
|
+
type: string;
|
|
4461
|
+
ref: string;
|
|
4462
|
+
};
|
|
4463
|
+
};
|
|
4464
|
+
};
|
|
4465
|
+
};
|
|
4466
|
+
};
|
|
4467
|
+
};
|
|
4468
|
+
};
|
|
4469
|
+
};
|
|
4280
4470
|
AppBskyGraphGetFollowers: {
|
|
4281
4471
|
lexicon: number;
|
|
4282
4472
|
id: string;
|
|
@@ -4683,6 +4873,10 @@ export declare const schemaDict: {
|
|
|
4683
4873
|
parameters: {
|
|
4684
4874
|
type: string;
|
|
4685
4875
|
properties: {
|
|
4876
|
+
includeNsfw: {
|
|
4877
|
+
type: string;
|
|
4878
|
+
default: boolean;
|
|
4879
|
+
};
|
|
4686
4880
|
limit: {
|
|
4687
4881
|
type: string;
|
|
4688
4882
|
minimum: number;
|
|
@@ -4721,7 +4915,9 @@ export declare const schemas: LexiconDoc[];
|
|
|
4721
4915
|
export declare const lexicons: Lexicons;
|
|
4722
4916
|
export declare const ids: {
|
|
4723
4917
|
ComAtprotoAdminDefs: string;
|
|
4918
|
+
ComAtprotoAdminDisableAccountInvites: string;
|
|
4724
4919
|
ComAtprotoAdminDisableInviteCodes: string;
|
|
4920
|
+
ComAtprotoAdminEnableAccountInvites: string;
|
|
4725
4921
|
ComAtprotoAdminGetInviteCodes: string;
|
|
4726
4922
|
ComAtprotoAdminGetModerationAction: string;
|
|
4727
4923
|
ComAtprotoAdminGetModerationActions: string;
|
|
@@ -4749,6 +4945,7 @@ export declare const ids: {
|
|
|
4749
4945
|
ComAtprotoRepoGetRecord: string;
|
|
4750
4946
|
ComAtprotoRepoListRecords: string;
|
|
4751
4947
|
ComAtprotoRepoPutRecord: string;
|
|
4948
|
+
ComAtprotoRepoRebaseRepo: string;
|
|
4752
4949
|
ComAtprotoRepoStrongRef: string;
|
|
4753
4950
|
ComAtprotoRepoUploadBlob: string;
|
|
4754
4951
|
ComAtprotoServerCreateAccount: string;
|
|
@@ -4801,7 +4998,9 @@ export declare const ids: {
|
|
|
4801
4998
|
AppBskyFeedLike: string;
|
|
4802
4999
|
AppBskyFeedPost: string;
|
|
4803
5000
|
AppBskyFeedRepost: string;
|
|
5001
|
+
AppBskyGraphBlock: string;
|
|
4804
5002
|
AppBskyGraphFollow: string;
|
|
5003
|
+
AppBskyGraphGetBlocks: string;
|
|
4805
5004
|
AppBskyGraphGetFollowers: string;
|
|
4806
5005
|
AppBskyGraphGetFollows: string;
|
|
4807
5006
|
AppBskyGraphGetMutes: string;
|
|
@@ -43,6 +43,8 @@ export declare function isProfileViewDetailed(v: unknown): v is ProfileViewDetai
|
|
|
43
43
|
export declare function validateProfileViewDetailed(v: unknown): ValidationResult;
|
|
44
44
|
export interface ViewerState {
|
|
45
45
|
muted?: boolean;
|
|
46
|
+
blockedBy?: boolean;
|
|
47
|
+
blocking?: string;
|
|
46
48
|
following?: string;
|
|
47
49
|
followedBy?: string;
|
|
48
50
|
[k: string]: unknown;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyActorDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
term?: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
actors: AppBskyActorDefs.ProfileViewBasic[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
headers?: Headers;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyActorDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
term?: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
actors: AppBskyActorDefs.WithInfo[];
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
headers?: Headers;
|
|
14
|
+
}
|
|
15
|
+
export interface Response {
|
|
16
|
+
success: boolean;
|
|
17
|
+
headers: Headers;
|
|
18
|
+
data: OutputSchema;
|
|
19
|
+
}
|
|
20
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
|
-
import { BlobRef } from '@atproto/lexicon';
|
|
3
2
|
export interface QueryParams {
|
|
4
3
|
}
|
|
5
4
|
export interface InputSchema {
|
|
6
5
|
displayName?: string;
|
|
7
6
|
description?: string | null;
|
|
8
|
-
avatar?:
|
|
9
|
-
|
|
7
|
+
avatar?: {
|
|
8
|
+
cid: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
} | null;
|
|
12
|
+
banner?: {
|
|
13
|
+
cid: string;
|
|
14
|
+
mimeType: string;
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
} | null;
|
|
10
17
|
[k: string]: unknown;
|
|
11
18
|
}
|
|
12
19
|
export interface OutputSchema {
|
|
@@ -12,7 +12,7 @@ export interface Main {
|
|
|
12
12
|
export declare function isMain(v: unknown): v is Main;
|
|
13
13
|
export declare function validateMain(v: unknown): ValidationResult;
|
|
14
14
|
export interface View {
|
|
15
|
-
record: ViewRecord | ViewNotFound | {
|
|
15
|
+
record: ViewRecord | ViewNotFound | ViewBlocked | {
|
|
16
16
|
$type: string;
|
|
17
17
|
[k: string]: unknown;
|
|
18
18
|
};
|
|
@@ -41,3 +41,9 @@ export interface ViewNotFound {
|
|
|
41
41
|
}
|
|
42
42
|
export declare function isViewNotFound(v: unknown): v is ViewNotFound;
|
|
43
43
|
export declare function validateViewNotFound(v: unknown): ValidationResult;
|
|
44
|
+
export interface ViewBlocked {
|
|
45
|
+
uri: string;
|
|
46
|
+
[k: string]: unknown;
|
|
47
|
+
}
|
|
48
|
+
export declare function isViewBlocked(v: unknown): v is ViewBlocked;
|
|
49
|
+
export declare function validateViewBlocked(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
export interface QueryParams {
|
|
3
|
+
}
|
|
4
|
+
export interface InputSchema {
|
|
5
|
+
feed: string;
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface CallOptions {
|
|
9
|
+
headers?: Headers;
|
|
10
|
+
qp?: QueryParams;
|
|
11
|
+
encoding: 'application/json';
|
|
12
|
+
}
|
|
13
|
+
export interface Response {
|
|
14
|
+
success: boolean;
|
|
15
|
+
headers: Headers;
|
|
16
|
+
}
|
|
17
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -58,11 +58,11 @@ export declare function isReasonRepost(v: unknown): v is ReasonRepost;
|
|
|
58
58
|
export declare function validateReasonRepost(v: unknown): ValidationResult;
|
|
59
59
|
export interface ThreadViewPost {
|
|
60
60
|
post: PostView;
|
|
61
|
-
parent?: ThreadViewPost | NotFoundPost | {
|
|
61
|
+
parent?: ThreadViewPost | NotFoundPost | BlockedPost | {
|
|
62
62
|
$type: string;
|
|
63
63
|
[k: string]: unknown;
|
|
64
64
|
};
|
|
65
|
-
replies?: (ThreadViewPost | NotFoundPost | {
|
|
65
|
+
replies?: (ThreadViewPost | NotFoundPost | BlockedPost | {
|
|
66
66
|
$type: string;
|
|
67
67
|
[k: string]: unknown;
|
|
68
68
|
})[];
|
|
@@ -77,3 +77,10 @@ export interface NotFoundPost {
|
|
|
77
77
|
}
|
|
78
78
|
export declare function isNotFoundPost(v: unknown): v is NotFoundPost;
|
|
79
79
|
export declare function validateNotFoundPost(v: unknown): ValidationResult;
|
|
80
|
+
export interface BlockedPost {
|
|
81
|
+
uri: string;
|
|
82
|
+
blocked: true;
|
|
83
|
+
[k: string]: unknown;
|
|
84
|
+
}
|
|
85
|
+
export declare function isBlockedPost(v: unknown): v is BlockedPost;
|
|
86
|
+
export declare function validateBlockedPost(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon';
|
|
2
|
+
import * as AppBskyRichtextFacet from '../richtext/facet';
|
|
3
|
+
export interface Record {
|
|
4
|
+
did: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
descriptionFacets?: AppBskyRichtextFacet.Main[];
|
|
7
|
+
avatar?: BlobRef;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export declare function isRecord(v: unknown): v is Record;
|
|
12
|
+
export declare function validateRecord(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
actor: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
headers?: Headers;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
2
|
import * as AppBskyFeedDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
actor: string;
|
|
@@ -19,4 +19,10 @@ export interface Response {
|
|
|
19
19
|
headers: Headers;
|
|
20
20
|
data: OutputSchema;
|
|
21
21
|
}
|
|
22
|
+
export declare class BlockedActorError extends XRPCError {
|
|
23
|
+
constructor(src: XRPCError);
|
|
24
|
+
}
|
|
25
|
+
export declare class BlockedByActorError extends XRPCError {
|
|
26
|
+
constructor(src: XRPCError);
|
|
27
|
+
}
|
|
22
28
|
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
limit?: number;
|
|
5
|
+
cursor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type InputSchema = undefined;
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
cursor?: string;
|
|
10
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
headers?: Headers;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: Headers;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare function toKnownErr(e: any): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
feed: string;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
feed: AppBskyFeedDefs.FeedViewPost[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
headers?: Headers;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|