@atproto/api 0.3.2 → 0.3.4
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/bench/agent.bench.ts +9 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/lexicons.d.ts +116 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts +17 -0
- package/dist/client/types/app/bsky/actor/{searchActorTypeahead.d.ts → getPreferences.d.ts} +1 -3
- package/dist/client/types/app/bsky/{feed/unbookmarkFeed.d.ts → actor/putPreferences.d.ts} +2 -1
- package/dist/client/types/com/atproto/admin/defs.d.ts +14 -2
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +4 -1
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +4 -1
- package/dist/client/types/com/atproto/server/createAccount.d.ts +7 -0
- package/dist/index.js +9113 -83
- package/dist/index.js.map +4 -4
- package/docs/rn-fetch-handler.ts +1 -1
- package/jest.bench.config.js +8 -0
- package/package.json +4 -2
- package/src/client/index.ts +26 -0
- package/src/client/lexicons.ts +138 -0
- package/src/client/types/app/bsky/actor/defs.ts +41 -0
- package/src/client/types/app/bsky/actor/getPreferences.ts +34 -0
- package/src/client/types/app/bsky/actor/putPreferences.ts +33 -0
- package/src/client/types/com/atproto/admin/defs.ts +46 -2
- package/src/client/types/com/atproto/admin/getModerationReports.ts +6 -0
- package/src/client/types/com/atproto/admin/getRecord.ts +7 -0
- package/src/client/types/com/atproto/admin/getRepo.ts +7 -0
- package/src/client/types/com/atproto/server/createAccount.ts +15 -0
- package/tests/agent.test.ts +63 -0
- package/tests/bsky-agent.test.ts +63 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/client/types/app/bsky/actor/ref.d.ts +0 -28
- package/dist/client/types/app/bsky/actor/search.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchActor.d.ts +0 -22
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -20
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -47
- package/dist/client/types/app/bsky/feed/bookmarkFeed.d.ts +0 -17
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +0 -28
- package/dist/client/types/app/bsky/feed/generator.d.ts +0 -13
- package/dist/client/types/app/bsky/feed/getActorFeeds.d.ts +0 -22
- package/dist/client/types/app/bsky/feed/getBookmarkedFeeds.d.ts +0 -21
- package/dist/client/types/app/bsky/feed/getFeed.d.ts +0 -22
- package/dist/client/types/app/bsky/feed/getFeedSkeleton.d.ts +0 -22
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +0 -36
- package/dist/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/client/types/app/bsky/feed/trend.d.ts +0 -9
- package/dist/client/types/app/bsky/feed/vote.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/client/types/app/bsky/graph/assertion.d.ts +0 -10
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +0 -11
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +0 -48
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +0 -36
- package/dist/client/types/app/bsky/graph/mute.d.ts +0 -17
- package/dist/client/types/app/bsky/graph/unmute.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/client/types/app/bsky/notification/list.d.ts +0 -35
- package/dist/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +0 -8
- package/dist/client/types/app/bsky/system/declaration.d.ts +0 -7
- package/dist/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
- package/dist/client/types/com/atproto/account/delete.d.ts +0 -25
- package/dist/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +0 -13
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/client/types/com/atproto/admin/blob.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/getInviteCodeUsage.d.ts +0 -29
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +0 -60
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +0 -37
- package/dist/client/types/com/atproto/admin/record.d.ts +0 -43
- package/dist/client/types/com/atproto/admin/repo.d.ts +0 -45
- package/dist/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/client/types/com/atproto/handle/update.d.ts +0 -17
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +0 -46
- package/dist/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/client/types/com/atproto/repo/importRepo.d.ts +0 -19
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +0 -8
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +0 -7
- package/dist/client/types/com/atproto/repo/uploadRepo.d.ts +0 -19
- package/dist/client/types/com/atproto/report/create.d.ts +0 -39
- package/dist/client/types/com/atproto/report/reasonType.d.ts +0 -3
- package/dist/client/types/com/atproto/report/subject.d.ts +0 -23
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -27
- package/dist/client/types/com/atproto/server/getUserInviteCodes.d.ts +0 -31
- package/dist/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/client/types/com/atproto/session/refresh.d.ts +0 -24
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +0 -9
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/session.d.ts +0 -42
- package/dist/src/client/index.d.ts +0 -462
- package/dist/src/client/lexicons.d.ts +0 -2910
- package/dist/src/client/schemas.d.ts +0 -17
- package/dist/src/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +0 -36
- package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +0 -36
- package/dist/src/client/types/app/bsky/actor/profile.d.ts +0 -15
- package/dist/src/client/types/app/bsky/actor/ref.d.ts +0 -14
- package/dist/src/client/types/app/bsky/actor/search.d.ts +0 -32
- package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -28
- package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +0 -48
- package/dist/src/client/types/app/bsky/badge.d.ts +0 -22
- package/dist/src/client/types/app/bsky/badgeAccept.d.ts +0 -11
- package/dist/src/client/types/app/bsky/badgeOffer.d.ts +0 -11
- package/dist/src/client/types/app/bsky/declaration.d.ts +0 -6
- package/dist/src/client/types/app/bsky/embed/external.d.ts +0 -26
- package/dist/src/client/types/app/bsky/embed/images.d.ts +0 -23
- package/dist/src/client/types/app/bsky/feed/embed.d.ts +0 -36
- package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +0 -26
- package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +0 -22
- package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +0 -43
- package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -35
- package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
- package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +0 -33
- package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +0 -18
- package/dist/src/client/types/app/bsky/feed/post.d.ts +0 -54
- package/dist/src/client/types/app/bsky/feed/repost.d.ts +0 -6
- package/dist/src/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/src/client/types/app/bsky/feed/trend.d.ts +0 -6
- package/dist/src/client/types/app/bsky/feed/vote.d.ts +0 -7
- package/dist/src/client/types/app/bsky/follow.d.ts +0 -9
- package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getLikedBy.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +0 -16
- package/dist/src/client/types/app/bsky/getNotifications.d.ts +0 -33
- package/dist/src/client/types/app/bsky/getPostThread.d.ts +0 -55
- package/dist/src/client/types/app/bsky/getProfile.d.ts +0 -26
- package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getTimeline.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +0 -31
- package/dist/src/client/types/app/bsky/getUserFollows.d.ts +0 -31
- package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +0 -26
- package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +0 -22
- package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/src/client/types/app/bsky/graph/assertion.d.ts +0 -7
- package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +0 -8
- package/dist/src/client/types/app/bsky/graph/follow.d.ts +0 -6
- package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +0 -43
- package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +0 -34
- package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +0 -33
- package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +0 -33
- package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +0 -33
- package/dist/src/client/types/app/bsky/invite.d.ts +0 -10
- package/dist/src/client/types/app/bsky/inviteAccept.d.ts +0 -14
- package/dist/src/client/types/app/bsky/like.d.ts +0 -10
- package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +0 -15
- package/dist/src/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/src/client/types/app/bsky/notification/list.d.ts +0 -32
- package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
- package/dist/src/client/types/app/bsky/post.d.ts +0 -23
- package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +0 -20
- package/dist/src/client/types/app/bsky/profile.d.ts +0 -5
- package/dist/src/client/types/app/bsky/repost.d.ts +0 -10
- package/dist/src/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/src/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/src/client/types/app/bsky/system/declRef.d.ts +0 -5
- package/dist/src/client/types/app/bsky/system/declaration.d.ts +0 -4
- package/dist/src/client/types/app/bsky/updateProfile.d.ts +0 -23
- package/dist/src/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
- package/dist/src/client/types/com/atproto/account/delete.d.ts +0 -13
- package/dist/src/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/src/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/src/client/types/com/atproto/createAccount.d.ts +0 -40
- package/dist/src/client/types/com/atproto/createInviteCode.d.ts +0 -20
- package/dist/src/client/types/com/atproto/createSession.d.ts +0 -24
- package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +0 -19
- package/dist/src/client/types/com/atproto/deleteAccount.d.ts +0 -20
- package/dist/src/client/types/com/atproto/deleteSession.d.ts +0 -17
- package/dist/src/client/types/com/atproto/getAccount.d.ts +0 -16
- package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +0 -17
- package/dist/src/client/types/com/atproto/getSession.d.ts +0 -17
- package/dist/src/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/src/client/types/com/atproto/refreshSession.d.ts +0 -20
- package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +0 -39
- package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +0 -26
- package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +0 -19
- package/dist/src/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +0 -23
- package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +0 -30
- package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +0 -27
- package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +0 -5
- package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +0 -36
- package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +0 -24
- package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +0 -18
- package/dist/src/client/types/com/atproto/repoDescribe.d.ts +0 -21
- package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +0 -22
- package/dist/src/client/types/com/atproto/repoListRecords.d.ts +0 -27
- package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +0 -25
- package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +0 -19
- package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +0 -26
- package/dist/src/client/types/com/atproto/resolveHandle.d.ts +0 -17
- package/dist/src/client/types/com/atproto/resolveName.d.ts +0 -17
- package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -24
- package/dist/src/client/types/com/atproto/session/create.d.ts +0 -26
- package/dist/src/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/src/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/src/client/types/com/atproto/session/refresh.d.ts +0 -21
- package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +0 -17
- package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +0 -15
- package/dist/src/index.d.ts +0 -4
- package/dist/src/schemas.d.ts +0 -19
- package/dist/src/session.d.ts +0 -42
- package/dist/src/types/app/bsky/acceptedBadge.d.ts +0 -10
- package/dist/src/types/app/bsky/badge.d.ts +0 -22
- package/dist/src/types/app/bsky/badgeAccept.d.ts +0 -11
- package/dist/src/types/app/bsky/badgeOffer.d.ts +0 -11
- package/dist/src/types/app/bsky/declaration.d.ts +0 -6
- package/dist/src/types/app/bsky/follow.d.ts +0 -9
- package/dist/src/types/app/bsky/getAuthorFeed.d.ts +0 -56
- package/dist/src/types/app/bsky/getBadgeMembers.d.ts +0 -29
- package/dist/src/types/app/bsky/getHomeFeed.d.ts +0 -56
- package/dist/src/types/app/bsky/getLikedBy.d.ts +0 -29
- package/dist/src/types/app/bsky/getNotificationCount.d.ts +0 -16
- package/dist/src/types/app/bsky/getNotifications.d.ts +0 -33
- package/dist/src/types/app/bsky/getPostThread.d.ts +0 -55
- package/dist/src/types/app/bsky/getProfile.d.ts +0 -42
- package/dist/src/types/app/bsky/getRepostedBy.d.ts +0 -29
- package/dist/src/types/app/bsky/getUserFollowers.d.ts +0 -31
- package/dist/src/types/app/bsky/getUserFollows.d.ts +0 -31
- package/dist/src/types/app/bsky/getUsersSearch.d.ts +0 -26
- package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +0 -22
- package/dist/src/types/app/bsky/invite.d.ts +0 -10
- package/dist/src/types/app/bsky/inviteAccept.d.ts +0 -14
- package/dist/src/types/app/bsky/like.d.ts +0 -10
- package/dist/src/types/app/bsky/mediaEmbed.d.ts +0 -15
- package/dist/src/types/app/bsky/post.d.ts +0 -23
- package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +0 -19
- package/dist/src/types/app/bsky/profile.d.ts +0 -11
- package/dist/src/types/app/bsky/repost.d.ts +0 -10
- package/dist/src/types/app/bsky/updateProfile.d.ts +0 -27
- package/dist/src/types/com/atproto/createAccount.d.ts +0 -39
- package/dist/src/types/com/atproto/createInviteCode.d.ts +0 -19
- package/dist/src/types/com/atproto/createSession.d.ts +0 -23
- package/dist/src/types/com/atproto/deleteAccount.d.ts +0 -19
- package/dist/src/types/com/atproto/deleteSession.d.ts +0 -16
- package/dist/src/types/com/atproto/getAccount.d.ts +0 -19
- package/dist/src/types/com/atproto/getAccountsConfig.d.ts +0 -17
- package/dist/src/types/com/atproto/getSession.d.ts +0 -17
- package/dist/src/types/com/atproto/refreshSession.d.ts +0 -19
- package/dist/src/types/com/atproto/repoBatchWrite.d.ts +0 -35
- package/dist/src/types/com/atproto/repoCreateRecord.d.ts +0 -23
- package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +0 -15
- package/dist/src/types/com/atproto/repoDescribe.d.ts +0 -21
- package/dist/src/types/com/atproto/repoGetRecord.d.ts +0 -22
- package/dist/src/types/com/atproto/repoListRecords.d.ts +0 -27
- package/dist/src/types/com/atproto/repoPutRecord.d.ts +0 -24
- package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +0 -18
- package/dist/src/types/com/atproto/resetAccountPassword.d.ts +0 -25
- package/dist/src/types/com/atproto/resolveName.d.ts +0 -17
- package/dist/src/types/com/atproto/syncGetRepo.d.ts +0 -15
- package/dist/src/types/com/atproto/syncGetRoot.d.ts +0 -17
- package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +0 -14
- package/dist/src/types/todo/adx/createAccount.d.ts +0 -36
- package/dist/src/types/todo/adx/createInviteCode.d.ts +0 -19
- package/dist/src/types/todo/adx/createSession.d.ts +0 -22
- package/dist/src/types/todo/adx/deleteAccount.d.ts +0 -19
- package/dist/src/types/todo/adx/deleteSession.d.ts +0 -19
- package/dist/src/types/todo/adx/getAccount.d.ts +0 -19
- package/dist/src/types/todo/adx/getAccountsConfig.d.ts +0 -17
- package/dist/src/types/todo/adx/getSession.d.ts +0 -17
- package/dist/src/types/todo/adx/repoBatchWrite.d.ts +0 -34
- package/dist/src/types/todo/adx/repoCreateRecord.d.ts +0 -22
- package/dist/src/types/todo/adx/repoDeleteRecord.d.ts +0 -15
- package/dist/src/types/todo/adx/repoDescribe.d.ts +0 -21
- package/dist/src/types/todo/adx/repoGetRecord.d.ts +0 -20
- package/dist/src/types/todo/adx/repoListRecords.d.ts +0 -25
- package/dist/src/types/todo/adx/repoPutRecord.d.ts +0 -23
- package/dist/src/types/todo/adx/requestAccountPasswordReset.d.ts +0 -18
- package/dist/src/types/todo/adx/resetAccountPassword.d.ts +0 -25
- package/dist/src/types/todo/adx/resolveName.d.ts +0 -17
- package/dist/src/types/todo/adx/syncGetRepo.d.ts +0 -15
- package/dist/src/types/todo/adx/syncGetRoot.d.ts +0 -17
- package/dist/src/types/todo/adx/syncUpdateRepo.d.ts +0 -14
- package/dist/src/types/todo/social/badge.d.ts +0 -23
- package/dist/src/types/todo/social/follow.d.ts +0 -5
- package/dist/src/types/todo/social/getAuthorFeed.d.ts +0 -55
- package/dist/src/types/todo/social/getFeed.d.ts +0 -55
- package/dist/src/types/todo/social/getHomeFeed.d.ts +0 -55
- package/dist/src/types/todo/social/getLikedBy.d.ts +0 -26
- package/dist/src/types/todo/social/getNotificationCount.d.ts +0 -16
- package/dist/src/types/todo/social/getNotifications.d.ts +0 -31
- package/dist/src/types/todo/social/getPostThread.d.ts +0 -54
- package/dist/src/types/todo/social/getProfile.d.ts +0 -40
- package/dist/src/types/todo/social/getRepostedBy.d.ts +0 -26
- package/dist/src/types/todo/social/getUserFollowers.d.ts +0 -30
- package/dist/src/types/todo/social/getUserFollows.d.ts +0 -30
- package/dist/src/types/todo/social/like.d.ts +0 -5
- package/dist/src/types/todo/social/mediaEmbed.d.ts +0 -15
- package/dist/src/types/todo/social/post.d.ts +0 -18
- package/dist/src/types/todo/social/postNotificationsSeen.d.ts +0 -19
- package/dist/src/types/todo/social/profile.d.ts +0 -10
- package/dist/src/types/todo/social/repost.d.ts +0 -5
- package/dist/tsconfig.build.tsbuildinfo +0 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -55,10 +55,12 @@ import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs';
|
|
|
55
55
|
import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
|
|
56
56
|
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
|
|
57
57
|
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
|
|
58
|
+
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences';
|
|
58
59
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
|
|
59
60
|
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';
|
|
60
61
|
import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
|
|
61
62
|
import * as AppBskyActorProfile from './types/app/bsky/actor/profile';
|
|
63
|
+
import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences';
|
|
62
64
|
import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors';
|
|
63
65
|
import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead';
|
|
64
66
|
import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
@@ -153,10 +155,12 @@ export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOf
|
|
|
153
155
|
export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
|
|
154
156
|
export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos';
|
|
155
157
|
export * as AppBskyActorDefs from './types/app/bsky/actor/defs';
|
|
158
|
+
export * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences';
|
|
156
159
|
export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile';
|
|
157
160
|
export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles';
|
|
158
161
|
export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions';
|
|
159
162
|
export * as AppBskyActorProfile from './types/app/bsky/actor/profile';
|
|
163
|
+
export * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences';
|
|
160
164
|
export * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors';
|
|
161
165
|
export * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead';
|
|
162
166
|
export * as AppBskyEmbedExternal from './types/app/bsky/embed/external';
|
|
@@ -344,9 +348,11 @@ export declare class ActorNS {
|
|
|
344
348
|
_service: AtpServiceClient;
|
|
345
349
|
profile: ProfileRecord;
|
|
346
350
|
constructor(service: AtpServiceClient);
|
|
351
|
+
getPreferences(params?: AppBskyActorGetPreferences.QueryParams, opts?: AppBskyActorGetPreferences.CallOptions): Promise<AppBskyActorGetPreferences.Response>;
|
|
347
352
|
getProfile(params?: AppBskyActorGetProfile.QueryParams, opts?: AppBskyActorGetProfile.CallOptions): Promise<AppBskyActorGetProfile.Response>;
|
|
348
353
|
getProfiles(params?: AppBskyActorGetProfiles.QueryParams, opts?: AppBskyActorGetProfiles.CallOptions): Promise<AppBskyActorGetProfiles.Response>;
|
|
349
354
|
getSuggestions(params?: AppBskyActorGetSuggestions.QueryParams, opts?: AppBskyActorGetSuggestions.CallOptions): Promise<AppBskyActorGetSuggestions.Response>;
|
|
355
|
+
putPreferences(data?: AppBskyActorPutPreferences.InputSchema, opts?: AppBskyActorPutPreferences.CallOptions): Promise<AppBskyActorPutPreferences.Response>;
|
|
350
356
|
searchActors(params?: AppBskyActorSearchActors.QueryParams, opts?: AppBskyActorSearchActors.CallOptions): Promise<AppBskyActorSearchActors.Response>;
|
|
351
357
|
searchActorsTypeahead(params?: AppBskyActorSearchActorsTypeahead.QueryParams, opts?: AppBskyActorSearchActorsTypeahead.CallOptions): Promise<AppBskyActorSearchActorsTypeahead.Response>;
|
|
352
358
|
}
|
|
@@ -327,6 +327,16 @@ export declare const schemaDict: {
|
|
|
327
327
|
};
|
|
328
328
|
};
|
|
329
329
|
};
|
|
330
|
+
repoViewNotFound: {
|
|
331
|
+
type: string;
|
|
332
|
+
required: string[];
|
|
333
|
+
properties: {
|
|
334
|
+
did: {
|
|
335
|
+
type: string;
|
|
336
|
+
format: string;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
};
|
|
330
340
|
repoRef: {
|
|
331
341
|
type: string;
|
|
332
342
|
required: string[];
|
|
@@ -416,6 +426,16 @@ export declare const schemaDict: {
|
|
|
416
426
|
};
|
|
417
427
|
};
|
|
418
428
|
};
|
|
429
|
+
recordViewNotFound: {
|
|
430
|
+
type: string;
|
|
431
|
+
required: string[];
|
|
432
|
+
properties: {
|
|
433
|
+
uri: {
|
|
434
|
+
type: string;
|
|
435
|
+
format: string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
};
|
|
419
439
|
moderation: {
|
|
420
440
|
type: string;
|
|
421
441
|
required: never[];
|
|
@@ -745,6 +765,10 @@ export declare const schemaDict: {
|
|
|
745
765
|
resolved: {
|
|
746
766
|
type: string;
|
|
747
767
|
};
|
|
768
|
+
actionType: {
|
|
769
|
+
type: string;
|
|
770
|
+
knownValues: string[];
|
|
771
|
+
};
|
|
748
772
|
limit: {
|
|
749
773
|
type: string;
|
|
750
774
|
minimum: number;
|
|
@@ -806,6 +830,9 @@ export declare const schemaDict: {
|
|
|
806
830
|
ref: string;
|
|
807
831
|
};
|
|
808
832
|
};
|
|
833
|
+
errors: {
|
|
834
|
+
name: string;
|
|
835
|
+
}[];
|
|
809
836
|
};
|
|
810
837
|
};
|
|
811
838
|
};
|
|
@@ -833,6 +860,9 @@ export declare const schemaDict: {
|
|
|
833
860
|
ref: string;
|
|
834
861
|
};
|
|
835
862
|
};
|
|
863
|
+
errors: {
|
|
864
|
+
name: string;
|
|
865
|
+
}[];
|
|
836
866
|
};
|
|
837
867
|
};
|
|
838
868
|
};
|
|
@@ -1952,6 +1982,10 @@ export declare const schemaDict: {
|
|
|
1952
1982
|
type: string;
|
|
1953
1983
|
format: string;
|
|
1954
1984
|
};
|
|
1985
|
+
did: {
|
|
1986
|
+
type: string;
|
|
1987
|
+
format: string;
|
|
1988
|
+
};
|
|
1955
1989
|
inviteCode: {
|
|
1956
1990
|
type: string;
|
|
1957
1991
|
};
|
|
@@ -3278,6 +3312,63 @@ export declare const schemaDict: {
|
|
|
3278
3312
|
};
|
|
3279
3313
|
};
|
|
3280
3314
|
};
|
|
3315
|
+
preferences: {
|
|
3316
|
+
type: string;
|
|
3317
|
+
items: {
|
|
3318
|
+
type: string;
|
|
3319
|
+
refs: string[];
|
|
3320
|
+
};
|
|
3321
|
+
};
|
|
3322
|
+
adultContentPref: {
|
|
3323
|
+
type: string;
|
|
3324
|
+
required: string[];
|
|
3325
|
+
properties: {
|
|
3326
|
+
enabled: {
|
|
3327
|
+
type: string;
|
|
3328
|
+
default: boolean;
|
|
3329
|
+
};
|
|
3330
|
+
};
|
|
3331
|
+
};
|
|
3332
|
+
contentLabelPref: {
|
|
3333
|
+
type: string;
|
|
3334
|
+
required: string[];
|
|
3335
|
+
properties: {
|
|
3336
|
+
label: {
|
|
3337
|
+
type: string;
|
|
3338
|
+
};
|
|
3339
|
+
visibility: {
|
|
3340
|
+
type: string;
|
|
3341
|
+
knownValues: string[];
|
|
3342
|
+
};
|
|
3343
|
+
};
|
|
3344
|
+
};
|
|
3345
|
+
};
|
|
3346
|
+
};
|
|
3347
|
+
AppBskyActorGetPreferences: {
|
|
3348
|
+
lexicon: number;
|
|
3349
|
+
id: string;
|
|
3350
|
+
defs: {
|
|
3351
|
+
main: {
|
|
3352
|
+
type: string;
|
|
3353
|
+
description: string;
|
|
3354
|
+
parameters: {
|
|
3355
|
+
type: string;
|
|
3356
|
+
properties: {};
|
|
3357
|
+
};
|
|
3358
|
+
output: {
|
|
3359
|
+
encoding: string;
|
|
3360
|
+
schema: {
|
|
3361
|
+
type: string;
|
|
3362
|
+
required: string[];
|
|
3363
|
+
properties: {
|
|
3364
|
+
preferences: {
|
|
3365
|
+
type: string;
|
|
3366
|
+
ref: string;
|
|
3367
|
+
};
|
|
3368
|
+
};
|
|
3369
|
+
};
|
|
3370
|
+
};
|
|
3371
|
+
};
|
|
3281
3372
|
};
|
|
3282
3373
|
};
|
|
3283
3374
|
AppBskyActorGetProfile: {
|
|
@@ -3423,6 +3514,29 @@ export declare const schemaDict: {
|
|
|
3423
3514
|
};
|
|
3424
3515
|
};
|
|
3425
3516
|
};
|
|
3517
|
+
AppBskyActorPutPreferences: {
|
|
3518
|
+
lexicon: number;
|
|
3519
|
+
id: string;
|
|
3520
|
+
defs: {
|
|
3521
|
+
main: {
|
|
3522
|
+
type: string;
|
|
3523
|
+
description: string;
|
|
3524
|
+
input: {
|
|
3525
|
+
encoding: string;
|
|
3526
|
+
schema: {
|
|
3527
|
+
type: string;
|
|
3528
|
+
required: string[];
|
|
3529
|
+
properties: {
|
|
3530
|
+
preferences: {
|
|
3531
|
+
type: string;
|
|
3532
|
+
ref: string;
|
|
3533
|
+
};
|
|
3534
|
+
};
|
|
3535
|
+
};
|
|
3536
|
+
};
|
|
3537
|
+
};
|
|
3538
|
+
};
|
|
3539
|
+
};
|
|
3426
3540
|
AppBskyActorSearchActors: {
|
|
3427
3541
|
lexicon: number;
|
|
3428
3542
|
id: string;
|
|
@@ -5355,10 +5469,12 @@ export declare const ids: {
|
|
|
5355
5469
|
ComAtprotoSyncRequestCrawl: string;
|
|
5356
5470
|
ComAtprotoSyncSubscribeRepos: string;
|
|
5357
5471
|
AppBskyActorDefs: string;
|
|
5472
|
+
AppBskyActorGetPreferences: string;
|
|
5358
5473
|
AppBskyActorGetProfile: string;
|
|
5359
5474
|
AppBskyActorGetProfiles: string;
|
|
5360
5475
|
AppBskyActorGetSuggestions: string;
|
|
5361
5476
|
AppBskyActorProfile: string;
|
|
5477
|
+
AppBskyActorPutPreferences: string;
|
|
5362
5478
|
AppBskyActorSearchActors: string;
|
|
5363
5479
|
AppBskyActorSearchActorsTypeahead: string;
|
|
5364
5480
|
AppBskyEmbedExternal: string;
|
|
@@ -53,3 +53,20 @@ export interface ViewerState {
|
|
|
53
53
|
}
|
|
54
54
|
export declare function isViewerState(v: unknown): v is ViewerState;
|
|
55
55
|
export declare function validateViewerState(v: unknown): ValidationResult;
|
|
56
|
+
export declare type Preferences = (AdultContentPref | ContentLabelPref | {
|
|
57
|
+
$type: string;
|
|
58
|
+
[k: string]: unknown;
|
|
59
|
+
})[];
|
|
60
|
+
export interface AdultContentPref {
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
[k: string]: unknown;
|
|
63
|
+
}
|
|
64
|
+
export declare function isAdultContentPref(v: unknown): v is AdultContentPref;
|
|
65
|
+
export declare function validateAdultContentPref(v: unknown): ValidationResult;
|
|
66
|
+
export interface ContentLabelPref {
|
|
67
|
+
label: string;
|
|
68
|
+
visibility: 'show' | 'warn' | 'hide' | (string & {});
|
|
69
|
+
[k: string]: unknown;
|
|
70
|
+
}
|
|
71
|
+
export declare function isContentLabelPref(v: unknown): v is ContentLabelPref;
|
|
72
|
+
export declare function validateContentLabelPref(v: unknown): ValidationResult;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
2
|
import * as AppBskyActorDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
|
-
term?: string;
|
|
5
|
-
limit?: number;
|
|
6
4
|
}
|
|
7
5
|
export declare type InputSchema = undefined;
|
|
8
6
|
export interface OutputSchema {
|
|
9
|
-
|
|
7
|
+
preferences: AppBskyActorDefs.Preferences;
|
|
10
8
|
[k: string]: unknown;
|
|
11
9
|
}
|
|
12
10
|
export interface CallOptions {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyActorDefs from './defs';
|
|
2
3
|
export interface QueryParams {
|
|
3
4
|
}
|
|
4
5
|
export interface InputSchema {
|
|
5
|
-
|
|
6
|
+
preferences: AppBskyActorDefs.Preferences;
|
|
6
7
|
[k: string]: unknown;
|
|
7
8
|
}
|
|
8
9
|
export interface CallOptions {
|
|
@@ -25,7 +25,7 @@ export declare function validateActionView(v: unknown): ValidationResult;
|
|
|
25
25
|
export interface ActionViewDetail {
|
|
26
26
|
id: number;
|
|
27
27
|
action: ActionType;
|
|
28
|
-
subject: RepoView | RecordView | {
|
|
28
|
+
subject: RepoView | RepoViewNotFound | RecordView | RecordViewNotFound | {
|
|
29
29
|
$type: string;
|
|
30
30
|
[k: string]: unknown;
|
|
31
31
|
};
|
|
@@ -80,7 +80,7 @@ export interface ReportViewDetail {
|
|
|
80
80
|
id: number;
|
|
81
81
|
reasonType: ComAtprotoModerationDefs.ReasonType;
|
|
82
82
|
reason?: string;
|
|
83
|
-
subject: RepoView | RecordView | {
|
|
83
|
+
subject: RepoView | RepoViewNotFound | RecordView | RecordViewNotFound | {
|
|
84
84
|
$type: string;
|
|
85
85
|
[k: string]: unknown;
|
|
86
86
|
};
|
|
@@ -119,6 +119,12 @@ export interface RepoViewDetail {
|
|
|
119
119
|
}
|
|
120
120
|
export declare function isRepoViewDetail(v: unknown): v is RepoViewDetail;
|
|
121
121
|
export declare function validateRepoViewDetail(v: unknown): ValidationResult;
|
|
122
|
+
export interface RepoViewNotFound {
|
|
123
|
+
did: string;
|
|
124
|
+
[k: string]: unknown;
|
|
125
|
+
}
|
|
126
|
+
export declare function isRepoViewNotFound(v: unknown): v is RepoViewNotFound;
|
|
127
|
+
export declare function validateRepoViewNotFound(v: unknown): ValidationResult;
|
|
122
128
|
export interface RepoRef {
|
|
123
129
|
did: string;
|
|
124
130
|
[k: string]: unknown;
|
|
@@ -150,6 +156,12 @@ export interface RecordViewDetail {
|
|
|
150
156
|
}
|
|
151
157
|
export declare function isRecordViewDetail(v: unknown): v is RecordViewDetail;
|
|
152
158
|
export declare function validateRecordViewDetail(v: unknown): ValidationResult;
|
|
159
|
+
export interface RecordViewNotFound {
|
|
160
|
+
uri: string;
|
|
161
|
+
[k: string]: unknown;
|
|
162
|
+
}
|
|
163
|
+
export declare function isRecordViewNotFound(v: unknown): v is RecordViewNotFound;
|
|
164
|
+
export declare function validateRecordViewNotFound(v: unknown): ValidationResult;
|
|
153
165
|
export interface Moderation {
|
|
154
166
|
currentAction?: ActionViewCurrent;
|
|
155
167
|
[k: string]: unknown;
|
|
@@ -3,6 +3,7 @@ import * as ComAtprotoAdminDefs from './defs';
|
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
subject?: string;
|
|
5
5
|
resolved?: boolean;
|
|
6
|
+
actionType?: 'com.atproto.admin.defs#takedown' | 'com.atproto.admin.defs#flag' | 'com.atproto.admin.defs#acknowledge' | 'com.atproto.admin.defs#escalate' | (string & {});
|
|
6
7
|
limit?: number;
|
|
7
8
|
cursor?: string;
|
|
8
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Headers } from '@atproto/xrpc';
|
|
1
|
+
import { Headers, XRPCError } from '@atproto/xrpc';
|
|
2
2
|
import * as ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
uri: string;
|
|
@@ -14,4 +14,7 @@ export interface Response {
|
|
|
14
14
|
headers: Headers;
|
|
15
15
|
data: OutputSchema;
|
|
16
16
|
}
|
|
17
|
+
export declare class RecordNotFoundError extends XRPCError {
|
|
18
|
+
constructor(src: XRPCError);
|
|
19
|
+
}
|
|
17
20
|
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 ComAtprotoAdminDefs from './defs';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
did: string;
|
|
@@ -13,4 +13,7 @@ export interface Response {
|
|
|
13
13
|
headers: Headers;
|
|
14
14
|
data: OutputSchema;
|
|
15
15
|
}
|
|
16
|
+
export declare class RepoNotFoundError extends XRPCError {
|
|
17
|
+
constructor(src: XRPCError);
|
|
18
|
+
}
|
|
16
19
|
export declare function toKnownErr(e: any): any;
|
|
@@ -4,6 +4,7 @@ export interface QueryParams {
|
|
|
4
4
|
export interface InputSchema {
|
|
5
5
|
email: string;
|
|
6
6
|
handle: string;
|
|
7
|
+
did?: string;
|
|
7
8
|
inviteCode?: string;
|
|
8
9
|
password: string;
|
|
9
10
|
recoveryKey?: string;
|
|
@@ -41,4 +42,10 @@ export declare class HandleNotAvailableError extends XRPCError {
|
|
|
41
42
|
export declare class UnsupportedDomainError extends XRPCError {
|
|
42
43
|
constructor(src: XRPCError);
|
|
43
44
|
}
|
|
45
|
+
export declare class UnresolvableDidError extends XRPCError {
|
|
46
|
+
constructor(src: XRPCError);
|
|
47
|
+
}
|
|
48
|
+
export declare class IncompatibleDidDocError extends XRPCError {
|
|
49
|
+
constructor(src: XRPCError);
|
|
50
|
+
}
|
|
44
51
|
export declare function toKnownErr(e: any): any;
|