@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.
- package/README.md +44 -6
- package/dist/agent.d.ts +22 -0
- package/dist/client/index.d.ts +63 -61
- package/dist/client/lexicons.d.ts +168 -22
- package/dist/client/types/app/bsky/actor/getSuggestions.d.ts +0 -7
- package/dist/client/types/com/atproto/account/delete.d.ts +14 -2
- package/dist/{src/client/types/com/atproto/account/delete.d.ts → client/types/com/atproto/account/requestDelete.d.ts} +0 -0
- package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +13 -2
- package/dist/client/types/com/atproto/admin/record.d.ts +5 -2
- package/dist/client/types/com/atproto/admin/repo.d.ts +2 -2
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +5 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +667 -368
- package/dist/index.js.map +4 -4
- package/dist/types.d.ts +33 -0
- package/package.json +1 -1
- package/src/agent.ts +305 -0
- package/src/client/index.ts +75 -63
- package/src/client/lexicons.ts +219 -49
- package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -18
- package/src/client/types/com/atproto/account/delete.ts +21 -1
- package/src/client/types/com/atproto/account/requestDelete.ts +27 -0
- package/src/client/types/com/atproto/admin/blob.ts +84 -0
- package/src/client/types/com/atproto/admin/moderationAction.ts +29 -10
- package/src/client/types/com/atproto/admin/record.ts +5 -2
- package/src/client/types/com/atproto/admin/repo.ts +2 -2
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +8 -0
- package/src/index.ts +3 -3
- package/src/types.ts +71 -0
- package/tests/_util.ts +26 -0
- package/tests/agent.test.ts +391 -0
- package/tests/errors.test.ts +4 -8
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/src/client/index.d.ts +0 -474
- package/dist/src/client/lexicons.d.ts +0 -3036
- package/dist/src/client/schemas.d.ts +0 -17
- package/dist/src/client/types/app/bsky/actor/createScene.d.ts +0 -32
- package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +0 -36
- package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +0 -36
- package/dist/src/client/types/app/bsky/actor/profile.d.ts +0 -15
- package/dist/src/client/types/app/bsky/actor/ref.d.ts +0 -14
- package/dist/src/client/types/app/bsky/actor/search.d.ts +0 -32
- package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +0 -28
- package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +0 -48
- package/dist/src/client/types/app/bsky/administration/moderationAction.d.ts +0 -16
- package/dist/src/client/types/app/bsky/administration/reverseModerationAction.d.ts +0 -22
- package/dist/src/client/types/app/bsky/administration/takeModerationAction.d.ts +0 -27
- package/dist/src/client/types/app/bsky/badge.d.ts +0 -22
- package/dist/src/client/types/app/bsky/badgeAccept.d.ts +0 -11
- package/dist/src/client/types/app/bsky/badgeOffer.d.ts +0 -11
- package/dist/src/client/types/app/bsky/declaration.d.ts +0 -6
- package/dist/src/client/types/app/bsky/embed/external.d.ts +0 -26
- package/dist/src/client/types/app/bsky/embed/images.d.ts +0 -23
- package/dist/src/client/types/app/bsky/feed/embed.d.ts +0 -36
- package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +0 -26
- package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +0 -22
- package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +0 -43
- package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +0 -35
- package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +0 -22
- package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +0 -33
- package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +0 -15
- package/dist/src/client/types/app/bsky/feed/post.d.ts +0 -54
- package/dist/src/client/types/app/bsky/feed/repost.d.ts +0 -6
- package/dist/src/client/types/app/bsky/feed/setVote.d.ts +0 -25
- package/dist/src/client/types/app/bsky/feed/trend.d.ts +0 -6
- package/dist/src/client/types/app/bsky/feed/vote.d.ts +0 -7
- package/dist/src/client/types/app/bsky/follow.d.ts +0 -9
- package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getLikedBy.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +0 -16
- package/dist/src/client/types/app/bsky/getNotifications.d.ts +0 -33
- package/dist/src/client/types/app/bsky/getPostThread.d.ts +0 -55
- package/dist/src/client/types/app/bsky/getProfile.d.ts +0 -26
- package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +0 -29
- package/dist/src/client/types/app/bsky/getTimeline.d.ts +0 -56
- package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +0 -31
- package/dist/src/client/types/app/bsky/getUserFollows.d.ts +0 -31
- package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +0 -26
- package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +0 -22
- package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +0 -1
- package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +0 -1
- package/dist/src/client/types/app/bsky/graph/assertion.d.ts +0 -7
- package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +0 -8
- package/dist/src/client/types/app/bsky/graph/follow.d.ts +0 -6
- package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +0 -43
- package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +0 -34
- package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +0 -33
- package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +0 -33
- package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +0 -33
- package/dist/src/client/types/app/bsky/invite.d.ts +0 -10
- package/dist/src/client/types/app/bsky/inviteAccept.d.ts +0 -14
- package/dist/src/client/types/app/bsky/like.d.ts +0 -10
- package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +0 -15
- package/dist/src/client/types/app/bsky/notification/getCount.d.ts +0 -17
- package/dist/src/client/types/app/bsky/notification/list.d.ts +0 -32
- package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +0 -17
- package/dist/src/client/types/app/bsky/post.d.ts +0 -23
- package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +0 -20
- package/dist/src/client/types/app/bsky/profile.d.ts +0 -5
- package/dist/src/client/types/app/bsky/repost.d.ts +0 -10
- package/dist/src/client/types/app/bsky/system/actorScene.d.ts +0 -1
- package/dist/src/client/types/app/bsky/system/actorUser.d.ts +0 -1
- package/dist/src/client/types/app/bsky/system/declRef.d.ts +0 -5
- package/dist/src/client/types/app/bsky/system/declaration.d.ts +0 -4
- package/dist/src/client/types/app/bsky/updateProfile.d.ts +0 -23
- package/dist/src/client/types/com/atproto/account/create.d.ts +0 -41
- package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +0 -22
- package/dist/src/client/types/com/atproto/account/get.d.ts +0 -12
- package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +0 -17
- package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +0 -24
- package/dist/src/client/types/com/atproto/blob/upload.d.ts +0 -19
- package/dist/src/client/types/com/atproto/createAccount.d.ts +0 -40
- package/dist/src/client/types/com/atproto/createInviteCode.d.ts +0 -20
- package/dist/src/client/types/com/atproto/createSession.d.ts +0 -24
- package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +0 -19
- package/dist/src/client/types/com/atproto/deleteAccount.d.ts +0 -20
- package/dist/src/client/types/com/atproto/deleteSession.d.ts +0 -17
- package/dist/src/client/types/com/atproto/getAccount.d.ts +0 -16
- package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +0 -17
- package/dist/src/client/types/com/atproto/getSession.d.ts +0 -17
- package/dist/src/client/types/com/atproto/handle/resolve.d.ts +0 -18
- package/dist/src/client/types/com/atproto/refreshSession.d.ts +0 -20
- package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +0 -39
- package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +0 -26
- package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +0 -19
- package/dist/src/client/types/com/atproto/repo/describe.d.ts +0 -22
- package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +0 -23
- package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +0 -30
- package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +0 -27
- package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +0 -5
- package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +0 -36
- package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +0 -24
- package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +0 -18
- package/dist/src/client/types/com/atproto/repoDescribe.d.ts +0 -21
- package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +0 -22
- package/dist/src/client/types/com/atproto/repoListRecords.d.ts +0 -27
- package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +0 -25
- package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +0 -19
- package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +0 -26
- package/dist/src/client/types/com/atproto/resolveHandle.d.ts +0 -17
- package/dist/src/client/types/com/atproto/resolveName.d.ts +0 -17
- package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +0 -24
- package/dist/src/client/types/com/atproto/session/create.d.ts +0 -29
- package/dist/src/client/types/com/atproto/session/delete.d.ts +0 -13
- package/dist/src/client/types/com/atproto/session/get.d.ts +0 -18
- package/dist/src/client/types/com/atproto/session/refresh.d.ts +0 -24
- package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +0 -18
- package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +0 -15
- package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +0 -17
- package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +0 -15
- package/dist/src/index.d.ts +0 -4
- package/dist/src/schemas.d.ts +0 -19
- package/dist/src/session.d.ts +0 -42
- package/dist/src/types/app/bsky/badge.d.ts +0 -22
- package/dist/src/types/app/bsky/badgeAccept.d.ts +0 -11
- package/dist/src/types/app/bsky/badgeOffer.d.ts +0 -11
- package/dist/src/types/app/bsky/declaration.d.ts +0 -6
- package/dist/src/types/app/bsky/follow.d.ts +0 -9
- package/dist/src/types/app/bsky/getAuthorFeed.d.ts +0 -56
- package/dist/src/types/app/bsky/getBadgeMembers.d.ts +0 -29
- package/dist/src/types/app/bsky/getHomeFeed.d.ts +0 -56
- package/dist/src/types/app/bsky/getLikedBy.d.ts +0 -29
- package/dist/src/types/app/bsky/getNotificationCount.d.ts +0 -16
- package/dist/src/types/app/bsky/getNotifications.d.ts +0 -33
- package/dist/src/types/app/bsky/getPostThread.d.ts +0 -55
- package/dist/src/types/app/bsky/getProfile.d.ts +0 -42
- package/dist/src/types/app/bsky/getRepostedBy.d.ts +0 -29
- package/dist/src/types/app/bsky/getUserFollowers.d.ts +0 -31
- package/dist/src/types/app/bsky/getUserFollows.d.ts +0 -31
- package/dist/src/types/app/bsky/getUsersSearch.d.ts +0 -26
- package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +0 -22
- package/dist/src/types/app/bsky/invite.d.ts +0 -10
- package/dist/src/types/app/bsky/inviteAccept.d.ts +0 -14
- package/dist/src/types/app/bsky/like.d.ts +0 -10
- package/dist/src/types/app/bsky/mediaEmbed.d.ts +0 -15
- package/dist/src/types/app/bsky/post.d.ts +0 -23
- package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +0 -19
- package/dist/src/types/app/bsky/profile.d.ts +0 -11
- package/dist/src/types/app/bsky/repost.d.ts +0 -10
- package/dist/src/types/app/bsky/updateProfile.d.ts +0 -27
- package/dist/src/types/com/atproto/createAccount.d.ts +0 -39
- package/dist/src/types/com/atproto/createInviteCode.d.ts +0 -19
- package/dist/src/types/com/atproto/createSession.d.ts +0 -23
- package/dist/src/types/com/atproto/deleteAccount.d.ts +0 -19
- package/dist/src/types/com/atproto/deleteSession.d.ts +0 -16
- package/dist/src/types/com/atproto/getAccount.d.ts +0 -19
- package/dist/src/types/com/atproto/getAccountsConfig.d.ts +0 -17
- package/dist/src/types/com/atproto/getSession.d.ts +0 -17
- package/dist/src/types/com/atproto/refreshSession.d.ts +0 -19
- package/dist/src/types/com/atproto/repoBatchWrite.d.ts +0 -35
- package/dist/src/types/com/atproto/repoCreateRecord.d.ts +0 -23
- package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +0 -15
- package/dist/src/types/com/atproto/repoDescribe.d.ts +0 -21
- package/dist/src/types/com/atproto/repoGetRecord.d.ts +0 -22
- package/dist/src/types/com/atproto/repoListRecords.d.ts +0 -27
- package/dist/src/types/com/atproto/repoPutRecord.d.ts +0 -24
- package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +0 -18
- package/dist/src/types/com/atproto/resetAccountPassword.d.ts +0 -25
- package/dist/src/types/com/atproto/resolveName.d.ts +0 -17
- package/dist/src/types/com/atproto/syncGetRepo.d.ts +0 -15
- package/dist/src/types/com/atproto/syncGetRoot.d.ts +0 -17
- package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +0 -14
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/src/session.ts +0 -194
- package/tests/session.test.ts +0 -239
package/src/client/index.ts
CHANGED
|
@@ -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
|
|
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):
|
|
196
|
-
return new
|
|
199
|
+
service(serviceUri: string | URL): AtpServiceClient {
|
|
200
|
+
return new AtpServiceClient(this, this.xrpc.service(serviceUri))
|
|
197
201
|
}
|
|
198
202
|
}
|
|
199
203
|
|
|
200
|
-
|
|
201
|
-
|
|
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:
|
|
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:
|
|
223
|
+
_service: AtpServiceClient
|
|
223
224
|
atproto: AtprotoNS
|
|
224
225
|
|
|
225
|
-
constructor(service:
|
|
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:
|
|
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:
|
|
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:
|
|
259
|
+
_service: AtpServiceClient
|
|
259
260
|
|
|
260
|
-
constructor(service:
|
|
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:
|
|
344
|
+
_service: AtpServiceClient
|
|
333
345
|
|
|
334
|
-
constructor(service:
|
|
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:
|
|
462
|
+
_service: AtpServiceClient
|
|
451
463
|
|
|
452
|
-
constructor(service:
|
|
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:
|
|
481
|
+
_service: AtpServiceClient
|
|
470
482
|
|
|
471
|
-
constructor(service:
|
|
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:
|
|
500
|
+
_service: AtpServiceClient
|
|
489
501
|
|
|
490
|
-
constructor(service:
|
|
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:
|
|
585
|
+
_service: AtpServiceClient
|
|
574
586
|
|
|
575
|
-
constructor(service:
|
|
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:
|
|
604
|
+
_service: AtpServiceClient
|
|
593
605
|
|
|
594
|
-
constructor(service:
|
|
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:
|
|
623
|
+
_service: AtpServiceClient
|
|
612
624
|
|
|
613
|
-
constructor(service:
|
|
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:
|
|
675
|
+
_service: AtpServiceClient
|
|
664
676
|
|
|
665
|
-
constructor(service:
|
|
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:
|
|
738
|
+
_service: AtpServiceClient
|
|
727
739
|
bsky: BskyNS
|
|
728
740
|
|
|
729
|
-
constructor(service:
|
|
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:
|
|
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:
|
|
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:
|
|
768
|
+
_service: AtpServiceClient
|
|
757
769
|
profile: ProfileRecord
|
|
758
770
|
|
|
759
|
-
constructor(service:
|
|
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:
|
|
833
|
+
_service: AtpServiceClient
|
|
822
834
|
|
|
823
|
-
constructor(service:
|
|
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:
|
|
894
|
+
_service: AtpServiceClient
|
|
883
895
|
|
|
884
|
-
constructor(service:
|
|
896
|
+
constructor(service: AtpServiceClient) {
|
|
885
897
|
this._service = service
|
|
886
898
|
}
|
|
887
899
|
}
|
|
888
900
|
|
|
889
901
|
export class FeedNS {
|
|
890
|
-
_service:
|
|
902
|
+
_service: AtpServiceClient
|
|
891
903
|
post: PostRecord
|
|
892
904
|
repost: RepostRecord
|
|
893
905
|
vote: VoteRecord
|
|
894
906
|
|
|
895
|
-
constructor(service:
|
|
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:
|
|
982
|
+
_service: AtpServiceClient
|
|
971
983
|
|
|
972
|
-
constructor(service:
|
|
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:
|
|
1043
|
+
_service: AtpServiceClient
|
|
1032
1044
|
|
|
1033
|
-
constructor(service:
|
|
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:
|
|
1104
|
+
_service: AtpServiceClient
|
|
1093
1105
|
|
|
1094
|
-
constructor(service:
|
|
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:
|
|
1165
|
+
_service: AtpServiceClient
|
|
1154
1166
|
assertion: AssertionRecord
|
|
1155
1167
|
confirmation: ConfirmationRecord
|
|
1156
1168
|
follow: FollowRecord
|
|
1157
1169
|
|
|
1158
|
-
constructor(service:
|
|
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:
|
|
1234
|
+
_service: AtpServiceClient
|
|
1223
1235
|
|
|
1224
|
-
constructor(service:
|
|
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:
|
|
1299
|
+
_service: AtpServiceClient
|
|
1288
1300
|
|
|
1289
|
-
constructor(service:
|
|
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:
|
|
1364
|
+
_service: AtpServiceClient
|
|
1353
1365
|
|
|
1354
|
-
constructor(service:
|
|
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:
|
|
1425
|
+
_service: AtpServiceClient
|
|
1414
1426
|
|
|
1415
|
-
constructor(service:
|
|
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:
|
|
1466
|
+
_service: AtpServiceClient
|
|
1455
1467
|
declaration: DeclarationRecord
|
|
1456
1468
|
|
|
1457
|
-
constructor(service:
|
|
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:
|
|
1476
|
+
_service: AtpServiceClient
|
|
1465
1477
|
|
|
1466
|
-
constructor(service:
|
|
1478
|
+
constructor(service: AtpServiceClient) {
|
|
1467
1479
|
this._service = service
|
|
1468
1480
|
}
|
|
1469
1481
|
|