@atproto/api 0.0.8 → 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 CHANGED
@@ -3,12 +3,50 @@
3
3
  ## Usage
4
4
 
5
5
  ```typescript
6
- import API from '@atproto/api'
6
+ import AtpAgent from '@atproto/api'
7
7
 
8
- const client = API.service('http://example.com')
8
+ const agent = new AtpAgent({service: 'https://example.com'})
9
9
 
10
+ // provide a custom fetch implementation (shouldnt be needed in node or the browser)
11
+ import {AtpAgentFetchHeaders, AtpAgentFetchHandlerResponse} from '@atproto/api'
12
+ AtpAgent.configure({
13
+ async fetch(
14
+ httpUri: string,
15
+ httpMethod: string,
16
+ httpHeaders: AtpAgentFetchHeaders,
17
+ httpReqBody: any,
18
+ ): Promise<AtpAgentFetchHandlerResponse> {
19
+ // insert definition here...
20
+ return {status: 200, /*...*/}
21
+ }
22
+ })
23
+ ```
24
+
25
+ ### Session management
26
+
27
+ ```typescript
28
+ import AtpAgent, {AtpSessionEvent, AtpSessionData} from '@atproto/api'
29
+ const agent = new AtpAgent({
30
+ service: 'https://example.com',
31
+ persistSession: (evt: AtpSessionEvent, sess?: AtpSessionData) {
32
+ // store the session-data for reuse
33
+ }
34
+ })
35
+
36
+ await agent.login({identifier: 'alice@mail.com', password: 'hunter2'})
37
+ await agent.resumeSession(savedSessionData)
38
+ await agent.createAccount({
39
+ email: 'alice@mail.com',
40
+ password: 'hunter2',
41
+ handle: 'alice.example.com'
42
+ })
43
+ ```
44
+
45
+ ### API calls
46
+
47
+ ```typescript
10
48
  // xrpc methods
11
- const res1 = await client.com.atproto.repo.createRecord(
49
+ const res1 = await agent.api.com.atproto.repo.createRecord(
12
50
  {
13
51
  did: alice.did,
14
52
  collection: 'app.bsky.feed.post',
@@ -19,14 +57,14 @@ const res1 = await client.com.atproto.repo.createRecord(
19
57
  }
20
58
  }
21
59
  )
22
- const res2 = await client.com.atproto.repo.listRecords({did: alice.did, type: 'app.bsky.feed.post'})
60
+ const res2 = await agent.api.com.atproto.repo.listRecords({did: alice.did, type: 'app.bsky.feed.post'})
23
61
 
24
62
  // repo record methods
25
- const res3 = await client.app.bsky.feed.post.create({did: alice.did}, {
63
+ const res3 = await agent.api.app.bsky.feed.post.create({did: alice.did}, {
26
64
  text: 'Hello, world!',
27
65
  createdAt: (new Date()).toISOString()
28
66
  })
29
- const res4 = await client.app.bsky.feed.post.list({did: alice.did})
67
+ const res4 = await agent.api.app.bsky.feed.post.list({did: alice.did})
30
68
  ```
31
69
 
32
70
  ## License
