@atproto/api 0.0.7 → 0.1.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 (210) hide show
  1. package/README.md +44 -6
  2. package/dist/agent.d.ts +22 -0
  3. package/dist/client/index.d.ts +63 -61
  4. package/dist/client/lexicons.d.ts +168 -22
  5. package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +0 -7
  6. package/dist/client/types/com/atproto/account/delete.d.ts +14 -2
  7. package/dist/{src/client/types/com/atproto/account/delete.d.ts → client/types/com/atproto/account/requestDelete.d.ts} +0 -0
  8. package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
  9. package/dist/client/types/com/atproto/admin/moderationAction.d.ts +13 -2
  10. package/dist/client/types/com/atproto/admin/record.d.ts +5 -2
  11. package/dist/client/types/com/atproto/admin/repo.d.ts +2 -2
  12. package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +5 -1
  13. package/dist/index.d.ts +3 -3
  14. package/dist/index.js +667 -368
  15. package/dist/index.js.map +4 -4
  16. package/dist/types.d.ts +33 -0
  17. package/package.json +1 -1
  18. package/src/agent.ts +305 -0
  19. package/src/client/index.ts +75 -63
  20. package/src/client/lexicons.ts +219 -49
  21. package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -18
  22. package/src/client/types/com/atproto/account/delete.ts +21 -1
  23. package/src/client/types/com/atproto/account/requestDelete.ts +27 -0
  24. package/src/client/types/com/atproto/admin/blob.ts +84 -0
  25. package/src/client/types/com/atproto/admin/moderationAction.ts +29 -10
  26. package/src/client/types/com/atproto/admin/record.ts +5 -2
  27. package/src/client/types/com/atproto/admin/repo.ts +2 -2
  28. package/src/client/types/com/atproto/admin/takeModerationAction.ts +8 -0
  29. package/src/index.ts +3 -3
  30. package/src/types.ts +71 -0
  31. package/tests/_util.ts +26 -0
  32. package/tests/agent.test.ts +391 -0
  33. package/tests/errors.test.ts +4 -8
  34. package/tsconfig.build.tsbuildinfo +1 -1
  35. package/dist/src/client/index.d.ts +0 -474
  36. package/dist/src/client/lexicons.d.ts +0 -3036
  37. package/dist/src/client/schemas.d.ts +0 -17
  38. package/dist/src/client/types/app/bsky/actor/createScene.d.ts +0 -32
  39. package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +0 -36
  40. package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +0 -36
  41. package/dist/src/client/types/app/bsky/actor/profile.d.ts +0 -15
  42. package/dist/src/client/types/app/bsky/actor/ref.d.ts +0 -14
  43. package/dist/src/client/types/app/bsky/actor/search.d.ts +0 -32
  44. package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -28
  45. package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +0 -48
  46. package/dist/src/client/types/app/bsky/administration/moderationAction.d.ts +0 -16
  47. package/dist/src/client/types/app/bsky/administration/reverseModerationAction.d.ts +0 -22
  48. package/dist/src/client/types/app/bsky/administration/takeModerationAction.d.ts +0 -27
  49. package/dist/src/client/types/app/bsky/badge.d.ts +0 -22
  50. package/dist/src/client/types/app/bsky/badgeAccept.d.ts +0 -11
  51. package/dist/src/client/types/app/bsky/badgeOffer.d.ts +0 -11
  52. package/dist/src/client/types/app/bsky/declaration.d.ts +0 -6
  53. package/dist/src/client/types/app/bsky/embed/external.d.ts +0 -26
  54. package/dist/src/client/types/app/bsky/embed/images.d.ts +0 -23
  55. package/dist/src/client/types/app/bsky/feed/embed.d.ts +0 -36
  56. package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +0 -26
  57. package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +0 -22
  58. package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +0 -43
  59. package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -35
  60. package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
  61. package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +0 -33
  62. package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +0 -15
  63. package/dist/src/client/types/app/bsky/feed/post.d.ts +0 -54
  64. package/dist/src/client/types/app/bsky/feed/repost.d.ts +0 -6
  65. package/dist/src/client/types/app/bsky/feed/setVote.d.ts +0 -25
  66. package/dist/src/client/types/app/bsky/feed/trend.d.ts +0 -6
  67. package/dist/src/client/types/app/bsky/feed/vote.d.ts +0 -7
  68. package/dist/src/client/types/app/bsky/follow.d.ts +0 -9
  69. package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +0 -56
  70. package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +0 -29
  71. package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +0 -56
  72. package/dist/src/client/types/app/bsky/getLikedBy.d.ts +0 -29
  73. package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +0 -16
  74. package/dist/src/client/types/app/bsky/getNotifications.d.ts +0 -33
  75. package/dist/src/client/types/app/bsky/getPostThread.d.ts +0 -55
  76. package/dist/src/client/types/app/bsky/getProfile.d.ts +0 -26
  77. package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +0 -29
  78. package/dist/src/client/types/app/bsky/getTimeline.d.ts +0 -56
  79. package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +0 -31
  80. package/dist/src/client/types/app/bsky/getUserFollows.d.ts +0 -31
  81. package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +0 -26
  82. package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  83. package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
  84. package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +0 -1
  85. package/dist/src/client/types/app/bsky/graph/assertion.d.ts +0 -7
  86. package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +0 -8
  87. package/dist/src/client/types/app/bsky/graph/follow.d.ts +0 -6
  88. package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +0 -43
  89. package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +0 -34
  90. package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +0 -33
  91. package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +0 -33
  92. package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +0 -33
  93. package/dist/src/client/types/app/bsky/invite.d.ts +0 -10
  94. package/dist/src/client/types/app/bsky/inviteAccept.d.ts +0 -14
  95. package/dist/src/client/types/app/bsky/like.d.ts +0 -10
  96. package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +0 -15
  97. package/dist/src/client/types/app/bsky/notification/getCount.d.ts +0 -17
  98. package/dist/src/client/types/app/bsky/notification/list.d.ts +0 -32
  99. package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
  100. package/dist/src/client/types/app/bsky/post.d.ts +0 -23
  101. package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +0 -20
  102. package/dist/src/client/types/app/bsky/profile.d.ts +0 -5
  103. package/dist/src/client/types/app/bsky/repost.d.ts +0 -10
  104. package/dist/src/client/types/app/bsky/system/actorScene.d.ts +0 -1
  105. package/dist/src/client/types/app/bsky/system/actorUser.d.ts +0 -1
  106. package/dist/src/client/types/app/bsky/system/declRef.d.ts +0 -5
  107. package/dist/src/client/types/app/bsky/system/declaration.d.ts +0 -4
  108. package/dist/src/client/types/app/bsky/updateProfile.d.ts +0 -23
  109. package/dist/src/client/types/com/atproto/account/create.d.ts +0 -41
  110. package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
  111. package/dist/src/client/types/com/atproto/account/get.d.ts +0 -12
  112. package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
  113. package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +0 -24
  114. package/dist/src/client/types/com/atproto/blob/upload.d.ts +0 -19
  115. package/dist/src/client/types/com/atproto/createAccount.d.ts +0 -40
  116. package/dist/src/client/types/com/atproto/createInviteCode.d.ts +0 -20
  117. package/dist/src/client/types/com/atproto/createSession.d.ts +0 -24
  118. package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +0 -19
  119. package/dist/src/client/types/com/atproto/deleteAccount.d.ts +0 -20
  120. package/dist/src/client/types/com/atproto/deleteSession.d.ts +0 -17
  121. package/dist/src/client/types/com/atproto/getAccount.d.ts +0 -16
  122. package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +0 -17
  123. package/dist/src/client/types/com/atproto/getSession.d.ts +0 -17
  124. package/dist/src/client/types/com/atproto/handle/resolve.d.ts +0 -18
  125. package/dist/src/client/types/com/atproto/refreshSession.d.ts +0 -20
  126. package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +0 -39
  127. package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +0 -26
  128. package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +0 -19
  129. package/dist/src/client/types/com/atproto/repo/describe.d.ts +0 -22
  130. package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +0 -23
  131. package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +0 -30
  132. package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +0 -27
  133. package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +0 -5
  134. package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +0 -36
  135. package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +0 -24
  136. package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +0 -18
  137. package/dist/src/client/types/com/atproto/repoDescribe.d.ts +0 -21
  138. package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +0 -22
  139. package/dist/src/client/types/com/atproto/repoListRecords.d.ts +0 -27
  140. package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +0 -25
  141. package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +0 -19
  142. package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +0 -26
  143. package/dist/src/client/types/com/atproto/resolveHandle.d.ts +0 -17
  144. package/dist/src/client/types/com/atproto/resolveName.d.ts +0 -17
  145. package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -24
  146. package/dist/src/client/types/com/atproto/session/create.d.ts +0 -29
  147. package/dist/src/client/types/com/atproto/session/delete.d.ts +0 -13
  148. package/dist/src/client/types/com/atproto/session/get.d.ts +0 -18
  149. package/dist/src/client/types/com/atproto/session/refresh.d.ts +0 -24
  150. package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +0 -15
  151. package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +0 -18
  152. package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
  153. package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +0 -15
  154. package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +0 -17
  155. package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +0 -15
  156. package/dist/src/index.d.ts +0 -4
  157. package/dist/src/schemas.d.ts +0 -19
  158. package/dist/src/session.d.ts +0 -42
  159. package/dist/src/types/app/bsky/badge.d.ts +0 -22
  160. package/dist/src/types/app/bsky/badgeAccept.d.ts +0 -11
  161. package/dist/src/types/app/bsky/badgeOffer.d.ts +0 -11
  162. package/dist/src/types/app/bsky/declaration.d.ts +0 -6
  163. package/dist/src/types/app/bsky/follow.d.ts +0 -9
  164. package/dist/src/types/app/bsky/getAuthorFeed.d.ts +0 -56
  165. package/dist/src/types/app/bsky/getBadgeMembers.d.ts +0 -29
  166. package/dist/src/types/app/bsky/getHomeFeed.d.ts +0 -56
  167. package/dist/src/types/app/bsky/getLikedBy.d.ts +0 -29
  168. package/dist/src/types/app/bsky/getNotificationCount.d.ts +0 -16
  169. package/dist/src/types/app/bsky/getNotifications.d.ts +0 -33
  170. package/dist/src/types/app/bsky/getPostThread.d.ts +0 -55
  171. package/dist/src/types/app/bsky/getProfile.d.ts +0 -42
  172. package/dist/src/types/app/bsky/getRepostedBy.d.ts +0 -29
  173. package/dist/src/types/app/bsky/getUserFollowers.d.ts +0 -31
  174. package/dist/src/types/app/bsky/getUserFollows.d.ts +0 -31
  175. package/dist/src/types/app/bsky/getUsersSearch.d.ts +0 -26
  176. package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +0 -22
  177. package/dist/src/types/app/bsky/invite.d.ts +0 -10
  178. package/dist/src/types/app/bsky/inviteAccept.d.ts +0 -14
  179. package/dist/src/types/app/bsky/like.d.ts +0 -10
  180. package/dist/src/types/app/bsky/mediaEmbed.d.ts +0 -15
  181. package/dist/src/types/app/bsky/post.d.ts +0 -23
  182. package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +0 -19
  183. package/dist/src/types/app/bsky/profile.d.ts +0 -11
  184. package/dist/src/types/app/bsky/repost.d.ts +0 -10
  185. package/dist/src/types/app/bsky/updateProfile.d.ts +0 -27
  186. package/dist/src/types/com/atproto/createAccount.d.ts +0 -39
  187. package/dist/src/types/com/atproto/createInviteCode.d.ts +0 -19
  188. package/dist/src/types/com/atproto/createSession.d.ts +0 -23
  189. package/dist/src/types/com/atproto/deleteAccount.d.ts +0 -19
  190. package/dist/src/types/com/atproto/deleteSession.d.ts +0 -16
  191. package/dist/src/types/com/atproto/getAccount.d.ts +0 -19
  192. package/dist/src/types/com/atproto/getAccountsConfig.d.ts +0 -17
  193. package/dist/src/types/com/atproto/getSession.d.ts +0 -17
  194. package/dist/src/types/com/atproto/refreshSession.d.ts +0 -19
  195. package/dist/src/types/com/atproto/repoBatchWrite.d.ts +0 -35
  196. package/dist/src/types/com/atproto/repoCreateRecord.d.ts +0 -23
  197. package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +0 -15
  198. package/dist/src/types/com/atproto/repoDescribe.d.ts +0 -21
  199. package/dist/src/types/com/atproto/repoGetRecord.d.ts +0 -22
  200. package/dist/src/types/com/atproto/repoListRecords.d.ts +0 -27
  201. package/dist/src/types/com/atproto/repoPutRecord.d.ts +0 -24
  202. package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +0 -18
  203. package/dist/src/types/com/atproto/resetAccountPassword.d.ts +0 -25
  204. package/dist/src/types/com/atproto/resolveName.d.ts +0 -17
  205. package/dist/src/types/com/atproto/syncGetRepo.d.ts +0 -15
  206. package/dist/src/types/com/atproto/syncGetRoot.d.ts +0 -17
  207. package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +0 -14
  208. package/dist/tsconfig.build.tsbuildinfo +0 -1
  209. package/src/session.ts +0 -194
  210. package/tests/session.test.ts +0 -239
