@atproto/api 0.1.2 → 0.2.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.
Files changed (205) hide show
  1. package/README.md +179 -25
  2. package/build.js +10 -1
  3. package/dist/agent.d.ts +11 -6
  4. package/dist/bsky-agent.d.ts +43 -0
  5. package/dist/client/index.d.ts +127 -215
  6. package/dist/client/lexicons.d.ts +1496 -1347
  7. package/dist/client/types/app/bsky/actor/defs.d.ts +47 -0
  8. package/dist/client/types/app/bsky/actor/getProfile.d.ts +2 -2
  9. package/dist/client/types/app/bsky/actor/getProfiles.d.ts +2 -2
  10. package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +2 -2
  11. package/dist/client/types/app/bsky/actor/profile.d.ts +4 -60
  12. package/dist/client/types/app/bsky/actor/searchActors.d.ts +22 -0
  13. package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +20 -0
  14. package/dist/client/types/app/bsky/actor/updateProfile.d.ts +4 -11
  15. package/dist/client/types/app/bsky/embed/external.d.ts +9 -13
  16. package/dist/client/types/app/bsky/embed/images.d.ts +9 -13
  17. package/dist/client/types/app/bsky/embed/record.d.ts +41 -0
  18. package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +24 -0
  19. package/dist/client/types/app/bsky/feed/defs.d.ts +77 -0
  20. package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +4 -4
  21. package/dist/client/types/app/bsky/feed/getLikes.d.ts +34 -0
  22. package/dist/client/types/app/bsky/feed/getPostThread.d.ts +2 -24
  23. package/dist/client/types/app/bsky/feed/getRepostedBy.d.ts +3 -3
  24. package/dist/client/types/app/bsky/feed/getTimeline.d.ts +3 -3
  25. package/dist/client/types/app/bsky/feed/like.d.ts +9 -0
  26. package/dist/client/types/app/bsky/feed/post.d.ts +5 -29
  27. package/dist/client/types/app/bsky/graph/follow.d.ts +1 -2
  28. package/dist/client/types/app/bsky/graph/getFollowers.d.ts +5 -5
  29. package/dist/client/types/app/bsky/graph/getFollows.d.ts +5 -5
  30. package/dist/client/types/app/bsky/graph/getMutes.d.ts +3 -3
  31. package/dist/client/types/app/bsky/graph/muteActor.d.ts +17 -0
  32. package/dist/client/types/app/bsky/graph/unmuteActor.d.ts +17 -0
  33. package/dist/client/types/app/bsky/notification/getUnreadCount.d.ts +17 -0
  34. package/dist/client/types/app/bsky/notification/listNotifications.d.ts +35 -0
  35. package/dist/client/types/app/bsky/richtext/facet.d.ts +30 -0
  36. package/dist/client/types/app/bsky/unspecced/getPopular.d.ts +21 -0
  37. package/dist/client/types/com/atproto/admin/defs.d.ts +181 -0
  38. package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +2 -2
  39. package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +3 -3
  40. package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +2 -2
  41. package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +3 -3
  42. package/dist/client/types/com/atproto/admin/getRecord.d.ts +2 -2
  43. package/dist/client/types/com/atproto/admin/getRepo.d.ts +2 -2
  44. package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +2 -2
  45. package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +2 -2
  46. package/dist/client/types/com/atproto/admin/searchRepos.d.ts +3 -3
  47. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +5 -6
  48. package/dist/client/types/com/atproto/identity/resolveHandle.d.ts +18 -0
  49. package/dist/client/types/com/atproto/identity/updateHandle.d.ts +17 -0
  50. package/dist/client/types/com/atproto/moderation/createReport.d.ts +38 -0
  51. package/dist/client/types/com/atproto/moderation/defs.d.ts +3 -0
  52. package/dist/client/types/com/atproto/repo/applyWrites.d.ts +47 -0
  53. package/dist/client/types/com/atproto/repo/createRecord.d.ts +7 -2
  54. package/dist/client/types/com/atproto/repo/deleteRecord.d.ts +7 -2
  55. package/dist/client/types/com/atproto/repo/describeRepo.d.ts +22 -0
  56. package/dist/client/types/com/atproto/repo/getRecord.d.ts +1 -1
  57. package/dist/client/types/com/atproto/repo/listRecords.d.ts +3 -3
  58. package/dist/client/types/com/atproto/repo/putRecord.d.ts +7 -2
  59. package/dist/client/types/com/atproto/repo/uploadBlob.d.ts +20 -0
  60. package/dist/client/types/com/atproto/server/createAccount.d.ts +44 -0
  61. package/dist/client/types/com/atproto/server/createInviteCode.d.ts +22 -0
  62. package/dist/client/types/com/atproto/server/createSession.d.ts +29 -0
  63. package/dist/client/types/com/atproto/server/deleteAccount.d.ts +25 -0
  64. package/dist/client/types/com/atproto/server/deleteSession.d.ts +13 -0
  65. package/dist/client/types/com/atproto/server/describeServer.d.ts +27 -0
  66. package/dist/client/types/com/atproto/server/getSession.d.ts +18 -0
  67. package/dist/client/types/com/atproto/server/refreshSession.d.ts +24 -0
  68. package/dist/client/types/com/atproto/server/requestAccountDelete.d.ts +13 -0
  69. package/dist/client/types/com/atproto/server/requestPasswordReset.d.ts +17 -0
  70. package/dist/client/types/com/atproto/server/resetPassword.d.ts +24 -0
  71. package/dist/client/types/com/atproto/sync/getBlob.d.ts +15 -0
  72. package/dist/client/types/com/atproto/sync/getBlocks.d.ts +15 -0
  73. package/dist/client/types/com/atproto/sync/listBlobs.d.ts +20 -0
  74. package/dist/client/types/com/atproto/sync/notifyOfUpdate.d.ts +13 -0
  75. package/dist/client/types/com/atproto/sync/requestCrawl.d.ts +13 -0
  76. package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +6 -17
  77. package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +58 -0
  78. package/dist/helpers/bsky.d.ts +20 -0
  79. package/dist/index.d.ts +6 -0
  80. package/dist/index.js +8222 -3608
  81. package/dist/index.js.map +4 -4
  82. package/dist/mixins/bsky.d.ts +23 -0
  83. package/dist/rich-text/detection.d.ts +4 -0
  84. package/dist/rich-text/rich-text.d.ts +39 -0
  85. package/dist/rich-text/sanitization.d.ts +4 -0
  86. package/dist/rich-text/sanitize.d.ts +4 -0
  87. package/dist/rich-text/unicode.d.ts +11 -0
  88. package/dist/types.d.ts +2 -2
  89. package/docs/rn-fetch-handler.ts +88 -0
  90. package/package.json +4 -1
  91. package/src/agent.ts +51 -15
  92. package/src/bsky-agent.ts +228 -0
  93. package/src/client/index.ts +371 -581
  94. package/src/client/lexicons.ts +1920 -1746
  95. package/src/client/types/app/bsky/actor/defs.ts +97 -0
  96. package/src/client/types/app/bsky/actor/getProfile.ts +4 -3
  97. package/src/client/types/app/bsky/actor/getProfiles.ts +4 -3
  98. package/src/client/types/app/bsky/actor/getSuggestions.ts +4 -3
  99. package/src/client/types/app/bsky/actor/profile.ts +5 -95
  100. package/src/client/types/app/bsky/actor/{searchTypeahead.ts → searchActors.ts} +6 -3
  101. package/src/client/types/app/bsky/actor/{search.ts → searchActorsTypeahead.ts} +4 -5
  102. package/src/client/types/app/bsky/embed/external.ts +14 -13
  103. package/src/client/types/app/bsky/embed/images.ts +14 -15
  104. package/src/client/types/app/bsky/embed/record.ts +90 -0
  105. package/src/client/types/app/bsky/embed/recordWithMedia.ts +53 -0
  106. package/src/client/types/app/bsky/feed/defs.ts +156 -0
  107. package/src/client/types/app/bsky/feed/getAuthorFeed.ts +6 -5
  108. package/src/client/types/app/bsky/feed/{getVotes.ts → getLikes.ts} +11 -12
  109. package/src/client/types/app/bsky/feed/getPostThread.ts +5 -48
  110. package/src/client/types/app/bsky/feed/getRepostedBy.ts +5 -4
  111. package/src/client/types/app/bsky/feed/getTimeline.ts +5 -4
  112. package/src/client/types/app/bsky/feed/{vote.ts → like.ts} +4 -4
  113. package/src/client/types/app/bsky/feed/post.ts +12 -51
  114. package/src/client/types/app/bsky/feed/repost.ts +2 -1
  115. package/src/client/types/app/bsky/graph/follow.ts +3 -3
  116. package/src/client/types/app/bsky/graph/getFollowers.ts +7 -6
  117. package/src/client/types/app/bsky/graph/getFollows.ts +7 -6
  118. package/src/client/types/app/bsky/graph/getMutes.ts +5 -4
  119. package/src/client/types/app/bsky/graph/{mute.ts → muteActor.ts} +3 -2
  120. package/src/client/types/app/bsky/graph/{unmute.ts → unmuteActor.ts} +3 -2
  121. package/src/client/types/app/bsky/notification/{getCount.ts → getUnreadCount.ts} +2 -1
  122. package/src/client/types/app/bsky/notification/{list.ts → listNotifications.ts} +13 -9
  123. package/src/client/types/app/bsky/notification/updateSeen.ts +2 -1
  124. package/src/client/types/app/bsky/richtext/facet.ts +81 -0
  125. package/src/client/types/app/bsky/unspecced/getPopular.ts +38 -0
  126. package/src/client/types/com/atproto/admin/defs.ts +366 -0
  127. package/src/client/types/com/atproto/admin/getModerationAction.ts +4 -3
  128. package/src/client/types/com/atproto/admin/getModerationActions.ts +5 -4
  129. package/src/client/types/com/atproto/admin/getModerationReport.ts +4 -3
  130. package/src/client/types/com/atproto/admin/getModerationReports.ts +5 -4
  131. package/src/client/types/com/atproto/admin/getRecord.ts +4 -3
  132. package/src/client/types/com/atproto/admin/getRepo.ts +4 -3
  133. package/src/client/types/com/atproto/admin/resolveModerationReports.ts +4 -3
  134. package/src/client/types/com/atproto/admin/reverseModerationAction.ts +4 -3
  135. package/src/client/types/com/atproto/admin/searchRepos.ts +5 -4
  136. package/src/client/types/com/atproto/admin/takeModerationAction.ts +10 -10
  137. package/src/client/types/com/atproto/{handle/resolve.ts → identity/resolveHandle.ts} +2 -1
  138. package/src/client/types/com/atproto/{handle/update.ts → identity/updateHandle.ts} +2 -1
  139. package/src/client/types/com/atproto/{report/create.ts → moderation/createReport.ts} +10 -10
  140. package/src/client/types/com/atproto/moderation/defs.ts +17 -0
  141. package/src/client/types/com/atproto/repo/{batchWrite.ts → applyWrites.ts} +21 -12
  142. package/src/client/types/com/atproto/repo/createRecord.ts +15 -3
  143. package/src/client/types/com/atproto/repo/deleteRecord.ts +15 -3
  144. package/src/client/types/com/atproto/repo/{describe.ts → describeRepo.ts} +3 -2
  145. package/src/client/types/com/atproto/repo/getRecord.ts +4 -3
  146. package/src/client/types/com/atproto/repo/listRecords.ts +7 -6
  147. package/src/client/types/com/atproto/repo/putRecord.ts +18 -6
  148. package/src/client/types/com/atproto/repo/strongRef.ts +2 -1
  149. package/src/client/types/com/atproto/{blob/upload.ts → repo/uploadBlob.ts} +3 -2
  150. package/src/client/types/com/atproto/{account/create.ts → server/createAccount.ts} +9 -1
  151. package/src/client/types/com/atproto/{account → server}/createInviteCode.ts +2 -1
  152. package/src/client/types/com/atproto/{session/create.ts → server/createSession.ts} +2 -1
  153. package/src/client/types/com/atproto/{account/delete.ts → server/deleteAccount.ts} +2 -1
  154. package/src/client/types/com/atproto/{account/requestDelete.ts → server/deleteSession.ts} +2 -1
  155. package/src/client/types/com/atproto/server/{getAccountsConfig.ts → describeServer.ts} +4 -3
  156. package/src/client/types/com/atproto/{session/get.ts → server/getSession.ts} +2 -1
  157. package/src/client/types/com/atproto/{session/refresh.ts → server/refreshSession.ts} +2 -1
  158. package/src/client/types/com/atproto/{session/delete.ts → server/requestAccountDelete.ts} +2 -1
  159. package/src/client/types/com/atproto/{account → server}/requestPasswordReset.ts +2 -1
  160. package/src/client/types/com/atproto/{account → server}/resetPassword.ts +2 -1
  161. package/src/client/types/com/atproto/sync/getBlob.ts +33 -0
  162. package/src/client/types/com/atproto/sync/getBlocks.ts +32 -0
  163. package/src/client/types/com/atproto/sync/getCheckout.ts +2 -1
  164. package/src/client/types/com/atproto/sync/getCommitPath.ts +2 -1
  165. package/src/client/types/com/atproto/sync/getHead.ts +2 -1
  166. package/src/client/types/com/atproto/sync/getRecord.ts +2 -1
  167. package/src/client/types/com/atproto/sync/getRepo.ts +2 -1
  168. package/src/client/types/com/atproto/sync/listBlobs.ts +40 -0
  169. package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +30 -0
  170. package/src/client/types/com/atproto/{account/get.ts → sync/requestCrawl.ts} +6 -2
  171. package/src/client/types/com/atproto/sync/subscribeRepos.ts +131 -0
  172. package/src/index.ts +12 -0
  173. package/src/rich-text/detection.ts +83 -0
  174. package/src/rich-text/rich-text.ts +401 -0
  175. package/src/rich-text/sanitization.ts +40 -0
  176. package/src/rich-text/unicode.ts +47 -0
  177. package/src/types.ts +2 -2
  178. package/tests/agent.test.ts +10 -6
  179. package/tests/bsky-agent.test.ts +140 -0
  180. package/tests/errors.test.ts +4 -4
  181. package/tests/rich-text-detection.test.ts +229 -0
  182. package/tests/rich-text-sanitization.test.ts +211 -0
  183. package/tests/rich-text.test.ts +661 -0
  184. package/tsconfig.build.tsbuildinfo +1 -1
  185. package/src/client/types/app/bsky/actor/ref.ts +0 -64
  186. package/src/client/types/app/bsky/actor/updateProfile.ts +0 -71
  187. package/src/client/types/app/bsky/feed/feedViewPost.ts +0 -64
  188. package/src/client/types/app/bsky/feed/setVote.ts +0 -40
  189. package/src/client/types/app/bsky/graph/assertCreator.ts +0 -9
  190. package/src/client/types/app/bsky/graph/assertMember.ts +0 -9
  191. package/src/client/types/app/bsky/graph/assertion.ts +0 -27
  192. package/src/client/types/app/bsky/graph/confirmation.ts +0 -28
  193. package/src/client/types/app/bsky/system/actorUser.ts +0 -9
  194. package/src/client/types/app/bsky/system/declRef.ts +0 -26
  195. package/src/client/types/app/bsky/system/declaration.ts +0 -24
  196. package/src/client/types/com/atproto/admin/blob.ts +0 -84
  197. package/src/client/types/com/atproto/admin/moderationAction.ts +0 -118
  198. package/src/client/types/com/atproto/admin/moderationReport.ts +0 -64
  199. package/src/client/types/com/atproto/admin/record.ts +0 -92
  200. package/src/client/types/com/atproto/admin/repo.ts +0 -103
  201. package/src/client/types/com/atproto/repo/recordRef.ts +0 -25
  202. package/src/client/types/com/atproto/repo/repoRef.ts +0 -24
  203. package/src/client/types/com/atproto/report/reasonType.ts +0 -16
  204. package/src/client/types/com/atproto/report/subject.ts +0 -66
  205. package/src/client/types/com/atproto/sync/subscribeAllRepos.ts +0 -48