@@ -0,0 +1,22 @@
1
+ import { AtpServiceClient, ComAtprotoAccountCreate, ComAtprotoSessionCreate, ComAtprotoSessionGet } from './client';
2
+ import { AtpSessionData, AtpAgentCreateAccountOpts, AtpAgentLoginOpts, AptAgentFetchHandler, AtpAgentGlobalOpts, AtpPersistSessionHandler, AtpAgentOpts } from './types';
3
+ export declare class AtpAgent {
4
+ service: URL;
5
+ api: AtpServiceClient;
6
+ session?: AtpSessionData;
7
+ private _baseClient;
8
+ private _persistSession?;
9
+ private _refreshSessionPromise;
10
+ static fetch: AptAgentFetchHandler | undefined;
11
+ static configure(opts: AtpAgentGlobalOpts): void;
12
+ constructor(opts: AtpAgentOpts);
13
+ get hasSession(): boolean;
14
+ setPersistSessionHandler(handler?: AtpPersistSessionHandler): void;
15
+ createAccount(opts: AtpAgentCreateAccountOpts): Promise<ComAtprotoAccountCreate.Response>;
16
+ login(opts: AtpAgentLoginOpts): Promise<ComAtprotoSessionCreate.Response>;
17
+ resumeSession(session: AtpSessionData): Promise<ComAtprotoSessionGet.Response>;
18
+ private _addAuthHeader;
19
+ private _fetch;
20
+ private _refreshSession;
21
+ private _refreshSessionInner;
22
+ }
@@ -70,6 +70,7 @@ export * as ComAtprotoAccountGet from './types/com/atproto/account/get';
70
70
  export * as ComAtprotoAccountRequestDelete from './types/com/atproto/account/requestDelete';
71
71
  export * as ComAtprotoAccountRequestPasswordReset from './types/com/atproto/account/requestPasswordReset';
72
72
  export * as ComAtprotoAccountResetPassword from './types/com/atproto/account/resetPassword';
73
+ export * as ComAtprotoAdminBlob from './types/com/atproto/admin/blob';
73
74
  export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
74
75
  export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
75
76
  export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/getModerationReport';