@@ -10,8 +10,10 @@ import * as ComAtprotoAccountCreate from './types/com/atproto/account/create'
10
10
  import * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'
11
11
  import * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'
12
12
  import * as ComAtprotoAccountGet from './types/com/atproto/account/get'
13
+ import * as ComAtprotoAccountRequestDelete from './types/com/atproto/account/requestDelete'
13
14
  import * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'
14
15
  import * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'
16
+ import * as ComAtprotoAdminBlob from './types/com/atproto/admin/blob'
15
17
  import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
16
18
  import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
17
19
  import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport'
@@ -91,8 +93,10 @@ export * as ComAtprotoAccountCreate from './types/com/atproto/account/create'
91
93
  export * as ComAtprotoAccountCreateInviteCode from './types/com/atproto/account/createInviteCode'
92
94
  export * as ComAtprotoAccountDelete from './types/com/atproto/account/delete'
93
95
  export * as ComAtprotoAccountGet from './types/com/atproto/account/get'
96
+ export * as ComAtprotoAccountRequestDelete from './types/com/atproto/account/requestDelete'
94
97
  export * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset'
95
98
  export * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword'
99
+ export * as ComAtprotoAdminBlob from './types/com/atproto/admin/blob'
96
100
  export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
97
101
  export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
98
102
  export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport'