@@ -6,193 +6,171 @@ import {
6
6
  ServiceClient as XrpcServiceClient,
7
7
  } from '@atproto/xrpc'
8
8
  import { schemas } from './lexicons'
9
- import * as ComAtprotoAccountCreate from './types/com/atproto/account/create'
10
- import * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'
11
- import * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'
12
- import * as ComAtprotoAccountGet from './types/com/atproto/account/get'
13
- import * as ComAtprotoAccountRequestDelete from './types/com/atproto/account/requestDelete'
14
- import * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'
15
- import * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'
16
- import * as ComAtprotoAdminBlob from './types/com/atproto/admin/blob'
9
+ import { CID } from 'multiformats/cid'
10
+ import * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
17
11
  import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
18
12
  import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
19
13
  import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport'
20
14
  import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports'
21
15
  import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
22
16
  import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
23
- import * as ComAtprotoAdminModerationAction from './types/com/atproto/admin/moderationAction'
24
- import * as ComAtprotoAdminModerationReport from './types/com/atproto/admin/moderationReport'
25
- import * as ComAtprotoAdminRecord from './types/com/atproto/admin/record'
26
- import * as ComAtprotoAdminRepo from './types/com/atproto/admin/repo'
27
17
  import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports'
28
18
  import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
29
19
  import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
30
20
  import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
31
- import * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
32
- import * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
33
- import * as ComAtprotoHandleUpdate from './types/com/atproto/handle/update'
34
- import * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
21
+ import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
22
+ import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
23
+ import * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport'
24
+ import * as ComAtprotoModerationDefs from './types/com/atproto/moderation/defs'
25
+ import * as ComAtprotoRepoApplyWrites from './types/com/atproto/repo/applyWrites'
35
26
  import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'
36
27
  import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
37
- import * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'
28
+ import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo'
38
29
  import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
39
30
  import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
40
31
  import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
41
- import * as ComAtprotoRepoRecordRef from './types/com/atproto/repo/recordRef'
42
- import * as ComAtprotoRepoRepoRef from './types/com/atproto/repo/repoRef'
43
32
  import * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
44
- import * as ComAtprotoReportCreate from './types/com/atproto/report/create'
45
- import * as ComAtprotoReportReasonType from './types/com/atproto/report/reasonType'
46
- import * as ComAtprotoReportSubject from './types/com/atproto/report/subject'
47
- import * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'
48
- import * as ComAtprotoSessionCreate from './types/com/atproto/session/create'
49
- import * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'
50
- import * as ComAtprotoSessionGet from './types/com/atproto/session/get'
51
- import * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'
33
+ import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
34
+ import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
35
+ import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
36
+ import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
37
+ import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount'
38
+ import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession'
39
+ import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
40
+ import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
41
+ import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
42
+ import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete'
43
+ import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset'
44
+ import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword'
45
+ import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob'
46
+ import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
52
47
  import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
53
48
  import * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath'
54
49
  import * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
55
50
  import * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
56
51
  import * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
57
- import * as ComAtprotoSyncSubscribeAllRepos from './types/com/atproto/sync/subscribeAllRepos'
52
+ import * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs'
53
+ import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
54
+ import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
55
+ import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
56
+ import * as AppBskyActorDefs from './types/app/bsky/actor/defs'
58
57
  import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
59
58
  import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
60
59
  import * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
61
60
  import * as AppBskyActorProfile from './types/app/bsky/actor/profile'
62
- import * as AppBskyActorRef from './types/app/bsky/actor/ref'
63
- import * as AppBskyActorSearch from './types/app/bsky/actor/search'
64
- import * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead'
65
- import * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'
61
+ import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors'
62
+ import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead'
66
63
  import * as AppBskyEmbedExternal from './types/app/bsky/embed/external'