@@ -160,28 +161,26 @@ export declare const APP_BSKY_GRAPH: {
160
161
  export declare const APP_BSKY_SYSTEM: {
161
162
  ActorUser: string;
162
163
  };
163
- export declare class Client {
164
+ export declare class AtpBaseClient {
164
165
  xrpc: XrpcClient;
165
166
  constructor();
166
- service(serviceUri: string | URL): ServiceClient;
167
+ service(serviceUri: string | URL): AtpServiceClient;
167
168
  }
168
- declare const defaultInst: Client;
169
- export default defaultInst;
170
- export declare class ServiceClient {
171
- _baseClient: Client;
169
+ export declare class AtpServiceClient {
170
+ _baseClient: AtpBaseClient;
172
171
  xrpc: XrpcServiceClient;
173
172
  com: ComNS;
174
173
  app: AppNS;
175
- constructor(baseClient: Client, xrpcService: XrpcServiceClient);
174
+ constructor(baseClient: AtpBaseClient, xrpcService: XrpcServiceClient);
176
175
  setHeader(key: string, value: string): void;
177
176
  }
178
177
  export declare class ComNS {
179
- _service: ServiceClient;
178
+ _service: AtpServiceClient;
180
179
  atproto: AtprotoNS;
181
- constructor(service: ServiceClient);
180
+ constructor(service: AtpServiceClient);
182
181
  }
183
182
  export declare class AtprotoNS {
184
- _service: ServiceClient;
183
+ _service: AtpServiceClient;
185
184
  account: AccountNS;
186
185
  admin: AdminNS;
187
186
  blob: BlobNS;
@@ -191,11 +190,11 @@ export declare class AtprotoNS {
191
190
  server: ServerNS;
192
191
  session: SessionNS;
193
192
  sync: SyncNS;
194
- constructor(service: ServiceClient);
193
+ constructor(service: AtpServiceClient);
195
194
  }
196
195
  export declare class AccountNS {
197
- _service: ServiceClient;
198
- constructor(service: ServiceClient);
196
+ _service: AtpServiceClient;
197
+ constructor(service: AtpServiceClient);
199
198
  create(data?: ComAtprotoAccountCreate.InputSchema, opts?: ComAtprotoAccountCreate.CallOptions): Promise<ComAtprotoAccountCreate.Response>;
200
199
  createInviteCode(data?: ComAtprotoAccountCreateInviteCode.InputSchema, opts?: ComAtprotoAccountCreateInviteCode.CallOptions): Promise<ComAtprotoAccountCreateInviteCode.Response>;
201
200
  delete(data?: ComAtprotoAccountDelete.InputSchema, opts?: ComAtprotoAccountDelete.CallOptions): Promise<ComAtprotoAccountDelete.Response>;
@@ -205,8 +204,8 @@ export declare class AccountNS {
205
204
  resetPassword(data?: ComAtprotoAccountResetPassword.InputSchema, opts?: ComAtprotoAccountResetPassword.CallOptions): Promise<ComAtprotoAccountResetPassword.Response>;
206
205
  }
207
206
  export declare class AdminNS {
208
- _service: ServiceClient;
209
- constructor(service: ServiceClient);
207
+ _service: AtpServiceClient;
208
+ constructor(service: AtpServiceClient);
210
209
  getModerationAction(params?: ComAtprotoAdminGetModerationAction.QueryParams, opts?: ComAtprotoAdminGetModerationAction.CallOptions): Promise<ComAtprotoAdminGetModerationAction.Response>;
211
210
  getModerationActions(params?: ComAtprotoAdminGetModerationActions.QueryParams, opts?: ComAtprotoAdminGetModerationActions.CallOptions): Promise<ComAtprotoAdminGetModerationActions.Response>;
212
211
  getModerationReport(params?: ComAtprotoAdminGetModerationReport.QueryParams, opts?: ComAtprotoAdminGetModerationReport.CallOptions): Promise<ComAtprotoAdminGetModerationReport.Response>;
@@ -219,18 +218,18 @@ export declare class AdminNS {
219
218
  takeModerationAction(data?: ComAtprotoAdminTakeModerationAction.InputSchema, opts?: ComAtprotoAdminTakeModerationAction.CallOptions): Promise<ComAtprotoAdminTakeModerationAction.Response>;
220
219
  }
221
220
  export declare class BlobNS {
222
- _service: ServiceClient;
223
- constructor(service: ServiceClient);
221
+ _service: AtpServiceClient;
222
+ constructor(service: AtpServiceClient);
224
223
  upload(data?: ComAtprotoBlobUpload.InputSchema, opts?: ComAtprotoBlobUpload.CallOptions): Promise<ComAtprotoBlobUpload.Response>;
225
224
  }
226
225
  export declare class HandleNS {
227
- _service: ServiceClient;
228
- constructor(service: ServiceClient);
226
+ _service: AtpServiceClient;
227
+ constructor(service: AtpServiceClient);
229
228
  resolve(params?: ComAtprotoHandleResolve.QueryParams, opts?: ComAtprotoHandleResolve.CallOptions): Promise<ComAtprotoHandleResolve.Response>;
230
229
  }
231
230
  export declare class RepoNS {
232
- _service: ServiceClient;
233
- constructor(service: ServiceClient);
231
+ _service: AtpServiceClient;
232
+ constructor(service: AtpServiceClient);
234
233
  batchWrite(data?: ComAtprotoRepoBatchWrite.InputSchema, opts?: ComAtprotoRepoBatchWrite.CallOptions): Promise<ComAtprotoRepoBatchWrite.Response>;
235
234
  createRecord(data?: ComAtprotoRepoCreateRecord.InputSchema, opts?: ComAtprotoRepoCreateRecord.CallOptions): Promise<ComAtprotoRepoCreateRecord.Response>;
236
235
  deleteRecord(data?: ComAtprotoRepoDeleteRecord.InputSchema, opts?: ComAtprotoRepoDeleteRecord.CallOptions): Promise<ComAtprotoRepoDeleteRecord.Response>;
@@ -240,26 +239,26 @@ export declare class RepoNS {
240
239
  putRecord(data?: ComAtprotoRepoPutRecord.InputSchema, opts?: ComAtprotoRepoPutRecord.CallOptions): Promise<ComAtprotoRepoPutRecord.Response>;
241
240
  }
242
241
  export declare class ReportNS {
243
- _service: ServiceClient;
244
- constructor(service: ServiceClient);
242
+ _service: AtpServiceClient;
243
+ constructor(service: AtpServiceClient);
245
244
  create(data?: ComAtprotoReportCreate.InputSchema, opts?: ComAtprotoReportCreate.CallOptions): Promise<ComAtprotoReportCreate.Response>;
246
245
  }
247
246
  export declare class ServerNS {
248
- _service: ServiceClient;
249
- constructor(service: ServiceClient);
247
+ _service: AtpServiceClient;
248
+ constructor(service: AtpServiceClient);
250
249
  getAccountsConfig(params?: ComAtprotoServerGetAccountsConfig.QueryParams, opts?: ComAtprotoServerGetAccountsConfig.CallOptions): Promise<ComAtprotoServerGetAccountsConfig.Response>;
251
250
  }
252
251
  export declare class SessionNS {
253
- _service: ServiceClient;
254
- constructor(service: ServiceClient);
252
+ _service: AtpServiceClient;
253
+ constructor(service: AtpServiceClient);
255
254
  create(data?: ComAtprotoSessionCreate.InputSchema, opts?: ComAtprotoSessionCreate.CallOptions): Promise<ComAtprotoSessionCreate.Response>;
256
255
  delete(data?: ComAtprotoSessionDelete.InputSchema, opts?: ComAtprotoSessionDelete.CallOptions): Promise<ComAtprotoSessionDelete.Response>;
257
256
  get(params?: ComAtprotoSessionGet.QueryParams, opts?: ComAtprotoSessionGet.CallOptions): Promise<ComAtprotoSessionGet.Response>;
258
257
  refresh(data?: ComAtprotoSessionRefresh.InputSchema, opts?: ComAtprotoSessionRefresh.CallOptions): Promise<ComAtprotoSessionRefresh.Response>;
259
258
  }
260
259
  export declare class SyncNS {
261
- _service: ServiceClient;
262
- constructor(service: ServiceClient);
260
+ _service: AtpServiceClient;
261
+ constructor(service: AtpServiceClient);
263
262
  getCheckout(params?: ComAtprotoSyncGetCheckout.QueryParams, opts?: ComAtprotoSyncGetCheckout.CallOptions): Promise<ComAtprotoSyncGetCheckout.Response>;
264
263
  getCommitPath(params?: ComAtprotoSyncGetCommitPath.QueryParams, opts?: ComAtprotoSyncGetCommitPath.CallOptions): Promise<ComAtprotoSyncGetCommitPath.Response>;
265
264
  getHead(params?: ComAtprotoSyncGetHead.QueryParams, opts?: ComAtprotoSyncGetHead.CallOptions): Promise<ComAtprotoSyncGetHead.Response>;
@@ -267,24 +266,24 @@ export declare class SyncNS {
267
266
  getRepo(params?: ComAtprotoSyncGetRepo.QueryParams, opts?: ComAtprotoSyncGetRepo.CallOptions): Promise<ComAtprotoSyncGetRepo.Response>;
268
267
  }
269
268
  export declare class AppNS {
270
- _service: ServiceClient;
269
+ _service: AtpServiceClient;
271
270
  bsky: BskyNS;
272
- constructor(service: ServiceClient);
271
+ constructor(service: AtpServiceClient);
273
272
  }
274
273
  export declare class BskyNS {
275
- _service: ServiceClient;
274
+ _service: AtpServiceClient;
276
275
  actor: ActorNS;
277
276
  embed: EmbedNS;
278
277
  feed: FeedNS;
279
278
  graph: GraphNS;
280
279
  notification: NotificationNS;
281
280
  system: SystemNS;
282
- constructor(service: ServiceClient);
281
+ constructor(service: AtpServiceClient);
283
282
  }
284
283
  export declare class ActorNS {
285
- _service: ServiceClient;
284
+ _service: AtpServiceClient;
286
285
  profile: ProfileRecord;
287
- constructor(service: ServiceClient);
286
+ constructor(service: AtpServiceClient);
288
287
  getProfile(params?: AppBskyActorGetProfile.QueryParams, opts?: AppBskyActorGetProfile.CallOptions): Promise<AppBskyActorGetProfile.Response>;
289
288
  getSuggestions(params?: AppBskyActorGetSuggestions.QueryParams, opts?: AppBskyActorGetSuggestions.CallOptions): Promise<AppBskyActorGetSuggestions.Response>;
290
289
  search(params?: AppBskyActorSearch.QueryParams, opts?: AppBskyActorSearch.CallOptions): Promise<AppBskyActorSearch.Response>;
@@ -292,8 +291,8 @@ export declare class ActorNS {
292
291
  updateProfile(data?: AppBskyActorUpdateProfile.InputSchema, opts?: AppBskyActorUpdateProfile.CallOptions): Promise<AppBskyActorUpdateProfile.Response>;
293
292
  }
294
293
  export declare class ProfileRecord {
295
- _service: ServiceClient;
296
- constructor(service: ServiceClient);
294
+ _service: AtpServiceClient;
295
+ constructor(service: AtpServiceClient);
297
296
  list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
298
297
  cursor?: string;
299
298
  records: {
@@ -313,15 +312,15 @@ export declare class ProfileRecord {
313
312
  delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
314
313
  }
315
314
  export declare class EmbedNS {
316
- _service: ServiceClient;
317
- constructor(service: ServiceClient);
315
+ _service: AtpServiceClient;
316
+ constructor(service: AtpServiceClient);
318
317
  }
319
318
  export declare class FeedNS {
320
- _service: ServiceClient;
319
+ _service: AtpServiceClient;
321
320
  post: PostRecord;
322
321
  repost: RepostRecord;
323
322
  vote: VoteRecord;
324
- constructor(service: ServiceClient);
323
+ constructor(service: AtpServiceClient);
325
324
  getAuthorFeed(params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions): Promise<AppBskyFeedGetAuthorFeed.Response>;
326
325
  getPostThread(params?: AppBskyFeedGetPostThread.QueryParams, opts?: AppBskyFeedGetPostThread.CallOptions): Promise<AppBskyFeedGetPostThread.Response>;
327
326
  getRepostedBy(params?: AppBskyFeedGetRepostedBy.QueryParams, opts?: AppBskyFeedGetRepostedBy.CallOptions): Promise<AppBskyFeedGetRepostedBy.Response>;
@@ -330,8 +329,8 @@ export declare class FeedNS {
330
329
  setVote(data?: AppBskyFeedSetVote.InputSchema, opts?: AppBskyFeedSetVote.CallOptions): Promise<AppBskyFeedSetVote.Response>;
331
330
  }
332
331
  export declare class PostRecord {
333
- _service: ServiceClient;
334
- constructor(service: ServiceClient);
332
+ _service: AtpServiceClient;
333
+ constructor(service: AtpServiceClient);
335
334
  list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
336
335
  cursor?: string;
337
336
  records: {
@@ -351,8 +350,8 @@ export declare class PostRecord {
351
350
  delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
352
351
  }
353
352
  export declare class RepostRecord {
354
- _service: ServiceClient;
355
- constructor(service: ServiceClient);
353
+ _service: AtpServiceClient;
354
+ constructor(service: AtpServiceClient);
356
355
  list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
357
356
  cursor?: string;
358
357
  records: {
@@ -372,8 +371,8 @@ export declare class RepostRecord {
372
371
  delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
373
372
  }
374
373
  export declare class VoteRecord {
375
- _service: ServiceClient;
376
- constructor(service: ServiceClient);
374
+ _service: AtpServiceClient;
375
+ constructor(service: AtpServiceClient);
377
376
  list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
378
377
  cursor?: string;
379
378
  records: {
@@ -393,11 +392,11 @@ export declare class VoteRecord {
393
392
  delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
394
393
  }
395
394
  export declare class GraphNS {
396
- _service: ServiceClient;
395
+ _service: AtpServiceClient;
397
396
  assertion: AssertionRecord;
398
397
  confirmation: ConfirmationRecord;
399
398
  follow: FollowRecord;
400
- constructor(service: ServiceClient);
399
+ constructor(service: AtpServiceClient);
401
400
  getFollowers(params?: AppBskyGraphGetFollowers.QueryParams, opts?: AppBskyGraphGetFollowers.CallOptions): Promise<AppBskyGraphGetFollowers.Response>;
402
401
  getFollows(params?: AppBskyGraphGetFollows.QueryParams, opts?: AppBskyGraphGetFollows.CallOptions): Promise<AppBskyGraphGetFollows.Response>;
403
402
  getMutes(params?: AppBskyGraphGetMutes.QueryParams, opts?: AppBskyGraphGetMutes.CallOptions): Promise<AppBskyGraphGetMutes.Response>;
@@ -405,8 +404,8 @@ export declare class GraphNS {
405
404
  unmute(data?: AppBskyGraphUnmute.InputSchema, opts?: AppBskyGraphUnmute.CallOptions): Promise<AppBskyGraphUnmute.Response>;
406
405
  }
407
406
  export declare class AssertionRecord {
408
- _service: ServiceClient;
409
- constructor(service: ServiceClient);
407
+ _service: AtpServiceClient;
408
+ constructor(service: AtpServiceClient);
410
409
  list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
411
410
  cursor?: string;
412
411
  records: {
@@ -426,8 +425,8 @@ export declare class AssertionRecord {
426
425
  delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
427
426
  }
428
427
  export declare class ConfirmationRecord {
429
- _service: ServiceClient;
430
- constructor(service: ServiceClient);
428
+ _service: AtpServiceClient;
429
+ constructor(service: AtpServiceClient);
431
430
  list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
432
431
  cursor?: string;
433
432
  records: {
@@ -447,8 +446,8 @@ export declare class ConfirmationRecord {
447
446
  delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
448
447
  }
449
448
  export declare class FollowRecord {
450
- _service: ServiceClient;
451
- constructor(service: ServiceClient);
449
+ _service: AtpServiceClient;
450
+ constructor(service: AtpServiceClient);
452
451
  list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
453
452
  cursor?: string;
454
453
  records: {
@@ -468,20 +467,20 @@ export declare class FollowRecord {
468
467
  delete(params: Omit<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
469
468
  }
470
469
  export declare class NotificationNS {
471
- _service: ServiceClient;
472
- constructor(service: ServiceClient);
470
+ _service: AtpServiceClient;
471
+ constructor(service: AtpServiceClient);
473
472
  getCount(params?: AppBskyNotificationGetCount.QueryParams, opts?: AppBskyNotificationGetCount.CallOptions): Promise<AppBskyNotificationGetCount.Response>;
474
473
  list(params?: AppBskyNotificationList.QueryParams, opts?: AppBskyNotificationList.CallOptions): Promise<AppBskyNotificationList.Response>;
475
474
  updateSeen(data?: AppBskyNotificationUpdateSeen.InputSchema, opts?: AppBskyNotificationUpdateSeen.CallOptions): Promise<AppBskyNotificationUpdateSeen.Response>;
476
475
  }
477
476
  export declare class SystemNS {
478
- _service: ServiceClient;
477
+ _service: AtpServiceClient;
479
478
  declaration: DeclarationRecord;
480
- constructor(service: ServiceClient);
479
+ constructor(service: AtpServiceClient);
481
480
  }
482
481
  export declare class DeclarationRecord {
483
- _service: ServiceClient;
484
- constructor(service: ServiceClient);
482
+ _service: AtpServiceClient;
483
+ constructor(service: AtpServiceClient);
485
484
  list(params: Omit<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
486
485
  cursor?: string;
487
486
  records: {
@@ -193,6 +193,75 @@ export declare const schemaDict: {
193
193
  };
194
194
  };
195
195
  };
196
+ ComAtprotoAdminBlob: {
197
+ lexicon: number;
198
+ id: string;
199
+ defs: {
200
+ view: {
201
+ type: string;
202
+ required: string[];
203
+ properties: {
204
+ cid: {
205
+ type: string;
206
+ };
207
+ mimeType: {
208
+ type: string;
209
+ };
210
+ size: {
211
+ type: string;
212
+ };
213
+ createdAt: {
214
+ type: string;
215
+ };
216
+ details: {
217
+ type: string;
218
+ refs: string[];
219
+ };
220
+ moderation: {
221
+ type: string;
222
+ ref: string;
223
+ };
224
+ };
225
+ };
226
+ imageDetails: {
227
+ type: string;
228
+ required: string[];
229
+ properties: {
230
+ width: {
231
+ type: string;
232
+ };
233
+ height: {
234
+ type: string;
235
+ };
236
+ };
237
+ };
238
+ videoDetails: {
239
+ type: string;
240
+ required: string[];
241
+ properties: {
242
+ width: {
243
+ type: string;
244
+ };
245
+ height: {
246
+ type: string;
247
+ };
248
+ length: {
249
+ type: string;
250
+ };
251
+ };
252
+ };
253
+ moderation: {
254
+ type: string;
255
+ required: never[];
256
+ properties: {
257
+ currentAction: {
258
+ type: string;
259
+ ref: string;
260
+ };
261
+ };
262
+ };
263
+ };
264
+ };
196
265
  ComAtprotoAdminGetModerationAction: {
197
266
  lexicon: number;
198
267
  id: string;
@@ -408,12 +477,18 @@ export declare const schemaDict: {
408
477
  };
409
478
  action: {
410
479
  type: string;
411
- knownValues: string[];
480
+ ref: string;
412
481
  };
413
482
  subject: {
414
483
  type: string;
415
484
  refs: string[];
416
485
  };
486
+ subjectBlobCids: {
487
+ type: string;
488
+ items: {
489
+ type: string;
490
+ };
491
+ };
417
492
  reason: {
418
493
  type: string;
419
494
  };
@@ -444,12 +519,19 @@ export declare const schemaDict: {
444
519
  };
445
520
  action: {
446
521
  type: string;
447
- knownValues: string[];
522
+ ref: string;
448
523
  };
449
524
  subject: {
450
525
  type: string;
451
526
  refs: string[];
452
527
  };
528
+ subjectBlobs: {
529
+ type: string;
530
+ items: {
531
+ type: string;
532
+ ref: string;
533
+ };
534
+ };
453
535
  reason: {
454
536
  type: string;
455
537
  };
@@ -472,6 +554,19 @@ export declare const schemaDict: {
472
554
  };
473
555
  };
474
556
  };
557
+ viewCurrent: {
558
+ type: string;
559
+ required: string[];
560
+ properties: {
561
+ id: {
562
+ type: string;
563
+ };
564
+ action: {
565
+ type: string;
566
+ ref: string;
567
+ };
568
+ };
569
+ };
475
570
  reversal: {
476
571
  type: string;
477
572
  required: string[];
@@ -487,6 +582,10 @@ export declare const schemaDict: {
487
582
  };
488
583
  };
489
584
  };
585
+ actionType: {
586
+ type: string;
587
+ knownValues: string[];
588
+ };
490
589
  takedown: {
491
590
  type: string;
492
591
  description: string;
@@ -589,6 +688,12 @@ export declare const schemaDict: {
589
688
  value: {
590
689
  type: string;
591
690
  };
691
+ blobCids: {
692
+ type: string;
693
+ items: {
694
+ type: string;
695
+ };
696
+ };
592
697
  indexedAt: {
593
698
  type: string;
594
699
  };
@@ -615,6 +720,13 @@ export declare const schemaDict: {
615
720
  value: {
616
721
  type: string;
617
722
  };
723
+ blobs: {
724
+ type: string;
725
+ items: {
726
+ type: string;
727
+ ref: string;
728
+ };
729
+ };
618
730
  indexedAt: {
619
731
  type: string;
620
732
  };
@@ -632,8 +744,9 @@ export declare const schemaDict: {
632
744
  type: string;
633
745
  required: never[];
634
746
  properties: {
635
- takedownId: {
747
+ currentAction: {
636
748
  type: string;
749
+ ref: string;
637
750
  };
638
751
  };
639
752
  };
@@ -641,6 +754,10 @@ export declare const schemaDict: {
641
754
  type: string;
642
755
  required: string[];
643
756
  properties: {
757
+ currentAction: {
758
+ type: string;
759
+ ref: string;
760
+ };
644
761
  actions: {
645
762
  type: string;
646
763
  items: {
@@ -655,9 +772,6 @@ export declare const schemaDict: {
655
772
  ref: string;
656
773
  };
657
774
  };
658
- takedownId: {
659
- type: string;
660
- };
661
775
  };
662
776
  };
663
777
  };
@@ -737,8 +851,9 @@ export declare const schemaDict: {
737
851
  type: string;
738
852
  required: never[];
739
853
  properties: {
740
- takedownId: {
854
+ currentAction: {
741
855
  type: string;
856
+ ref: string;
742
857
  };
743
858
  };
744
859
  };
@@ -746,6 +861,10 @@ export declare const schemaDict: {
746
861
  type: string;
747
862
  required: string[];
748
863
  properties: {
864
+ currentAction: {
865
+ type: string;
866
+ ref: string;
867
+ };
749
868
  actions: {
750
869
  type: string;
751
870
  items: {
@@ -760,9 +879,6 @@ export declare const schemaDict: {
760
879
  ref: string;
761
880
  };
762
881
  };
763
- takedownId: {
764
- type: string;
765
- };
766
882
  };
767
883
  };
768
884
  };
@@ -907,6 +1023,12 @@ export declare const schemaDict: {
907
1023
  type: string;
908
1024
  refs: string[];
909
1025
  };
1026
+ subjectBlobCids: {
1027
+ type: string;
1028
+ items: {
1029
+ type: string;
1030
+ };
1031
+ };
910
1032
  reason: {
911
1033
  type: string;
912
1034
  };
@@ -923,6 +1045,9 @@ export declare const schemaDict: {
923
1045
  ref: string;
924
1046
  };
925
1047
  };
1048
+ errors: {
1049
+ name: string;
1050
+ }[];
926
1051
  };
927
1052
  };
928
1053
  };
@@ -2034,18 +2159,6 @@ export declare const schemaDict: {
2034
2159
  indexedAt: {
2035
2160
  type: string;
2036
2161
  };
2037
- myState: {
2038
- type: string;
2039
- ref: string;
2040
- };
2041
- };
2042
- };
2043
- myState: {
2044
- type: string;
2045
- properties: {
2046
- follow: {
2047
- type: string;
2048
- };
2049
2162
  };
2050
2163
  };
2051
2164
  };
@@ -3630,6 +3743,7 @@ export declare const ids: {
3630
3743
  ComAtprotoAccountRequestDelete: string;
3631
3744
  ComAtprotoAccountRequestPasswordReset: string;
3632
3745
  ComAtprotoAccountResetPassword: string;
3746
+ ComAtprotoAdminBlob: string;
3633
3747
  ComAtprotoAdminGetModerationAction: string;
3634
3748
  ComAtprotoAdminGetModerationActions: string;
3635
3749
  ComAtprotoAdminGetModerationReport: string;