@atcute/client 2.0.9 → 3.0.1
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/dist/credential-manager.d.ts +4 -4
- package/dist/lexicons.d.ts +476 -148
- package/dist/rpc.d.ts +1 -1
- package/lib/credential-manager.ts +4 -4
- package/lib/lexicons.ts +395 -153
- package/lib/rpc.ts +1 -1
- package/package.json +3 -3
package/lib/lexicons.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
type ObjectOmit<T, K extends keyof any> = Omit<T, K>;
|
|
10
10
|
|
|
11
|
-
/**
|
|
11
|
+
/** handles type branding in objects */
|
|
12
12
|
export declare namespace Brand {
|
|
13
13
|
/** Symbol used to brand objects, this does not actually exist in runtime */
|
|
14
14
|
const Type: unique symbol;
|
|
@@ -23,31 +23,88 @@ export declare namespace Brand {
|
|
|
23
23
|
type Omit<T extends { [Type]?: string }> = ObjectOmit<T, typeof Type>;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/**
|
|
26
|
+
/** base AT Protocol schema types */
|
|
27
27
|
export declare namespace At {
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
/**
|
|
29
|
+
* represents a Content Identifier (CID) string
|
|
30
|
+
*/
|
|
31
|
+
type Cid = string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* represents a Decentralized Identifier (DID).
|
|
35
|
+
*/
|
|
36
|
+
type Did<Method extends string = string> = `did:${Method}:${string}`;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* represents an account's handle, using domains as a human-friendly
|
|
40
|
+
* identifier.
|
|
41
|
+
*/
|
|
42
|
+
type Handle = `${string}.${string}`;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* represents an account's identifier, either a {@link Did} or a
|
|
46
|
+
* {@link Handle}
|
|
47
|
+
*/
|
|
48
|
+
type Identifier = Did | Handle;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* represents a Namespace Identifier (NSID)
|
|
52
|
+
*/
|
|
53
|
+
type Nsid = `${string}.${string}.${string}`;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* represents the unique key identifying a specific record within a
|
|
57
|
+
* repository's collection. this is usually a {@link Tid}.
|
|
58
|
+
*/
|
|
59
|
+
type RecordKey = string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* represents a Timestamp Identifier (TID)
|
|
63
|
+
*/
|
|
64
|
+
type Tid = string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* represents a general AT Protocol URI, representing either an entire
|
|
68
|
+
* repository, a specific collection within a repository, or a record.
|
|
69
|
+
*
|
|
70
|
+
* it allows using handles over DIDs, but this means that it won't be stable.
|
|
71
|
+
*/
|
|
72
|
+
type ResourceUri =
|
|
73
|
+
| `at://${Identifier}`
|
|
74
|
+
| `at://${Identifier}/${Nsid}`
|
|
75
|
+
| `at://${Identifier}/${Nsid}/${RecordKey}`;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* represents a canonical AT Protocol URI for a specific record.
|
|
79
|
+
*
|
|
80
|
+
* this URI format uses the account's DID as the authority, ensuring that
|
|
81
|
+
* the URI remains valid even as the account changes handles, uniquely
|
|
82
|
+
* identifying a specific piece of record within AT Protocol.
|
|
83
|
+
*/
|
|
84
|
+
type CanonicalResourceUri = `at://${Did}/${Nsid}/${RecordKey}`;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* represents a generic URI
|
|
88
|
+
*/
|
|
89
|
+
type GenericUri = `${string}:${string}`;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* represents a Content Identifier (CID) reference
|
|
93
|
+
*/
|
|
94
|
+
interface CidLink {
|
|
95
|
+
$link: Cid;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* represents an object containing raw binary data encoded as a base64 string
|
|
100
|
+
*/
|
|
46
101
|
interface Bytes {
|
|
47
102
|
$bytes: string;
|
|
48
103
|
}
|
|
49
104
|
|
|
50
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* represents a reference to a data blob
|
|
107
|
+
*/
|
|
51
108
|
interface Blob<T extends string = string> {
|
|
52
109
|
$type: 'blob';
|
|
53
110
|
mimeType: T;
|
|
@@ -60,7 +117,7 @@ export declare namespace At {
|
|
|
60
117
|
export declare namespace ComAtprotoAdminDefs {
|
|
61
118
|
interface AccountView {
|
|
62
119
|
[Brand.Type]?: 'com.atproto.admin.defs#accountView';
|
|
63
|
-
did: At.
|
|
120
|
+
did: At.Did;
|
|
64
121
|
handle: At.Handle;
|
|
65
122
|
indexedAt: string;
|
|
66
123
|
deactivatedAt?: string;
|
|
@@ -75,13 +132,13 @@ export declare namespace ComAtprotoAdminDefs {
|
|
|
75
132
|
}
|
|
76
133
|
interface RepoBlobRef {
|
|
77
134
|
[Brand.Type]?: 'com.atproto.admin.defs#repoBlobRef';
|
|
78
|
-
cid: At.
|
|
79
|
-
did: At.
|
|
80
|
-
recordUri?: At.
|
|
135
|
+
cid: At.Cid;
|
|
136
|
+
did: At.Did;
|
|
137
|
+
recordUri?: At.ResourceUri;
|
|
81
138
|
}
|
|
82
139
|
interface RepoRef {
|
|
83
140
|
[Brand.Type]?: 'com.atproto.admin.defs#repoRef';
|
|
84
|
-
did: At.
|
|
141
|
+
did: At.Did;
|
|
85
142
|
}
|
|
86
143
|
interface StatusAttr {
|
|
87
144
|
[Brand.Type]?: 'com.atproto.admin.defs#statusAttr';
|
|
@@ -99,7 +156,7 @@ export declare namespace ComAtprotoAdminDefs {
|
|
|
99
156
|
export declare namespace ComAtprotoAdminDeleteAccount {
|
|
100
157
|
interface Params {}
|
|
101
158
|
interface Input {
|
|
102
|
-
did: At.
|
|
159
|
+
did: At.Did;
|
|
103
160
|
}
|
|
104
161
|
type Output = undefined;
|
|
105
162
|
}
|
|
@@ -108,7 +165,7 @@ export declare namespace ComAtprotoAdminDeleteAccount {
|
|
|
108
165
|
export declare namespace ComAtprotoAdminDisableAccountInvites {
|
|
109
166
|
interface Params {}
|
|
110
167
|
interface Input {
|
|
111
|
-
account: At.
|
|
168
|
+
account: At.Did;
|
|
112
169
|
/** Optional reason for disabled invites. */
|
|
113
170
|
note?: string;
|
|
114
171
|
}
|
|
@@ -129,7 +186,7 @@ export declare namespace ComAtprotoAdminDisableInviteCodes {
|
|
|
129
186
|
export declare namespace ComAtprotoAdminEnableAccountInvites {
|
|
130
187
|
interface Params {}
|
|
131
188
|
interface Input {
|
|
132
|
-
account: At.
|
|
189
|
+
account: At.Did;
|
|
133
190
|
/** Optional reason for enabled invites. */
|
|
134
191
|
note?: string;
|
|
135
192
|
}
|
|
@@ -139,7 +196,7 @@ export declare namespace ComAtprotoAdminEnableAccountInvites {
|
|
|
139
196
|
/** Get details about an account. */
|
|
140
197
|
export declare namespace ComAtprotoAdminGetAccountInfo {
|
|
141
198
|
interface Params {
|
|
142
|
-
did: At.
|
|
199
|
+
did: At.Did;
|
|
143
200
|
}
|
|
144
201
|
type Input = undefined;
|
|
145
202
|
type Output = ComAtprotoAdminDefs.AccountView;
|
|
@@ -148,7 +205,7 @@ export declare namespace ComAtprotoAdminGetAccountInfo {
|
|
|
148
205
|
/** Get details about some accounts. */
|
|
149
206
|
export declare namespace ComAtprotoAdminGetAccountInfos {
|
|
150
207
|
interface Params {
|
|
151
|
-
dids: At.
|
|
208
|
+
dids: At.Did[];
|
|
152
209
|
}
|
|
153
210
|
type Input = undefined;
|
|
154
211
|
interface Output {
|
|
@@ -179,9 +236,9 @@ export declare namespace ComAtprotoAdminGetInviteCodes {
|
|
|
179
236
|
/** Get the service-specific admin status of a subject (account, record, or blob). */
|
|
180
237
|
export declare namespace ComAtprotoAdminGetSubjectStatus {
|
|
181
238
|
interface Params {
|
|
182
|
-
blob?: At.
|
|
183
|
-
did?: At.
|
|
184
|
-
uri?: At.
|
|
239
|
+
blob?: At.Cid;
|
|
240
|
+
did?: At.Did;
|
|
241
|
+
uri?: At.ResourceUri;
|
|
185
242
|
}
|
|
186
243
|
type Input = undefined;
|
|
187
244
|
interface Output {
|
|
@@ -217,8 +274,8 @@ export declare namespace ComAtprotoAdminSendEmail {
|
|
|
217
274
|
interface Params {}
|
|
218
275
|
interface Input {
|
|
219
276
|
content: string;
|
|
220
|
-
recipientDid: At.
|
|
221
|
-
senderDid: At.
|
|
277
|
+
recipientDid: At.Did;
|
|
278
|
+
senderDid: At.Did;
|
|
222
279
|
/** Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers */
|
|
223
280
|
comment?: string;
|
|
224
281
|
subject?: string;
|
|
@@ -233,7 +290,7 @@ export declare namespace ComAtprotoAdminUpdateAccountEmail {
|
|
|
233
290
|
interface Params {}
|
|
234
291
|
interface Input {
|
|
235
292
|
/** The handle or DID of the repo. */
|
|
236
|
-
account:
|
|
293
|
+
account: At.Identifier;
|
|
237
294
|
email: string;
|
|
238
295
|
}
|
|
239
296
|
type Output = undefined;
|
|
@@ -243,7 +300,7 @@ export declare namespace ComAtprotoAdminUpdateAccountEmail {
|
|
|
243
300
|
export declare namespace ComAtprotoAdminUpdateAccountHandle {
|
|
244
301
|
interface Params {}
|
|
245
302
|
interface Input {
|
|
246
|
-
did: At.
|
|
303
|
+
did: At.Did;
|
|
247
304
|
handle: At.Handle;
|
|
248
305
|
}
|
|
249
306
|
type Output = undefined;
|
|
@@ -253,12 +310,23 @@ export declare namespace ComAtprotoAdminUpdateAccountHandle {
|
|
|
253
310
|
export declare namespace ComAtprotoAdminUpdateAccountPassword {
|
|
254
311
|
interface Params {}
|
|
255
312
|
interface Input {
|
|
256
|
-
did: At.
|
|
313
|
+
did: At.Did;
|
|
257
314
|
password: string;
|
|
258
315
|
}
|
|
259
316
|
type Output = undefined;
|
|
260
317
|
}
|
|
261
318
|
|
|
319
|
+
/** Administrative action to update an account's signing key in their Did document. */
|
|
320
|
+
export declare namespace ComAtprotoAdminUpdateAccountSigningKey {
|
|
321
|
+
interface Params {}
|
|
322
|
+
interface Input {
|
|
323
|
+
did: At.Did;
|
|
324
|
+
/** Did-key formatted public key */
|
|
325
|
+
signingKey: At.Did;
|
|
326
|
+
}
|
|
327
|
+
type Output = undefined;
|
|
328
|
+
}
|
|
329
|
+
|
|
262
330
|
/** Update the service-specific admin status of a subject (account, record, or blob). */
|
|
263
331
|
export declare namespace ComAtprotoAdminUpdateSubjectStatus {
|
|
264
332
|
interface Params {}
|
|
@@ -280,7 +348,7 @@ export declare namespace ComAtprotoAdminUpdateSubjectStatus {
|
|
|
280
348
|
export declare namespace ComAtprotoIdentityDefs {
|
|
281
349
|
interface IdentityInfo {
|
|
282
350
|
[Brand.Type]?: 'com.atproto.identity.defs#identityInfo';
|
|
283
|
-
did: At.
|
|
351
|
+
did: At.Did;
|
|
284
352
|
/** The complete DID document for the identity. */
|
|
285
353
|
didDoc: unknown;
|
|
286
354
|
/** The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. */
|
|
@@ -305,7 +373,7 @@ export declare namespace ComAtprotoIdentityGetRecommendedDidCredentials {
|
|
|
305
373
|
export declare namespace ComAtprotoIdentityRefreshIdentity {
|
|
306
374
|
interface Params {}
|
|
307
375
|
interface Input {
|
|
308
|
-
identifier:
|
|
376
|
+
identifier: At.Identifier;
|
|
309
377
|
}
|
|
310
378
|
type Output = ComAtprotoIdentityDefs.IdentityInfo;
|
|
311
379
|
interface Errors {
|
|
@@ -326,7 +394,7 @@ export declare namespace ComAtprotoIdentityRequestPlcOperationSignature {
|
|
|
326
394
|
export declare namespace ComAtprotoIdentityResolveDid {
|
|
327
395
|
interface Params {
|
|
328
396
|
/** DID to resolve. */
|
|
329
|
-
did: At.
|
|
397
|
+
did: At.Did;
|
|
330
398
|
}
|
|
331
399
|
type Input = undefined;
|
|
332
400
|
interface Output {
|
|
@@ -347,7 +415,7 @@ export declare namespace ComAtprotoIdentityResolveHandle {
|
|
|
347
415
|
}
|
|
348
416
|
type Input = undefined;
|
|
349
417
|
interface Output {
|
|
350
|
-
did: At.
|
|
418
|
+
did: At.Did;
|
|
351
419
|
}
|
|
352
420
|
interface Errors {
|
|
353
421
|
HandleNotFound: {};
|
|
@@ -358,7 +426,7 @@ export declare namespace ComAtprotoIdentityResolveHandle {
|
|
|
358
426
|
export declare namespace ComAtprotoIdentityResolveIdentity {
|
|
359
427
|
interface Params {
|
|
360
428
|
/** Handle or DID to resolve. */
|
|
361
|
-
identifier:
|
|
429
|
+
identifier: At.Identifier;
|
|
362
430
|
}
|
|
363
431
|
type Input = undefined;
|
|
364
432
|
type Output = ComAtprotoIdentityDefs.IdentityInfo;
|
|
@@ -412,16 +480,16 @@ export declare namespace ComAtprotoLabelDefs {
|
|
|
412
480
|
/** Timestamp when this label was created. */
|
|
413
481
|
cts: string;
|
|
414
482
|
/** DID of the actor who created this label. */
|
|
415
|
-
src: At.
|
|
483
|
+
src: At.Did;
|
|
416
484
|
/** AT URI of the record, repository (account), or other resource that this label applies to. */
|
|
417
|
-
uri:
|
|
485
|
+
uri: At.GenericUri;
|
|
418
486
|
/**
|
|
419
487
|
* The short string name of the value or type of this label. \
|
|
420
488
|
* Maximum string length: 128
|
|
421
489
|
*/
|
|
422
490
|
val: string;
|
|
423
491
|
/** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */
|
|
424
|
-
cid?: At.
|
|
492
|
+
cid?: At.Cid;
|
|
425
493
|
/** Timestamp at which this label expires (no longer applies). */
|
|
426
494
|
exp?: string;
|
|
427
495
|
/** If true, this is a negation label, overwriting a previous label. */
|
|
@@ -514,7 +582,7 @@ export declare namespace ComAtprotoLabelQueryLabels {
|
|
|
514
582
|
*/
|
|
515
583
|
limit?: number;
|
|
516
584
|
/** Optional list of label sources (DIDs) to filter on. */
|
|
517
|
-
sources?: At.
|
|
585
|
+
sources?: At.Did[];
|
|
518
586
|
}
|
|
519
587
|
type Input = undefined;
|
|
520
588
|
interface Output {
|
|
@@ -563,7 +631,7 @@ export declare namespace ComAtprotoModerationCreateReport {
|
|
|
563
631
|
createdAt: string;
|
|
564
632
|
id: number;
|
|
565
633
|
reasonType: ComAtprotoModerationDefs.ReasonType;
|
|
566
|
-
reportedBy: At.
|
|
634
|
+
reportedBy: At.Did;
|
|
567
635
|
subject: Brand.Union<ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main>;
|
|
568
636
|
/**
|
|
569
637
|
* Maximum string length: 20000 \
|
|
@@ -599,10 +667,10 @@ export declare namespace ComAtprotoRepoApplyWrites {
|
|
|
599
667
|
interface Params {}
|
|
600
668
|
interface Input {
|
|
601
669
|
/** The handle or DID of the repo (aka, current account). */
|
|
602
|
-
repo:
|
|
670
|
+
repo: At.Identifier;
|
|
603
671
|
writes: Brand.Union<Create | Delete | Update>[];
|
|
604
672
|
/** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
|
|
605
|
-
swapCommit?: At.
|
|
673
|
+
swapCommit?: At.Cid;
|
|
606
674
|
/** 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. */
|
|
607
675
|
validate?: boolean;
|
|
608
676
|
}
|
|
@@ -616,22 +684,22 @@ export declare namespace ComAtprotoRepoApplyWrites {
|
|
|
616
684
|
/** Operation which creates a new record. */
|
|
617
685
|
interface Create {
|
|
618
686
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#create';
|
|
619
|
-
collection:
|
|
687
|
+
collection: At.Nsid;
|
|
620
688
|
value: unknown;
|
|
621
689
|
/** NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. */
|
|
622
|
-
rkey?:
|
|
690
|
+
rkey?: At.RecordKey;
|
|
623
691
|
}
|
|
624
692
|
interface CreateResult {
|
|
625
693
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#createResult';
|
|
626
|
-
cid: At.
|
|
627
|
-
uri: At.
|
|
694
|
+
cid: At.Cid;
|
|
695
|
+
uri: At.ResourceUri;
|
|
628
696
|
validationStatus?: 'unknown' | 'valid' | (string & {});
|
|
629
697
|
}
|
|
630
698
|
/** Operation which deletes an existing record. */
|
|
631
699
|
interface Delete {
|
|
632
700
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#delete';
|
|
633
|
-
collection:
|
|
634
|
-
rkey:
|
|
701
|
+
collection: At.Nsid;
|
|
702
|
+
rkey: At.RecordKey;
|
|
635
703
|
}
|
|
636
704
|
interface DeleteResult {
|
|
637
705
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#deleteResult';
|
|
@@ -639,14 +707,14 @@ export declare namespace ComAtprotoRepoApplyWrites {
|
|
|
639
707
|
/** Operation which updates an existing record. */
|
|
640
708
|
interface Update {
|
|
641
709
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#update';
|
|
642
|
-
collection:
|
|
643
|
-
rkey:
|
|
710
|
+
collection: At.Nsid;
|
|
711
|
+
rkey: At.RecordKey;
|
|
644
712
|
value: unknown;
|
|
645
713
|
}
|
|
646
714
|
interface UpdateResult {
|
|
647
715
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#updateResult';
|
|
648
|
-
cid: At.
|
|
649
|
-
uri: At.
|
|
716
|
+
cid: At.Cid;
|
|
717
|
+
uri: At.ResourceUri;
|
|
650
718
|
validationStatus?: 'unknown' | 'valid' | (string & {});
|
|
651
719
|
}
|
|
652
720
|
}
|
|
@@ -656,21 +724,21 @@ export declare namespace ComAtprotoRepoCreateRecord {
|
|
|
656
724
|
interface Params {}
|
|
657
725
|
interface Input {
|
|
658
726
|
/** The NSID of the record collection. */
|
|
659
|
-
collection:
|
|
727
|
+
collection: At.Nsid;
|
|
660
728
|
/** The record itself. Must contain a $type field. */
|
|
661
729
|
record: unknown;
|
|
662
730
|
/** The handle or DID of the repo (aka, current account). */
|
|
663
|
-
repo:
|
|
731
|
+
repo: At.Identifier;
|
|
664
732
|
/** The Record Key. */
|
|
665
|
-
rkey?:
|
|
733
|
+
rkey?: At.RecordKey;
|
|
666
734
|
/** Compare and swap with the previous commit by CID. */
|
|
667
|
-
swapCommit?: At.
|
|
735
|
+
swapCommit?: At.Cid;
|
|
668
736
|
/** 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. */
|
|
669
737
|
validate?: boolean;
|
|
670
738
|
}
|
|
671
739
|
interface Output {
|
|
672
|
-
cid: At.
|
|
673
|
-
uri: At.
|
|
740
|
+
cid: At.Cid;
|
|
741
|
+
uri: At.ResourceUri;
|
|
674
742
|
commit?: ComAtprotoRepoDefs.CommitMeta;
|
|
675
743
|
validationStatus?: 'unknown' | 'valid' | (string & {});
|
|
676
744
|
}
|
|
@@ -682,8 +750,8 @@ export declare namespace ComAtprotoRepoCreateRecord {
|
|
|
682
750
|
export declare namespace ComAtprotoRepoDefs {
|
|
683
751
|
interface CommitMeta {
|
|
684
752
|
[Brand.Type]?: 'com.atproto.repo.defs#commitMeta';
|
|
685
|
-
cid: At.
|
|
686
|
-
rev:
|
|
753
|
+
cid: At.Cid;
|
|
754
|
+
rev: At.Tid;
|
|
687
755
|
}
|
|
688
756
|
}
|
|
689
757
|
|
|
@@ -692,15 +760,15 @@ export declare namespace ComAtprotoRepoDeleteRecord {
|
|
|
692
760
|
interface Params {}
|
|
693
761
|
interface Input {
|
|
694
762
|
/** The NSID of the record collection. */
|
|
695
|
-
collection:
|
|
763
|
+
collection: At.Nsid;
|
|
696
764
|
/** The handle or DID of the repo (aka, current account). */
|
|
697
|
-
repo:
|
|
765
|
+
repo: At.Identifier;
|
|
698
766
|
/** The Record Key. */
|
|
699
|
-
rkey:
|
|
767
|
+
rkey: At.RecordKey;
|
|
700
768
|
/** Compare and swap with the previous commit by CID. */
|
|
701
|
-
swapCommit?: At.
|
|
769
|
+
swapCommit?: At.Cid;
|
|
702
770
|
/** Compare and swap with the previous record by CID. */
|
|
703
|
-
swapRecord?: At.
|
|
771
|
+
swapRecord?: At.Cid;
|
|
704
772
|
}
|
|
705
773
|
interface Output {
|
|
706
774
|
commit?: ComAtprotoRepoDefs.CommitMeta;
|
|
@@ -714,13 +782,13 @@ export declare namespace ComAtprotoRepoDeleteRecord {
|
|
|
714
782
|
export declare namespace ComAtprotoRepoDescribeRepo {
|
|
715
783
|
interface Params {
|
|
716
784
|
/** The handle or DID of the repo. */
|
|
717
|
-
repo:
|
|
785
|
+
repo: At.Identifier;
|
|
718
786
|
}
|
|
719
787
|
type Input = undefined;
|
|
720
788
|
interface Output {
|
|
721
789
|
/** List of all the collections (NSIDs) for which this repo contains at least one record. */
|
|
722
|
-
collections:
|
|
723
|
-
did: At.
|
|
790
|
+
collections: At.Nsid[];
|
|
791
|
+
did: At.Did;
|
|
724
792
|
/** The complete DID document for this account. */
|
|
725
793
|
didDoc: unknown;
|
|
726
794
|
handle: At.Handle;
|
|
@@ -733,19 +801,19 @@ export declare namespace ComAtprotoRepoDescribeRepo {
|
|
|
733
801
|
export declare namespace ComAtprotoRepoGetRecord {
|
|
734
802
|
interface Params {
|
|
735
803
|
/** The NSID of the record collection. */
|
|
736
|
-
collection:
|
|
804
|
+
collection: At.Nsid;
|
|
737
805
|
/** The handle or DID of the repo. */
|
|
738
|
-
repo:
|
|
806
|
+
repo: At.Identifier;
|
|
739
807
|
/** The Record Key. */
|
|
740
|
-
rkey:
|
|
808
|
+
rkey: At.RecordKey;
|
|
741
809
|
/** The CID of the version of the record. If not specified, then return the most recent version. */
|
|
742
|
-
cid?: At.
|
|
810
|
+
cid?: At.Cid;
|
|
743
811
|
}
|
|
744
812
|
type Input = undefined;
|
|
745
813
|
interface Output {
|
|
746
|
-
uri: At.
|
|
814
|
+
uri: At.ResourceUri;
|
|
747
815
|
value: unknown;
|
|
748
|
-
cid?: At.
|
|
816
|
+
cid?: At.Cid;
|
|
749
817
|
}
|
|
750
818
|
interface Errors {
|
|
751
819
|
RecordNotFound: {};
|
|
@@ -755,7 +823,7 @@ export declare namespace ComAtprotoRepoGetRecord {
|
|
|
755
823
|
/** Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set. */
|
|
756
824
|
export declare namespace ComAtprotoRepoImportRepo {
|
|
757
825
|
interface Params {}
|
|
758
|
-
type Input = Blob |
|
|
826
|
+
type Input = Blob | BufferSource | ReadableStream;
|
|
759
827
|
type Output = undefined;
|
|
760
828
|
}
|
|
761
829
|
|
|
@@ -777,8 +845,8 @@ export declare namespace ComAtprotoRepoListMissingBlobs {
|
|
|
777
845
|
}
|
|
778
846
|
interface RecordBlob {
|
|
779
847
|
[Brand.Type]?: 'com.atproto.repo.listMissingBlobs#recordBlob';
|
|
780
|
-
cid: At.
|
|
781
|
-
recordUri: At.
|
|
848
|
+
cid: At.Cid;
|
|
849
|
+
recordUri: At.ResourceUri;
|
|
782
850
|
}
|
|
783
851
|
}
|
|
784
852
|
|
|
@@ -786,9 +854,9 @@ export declare namespace ComAtprotoRepoListMissingBlobs {
|
|
|
786
854
|
export declare namespace ComAtprotoRepoListRecords {
|
|
787
855
|
interface Params {
|
|
788
856
|
/** The NSID of the record type. */
|
|
789
|
-
collection:
|
|
857
|
+
collection: At.Nsid;
|
|
790
858
|
/** The handle or DID of the repo. */
|
|
791
|
-
repo:
|
|
859
|
+
repo: At.Identifier;
|
|
792
860
|
cursor?: string;
|
|
793
861
|
/**
|
|
794
862
|
* The number of records to return. \
|
|
@@ -807,8 +875,8 @@ export declare namespace ComAtprotoRepoListRecords {
|
|
|
807
875
|
}
|
|
808
876
|
interface Record {
|
|
809
877
|
[Brand.Type]?: 'com.atproto.repo.listRecords#record';
|
|
810
|
-
cid: At.
|
|
811
|
-
uri: At.
|
|
878
|
+
cid: At.Cid;
|
|
879
|
+
uri: At.ResourceUri;
|
|
812
880
|
value: unknown;
|
|
813
881
|
}
|
|
814
882
|
}
|
|
@@ -818,23 +886,23 @@ export declare namespace ComAtprotoRepoPutRecord {
|
|
|
818
886
|
interface Params {}
|
|
819
887
|
interface Input {
|
|
820
888
|
/** The NSID of the record collection. */
|
|
821
|
-
collection:
|
|
889
|
+
collection: At.Nsid;
|
|
822
890
|
/** The record to write. */
|
|
823
891
|
record: unknown;
|
|
824
892
|
/** The handle or DID of the repo (aka, current account). */
|
|
825
|
-
repo:
|
|
893
|
+
repo: At.Identifier;
|
|
826
894
|
/** The Record Key. */
|
|
827
|
-
rkey:
|
|
895
|
+
rkey: At.RecordKey;
|
|
828
896
|
/** Compare and swap with the previous commit by CID. */
|
|
829
|
-
swapCommit?: At.
|
|
897
|
+
swapCommit?: At.Cid;
|
|
830
898
|
/** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
|
|
831
|
-
swapRecord?: At.
|
|
899
|
+
swapRecord?: At.Cid | null;
|
|
832
900
|
/** 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. */
|
|
833
901
|
validate?: boolean;
|
|
834
902
|
}
|
|
835
903
|
interface Output {
|
|
836
|
-
cid: At.
|
|
837
|
-
uri: At.
|
|
904
|
+
cid: At.Cid;
|
|
905
|
+
uri: At.ResourceUri;
|
|
838
906
|
commit?: ComAtprotoRepoDefs.CommitMeta;
|
|
839
907
|
validationStatus?: 'unknown' | 'valid' | (string & {});
|
|
840
908
|
}
|
|
@@ -846,15 +914,15 @@ export declare namespace ComAtprotoRepoPutRecord {
|
|
|
846
914
|
export declare namespace ComAtprotoRepoStrongRef {
|
|
847
915
|
interface Main {
|
|
848
916
|
[Brand.Type]?: 'com.atproto.repo.strongRef';
|
|
849
|
-
cid: At.
|
|
850
|
-
uri: At.
|
|
917
|
+
cid: At.Cid;
|
|
918
|
+
uri: At.ResourceUri;
|
|
851
919
|
}
|
|
852
920
|
}
|
|
853
921
|
|
|
854
922
|
/** 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. */
|
|
855
923
|
export declare namespace ComAtprotoRepoUploadBlob {
|
|
856
924
|
interface Params {}
|
|
857
|
-
type Input = Blob |
|
|
925
|
+
type Input = Blob | BufferSource | ReadableStream;
|
|
858
926
|
interface Output {
|
|
859
927
|
blob: At.Blob;
|
|
860
928
|
}
|
|
@@ -878,7 +946,7 @@ export declare namespace ComAtprotoServerCheckAccountStatus {
|
|
|
878
946
|
indexedRecords: number;
|
|
879
947
|
privateStateValues: number;
|
|
880
948
|
repoBlocks: number;
|
|
881
|
-
repoCommit: At.
|
|
949
|
+
repoCommit: At.Cid;
|
|
882
950
|
repoRev: string;
|
|
883
951
|
validDid: boolean;
|
|
884
952
|
}
|
|
@@ -907,7 +975,7 @@ export declare namespace ComAtprotoServerCreateAccount {
|
|
|
907
975
|
/** Requested handle for the account. */
|
|
908
976
|
handle: At.Handle;
|
|
909
977
|
/** Pre-existing atproto DID, being imported to a new account. */
|
|
910
|
-
did?: At.
|
|
978
|
+
did?: At.Did;
|
|
911
979
|
email?: string;
|
|
912
980
|
inviteCode?: string;
|
|
913
981
|
/** Initial account password. May need to meet instance-specific password strength requirements. */
|
|
@@ -923,7 +991,7 @@ export declare namespace ComAtprotoServerCreateAccount {
|
|
|
923
991
|
interface Output {
|
|
924
992
|
accessJwt: string;
|
|
925
993
|
/** The DID of the new account. */
|
|
926
|
-
did: At.
|
|
994
|
+
did: At.Did;
|
|
927
995
|
handle: At.Handle;
|
|
928
996
|
refreshJwt: string;
|
|
929
997
|
/** Complete DID document. */
|
|
@@ -967,7 +1035,7 @@ export declare namespace ComAtprotoServerCreateInviteCode {
|
|
|
967
1035
|
interface Params {}
|
|
968
1036
|
interface Input {
|
|
969
1037
|
useCount: number;
|
|
970
|
-
forAccount?: At.
|
|
1038
|
+
forAccount?: At.Did;
|
|
971
1039
|
}
|
|
972
1040
|
interface Output {
|
|
973
1041
|
code: string;
|
|
@@ -981,7 +1049,7 @@ export declare namespace ComAtprotoServerCreateInviteCodes {
|
|
|
981
1049
|
/** @default 1 */
|
|
982
1050
|
codeCount: number;
|
|
983
1051
|
useCount: number;
|
|
984
|
-
forAccounts?: At.
|
|
1052
|
+
forAccounts?: At.Did[];
|
|
985
1053
|
}
|
|
986
1054
|
interface Output {
|
|
987
1055
|
codes: AccountCodes[];
|
|
@@ -1006,7 +1074,7 @@ export declare namespace ComAtprotoServerCreateSession {
|
|
|
1006
1074
|
}
|
|
1007
1075
|
interface Output {
|
|
1008
1076
|
accessJwt: string;
|
|
1009
|
-
did: At.
|
|
1077
|
+
did: At.Did;
|
|
1010
1078
|
handle: At.Handle;
|
|
1011
1079
|
refreshJwt: string;
|
|
1012
1080
|
active?: boolean;
|
|
@@ -1047,7 +1115,7 @@ export declare namespace ComAtprotoServerDefs {
|
|
|
1047
1115
|
interface InviteCodeUse {
|
|
1048
1116
|
[Brand.Type]?: 'com.atproto.server.defs#inviteCodeUse';
|
|
1049
1117
|
usedAt: string;
|
|
1050
|
-
usedBy: At.
|
|
1118
|
+
usedBy: At.Did;
|
|
1051
1119
|
}
|
|
1052
1120
|
}
|
|
1053
1121
|
|
|
@@ -1055,7 +1123,7 @@ export declare namespace ComAtprotoServerDefs {
|
|
|
1055
1123
|
export declare namespace ComAtprotoServerDeleteAccount {
|
|
1056
1124
|
interface Params {}
|
|
1057
1125
|
interface Input {
|
|
1058
|
-
did: At.
|
|
1126
|
+
did: At.Did;
|
|
1059
1127
|
password: string;
|
|
1060
1128
|
token: string;
|
|
1061
1129
|
}
|
|
@@ -1080,7 +1148,7 @@ export declare namespace ComAtprotoServerDescribeServer {
|
|
|
1080
1148
|
interface Output {
|
|
1081
1149
|
/** List of domain suffixes that can be used in account handles. */
|
|
1082
1150
|
availableUserDomains: string[];
|
|
1083
|
-
did: At.
|
|
1151
|
+
did: At.Did;
|
|
1084
1152
|
/** Contact information */
|
|
1085
1153
|
contact?: Contact;
|
|
1086
1154
|
/** If true, an invite code must be supplied to create an account on this instance. */
|
|
@@ -1096,8 +1164,8 @@ export declare namespace ComAtprotoServerDescribeServer {
|
|
|
1096
1164
|
}
|
|
1097
1165
|
interface Links {
|
|
1098
1166
|
[Brand.Type]?: 'com.atproto.server.describeServer#links';
|
|
1099
|
-
privacyPolicy?:
|
|
1100
|
-
termsOfService?:
|
|
1167
|
+
privacyPolicy?: At.GenericUri;
|
|
1168
|
+
termsOfService?: At.GenericUri;
|
|
1101
1169
|
}
|
|
1102
1170
|
}
|
|
1103
1171
|
|
|
@@ -1125,11 +1193,11 @@ export declare namespace ComAtprotoServerGetAccountInviteCodes {
|
|
|
1125
1193
|
export declare namespace ComAtprotoServerGetServiceAuth {
|
|
1126
1194
|
interface Params {
|
|
1127
1195
|
/** The DID of the service that the token will be used to authenticate with */
|
|
1128
|
-
aud: At.
|
|
1196
|
+
aud: At.Did;
|
|
1129
1197
|
/** 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. */
|
|
1130
1198
|
exp?: number;
|
|
1131
1199
|
/** Lexicon (XRPC) method to bind the requested token to */
|
|
1132
|
-
lxm?:
|
|
1200
|
+
lxm?: At.Nsid;
|
|
1133
1201
|
}
|
|
1134
1202
|
type Input = undefined;
|
|
1135
1203
|
interface Output {
|
|
@@ -1145,7 +1213,7 @@ export declare namespace ComAtprotoServerGetSession {
|
|
|
1145
1213
|
interface Params {}
|
|
1146
1214
|
type Input = undefined;
|
|
1147
1215
|
interface Output {
|
|
1148
|
-
did: At.
|
|
1216
|
+
did: At.Did;
|
|
1149
1217
|
handle: At.Handle;
|
|
1150
1218
|
active?: boolean;
|
|
1151
1219
|
didDoc?: unknown;
|
|
@@ -1181,7 +1249,7 @@ export declare namespace ComAtprotoServerRefreshSession {
|
|
|
1181
1249
|
type Input = undefined;
|
|
1182
1250
|
interface Output {
|
|
1183
1251
|
accessJwt: string;
|
|
1184
|
-
did: At.
|
|
1252
|
+
did: At.Did;
|
|
1185
1253
|
handle: At.Handle;
|
|
1186
1254
|
refreshJwt: string;
|
|
1187
1255
|
active?: boolean;
|
|
@@ -1231,7 +1299,7 @@ export declare namespace ComAtprotoServerReserveSigningKey {
|
|
|
1231
1299
|
interface Params {}
|
|
1232
1300
|
interface Input {
|
|
1233
1301
|
/** The DID to reserve a key for. */
|
|
1234
|
-
did?: At.
|
|
1302
|
+
did?: At.Did;
|
|
1235
1303
|
}
|
|
1236
1304
|
interface Output {
|
|
1237
1305
|
/** The public key for the reserved signing key, in did:key serialization. */
|
|
@@ -1279,13 +1347,17 @@ export declare namespace ComAtprotoServerUpdateEmail {
|
|
|
1279
1347
|
}
|
|
1280
1348
|
}
|
|
1281
1349
|
|
|
1350
|
+
export declare namespace ComAtprotoSyncDefs {
|
|
1351
|
+
type HostStatus = 'active' | 'banned' | 'idle' | 'offline' | 'throttled' | (string & {});
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1282
1354
|
/** Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS. */
|
|
1283
1355
|
export declare namespace ComAtprotoSyncGetBlob {
|
|
1284
1356
|
interface Params {
|
|
1285
1357
|
/** The CID of the blob to fetch */
|
|
1286
|
-
cid: At.
|
|
1358
|
+
cid: At.Cid;
|
|
1287
1359
|
/** The DID of the account. */
|
|
1288
|
-
did: At.
|
|
1360
|
+
did: At.Did;
|
|
1289
1361
|
}
|
|
1290
1362
|
type Input = undefined;
|
|
1291
1363
|
type Output = Uint8Array;
|
|
@@ -1301,9 +1373,9 @@ export declare namespace ComAtprotoSyncGetBlob {
|
|
|
1301
1373
|
/** Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS. */
|
|
1302
1374
|
export declare namespace ComAtprotoSyncGetBlocks {
|
|
1303
1375
|
interface Params {
|
|
1304
|
-
cids: At.
|
|
1376
|
+
cids: At.Cid[];
|
|
1305
1377
|
/** The DID of the repo. */
|
|
1306
|
-
did: At.
|
|
1378
|
+
did: At.Did;
|
|
1307
1379
|
}
|
|
1308
1380
|
type Input = undefined;
|
|
1309
1381
|
type Output = Uint8Array;
|
|
@@ -1323,7 +1395,7 @@ export declare namespace ComAtprotoSyncGetBlocks {
|
|
|
1323
1395
|
export declare namespace ComAtprotoSyncGetCheckout {
|
|
1324
1396
|
interface Params {
|
|
1325
1397
|
/** The DID of the repo. */
|
|
1326
|
-
did: At.
|
|
1398
|
+
did: At.Did;
|
|
1327
1399
|
}
|
|
1328
1400
|
type Input = undefined;
|
|
1329
1401
|
type Output = Uint8Array;
|
|
@@ -1336,27 +1408,47 @@ export declare namespace ComAtprotoSyncGetCheckout {
|
|
|
1336
1408
|
export declare namespace ComAtprotoSyncGetHead {
|
|
1337
1409
|
interface Params {
|
|
1338
1410
|
/** The DID of the repo. */
|
|
1339
|
-
did: At.
|
|
1411
|
+
did: At.Did;
|
|
1340
1412
|
}
|
|
1341
1413
|
type Input = undefined;
|
|
1342
1414
|
interface Output {
|
|
1343
|
-
root: At.
|
|
1415
|
+
root: At.Cid;
|
|
1344
1416
|
}
|
|
1345
1417
|
interface Errors {
|
|
1346
1418
|
HeadNotFound: {};
|
|
1347
1419
|
}
|
|
1348
1420
|
}
|
|
1349
1421
|
|
|
1422
|
+
/** Returns information about a specified upstream host, as consumed by the server. Implemented by relays. */
|
|
1423
|
+
export declare namespace ComAtprotoSyncGetHostStatus {
|
|
1424
|
+
interface Params {
|
|
1425
|
+
/** Hostname of the host (eg, PDS or relay) being queried. */
|
|
1426
|
+
hostname: string;
|
|
1427
|
+
}
|
|
1428
|
+
type Input = undefined;
|
|
1429
|
+
interface Output {
|
|
1430
|
+
hostname: string;
|
|
1431
|
+
/** Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts. */
|
|
1432
|
+
accountCount?: number;
|
|
1433
|
+
/** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */
|
|
1434
|
+
seq?: number;
|
|
1435
|
+
status?: ComAtprotoSyncDefs.HostStatus;
|
|
1436
|
+
}
|
|
1437
|
+
interface Errors {
|
|
1438
|
+
HostNotFound: {};
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1350
1442
|
/** Get the current commit CID & revision of the specified repo. Does not require auth. */
|
|
1351
1443
|
export declare namespace ComAtprotoSyncGetLatestCommit {
|
|
1352
1444
|
interface Params {
|
|
1353
1445
|
/** The DID of the repo. */
|
|
1354
|
-
did: At.
|
|
1446
|
+
did: At.Did;
|
|
1355
1447
|
}
|
|
1356
1448
|
type Input = undefined;
|
|
1357
1449
|
interface Output {
|
|
1358
|
-
cid: At.
|
|
1359
|
-
rev:
|
|
1450
|
+
cid: At.Cid;
|
|
1451
|
+
rev: At.Tid;
|
|
1360
1452
|
}
|
|
1361
1453
|
interface Errors {
|
|
1362
1454
|
RepoNotFound: {};
|
|
@@ -1369,11 +1461,11 @@ export declare namespace ComAtprotoSyncGetLatestCommit {
|
|
|
1369
1461
|
/** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
|
|
1370
1462
|
export declare namespace ComAtprotoSyncGetRecord {
|
|
1371
1463
|
interface Params {
|
|
1372
|
-
collection:
|
|
1464
|
+
collection: At.Nsid;
|
|
1373
1465
|
/** The DID of the repo. */
|
|
1374
|
-
did: At.
|
|
1466
|
+
did: At.Did;
|
|
1375
1467
|
/** Record Key */
|
|
1376
|
-
rkey:
|
|
1468
|
+
rkey: At.RecordKey;
|
|
1377
1469
|
}
|
|
1378
1470
|
type Input = undefined;
|
|
1379
1471
|
type Output = Uint8Array;
|
|
@@ -1390,9 +1482,9 @@ export declare namespace ComAtprotoSyncGetRecord {
|
|
|
1390
1482
|
export declare namespace ComAtprotoSyncGetRepo {
|
|
1391
1483
|
interface Params {
|
|
1392
1484
|
/** The DID of the repo. */
|
|
1393
|
-
did: At.
|
|
1485
|
+
did: At.Did;
|
|
1394
1486
|
/** The revision ('rev') of the repo to create a diff from. */
|
|
1395
|
-
since?:
|
|
1487
|
+
since?: At.Tid;
|
|
1396
1488
|
}
|
|
1397
1489
|
type Input = undefined;
|
|
1398
1490
|
type Output = Uint8Array;
|
|
@@ -1408,14 +1500,14 @@ export declare namespace ComAtprotoSyncGetRepo {
|
|
|
1408
1500
|
export declare namespace ComAtprotoSyncGetRepoStatus {
|
|
1409
1501
|
interface Params {
|
|
1410
1502
|
/** The DID of the repo. */
|
|
1411
|
-
did: At.
|
|
1503
|
+
did: At.Did;
|
|
1412
1504
|
}
|
|
1413
1505
|
type Input = undefined;
|
|
1414
1506
|
interface Output {
|
|
1415
1507
|
active: boolean;
|
|
1416
|
-
did: At.
|
|
1508
|
+
did: At.Did;
|
|
1417
1509
|
/** Optional field, the current rev of the repo, if active=true */
|
|
1418
|
-
rev?:
|
|
1510
|
+
rev?: At.Tid;
|
|
1419
1511
|
/** 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. */
|
|
1420
1512
|
status?:
|
|
1421
1513
|
| 'deactivated'
|
|
@@ -1435,7 +1527,7 @@ export declare namespace ComAtprotoSyncGetRepoStatus {
|
|
|
1435
1527
|
export declare namespace ComAtprotoSyncListBlobs {
|
|
1436
1528
|
interface Params {
|
|
1437
1529
|
/** The DID of the repo. */
|
|
1438
|
-
did: At.
|
|
1530
|
+
did: At.Did;
|
|
1439
1531
|
cursor?: string;
|
|
1440
1532
|
/**
|
|
1441
1533
|
* Minimum: 1 \
|
|
@@ -1444,11 +1536,11 @@ export declare namespace ComAtprotoSyncListBlobs {
|
|
|
1444
1536
|
*/
|
|
1445
1537
|
limit?: number;
|
|
1446
1538
|
/** Optional revision of the repo to list blobs since. */
|
|
1447
|
-
since?:
|
|
1539
|
+
since?: At.Tid;
|
|
1448
1540
|
}
|
|
1449
1541
|
type Input = undefined;
|
|
1450
1542
|
interface Output {
|
|
1451
|
-
cids: At.
|
|
1543
|
+
cids: At.Cid[];
|
|
1452
1544
|
cursor?: string;
|
|
1453
1545
|
}
|
|
1454
1546
|
interface Errors {
|
|
@@ -1459,6 +1551,34 @@ export declare namespace ComAtprotoSyncListBlobs {
|
|
|
1459
1551
|
}
|
|
1460
1552
|
}
|
|
1461
1553
|
|
|
1554
|
+
/** Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays. */
|
|
1555
|
+
export declare namespace ComAtprotoSyncListHosts {
|
|
1556
|
+
interface Params {
|
|
1557
|
+
cursor?: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* Minimum: 1 \
|
|
1560
|
+
* Maximum: 1000
|
|
1561
|
+
* @default 200
|
|
1562
|
+
*/
|
|
1563
|
+
limit?: number;
|
|
1564
|
+
}
|
|
1565
|
+
type Input = undefined;
|
|
1566
|
+
interface Output {
|
|
1567
|
+
/** Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first. */
|
|
1568
|
+
hosts: Host[];
|
|
1569
|
+
cursor?: string;
|
|
1570
|
+
}
|
|
1571
|
+
interface Host {
|
|
1572
|
+
[Brand.Type]?: 'com.atproto.sync.listHosts#host';
|
|
1573
|
+
/** hostname of server; not a URL (no scheme) */
|
|
1574
|
+
hostname: string;
|
|
1575
|
+
accountCount?: number;
|
|
1576
|
+
/** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */
|
|
1577
|
+
seq?: number;
|
|
1578
|
+
status?: ComAtprotoSyncDefs.HostStatus;
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1462
1582
|
/** Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay. */
|
|
1463
1583
|
export declare namespace ComAtprotoSyncListRepos {
|
|
1464
1584
|
interface Params {
|
|
@@ -1477,10 +1597,10 @@ export declare namespace ComAtprotoSyncListRepos {
|
|
|
1477
1597
|
}
|
|
1478
1598
|
interface Repo {
|
|
1479
1599
|
[Brand.Type]?: 'com.atproto.sync.listRepos#repo';
|
|
1480
|
-
did: At.
|
|
1600
|
+
did: At.Did;
|
|
1481
1601
|
/** Current repo commit CID */
|
|
1482
|
-
head: At.
|
|
1483
|
-
rev:
|
|
1602
|
+
head: At.Cid;
|
|
1603
|
+
rev: At.Tid;
|
|
1484
1604
|
active?: boolean;
|
|
1485
1605
|
/** 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. */
|
|
1486
1606
|
status?:
|
|
@@ -1497,7 +1617,7 @@ export declare namespace ComAtprotoSyncListRepos {
|
|
|
1497
1617
|
/** Enumerates all the DIDs which have records with the given collection NSID. */
|
|
1498
1618
|
export declare namespace ComAtprotoSyncListReposByCollection {
|
|
1499
1619
|
interface Params {
|
|
1500
|
-
collection:
|
|
1620
|
+
collection: At.Nsid;
|
|
1501
1621
|
cursor?: string;
|
|
1502
1622
|
/**
|
|
1503
1623
|
* Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists. \
|
|
@@ -1514,7 +1634,7 @@ export declare namespace ComAtprotoSyncListReposByCollection {
|
|
|
1514
1634
|
}
|
|
1515
1635
|
interface Repo {
|
|
1516
1636
|
[Brand.Type]?: 'com.atproto.sync.listReposByCollection#repo';
|
|
1517
|
-
did: At.
|
|
1637
|
+
did: At.Did;
|
|
1518
1638
|
}
|
|
1519
1639
|
}
|
|
1520
1640
|
|
|
@@ -1536,6 +1656,9 @@ export declare namespace ComAtprotoSyncRequestCrawl {
|
|
|
1536
1656
|
hostname: string;
|
|
1537
1657
|
}
|
|
1538
1658
|
type Output = undefined;
|
|
1659
|
+
interface Errors {
|
|
1660
|
+
HostBanned: {};
|
|
1661
|
+
}
|
|
1539
1662
|
}
|
|
1540
1663
|
|
|
1541
1664
|
export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
@@ -1544,7 +1667,7 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1544
1667
|
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#account';
|
|
1545
1668
|
/** Indicates that the account has a repository which can be fetched from the host that emitted this event. */
|
|
1546
1669
|
active: boolean;
|
|
1547
|
-
did: At.
|
|
1670
|
+
did: At.Did;
|
|
1548
1671
|
seq: number;
|
|
1549
1672
|
time: string;
|
|
1550
1673
|
/** If active=false, this optional field indicates a reason for why the account is not active. */
|
|
@@ -1564,11 +1687,11 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1564
1687
|
* DEPRECATED -- will soon always be empty. List of new blobs (by CID) referenced by records in this commit.
|
|
1565
1688
|
* @deprecated
|
|
1566
1689
|
*/
|
|
1567
|
-
blobs: At.
|
|
1690
|
+
blobs: At.CidLink[];
|
|
1568
1691
|
/** CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list. */
|
|
1569
1692
|
blocks: At.Bytes;
|
|
1570
1693
|
/** Repo commit object CID. */
|
|
1571
|
-
commit: At.
|
|
1694
|
+
commit: At.CidLink;
|
|
1572
1695
|
/**
|
|
1573
1696
|
* Maximum array length: 200 \
|
|
1574
1697
|
* List of repo mutation operations in this commit (eg, records created, updated, or deleted).
|
|
@@ -1580,13 +1703,13 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1580
1703
|
*/
|
|
1581
1704
|
rebase: boolean;
|
|
1582
1705
|
/** The repo this event comes from. Note that all other message types name this field 'did'. */
|
|
1583
|
-
repo: At.
|
|
1706
|
+
repo: At.Did;
|
|
1584
1707
|
/** 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. */
|
|
1585
|
-
rev:
|
|
1708
|
+
rev: At.Tid;
|
|
1586
1709
|
/** The stream sequence number of this message. */
|
|
1587
1710
|
seq: number;
|
|
1588
1711
|
/** The rev of the last emitted commit from this repo (if any). */
|
|
1589
|
-
since:
|
|
1712
|
+
since: At.Tid | null;
|
|
1590
1713
|
/** Timestamp of when this message was originally broadcast. */
|
|
1591
1714
|
time: string;
|
|
1592
1715
|
/**
|
|
@@ -1595,12 +1718,12 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1595
1718
|
*/
|
|
1596
1719
|
tooBig: boolean;
|
|
1597
1720
|
/** The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose. */
|
|
1598
|
-
prevData?: At.
|
|
1721
|
+
prevData?: At.CidLink;
|
|
1599
1722
|
}
|
|
1600
1723
|
/** 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. */
|
|
1601
1724
|
interface Identity {
|
|
1602
1725
|
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#identity';
|
|
1603
|
-
did: At.
|
|
1726
|
+
did: At.Did;
|
|
1604
1727
|
seq: number;
|
|
1605
1728
|
time: string;
|
|
1606
1729
|
/** 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. */
|
|
@@ -1616,10 +1739,10 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1616
1739
|
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#repoOp';
|
|
1617
1740
|
action: 'create' | 'delete' | 'update' | (string & {});
|
|
1618
1741
|
/** For creates and updates, the new record CID. For deletions, null. */
|
|
1619
|
-
cid: At.
|
|
1742
|
+
cid: At.CidLink | null;
|
|
1620
1743
|
path: string;
|
|
1621
1744
|
/** For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. */
|
|
1622
|
-
prev?: At.
|
|
1745
|
+
prev?: At.CidLink;
|
|
1623
1746
|
}
|
|
1624
1747
|
/** Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository. */
|
|
1625
1748
|
interface Sync {
|
|
@@ -1627,7 +1750,7 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1627
1750
|
/** CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. */
|
|
1628
1751
|
blocks: At.Bytes;
|
|
1629
1752
|
/** The account this repo event corresponds to. Must match that in the commit object. */
|
|
1630
|
-
did: At.
|
|
1753
|
+
did: At.Did;
|
|
1631
1754
|
/** The rev of the commit. This value must match that in the commit object. */
|
|
1632
1755
|
rev: string;
|
|
1633
1756
|
/** The stream sequence number of this message. */
|
|
@@ -1693,129 +1816,207 @@ export declare interface Records {
|
|
|
1693
1816
|
export declare interface Queries {
|
|
1694
1817
|
'com.atproto.admin.getAccountInfo': {
|
|
1695
1818
|
params: ComAtprotoAdminGetAccountInfo.Params;
|
|
1819
|
+
/** @deprecated */
|
|
1696
1820
|
output: ComAtprotoAdminGetAccountInfo.Output;
|
|
1821
|
+
response: { json: ComAtprotoAdminGetAccountInfo.Output };
|
|
1697
1822
|
};
|
|
1698
1823
|
'com.atproto.admin.getAccountInfos': {
|
|
1699
1824
|
params: ComAtprotoAdminGetAccountInfos.Params;
|
|
1825
|
+
/** @deprecated */
|
|
1700
1826
|
output: ComAtprotoAdminGetAccountInfos.Output;
|
|
1827
|
+
response: { json: ComAtprotoAdminGetAccountInfos.Output };
|
|
1701
1828
|
};
|
|
1702
1829
|
'com.atproto.admin.getInviteCodes': {
|
|
1703
1830
|
params: ComAtprotoAdminGetInviteCodes.Params;
|
|
1831
|
+
/** @deprecated */
|
|
1704
1832
|
output: ComAtprotoAdminGetInviteCodes.Output;
|
|
1833
|
+
response: { json: ComAtprotoAdminGetInviteCodes.Output };
|
|
1705
1834
|
};
|
|
1706
1835
|
'com.atproto.admin.getSubjectStatus': {
|
|
1707
1836
|
params: ComAtprotoAdminGetSubjectStatus.Params;
|
|
1837
|
+
/** @deprecated */
|
|
1708
1838
|
output: ComAtprotoAdminGetSubjectStatus.Output;
|
|
1839
|
+
response: { json: ComAtprotoAdminGetSubjectStatus.Output };
|
|
1709
1840
|
};
|
|
1710
1841
|
'com.atproto.admin.searchAccounts': {
|
|
1711
1842
|
params: ComAtprotoAdminSearchAccounts.Params;
|
|
1843
|
+
/** @deprecated */
|
|
1712
1844
|
output: ComAtprotoAdminSearchAccounts.Output;
|
|
1845
|
+
response: { json: ComAtprotoAdminSearchAccounts.Output };
|
|
1713
1846
|
};
|
|
1714
1847
|
'com.atproto.identity.getRecommendedDidCredentials': {
|
|
1848
|
+
/** @deprecated */
|
|
1715
1849
|
output: ComAtprotoIdentityGetRecommendedDidCredentials.Output;
|
|
1850
|
+
response: { json: ComAtprotoIdentityGetRecommendedDidCredentials.Output };
|
|
1716
1851
|
};
|
|
1717
1852
|
'com.atproto.identity.resolveDid': {
|
|
1718
1853
|
params: ComAtprotoIdentityResolveDid.Params;
|
|
1854
|
+
/** @deprecated */
|
|
1719
1855
|
output: ComAtprotoIdentityResolveDid.Output;
|
|
1856
|
+
response: { json: ComAtprotoIdentityResolveDid.Output };
|
|
1720
1857
|
};
|
|
1721
1858
|
'com.atproto.identity.resolveHandle': {
|
|
1722
1859
|
params: ComAtprotoIdentityResolveHandle.Params;
|
|
1860
|
+
/** @deprecated */
|
|
1723
1861
|
output: ComAtprotoIdentityResolveHandle.Output;
|
|
1862
|
+
response: { json: ComAtprotoIdentityResolveHandle.Output };
|
|
1724
1863
|
};
|
|
1725
1864
|
'com.atproto.identity.resolveIdentity': {
|
|
1726
1865
|
params: ComAtprotoIdentityResolveIdentity.Params;
|
|
1866
|
+
/** @deprecated */
|
|
1727
1867
|
output: ComAtprotoIdentityResolveIdentity.Output;
|
|
1868
|
+
response: { json: ComAtprotoIdentityResolveIdentity.Output };
|
|
1728
1869
|
};
|
|
1729
1870
|
'com.atproto.label.queryLabels': {
|
|
1730
1871
|
params: ComAtprotoLabelQueryLabels.Params;
|
|
1872
|
+
/** @deprecated */
|
|
1731
1873
|
output: ComAtprotoLabelQueryLabels.Output;
|
|
1874
|
+
response: { json: ComAtprotoLabelQueryLabels.Output };
|
|
1732
1875
|
};
|
|
1733
1876
|
'com.atproto.repo.describeRepo': {
|
|
1734
1877
|
params: ComAtprotoRepoDescribeRepo.Params;
|
|
1878
|
+
/** @deprecated */
|
|
1735
1879
|
output: ComAtprotoRepoDescribeRepo.Output;
|
|
1880
|
+
response: { json: ComAtprotoRepoDescribeRepo.Output };
|
|
1736
1881
|
};
|
|
1737
1882
|
'com.atproto.repo.getRecord': {
|
|
1738
1883
|
params: ComAtprotoRepoGetRecord.Params;
|
|
1884
|
+
/** @deprecated */
|
|
1739
1885
|
output: ComAtprotoRepoGetRecord.Output;
|
|
1886
|
+
response: { json: ComAtprotoRepoGetRecord.Output };
|
|
1740
1887
|
};
|
|
1741
1888
|
'com.atproto.repo.listMissingBlobs': {
|
|
1742
1889
|
params: ComAtprotoRepoListMissingBlobs.Params;
|
|
1890
|
+
/** @deprecated */
|
|
1743
1891
|
output: ComAtprotoRepoListMissingBlobs.Output;
|
|
1892
|
+
response: { json: ComAtprotoRepoListMissingBlobs.Output };
|
|
1744
1893
|
};
|
|
1745
1894
|
'com.atproto.repo.listRecords': {
|
|
1746
1895
|
params: ComAtprotoRepoListRecords.Params;
|
|
1896
|
+
/** @deprecated */
|
|
1747
1897
|
output: ComAtprotoRepoListRecords.Output;
|
|
1898
|
+
response: { json: ComAtprotoRepoListRecords.Output };
|
|
1748
1899
|
};
|
|
1749
1900
|
'com.atproto.server.checkAccountStatus': {
|
|
1901
|
+
/** @deprecated */
|
|
1750
1902
|
output: ComAtprotoServerCheckAccountStatus.Output;
|
|
1903
|
+
response: { json: ComAtprotoServerCheckAccountStatus.Output };
|
|
1751
1904
|
};
|
|
1752
1905
|
'com.atproto.server.describeServer': {
|
|
1906
|
+
/** @deprecated */
|
|
1753
1907
|
output: ComAtprotoServerDescribeServer.Output;
|
|
1908
|
+
response: { json: ComAtprotoServerDescribeServer.Output };
|
|
1754
1909
|
};
|
|
1755
1910
|
'com.atproto.server.getAccountInviteCodes': {
|
|
1756
1911
|
params: ComAtprotoServerGetAccountInviteCodes.Params;
|
|
1912
|
+
/** @deprecated */
|
|
1757
1913
|
output: ComAtprotoServerGetAccountInviteCodes.Output;
|
|
1914
|
+
response: { json: ComAtprotoServerGetAccountInviteCodes.Output };
|
|
1758
1915
|
};
|
|
1759
1916
|
'com.atproto.server.getServiceAuth': {
|
|
1760
1917
|
params: ComAtprotoServerGetServiceAuth.Params;
|
|
1918
|
+
/** @deprecated */
|
|
1761
1919
|
output: ComAtprotoServerGetServiceAuth.Output;
|
|
1920
|
+
response: { json: ComAtprotoServerGetServiceAuth.Output };
|
|
1762
1921
|
};
|
|
1763
1922
|
'com.atproto.server.getSession': {
|
|
1923
|
+
/** @deprecated */
|
|
1764
1924
|
output: ComAtprotoServerGetSession.Output;
|
|
1925
|
+
response: { json: ComAtprotoServerGetSession.Output };
|
|
1765
1926
|
};
|
|
1766
1927
|
'com.atproto.server.listAppPasswords': {
|
|
1928
|
+
/** @deprecated */
|
|
1767
1929
|
output: ComAtprotoServerListAppPasswords.Output;
|
|
1930
|
+
response: { json: ComAtprotoServerListAppPasswords.Output };
|
|
1768
1931
|
};
|
|
1769
1932
|
'com.atproto.sync.getBlob': {
|
|
1770
1933
|
params: ComAtprotoSyncGetBlob.Params;
|
|
1934
|
+
/** @deprecated */
|
|
1771
1935
|
output: ComAtprotoSyncGetBlob.Output;
|
|
1936
|
+
response: {};
|
|
1772
1937
|
};
|
|
1773
1938
|
'com.atproto.sync.getBlocks': {
|
|
1774
1939
|
params: ComAtprotoSyncGetBlocks.Params;
|
|
1940
|
+
/** @deprecated */
|
|
1775
1941
|
output: ComAtprotoSyncGetBlocks.Output;
|
|
1942
|
+
response: {};
|
|
1776
1943
|
};
|
|
1777
1944
|
'com.atproto.sync.getCheckout': {
|
|
1778
1945
|
params: ComAtprotoSyncGetCheckout.Params;
|
|
1946
|
+
/** @deprecated */
|
|
1779
1947
|
output: ComAtprotoSyncGetCheckout.Output;
|
|
1948
|
+
response: {};
|
|
1780
1949
|
};
|
|
1781
1950
|
'com.atproto.sync.getHead': {
|
|
1782
1951
|
params: ComAtprotoSyncGetHead.Params;
|
|
1952
|
+
/** @deprecated */
|
|
1783
1953
|
output: ComAtprotoSyncGetHead.Output;
|
|
1954
|
+
response: { json: ComAtprotoSyncGetHead.Output };
|
|
1955
|
+
};
|
|
1956
|
+
'com.atproto.sync.getHostStatus': {
|
|
1957
|
+
params: ComAtprotoSyncGetHostStatus.Params;
|
|
1958
|
+
/** @deprecated */
|
|
1959
|
+
output: ComAtprotoSyncGetHostStatus.Output;
|
|
1960
|
+
response: { json: ComAtprotoSyncGetHostStatus.Output };
|
|
1784
1961
|
};
|
|
1785
1962
|
'com.atproto.sync.getLatestCommit': {
|
|
1786
1963
|
params: ComAtprotoSyncGetLatestCommit.Params;
|
|
1964
|
+
/** @deprecated */
|
|
1787
1965
|
output: ComAtprotoSyncGetLatestCommit.Output;
|
|
1966
|
+
response: { json: ComAtprotoSyncGetLatestCommit.Output };
|
|
1788
1967
|
};
|
|
1789
1968
|
'com.atproto.sync.getRecord': {
|
|
1790
1969
|
params: ComAtprotoSyncGetRecord.Params;
|
|
1970
|
+
/** @deprecated */
|
|
1791
1971
|
output: ComAtprotoSyncGetRecord.Output;
|
|
1972
|
+
response: {};
|
|
1792
1973
|
};
|
|
1793
1974
|
'com.atproto.sync.getRepo': {
|
|
1794
1975
|
params: ComAtprotoSyncGetRepo.Params;
|
|
1976
|
+
/** @deprecated */
|
|
1795
1977
|
output: ComAtprotoSyncGetRepo.Output;
|
|
1978
|
+
response: {};
|
|
1796
1979
|
};
|
|
1797
1980
|
'com.atproto.sync.getRepoStatus': {
|
|
1798
1981
|
params: ComAtprotoSyncGetRepoStatus.Params;
|
|
1982
|
+
/** @deprecated */
|
|
1799
1983
|
output: ComAtprotoSyncGetRepoStatus.Output;
|
|
1984
|
+
response: { json: ComAtprotoSyncGetRepoStatus.Output };
|
|
1800
1985
|
};
|
|
1801
1986
|
'com.atproto.sync.listBlobs': {
|
|
1802
1987
|
params: ComAtprotoSyncListBlobs.Params;
|
|
1988
|
+
/** @deprecated */
|
|
1803
1989
|
output: ComAtprotoSyncListBlobs.Output;
|
|
1990
|
+
response: { json: ComAtprotoSyncListBlobs.Output };
|
|
1991
|
+
};
|
|
1992
|
+
'com.atproto.sync.listHosts': {
|
|
1993
|
+
params: ComAtprotoSyncListHosts.Params;
|
|
1994
|
+
/** @deprecated */
|
|
1995
|
+
output: ComAtprotoSyncListHosts.Output;
|
|
1996
|
+
response: { json: ComAtprotoSyncListHosts.Output };
|
|
1804
1997
|
};
|
|
1805
1998
|
'com.atproto.sync.listRepos': {
|
|
1806
1999
|
params: ComAtprotoSyncListRepos.Params;
|
|
2000
|
+
/** @deprecated */
|
|
1807
2001
|
output: ComAtprotoSyncListRepos.Output;
|
|
2002
|
+
response: { json: ComAtprotoSyncListRepos.Output };
|
|
1808
2003
|
};
|
|
1809
2004
|
'com.atproto.sync.listReposByCollection': {
|
|
1810
2005
|
params: ComAtprotoSyncListReposByCollection.Params;
|
|
2006
|
+
/** @deprecated */
|
|
1811
2007
|
output: ComAtprotoSyncListReposByCollection.Output;
|
|
2008
|
+
response: { json: ComAtprotoSyncListReposByCollection.Output };
|
|
1812
2009
|
};
|
|
1813
2010
|
'com.atproto.temp.checkSignupQueue': {
|
|
2011
|
+
/** @deprecated */
|
|
1814
2012
|
output: ComAtprotoTempCheckSignupQueue.Output;
|
|
2013
|
+
response: { json: ComAtprotoTempCheckSignupQueue.Output };
|
|
1815
2014
|
};
|
|
1816
2015
|
'com.atproto.temp.fetchLabels': {
|
|
1817
2016
|
params: ComAtprotoTempFetchLabels.Params;
|
|
2017
|
+
/** @deprecated */
|
|
1818
2018
|
output: ComAtprotoTempFetchLabels.Output;
|
|
2019
|
+
response: { json: ComAtprotoTempFetchLabels.Output };
|
|
1819
2020
|
};
|
|
1820
2021
|
}
|
|
1821
2022
|
|
|
@@ -1834,7 +2035,9 @@ export declare interface Procedures {
|
|
|
1834
2035
|
};
|
|
1835
2036
|
'com.atproto.admin.sendEmail': {
|
|
1836
2037
|
input: ComAtprotoAdminSendEmail.Input;
|
|
2038
|
+
/** @deprecated */
|
|
1837
2039
|
output: ComAtprotoAdminSendEmail.Output;
|
|
2040
|
+
response: { json: ComAtprotoAdminSendEmail.Output };
|
|
1838
2041
|
};
|
|
1839
2042
|
'com.atproto.admin.updateAccountEmail': {
|
|
1840
2043
|
input: ComAtprotoAdminUpdateAccountEmail.Input;
|
|
@@ -1845,18 +2048,27 @@ export declare interface Procedures {
|
|
|
1845
2048
|
'com.atproto.admin.updateAccountPassword': {
|
|
1846
2049
|
input: ComAtprotoAdminUpdateAccountPassword.Input;
|
|
1847
2050
|
};
|
|
2051
|
+
'com.atproto.admin.updateAccountSigningKey': {
|
|
2052
|
+
input: ComAtprotoAdminUpdateAccountSigningKey.Input;
|
|
2053
|
+
};
|
|
1848
2054
|
'com.atproto.admin.updateSubjectStatus': {
|
|
1849
2055
|
input: ComAtprotoAdminUpdateSubjectStatus.Input;
|
|
2056
|
+
/** @deprecated */
|
|
1850
2057
|
output: ComAtprotoAdminUpdateSubjectStatus.Output;
|
|
2058
|
+
response: { json: ComAtprotoAdminUpdateSubjectStatus.Output };
|
|
1851
2059
|
};
|
|
1852
2060
|
'com.atproto.identity.refreshIdentity': {
|
|
1853
2061
|
input: ComAtprotoIdentityRefreshIdentity.Input;
|
|
2062
|
+
/** @deprecated */
|
|
1854
2063
|
output: ComAtprotoIdentityRefreshIdentity.Output;
|
|
2064
|
+
response: { json: ComAtprotoIdentityRefreshIdentity.Output };
|
|
1855
2065
|
};
|
|
1856
2066
|
'com.atproto.identity.requestPlcOperationSignature': {};
|
|
1857
2067
|
'com.atproto.identity.signPlcOperation': {
|
|
1858
2068
|
input: ComAtprotoIdentitySignPlcOperation.Input;
|
|
2069
|
+
/** @deprecated */
|
|
1859
2070
|
output: ComAtprotoIdentitySignPlcOperation.Output;
|
|
2071
|
+
response: { json: ComAtprotoIdentitySignPlcOperation.Output };
|
|
1860
2072
|
};
|
|
1861
2073
|
'com.atproto.identity.submitPlcOperation': {
|
|
1862
2074
|
input: ComAtprotoIdentitySubmitPlcOperation.Input;
|
|
@@ -1866,30 +2078,42 @@ export declare interface Procedures {
|
|
|
1866
2078
|
};
|
|
1867
2079
|
'com.atproto.moderation.createReport': {
|
|
1868
2080
|
input: ComAtprotoModerationCreateReport.Input;
|
|
2081
|
+
/** @deprecated */
|
|
1869
2082
|
output: ComAtprotoModerationCreateReport.Output;
|
|
2083
|
+
response: { json: ComAtprotoModerationCreateReport.Output };
|
|
1870
2084
|
};
|
|
1871
2085
|
'com.atproto.repo.applyWrites': {
|
|
1872
2086
|
input: ComAtprotoRepoApplyWrites.Input;
|
|
2087
|
+
/** @deprecated */
|
|
1873
2088
|
output: ComAtprotoRepoApplyWrites.Output;
|
|
2089
|
+
response: { json: ComAtprotoRepoApplyWrites.Output };
|
|
1874
2090
|
};
|
|
1875
2091
|
'com.atproto.repo.createRecord': {
|
|
1876
2092
|
input: ComAtprotoRepoCreateRecord.Input;
|
|
2093
|
+
/** @deprecated */
|
|
1877
2094
|
output: ComAtprotoRepoCreateRecord.Output;
|
|
2095
|
+
response: { json: ComAtprotoRepoCreateRecord.Output };
|
|
1878
2096
|
};
|
|
1879
2097
|
'com.atproto.repo.deleteRecord': {
|
|
1880
2098
|
input: ComAtprotoRepoDeleteRecord.Input;
|
|
2099
|
+
/** @deprecated */
|
|
1881
2100
|
output: ComAtprotoRepoDeleteRecord.Output;
|
|
2101
|
+
response: { json: ComAtprotoRepoDeleteRecord.Output };
|
|
1882
2102
|
};
|
|
1883
2103
|
'com.atproto.repo.importRepo': {
|
|
1884
2104
|
input: ComAtprotoRepoImportRepo.Input;
|
|
1885
2105
|
};
|
|
1886
2106
|
'com.atproto.repo.putRecord': {
|
|
1887
2107
|
input: ComAtprotoRepoPutRecord.Input;
|
|
2108
|
+
/** @deprecated */
|
|
1888
2109
|
output: ComAtprotoRepoPutRecord.Output;
|
|
2110
|
+
response: { json: ComAtprotoRepoPutRecord.Output };
|
|
1889
2111
|
};
|
|
1890
2112
|
'com.atproto.repo.uploadBlob': {
|
|
1891
2113
|
input: ComAtprotoRepoUploadBlob.Input;
|
|
2114
|
+
/** @deprecated */
|
|
1892
2115
|
output: ComAtprotoRepoUploadBlob.Output;
|
|
2116
|
+
response: { json: ComAtprotoRepoUploadBlob.Output };
|
|
1893
2117
|
};
|
|
1894
2118
|
'com.atproto.server.activateAccount': {};
|
|
1895
2119
|
'com.atproto.server.confirmEmail': {
|
|
@@ -1897,23 +2121,33 @@ export declare interface Procedures {
|
|
|
1897
2121
|
};
|
|
1898
2122
|
'com.atproto.server.createAccount': {
|
|
1899
2123
|
input: ComAtprotoServerCreateAccount.Input;
|
|
2124
|
+
/** @deprecated */
|
|
1900
2125
|
output: ComAtprotoServerCreateAccount.Output;
|
|
2126
|
+
response: { json: ComAtprotoServerCreateAccount.Output };
|
|
1901
2127
|
};
|
|
1902
2128
|
'com.atproto.server.createAppPassword': {
|
|
1903
2129
|
input: ComAtprotoServerCreateAppPassword.Input;
|
|
2130
|
+
/** @deprecated */
|
|
1904
2131
|
output: ComAtprotoServerCreateAppPassword.Output;
|
|
2132
|
+
response: { json: ComAtprotoServerCreateAppPassword.Output };
|
|
1905
2133
|
};
|
|
1906
2134
|
'com.atproto.server.createInviteCode': {
|
|
1907
2135
|
input: ComAtprotoServerCreateInviteCode.Input;
|
|
2136
|
+
/** @deprecated */
|
|
1908
2137
|
output: ComAtprotoServerCreateInviteCode.Output;
|
|
2138
|
+
response: { json: ComAtprotoServerCreateInviteCode.Output };
|
|
1909
2139
|
};
|
|
1910
2140
|
'com.atproto.server.createInviteCodes': {
|
|
1911
2141
|
input: ComAtprotoServerCreateInviteCodes.Input;
|
|
2142
|
+
/** @deprecated */
|
|
1912
2143
|
output: ComAtprotoServerCreateInviteCodes.Output;
|
|
2144
|
+
response: { json: ComAtprotoServerCreateInviteCodes.Output };
|
|
1913
2145
|
};
|
|
1914
2146
|
'com.atproto.server.createSession': {
|
|
1915
2147
|
input: ComAtprotoServerCreateSession.Input;
|
|
2148
|
+
/** @deprecated */
|
|
1916
2149
|
output: ComAtprotoServerCreateSession.Output;
|
|
2150
|
+
response: { json: ComAtprotoServerCreateSession.Output };
|
|
1917
2151
|
};
|
|
1918
2152
|
'com.atproto.server.deactivateAccount': {
|
|
1919
2153
|
input: ComAtprotoServerDeactivateAccount.Input;
|
|
@@ -1923,19 +2157,25 @@ export declare interface Procedures {
|
|
|
1923
2157
|
};
|
|
1924
2158
|
'com.atproto.server.deleteSession': {};
|
|
1925
2159
|
'com.atproto.server.refreshSession': {
|
|
2160
|
+
/** @deprecated */
|
|
1926
2161
|
output: ComAtprotoServerRefreshSession.Output;
|
|
2162
|
+
response: { json: ComAtprotoServerRefreshSession.Output };
|
|
1927
2163
|
};
|
|
1928
2164
|
'com.atproto.server.requestAccountDelete': {};
|
|
1929
2165
|
'com.atproto.server.requestEmailConfirmation': {};
|
|
1930
2166
|
'com.atproto.server.requestEmailUpdate': {
|
|
2167
|
+
/** @deprecated */
|
|
1931
2168
|
output: ComAtprotoServerRequestEmailUpdate.Output;
|
|
2169
|
+
response: { json: ComAtprotoServerRequestEmailUpdate.Output };
|
|
1932
2170
|
};
|
|
1933
2171
|
'com.atproto.server.requestPasswordReset': {
|
|
1934
2172
|
input: ComAtprotoServerRequestPasswordReset.Input;
|
|
1935
2173
|
};
|
|
1936
2174
|
'com.atproto.server.reserveSigningKey': {
|
|
1937
2175
|
input: ComAtprotoServerReserveSigningKey.Input;
|
|
2176
|
+
/** @deprecated */
|
|
1938
2177
|
output: ComAtprotoServerReserveSigningKey.Output;
|
|
2178
|
+
response: { json: ComAtprotoServerReserveSigningKey.Output };
|
|
1939
2179
|
};
|
|
1940
2180
|
'com.atproto.server.resetPassword': {
|
|
1941
2181
|
input: ComAtprotoServerResetPassword.Input;
|
|
@@ -1954,7 +2194,9 @@ export declare interface Procedures {
|
|
|
1954
2194
|
};
|
|
1955
2195
|
'com.atproto.temp.addReservedHandle': {
|
|
1956
2196
|
input: ComAtprotoTempAddReservedHandle.Input;
|
|
2197
|
+
/** @deprecated */
|
|
1957
2198
|
output: ComAtprotoTempAddReservedHandle.Output;
|
|
2199
|
+
response: { json: ComAtprotoTempAddReservedHandle.Output };
|
|
1958
2200
|
};
|
|
1959
2201
|
'com.atproto.temp.requestPhoneVerification': {
|
|
1960
2202
|
input: ComAtprotoTempRequestPhoneVerification.Input;
|