67
64
  import * as AppBskyEmbedImages from './types/app/bsky/embed/images'
68
- import * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost'
65
+ import * as AppBskyEmbedRecord from './types/app/bsky/embed/record'
66
+ import * as AppBskyEmbedRecordWithMedia from './types/app/bsky/embed/recordWithMedia'
67
+ import * as AppBskyFeedDefs from './types/app/bsky/feed/defs'
69
68
  import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'
69
+ import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes'
70
70
  import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
71
71
  import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'
72
72
  import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
73
- import * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'
73
+ import * as AppBskyFeedLike from './types/app/bsky/feed/like'
74
74
  import * as AppBskyFeedPost from './types/app/bsky/feed/post'
75
75
  import * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
76
- import * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'
77
- import * as AppBskyFeedVote from './types/app/bsky/feed/vote'
78
- import * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'
79
- import * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'
80
- import * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'
81
- import * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'
82
76
  import * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
83
77
  import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
84
78
  import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
85
79
  import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
86
- import * as AppBskyGraphMute from './types/app/bsky/graph/mute'
87
- import * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute'
88
- import * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'
89
- import * as AppBskyNotificationList from './types/app/bsky/notification/list'
80
+ import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
81
+ import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
82
+ import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount'
83
+ import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications'
90
84
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
91
- import * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'
92
- import * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'
93
- import * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'
94
-
95
- export * as ComAtprotoAccountCreate from './types/com/atproto/account/create'
96
- export * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'
97
- export * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'
98
- export * as ComAtprotoAccountGet from './types/com/atproto/account/get'
99
- export * as ComAtprotoAccountRequestDelete from './types/com/atproto/account/requestDelete'
100
- export * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'
101
- export * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'
102
- export * as ComAtprotoAdminBlob from './types/com/atproto/admin/blob'
85
+ import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
86
+ import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
87
+
88
+ export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
103
89
  export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
104
90
  export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
105
91
  export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport'
106
92
  export * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports'
107
93
  export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
108
94
  export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
109
- export * as ComAtprotoAdminModerationAction from './types/com/atproto/admin/moderationAction'
110
- export * as ComAtprotoAdminModerationReport from './types/com/atproto/admin/moderationReport'
111
- export * as ComAtprotoAdminRecord from './types/com/atproto/admin/record'
112
- export * as ComAtprotoAdminRepo from './types/com/atproto/admin/repo'
113
95
  export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports'
114
96
  export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
115
97
  export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
116
98
  export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
117
- export * as ComAtprotoBlobUpload from './types/com/atproto/blob/upload'
118
- export * as ComAtprotoHandleResolve from './types/com/atproto/handle/resolve'
119
- export * as ComAtprotoHandleUpdate from './types/com/atproto/handle/update'
120
- export * as ComAtprotoRepoBatchWrite from './types/com/atproto/repo/batchWrite'
99
+ export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
100
+ export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
101
+ export * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport'
102
+ export * as ComAtprotoModerationDefs from './types/com/atproto/moderation/defs'
103
+ export * as ComAtprotoRepoApplyWrites from './types/com/atproto/repo/applyWrites'
121
104
  export * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createRecord'
122
105
  export * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
123
- export * as ComAtprotoRepoDescribe from './types/com/atproto/repo/describe'
106
+ export * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo'
124
107
  export * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
125
108
  export * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
126
109
  export * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
127
- export * as ComAtprotoRepoRecordRef from './types/com/atproto/repo/recordRef'
128
- export * as ComAtprotoRepoRepoRef from './types/com/atproto/repo/repoRef'
129
110
  export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef'
130
- export * as ComAtprotoReportCreate from './types/com/atproto/report/create'
131
- export * as ComAtprotoReportReasonType from './types/com/atproto/report/reasonType'
132
- export * as ComAtprotoReportSubject from './types/com/atproto/report/subject'
133
- export * as ComAtprotoServerGetAccountsConfig from './types/com/atproto/server/getAccountsConfig'
134
- export * as ComAtprotoSessionCreate from './types/com/atproto/session/create'
135
- export * as ComAtprotoSessionDelete from './types/com/atproto/session/delete'
136
- export * as ComAtprotoSessionGet from './types/com/atproto/session/get'
137
- export * as ComAtprotoSessionRefresh from './types/com/atproto/session/refresh'
111
+ export * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
112
+ export * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
113
+ export * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
114
+ export * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
115
+ export * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount'
116
+ export * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession'
117
+ export * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
118
+ export * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
119
+ export * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
120
+ export * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete'
121
+ export * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset'
122
+ export * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword'
123
+ export * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob'
124
+ export * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
138
125
  export * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
139
126
  export * as ComAtprotoSyncGetCommitPath from './types/com/atproto/sync/getCommitPath'
140
127
  export * as ComAtprotoSyncGetHead from './types/com/atproto/sync/getHead'
141
128
  export * as ComAtprotoSyncGetRecord from './types/com/atproto/sync/getRecord'
142
129
  export * as ComAtprotoSyncGetRepo from './types/com/atproto/sync/getRepo'
143
- export * as ComAtprotoSyncSubscribeAllRepos from './types/com/atproto/sync/subscribeAllRepos'
130
+ export * as ComAtprotoSyncListBlobs from './types/com/atproto/sync/listBlobs'
131
+ export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
132
+ export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
133
+ export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
134
+ export * as AppBskyActorDefs from './types/app/bsky/actor/defs'
144
135
  export * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
145
136
  export * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
146
137
  export * as AppBskyActorGetSuggestions from './types/app/bsky/actor/getSuggestions'
147
138
  export * as AppBskyActorProfile from './types/app/bsky/actor/profile'
148
- export * as AppBskyActorRef from './types/app/bsky/actor/ref'
149
- export * as AppBskyActorSearch from './types/app/bsky/actor/search'
150
- export * as AppBskyActorSearchTypeahead from './types/app/bsky/actor/searchTypeahead'
151
- export * as AppBskyActorUpdateProfile from './types/app/bsky/actor/updateProfile'
139
+ export * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors'
140
+ export * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead'
152
141
  export * as AppBskyEmbedExternal from './types/app/bsky/embed/external'
153
142
  export * as AppBskyEmbedImages from './types/app/bsky/embed/images'
154
- export * as AppBskyFeedFeedViewPost from './types/app/bsky/feed/feedViewPost'
143
+ export * as AppBskyEmbedRecord from './types/app/bsky/embed/record'
144
+ export * as AppBskyEmbedRecordWithMedia from './types/app/bsky/embed/recordWithMedia'
145
+ export * as AppBskyFeedDefs from './types/app/bsky/feed/defs'
155
146
  export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed'
147
+ export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes'
156
148
  export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread'
157
149
  export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'
158
150
  export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
159
- export * as AppBskyFeedGetVotes from './types/app/bsky/feed/getVotes'
151
+ export * as AppBskyFeedLike from './types/app/bsky/feed/like'
160
152
  export * as AppBskyFeedPost from './types/app/bsky/feed/post'
161
153
  export * as AppBskyFeedRepost from './types/app/bsky/feed/repost'
162
- export * as AppBskyFeedSetVote from './types/app/bsky/feed/setVote'
163
- export * as AppBskyFeedVote from './types/app/bsky/feed/vote'
164
- export * as AppBskyGraphAssertCreator from './types/app/bsky/graph/assertCreator'
165
- export * as AppBskyGraphAssertMember from './types/app/bsky/graph/assertMember'
166
- export * as AppBskyGraphAssertion from './types/app/bsky/graph/assertion'
167
- export * as AppBskyGraphConfirmation from './types/app/bsky/graph/confirmation'
168
154
  export * as AppBskyGraphFollow from './types/app/bsky/graph/follow'
169
155
  export * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
170
156
  export * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
171
157
  export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes'
172
- export * as AppBskyGraphMute from './types/app/bsky/graph/mute'
173
- export * as AppBskyGraphUnmute from './types/app/bsky/graph/unmute'
174
- export * as AppBskyNotificationGetCount from './types/app/bsky/notification/getCount'
175
- export * as AppBskyNotificationList from './types/app/bsky/notification/list'
158
+ export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
159
+ export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
160
+ export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount'
161
+ export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications'
176
162
  export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
177
- export * as AppBskySystemActorUser from './types/app/bsky/system/actorUser'
178
- export * as AppBskySystemDeclRef from './types/app/bsky/system/declRef'
179
- export * as AppBskySystemDeclaration from './types/app/bsky/system/declaration'
163
+ export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet'
164
+ export * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
180
165
 
181
166
  export const COM_ATPROTO_ADMIN = {
182
- ModerationActionTakedown: 'com.atproto.admin.moderationAction#takedown',
183
- ModerationActionFlag: 'com.atproto.admin.moderationAction#flag',
184
- ModerationActionAcknowledge: 'com.atproto.admin.moderationAction#acknowledge',
185
- }
186
- export const COM_ATPROTO_REPORT = {
187
- ReasonTypeSpam: 'com.atproto.report.reasonType#spam',
188
- ReasonTypeOther: 'com.atproto.report.reasonType#other',
189
- }
190
- export const APP_BSKY_GRAPH = {
191
- AssertCreator: 'app.bsky.graph.assertCreator',
192
- AssertMember: 'app.bsky.graph.assertMember',
167
+ DefsTakedown: 'com.atproto.admin.defs#takedown',
168
+ DefsFlag: 'com.atproto.admin.defs#flag',
169
+ DefsAcknowledge: 'com.atproto.admin.defs#acknowledge',
193
170
  }
