@atcute/client 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1841 @@
1
+ /* eslint-disable */
2
+ // This file is automatically generated, do not edit!
3
+
4
+ /**
5
+ * @module
6
+ * Contains type declarations for AT Protocol lexicons
7
+ */
8
+
9
+ type ObjectOmit<T, K extends keyof any> = Omit<T, K>;
10
+
11
+ /** Handles type branding in objects */
12
+ export declare namespace Brand {
13
+ /** Symbol used to brand objects, this does not actually exist in runtime */
14
+ const Type: unique symbol;
15
+
16
+ /** Get the intended `$type` field */
17
+ type GetType<T extends { [Type]?: string }> = NonNullable<T[typeof Type]>;
18
+
19
+ /** Creates a union of objects where it's discriminated by `$type` field. */
20
+ type Union<T extends { [Type]?: string }> = T extends any ? T & { $type: GetType<T> } : never;
21
+
22
+ /** Omits the type branding from object */
23
+ type Omit<T extends { [Type]?: string }> = ObjectOmit<T, typeof Type>;
24
+ }
25
+
26
+ /** Base AT Protocol schema types */
27
+ export declare namespace At {
28
+ /** CID string */
29
+ type CID = string;
30
+
31
+ /** DID of a user */
32
+ type DID = `did:${string}`;
33
+
34
+ /** User handle */
35
+ type Handle = string;
36
+
37
+ /** URI string */
38
+ type Uri = string;
39
+
40
+ /** Object containing a CID string */
41
+ interface CIDLink {
42
+ $link: CID;
43
+ }
44
+
45
+ /** Object containing a base64-encoded bytes */
46
+ interface Bytes {
47
+ $bytes: string;
48
+ }
49
+
50
+ /** Blob interface */
51
+ interface Blob<T extends string = string> {
52
+ $type: 'blob';
53
+ mimeType: T;
54
+ ref: {
55
+ $link: string;
56
+ };
57
+ size: number;
58
+ }
59
+ }
60
+ export declare namespace ComAtprotoAdminDefs {
61
+ interface AccountView {
62
+ [Brand.Type]?: 'com.atproto.admin.defs#accountView';
63
+ did: At.DID;
64
+ handle: At.Handle;
65
+ indexedAt: string;
66
+ deactivatedAt?: string;
67
+ email?: string;
68
+ emailConfirmedAt?: string;
69
+ invitedBy?: ComAtprotoServerDefs.InviteCode;
70
+ inviteNote?: string;
71
+ invites?: ComAtprotoServerDefs.InviteCode[];
72
+ invitesDisabled?: boolean;
73
+ relatedRecords?: unknown[];
74
+ }
75
+ interface RepoBlobRef {
76
+ [Brand.Type]?: 'com.atproto.admin.defs#repoBlobRef';
77
+ cid: At.CID;
78
+ did: At.DID;
79
+ recordUri?: At.Uri;
80
+ }
81
+ interface RepoRef {
82
+ [Brand.Type]?: 'com.atproto.admin.defs#repoRef';
83
+ did: At.DID;
84
+ }
85
+ interface StatusAttr {
86
+ [Brand.Type]?: 'com.atproto.admin.defs#statusAttr';
87
+ applied: boolean;
88
+ ref?: string;
89
+ }
90
+ }
91
+
92
+ /** Delete a user account as an administrator. */
93
+ export declare namespace ComAtprotoAdminDeleteAccount {
94
+ interface Params {}
95
+ interface Input {
96
+ did: At.DID;
97
+ }
98
+ type Output = undefined;
99
+ }
100
+
101
+ /** Disable an account from receiving new invite codes, but does not invalidate existing codes. */
102
+ export declare namespace ComAtprotoAdminDisableAccountInvites {
103
+ interface Params {}
104
+ interface Input {
105
+ account: At.DID;
106
+ /** Optional reason for disabled invites. */
107
+ note?: string;
108
+ }
109
+ type Output = undefined;
110
+ }
111
+
112
+ /** Disable some set of codes and/or all codes associated with a set of users. */
113
+ export declare namespace ComAtprotoAdminDisableInviteCodes {
114
+ interface Params {}
115
+ interface Input {
116
+ accounts?: string[];
117
+ codes?: string[];
118
+ }
119
+ type Output = undefined;
120
+ }
121
+
122
+ /** Re-enable an account's ability to receive invite codes. */
123
+ export declare namespace ComAtprotoAdminEnableAccountInvites {
124
+ interface Params {}
125
+ interface Input {
126
+ account: At.DID;
127
+ /** Optional reason for enabled invites. */
128
+ note?: string;
129
+ }
130
+ type Output = undefined;
131
+ }
132
+
133
+ /** Get details about an account. */
134
+ export declare namespace ComAtprotoAdminGetAccountInfo {
135
+ interface Params {
136
+ did: At.DID;
137
+ }
138
+ type Input = undefined;
139
+ type Output = ComAtprotoAdminDefs.AccountView;
140
+ }
141
+
142
+ /** Get details about some accounts. */
143
+ export declare namespace ComAtprotoAdminGetAccountInfos {
144
+ interface Params {
145
+ dids: At.DID[];
146
+ }
147
+ type Input = undefined;
148
+ interface Output {
149
+ infos: ComAtprotoAdminDefs.AccountView[];
150
+ }
151
+ }
152
+
153
+ /** Get an admin view of invite codes. */
154
+ export declare namespace ComAtprotoAdminGetInviteCodes {
155
+ interface Params {
156
+ cursor?: string;
157
+ /**
158
+ * Minimum: 1 \
159
+ * Maximum: 500
160
+ * @default 100
161
+ */
162
+ limit?: number;
163
+ /** @default "recent" */
164
+ sort?: 'recent' | 'usage' | (string & {});
165
+ }
166
+ type Input = undefined;
167
+ interface Output {
168
+ codes: ComAtprotoServerDefs.InviteCode[];
169
+ cursor?: string;
170
+ }
171
+ }
172
+
173
+ /** Get the service-specific admin status of a subject (account, record, or blob). */
174
+ export declare namespace ComAtprotoAdminGetSubjectStatus {
175
+ interface Params {
176
+ blob?: At.CID;
177
+ did?: At.DID;
178
+ uri?: At.Uri;
179
+ }
180
+ type Input = undefined;
181
+ interface Output {
182
+ subject: Brand.Union<
183
+ ComAtprotoAdminDefs.RepoBlobRef | ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main
184
+ >;
185
+ deactivated?: ComAtprotoAdminDefs.StatusAttr;
186
+ takedown?: ComAtprotoAdminDefs.StatusAttr;
187
+ }
188
+ }
189
+
190
+ /** Get list of accounts that matches your search query. */
191
+ export declare namespace ComAtprotoAdminSearchAccounts {
192
+ interface Params {
193
+ cursor?: string;
194
+ email?: string;
195
+ /**
196
+ * Minimum: 1 \
197
+ * Maximum: 100
198
+ * @default 50
199
+ */
200
+ limit?: number;
201
+ }
202
+ type Input = undefined;
203
+ interface Output {
204
+ accounts: ComAtprotoAdminDefs.AccountView[];
205
+ cursor?: string;
206
+ }
207
+ }
208
+
209
+ /** Send email to a user's account email address. */
210
+ export declare namespace ComAtprotoAdminSendEmail {
211
+ interface Params {}
212
+ interface Input {
213
+ content: string;
214
+ recipientDid: At.DID;
215
+ senderDid: At.DID;
216
+ /** Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers */
217
+ comment?: string;
218
+ subject?: string;
219
+ }
220
+ interface Output {
221
+ sent: boolean;
222
+ }
223
+ }
224
+
225
+ /** Administrative action to update an account's email. */
226
+ export declare namespace ComAtprotoAdminUpdateAccountEmail {
227
+ interface Params {}
228
+ interface Input {
229
+ /** The handle or DID of the repo. */
230
+ account: string;
231
+ email: string;
232
+ }
233
+ type Output = undefined;
234
+ }
235
+
236
+ /** Administrative action to update an account's handle. */
237
+ export declare namespace ComAtprotoAdminUpdateAccountHandle {
238
+ interface Params {}
239
+ interface Input {
240
+ did: At.DID;
241
+ handle: At.Handle;
242
+ }
243
+ type Output = undefined;
244
+ }
245
+
246
+ /** Update the password for a user account as an administrator. */
247
+ export declare namespace ComAtprotoAdminUpdateAccountPassword {
248
+ interface Params {}
249
+ interface Input {
250
+ did: At.DID;
251
+ password: string;
252
+ }
253
+ type Output = undefined;
254
+ }
255
+
256
+ /** Update the service-specific admin status of a subject (account, record, or blob). */
257
+ export declare namespace ComAtprotoAdminUpdateSubjectStatus {
258
+ interface Params {}
259
+ interface Input {
260
+ subject: Brand.Union<
261
+ ComAtprotoAdminDefs.RepoBlobRef | ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main
262
+ >;
263
+ deactivated?: ComAtprotoAdminDefs.StatusAttr;
264
+ takedown?: ComAtprotoAdminDefs.StatusAttr;
265
+ }
266
+ interface Output {
267
+ subject: Brand.Union<
268
+ ComAtprotoAdminDefs.RepoBlobRef | ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main
269
+ >;
270
+ takedown?: ComAtprotoAdminDefs.StatusAttr;
271
+ }
272
+ }
273
+
274
+ /** Describe the credentials that should be included in the DID doc of an account that is migrating to this service. */
275
+ export declare namespace ComAtprotoIdentityGetRecommendedDidCredentials {
276
+ interface Params {}
277
+ type Input = undefined;
278
+ interface Output {
279
+ alsoKnownAs?: string[];
280
+ /** Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs. */
281
+ rotationKeys?: string[];
282
+ services?: unknown;
283
+ verificationMethods?: unknown;
284
+ }
285
+ }
286
+
287
+ /** Request an email with a code to in order to request a signed PLC operation. Requires Auth. */
288
+ export declare namespace ComAtprotoIdentityRequestPlcOperationSignature {
289
+ interface Params {}
290
+ type Input = undefined;
291
+ type Output = undefined;
292
+ }
293
+
294
+ /** Resolves a handle (domain name) to a DID. */
295
+ export declare namespace ComAtprotoIdentityResolveHandle {
296
+ interface Params {
297
+ /** The handle to resolve. */
298
+ handle: At.Handle;
299
+ }
300
+ type Input = undefined;
301
+ interface Output {
302
+ did: At.DID;
303
+ }
304
+ }
305
+
306
+ /** Signs a PLC operation to update some value(s) in the requesting DID's document. */
307
+ export declare namespace ComAtprotoIdentitySignPlcOperation {
308
+ interface Params {}
309
+ interface Input {
310
+ alsoKnownAs?: string[];
311
+ rotationKeys?: string[];
312
+ services?: unknown;
313
+ /** A token received through com.atproto.identity.requestPlcOperationSignature */
314
+ token?: string;
315
+ verificationMethods?: unknown;
316
+ }
317
+ interface Output {
318
+ /** A signed DID PLC operation. */
319
+ operation: unknown;
320
+ }
321
+ }
322
+
323
+ /** Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry */
324
+ export declare namespace ComAtprotoIdentitySubmitPlcOperation {
325
+ interface Params {}
326
+ interface Input {
327
+ operation: unknown;
328
+ }
329
+ type Output = undefined;
330
+ }
331
+
332
+ /** Updates the current account's handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth. */
333
+ export declare namespace ComAtprotoIdentityUpdateHandle {
334
+ interface Params {}
335
+ interface Input {
336
+ /** The new handle. */
337
+ handle: At.Handle;
338
+ }
339
+ type Output = undefined;
340
+ }
341
+
342
+ export declare namespace ComAtprotoLabelDefs {
343
+ /** Metadata tag on an atproto resource (eg, repo or record). */
344
+ interface Label {
345
+ [Brand.Type]?: 'com.atproto.label.defs#label';
346
+ /** Timestamp when this label was created. */
347
+ cts: string;
348
+ /** DID of the actor who created this label. */
349
+ src: At.DID;
350
+ /** AT URI of the record, repository (account), or other resource that this label applies to. */
351
+ uri: string;
352
+ /**
353
+ * The short string name of the value or type of this label. \
354
+ * Maximum string length: 128
355
+ */
356
+ val: string;
357
+ /** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */
358
+ cid?: At.CID;
359
+ /** Timestamp at which this label expires (no longer applies). */
360
+ exp?: string;
361
+ /** If true, this is a negation label, overwriting a previous label. */
362
+ neg?: boolean;
363
+ /** Signature of dag-cbor encoded label. */
364
+ sig?: At.Bytes;
365
+ /** The AT Protocol version of the label object. */
366
+ ver?: number;
367
+ }
368
+ type LabelValue =
369
+ | '!hide'
370
+ | '!no-promote'
371
+ | '!no-unauthenticated'
372
+ | '!warn'
373
+ | 'dmca-violation'
374
+ | 'doxxing'
375
+ | 'gore'
376
+ | 'nsfl'
377
+ | 'nudity'
378
+ | 'porn'
379
+ | 'sexual'
380
+ | (string & {});
381
+ /** Declares a label value and its expected interpretations and behaviors. */
382
+ interface LabelValueDefinition {
383
+ [Brand.Type]?: 'com.atproto.label.defs#labelValueDefinition';
384
+ /** What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. */
385
+ blurs: 'content' | 'media' | 'none' | (string & {});
386
+ /**
387
+ * The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). \
388
+ * Maximum string length: 100 \
389
+ * Maximum grapheme length: 100
390
+ */
391
+ identifier: string;
392
+ locales: LabelValueDefinitionStrings[];
393
+ /** How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. */
394
+ severity: 'alert' | 'inform' | 'none' | (string & {});
395
+ /** Does the user need to have adult content enabled in order to configure this label? */
396
+ adultOnly?: boolean;
397
+ /**
398
+ * The default setting for this label.
399
+ * @default "warn"
400
+ */
401
+ defaultSetting?: 'hide' | 'ignore' | 'warn' | (string & {});
402
+ }
403
+ /** Strings which describe the label in the UI, localized into a specific language. */
404
+ interface LabelValueDefinitionStrings {
405
+ [Brand.Type]?: 'com.atproto.label.defs#labelValueDefinitionStrings';
406
+ /**
407
+ * A longer description of what the label means and why it might be applied. \
408
+ * Maximum string length: 100000 \
409
+ * Maximum grapheme length: 10000
410
+ */
411
+ description: string;
412
+ /** The code of the language these strings are written in. */
413
+ lang: string;
414
+ /**
415
+ * A short human-readable name for the label. \
416
+ * Maximum string length: 640 \
417
+ * Maximum grapheme length: 64
418
+ */
419
+ name: string;
420
+ }
421
+ /** Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. */
422
+ interface SelfLabel {
423
+ [Brand.Type]?: 'com.atproto.label.defs#selfLabel';
424
+ /**
425
+ * The short string name of the value or type of this label. \
426
+ * Maximum string length: 128
427
+ */
428
+ val: string;
429
+ }
430
+ /** Metadata tags on an atproto record, published by the author within the record. */
431
+ interface SelfLabels {
432
+ [Brand.Type]?: 'com.atproto.label.defs#selfLabels';
433
+ /** Maximum array length: 10 */
434
+ values: SelfLabel[];
435
+ }
436
+ }
437
+
438
+ /** Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth. */
439
+ export declare namespace ComAtprotoLabelQueryLabels {
440
+ interface Params {
441
+ /** List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI. */
442
+ uriPatterns: string[];
443
+ cursor?: string;
444
+ /**
445
+ * Minimum: 1 \
446
+ * Maximum: 250
447
+ * @default 50
448
+ */
449
+ limit?: number;
450
+ /** Optional list of label sources (DIDs) to filter on. */
451
+ sources?: At.DID[];
452
+ }
453
+ type Input = undefined;
454
+ interface Output {
455
+ labels: ComAtprotoLabelDefs.Label[];
456
+ cursor?: string;
457
+ }
458
+ }
459
+
460
+ export declare namespace ComAtprotoLabelSubscribeLabels {
461
+ interface Info {
462
+ [Brand.Type]?: 'com.atproto.label.subscribeLabels#info';
463
+ name: 'OutdatedCursor' | (string & {});
464
+ message?: string;
465
+ }
466
+ interface Labels {
467
+ [Brand.Type]?: 'com.atproto.label.subscribeLabels#labels';
468
+ labels: ComAtprotoLabelDefs.Label[];
469
+ seq: number;
470
+ }
471
+ }
472
+
473
+ /** Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth. */
474
+ export declare namespace ComAtprotoModerationCreateReport {
475
+ interface Params {}
476
+ interface Input {
477
+ /** Indicates the broad category of violation the report is for. */
478
+ reasonType: ComAtprotoModerationDefs.ReasonType;
479
+ subject: Brand.Union<ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main>;
480
+ /**
481
+ * Additional context about the content and violation. \
482
+ * Maximum string length: 20000 \
483
+ * Maximum grapheme length: 2000
484
+ */
485
+ reason?: string;
486
+ }
487
+ interface Output {
488
+ createdAt: string;
489
+ id: number;
490
+ reasonType: ComAtprotoModerationDefs.ReasonType;
491
+ reportedBy: At.DID;
492
+ subject: Brand.Union<ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main>;
493
+ /**
494
+ * Maximum string length: 20000 \
495
+ * Maximum grapheme length: 2000
496
+ */
497
+ reason?: string;
498
+ }
499
+ }
500
+
501
+ export declare namespace ComAtprotoModerationDefs {
502
+ type ReasonAppeal = 'com.atproto.moderation.defs#reasonAppeal';
503
+ type ReasonMisleading = 'com.atproto.moderation.defs#reasonMisleading';
504
+ type ReasonOther = 'com.atproto.moderation.defs#reasonOther';
505
+ type ReasonRude = 'com.atproto.moderation.defs#reasonRude';
506
+ type ReasonSexual = 'com.atproto.moderation.defs#reasonSexual';
507
+ type ReasonSpam = 'com.atproto.moderation.defs#reasonSpam';
508
+ type ReasonType =
509
+ | 'com.atproto.moderation.defs#reasonAppeal'
510
+ | 'com.atproto.moderation.defs#reasonMisleading'
511
+ | 'com.atproto.moderation.defs#reasonOther'
512
+ | 'com.atproto.moderation.defs#reasonRude'
513
+ | 'com.atproto.moderation.defs#reasonSexual'
514
+ | 'com.atproto.moderation.defs#reasonSpam'
515
+ | 'com.atproto.moderation.defs#reasonViolation'
516
+ | (string & {});
517
+ type ReasonViolation = 'com.atproto.moderation.defs#reasonViolation';
518
+ }
519
+
520
+ /** Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS. */
521
+ export declare namespace ComAtprotoRepoApplyWrites {
522
+ interface Params {}
523
+ interface Input {
524
+ /** The handle or DID of the repo (aka, current account). */
525
+ repo: string;
526
+ writes: Brand.Union<Create | Delete | Update>[];
527
+ /** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
528
+ swapCommit?: At.CID;
529
+ /** Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons. */
530
+ validate?: boolean;
531
+ }
532
+ interface Output {
533
+ commit?: ComAtprotoRepoDefs.CommitMeta;
534
+ results?: Brand.Union<CreateResult | DeleteResult | UpdateResult>[];
535
+ }
536
+ interface Errors {
537
+ InvalidSwap: {};
538
+ }
539
+ /** Operation which creates a new record. */
540
+ interface Create {
541
+ [Brand.Type]?: 'com.atproto.repo.applyWrites#create';
542
+ collection: string;
543
+ value: unknown;
544
+ /** Maximum string length: 15 */
545
+ rkey?: string;
546
+ }
547
+ interface CreateResult {
548
+ [Brand.Type]?: 'com.atproto.repo.applyWrites#createResult';
549
+ cid: At.CID;
550
+ uri: At.Uri;
551
+ validationStatus?: 'unknown' | 'valid' | (string & {});
552
+ }
553
+ /** Operation which deletes an existing record. */
554
+ interface Delete {
555
+ [Brand.Type]?: 'com.atproto.repo.applyWrites#delete';
556
+ collection: string;
557
+ rkey: string;
558
+ }
559
+ interface DeleteResult {
560
+ [Brand.Type]?: 'com.atproto.repo.applyWrites#deleteResult';
561
+ }
562
+ /** Operation which updates an existing record. */
563
+ interface Update {
564
+ [Brand.Type]?: 'com.atproto.repo.applyWrites#update';
565
+ collection: string;
566
+ rkey: string;
567
+ value: unknown;
568
+ }
569
+ interface UpdateResult {
570
+ [Brand.Type]?: 'com.atproto.repo.applyWrites#updateResult';
571
+ cid: At.CID;
572
+ uri: At.Uri;
573
+ validationStatus?: 'unknown' | 'valid' | (string & {});
574
+ }
575
+ }
576
+
577
+ /** Create a single new repository record. Requires auth, implemented by PDS. */
578
+ export declare namespace ComAtprotoRepoCreateRecord {
579
+ interface Params {}
580
+ interface Input {
581
+ /** The NSID of the record collection. */
582
+ collection: string;
583
+ /** The record itself. Must contain a $type field. */
584
+ record: unknown;
585
+ /** The handle or DID of the repo (aka, current account). */
586
+ repo: string;
587
+ /**
588
+ * The Record Key. \
589
+ * Maximum string length: 15
590
+ */
591
+ rkey?: string;
592
+ /** Compare and swap with the previous commit by CID. */
593
+ swapCommit?: At.CID;
594
+ /** Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. */
595
+ validate?: boolean;
596
+ }
597
+ interface Output {
598
+ cid: At.CID;
599
+ uri: At.Uri;
600
+ commit?: ComAtprotoRepoDefs.CommitMeta;
601
+ validationStatus?: 'unknown' | 'valid' | (string & {});
602
+ }
603
+ interface Errors {
604
+ InvalidSwap: {};
605
+ }
606
+ }
607
+
608
+ export declare namespace ComAtprotoRepoDefs {
609
+ interface CommitMeta {
610
+ [Brand.Type]?: 'com.atproto.repo.defs#commitMeta';
611
+ cid: At.CID;
612
+ rev: string;
613
+ }
614
+ }
615
+
616
+ /** Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS. */
617
+ export declare namespace ComAtprotoRepoDeleteRecord {
618
+ interface Params {}
619
+ interface Input {
620
+ /** The NSID of the record collection. */
621
+ collection: string;
622
+ /** The handle or DID of the repo (aka, current account). */
623
+ repo: string;
624
+ /** The Record Key. */
625
+ rkey: string;
626
+ /** Compare and swap with the previous commit by CID. */
627
+ swapCommit?: At.CID;
628
+ /** Compare and swap with the previous record by CID. */
629
+ swapRecord?: At.CID;
630
+ }
631
+ interface Output {
632
+ commit?: ComAtprotoRepoDefs.CommitMeta;
633
+ }
634
+ interface Errors {
635
+ InvalidSwap: {};
636
+ }
637
+ }
638
+
639
+ /** Get information about an account and repository, including the list of collections. Does not require auth. */
640
+ export declare namespace ComAtprotoRepoDescribeRepo {
641
+ interface Params {
642
+ /** The handle or DID of the repo. */
643
+ repo: string;
644
+ }
645
+ type Input = undefined;
646
+ interface Output {
647
+ /** List of all the collections (NSIDs) for which this repo contains at least one record. */
648
+ collections: string[];
649
+ did: At.DID;
650
+ /** The complete DID document for this account. */
651
+ didDoc: unknown;
652
+ handle: At.Handle;
653
+ /** Indicates if handle is currently valid (resolves bi-directionally) */
654
+ handleIsCorrect: boolean;
655
+ }
656
+ }
657
+
658
+ /** Get a single record from a repository. Does not require auth. */
659
+ export declare namespace ComAtprotoRepoGetRecord {
660
+ interface Params {
661
+ /** The NSID of the record collection. */
662
+ collection: string;
663
+ /** The handle or DID of the repo. */
664
+ repo: string;
665
+ /** The Record Key. */
666
+ rkey: string;
667
+ /** The CID of the version of the record. If not specified, then return the most recent version. */
668
+ cid?: At.CID;
669
+ }
670
+ type Input = undefined;
671
+ interface Output {
672
+ uri: At.Uri;
673
+ value: unknown;
674
+ cid?: At.CID;
675
+ }
676
+ interface Errors {
677
+ RecordNotFound: {};
678
+ }
679
+ }
680
+
681
+ /** Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set. */
682
+ export declare namespace ComAtprotoRepoImportRepo {
683
+ interface Params {}
684
+ type Input = Blob | ArrayBufferView;
685
+ type Output = undefined;
686
+ }
687
+
688
+ /** Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow. */
689
+ export declare namespace ComAtprotoRepoListMissingBlobs {
690
+ interface Params {
691
+ cursor?: string;
692
+ /**
693
+ * Minimum: 1 \
694
+ * Maximum: 1000
695
+ * @default 500
696
+ */
697
+ limit?: number;
698
+ }
699
+ type Input = undefined;
700
+ interface Output {
701
+ blobs: RecordBlob[];
702
+ cursor?: string;
703
+ }
704
+ interface RecordBlob {
705
+ [Brand.Type]?: 'com.atproto.repo.listMissingBlobs#recordBlob';
706
+ cid: At.CID;
707
+ recordUri: At.Uri;
708
+ }
709
+ }
710
+
711
+ /** List a range of records in a repository, matching a specific collection. Does not require auth. */
712
+ export declare namespace ComAtprotoRepoListRecords {
713
+ interface Params {
714
+ /** The NSID of the record type. */
715
+ collection: string;
716
+ /** The handle or DID of the repo. */
717
+ repo: string;
718
+ cursor?: string;
719
+ /**
720
+ * The number of records to return. \
721
+ * Minimum: 1 \
722
+ * Maximum: 100
723
+ * @default 50
724
+ */
725
+ limit?: number;
726
+ /** Flag to reverse the order of the returned records. */
727
+ reverse?: boolean;
728
+ /**
729
+ * DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)
730
+ * @deprecated
731
+ */
732
+ rkeyEnd?: string;
733
+ /**
734
+ * DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)
735
+ * @deprecated
736
+ */
737
+ rkeyStart?: string;
738
+ }
739
+ type Input = undefined;
740
+ interface Output {
741
+ records: Record[];
742
+ cursor?: string;
743
+ }
744
+ interface Record {
745
+ [Brand.Type]?: 'com.atproto.repo.listRecords#record';
746
+ cid: At.CID;
747
+ uri: At.Uri;
748
+ value: unknown;
749
+ }
750
+ }
751
+
752
+ /** Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS. */
753
+ export declare namespace ComAtprotoRepoPutRecord {
754
+ interface Params {}
755
+ interface Input {
756
+ /** The NSID of the record collection. */
757
+ collection: string;
758
+ /** The record to write. */
759
+ record: unknown;
760
+ /** The handle or DID of the repo (aka, current account). */
761
+ repo: string;
762
+ /**
763
+ * The Record Key. \
764
+ * Maximum string length: 15
765
+ */
766
+ rkey: string;
767
+ /** Compare and swap with the previous commit by CID. */
768
+ swapCommit?: At.CID;
769
+ /** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
770
+ swapRecord?: At.CID | null;
771
+ /** Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. */
772
+ validate?: boolean;
773
+ }
774
+ interface Output {
775
+ cid: At.CID;
776
+ uri: At.Uri;
777
+ commit?: ComAtprotoRepoDefs.CommitMeta;
778
+ validationStatus?: 'unknown' | 'valid' | (string & {});
779
+ }
780
+ interface Errors {
781
+ InvalidSwap: {};
782
+ }
783
+ }
784
+
785
+ export declare namespace ComAtprotoRepoStrongRef {
786
+ interface Main {
787
+ [Brand.Type]?: 'com.atproto.repo.strongRef';
788
+ cid: At.CID;
789
+ uri: At.Uri;
790
+ }
791
+ }
792
+
793
+ /** Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS. */
794
+ export declare namespace ComAtprotoRepoUploadBlob {
795
+ interface Params {}
796
+ type Input = Blob | ArrayBufferView;
797
+ interface Output {
798
+ blob: At.Blob;
799
+ }
800
+ }
801
+
802
+ /** Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup. */
803
+ export declare namespace ComAtprotoServerActivateAccount {
804
+ interface Params {}
805
+ type Input = undefined;
806
+ type Output = undefined;
807
+ }
808
+
809
+ /** Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself. */
810
+ export declare namespace ComAtprotoServerCheckAccountStatus {
811
+ interface Params {}
812
+ type Input = undefined;
813
+ interface Output {
814
+ activated: boolean;
815
+ expectedBlobs: number;
816
+ importedBlobs: number;
817
+ indexedRecords: number;
818
+ privateStateValues: number;
819
+ repoBlocks: number;
820
+ repoCommit: At.CID;
821
+ repoRev: string;
822
+ validDid: boolean;
823
+ }
824
+ }
825
+
826
+ /** Confirm an email using a token from com.atproto.server.requestEmailConfirmation. */
827
+ export declare namespace ComAtprotoServerConfirmEmail {
828
+ interface Params {}
829
+ interface Input {
830
+ email: string;
831
+ token: string;
832
+ }
833
+ type Output = undefined;
834
+ interface Errors {
835
+ AccountNotFound: {};
836
+ ExpiredToken: {};
837
+ InvalidToken: {};
838
+ InvalidEmail: {};
839
+ }
840
+ }
841
+
842
+ /** Create an account. Implemented by PDS. */
843
+ export declare namespace ComAtprotoServerCreateAccount {
844
+ interface Params {}
845
+ interface Input {
846
+ /** Requested handle for the account. */
847
+ handle: At.Handle;
848
+ /** Pre-existing atproto DID, being imported to a new account. */
849
+ did?: At.DID;
850
+ email?: string;
851
+ inviteCode?: string;
852
+ /** Initial account password. May need to meet instance-specific password strength requirements. */
853
+ password?: string;
854
+ /** A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. */
855
+ plcOp?: unknown;
856
+ /** DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. */
857
+ recoveryKey?: string;
858
+ verificationCode?: string;
859
+ verificationPhone?: string;
860
+ }
861
+ /** Account login session returned on successful account creation. */
862
+ interface Output {
863
+ accessJwt: string;
864
+ /** The DID of the new account. */
865
+ did: At.DID;
866
+ handle: At.Handle;
867
+ refreshJwt: string;
868
+ /** Complete DID document. */
869
+ didDoc?: unknown;
870
+ }
871
+ interface Errors {
872
+ InvalidHandle: {};
873
+ InvalidPassword: {};
874
+ InvalidInviteCode: {};
875
+ HandleNotAvailable: {};
876
+ UnsupportedDomain: {};
877
+ UnresolvableDid: {};
878
+ IncompatibleDidDoc: {};
879
+ }
880
+ }
881
+
882
+ /** Create an App Password. */
883
+ export declare namespace ComAtprotoServerCreateAppPassword {
884
+ interface Params {}
885
+ interface Input {
886
+ /** A short name for the App Password, to help distinguish them. */
887
+ name: string;
888
+ /** If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients. */
889
+ privileged?: boolean;
890
+ }
891
+ type Output = AppPassword;
892
+ interface Errors {
893
+ AccountTakedown: {};
894
+ }
895
+ interface AppPassword {
896
+ [Brand.Type]?: 'com.atproto.server.createAppPassword#appPassword';
897
+ createdAt: string;
898
+ name: string;
899
+ password: string;
900
+ privileged?: boolean;
901
+ }
902
+ }
903
+
904
+ /** Create an invite code. */
905
+ export declare namespace ComAtprotoServerCreateInviteCode {
906
+ interface Params {}
907
+ interface Input {
908
+ useCount: number;
909
+ forAccount?: At.DID;
910
+ }
911
+ interface Output {
912
+ code: string;
913
+ }
914
+ }
915
+
916
+ /** Create invite codes. */
917
+ export declare namespace ComAtprotoServerCreateInviteCodes {
918
+ interface Params {}
919
+ interface Input {
920
+ /** @default 1 */
921
+ codeCount: number;
922
+ useCount: number;
923
+ forAccounts?: At.DID[];
924
+ }
925
+ interface Output {
926
+ codes: AccountCodes[];
927
+ }
928
+ interface AccountCodes {
929
+ [Brand.Type]?: 'com.atproto.server.createInviteCodes#accountCodes';
930
+ account: string;
931
+ codes: string[];
932
+ }
933
+ }
934
+
935
+ /** Create an authentication session. */
936
+ export declare namespace ComAtprotoServerCreateSession {
937
+ interface Params {}
938
+ interface Input {
939
+ /** Handle or other identifier supported by the server for the authenticating user. */
940
+ identifier: string;
941
+ password: string;
942
+ authFactorToken?: string;
943
+ }
944
+ interface Output {
945
+ accessJwt: string;
946
+ did: At.DID;
947
+ handle: At.Handle;
948
+ refreshJwt: string;
949
+ active?: boolean;
950
+ didDoc?: unknown;
951
+ email?: string;
952
+ emailAuthFactor?: boolean;
953
+ emailConfirmed?: boolean;
954
+ /** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
955
+ status?: 'deactivated' | 'suspended' | 'takendown' | (string & {});
956
+ }
957
+ interface Errors {
958
+ AccountTakedown: {};
959
+ AuthFactorTokenRequired: {};
960
+ }
961
+ }
962
+
963
+ /** Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host. */
964
+ export declare namespace ComAtprotoServerDeactivateAccount {
965
+ interface Params {}
966
+ interface Input {
967
+ /** A recommendation to server as to how long they should hold onto the deactivated account before deleting. */
968
+ deleteAfter?: string;
969
+ }
970
+ type Output = undefined;
971
+ }
972
+
973
+ export declare namespace ComAtprotoServerDefs {
974
+ interface InviteCode {
975
+ [Brand.Type]?: 'com.atproto.server.defs#inviteCode';
976
+ available: number;
977
+ code: string;
978
+ createdAt: string;
979
+ createdBy: string;
980
+ disabled: boolean;
981
+ forAccount: string;
982
+ uses: InviteCodeUse[];
983
+ }
984
+ interface InviteCodeUse {
985
+ [Brand.Type]?: 'com.atproto.server.defs#inviteCodeUse';
986
+ usedAt: string;
987
+ usedBy: At.DID;
988
+ }
989
+ }
990
+
991
+ /** Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth. */
992
+ export declare namespace ComAtprotoServerDeleteAccount {
993
+ interface Params {}
994
+ interface Input {
995
+ did: At.DID;
996
+ password: string;
997
+ token: string;
998
+ }
999
+ type Output = undefined;
1000
+ interface Errors {
1001
+ ExpiredToken: {};
1002
+ InvalidToken: {};
1003
+ }
1004
+ }
1005
+
1006
+ /** Delete the current session. Requires auth. */
1007
+ export declare namespace ComAtprotoServerDeleteSession {
1008
+ interface Params {}
1009
+ type Input = undefined;
1010
+ type Output = undefined;
1011
+ }
1012
+
1013
+ /** Describes the server's account creation requirements and capabilities. Implemented by PDS. */
1014
+ export declare namespace ComAtprotoServerDescribeServer {
1015
+ interface Params {}
1016
+ type Input = undefined;
1017
+ interface Output {
1018
+ /** List of domain suffixes that can be used in account handles. */
1019
+ availableUserDomains: string[];
1020
+ did: At.DID;
1021
+ /** Contact information */
1022
+ contact?: Contact;
1023
+ /** If true, an invite code must be supplied to create an account on this instance. */
1024
+ inviteCodeRequired?: boolean;
1025
+ /** URLs of service policy documents. */
1026
+ links?: Links;
1027
+ /** If true, a phone verification token must be supplied to create an account on this instance. */
1028
+ phoneVerificationRequired?: boolean;
1029
+ }
1030
+ interface Contact {
1031
+ [Brand.Type]?: 'com.atproto.server.describeServer#contact';
1032
+ email?: string;
1033
+ }
1034
+ interface Links {
1035
+ [Brand.Type]?: 'com.atproto.server.describeServer#links';
1036
+ privacyPolicy?: string;
1037
+ termsOfService?: string;
1038
+ }
1039
+ }
1040
+
1041
+ /** Get all invite codes for the current account. Requires auth. */
1042
+ export declare namespace ComAtprotoServerGetAccountInviteCodes {
1043
+ interface Params {
1044
+ /**
1045
+ * Controls whether any new 'earned' but not 'created' invites should be created.
1046
+ * @default true
1047
+ */
1048
+ createAvailable?: boolean;
1049
+ /** @default true */
1050
+ includeUsed?: boolean;
1051
+ }
1052
+ type Input = undefined;
1053
+ interface Output {
1054
+ codes: ComAtprotoServerDefs.InviteCode[];
1055
+ }
1056
+ interface Errors {
1057
+ DuplicateCreate: {};
1058
+ }
1059
+ }
1060
+
1061
+ /** Get a signed token on behalf of the requesting DID for the requested service. */
1062
+ export declare namespace ComAtprotoServerGetServiceAuth {
1063
+ interface Params {
1064
+ /** The DID of the service that the token will be used to authenticate with */
1065
+ aud: At.DID;
1066
+ /** The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. */
1067
+ exp?: number;
1068
+ /** Lexicon (XRPC) method to bind the requested token to */
1069
+ lxm?: string;
1070
+ }
1071
+ type Input = undefined;
1072
+ interface Output {
1073
+ token: string;
1074
+ }
1075
+ interface Errors {
1076
+ BadExpiration: {};
1077
+ }
1078
+ }
1079
+
1080
+ /** Get information about the current auth session. Requires auth. */
1081
+ export declare namespace ComAtprotoServerGetSession {
1082
+ interface Params {}
1083
+ type Input = undefined;
1084
+ interface Output {
1085
+ did: At.DID;
1086
+ handle: At.Handle;
1087
+ active?: boolean;
1088
+ didDoc?: unknown;
1089
+ email?: string;
1090
+ emailAuthFactor?: boolean;
1091
+ emailConfirmed?: boolean;
1092
+ /** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
1093
+ status?: 'deactivated' | 'suspended' | 'takendown' | (string & {});
1094
+ }
1095
+ }
1096
+
1097
+ /** List all App Passwords. */
1098
+ export declare namespace ComAtprotoServerListAppPasswords {
1099
+ interface Params {}
1100
+ type Input = undefined;
1101
+ interface Output {
1102
+ passwords: AppPassword[];
1103
+ }
1104
+ interface Errors {
1105
+ AccountTakedown: {};
1106
+ }
1107
+ interface AppPassword {
1108
+ [Brand.Type]?: 'com.atproto.server.listAppPasswords#appPassword';
1109
+ createdAt: string;
1110
+ name: string;
1111
+ privileged?: boolean;
1112
+ }
1113
+ }
1114
+
1115
+ /** Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). */
1116
+ export declare namespace ComAtprotoServerRefreshSession {
1117
+ interface Params {}
1118
+ type Input = undefined;
1119
+ interface Output {
1120
+ accessJwt: string;
1121
+ did: At.DID;
1122
+ handle: At.Handle;
1123
+ refreshJwt: string;
1124
+ active?: boolean;
1125
+ didDoc?: unknown;
1126
+ /** Hosting status of the account. If not specified, then assume 'active'. */
1127
+ status?: 'deactivated' | 'suspended' | 'takendown' | (string & {});
1128
+ }
1129
+ interface Errors {
1130
+ AccountTakedown: {};
1131
+ }
1132
+ }
1133
+
1134
+ /** Initiate a user account deletion via email. */
1135
+ export declare namespace ComAtprotoServerRequestAccountDelete {
1136
+ interface Params {}
1137
+ type Input = undefined;
1138
+ type Output = undefined;
1139
+ }
1140
+
1141
+ /** Request an email with a code to confirm ownership of email. */
1142
+ export declare namespace ComAtprotoServerRequestEmailConfirmation {
1143
+ interface Params {}
1144
+ type Input = undefined;
1145
+ type Output = undefined;
1146
+ }
1147
+
1148
+ /** Request a token in order to update email. */
1149
+ export declare namespace ComAtprotoServerRequestEmailUpdate {
1150
+ interface Params {}
1151
+ type Input = undefined;
1152
+ interface Output {
1153
+ tokenRequired: boolean;
1154
+ }
1155
+ }
1156
+
1157
+ /** Initiate a user account password reset via email. */
1158
+ export declare namespace ComAtprotoServerRequestPasswordReset {
1159
+ interface Params {}
1160
+ interface Input {
1161
+ email: string;
1162
+ }
1163
+ type Output = undefined;
1164
+ }
1165
+
1166
+ /** Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented. */
1167
+ export declare namespace ComAtprotoServerReserveSigningKey {
1168
+ interface Params {}
1169
+ interface Input {
1170
+ /** The DID to reserve a key for. */
1171
+ did?: At.DID;
1172
+ }
1173
+ interface Output {
1174
+ /** The public key for the reserved signing key, in did:key serialization. */
1175
+ signingKey: string;
1176
+ }
1177
+ }
1178
+
1179
+ /** Reset a user account password using a token. */
1180
+ export declare namespace ComAtprotoServerResetPassword {
1181
+ interface Params {}
1182
+ interface Input {
1183
+ password: string;
1184
+ token: string;
1185
+ }
1186
+ type Output = undefined;
1187
+ interface Errors {
1188
+ ExpiredToken: {};
1189
+ InvalidToken: {};
1190
+ }
1191
+ }
1192
+
1193
+ /** Revoke an App Password by name. */
1194
+ export declare namespace ComAtprotoServerRevokeAppPassword {
1195
+ interface Params {}
1196
+ interface Input {
1197
+ name: string;
1198
+ }
1199
+ type Output = undefined;
1200
+ }
1201
+
1202
+ /** Update an account's email. */
1203
+ export declare namespace ComAtprotoServerUpdateEmail {
1204
+ interface Params {}
1205
+ interface Input {
1206
+ email: string;
1207
+ emailAuthFactor?: boolean;
1208
+ /** Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. */
1209
+ token?: string;
1210
+ }
1211
+ type Output = undefined;
1212
+ interface Errors {
1213
+ ExpiredToken: {};
1214
+ InvalidToken: {};
1215
+ TokenRequired: {};
1216
+ }
1217
+ }
1218
+
1219
+ /** Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS. */
1220
+ export declare namespace ComAtprotoSyncGetBlob {
1221
+ interface Params {
1222
+ /** The CID of the blob to fetch */
1223
+ cid: At.CID;
1224
+ /** The DID of the account. */
1225
+ did: At.DID;
1226
+ }
1227
+ type Input = undefined;
1228
+ type Output = Uint8Array;
1229
+ interface Errors {
1230
+ BlobNotFound: {};
1231
+ RepoNotFound: {};
1232
+ RepoTakendown: {};
1233
+ RepoSuspended: {};
1234
+ RepoDeactivated: {};
1235
+ }
1236
+ }
1237
+
1238
+ /** Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS. */
1239
+ export declare namespace ComAtprotoSyncGetBlocks {
1240
+ interface Params {
1241
+ cids: At.CID[];
1242
+ /** The DID of the repo. */
1243
+ did: At.DID;
1244
+ }
1245
+ type Input = undefined;
1246
+ type Output = Uint8Array;
1247
+ interface Errors {
1248
+ BlockNotFound: {};
1249
+ RepoNotFound: {};
1250
+ RepoTakendown: {};
1251
+ RepoSuspended: {};
1252
+ RepoDeactivated: {};
1253
+ }
1254
+ }
1255
+
1256
+ /**
1257
+ * DEPRECATED - please use com.atproto.sync.getRepo instead
1258
+ * @deprecated
1259
+ */
1260
+ export declare namespace ComAtprotoSyncGetCheckout {
1261
+ interface Params {
1262
+ /** The DID of the repo. */
1263
+ did: At.DID;
1264
+ }
1265
+ type Input = undefined;
1266
+ type Output = Uint8Array;
1267
+ }
1268
+
1269
+ /**
1270
+ * DEPRECATED - please use com.atproto.sync.getLatestCommit instead
1271
+ * @deprecated
1272
+ */
1273
+ export declare namespace ComAtprotoSyncGetHead {
1274
+ interface Params {
1275
+ /** The DID of the repo. */
1276
+ did: At.DID;
1277
+ }
1278
+ type Input = undefined;
1279
+ interface Output {
1280
+ root: At.CID;
1281
+ }
1282
+ interface Errors {
1283
+ HeadNotFound: {};
1284
+ }
1285
+ }
1286
+
1287
+ /** Get the current commit CID & revision of the specified repo. Does not require auth. */
1288
+ export declare namespace ComAtprotoSyncGetLatestCommit {
1289
+ interface Params {
1290
+ /** The DID of the repo. */
1291
+ did: At.DID;
1292
+ }
1293
+ type Input = undefined;
1294
+ interface Output {
1295
+ cid: At.CID;
1296
+ rev: string;
1297
+ }
1298
+ interface Errors {
1299
+ RepoNotFound: {};
1300
+ RepoTakendown: {};
1301
+ RepoSuspended: {};
1302
+ RepoDeactivated: {};
1303
+ }
1304
+ }
1305
+
1306
+ /** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
1307
+ export declare namespace ComAtprotoSyncGetRecord {
1308
+ interface Params {
1309
+ collection: string;
1310
+ /** The DID of the repo. */
1311
+ did: At.DID;
1312
+ /** Record Key */
1313
+ rkey: string;
1314
+ /**
1315
+ * DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit
1316
+ * @deprecated
1317
+ */
1318
+ commit?: At.CID;
1319
+ }
1320
+ type Input = undefined;
1321
+ type Output = Uint8Array;
1322
+ interface Errors {
1323
+ RecordNotFound: {};
1324
+ RepoNotFound: {};
1325
+ RepoTakendown: {};
1326
+ RepoSuspended: {};
1327
+ RepoDeactivated: {};
1328
+ }
1329
+ }
1330
+
1331
+ /** Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS. */
1332
+ export declare namespace ComAtprotoSyncGetRepo {
1333
+ interface Params {
1334
+ /** The DID of the repo. */
1335
+ did: At.DID;
1336
+ /** The revision ('rev') of the repo to create a diff from. */
1337
+ since?: string;
1338
+ }
1339
+ type Input = undefined;
1340
+ type Output = Uint8Array;
1341
+ interface Errors {
1342
+ RepoNotFound: {};
1343
+ RepoTakendown: {};
1344
+ RepoSuspended: {};
1345
+ RepoDeactivated: {};
1346
+ }
1347
+ }
1348
+
1349
+ /** Get the hosting status for a repository, on this server. Expected to be implemented by PDS and Relay. */
1350
+ export declare namespace ComAtprotoSyncGetRepoStatus {
1351
+ interface Params {
1352
+ /** The DID of the repo. */
1353
+ did: At.DID;
1354
+ }
1355
+ type Input = undefined;
1356
+ interface Output {
1357
+ active: boolean;
1358
+ did: At.DID;
1359
+ /** Optional field, the current rev of the repo, if active=true */
1360
+ rev?: string;
1361
+ /** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
1362
+ status?: 'deactivated' | 'suspended' | 'takendown' | (string & {});
1363
+ }
1364
+ interface Errors {
1365
+ RepoNotFound: {};
1366
+ }
1367
+ }
1368
+
1369
+ /** List blob CIDs for an account, since some repo revision. Does not require auth; implemented by PDS. */
1370
+ export declare namespace ComAtprotoSyncListBlobs {
1371
+ interface Params {
1372
+ /** The DID of the repo. */
1373
+ did: At.DID;
1374
+ cursor?: string;
1375
+ /**
1376
+ * Minimum: 1 \
1377
+ * Maximum: 1000
1378
+ * @default 500
1379
+ */
1380
+ limit?: number;
1381
+ /** Optional revision of the repo to list blobs since. */
1382
+ since?: string;
1383
+ }
1384
+ type Input = undefined;
1385
+ interface Output {
1386
+ cids: At.CID[];
1387
+ cursor?: string;
1388
+ }
1389
+ interface Errors {
1390
+ RepoNotFound: {};
1391
+ RepoTakendown: {};
1392
+ RepoSuspended: {};
1393
+ RepoDeactivated: {};
1394
+ }
1395
+ }
1396
+
1397
+ /** Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay. */
1398
+ export declare namespace ComAtprotoSyncListRepos {
1399
+ interface Params {
1400
+ cursor?: string;
1401
+ /**
1402
+ * Minimum: 1 \
1403
+ * Maximum: 1000
1404
+ * @default 500
1405
+ */
1406
+ limit?: number;
1407
+ }
1408
+ type Input = undefined;
1409
+ interface Output {
1410
+ repos: Repo[];
1411
+ cursor?: string;
1412
+ }
1413
+ interface Repo {
1414
+ [Brand.Type]?: 'com.atproto.sync.listRepos#repo';
1415
+ did: At.DID;
1416
+ /** Current repo commit CID */
1417
+ head: At.CID;
1418
+ rev: string;
1419
+ active?: boolean;
1420
+ /** If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. */
1421
+ status?: 'deactivated' | 'suspended' | 'takendown' | (string & {});
1422
+ }
1423
+ }
1424
+
1425
+ /** Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. */
1426
+ export declare namespace ComAtprotoSyncNotifyOfUpdate {
1427
+ interface Params {}
1428
+ interface Input {
1429
+ /** Hostname of the current service (usually a PDS) that is notifying of update. */
1430
+ hostname: string;
1431
+ }
1432
+ type Output = undefined;
1433
+ }
1434
+
1435
+ /** Request a service to persistently crawl hosted repos. Expected use is new PDS instances declaring their existence to Relays. Does not require auth. */
1436
+ export declare namespace ComAtprotoSyncRequestCrawl {
1437
+ interface Params {}
1438
+ interface Input {
1439
+ /** Hostname of the current service (eg, PDS) that is requesting to be crawled. */
1440
+ hostname: string;
1441
+ }
1442
+ type Output = undefined;
1443
+ }
1444
+
1445
+ export declare namespace ComAtprotoSyncSubscribeRepos {
1446
+ /** Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active. */
1447
+ interface Account {
1448
+ [Brand.Type]?: 'com.atproto.sync.subscribeRepos#account';
1449
+ /** Indicates that the account has a repository which can be fetched from the host that emitted this event. */
1450
+ active: boolean;
1451
+ did: At.DID;
1452
+ seq: number;
1453
+ time: string;
1454
+ /** If active=false, this optional field indicates a reason for why the account is not active. */
1455
+ status?: 'deactivated' | 'deleted' | 'suspended' | 'takendown' | (string & {});
1456
+ }
1457
+ /** Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature. */
1458
+ interface Commit {
1459
+ [Brand.Type]?: 'com.atproto.sync.subscribeRepos#commit';
1460
+ /** List of new blobs (by CID) referenced by records in this commit. */
1461
+ blobs: At.CIDLink[];
1462
+ /** CAR file containing relevant blocks, as a diff since the previous repo state. */
1463
+ blocks: At.Bytes;
1464
+ /** Repo commit object CID. */
1465
+ commit: At.CIDLink;
1466
+ /**
1467
+ * Maximum array length: 200 \
1468
+ * List of repo mutation operations in this commit (eg, records created, updated, or deleted).
1469
+ */
1470
+ ops: RepoOp[];
1471
+ /**
1472
+ * DEPRECATED -- unused
1473
+ * @deprecated
1474
+ */
1475
+ rebase: boolean;
1476
+ /** The repo this event comes from. */
1477
+ repo: At.DID;
1478
+ /** The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event. */
1479
+ rev: string;
1480
+ /** The stream sequence number of this message. */
1481
+ seq: number;
1482
+ /** The rev of the last emitted commit from this repo (if any). */
1483
+ since: string | null;
1484
+ /** Timestamp of when this message was originally broadcast. */
1485
+ time: string;
1486
+ /** Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. */
1487
+ tooBig: boolean;
1488
+ /**
1489
+ * DEPRECATED -- unused. WARNING -- nullable and optional; stick with optional to ensure golang interoperability.
1490
+ * @deprecated
1491
+ */
1492
+ prev?: At.CIDLink | null;
1493
+ }
1494
+ /**
1495
+ * DEPRECATED -- Use #identity event instead
1496
+ * @deprecated
1497
+ */
1498
+ interface Handle {
1499
+ [Brand.Type]?: 'com.atproto.sync.subscribeRepos#handle';
1500
+ did: At.DID;
1501
+ handle: At.Handle;
1502
+ seq: number;
1503
+ time: string;
1504
+ }
1505
+ /** Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache. */
1506
+ interface Identity {
1507
+ [Brand.Type]?: 'com.atproto.sync.subscribeRepos#identity';
1508
+ did: At.DID;
1509
+ seq: number;
1510
+ time: string;
1511
+ /** The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details. */
1512
+ handle?: At.Handle;
1513
+ }
1514
+ interface Info {
1515
+ [Brand.Type]?: 'com.atproto.sync.subscribeRepos#info';
1516
+ name: 'OutdatedCursor' | (string & {});
1517
+ message?: string;
1518
+ }
1519
+ /**
1520
+ * DEPRECATED -- Use #account event instead
1521
+ * @deprecated
1522
+ */
1523
+ interface Migrate {
1524
+ [Brand.Type]?: 'com.atproto.sync.subscribeRepos#migrate';
1525
+ did: At.DID;
1526
+ migrateTo: string | null;
1527
+ seq: number;
1528
+ time: string;
1529
+ }
1530
+ /** A repo operation, ie a mutation of a single record. */
1531
+ interface RepoOp {
1532
+ [Brand.Type]?: 'com.atproto.sync.subscribeRepos#repoOp';
1533
+ action: 'create' | 'delete' | 'update' | (string & {});
1534
+ /** For creates and updates, the new record CID. For deletions, null. */
1535
+ cid: At.CIDLink | null;
1536
+ path: string;
1537
+ }
1538
+ /**
1539
+ * DEPRECATED -- Use #account event instead
1540
+ * @deprecated
1541
+ */
1542
+ interface Tombstone {
1543
+ [Brand.Type]?: 'com.atproto.sync.subscribeRepos#tombstone';
1544
+ did: At.DID;
1545
+ seq: number;
1546
+ time: string;
1547
+ }
1548
+ }
1549
+
1550
+ /** Check accounts location in signup queue. */
1551
+ export declare namespace ComAtprotoTempCheckSignupQueue {
1552
+ interface Params {}
1553
+ type Input = undefined;
1554
+ interface Output {
1555
+ activated: boolean;
1556
+ estimatedTimeMs?: number;
1557
+ placeInQueue?: number;
1558
+ }
1559
+ }
1560
+
1561
+ /**
1562
+ * DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.
1563
+ * @deprecated
1564
+ */
1565
+ export declare namespace ComAtprotoTempFetchLabels {
1566
+ interface Params {
1567
+ /**
1568
+ * Minimum: 1 \
1569
+ * Maximum: 250
1570
+ * @default 50
1571
+ */
1572
+ limit?: number;
1573
+ since?: number;
1574
+ }
1575
+ type Input = undefined;
1576
+ interface Output {
1577
+ labels: ComAtprotoLabelDefs.Label[];
1578
+ }
1579
+ }
1580
+
1581
+ /** Request a verification code to be sent to the supplied phone number */
1582
+ export declare namespace ComAtprotoTempRequestPhoneVerification {
1583
+ interface Params {}
1584
+ interface Input {
1585
+ phoneNumber: string;
1586
+ }
1587
+ type Output = undefined;
1588
+ }
1589
+
1590
+ export declare interface Records {}
1591
+
1592
+ export declare interface Queries {
1593
+ 'com.atproto.admin.getAccountInfo': {
1594
+ params: ComAtprotoAdminGetAccountInfo.Params;
1595
+ output: ComAtprotoAdminGetAccountInfo.Output;
1596
+ };
1597
+ 'com.atproto.admin.getAccountInfos': {
1598
+ params: ComAtprotoAdminGetAccountInfos.Params;
1599
+ output: ComAtprotoAdminGetAccountInfos.Output;
1600
+ };
1601
+ 'com.atproto.admin.getInviteCodes': {
1602
+ params: ComAtprotoAdminGetInviteCodes.Params;
1603
+ output: ComAtprotoAdminGetInviteCodes.Output;
1604
+ };
1605
+ 'com.atproto.admin.getSubjectStatus': {
1606
+ params: ComAtprotoAdminGetSubjectStatus.Params;
1607
+ output: ComAtprotoAdminGetSubjectStatus.Output;
1608
+ };
1609
+ 'com.atproto.admin.searchAccounts': {
1610
+ params: ComAtprotoAdminSearchAccounts.Params;
1611
+ output: ComAtprotoAdminSearchAccounts.Output;
1612
+ };
1613
+ 'com.atproto.identity.getRecommendedDidCredentials': {
1614
+ output: ComAtprotoIdentityGetRecommendedDidCredentials.Output;
1615
+ };
1616
+ 'com.atproto.identity.resolveHandle': {
1617
+ params: ComAtprotoIdentityResolveHandle.Params;
1618
+ output: ComAtprotoIdentityResolveHandle.Output;
1619
+ };
1620
+ 'com.atproto.label.queryLabels': {
1621
+ params: ComAtprotoLabelQueryLabels.Params;
1622
+ output: ComAtprotoLabelQueryLabels.Output;
1623
+ };
1624
+ 'com.atproto.repo.describeRepo': {
1625
+ params: ComAtprotoRepoDescribeRepo.Params;
1626
+ output: ComAtprotoRepoDescribeRepo.Output;
1627
+ };
1628
+ 'com.atproto.repo.getRecord': {
1629
+ params: ComAtprotoRepoGetRecord.Params;
1630
+ output: ComAtprotoRepoGetRecord.Output;
1631
+ };
1632
+ 'com.atproto.repo.listMissingBlobs': {
1633
+ params: ComAtprotoRepoListMissingBlobs.Params;
1634
+ output: ComAtprotoRepoListMissingBlobs.Output;
1635
+ };
1636
+ 'com.atproto.repo.listRecords': {
1637
+ params: ComAtprotoRepoListRecords.Params;
1638
+ output: ComAtprotoRepoListRecords.Output;
1639
+ };
1640
+ 'com.atproto.server.checkAccountStatus': {
1641
+ output: ComAtprotoServerCheckAccountStatus.Output;
1642
+ };
1643
+ 'com.atproto.server.describeServer': {
1644
+ output: ComAtprotoServerDescribeServer.Output;
1645
+ };
1646
+ 'com.atproto.server.getAccountInviteCodes': {
1647
+ params: ComAtprotoServerGetAccountInviteCodes.Params;
1648
+ output: ComAtprotoServerGetAccountInviteCodes.Output;
1649
+ };
1650
+ 'com.atproto.server.getServiceAuth': {
1651
+ params: ComAtprotoServerGetServiceAuth.Params;
1652
+ output: ComAtprotoServerGetServiceAuth.Output;
1653
+ };
1654
+ 'com.atproto.server.getSession': {
1655
+ output: ComAtprotoServerGetSession.Output;
1656
+ };
1657
+ 'com.atproto.server.listAppPasswords': {
1658
+ output: ComAtprotoServerListAppPasswords.Output;
1659
+ };
1660
+ 'com.atproto.sync.getBlob': {
1661
+ params: ComAtprotoSyncGetBlob.Params;
1662
+ output: ComAtprotoSyncGetBlob.Output;
1663
+ };
1664
+ 'com.atproto.sync.getBlocks': {
1665
+ params: ComAtprotoSyncGetBlocks.Params;
1666
+ output: ComAtprotoSyncGetBlocks.Output;
1667
+ };
1668
+ 'com.atproto.sync.getCheckout': {
1669
+ params: ComAtprotoSyncGetCheckout.Params;
1670
+ output: ComAtprotoSyncGetCheckout.Output;
1671
+ };
1672
+ 'com.atproto.sync.getHead': {
1673
+ params: ComAtprotoSyncGetHead.Params;
1674
+ output: ComAtprotoSyncGetHead.Output;
1675
+ };
1676
+ 'com.atproto.sync.getLatestCommit': {
1677
+ params: ComAtprotoSyncGetLatestCommit.Params;
1678
+ output: ComAtprotoSyncGetLatestCommit.Output;
1679
+ };
1680
+ 'com.atproto.sync.getRecord': {
1681
+ params: ComAtprotoSyncGetRecord.Params;
1682
+ output: ComAtprotoSyncGetRecord.Output;
1683
+ };
1684
+ 'com.atproto.sync.getRepo': {
1685
+ params: ComAtprotoSyncGetRepo.Params;
1686
+ output: ComAtprotoSyncGetRepo.Output;
1687
+ };
1688
+ 'com.atproto.sync.getRepoStatus': {
1689
+ params: ComAtprotoSyncGetRepoStatus.Params;
1690
+ output: ComAtprotoSyncGetRepoStatus.Output;
1691
+ };
1692
+ 'com.atproto.sync.listBlobs': {
1693
+ params: ComAtprotoSyncListBlobs.Params;
1694
+ output: ComAtprotoSyncListBlobs.Output;
1695
+ };
1696
+ 'com.atproto.sync.listRepos': {
1697
+ params: ComAtprotoSyncListRepos.Params;
1698
+ output: ComAtprotoSyncListRepos.Output;
1699
+ };
1700
+ 'com.atproto.temp.checkSignupQueue': {
1701
+ output: ComAtprotoTempCheckSignupQueue.Output;
1702
+ };
1703
+ 'com.atproto.temp.fetchLabels': {
1704
+ params: ComAtprotoTempFetchLabels.Params;
1705
+ output: ComAtprotoTempFetchLabels.Output;
1706
+ };
1707
+ }
1708
+
1709
+ export declare interface Procedures {
1710
+ 'com.atproto.admin.deleteAccount': {
1711
+ input: ComAtprotoAdminDeleteAccount.Input;
1712
+ };
1713
+ 'com.atproto.admin.disableAccountInvites': {
1714
+ input: ComAtprotoAdminDisableAccountInvites.Input;
1715
+ };
1716
+ 'com.atproto.admin.disableInviteCodes': {
1717
+ input: ComAtprotoAdminDisableInviteCodes.Input;
1718
+ };
1719
+ 'com.atproto.admin.enableAccountInvites': {
1720
+ input: ComAtprotoAdminEnableAccountInvites.Input;
1721
+ };
1722
+ 'com.atproto.admin.sendEmail': {
1723
+ input: ComAtprotoAdminSendEmail.Input;
1724
+ output: ComAtprotoAdminSendEmail.Output;
1725
+ };
1726
+ 'com.atproto.admin.updateAccountEmail': {
1727
+ input: ComAtprotoAdminUpdateAccountEmail.Input;
1728
+ };
1729
+ 'com.atproto.admin.updateAccountHandle': {
1730
+ input: ComAtprotoAdminUpdateAccountHandle.Input;
1731
+ };
1732
+ 'com.atproto.admin.updateAccountPassword': {
1733
+ input: ComAtprotoAdminUpdateAccountPassword.Input;
1734
+ };
1735
+ 'com.atproto.admin.updateSubjectStatus': {
1736
+ input: ComAtprotoAdminUpdateSubjectStatus.Input;
1737
+ output: ComAtprotoAdminUpdateSubjectStatus.Output;
1738
+ };
1739
+ 'com.atproto.identity.requestPlcOperationSignature': {};
1740
+ 'com.atproto.identity.signPlcOperation': {
1741
+ input: ComAtprotoIdentitySignPlcOperation.Input;
1742
+ output: ComAtprotoIdentitySignPlcOperation.Output;
1743
+ };
1744
+ 'com.atproto.identity.submitPlcOperation': {
1745
+ input: ComAtprotoIdentitySubmitPlcOperation.Input;
1746
+ };
1747
+ 'com.atproto.identity.updateHandle': {
1748
+ input: ComAtprotoIdentityUpdateHandle.Input;
1749
+ };
1750
+ 'com.atproto.moderation.createReport': {
1751
+ input: ComAtprotoModerationCreateReport.Input;
1752
+ output: ComAtprotoModerationCreateReport.Output;
1753
+ };
1754
+ 'com.atproto.repo.applyWrites': {
1755
+ input: ComAtprotoRepoApplyWrites.Input;
1756
+ output: ComAtprotoRepoApplyWrites.Output;
1757
+ };
1758
+ 'com.atproto.repo.createRecord': {
1759
+ input: ComAtprotoRepoCreateRecord.Input;
1760
+ output: ComAtprotoRepoCreateRecord.Output;
1761
+ };
1762
+ 'com.atproto.repo.deleteRecord': {
1763
+ input: ComAtprotoRepoDeleteRecord.Input;
1764
+ output: ComAtprotoRepoDeleteRecord.Output;
1765
+ };
1766
+ 'com.atproto.repo.importRepo': {
1767
+ input: ComAtprotoRepoImportRepo.Input;
1768
+ };
1769
+ 'com.atproto.repo.putRecord': {
1770
+ input: ComAtprotoRepoPutRecord.Input;
1771
+ output: ComAtprotoRepoPutRecord.Output;
1772
+ };
1773
+ 'com.atproto.repo.uploadBlob': {
1774
+ input: ComAtprotoRepoUploadBlob.Input;
1775
+ output: ComAtprotoRepoUploadBlob.Output;
1776
+ };
1777
+ 'com.atproto.server.activateAccount': {};
1778
+ 'com.atproto.server.confirmEmail': {
1779
+ input: ComAtprotoServerConfirmEmail.Input;
1780
+ };
1781
+ 'com.atproto.server.createAccount': {
1782
+ input: ComAtprotoServerCreateAccount.Input;
1783
+ output: ComAtprotoServerCreateAccount.Output;
1784
+ };
1785
+ 'com.atproto.server.createAppPassword': {
1786
+ input: ComAtprotoServerCreateAppPassword.Input;
1787
+ output: ComAtprotoServerCreateAppPassword.Output;
1788
+ };
1789
+ 'com.atproto.server.createInviteCode': {
1790
+ input: ComAtprotoServerCreateInviteCode.Input;
1791
+ output: ComAtprotoServerCreateInviteCode.Output;
1792
+ };
1793
+ 'com.atproto.server.createInviteCodes': {
1794
+ input: ComAtprotoServerCreateInviteCodes.Input;
1795
+ output: ComAtprotoServerCreateInviteCodes.Output;
1796
+ };
1797
+ 'com.atproto.server.createSession': {
1798
+ input: ComAtprotoServerCreateSession.Input;
1799
+ output: ComAtprotoServerCreateSession.Output;
1800
+ };
1801
+ 'com.atproto.server.deactivateAccount': {
1802
+ input: ComAtprotoServerDeactivateAccount.Input;
1803
+ };
1804
+ 'com.atproto.server.deleteAccount': {
1805
+ input: ComAtprotoServerDeleteAccount.Input;
1806
+ };
1807
+ 'com.atproto.server.deleteSession': {};
1808
+ 'com.atproto.server.refreshSession': {
1809
+ output: ComAtprotoServerRefreshSession.Output;
1810
+ };
1811
+ 'com.atproto.server.requestAccountDelete': {};
1812
+ 'com.atproto.server.requestEmailConfirmation': {};
1813
+ 'com.atproto.server.requestEmailUpdate': {
1814
+ output: ComAtprotoServerRequestEmailUpdate.Output;
1815
+ };
1816
+ 'com.atproto.server.requestPasswordReset': {
1817
+ input: ComAtprotoServerRequestPasswordReset.Input;
1818
+ };
1819
+ 'com.atproto.server.reserveSigningKey': {
1820
+ input: ComAtprotoServerReserveSigningKey.Input;
1821
+ output: ComAtprotoServerReserveSigningKey.Output;
1822
+ };
1823
+ 'com.atproto.server.resetPassword': {
1824
+ input: ComAtprotoServerResetPassword.Input;
1825
+ };
1826
+ 'com.atproto.server.revokeAppPassword': {
1827
+ input: ComAtprotoServerRevokeAppPassword.Input;
1828
+ };
1829
+ 'com.atproto.server.updateEmail': {
1830
+ input: ComAtprotoServerUpdateEmail.Input;
1831
+ };
1832
+ 'com.atproto.sync.notifyOfUpdate': {
1833
+ input: ComAtprotoSyncNotifyOfUpdate.Input;
1834
+ };
1835
+ 'com.atproto.sync.requestCrawl': {
1836
+ input: ComAtprotoSyncRequestCrawl.Input;
1837
+ };
1838
+ 'com.atproto.temp.requestPhoneVerification': {
1839
+ input: ComAtprotoTempRequestPhoneVerification.Input;
1840
+ };
1841
+ }