@@ -185,28 +189,25 @@ export const APP_BSKY_SYSTEM = {
185
189
  ActorUser: 'app.bsky.system.actorUser',
186
190
  }
187
191
 
188
- export class Client {
192
+ export class AtpBaseClient {
189
193
  xrpc: XrpcClient = new XrpcClient()
190
194
 
191
195
  constructor() {
192
196
  this.xrpc.addLexicons(schemas)
193
197
  }
194
198
 
195
- service(serviceUri: string | URL): ServiceClient {
196
- return new ServiceClient(this, this.xrpc.service(serviceUri))
199
+ service(serviceUri: string | URL): AtpServiceClient {
200
+ return new AtpServiceClient(this, this.xrpc.service(serviceUri))
197
201
  }
198
202
  }
199
203
 
200
- const defaultInst = new Client()
201
- export default defaultInst
202
-
203
- export class ServiceClient {
204
- _baseClient: Client
204
+ export class AtpServiceClient {
205
+ _baseClient: AtpBaseClient
205
206
  xrpc: XrpcServiceClient
206
207
  com: ComNS
207
208
  app: AppNS
208
209
 
209
- constructor(baseClient: Client, xrpcService: XrpcServiceClient) {
210
+ constructor(baseClient: AtpBaseClient, xrpcService: XrpcServiceClient) {
210
211
  this._baseClient = baseClient
211
212
  this.xrpc = xrpcService
212
213
  this.com = new ComNS(this)
@@ -219,17 +220,17 @@ export class ServiceClient {
219
220
  }
220
221
 
221
222
  export class ComNS {
222
- _service: ServiceClient
223
+ _service: AtpServiceClient
223
224
  atproto: AtprotoNS
224
225
 
225
- constructor(service: ServiceClient) {
226
+ constructor(service: AtpServiceClient) {
226
227
  this._service = service
227
228
  this.atproto = new AtprotoNS(service)
228
229
  }
229
230
  }
230
231
 
231
232
  export class AtprotoNS {
232
- _service: ServiceClient
233
+ _service: AtpServiceClient
233
234
  account: AccountNS
234
235
  admin: AdminNS
235
236
  blob: BlobNS
@@ -240,7 +241,7 @@ export class AtprotoNS {
240
241
  session: SessionNS
241
242
  sync: SyncNS
242
243
 
243
- constructor(service: ServiceClient) {
244
+ constructor(service: AtpServiceClient) {
244
245
  this._service = service
245
246
  this.account = new AccountNS(service)
246
247
  this.admin = new AdminNS(service)
@@ -255,9 +256,9 @@ export class AtprotoNS {
255
256
  }
256
257
 
257
258
  export class AccountNS {
258
- _service: ServiceClient
259
+ _service: AtpServiceClient
259
260
 
260
- constructor(service: ServiceClient) {
261
+ constructor(service: AtpServiceClient) {
261
262
  this._service = service
262
263
  }
263
264
 
@@ -305,6 +306,17 @@ export class AccountNS {
305
306
  })
306
307
  }
307
308
 
309
+ requestDelete(
310
+ data?: ComAtprotoAccountRequestDelete.InputSchema,
311
+ opts?: ComAtprotoAccountRequestDelete.CallOptions,
312
+ ): Promise<ComAtprotoAccountRequestDelete.Response> {
313
+ return this._service.xrpc
314
+ .call('com.atproto.account.requestDelete', opts?.qp, data, opts)
315
+ .catch((e) => {
316
+ throw ComAtprotoAccountRequestDelete.toKnownErr(e)
317
+ })
318
+ }
319
+
308
320
  requestPasswordReset(
309
321
  data?: ComAtprotoAccountRequestPasswordReset.InputSchema,
310
322
  opts?: ComAtprotoAccountRequestPasswordReset.CallOptions,
@@ -329,9 +341,9 @@ export class AccountNS {
329
341
  }
330
342
 
331
343
  export class AdminNS {
332
- _service: ServiceClient
344
+ _service: AtpServiceClient
333
345
 
334
- constructor(service: ServiceClient) {
346
+ constructor(service: AtpServiceClient) {
335
347
  this._service = service
336
348
  }
337
349
 
@@ -447,9 +459,9 @@ export class AdminNS {
447
459
  }
448
460
 
449
461
  export class BlobNS {
450
- _service: ServiceClient
462
+ _service: AtpServiceClient
451
463
 
452
- constructor(service: ServiceClient) {
464
+ constructor(service: AtpServiceClient) {
453
465
  this._service = service
454
466
  }
455
467
 
@@ -466,9 +478,9 @@ export class BlobNS {
466
478
  }
467
479
 
468
480
  export class HandleNS {
469
- _service: ServiceClient
481
+ _service: AtpServiceClient
470
482
 
471
- constructor(service: ServiceClient) {
483
+ constructor(service: AtpServiceClient) {
472
484
  this._service = service
473
485
  }
474
486
 
@@ -485,9 +497,9 @@ export class HandleNS {
485
497
  }
486
498
 
487
499
  export class RepoNS {
488
- _service: ServiceClient
500
+ _service: AtpServiceClient
489
501
 
490
- constructor(service: ServiceClient) {
502
+ constructor(service: AtpServiceClient) {
491
503
  this._service = service
492
504
  }
493
505
 
@@ -570,9 +582,9 @@ export class RepoNS {
570
582
  }
571
583
 
572
584
  export class ReportNS {
573
- _service: ServiceClient
585
+ _service: AtpServiceClient
574
586
 
575
- constructor(service: ServiceClient) {
587
+ constructor(service: AtpServiceClient) {
576
588
  this._service = service
577
589
  }
578
590
 
@@ -589,9 +601,9 @@ export class ReportNS {
589
601
  }
590
602
 
591
603
  export class ServerNS {
592
- _service: ServiceClient
604
+ _service: AtpServiceClient
593
605
 
594
- constructor(service: ServiceClient) {
606
+ constructor(service: AtpServiceClient) {
595
607
  this._service = service
596
608
  }
597
609
 
@@ -608,9 +620,9 @@ export class ServerNS {
608
620
  }
609
621
 
610
622
  export class SessionNS {
611
- _service: ServiceClient
623
+ _service: AtpServiceClient
612
624
 
613
- constructor(service: ServiceClient) {
625
+ constructor(service: AtpServiceClient) {
614
626
  this._service = service
615
627
  }
616
628
 
@@ -660,9 +672,9 @@ export class SessionNS {
660
672
  }
661
673
 
662
674
  export class SyncNS {
663
- _service: ServiceClient
675
+ _service: AtpServiceClient
664
676
 
665
- constructor(service: ServiceClient) {
677
+ constructor(service: AtpServiceClient) {
666
678
  this._service = service
667
679
  }
668
680
 
@@ -723,17 +735,17 @@ export class SyncNS {
723
735
  }
724
736
 
725
737
  export class AppNS {
726
- _service: ServiceClient
738
+ _service: AtpServiceClient
727
739
  bsky: BskyNS
728
740
 
729
- constructor(service: ServiceClient) {
741
+ constructor(service: AtpServiceClient) {
730
742
  this._service = service
731
743
  this.bsky = new BskyNS(service)
732
744
  }
733
745
  }
734
746
 
735
747
  export class BskyNS {
736
- _service: ServiceClient
748
+ _service: AtpServiceClient
737
749
  actor: ActorNS
738
750
  embed: EmbedNS
739
751
  feed: FeedNS
@@ -741,7 +753,7 @@ export class BskyNS {
741
753
  notification: NotificationNS
742
754
  system: SystemNS
743
755
 
744
- constructor(service: ServiceClient) {
756
+ constructor(service: AtpServiceClient) {
745
757
  this._service = service
746
758
  this.actor = new ActorNS(service)
747
759
  this.embed = new EmbedNS(service)
@@ -753,10 +765,10 @@ export class BskyNS {
753
765
  }
754
766
 
755
767
  export class ActorNS {
756
- _service: ServiceClient
768
+ _service: AtpServiceClient
757
769
  profile: ProfileRecord
758
770
 
759
- constructor(service: ServiceClient) {
771
+ constructor(service: AtpServiceClient) {
760
772
  this._service = service
761
773
  this.profile = new ProfileRecord(service)
762
774
  }
@@ -818,9 +830,9 @@ export class ActorNS {
818
830
  }
819
831
 
820
832
  export class ProfileRecord {
821
- _service: ServiceClient
833
+ _service: AtpServiceClient
822
834
 
823
- constructor(service: ServiceClient) {
835
+ constructor(service: AtpServiceClient) {
824
836
  this._service = service
825
837
  }
826
838
 
@@ -879,20 +891,20 @@ export class ProfileRecord {
879
891
  }
880
892
 
881
893
  export class EmbedNS {
882
- _service: ServiceClient
894
+ _service: AtpServiceClient
883
895
 
884
- constructor(service: ServiceClient) {
896
+ constructor(service: AtpServiceClient) {
885
897
  this._service = service
886
898
  }
887
899
  }
888
900
 
889
901
  export class FeedNS {
890
- _service: ServiceClient
902
+ _service: AtpServiceClient
891
903
  post: PostRecord
892
904
  repost: RepostRecord
893
905
  vote: VoteRecord
894
906
 
895
- constructor(service: ServiceClient) {
907
+ constructor(service: AtpServiceClient) {
896
908
  this._service = service
897
909
  this.post = new PostRecord(service)
898
910
  this.repost = new RepostRecord(service)
@@ -967,9 +979,9 @@ export class FeedNS {
967
979
  }
968
980
 
969
981
  export class PostRecord {
970
- _service: ServiceClient
982
+ _service: AtpServiceClient
971
983
 
972
- constructor(service: ServiceClient) {
984
+ constructor(service: AtpServiceClient) {
973
985
  this._service = service
974
986
  }
975
987
 
@@ -1028,9 +1040,9 @@ export class PostRecord {
1028
1040
  }
1029
1041
 
1030
1042
  export class RepostRecord {
1031
- _service: ServiceClient
1043
+ _service: AtpServiceClient
1032
1044
 
1033
- constructor(service: ServiceClient) {
1045
+ constructor(service: AtpServiceClient) {
1034
1046
  this._service = service
1035
1047
  }
1036
1048
 
@@ -1089,9 +1101,9 @@ export class RepostRecord {
1089
1101
  }
1090
1102
 
1091
1103
  export class VoteRecord {
1092
- _service: ServiceClient
1104
+ _service: AtpServiceClient
1093
1105
 
1094
- constructor(service: ServiceClient) {
1106
+ constructor(service: AtpServiceClient) {
1095
1107
  this._service = service
1096
1108
  }
1097
1109
 
@@ -1150,12 +1162,12 @@ export class VoteRecord {
1150
1162
  }
1151
1163
 
1152
1164
  export class GraphNS {
1153
- _service: ServiceClient
1165
+ _service: AtpServiceClient
1154
1166
  assertion: AssertionRecord
1155
1167
  confirmation: ConfirmationRecord
1156
1168
  follow: FollowRecord
1157
1169
 
1158
- constructor(service: ServiceClient) {
1170
+ constructor(service: AtpServiceClient) {
1159
1171
  this._service = service
1160
1172
  this.assertion = new AssertionRecord(service)
1161
1173
  this.confirmation = new ConfirmationRecord(service)
@@ -1219,9 +1231,9 @@ export class GraphNS {
1219
1231
  }
1220
1232
 
1221
1233
  export class AssertionRecord {
1222
- _service: ServiceClient
1234
+ _service: AtpServiceClient
1223
1235
 
1224
- constructor(service: ServiceClient) {
1236
+ constructor(service: AtpServiceClient) {
1225
1237
  this._service = service
1226
1238
  }
1227
1239
 
@@ -1284,9 +1296,9 @@ export class AssertionRecord {
1284
1296
  }
1285
1297
 
1286
1298
  export class ConfirmationRecord {
1287
- _service: ServiceClient
1299
+ _service: AtpServiceClient
1288
1300
 
1289
- constructor(service: ServiceClient) {
1301
+ constructor(service: AtpServiceClient) {
1290
1302
  this._service = service
1291
1303
  }
1292
1304
 
@@ -1349,9 +1361,9 @@ export class ConfirmationRecord {
1349
1361
  }
1350
1362
 
1351
1363
  export class FollowRecord {
1352
- _service: ServiceClient
1364
+ _service: AtpServiceClient
1353
1365
 
1354
- constructor(service: ServiceClient) {
1366
+ constructor(service: AtpServiceClient) {
1355
1367
  this._service = service
1356
1368
  }
1357
1369
 
@@ -1410,9 +1422,9 @@ export class FollowRecord {
1410
1422
  }
1411
1423
 
1412
1424
  export class NotificationNS {
1413
- _service: ServiceClient
1425
+ _service: AtpServiceClient
1414
1426
 
1415
- constructor(service: ServiceClient) {
1427
+ constructor(service: AtpServiceClient) {
1416
1428
  this._service = service
1417
1429
  }
1418
1430
 
@@ -1451,19 +1463,19 @@ export class NotificationNS {
1451
1463
  }
1452
1464
 
1453
1465
  export class SystemNS {
1454
- _service: ServiceClient
1466
+ _service: AtpServiceClient
1455
1467
  declaration: DeclarationRecord
1456
1468
 
1457
- constructor(service: ServiceClient) {
1469
+ constructor(service: AtpServiceClient) {
1458
1470
  this._service = service
1459
1471
  this.declaration = new DeclarationRecord(service)
1460
1472
  }
1461
1473
  }
1462
1474
 
1463
1475
  export class DeclarationRecord {
1464
- _service: ServiceClient
1476
+ _service: AtpServiceClient
1465
1477
 
1466
- constructor(service: ServiceClient) {
1478
+ constructor(service: AtpServiceClient) {
1467
1479
  this._service = service
1468
1480
  }
1469
1481