194
- export const APP_BSKY_SYSTEM = {
195
- ActorUser: 'app.bsky.system.actorUser',
171
+ export const COM_ATPROTO_MODERATION = {
172
+ DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
173
+ DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
196
174
  }
197
175
 
198
176
  export class AtpBaseClient {
@@ -237,115 +215,24 @@ export class ComNS {
237
215
 
238
216
  export class AtprotoNS {
239
217
  _service: AtpServiceClient
240
- account: AccountNS
241
218
  admin: AdminNS
242
- blob: BlobNS
243
- handle: HandleNS
219
+ identity: IdentityNS
220
+ moderation: ModerationNS
244
221
  repo: RepoNS
245
- report: ReportNS
246
222
  server: ServerNS
247
- session: SessionNS
248
223
  sync: SyncNS
249
224
 
250
225
  constructor(service: AtpServiceClient) {
251
226
  this._service = service
252
- this.account = new AccountNS(service)
253
227
  this.admin = new AdminNS(service)
254
- this.blob = new BlobNS(service)
255
- this.handle = new HandleNS(service)
228
+ this.identity = new IdentityNS(service)
229
+ this.moderation = new ModerationNS(service)
256
230
  this.repo = new RepoNS(service)
257
- this.report = new ReportNS(service)
258
231
  this.server = new ServerNS(service)
259
- this.session = new SessionNS(service)
260
232
  this.sync = new SyncNS(service)
261
233
  }
262
234
  }
263
235
 
264
- export class AccountNS {
265
- _service: AtpServiceClient
266
-
267
- constructor(service: AtpServiceClient) {
268
- this._service = service
269
- }
270
-
271
- create(
272
- data?: ComAtprotoAccountCreate.InputSchema,
273
- opts?: ComAtprotoAccountCreate.CallOptions,
274
- ): Promise<ComAtprotoAccountCreate.Response> {
275
- return this._service.xrpc
276
- .call('com.atproto.account.create', opts?.qp, data, opts)
277
- .catch((e) => {
278
- throw ComAtprotoAccountCreate.toKnownErr(e)
279
- })
280
- }
281
-
282
- createInviteCode(
283
- data?: ComAtprotoAccountCreateInviteCode.InputSchema,
284
- opts?: ComAtprotoAccountCreateInviteCode.CallOptions,
285
- ): Promise<ComAtprotoAccountCreateInviteCode.Response> {
286
- return this._service.xrpc
287
- .call('com.atproto.account.createInviteCode', opts?.qp, data, opts)
288
- .catch((e) => {
289
- throw ComAtprotoAccountCreateInviteCode.toKnownErr(e)
290
- })
291
- }
292
-
293
- delete(
294
- data?: ComAtprotoAccountDelete.InputSchema,
295
- opts?: ComAtprotoAccountDelete.CallOptions,
296
- ): Promise<ComAtprotoAccountDelete.Response> {
297
- return this._service.xrpc
298
- .call('com.atproto.account.delete', opts?.qp, data, opts)
299
- .catch((e) => {
300
- throw ComAtprotoAccountDelete.toKnownErr(e)
301
- })
302
- }
303
-
304
- get(
305
- params?: ComAtprotoAccountGet.QueryParams,
306
- opts?: ComAtprotoAccountGet.CallOptions,
307
- ): Promise<ComAtprotoAccountGet.Response> {
308
- return this._service.xrpc
309
- .call('com.atproto.account.get', params, undefined, opts)
310
- .catch((e) => {
311
- throw ComAtprotoAccountGet.toKnownErr(e)
312
- })
313
- }
314
-
315
- requestDelete(
316
- data?: ComAtprotoAccountRequestDelete.InputSchema,
317
- opts?: ComAtprotoAccountRequestDelete.CallOptions,
318
- ): Promise<ComAtprotoAccountRequestDelete.Response> {
319
- return this._service.xrpc
320
- .call('com.atproto.account.requestDelete', opts?.qp, data, opts)
321
- .catch((e) => {
322
- throw ComAtprotoAccountRequestDelete.toKnownErr(e)
323
- })
324
- }
325
-
326
- requestPasswordReset(
327
- data?: ComAtprotoAccountRequestPasswordReset.InputSchema,
328
- opts?: ComAtprotoAccountRequestPasswordReset.CallOptions,
329
- ): Promise<ComAtprotoAccountRequestPasswordReset.Response> {
330
- return this._service.xrpc
331
- .call('com.atproto.account.requestPasswordReset', opts?.qp, data, opts)
332
- .catch((e) => {
333
- throw ComAtprotoAccountRequestPasswordReset.toKnownErr(e)
334
- })
335
- }
336
-
337
- resetPassword(
338
- data?: ComAtprotoAccountResetPassword.InputSchema,
339
- opts?: ComAtprotoAccountResetPassword.CallOptions,
340
- ): Promise<ComAtprotoAccountResetPassword.Response> {
341
- return this._service.xrpc
342
- .call('com.atproto.account.resetPassword', opts?.qp, data, opts)
343
- .catch((e) => {
344
- throw ComAtprotoAccountResetPassword.toKnownErr(e)
345
- })
346
- }
347
- }
348
-
349
236
  export class AdminNS {
350
237
  _service: AtpServiceClient
351
238
 
@@ -464,51 +351,51 @@ export class AdminNS {
464
351
  }
465
352
  }
466
353
 
467
- export class BlobNS {
354
+ export class IdentityNS {
468
355
  _service: AtpServiceClient
469
356
 
470
357
  constructor(service: AtpServiceClient) {
471
358
  this._service = service
472
359
  }
473
360
 
474
- upload(
475
- data?: ComAtprotoBlobUpload.InputSchema,
476
- opts?: ComAtprotoBlobUpload.CallOptions,
477
- ): Promise<ComAtprotoBlobUpload.Response> {
361
+ resolveHandle(
362
+ params?: ComAtprotoIdentityResolveHandle.QueryParams,
363
+ opts?: ComAtprotoIdentityResolveHandle.CallOptions,
364
+ ): Promise<ComAtprotoIdentityResolveHandle.Response> {
365
+ return this._service.xrpc
366
+ .call('com.atproto.identity.resolveHandle', params, undefined, opts)
367
+ .catch((e) => {
368
+ throw ComAtprotoIdentityResolveHandle.toKnownErr(e)
369
+ })
370
+ }
371
+
372
+ updateHandle(
373
+ data?: ComAtprotoIdentityUpdateHandle.InputSchema,
374
+ opts?: ComAtprotoIdentityUpdateHandle.CallOptions,
375
+ ): Promise<ComAtprotoIdentityUpdateHandle.Response> {
478
376
  return this._service.xrpc
479
- .call('com.atproto.blob.upload', opts?.qp, data, opts)
377
+ .call('com.atproto.identity.updateHandle', opts?.qp, data, opts)
480
378
  .catch((e) => {
481
- throw ComAtprotoBlobUpload.toKnownErr(e)
379
+ throw ComAtprotoIdentityUpdateHandle.toKnownErr(e)
482
380
  })
483
381
  }
484
382
  }
485
383
 
486
- export class HandleNS {
384
+ export class ModerationNS {
487
385
  _service: AtpServiceClient
488
386
 
489
387
  constructor(service: AtpServiceClient) {
490
388
  this._service = service
491
389
  }
492
390
 
493
- resolve(
494
- params?: ComAtprotoHandleResolve.QueryParams,
495
- opts?: ComAtprotoHandleResolve.CallOptions,
496
- ): Promise<ComAtprotoHandleResolve.Response> {
391
+ createReport(
392
+ data?: ComAtprotoModerationCreateReport.InputSchema,
393
+ opts?: ComAtprotoModerationCreateReport.CallOptions,
394
+ ): Promise<ComAtprotoModerationCreateReport.Response> {
497
395
  return this._service.xrpc
498
- .call('com.atproto.handle.resolve', params, undefined, opts)
396
+ .call('com.atproto.moderation.createReport', opts?.qp, data, opts)
499
397
  .catch((e) => {
500
- throw ComAtprotoHandleResolve.toKnownErr(e)
501
- })
502
- }
503
-
504
- update(
505
- data?: ComAtprotoHandleUpdate.InputSchema,
506
- opts?: ComAtprotoHandleUpdate.CallOptions,
507
- ): Promise<ComAtprotoHandleUpdate.Response> {
508
- return this._service.xrpc
509
- .call('com.atproto.handle.update', opts?.qp, data, opts)
510
- .catch((e) => {
511
- throw ComAtprotoHandleUpdate.toKnownErr(e)
398
+ throw ComAtprotoModerationCreateReport.toKnownErr(e)
512
399
  })
513
400
  }
514
401
  }
@@ -520,14 +407,14 @@ export class RepoNS {
520
407
  this._service = service
521
408
  }
522
409
 
523
- batchWrite(
524
- data?: ComAtprotoRepoBatchWrite.InputSchema,
525
- opts?: ComAtprotoRepoBatchWrite.CallOptions,
526
- ): Promise<ComAtprotoRepoBatchWrite.Response> {
410
+ applyWrites(
411
+ data?: ComAtprotoRepoApplyWrites.InputSchema,
412
+ opts?: ComAtprotoRepoApplyWrites.CallOptions,
413
+ ): Promise<ComAtprotoRepoApplyWrites.Response> {
527
414
  return this._service.xrpc
528
- .call('com.atproto.repo.batchWrite', opts?.qp, data, opts)
415
+ .call('com.atproto.repo.applyWrites', opts?.qp, data, opts)
529
416
  .catch((e) => {
530
- throw ComAtprotoRepoBatchWrite.toKnownErr(e)
417
+ throw ComAtprotoRepoApplyWrites.toKnownErr(e)
531
418
  })
532
419
  }
533
420
 
@@ -553,14 +440,14 @@ export class RepoNS {
553
440
  })
554
441
  }
555
442
 
556
- describe(
557
- params?: ComAtprotoRepoDescribe.QueryParams,
558
- opts?: ComAtprotoRepoDescribe.CallOptions,
559
- ): Promise<ComAtprotoRepoDescribe.Response> {
443
+ describeRepo(
444
+ params?: ComAtprotoRepoDescribeRepo.QueryParams,
445
+ opts?: ComAtprotoRepoDescribeRepo.CallOptions,
446
+ ): Promise<ComAtprotoRepoDescribeRepo.Response> {
560
447
  return this._service.xrpc
561
- .call('com.atproto.repo.describe', params, undefined, opts)
448
+ .call('com.atproto.repo.describeRepo', params, undefined, opts)
562
449
  .catch((e) => {
563
- throw ComAtprotoRepoDescribe.toKnownErr(e)
450
+ throw ComAtprotoRepoDescribeRepo.toKnownErr(e)
564
451
  })
565
452
  }
566
453
 
@@ -596,94 +483,144 @@ export class RepoNS {
596
483
  throw ComAtprotoRepoPutRecord.toKnownErr(e)
597
484
  })
598
485
  }
486
+
487
+ uploadBlob(
488
+ data?: ComAtprotoRepoUploadBlob.InputSchema,
489
+ opts?: ComAtprotoRepoUploadBlob.CallOptions,
490
+ ): Promise<ComAtprotoRepoUploadBlob.Response> {
491
+ return this._service.xrpc
492
+ .call('com.atproto.repo.uploadBlob', opts?.qp, data, opts)
493
+ .catch((e) => {
494
+ throw ComAtprotoRepoUploadBlob.toKnownErr(e)
495
+ })
496
+ }
599
497
  }
600
498
 
601
- export class ReportNS {
499
+ export class ServerNS {
602
500
  _service: AtpServiceClient
603
501
 
604
502
  constructor(service: AtpServiceClient) {
605
503
  this._service = service
606
504
  }
607
505
 
608
- create(
609
- data?: ComAtprotoReportCreate.InputSchema,
610
- opts?: ComAtprotoReportCreate.CallOptions,
611
- ): Promise<ComAtprotoReportCreate.Response> {
506
+ createAccount(
507
+ data?: ComAtprotoServerCreateAccount.InputSchema,
508
+ opts?: ComAtprotoServerCreateAccount.CallOptions,
509
+ ): Promise<ComAtprotoServerCreateAccount.Response> {
612
510
  return this._service.xrpc
613
- .call('com.atproto.report.create', opts?.qp, data, opts)
511
+ .call('com.atproto.server.createAccount', opts?.qp, data, opts)
614
512
  .catch((e) => {
615
- throw ComAtprotoReportCreate.toKnownErr(e)
513
+ throw ComAtprotoServerCreateAccount.toKnownErr(e)
616
514
  })
617
515
  }
618
- }
619
516
 
620
- export class ServerNS {
621
- _service: AtpServiceClient
517
+ createInviteCode(
518
+ data?: ComAtprotoServerCreateInviteCode.InputSchema,
519
+ opts?: ComAtprotoServerCreateInviteCode.CallOptions,
520
+ ): Promise<ComAtprotoServerCreateInviteCode.Response> {
521
+ return this._service.xrpc
522
+ .call('com.atproto.server.createInviteCode', opts?.qp, data, opts)
523
+ .catch((e) => {
524
+ throw ComAtprotoServerCreateInviteCode.toKnownErr(e)
525
+ })
526
+ }
622
527
 
623
- constructor(service: AtpServiceClient) {
624
- this._service = service
528
+ createSession(
529
+ data?: ComAtprotoServerCreateSession.InputSchema,
530
+ opts?: ComAtprotoServerCreateSession.CallOptions,
531
+ ): Promise<ComAtprotoServerCreateSession.Response> {
532
+ return this._service.xrpc
533
+ .call('com.atproto.server.createSession', opts?.qp, data, opts)
534
+ .catch((e) => {
535
+ throw ComAtprotoServerCreateSession.toKnownErr(e)
536
+ })
625
537
  }
626
538
 
627
- getAccountsConfig(
628
- params?: ComAtprotoServerGetAccountsConfig.QueryParams,
629
- opts?: ComAtprotoServerGetAccountsConfig.CallOptions,
630
- ): Promise<ComAtprotoServerGetAccountsConfig.Response> {
539
+ deleteAccount(
540
+ data?: ComAtprotoServerDeleteAccount.InputSchema,
541
+ opts?: ComAtprotoServerDeleteAccount.CallOptions,
542
+ ): Promise<ComAtprotoServerDeleteAccount.Response> {
631
543
  return this._service.xrpc
632
- .call('com.atproto.server.getAccountsConfig', params, undefined, opts)
544
+ .call('com.atproto.server.deleteAccount', opts?.qp, data, opts)
633
545
  .catch((e) => {
634
- throw ComAtprotoServerGetAccountsConfig.toKnownErr(e)
546
+ throw ComAtprotoServerDeleteAccount.toKnownErr(e)
635
547
  })
636
548
  }
637
- }
638
549
 
639
- export class SessionNS {
640
- _service: AtpServiceClient
550
+ deleteSession(
551
+ data?: ComAtprotoServerDeleteSession.InputSchema,
552
+ opts?: ComAtprotoServerDeleteSession.CallOptions,
553
+ ): Promise<ComAtprotoServerDeleteSession.Response> {
554
+ return this._service.xrpc
555
+ .call('com.atproto.server.deleteSession', opts?.qp, data, opts)
556
+ .catch((e) => {
557
+ throw ComAtprotoServerDeleteSession.toKnownErr(e)
558
+ })
559
+ }
641
560
 
642
- constructor(service: AtpServiceClient) {
643
- this._service = service
561
+ describeServer(
562
+ params?: ComAtprotoServerDescribeServer.QueryParams,
563
+ opts?: ComAtprotoServerDescribeServer.CallOptions,
564
+ ): Promise<ComAtprotoServerDescribeServer.Response> {
565
+ return this._service.xrpc
566
+ .call('com.atproto.server.describeServer', params, undefined, opts)
567
+ .catch((e) => {
568
+ throw ComAtprotoServerDescribeServer.toKnownErr(e)
569
+ })
644
570
  }
645
571
 
646
- create(
647
- data?: ComAtprotoSessionCreate.InputSchema,
648
- opts?: ComAtprotoSessionCreate.CallOptions,
649
- ): Promise<ComAtprotoSessionCreate.Response> {
572
+ getSession(
573
+ params?: ComAtprotoServerGetSession.QueryParams,
574
+ opts?: ComAtprotoServerGetSession.CallOptions,
575
+ ): Promise<ComAtprotoServerGetSession.Response> {
650
576
  return this._service.xrpc
651
- .call('com.atproto.session.create', opts?.qp, data, opts)
577
+ .call('com.atproto.server.getSession', params, undefined, opts)
652
578
  .catch((e) => {
653
- throw ComAtprotoSessionCreate.toKnownErr(e)
579
+ throw ComAtprotoServerGetSession.toKnownErr(e)
654
580
  })
655
581
  }
656
582
 
657
- delete(
658
- data?: ComAtprotoSessionDelete.InputSchema,
659
- opts?: ComAtprotoSessionDelete.CallOptions,
660
- ): Promise<ComAtprotoSessionDelete.Response> {
583
+ refreshSession(
584
+ data?: ComAtprotoServerRefreshSession.InputSchema,
585
+ opts?: ComAtprotoServerRefreshSession.CallOptions,
586
+ ): Promise<ComAtprotoServerRefreshSession.Response> {
661
587
  return this._service.xrpc
662
- .call('com.atproto.session.delete', opts?.qp, data, opts)
588
+ .call('com.atproto.server.refreshSession', opts?.qp, data, opts)
663
589
  .catch((e) => {
664
- throw ComAtprotoSessionDelete.toKnownErr(e)
590
+ throw ComAtprotoServerRefreshSession.toKnownErr(e)
665
591
  })
666
592
  }
667
593
 
668
- get(
669
- params?: ComAtprotoSessionGet.QueryParams,
670
- opts?: ComAtprotoSessionGet.CallOptions,
671
- ): Promise<ComAtprotoSessionGet.Response> {
594
+ requestAccountDelete(
595
+ data?: ComAtprotoServerRequestAccountDelete.InputSchema,
596
+ opts?: ComAtprotoServerRequestAccountDelete.CallOptions,
597
+ ): Promise<ComAtprotoServerRequestAccountDelete.Response> {
672
598
  return this._service.xrpc
673
- .call('com.atproto.session.get', params, undefined, opts)
599
+ .call('com.atproto.server.requestAccountDelete', opts?.qp, data, opts)
674
600
  .catch((e) => {
675
- throw ComAtprotoSessionGet.toKnownErr(e)
601
+ throw ComAtprotoServerRequestAccountDelete.toKnownErr(e)
676
602
  })
677
603
  }
678
604
 
679
- refresh(
680
- data?: ComAtprotoSessionRefresh.InputSchema,
681
- opts?: ComAtprotoSessionRefresh.CallOptions,
682
- ): Promise<ComAtprotoSessionRefresh.Response> {
605
+ requestPasswordReset(
606
+ data?: ComAtprotoServerRequestPasswordReset.InputSchema,
607
+ opts?: ComAtprotoServerRequestPasswordReset.CallOptions,
608
+ ): Promise<ComAtprotoServerRequestPasswordReset.Response> {
683
609
  return this._service.xrpc
684
- .call('com.atproto.session.refresh', opts?.qp, data, opts)
610
+ .call('com.atproto.server.requestPasswordReset', opts?.qp, data, opts)
685
611
  .catch((e) => {
686
- throw ComAtprotoSessionRefresh.toKnownErr(e)
612
+ throw ComAtprotoServerRequestPasswordReset.toKnownErr(e)
613
+ })
614
+ }
615
+
616
+ resetPassword(
617
+ data?: ComAtprotoServerResetPassword.InputSchema,
618
+ opts?: ComAtprotoServerResetPassword.CallOptions,
619
+ ): Promise<ComAtprotoServerResetPassword.Response> {
620
+ return this._service.xrpc
621
+ .call('com.atproto.server.resetPassword', opts?.qp, data, opts)
622
+ .catch((e) => {
623
+ throw ComAtprotoServerResetPassword.toKnownErr(e)
687
624
  })
688
625
  }
689
626
  }
@@ -695,6 +632,28 @@ export class SyncNS {
695
632
  this._service = service
696
633
  }
697
634
 
635
+ getBlob(
636
+ params?: ComAtprotoSyncGetBlob.QueryParams,
637
+ opts?: ComAtprotoSyncGetBlob.CallOptions,
638
+ ): Promise<ComAtprotoSyncGetBlob.Response> {
639
+ return this._service.xrpc
640
+ .call('com.atproto.sync.getBlob', params, undefined, opts)
641
+ .catch((e) => {
642
+ throw ComAtprotoSyncGetBlob.toKnownErr(e)
643
+ })
644
+ }
645
+
646
+ getBlocks(
647
+ params?: ComAtprotoSyncGetBlocks.QueryParams,
648
+ opts?: ComAtprotoSyncGetBlocks.CallOptions,
649
+ ): Promise<ComAtprotoSyncGetBlocks.Response> {
650
+ return this._service.xrpc
651
+ .call('com.atproto.sync.getBlocks', params, undefined, opts)
652
+ .catch((e) => {
653
+ throw ComAtprotoSyncGetBlocks.toKnownErr(e)
654
+ })
655
+ }
656
+
698
657
  getCheckout(
699
658
  params?: ComAtprotoSyncGetCheckout.QueryParams,
700
659
  opts?: ComAtprotoSyncGetCheckout.CallOptions,
@@ -749,6 +708,39 @@ export class SyncNS {
749
708
  throw ComAtprotoSyncGetRepo.toKnownErr(e)
750
709
  })
751
710
  }
711
+
712
+ listBlobs(
713
+ params?: ComAtprotoSyncListBlobs.QueryParams,
714
+ opts?: ComAtprotoSyncListBlobs.CallOptions,
715
+ ): Promise<ComAtprotoSyncListBlobs.Response> {
716
+ return this._service.xrpc
717
+ .call('com.atproto.sync.listBlobs', params, undefined, opts)
718
+ .catch((e) => {
719
+ throw ComAtprotoSyncListBlobs.toKnownErr(e)
720
+ })
721
+ }
722
+
723
+ notifyOfUpdate(
724
+ params?: ComAtprotoSyncNotifyOfUpdate.QueryParams,
725
+ opts?: ComAtprotoSyncNotifyOfUpdate.CallOptions,
726
+ ): Promise<ComAtprotoSyncNotifyOfUpdate.Response> {
727
+ return this._service.xrpc
728
+ .call('com.atproto.sync.notifyOfUpdate', params, undefined, opts)
729
+ .catch((e) => {
730
+ throw ComAtprotoSyncNotifyOfUpdate.toKnownErr(e)
731
+ })
732
+ }
733
+
734
+ requestCrawl(
735
+ params?: ComAtprotoSyncRequestCrawl.QueryParams,
736
+ opts?: ComAtprotoSyncRequestCrawl.CallOptions,
737
+ ): Promise<ComAtprotoSyncRequestCrawl.Response> {
738
+ return this._service.xrpc
739
+ .call('com.atproto.sync.requestCrawl', params, undefined, opts)
740
+ .catch((e) => {
741
+ throw ComAtprotoSyncRequestCrawl.toKnownErr(e)
742
+ })
743
+ }
752
744
  }
753
745
 
754
746
  export class AppNS {
@@ -768,7 +760,8 @@ export class BskyNS {
768
760
  feed: FeedNS
769
761
  graph: GraphNS
770
762
  notification: NotificationNS
771
- system: SystemNS
763
+ richtext: RichtextNS
764
+ unspecced: UnspeccedNS
772
765
 
773
766
  constructor(service: AtpServiceClient) {
774
767
  this._service = service
@@ -777,7 +770,8 @@ export class BskyNS {
777
770
  this.feed = new FeedNS(service)
778
771
  this.graph = new GraphNS(service)
779
772
  this.notification = new NotificationNS(service)
780
- this.system = new SystemNS(service)
773
+ this.richtext = new RichtextNS(service)
774
+ this.unspecced = new UnspeccedNS(service)
781
775
  }
782
776
  }
783
777
 
@@ -823,36 +817,25 @@ export class ActorNS {
823
817
  })
824
818
  }
825
819
 
826
- search(
827
- params?: AppBskyActorSearch.QueryParams,
828
- opts?: AppBskyActorSearch.CallOptions,
829
- ): Promise<AppBskyActorSearch.Response> {
830
- return this._service.xrpc
831
- .call('app.bsky.actor.search', params, undefined, opts)
832
- .catch((e) => {
833
- throw AppBskyActorSearch.toKnownErr(e)
834
- })
835
- }
836
-
837
- searchTypeahead(
838
- params?: AppBskyActorSearchTypeahead.QueryParams,
839
- opts?: AppBskyActorSearchTypeahead.CallOptions,
840
- ): Promise<AppBskyActorSearchTypeahead.Response> {
820
+ searchActors(
821
+ params?: AppBskyActorSearchActors.QueryParams,
822
+ opts?: AppBskyActorSearchActors.CallOptions,
823
+ ): Promise<AppBskyActorSearchActors.Response> {
841
824
  return this._service.xrpc
842
- .call('app.bsky.actor.searchTypeahead', params, undefined, opts)
825
+ .call('app.bsky.actor.searchActors', params, undefined, opts)
843
826
  .catch((e) => {
844
- throw AppBskyActorSearchTypeahead.toKnownErr(e)
827
+ throw AppBskyActorSearchActors.toKnownErr(e)
845
828
  })
846
829
  }
847
830
 
848
- updateProfile(
849
- data?: AppBskyActorUpdateProfile.InputSchema,
850
- opts?: AppBskyActorUpdateProfile.CallOptions,
851
- ): Promise<AppBskyActorUpdateProfile.Response> {
831
+ searchActorsTypeahead(
832
+ params?: AppBskyActorSearchActorsTypeahead.QueryParams,
833
+ opts?: AppBskyActorSearchActorsTypeahead.CallOptions,
834
+ ): Promise<AppBskyActorSearchActorsTypeahead.Response> {
852
835
  return this._service.xrpc
853
- .call('app.bsky.actor.updateProfile', opts?.qp, data, opts)
836
+ .call('app.bsky.actor.searchActorsTypeahead', params, undefined, opts)
854
837
  .catch((e) => {
855
- throw AppBskyActorUpdateProfile.toKnownErr(e)
838
+ throw AppBskyActorSearchActorsTypeahead.toKnownErr(e)
856
839
  })
857
840
  }
858
841
  }
@@ -899,7 +882,7 @@ export class ProfileRecord {
899
882
  const res = await this._service.xrpc.call(
900
883
  'com.atproto.repo.createRecord',
901
884
  undefined,
902
- { collection: 'app.bsky.actor.profile', ...params, record },
885
+ { collection: 'app.bsky.actor.profile', rkey: 'self', ...params, record },
903
886
  { encoding: 'application/json', headers },
904
887
  )
905
888
  return res.data
@@ -928,15 +911,15 @@ export class EmbedNS {
928
911
 
929
912
  export class FeedNS {
930
913
  _service: AtpServiceClient
914
+ like: LikeRecord
931
915
  post: PostRecord
932
916
  repost: RepostRecord
933
- vote: VoteRecord
934
917
 
935
918
  constructor(service: AtpServiceClient) {
936
919
  this._service = service
920
+ this.like = new LikeRecord(service)
937
921
  this.post = new PostRecord(service)
938
922
  this.repost = new RepostRecord(service)
939
- this.vote = new VoteRecord(service)
940
923
  }
941
924
 
942
925
  getAuthorFeed(
@@ -950,6 +933,17 @@ export class FeedNS {
950
933
  })
951
934
  }
952
935
 
936
+ getLikes(
937
+ params?: AppBskyFeedGetLikes.QueryParams,
938
+ opts?: AppBskyFeedGetLikes.CallOptions,
939
+ ): Promise<AppBskyFeedGetLikes.Response> {
940
+ return this._service.xrpc
941
+ .call('app.bsky.feed.getLikes', params, undefined, opts)
942
+ .catch((e) => {
943
+ throw AppBskyFeedGetLikes.toKnownErr(e)
944
+ })
945
+ }
946
+
953
947
  getPostThread(
954
948
  params?: AppBskyFeedGetPostThread.QueryParams,
955
949
  opts?: AppBskyFeedGetPostThread.CallOptions,
@@ -982,31 +976,9 @@ export class FeedNS {
982
976
  throw AppBskyFeedGetTimeline.toKnownErr(e)
983
977
  })
984
978
  }
985
-
986
- getVotes(
987
- params?: AppBskyFeedGetVotes.QueryParams,
988
- opts?: AppBskyFeedGetVotes.CallOptions,
989
- ): Promise<AppBskyFeedGetVotes.Response> {
990
- return this._service.xrpc
991
- .call('app.bsky.feed.getVotes', params, undefined, opts)
992
- .catch((e) => {
993
- throw AppBskyFeedGetVotes.toKnownErr(e)
994
- })
995
- }
996
-
997
- setVote(
998
- data?: AppBskyFeedSetVote.InputSchema,
999
- opts?: AppBskyFeedSetVote.CallOptions,
1000
- ): Promise<AppBskyFeedSetVote.Response> {
1001
- return this._service.xrpc
1002
- .call('app.bsky.feed.setVote', opts?.qp, data, opts)
1003
- .catch((e) => {
1004
- throw AppBskyFeedSetVote.toKnownErr(e)
1005
- })
1006
- }
1007
979
  }
1008
980
 
1009
- export class PostRecord {
981
+ export class LikeRecord {
1010
982
  _service: AtpServiceClient
1011
983
 
1012
984
  constructor(service: AtpServiceClient) {
@@ -1017,10 +989,10 @@ export class PostRecord {
1017
989
  params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1018
990
  ): Promise<{
1019
991
  cursor?: string
1020
- records: { uri: string; value: AppBskyFeedPost.Record }[]
992
+ records: { uri: string; value: AppBskyFeedLike.Record }[]
1021
993
  }> {
1022
994
  const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
1023
- collection: 'app.bsky.feed.post',
995
+ collection: 'app.bsky.feed.like',
1024
996
  ...params,
1025
997
  })
1026
998
  return res.data
@@ -1028,9 +1000,9 @@ export class PostRecord {
1028
1000
 
1029
1001
  async get(
1030
1002
  params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1031
- ): Promise<{ uri: string; cid: string; value: AppBskyFeedPost.Record }> {
1003
+ ): Promise<{ uri: string; cid: string; value: AppBskyFeedLike.Record }> {
1032
1004
  const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
1033
- collection: 'app.bsky.feed.post',
1005
+ collection: 'app.bsky.feed.like',
1034
1006
  ...params,
1035
1007
  })
1036
1008
  return res.data
@@ -1041,14 +1013,14 @@ export class PostRecord {
1041
1013
  ComAtprotoRepoCreateRecord.InputSchema,
1042
1014
  'collection' | 'record'
1043
1015
  >,
1044
- record: AppBskyFeedPost.Record,
1016
+ record: AppBskyFeedLike.Record,
1045
1017
  headers?: Record<string, string>,
1046
1018
  ): Promise<{ uri: string; cid: string }> {
1047
- record.$type = 'app.bsky.feed.post'
1019
+ record.$type = 'app.bsky.feed.like'
1048
1020
  const res = await this._service.xrpc.call(
1049
1021
  'com.atproto.repo.createRecord',
1050
1022
  undefined,
1051
- { collection: 'app.bsky.feed.post', ...params, record },
1023
+ { collection: 'app.bsky.feed.like', ...params, record },
1052
1024
  { encoding: 'application/json', headers },
1053
1025
  )
1054
1026
  return res.data
@@ -1061,13 +1033,13 @@ export class PostRecord {
1061
1033
  await this._service.xrpc.call(
1062
1034
  'com.atproto.repo.deleteRecord',
1063
1035
  undefined,
1064
- { collection: 'app.bsky.feed.post', ...params },
1036
+ { collection: 'app.bsky.feed.like', ...params },
1065
1037
  { headers },
1066
1038
  )
1067
1039
  }
1068
1040
  }
1069
1041
 
1070
- export class RepostRecord {
1042
+ export class PostRecord {
1071
1043
  _service: AtpServiceClient
1072
1044
 
1073
1045
  constructor(service: AtpServiceClient) {
@@ -1078,10 +1050,10 @@ export class RepostRecord {
1078
1050
  params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1079
1051
  ): Promise<{
1080
1052
  cursor?: string
1081
- records: { uri: string; value: AppBskyFeedRepost.Record }[]
1053
+ records: { uri: string; value: AppBskyFeedPost.Record }[]
1082
1054
  }> {
1083
1055
  const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
1084
- collection: 'app.bsky.feed.repost',
1056
+ collection: 'app.bsky.feed.post',
1085
1057
  ...params,
1086
1058
  })
1087
1059
  return res.data
@@ -1089,9 +1061,9 @@ export class RepostRecord {
1089
1061
 
1090
1062
  async get(
1091
1063
  params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1092
- ): Promise<{ uri: string; cid: string; value: AppBskyFeedRepost.Record }> {
1064
+ ): Promise<{ uri: string; cid: string; value: AppBskyFeedPost.Record }> {
1093
1065
  const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
1094
- collection: 'app.bsky.feed.repost',
1066
+ collection: 'app.bsky.feed.post',
1095
1067
  ...params,
1096
1068
  })
1097
1069
  return res.data
@@ -1102,14 +1074,14 @@ export class RepostRecord {
1102
1074
  ComAtprotoRepoCreateRecord.InputSchema,
1103
1075
  'collection' | 'record'
1104
1076
  >,
1105
- record: AppBskyFeedRepost.Record,
1077
+ record: AppBskyFeedPost.Record,
1106
1078
  headers?: Record<string, string>,
1107
1079
  ): Promise<{ uri: string; cid: string }> {
1108
- record.$type = 'app.bsky.feed.repost'
1080
+ record.$type = 'app.bsky.feed.post'
1109
1081
  const res = await this._service.xrpc.call(
1110
1082
  'com.atproto.repo.createRecord',
1111
1083
  undefined,
1112
- { collection: 'app.bsky.feed.repost', ...params, record },
1084
+ { collection: 'app.bsky.feed.post', ...params, record },
1113
1085
  { encoding: 'application/json', headers },
1114
1086
  )
1115
1087
  return res.data
@@ -1122,13 +1094,13 @@ export class RepostRecord {
1122
1094
  await this._service.xrpc.call(
1123
1095
  'com.atproto.repo.deleteRecord',
1124
1096
  undefined,
1125
- { collection: 'app.bsky.feed.repost', ...params },
1097
+ { collection: 'app.bsky.feed.post', ...params },
1126
1098
  { headers },
1127
1099
  )
1128
1100
  }
1129
1101
  }
1130
1102
 
1131
- export class VoteRecord {
1103
+ export class RepostRecord {
1132
1104
  _service: AtpServiceClient
1133
1105
 
1134
1106
  constructor(service: AtpServiceClient) {
@@ -1139,10 +1111,10 @@ export class VoteRecord {
1139
1111
  params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1140
1112
  ): Promise<{
1141
1113
  cursor?: string
1142
- records: { uri: string; value: AppBskyFeedVote.Record }[]
1114
+ records: { uri: string; value: AppBskyFeedRepost.Record }[]
1143
1115
  }> {
1144
1116
  const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
1145
- collection: 'app.bsky.feed.vote',
1117
+ collection: 'app.bsky.feed.repost',
1146
1118
  ...params,
1147
1119
  })
1148
1120
  return res.data
@@ -1150,9 +1122,9 @@ export class VoteRecord {
1150
1122
 
1151
1123
  async get(
1152
1124
  params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1153
- ): Promise<{ uri: string; cid: string; value: AppBskyFeedVote.Record }> {
1125
+ ): Promise<{ uri: string; cid: string; value: AppBskyFeedRepost.Record }> {
1154
1126
  const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
1155
- collection: 'app.bsky.feed.vote',
1127
+ collection: 'app.bsky.feed.repost',
1156
1128
  ...params,
1157
1129
  })
1158
1130
  return res.data
@@ -1163,14 +1135,14 @@ export class VoteRecord {
1163
1135
  ComAtprotoRepoCreateRecord.InputSchema,
1164
1136
  'collection' | 'record'
1165
1137
  >,
1166
- record: AppBskyFeedVote.Record,
1138
+ record: AppBskyFeedRepost.Record,
1167
1139
  headers?: Record<string, string>,
1168
1140
  ): Promise<{ uri: string; cid: string }> {
1169
- record.$type = 'app.bsky.feed.vote'
1141
+ record.$type = 'app.bsky.feed.repost'
1170
1142
  const res = await this._service.xrpc.call(
1171
1143
  'com.atproto.repo.createRecord',
1172
1144
  undefined,
1173
- { collection: 'app.bsky.feed.vote', ...params, record },
1145
+ { collection: 'app.bsky.feed.repost', ...params, record },
1174
1146
  { encoding: 'application/json', headers },
1175
1147
  )
1176
1148
  return res.data
@@ -1183,7 +1155,7 @@ export class VoteRecord {
1183
1155
  await this._service.xrpc.call(
1184
1156
  'com.atproto.repo.deleteRecord',
1185
1157
  undefined,
1186
- { collection: 'app.bsky.feed.vote', ...params },
1158
+ { collection: 'app.bsky.feed.repost', ...params },
1187
1159
  { headers },
1188
1160
  )
1189
1161
  }
@@ -1191,14 +1163,10 @@ export class VoteRecord {
1191
1163
 
1192
1164
  export class GraphNS {
1193
1165
  _service: AtpServiceClient
1194
- assertion: AssertionRecord
1195
- confirmation: ConfirmationRecord
1196
1166
  follow: FollowRecord
1197
1167
 
1198
1168
  constructor(service: AtpServiceClient) {
1199
1169
  this._service = service
1200
- this.assertion = new AssertionRecord(service)
1201
- this.confirmation = new ConfirmationRecord(service)
1202
1170
  this.follow = new FollowRecord(service)
1203
1171
  }
1204
1172
 
@@ -1235,159 +1203,29 @@ export class GraphNS {
1235
1203
  })
1236
1204
  }
1237
1205
 
1238
- mute(
1239
- data?: AppBskyGraphMute.InputSchema,
1240
- opts?: AppBskyGraphMute.CallOptions,
1241
- ): Promise<AppBskyGraphMute.Response> {
1206
+ muteActor(
1207
+ data?: AppBskyGraphMuteActor.InputSchema,
1208
+ opts?: AppBskyGraphMuteActor.CallOptions,
1209
+ ): Promise<AppBskyGraphMuteActor.Response> {
1242
1210
  return this._service.xrpc
1243
- .call('app.bsky.graph.mute', opts?.qp, data, opts)
1211
+ .call('app.bsky.graph.muteActor', opts?.qp, data, opts)
1244
1212
  .catch((e) => {
1245
- throw AppBskyGraphMute.toKnownErr(e)
1213
+ throw AppBskyGraphMuteActor.toKnownErr(e)
1246
1214
  })
1247
1215
  }
1248
1216
 
1249
- unmute(
1250
- data?: AppBskyGraphUnmute.InputSchema,
1251
- opts?: AppBskyGraphUnmute.CallOptions,
1252
- ): Promise<AppBskyGraphUnmute.Response> {
1217
+ unmuteActor(
1218
+ data?: AppBskyGraphUnmuteActor.InputSchema,
1219
+ opts?: AppBskyGraphUnmuteActor.CallOptions,
1220
+ ): Promise<AppBskyGraphUnmuteActor.Response> {
1253
1221
  return this._service.xrpc
1254
- .call('app.bsky.graph.unmute', opts?.qp, data, opts)
1222
+ .call('app.bsky.graph.unmuteActor', opts?.qp, data, opts)
1255
1223
  .catch((e) => {
1256
- throw AppBskyGraphUnmute.toKnownErr(e)
1224
+ throw AppBskyGraphUnmuteActor.toKnownErr(e)
1257
1225
  })
1258
1226
  }
1259
1227
  }
1260
1228
 
1261
- export class AssertionRecord {
1262
- _service: AtpServiceClient
1263
-
1264
- constructor(service: AtpServiceClient) {
1265
- this._service = service
1266
- }
1267
-
1268
- async list(
1269
- params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1270
- ): Promise<{
1271
- cursor?: string
1272
- records: { uri: string; value: AppBskyGraphAssertion.Record }[]
1273
- }> {
1274
- const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
1275
- collection: 'app.bsky.graph.assertion',
1276
- ...params,
1277
- })
1278
- return res.data
1279
- }
1280
-
1281
- async get(
1282
- params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1283
- ): Promise<{
1284
- uri: string
1285
- cid: string
1286
- value: AppBskyGraphAssertion.Record
1287
- }> {
1288
- const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
1289
- collection: 'app.bsky.graph.assertion',
1290
- ...params,
1291
- })
1292
- return res.data
1293
- }
1294
-
1295
- async create(
1296
- params: Omit<
1297
- ComAtprotoRepoCreateRecord.InputSchema,
1298
- 'collection' | 'record'
1299
- >,
1300
- record: AppBskyGraphAssertion.Record,
1301
- headers?: Record<string, string>,
1302
- ): Promise<{ uri: string; cid: string }> {
1303
- record.$type = 'app.bsky.graph.assertion'
1304
- const res = await this._service.xrpc.call(
1305
- 'com.atproto.repo.createRecord',
1306
- undefined,
1307
- { collection: 'app.bsky.graph.assertion', ...params, record },
1308
- { encoding: 'application/json', headers },
1309
- )
1310
- return res.data
1311
- }
1312
-
1313
- async delete(
1314
- params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1315
- headers?: Record<string, string>,
1316
- ): Promise<void> {
1317
- await this._service.xrpc.call(
1318
- 'com.atproto.repo.deleteRecord',
1319
- undefined,
1320
- { collection: 'app.bsky.graph.assertion', ...params },
1321
- { headers },
1322
- )
1323
- }
1324
- }
1325
-
1326
- export class ConfirmationRecord {
1327
- _service: AtpServiceClient
1328
-
1329
- constructor(service: AtpServiceClient) {
1330
- this._service = service
1331
- }
1332
-
1333
- async list(
1334
- params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1335
- ): Promise<{
1336
- cursor?: string
1337
- records: { uri: string; value: AppBskyGraphConfirmation.Record }[]
1338
- }> {
1339
- const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
1340
- collection: 'app.bsky.graph.confirmation',
1341
- ...params,
1342
- })
1343
- return res.data
1344
- }
1345
-
1346
- async get(
1347
- params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1348
- ): Promise<{
1349
- uri: string
1350
- cid: string
1351
- value: AppBskyGraphConfirmation.Record
1352
- }> {
1353
- const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
1354
- collection: 'app.bsky.graph.confirmation',
1355
- ...params,
1356
- })
1357
- return res.data
1358
- }
1359
-
1360
- async create(
1361
- params: Omit<
1362
- ComAtprotoRepoCreateRecord.InputSchema,
1363
- 'collection' | 'record'
1364
- >,
1365
- record: AppBskyGraphConfirmation.Record,
1366
- headers?: Record<string, string>,
1367
- ): Promise<{ uri: string; cid: string }> {
1368
- record.$type = 'app.bsky.graph.confirmation'
1369
- const res = await this._service.xrpc.call(
1370
- 'com.atproto.repo.createRecord',
1371
- undefined,
1372
- { collection: 'app.bsky.graph.confirmation', ...params, record },
1373
- { encoding: 'application/json', headers },
1374
- )
1375
- return res.data
1376
- }
1377
-
1378
- async delete(
1379
- params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1380
- headers?: Record<string, string>,
1381
- ): Promise<void> {
1382
- await this._service.xrpc.call(
1383
- 'com.atproto.repo.deleteRecord',
1384
- undefined,
1385
- { collection: 'app.bsky.graph.confirmation', ...params },
1386
- { headers },
1387
- )
1388
- }
1389
- }
1390
-
1391
1229
  export class FollowRecord {
1392
1230
  _service: AtpServiceClient
1393
1231
 
@@ -1456,25 +1294,25 @@ export class NotificationNS {
1456
1294
  this._service = service
1457
1295
  }
1458
1296
 
1459
- getCount(
1460
- params?: AppBskyNotificationGetCount.QueryParams,
1461
- opts?: AppBskyNotificationGetCount.CallOptions,
1462
- ): Promise<AppBskyNotificationGetCount.Response> {
1297
+ getUnreadCount(
1298
+ params?: AppBskyNotificationGetUnreadCount.QueryParams,
1299
+ opts?: AppBskyNotificationGetUnreadCount.CallOptions,
1300
+ ): Promise<AppBskyNotificationGetUnreadCount.Response> {
1463
1301
  return this._service.xrpc
1464
- .call('app.bsky.notification.getCount', params, undefined, opts)
1302
+ .call('app.bsky.notification.getUnreadCount', params, undefined, opts)
1465
1303
  .catch((e) => {
1466
- throw AppBskyNotificationGetCount.toKnownErr(e)
1304
+ throw AppBskyNotificationGetUnreadCount.toKnownErr(e)
1467
1305
  })
1468
1306
  }
1469
1307
 
1470
- list(
1471
- params?: AppBskyNotificationList.QueryParams,
1472
- opts?: AppBskyNotificationList.CallOptions,
1473
- ): Promise<AppBskyNotificationList.Response> {
1308
+ listNotifications(
1309
+ params?: AppBskyNotificationListNotifications.QueryParams,
1310
+ opts?: AppBskyNotificationListNotifications.CallOptions,
1311
+ ): Promise<AppBskyNotificationListNotifications.Response> {
1474
1312
  return this._service.xrpc
1475
- .call('app.bsky.notification.list', params, undefined, opts)
1313
+ .call('app.bsky.notification.listNotifications', params, undefined, opts)
1476
1314
  .catch((e) => {
1477
- throw AppBskyNotificationList.toKnownErr(e)
1315
+ throw AppBskyNotificationListNotifications.toKnownErr(e)
1478
1316
  })
1479
1317
  }
1480
1318
 
@@ -1490,77 +1328,29 @@ export class NotificationNS {
1490
1328
  }
1491
1329
  }
1492
1330
 
1493
- export class SystemNS {
1331
+ export class RichtextNS {
1494
1332
  _service: AtpServiceClient
1495
- declaration: DeclarationRecord
1496
1333
 
1497
1334
  constructor(service: AtpServiceClient) {
1498
1335
  this._service = service
1499
- this.declaration = new DeclarationRecord(service)
1500
1336
  }
1501
1337
  }
1502
1338
 
1503
- export class DeclarationRecord {
1339
+ export class UnspeccedNS {
1504
1340
  _service: AtpServiceClient
1505
1341
 
1506
1342
  constructor(service: AtpServiceClient) {
1507
1343
  this._service = service
1508
1344
  }
1509
1345
 
1510
- async list(
1511
- params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1512
- ): Promise<{
1513
- cursor?: string
1514
- records: { uri: string; value: AppBskySystemDeclaration.Record }[]
1515
- }> {
1516
- const res = await this._service.xrpc.call('com.atproto.repo.listRecords', {
1517
- collection: 'app.bsky.system.declaration',
1518
- ...params,
1519
- })
1520
- return res.data
1521
- }
1522
-
1523
- async get(
1524
- params: Omit<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1525
- ): Promise<{
1526
- uri: string
1527
- cid: string
1528
- value: AppBskySystemDeclaration.Record
1529
- }> {
1530
- const res = await this._service.xrpc.call('com.atproto.repo.getRecord', {
1531
- collection: 'app.bsky.system.declaration',
1532
- ...params,
1533
- })
1534
- return res.data
1535
- }
1536
-
1537
- async create(
1538
- params: Omit<
1539
- ComAtprotoRepoCreateRecord.InputSchema,
1540
- 'collection' | 'record'
1541
- >,
1542
- record: AppBskySystemDeclaration.Record,
1543
- headers?: Record<string, string>,
1544
- ): Promise<{ uri: string; cid: string }> {
1545
- record.$type = 'app.bsky.system.declaration'
1546
- const res = await this._service.xrpc.call(
1547
- 'com.atproto.repo.createRecord',
1548
- undefined,
1549
- { collection: 'app.bsky.system.declaration', ...params, record },
1550
- { encoding: 'application/json', headers },
1551
- )
1552
- return res.data
1553
- }
1554
-
1555
- async delete(
1556
- params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1557
- headers?: Record<string, string>,
1558
- ): Promise<void> {
1559
- await this._service.xrpc.call(
1560
- 'com.atproto.repo.deleteRecord',
1561
- undefined,
1562
- { collection: 'app.bsky.system.declaration', ...params },
1563
- { headers },
1564
- )
1346
+ getPopular(
1347
+ params?: AppBskyUnspeccedGetPopular.QueryParams,
1348
+ opts?: AppBskyUnspeccedGetPopular.CallOptions,
1349
+ ): Promise<AppBskyUnspeccedGetPopular.Response> {
1350
+ return this._service.xrpc
1351
+ .call('app.bsky.unspecced.getPopular', params, undefined, opts)
1352
+ .catch((e) => {
1353
+ throw AppBskyUnspeccedGetPopular.toKnownErr(e)
1354
+ })
1565
1355
  }
1566
1356
  }