@atcute/client 2.0.8 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credential-manager.d.ts +4 -4
- package/dist/lexicons.d.ts +463 -193
- package/dist/rpc.d.ts +1 -1
- package/lib/credential-manager.ts +4 -4
- package/lib/lexicons.ts +380 -192
- package/lib/rpc.ts +1 -1
- package/package.json +2 -2
package/dist/lexicons.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Contains type declarations for AT Protocol lexicons
|
|
4
4
|
*/
|
|
5
5
|
type ObjectOmit<T, K extends keyof any> = Omit<T, K>;
|
|
6
|
-
/**
|
|
6
|
+
/** handles type branding in objects */
|
|
7
7
|
export declare namespace Brand {
|
|
8
8
|
/** Symbol used to brand objects, this does not actually exist in runtime */
|
|
9
9
|
const Type: unique symbol;
|
|
@@ -22,25 +22,73 @@ export declare namespace Brand {
|
|
|
22
22
|
[Type]?: string;
|
|
23
23
|
}> = ObjectOmit<T, typeof Type>;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
25
|
+
/** base AT Protocol schema types */
|
|
26
26
|
export declare namespace At {
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
type
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
type
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
/**
|
|
28
|
+
* represents a Content Identifier (CID) string
|
|
29
|
+
*/
|
|
30
|
+
type Cid = string;
|
|
31
|
+
/**
|
|
32
|
+
* represents a Decentralized Identifier (DID).
|
|
33
|
+
*/
|
|
34
|
+
type Did<Method extends string = string> = `did:${Method}:${string}`;
|
|
35
|
+
/**
|
|
36
|
+
* represents an account's handle, using domains as a human-friendly
|
|
37
|
+
* identifier.
|
|
38
|
+
*/
|
|
39
|
+
type Handle = `${string}.${string}`;
|
|
40
|
+
/**
|
|
41
|
+
* represents an account's identifier, either a {@link Did} or a
|
|
42
|
+
* {@link Handle}
|
|
43
|
+
*/
|
|
44
|
+
type Identifier = Did | Handle;
|
|
45
|
+
/**
|
|
46
|
+
* represents a Namespace Identifier (NSID)
|
|
47
|
+
*/
|
|
48
|
+
type Nsid = `${string}.${string}.${string}`;
|
|
49
|
+
/**
|
|
50
|
+
* represents the unique key identifying a specific record within a
|
|
51
|
+
* repository's collection. this is usually a {@link Tid}.
|
|
52
|
+
*/
|
|
53
|
+
type RecordKey = string;
|
|
54
|
+
/**
|
|
55
|
+
* represents a Timestamp Identifier (TID)
|
|
56
|
+
*/
|
|
57
|
+
type Tid = string;
|
|
58
|
+
/**
|
|
59
|
+
* represents a general AT Protocol URI, representing either an entire
|
|
60
|
+
* repository, a specific collection within a repository, or a record.
|
|
61
|
+
*
|
|
62
|
+
* it allows using handles over DIDs, but this means that it won't be stable.
|
|
63
|
+
*/
|
|
64
|
+
type ResourceUri = `at://${Identifier}` | `at://${Identifier}/${Nsid}` | `at://${Identifier}/${Nsid}/${RecordKey}`;
|
|
65
|
+
/**
|
|
66
|
+
* represents a canonical AT Protocol URI for a specific record.
|
|
67
|
+
*
|
|
68
|
+
* this URI format uses the account's DID as the authority, ensuring that
|
|
69
|
+
* the URI remains valid even as the account changes handles, uniquely
|
|
70
|
+
* identifying a specific piece of record within AT Protocol.
|
|
71
|
+
*/
|
|
72
|
+
type CanonicalResourceUri = `at://${Did}/${Nsid}/${RecordKey}`;
|
|
73
|
+
/**
|
|
74
|
+
* represents a generic URI
|
|
75
|
+
*/
|
|
76
|
+
type GenericUri = `${string}:${string}`;
|
|
77
|
+
/**
|
|
78
|
+
* represents a Content Identifier (CID) reference
|
|
79
|
+
*/
|
|
80
|
+
interface CidLink {
|
|
81
|
+
$link: Cid;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* represents an object containing raw binary data encoded as a base64 string
|
|
85
|
+
*/
|
|
40
86
|
interface Bytes {
|
|
41
87
|
$bytes: string;
|
|
42
88
|
}
|
|
43
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* represents a reference to a data blob
|
|
91
|
+
*/
|
|
44
92
|
interface Blob<T extends string = string> {
|
|
45
93
|
$type: 'blob';
|
|
46
94
|
mimeType: T;
|
|
@@ -53,7 +101,7 @@ export declare namespace At {
|
|
|
53
101
|
export declare namespace ComAtprotoAdminDefs {
|
|
54
102
|
interface AccountView {
|
|
55
103
|
[Brand.Type]?: 'com.atproto.admin.defs#accountView';
|
|
56
|
-
did: At.
|
|
104
|
+
did: At.Did;
|
|
57
105
|
handle: At.Handle;
|
|
58
106
|
indexedAt: string;
|
|
59
107
|
deactivatedAt?: string;
|
|
@@ -68,13 +116,13 @@ export declare namespace ComAtprotoAdminDefs {
|
|
|
68
116
|
}
|
|
69
117
|
interface RepoBlobRef {
|
|
70
118
|
[Brand.Type]?: 'com.atproto.admin.defs#repoBlobRef';
|
|
71
|
-
cid: At.
|
|
72
|
-
did: At.
|
|
73
|
-
recordUri?: At.
|
|
119
|
+
cid: At.Cid;
|
|
120
|
+
did: At.Did;
|
|
121
|
+
recordUri?: At.ResourceUri;
|
|
74
122
|
}
|
|
75
123
|
interface RepoRef {
|
|
76
124
|
[Brand.Type]?: 'com.atproto.admin.defs#repoRef';
|
|
77
|
-
did: At.
|
|
125
|
+
did: At.Did;
|
|
78
126
|
}
|
|
79
127
|
interface StatusAttr {
|
|
80
128
|
[Brand.Type]?: 'com.atproto.admin.defs#statusAttr';
|
|
@@ -92,7 +140,7 @@ export declare namespace ComAtprotoAdminDeleteAccount {
|
|
|
92
140
|
interface Params {
|
|
93
141
|
}
|
|
94
142
|
interface Input {
|
|
95
|
-
did: At.
|
|
143
|
+
did: At.Did;
|
|
96
144
|
}
|
|
97
145
|
type Output = undefined;
|
|
98
146
|
}
|
|
@@ -101,7 +149,7 @@ export declare namespace ComAtprotoAdminDisableAccountInvites {
|
|
|
101
149
|
interface Params {
|
|
102
150
|
}
|
|
103
151
|
interface Input {
|
|
104
|
-
account: At.
|
|
152
|
+
account: At.Did;
|
|
105
153
|
/** Optional reason for disabled invites. */
|
|
106
154
|
note?: string;
|
|
107
155
|
}
|
|
@@ -122,7 +170,7 @@ export declare namespace ComAtprotoAdminEnableAccountInvites {
|
|
|
122
170
|
interface Params {
|
|
123
171
|
}
|
|
124
172
|
interface Input {
|
|
125
|
-
account: At.
|
|
173
|
+
account: At.Did;
|
|
126
174
|
/** Optional reason for enabled invites. */
|
|
127
175
|
note?: string;
|
|
128
176
|
}
|
|
@@ -131,7 +179,7 @@ export declare namespace ComAtprotoAdminEnableAccountInvites {
|
|
|
131
179
|
/** Get details about an account. */
|
|
132
180
|
export declare namespace ComAtprotoAdminGetAccountInfo {
|
|
133
181
|
interface Params {
|
|
134
|
-
did: At.
|
|
182
|
+
did: At.Did;
|
|
135
183
|
}
|
|
136
184
|
type Input = undefined;
|
|
137
185
|
type Output = ComAtprotoAdminDefs.AccountView;
|
|
@@ -139,7 +187,7 @@ export declare namespace ComAtprotoAdminGetAccountInfo {
|
|
|
139
187
|
/** Get details about some accounts. */
|
|
140
188
|
export declare namespace ComAtprotoAdminGetAccountInfos {
|
|
141
189
|
interface Params {
|
|
142
|
-
dids: At.
|
|
190
|
+
dids: At.Did[];
|
|
143
191
|
}
|
|
144
192
|
type Input = undefined;
|
|
145
193
|
interface Output {
|
|
@@ -168,9 +216,9 @@ export declare namespace ComAtprotoAdminGetInviteCodes {
|
|
|
168
216
|
/** Get the service-specific admin status of a subject (account, record, or blob). */
|
|
169
217
|
export declare namespace ComAtprotoAdminGetSubjectStatus {
|
|
170
218
|
interface Params {
|
|
171
|
-
blob?: At.
|
|
172
|
-
did?: At.
|
|
173
|
-
uri?: At.
|
|
219
|
+
blob?: At.Cid;
|
|
220
|
+
did?: At.Did;
|
|
221
|
+
uri?: At.ResourceUri;
|
|
174
222
|
}
|
|
175
223
|
type Input = undefined;
|
|
176
224
|
interface Output {
|
|
@@ -203,8 +251,8 @@ export declare namespace ComAtprotoAdminSendEmail {
|
|
|
203
251
|
}
|
|
204
252
|
interface Input {
|
|
205
253
|
content: string;
|
|
206
|
-
recipientDid: At.
|
|
207
|
-
senderDid: At.
|
|
254
|
+
recipientDid: At.Did;
|
|
255
|
+
senderDid: At.Did;
|
|
208
256
|
/** Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers */
|
|
209
257
|
comment?: string;
|
|
210
258
|
subject?: string;
|
|
@@ -219,7 +267,7 @@ export declare namespace ComAtprotoAdminUpdateAccountEmail {
|
|
|
219
267
|
}
|
|
220
268
|
interface Input {
|
|
221
269
|
/** The handle or DID of the repo. */
|
|
222
|
-
account:
|
|
270
|
+
account: At.Identifier;
|
|
223
271
|
email: string;
|
|
224
272
|
}
|
|
225
273
|
type Output = undefined;
|
|
@@ -229,7 +277,7 @@ export declare namespace ComAtprotoAdminUpdateAccountHandle {
|
|
|
229
277
|
interface Params {
|
|
230
278
|
}
|
|
231
279
|
interface Input {
|
|
232
|
-
did: At.
|
|
280
|
+
did: At.Did;
|
|
233
281
|
handle: At.Handle;
|
|
234
282
|
}
|
|
235
283
|
type Output = undefined;
|
|
@@ -239,7 +287,7 @@ export declare namespace ComAtprotoAdminUpdateAccountPassword {
|
|
|
239
287
|
interface Params {
|
|
240
288
|
}
|
|
241
289
|
interface Input {
|
|
242
|
-
did: At.
|
|
290
|
+
did: At.Did;
|
|
243
291
|
password: string;
|
|
244
292
|
}
|
|
245
293
|
type Output = undefined;
|
|
@@ -258,6 +306,16 @@ export declare namespace ComAtprotoAdminUpdateSubjectStatus {
|
|
|
258
306
|
takedown?: ComAtprotoAdminDefs.StatusAttr;
|
|
259
307
|
}
|
|
260
308
|
}
|
|
309
|
+
export declare namespace ComAtprotoIdentityDefs {
|
|
310
|
+
interface IdentityInfo {
|
|
311
|
+
[Brand.Type]?: 'com.atproto.identity.defs#identityInfo';
|
|
312
|
+
did: At.Did;
|
|
313
|
+
/** The complete DID document for the identity. */
|
|
314
|
+
didDoc: unknown;
|
|
315
|
+
/** The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. */
|
|
316
|
+
handle: At.Handle;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
261
319
|
/** Describe the credentials that should be included in the DID doc of an account that is migrating to this service. */
|
|
262
320
|
export declare namespace ComAtprotoIdentityGetRecommendedDidCredentials {
|
|
263
321
|
interface Params {
|
|
@@ -271,6 +329,20 @@ export declare namespace ComAtprotoIdentityGetRecommendedDidCredentials {
|
|
|
271
329
|
verificationMethods?: unknown;
|
|
272
330
|
}
|
|
273
331
|
}
|
|
332
|
+
/** Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server. */
|
|
333
|
+
export declare namespace ComAtprotoIdentityRefreshIdentity {
|
|
334
|
+
interface Params {
|
|
335
|
+
}
|
|
336
|
+
interface Input {
|
|
337
|
+
identifier: At.Identifier;
|
|
338
|
+
}
|
|
339
|
+
type Output = ComAtprotoIdentityDefs.IdentityInfo;
|
|
340
|
+
interface Errors {
|
|
341
|
+
HandleNotFound: {};
|
|
342
|
+
DidNotFound: {};
|
|
343
|
+
DidDeactivated: {};
|
|
344
|
+
}
|
|
345
|
+
}
|
|
274
346
|
/** Request an email with a code to in order to request a signed PLC operation. Requires Auth. */
|
|
275
347
|
export declare namespace ComAtprotoIdentityRequestPlcOperationSignature {
|
|
276
348
|
interface Params {
|
|
@@ -278,7 +350,23 @@ export declare namespace ComAtprotoIdentityRequestPlcOperationSignature {
|
|
|
278
350
|
type Input = undefined;
|
|
279
351
|
type Output = undefined;
|
|
280
352
|
}
|
|
281
|
-
/** Resolves
|
|
353
|
+
/** Resolves DID to DID document. Does not bi-directionally verify handle. */
|
|
354
|
+
export declare namespace ComAtprotoIdentityResolveDid {
|
|
355
|
+
interface Params {
|
|
356
|
+
/** DID to resolve. */
|
|
357
|
+
did: At.Did;
|
|
358
|
+
}
|
|
359
|
+
type Input = undefined;
|
|
360
|
+
interface Output {
|
|
361
|
+
/** The complete DID document for the identity. */
|
|
362
|
+
didDoc: unknown;
|
|
363
|
+
}
|
|
364
|
+
interface Errors {
|
|
365
|
+
DidNotFound: {};
|
|
366
|
+
DidDeactivated: {};
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
/** Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document. */
|
|
282
370
|
export declare namespace ComAtprotoIdentityResolveHandle {
|
|
283
371
|
interface Params {
|
|
284
372
|
/** The handle to resolve. */
|
|
@@ -286,7 +374,24 @@ export declare namespace ComAtprotoIdentityResolveHandle {
|
|
|
286
374
|
}
|
|
287
375
|
type Input = undefined;
|
|
288
376
|
interface Output {
|
|
289
|
-
did: At.
|
|
377
|
+
did: At.Did;
|
|
378
|
+
}
|
|
379
|
+
interface Errors {
|
|
380
|
+
HandleNotFound: {};
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
/** Resolves an identity (DID or Handle) to a full identity (DID document and verified handle). */
|
|
384
|
+
export declare namespace ComAtprotoIdentityResolveIdentity {
|
|
385
|
+
interface Params {
|
|
386
|
+
/** Handle or DID to resolve. */
|
|
387
|
+
identifier: At.Identifier;
|
|
388
|
+
}
|
|
389
|
+
type Input = undefined;
|
|
390
|
+
type Output = ComAtprotoIdentityDefs.IdentityInfo;
|
|
391
|
+
interface Errors {
|
|
392
|
+
HandleNotFound: {};
|
|
393
|
+
DidNotFound: {};
|
|
394
|
+
DidDeactivated: {};
|
|
290
395
|
}
|
|
291
396
|
}
|
|
292
397
|
/** Signs a PLC operation to update some value(s) in the requesting DID's document. */
|
|
@@ -332,16 +437,16 @@ export declare namespace ComAtprotoLabelDefs {
|
|
|
332
437
|
/** Timestamp when this label was created. */
|
|
333
438
|
cts: string;
|
|
334
439
|
/** DID of the actor who created this label. */
|
|
335
|
-
src: At.
|
|
440
|
+
src: At.Did;
|
|
336
441
|
/** AT URI of the record, repository (account), or other resource that this label applies to. */
|
|
337
|
-
uri:
|
|
442
|
+
uri: At.GenericUri;
|
|
338
443
|
/**
|
|
339
444
|
* The short string name of the value or type of this label. \
|
|
340
445
|
* Maximum string length: 128
|
|
341
446
|
*/
|
|
342
447
|
val: string;
|
|
343
448
|
/** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */
|
|
344
|
-
cid?: At.
|
|
449
|
+
cid?: At.Cid;
|
|
345
450
|
/** Timestamp at which this label expires (no longer applies). */
|
|
346
451
|
exp?: string;
|
|
347
452
|
/** If true, this is a negation label, overwriting a previous label. */
|
|
@@ -421,7 +526,7 @@ export declare namespace ComAtprotoLabelQueryLabels {
|
|
|
421
526
|
*/
|
|
422
527
|
limit?: number;
|
|
423
528
|
/** Optional list of label sources (DIDs) to filter on. */
|
|
424
|
-
sources?: At.
|
|
529
|
+
sources?: At.Did[];
|
|
425
530
|
}
|
|
426
531
|
type Input = undefined;
|
|
427
532
|
interface Output {
|
|
@@ -468,7 +573,7 @@ export declare namespace ComAtprotoModerationCreateReport {
|
|
|
468
573
|
createdAt: string;
|
|
469
574
|
id: number;
|
|
470
575
|
reasonType: ComAtprotoModerationDefs.ReasonType;
|
|
471
|
-
reportedBy: At.
|
|
576
|
+
reportedBy: At.Did;
|
|
472
577
|
subject: Brand.Union<ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main>;
|
|
473
578
|
/**
|
|
474
579
|
* Maximum string length: 20000 \
|
|
@@ -486,6 +591,8 @@ export declare namespace ComAtprotoModerationDefs {
|
|
|
486
591
|
type ReasonSpam = 'com.atproto.moderation.defs#reasonSpam';
|
|
487
592
|
type ReasonType = 'com.atproto.moderation.defs#reasonAppeal' | 'com.atproto.moderation.defs#reasonMisleading' | 'com.atproto.moderation.defs#reasonOther' | 'com.atproto.moderation.defs#reasonRude' | 'com.atproto.moderation.defs#reasonSexual' | 'com.atproto.moderation.defs#reasonSpam' | 'com.atproto.moderation.defs#reasonViolation' | (string & {});
|
|
488
593
|
type ReasonViolation = 'com.atproto.moderation.defs#reasonViolation';
|
|
594
|
+
/** Tag describing a type of subject that might be reported. */
|
|
595
|
+
type SubjectType = 'account' | 'chat' | 'record' | (string & {});
|
|
489
596
|
}
|
|
490
597
|
/** Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS. */
|
|
491
598
|
export declare namespace ComAtprotoRepoApplyWrites {
|
|
@@ -493,10 +600,10 @@ export declare namespace ComAtprotoRepoApplyWrites {
|
|
|
493
600
|
}
|
|
494
601
|
interface Input {
|
|
495
602
|
/** The handle or DID of the repo (aka, current account). */
|
|
496
|
-
repo:
|
|
603
|
+
repo: At.Identifier;
|
|
497
604
|
writes: Brand.Union<Create | Delete | Update>[];
|
|
498
605
|
/** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
|
|
499
|
-
swapCommit?: At.
|
|
606
|
+
swapCommit?: At.Cid;
|
|
500
607
|
/** 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. */
|
|
501
608
|
validate?: boolean;
|
|
502
609
|
}
|
|
@@ -510,22 +617,22 @@ export declare namespace ComAtprotoRepoApplyWrites {
|
|
|
510
617
|
/** Operation which creates a new record. */
|
|
511
618
|
interface Create {
|
|
512
619
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#create';
|
|
513
|
-
collection:
|
|
620
|
+
collection: At.Nsid;
|
|
514
621
|
value: unknown;
|
|
515
622
|
/** NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. */
|
|
516
|
-
rkey?:
|
|
623
|
+
rkey?: At.RecordKey;
|
|
517
624
|
}
|
|
518
625
|
interface CreateResult {
|
|
519
626
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#createResult';
|
|
520
|
-
cid: At.
|
|
521
|
-
uri: At.
|
|
627
|
+
cid: At.Cid;
|
|
628
|
+
uri: At.ResourceUri;
|
|
522
629
|
validationStatus?: 'unknown' | 'valid' | (string & {});
|
|
523
630
|
}
|
|
524
631
|
/** Operation which deletes an existing record. */
|
|
525
632
|
interface Delete {
|
|
526
633
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#delete';
|
|
527
|
-
collection:
|
|
528
|
-
rkey:
|
|
634
|
+
collection: At.Nsid;
|
|
635
|
+
rkey: At.RecordKey;
|
|
529
636
|
}
|
|
530
637
|
interface DeleteResult {
|
|
531
638
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#deleteResult';
|
|
@@ -533,14 +640,14 @@ export declare namespace ComAtprotoRepoApplyWrites {
|
|
|
533
640
|
/** Operation which updates an existing record. */
|
|
534
641
|
interface Update {
|
|
535
642
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#update';
|
|
536
|
-
collection:
|
|
537
|
-
rkey:
|
|
643
|
+
collection: At.Nsid;
|
|
644
|
+
rkey: At.RecordKey;
|
|
538
645
|
value: unknown;
|
|
539
646
|
}
|
|
540
647
|
interface UpdateResult {
|
|
541
648
|
[Brand.Type]?: 'com.atproto.repo.applyWrites#updateResult';
|
|
542
|
-
cid: At.
|
|
543
|
-
uri: At.
|
|
649
|
+
cid: At.Cid;
|
|
650
|
+
uri: At.ResourceUri;
|
|
544
651
|
validationStatus?: 'unknown' | 'valid' | (string & {});
|
|
545
652
|
}
|
|
546
653
|
}
|
|
@@ -550,21 +657,21 @@ export declare namespace ComAtprotoRepoCreateRecord {
|
|
|
550
657
|
}
|
|
551
658
|
interface Input {
|
|
552
659
|
/** The NSID of the record collection. */
|
|
553
|
-
collection:
|
|
660
|
+
collection: At.Nsid;
|
|
554
661
|
/** The record itself. Must contain a $type field. */
|
|
555
662
|
record: unknown;
|
|
556
663
|
/** The handle or DID of the repo (aka, current account). */
|
|
557
|
-
repo:
|
|
664
|
+
repo: At.Identifier;
|
|
558
665
|
/** The Record Key. */
|
|
559
|
-
rkey?:
|
|
666
|
+
rkey?: At.RecordKey;
|
|
560
667
|
/** Compare and swap with the previous commit by CID. */
|
|
561
|
-
swapCommit?: At.
|
|
668
|
+
swapCommit?: At.Cid;
|
|
562
669
|
/** 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. */
|
|
563
670
|
validate?: boolean;
|
|
564
671
|
}
|
|
565
672
|
interface Output {
|
|
566
|
-
cid: At.
|
|
567
|
-
uri: At.
|
|
673
|
+
cid: At.Cid;
|
|
674
|
+
uri: At.ResourceUri;
|
|
568
675
|
commit?: ComAtprotoRepoDefs.CommitMeta;
|
|
569
676
|
validationStatus?: 'unknown' | 'valid' | (string & {});
|
|
570
677
|
}
|
|
@@ -575,8 +682,8 @@ export declare namespace ComAtprotoRepoCreateRecord {
|
|
|
575
682
|
export declare namespace ComAtprotoRepoDefs {
|
|
576
683
|
interface CommitMeta {
|
|
577
684
|
[Brand.Type]?: 'com.atproto.repo.defs#commitMeta';
|
|
578
|
-
cid: At.
|
|
579
|
-
rev:
|
|
685
|
+
cid: At.Cid;
|
|
686
|
+
rev: At.Tid;
|
|
580
687
|
}
|
|
581
688
|
}
|
|
582
689
|
/** Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS. */
|
|
@@ -585,15 +692,15 @@ export declare namespace ComAtprotoRepoDeleteRecord {
|
|
|
585
692
|
}
|
|
586
693
|
interface Input {
|
|
587
694
|
/** The NSID of the record collection. */
|
|
588
|
-
collection:
|
|
695
|
+
collection: At.Nsid;
|
|
589
696
|
/** The handle or DID of the repo (aka, current account). */
|
|
590
|
-
repo:
|
|
697
|
+
repo: At.Identifier;
|
|
591
698
|
/** The Record Key. */
|
|
592
|
-
rkey:
|
|
699
|
+
rkey: At.RecordKey;
|
|
593
700
|
/** Compare and swap with the previous commit by CID. */
|
|
594
|
-
swapCommit?: At.
|
|
701
|
+
swapCommit?: At.Cid;
|
|
595
702
|
/** Compare and swap with the previous record by CID. */
|
|
596
|
-
swapRecord?: At.
|
|
703
|
+
swapRecord?: At.Cid;
|
|
597
704
|
}
|
|
598
705
|
interface Output {
|
|
599
706
|
commit?: ComAtprotoRepoDefs.CommitMeta;
|
|
@@ -606,13 +713,13 @@ export declare namespace ComAtprotoRepoDeleteRecord {
|
|
|
606
713
|
export declare namespace ComAtprotoRepoDescribeRepo {
|
|
607
714
|
interface Params {
|
|
608
715
|
/** The handle or DID of the repo. */
|
|
609
|
-
repo:
|
|
716
|
+
repo: At.Identifier;
|
|
610
717
|
}
|
|
611
718
|
type Input = undefined;
|
|
612
719
|
interface Output {
|
|
613
720
|
/** List of all the collections (NSIDs) for which this repo contains at least one record. */
|
|
614
|
-
collections:
|
|
615
|
-
did: At.
|
|
721
|
+
collections: At.Nsid[];
|
|
722
|
+
did: At.Did;
|
|
616
723
|
/** The complete DID document for this account. */
|
|
617
724
|
didDoc: unknown;
|
|
618
725
|
handle: At.Handle;
|
|
@@ -624,19 +731,19 @@ export declare namespace ComAtprotoRepoDescribeRepo {
|
|
|
624
731
|
export declare namespace ComAtprotoRepoGetRecord {
|
|
625
732
|
interface Params {
|
|
626
733
|
/** The NSID of the record collection. */
|
|
627
|
-
collection:
|
|
734
|
+
collection: At.Nsid;
|
|
628
735
|
/** The handle or DID of the repo. */
|
|
629
|
-
repo:
|
|
736
|
+
repo: At.Identifier;
|
|
630
737
|
/** The Record Key. */
|
|
631
|
-
rkey:
|
|
738
|
+
rkey: At.RecordKey;
|
|
632
739
|
/** The CID of the version of the record. If not specified, then return the most recent version. */
|
|
633
|
-
cid?: At.
|
|
740
|
+
cid?: At.Cid;
|
|
634
741
|
}
|
|
635
742
|
type Input = undefined;
|
|
636
743
|
interface Output {
|
|
637
|
-
uri: At.
|
|
744
|
+
uri: At.ResourceUri;
|
|
638
745
|
value: unknown;
|
|
639
|
-
cid?: At.
|
|
746
|
+
cid?: At.Cid;
|
|
640
747
|
}
|
|
641
748
|
interface Errors {
|
|
642
749
|
RecordNotFound: {};
|
|
@@ -646,7 +753,7 @@ export declare namespace ComAtprotoRepoGetRecord {
|
|
|
646
753
|
export declare namespace ComAtprotoRepoImportRepo {
|
|
647
754
|
interface Params {
|
|
648
755
|
}
|
|
649
|
-
type Input = Blob |
|
|
756
|
+
type Input = Blob | BufferSource | ReadableStream;
|
|
650
757
|
type Output = undefined;
|
|
651
758
|
}
|
|
652
759
|
/** Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow. */
|
|
@@ -667,17 +774,17 @@ export declare namespace ComAtprotoRepoListMissingBlobs {
|
|
|
667
774
|
}
|
|
668
775
|
interface RecordBlob {
|
|
669
776
|
[Brand.Type]?: 'com.atproto.repo.listMissingBlobs#recordBlob';
|
|
670
|
-
cid: At.
|
|
671
|
-
recordUri: At.
|
|
777
|
+
cid: At.Cid;
|
|
778
|
+
recordUri: At.ResourceUri;
|
|
672
779
|
}
|
|
673
780
|
}
|
|
674
781
|
/** List a range of records in a repository, matching a specific collection. Does not require auth. */
|
|
675
782
|
export declare namespace ComAtprotoRepoListRecords {
|
|
676
783
|
interface Params {
|
|
677
784
|
/** The NSID of the record type. */
|
|
678
|
-
collection:
|
|
785
|
+
collection: At.Nsid;
|
|
679
786
|
/** The handle or DID of the repo. */
|
|
680
|
-
repo:
|
|
787
|
+
repo: At.Identifier;
|
|
681
788
|
cursor?: string;
|
|
682
789
|
/**
|
|
683
790
|
* The number of records to return. \
|
|
@@ -688,16 +795,6 @@ export declare namespace ComAtprotoRepoListRecords {
|
|
|
688
795
|
limit?: number;
|
|
689
796
|
/** Flag to reverse the order of the returned records. */
|
|
690
797
|
reverse?: boolean;
|
|
691
|
-
/**
|
|
692
|
-
* DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)
|
|
693
|
-
* @deprecated
|
|
694
|
-
*/
|
|
695
|
-
rkeyEnd?: string;
|
|
696
|
-
/**
|
|
697
|
-
* DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)
|
|
698
|
-
* @deprecated
|
|
699
|
-
*/
|
|
700
|
-
rkeyStart?: string;
|
|
701
798
|
}
|
|
702
799
|
type Input = undefined;
|
|
703
800
|
interface Output {
|
|
@@ -706,8 +803,8 @@ export declare namespace ComAtprotoRepoListRecords {
|
|
|
706
803
|
}
|
|
707
804
|
interface Record {
|
|
708
805
|
[Brand.Type]?: 'com.atproto.repo.listRecords#record';
|
|
709
|
-
cid: At.
|
|
710
|
-
uri: At.
|
|
806
|
+
cid: At.Cid;
|
|
807
|
+
uri: At.ResourceUri;
|
|
711
808
|
value: unknown;
|
|
712
809
|
}
|
|
713
810
|
}
|
|
@@ -717,23 +814,23 @@ export declare namespace ComAtprotoRepoPutRecord {
|
|
|
717
814
|
}
|
|
718
815
|
interface Input {
|
|
719
816
|
/** The NSID of the record collection. */
|
|
720
|
-
collection:
|
|
817
|
+
collection: At.Nsid;
|
|
721
818
|
/** The record to write. */
|
|
722
819
|
record: unknown;
|
|
723
820
|
/** The handle or DID of the repo (aka, current account). */
|
|
724
|
-
repo:
|
|
821
|
+
repo: At.Identifier;
|
|
725
822
|
/** The Record Key. */
|
|
726
|
-
rkey:
|
|
823
|
+
rkey: At.RecordKey;
|
|
727
824
|
/** Compare and swap with the previous commit by CID. */
|
|
728
|
-
swapCommit?: At.
|
|
825
|
+
swapCommit?: At.Cid;
|
|
729
826
|
/** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
|
|
730
|
-
swapRecord?: At.
|
|
827
|
+
swapRecord?: At.Cid | null;
|
|
731
828
|
/** 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. */
|
|
732
829
|
validate?: boolean;
|
|
733
830
|
}
|
|
734
831
|
interface Output {
|
|
735
|
-
cid: At.
|
|
736
|
-
uri: At.
|
|
832
|
+
cid: At.Cid;
|
|
833
|
+
uri: At.ResourceUri;
|
|
737
834
|
commit?: ComAtprotoRepoDefs.CommitMeta;
|
|
738
835
|
validationStatus?: 'unknown' | 'valid' | (string & {});
|
|
739
836
|
}
|
|
@@ -744,15 +841,15 @@ export declare namespace ComAtprotoRepoPutRecord {
|
|
|
744
841
|
export declare namespace ComAtprotoRepoStrongRef {
|
|
745
842
|
interface Main {
|
|
746
843
|
[Brand.Type]?: 'com.atproto.repo.strongRef';
|
|
747
|
-
cid: At.
|
|
748
|
-
uri: At.
|
|
844
|
+
cid: At.Cid;
|
|
845
|
+
uri: At.ResourceUri;
|
|
749
846
|
}
|
|
750
847
|
}
|
|
751
848
|
/** 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. */
|
|
752
849
|
export declare namespace ComAtprotoRepoUploadBlob {
|
|
753
850
|
interface Params {
|
|
754
851
|
}
|
|
755
|
-
type Input = Blob |
|
|
852
|
+
type Input = Blob | BufferSource | ReadableStream;
|
|
756
853
|
interface Output {
|
|
757
854
|
blob: At.Blob;
|
|
758
855
|
}
|
|
@@ -776,7 +873,7 @@ export declare namespace ComAtprotoServerCheckAccountStatus {
|
|
|
776
873
|
indexedRecords: number;
|
|
777
874
|
privateStateValues: number;
|
|
778
875
|
repoBlocks: number;
|
|
779
|
-
repoCommit: At.
|
|
876
|
+
repoCommit: At.Cid;
|
|
780
877
|
repoRev: string;
|
|
781
878
|
validDid: boolean;
|
|
782
879
|
}
|
|
@@ -805,7 +902,7 @@ export declare namespace ComAtprotoServerCreateAccount {
|
|
|
805
902
|
/** Requested handle for the account. */
|
|
806
903
|
handle: At.Handle;
|
|
807
904
|
/** Pre-existing atproto DID, being imported to a new account. */
|
|
808
|
-
did?: At.
|
|
905
|
+
did?: At.Did;
|
|
809
906
|
email?: string;
|
|
810
907
|
inviteCode?: string;
|
|
811
908
|
/** Initial account password. May need to meet instance-specific password strength requirements. */
|
|
@@ -821,7 +918,7 @@ export declare namespace ComAtprotoServerCreateAccount {
|
|
|
821
918
|
interface Output {
|
|
822
919
|
accessJwt: string;
|
|
823
920
|
/** The DID of the new account. */
|
|
824
|
-
did: At.
|
|
921
|
+
did: At.Did;
|
|
825
922
|
handle: At.Handle;
|
|
826
923
|
refreshJwt: string;
|
|
827
924
|
/** Complete DID document. */
|
|
@@ -865,7 +962,7 @@ export declare namespace ComAtprotoServerCreateInviteCode {
|
|
|
865
962
|
}
|
|
866
963
|
interface Input {
|
|
867
964
|
useCount: number;
|
|
868
|
-
forAccount?: At.
|
|
965
|
+
forAccount?: At.Did;
|
|
869
966
|
}
|
|
870
967
|
interface Output {
|
|
871
968
|
code: string;
|
|
@@ -879,7 +976,7 @@ export declare namespace ComAtprotoServerCreateInviteCodes {
|
|
|
879
976
|
/** @default 1 */
|
|
880
977
|
codeCount: number;
|
|
881
978
|
useCount: number;
|
|
882
|
-
forAccounts?: At.
|
|
979
|
+
forAccounts?: At.Did[];
|
|
883
980
|
}
|
|
884
981
|
interface Output {
|
|
885
982
|
codes: AccountCodes[];
|
|
@@ -904,7 +1001,7 @@ export declare namespace ComAtprotoServerCreateSession {
|
|
|
904
1001
|
}
|
|
905
1002
|
interface Output {
|
|
906
1003
|
accessJwt: string;
|
|
907
|
-
did: At.
|
|
1004
|
+
did: At.Did;
|
|
908
1005
|
handle: At.Handle;
|
|
909
1006
|
refreshJwt: string;
|
|
910
1007
|
active?: boolean;
|
|
@@ -944,7 +1041,7 @@ export declare namespace ComAtprotoServerDefs {
|
|
|
944
1041
|
interface InviteCodeUse {
|
|
945
1042
|
[Brand.Type]?: 'com.atproto.server.defs#inviteCodeUse';
|
|
946
1043
|
usedAt: string;
|
|
947
|
-
usedBy: At.
|
|
1044
|
+
usedBy: At.Did;
|
|
948
1045
|
}
|
|
949
1046
|
}
|
|
950
1047
|
/** Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth. */
|
|
@@ -952,7 +1049,7 @@ export declare namespace ComAtprotoServerDeleteAccount {
|
|
|
952
1049
|
interface Params {
|
|
953
1050
|
}
|
|
954
1051
|
interface Input {
|
|
955
|
-
did: At.
|
|
1052
|
+
did: At.Did;
|
|
956
1053
|
password: string;
|
|
957
1054
|
token: string;
|
|
958
1055
|
}
|
|
@@ -977,7 +1074,7 @@ export declare namespace ComAtprotoServerDescribeServer {
|
|
|
977
1074
|
interface Output {
|
|
978
1075
|
/** List of domain suffixes that can be used in account handles. */
|
|
979
1076
|
availableUserDomains: string[];
|
|
980
|
-
did: At.
|
|
1077
|
+
did: At.Did;
|
|
981
1078
|
/** Contact information */
|
|
982
1079
|
contact?: Contact;
|
|
983
1080
|
/** If true, an invite code must be supplied to create an account on this instance. */
|
|
@@ -993,8 +1090,8 @@ export declare namespace ComAtprotoServerDescribeServer {
|
|
|
993
1090
|
}
|
|
994
1091
|
interface Links {
|
|
995
1092
|
[Brand.Type]?: 'com.atproto.server.describeServer#links';
|
|
996
|
-
privacyPolicy?:
|
|
997
|
-
termsOfService?:
|
|
1093
|
+
privacyPolicy?: At.GenericUri;
|
|
1094
|
+
termsOfService?: At.GenericUri;
|
|
998
1095
|
}
|
|
999
1096
|
}
|
|
1000
1097
|
/** Get all invite codes for the current account. Requires auth. */
|
|
@@ -1020,11 +1117,11 @@ export declare namespace ComAtprotoServerGetAccountInviteCodes {
|
|
|
1020
1117
|
export declare namespace ComAtprotoServerGetServiceAuth {
|
|
1021
1118
|
interface Params {
|
|
1022
1119
|
/** The DID of the service that the token will be used to authenticate with */
|
|
1023
|
-
aud: At.
|
|
1120
|
+
aud: At.Did;
|
|
1024
1121
|
/** 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. */
|
|
1025
1122
|
exp?: number;
|
|
1026
1123
|
/** Lexicon (XRPC) method to bind the requested token to */
|
|
1027
|
-
lxm?:
|
|
1124
|
+
lxm?: At.Nsid;
|
|
1028
1125
|
}
|
|
1029
1126
|
type Input = undefined;
|
|
1030
1127
|
interface Output {
|
|
@@ -1040,7 +1137,7 @@ export declare namespace ComAtprotoServerGetSession {
|
|
|
1040
1137
|
}
|
|
1041
1138
|
type Input = undefined;
|
|
1042
1139
|
interface Output {
|
|
1043
|
-
did: At.
|
|
1140
|
+
did: At.Did;
|
|
1044
1141
|
handle: At.Handle;
|
|
1045
1142
|
active?: boolean;
|
|
1046
1143
|
didDoc?: unknown;
|
|
@@ -1076,7 +1173,7 @@ export declare namespace ComAtprotoServerRefreshSession {
|
|
|
1076
1173
|
type Input = undefined;
|
|
1077
1174
|
interface Output {
|
|
1078
1175
|
accessJwt: string;
|
|
1079
|
-
did: At.
|
|
1176
|
+
did: At.Did;
|
|
1080
1177
|
handle: At.Handle;
|
|
1081
1178
|
refreshJwt: string;
|
|
1082
1179
|
active?: boolean;
|
|
@@ -1126,7 +1223,7 @@ export declare namespace ComAtprotoServerReserveSigningKey {
|
|
|
1126
1223
|
}
|
|
1127
1224
|
interface Input {
|
|
1128
1225
|
/** The DID to reserve a key for. */
|
|
1129
|
-
did?: At.
|
|
1226
|
+
did?: At.Did;
|
|
1130
1227
|
}
|
|
1131
1228
|
interface Output {
|
|
1132
1229
|
/** The public key for the reserved signing key, in did:key serialization. */
|
|
@@ -1177,9 +1274,9 @@ export declare namespace ComAtprotoServerUpdateEmail {
|
|
|
1177
1274
|
export declare namespace ComAtprotoSyncGetBlob {
|
|
1178
1275
|
interface Params {
|
|
1179
1276
|
/** The CID of the blob to fetch */
|
|
1180
|
-
cid: At.
|
|
1277
|
+
cid: At.Cid;
|
|
1181
1278
|
/** The DID of the account. */
|
|
1182
|
-
did: At.
|
|
1279
|
+
did: At.Did;
|
|
1183
1280
|
}
|
|
1184
1281
|
type Input = undefined;
|
|
1185
1282
|
type Output = Uint8Array;
|
|
@@ -1194,9 +1291,9 @@ export declare namespace ComAtprotoSyncGetBlob {
|
|
|
1194
1291
|
/** Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS. */
|
|
1195
1292
|
export declare namespace ComAtprotoSyncGetBlocks {
|
|
1196
1293
|
interface Params {
|
|
1197
|
-
cids: At.
|
|
1294
|
+
cids: At.Cid[];
|
|
1198
1295
|
/** The DID of the repo. */
|
|
1199
|
-
did: At.
|
|
1296
|
+
did: At.Did;
|
|
1200
1297
|
}
|
|
1201
1298
|
type Input = undefined;
|
|
1202
1299
|
type Output = Uint8Array;
|
|
@@ -1215,7 +1312,7 @@ export declare namespace ComAtprotoSyncGetBlocks {
|
|
|
1215
1312
|
export declare namespace ComAtprotoSyncGetCheckout {
|
|
1216
1313
|
interface Params {
|
|
1217
1314
|
/** The DID of the repo. */
|
|
1218
|
-
did: At.
|
|
1315
|
+
did: At.Did;
|
|
1219
1316
|
}
|
|
1220
1317
|
type Input = undefined;
|
|
1221
1318
|
type Output = Uint8Array;
|
|
@@ -1227,11 +1324,11 @@ export declare namespace ComAtprotoSyncGetCheckout {
|
|
|
1227
1324
|
export declare namespace ComAtprotoSyncGetHead {
|
|
1228
1325
|
interface Params {
|
|
1229
1326
|
/** The DID of the repo. */
|
|
1230
|
-
did: At.
|
|
1327
|
+
did: At.Did;
|
|
1231
1328
|
}
|
|
1232
1329
|
type Input = undefined;
|
|
1233
1330
|
interface Output {
|
|
1234
|
-
root: At.
|
|
1331
|
+
root: At.Cid;
|
|
1235
1332
|
}
|
|
1236
1333
|
interface Errors {
|
|
1237
1334
|
HeadNotFound: {};
|
|
@@ -1241,12 +1338,12 @@ export declare namespace ComAtprotoSyncGetHead {
|
|
|
1241
1338
|
export declare namespace ComAtprotoSyncGetLatestCommit {
|
|
1242
1339
|
interface Params {
|
|
1243
1340
|
/** The DID of the repo. */
|
|
1244
|
-
did: At.
|
|
1341
|
+
did: At.Did;
|
|
1245
1342
|
}
|
|
1246
1343
|
type Input = undefined;
|
|
1247
1344
|
interface Output {
|
|
1248
|
-
cid: At.
|
|
1249
|
-
rev:
|
|
1345
|
+
cid: At.Cid;
|
|
1346
|
+
rev: At.Tid;
|
|
1250
1347
|
}
|
|
1251
1348
|
interface Errors {
|
|
1252
1349
|
RepoNotFound: {};
|
|
@@ -1258,16 +1355,11 @@ export declare namespace ComAtprotoSyncGetLatestCommit {
|
|
|
1258
1355
|
/** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
|
|
1259
1356
|
export declare namespace ComAtprotoSyncGetRecord {
|
|
1260
1357
|
interface Params {
|
|
1261
|
-
collection:
|
|
1358
|
+
collection: At.Nsid;
|
|
1262
1359
|
/** The DID of the repo. */
|
|
1263
|
-
did: At.
|
|
1360
|
+
did: At.Did;
|
|
1264
1361
|
/** Record Key */
|
|
1265
|
-
rkey:
|
|
1266
|
-
/**
|
|
1267
|
-
* DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit
|
|
1268
|
-
* @deprecated
|
|
1269
|
-
*/
|
|
1270
|
-
commit?: At.CID;
|
|
1362
|
+
rkey: At.RecordKey;
|
|
1271
1363
|
}
|
|
1272
1364
|
type Input = undefined;
|
|
1273
1365
|
type Output = Uint8Array;
|
|
@@ -1283,9 +1375,9 @@ export declare namespace ComAtprotoSyncGetRecord {
|
|
|
1283
1375
|
export declare namespace ComAtprotoSyncGetRepo {
|
|
1284
1376
|
interface Params {
|
|
1285
1377
|
/** The DID of the repo. */
|
|
1286
|
-
did: At.
|
|
1378
|
+
did: At.Did;
|
|
1287
1379
|
/** The revision ('rev') of the repo to create a diff from. */
|
|
1288
|
-
since?:
|
|
1380
|
+
since?: At.Tid;
|
|
1289
1381
|
}
|
|
1290
1382
|
type Input = undefined;
|
|
1291
1383
|
type Output = Uint8Array;
|
|
@@ -1300,14 +1392,14 @@ export declare namespace ComAtprotoSyncGetRepo {
|
|
|
1300
1392
|
export declare namespace ComAtprotoSyncGetRepoStatus {
|
|
1301
1393
|
interface Params {
|
|
1302
1394
|
/** The DID of the repo. */
|
|
1303
|
-
did: At.
|
|
1395
|
+
did: At.Did;
|
|
1304
1396
|
}
|
|
1305
1397
|
type Input = undefined;
|
|
1306
1398
|
interface Output {
|
|
1307
1399
|
active: boolean;
|
|
1308
|
-
did: At.
|
|
1400
|
+
did: At.Did;
|
|
1309
1401
|
/** Optional field, the current rev of the repo, if active=true */
|
|
1310
|
-
rev?:
|
|
1402
|
+
rev?: At.Tid;
|
|
1311
1403
|
/** 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. */
|
|
1312
1404
|
status?: 'deactivated' | 'deleted' | 'desynchronized' | 'suspended' | 'takendown' | 'throttled' | (string & {});
|
|
1313
1405
|
}
|
|
@@ -1319,7 +1411,7 @@ export declare namespace ComAtprotoSyncGetRepoStatus {
|
|
|
1319
1411
|
export declare namespace ComAtprotoSyncListBlobs {
|
|
1320
1412
|
interface Params {
|
|
1321
1413
|
/** The DID of the repo. */
|
|
1322
|
-
did: At.
|
|
1414
|
+
did: At.Did;
|
|
1323
1415
|
cursor?: string;
|
|
1324
1416
|
/**
|
|
1325
1417
|
* Minimum: 1 \
|
|
@@ -1328,11 +1420,11 @@ export declare namespace ComAtprotoSyncListBlobs {
|
|
|
1328
1420
|
*/
|
|
1329
1421
|
limit?: number;
|
|
1330
1422
|
/** Optional revision of the repo to list blobs since. */
|
|
1331
|
-
since?:
|
|
1423
|
+
since?: At.Tid;
|
|
1332
1424
|
}
|
|
1333
1425
|
type Input = undefined;
|
|
1334
1426
|
interface Output {
|
|
1335
|
-
cids: At.
|
|
1427
|
+
cids: At.Cid[];
|
|
1336
1428
|
cursor?: string;
|
|
1337
1429
|
}
|
|
1338
1430
|
interface Errors {
|
|
@@ -1360,10 +1452,10 @@ export declare namespace ComAtprotoSyncListRepos {
|
|
|
1360
1452
|
}
|
|
1361
1453
|
interface Repo {
|
|
1362
1454
|
[Brand.Type]?: 'com.atproto.sync.listRepos#repo';
|
|
1363
|
-
did: At.
|
|
1455
|
+
did: At.Did;
|
|
1364
1456
|
/** Current repo commit CID */
|
|
1365
|
-
head: At.
|
|
1366
|
-
rev:
|
|
1457
|
+
head: At.Cid;
|
|
1458
|
+
rev: At.Tid;
|
|
1367
1459
|
active?: boolean;
|
|
1368
1460
|
/** 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. */
|
|
1369
1461
|
status?: 'deactivated' | 'deleted' | 'desynchronized' | 'suspended' | 'takendown' | 'throttled' | (string & {});
|
|
@@ -1372,7 +1464,7 @@ export declare namespace ComAtprotoSyncListRepos {
|
|
|
1372
1464
|
/** Enumerates all the DIDs which have records with the given collection NSID. */
|
|
1373
1465
|
export declare namespace ComAtprotoSyncListReposByCollection {
|
|
1374
1466
|
interface Params {
|
|
1375
|
-
collection:
|
|
1467
|
+
collection: At.Nsid;
|
|
1376
1468
|
cursor?: string;
|
|
1377
1469
|
/**
|
|
1378
1470
|
* Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists. \
|
|
@@ -1389,10 +1481,10 @@ export declare namespace ComAtprotoSyncListReposByCollection {
|
|
|
1389
1481
|
}
|
|
1390
1482
|
interface Repo {
|
|
1391
1483
|
[Brand.Type]?: 'com.atproto.sync.listReposByCollection#repo';
|
|
1392
|
-
did: At.
|
|
1484
|
+
did: At.Did;
|
|
1393
1485
|
}
|
|
1394
1486
|
}
|
|
1395
|
-
/** 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. */
|
|
1487
|
+
/** 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. DEPRECATED: just use com.atproto.sync.requestCrawl */
|
|
1396
1488
|
export declare namespace ComAtprotoSyncNotifyOfUpdate {
|
|
1397
1489
|
interface Params {
|
|
1398
1490
|
}
|
|
@@ -1418,7 +1510,7 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1418
1510
|
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#account';
|
|
1419
1511
|
/** Indicates that the account has a repository which can be fetched from the host that emitted this event. */
|
|
1420
1512
|
active: boolean;
|
|
1421
|
-
did: At.
|
|
1513
|
+
did: At.Did;
|
|
1422
1514
|
seq: number;
|
|
1423
1515
|
time: string;
|
|
1424
1516
|
/** If active=false, this optional field indicates a reason for why the account is not active. */
|
|
@@ -1431,11 +1523,11 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1431
1523
|
* DEPRECATED -- will soon always be empty. List of new blobs (by CID) referenced by records in this commit.
|
|
1432
1524
|
* @deprecated
|
|
1433
1525
|
*/
|
|
1434
|
-
blobs: At.
|
|
1526
|
+
blobs: At.CidLink[];
|
|
1435
1527
|
/** 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. */
|
|
1436
1528
|
blocks: At.Bytes;
|
|
1437
1529
|
/** Repo commit object CID. */
|
|
1438
|
-
commit: At.
|
|
1530
|
+
commit: At.CidLink;
|
|
1439
1531
|
/**
|
|
1440
1532
|
* Maximum array length: 200 \
|
|
1441
1533
|
* List of repo mutation operations in this commit (eg, records created, updated, or deleted).
|
|
@@ -1447,13 +1539,13 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1447
1539
|
*/
|
|
1448
1540
|
rebase: boolean;
|
|
1449
1541
|
/** The repo this event comes from. Note that all other message types name this field 'did'. */
|
|
1450
|
-
repo: At.
|
|
1542
|
+
repo: At.Did;
|
|
1451
1543
|
/** 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. */
|
|
1452
|
-
rev:
|
|
1544
|
+
rev: At.Tid;
|
|
1453
1545
|
/** The stream sequence number of this message. */
|
|
1454
1546
|
seq: number;
|
|
1455
1547
|
/** The rev of the last emitted commit from this repo (if any). */
|
|
1456
|
-
since:
|
|
1548
|
+
since: At.Tid | null;
|
|
1457
1549
|
/** Timestamp of when this message was originally broadcast. */
|
|
1458
1550
|
time: string;
|
|
1459
1551
|
/**
|
|
@@ -1462,23 +1554,12 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1462
1554
|
*/
|
|
1463
1555
|
tooBig: boolean;
|
|
1464
1556
|
/** 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. */
|
|
1465
|
-
prevData?: At.
|
|
1466
|
-
}
|
|
1467
|
-
/**
|
|
1468
|
-
* DEPRECATED -- Use #identity event instead
|
|
1469
|
-
* @deprecated
|
|
1470
|
-
*/
|
|
1471
|
-
interface Handle {
|
|
1472
|
-
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#handle';
|
|
1473
|
-
did: At.DID;
|
|
1474
|
-
handle: At.Handle;
|
|
1475
|
-
seq: number;
|
|
1476
|
-
time: string;
|
|
1557
|
+
prevData?: At.CidLink;
|
|
1477
1558
|
}
|
|
1478
1559
|
/** 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. */
|
|
1479
1560
|
interface Identity {
|
|
1480
1561
|
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#identity';
|
|
1481
|
-
did: At.
|
|
1562
|
+
did: At.Did;
|
|
1482
1563
|
seq: number;
|
|
1483
1564
|
time: string;
|
|
1484
1565
|
/** 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. */
|
|
@@ -1489,26 +1570,15 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1489
1570
|
name: 'OutdatedCursor' | (string & {});
|
|
1490
1571
|
message?: string;
|
|
1491
1572
|
}
|
|
1492
|
-
/**
|
|
1493
|
-
* DEPRECATED -- Use #account event instead
|
|
1494
|
-
* @deprecated
|
|
1495
|
-
*/
|
|
1496
|
-
interface Migrate {
|
|
1497
|
-
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#migrate';
|
|
1498
|
-
did: At.DID;
|
|
1499
|
-
migrateTo: string | null;
|
|
1500
|
-
seq: number;
|
|
1501
|
-
time: string;
|
|
1502
|
-
}
|
|
1503
1573
|
/** A repo operation, ie a mutation of a single record. */
|
|
1504
1574
|
interface RepoOp {
|
|
1505
1575
|
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#repoOp';
|
|
1506
1576
|
action: 'create' | 'delete' | 'update' | (string & {});
|
|
1507
1577
|
/** For creates and updates, the new record CID. For deletions, null. */
|
|
1508
|
-
cid: At.
|
|
1578
|
+
cid: At.CidLink | null;
|
|
1509
1579
|
path: string;
|
|
1510
1580
|
/** For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. */
|
|
1511
|
-
prev?: At.
|
|
1581
|
+
prev?: At.CidLink;
|
|
1512
1582
|
}
|
|
1513
1583
|
/** 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. */
|
|
1514
1584
|
interface Sync {
|
|
@@ -1516,7 +1586,7 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1516
1586
|
/** CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. */
|
|
1517
1587
|
blocks: At.Bytes;
|
|
1518
1588
|
/** The account this repo event corresponds to. Must match that in the commit object. */
|
|
1519
|
-
did: At.
|
|
1589
|
+
did: At.Did;
|
|
1520
1590
|
/** The rev of the commit. This value must match that in the commit object. */
|
|
1521
1591
|
rev: string;
|
|
1522
1592
|
/** The stream sequence number of this message. */
|
|
@@ -1524,16 +1594,6 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
|
|
|
1524
1594
|
/** Timestamp of when this message was originally broadcast. */
|
|
1525
1595
|
time: string;
|
|
1526
1596
|
}
|
|
1527
|
-
/**
|
|
1528
|
-
* DEPRECATED -- Use #account event instead
|
|
1529
|
-
* @deprecated
|
|
1530
|
-
*/
|
|
1531
|
-
interface Tombstone {
|
|
1532
|
-
[Brand.Type]?: 'com.atproto.sync.subscribeRepos#tombstone';
|
|
1533
|
-
did: At.DID;
|
|
1534
|
-
seq: number;
|
|
1535
|
-
time: string;
|
|
1536
|
-
}
|
|
1537
1597
|
}
|
|
1538
1598
|
/** Add a handle to the set of reserved handles. */
|
|
1539
1599
|
export declare namespace ComAtprotoTempAddReservedHandle {
|
|
@@ -1590,121 +1650,251 @@ export declare interface Records {
|
|
|
1590
1650
|
export declare interface Queries {
|
|
1591
1651
|
'com.atproto.admin.getAccountInfo': {
|
|
1592
1652
|
params: ComAtprotoAdminGetAccountInfo.Params;
|
|
1653
|
+
/** @deprecated */
|
|
1593
1654
|
output: ComAtprotoAdminGetAccountInfo.Output;
|
|
1655
|
+
response: {
|
|
1656
|
+
json: ComAtprotoAdminGetAccountInfo.Output;
|
|
1657
|
+
};
|
|
1594
1658
|
};
|
|
1595
1659
|
'com.atproto.admin.getAccountInfos': {
|
|
1596
1660
|
params: ComAtprotoAdminGetAccountInfos.Params;
|
|
1661
|
+
/** @deprecated */
|
|
1597
1662
|
output: ComAtprotoAdminGetAccountInfos.Output;
|
|
1663
|
+
response: {
|
|
1664
|
+
json: ComAtprotoAdminGetAccountInfos.Output;
|
|
1665
|
+
};
|
|
1598
1666
|
};
|
|
1599
1667
|
'com.atproto.admin.getInviteCodes': {
|
|
1600
1668
|
params: ComAtprotoAdminGetInviteCodes.Params;
|
|
1669
|
+
/** @deprecated */
|
|
1601
1670
|
output: ComAtprotoAdminGetInviteCodes.Output;
|
|
1671
|
+
response: {
|
|
1672
|
+
json: ComAtprotoAdminGetInviteCodes.Output;
|
|
1673
|
+
};
|
|
1602
1674
|
};
|
|
1603
1675
|
'com.atproto.admin.getSubjectStatus': {
|
|
1604
1676
|
params: ComAtprotoAdminGetSubjectStatus.Params;
|
|
1677
|
+
/** @deprecated */
|
|
1605
1678
|
output: ComAtprotoAdminGetSubjectStatus.Output;
|
|
1679
|
+
response: {
|
|
1680
|
+
json: ComAtprotoAdminGetSubjectStatus.Output;
|
|
1681
|
+
};
|
|
1606
1682
|
};
|
|
1607
1683
|
'com.atproto.admin.searchAccounts': {
|
|
1608
1684
|
params: ComAtprotoAdminSearchAccounts.Params;
|
|
1685
|
+
/** @deprecated */
|
|
1609
1686
|
output: ComAtprotoAdminSearchAccounts.Output;
|
|
1687
|
+
response: {
|
|
1688
|
+
json: ComAtprotoAdminSearchAccounts.Output;
|
|
1689
|
+
};
|
|
1610
1690
|
};
|
|
1611
1691
|
'com.atproto.identity.getRecommendedDidCredentials': {
|
|
1692
|
+
/** @deprecated */
|
|
1612
1693
|
output: ComAtprotoIdentityGetRecommendedDidCredentials.Output;
|
|
1694
|
+
response: {
|
|
1695
|
+
json: ComAtprotoIdentityGetRecommendedDidCredentials.Output;
|
|
1696
|
+
};
|
|
1697
|
+
};
|
|
1698
|
+
'com.atproto.identity.resolveDid': {
|
|
1699
|
+
params: ComAtprotoIdentityResolveDid.Params;
|
|
1700
|
+
/** @deprecated */
|
|
1701
|
+
output: ComAtprotoIdentityResolveDid.Output;
|
|
1702
|
+
response: {
|
|
1703
|
+
json: ComAtprotoIdentityResolveDid.Output;
|
|
1704
|
+
};
|
|
1613
1705
|
};
|
|
1614
1706
|
'com.atproto.identity.resolveHandle': {
|
|
1615
1707
|
params: ComAtprotoIdentityResolveHandle.Params;
|
|
1708
|
+
/** @deprecated */
|
|
1616
1709
|
output: ComAtprotoIdentityResolveHandle.Output;
|
|
1710
|
+
response: {
|
|
1711
|
+
json: ComAtprotoIdentityResolveHandle.Output;
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1714
|
+
'com.atproto.identity.resolveIdentity': {
|
|
1715
|
+
params: ComAtprotoIdentityResolveIdentity.Params;
|
|
1716
|
+
/** @deprecated */
|
|
1717
|
+
output: ComAtprotoIdentityResolveIdentity.Output;
|
|
1718
|
+
response: {
|
|
1719
|
+
json: ComAtprotoIdentityResolveIdentity.Output;
|
|
1720
|
+
};
|
|
1617
1721
|
};
|
|
1618
1722
|
'com.atproto.label.queryLabels': {
|
|
1619
1723
|
params: ComAtprotoLabelQueryLabels.Params;
|
|
1724
|
+
/** @deprecated */
|
|
1620
1725
|
output: ComAtprotoLabelQueryLabels.Output;
|
|
1726
|
+
response: {
|
|
1727
|
+
json: ComAtprotoLabelQueryLabels.Output;
|
|
1728
|
+
};
|
|
1621
1729
|
};
|
|
1622
1730
|
'com.atproto.repo.describeRepo': {
|
|
1623
1731
|
params: ComAtprotoRepoDescribeRepo.Params;
|
|
1732
|
+
/** @deprecated */
|
|
1624
1733
|
output: ComAtprotoRepoDescribeRepo.Output;
|
|
1734
|
+
response: {
|
|
1735
|
+
json: ComAtprotoRepoDescribeRepo.Output;
|
|
1736
|
+
};
|
|
1625
1737
|
};
|
|
1626
1738
|
'com.atproto.repo.getRecord': {
|
|
1627
1739
|
params: ComAtprotoRepoGetRecord.Params;
|
|
1740
|
+
/** @deprecated */
|
|
1628
1741
|
output: ComAtprotoRepoGetRecord.Output;
|
|
1742
|
+
response: {
|
|
1743
|
+
json: ComAtprotoRepoGetRecord.Output;
|
|
1744
|
+
};
|
|
1629
1745
|
};
|
|
1630
1746
|
'com.atproto.repo.listMissingBlobs': {
|
|
1631
1747
|
params: ComAtprotoRepoListMissingBlobs.Params;
|
|
1748
|
+
/** @deprecated */
|
|
1632
1749
|
output: ComAtprotoRepoListMissingBlobs.Output;
|
|
1750
|
+
response: {
|
|
1751
|
+
json: ComAtprotoRepoListMissingBlobs.Output;
|
|
1752
|
+
};
|
|
1633
1753
|
};
|
|
1634
1754
|
'com.atproto.repo.listRecords': {
|
|
1635
1755
|
params: ComAtprotoRepoListRecords.Params;
|
|
1756
|
+
/** @deprecated */
|
|
1636
1757
|
output: ComAtprotoRepoListRecords.Output;
|
|
1758
|
+
response: {
|
|
1759
|
+
json: ComAtprotoRepoListRecords.Output;
|
|
1760
|
+
};
|
|
1637
1761
|
};
|
|
1638
1762
|
'com.atproto.server.checkAccountStatus': {
|
|
1763
|
+
/** @deprecated */
|
|
1639
1764
|
output: ComAtprotoServerCheckAccountStatus.Output;
|
|
1765
|
+
response: {
|
|
1766
|
+
json: ComAtprotoServerCheckAccountStatus.Output;
|
|
1767
|
+
};
|
|
1640
1768
|
};
|
|
1641
1769
|
'com.atproto.server.describeServer': {
|
|
1770
|
+
/** @deprecated */
|
|
1642
1771
|
output: ComAtprotoServerDescribeServer.Output;
|
|
1772
|
+
response: {
|
|
1773
|
+
json: ComAtprotoServerDescribeServer.Output;
|
|
1774
|
+
};
|
|
1643
1775
|
};
|
|
1644
1776
|
'com.atproto.server.getAccountInviteCodes': {
|
|
1645
1777
|
params: ComAtprotoServerGetAccountInviteCodes.Params;
|
|
1778
|
+
/** @deprecated */
|
|
1646
1779
|
output: ComAtprotoServerGetAccountInviteCodes.Output;
|
|
1780
|
+
response: {
|
|
1781
|
+
json: ComAtprotoServerGetAccountInviteCodes.Output;
|
|
1782
|
+
};
|
|
1647
1783
|
};
|
|
1648
1784
|
'com.atproto.server.getServiceAuth': {
|
|
1649
1785
|
params: ComAtprotoServerGetServiceAuth.Params;
|
|
1786
|
+
/** @deprecated */
|
|
1650
1787
|
output: ComAtprotoServerGetServiceAuth.Output;
|
|
1788
|
+
response: {
|
|
1789
|
+
json: ComAtprotoServerGetServiceAuth.Output;
|
|
1790
|
+
};
|
|
1651
1791
|
};
|
|
1652
1792
|
'com.atproto.server.getSession': {
|
|
1793
|
+
/** @deprecated */
|
|
1653
1794
|
output: ComAtprotoServerGetSession.Output;
|
|
1795
|
+
response: {
|
|
1796
|
+
json: ComAtprotoServerGetSession.Output;
|
|
1797
|
+
};
|
|
1654
1798
|
};
|
|
1655
1799
|
'com.atproto.server.listAppPasswords': {
|
|
1800
|
+
/** @deprecated */
|
|
1656
1801
|
output: ComAtprotoServerListAppPasswords.Output;
|
|
1802
|
+
response: {
|
|
1803
|
+
json: ComAtprotoServerListAppPasswords.Output;
|
|
1804
|
+
};
|
|
1657
1805
|
};
|
|
1658
1806
|
'com.atproto.sync.getBlob': {
|
|
1659
1807
|
params: ComAtprotoSyncGetBlob.Params;
|
|
1808
|
+
/** @deprecated */
|
|
1660
1809
|
output: ComAtprotoSyncGetBlob.Output;
|
|
1810
|
+
response: {};
|
|
1661
1811
|
};
|
|
1662
1812
|
'com.atproto.sync.getBlocks': {
|
|
1663
1813
|
params: ComAtprotoSyncGetBlocks.Params;
|
|
1814
|
+
/** @deprecated */
|
|
1664
1815
|
output: ComAtprotoSyncGetBlocks.Output;
|
|
1816
|
+
response: {};
|
|
1665
1817
|
};
|
|
1666
1818
|
'com.atproto.sync.getCheckout': {
|
|
1667
1819
|
params: ComAtprotoSyncGetCheckout.Params;
|
|
1820
|
+
/** @deprecated */
|
|
1668
1821
|
output: ComAtprotoSyncGetCheckout.Output;
|
|
1822
|
+
response: {};
|
|
1669
1823
|
};
|
|
1670
1824
|
'com.atproto.sync.getHead': {
|
|
1671
1825
|
params: ComAtprotoSyncGetHead.Params;
|
|
1826
|
+
/** @deprecated */
|
|
1672
1827
|
output: ComAtprotoSyncGetHead.Output;
|
|
1828
|
+
response: {
|
|
1829
|
+
json: ComAtprotoSyncGetHead.Output;
|
|
1830
|
+
};
|
|
1673
1831
|
};
|
|
1674
1832
|
'com.atproto.sync.getLatestCommit': {
|
|
1675
1833
|
params: ComAtprotoSyncGetLatestCommit.Params;
|
|
1834
|
+
/** @deprecated */
|
|
1676
1835
|
output: ComAtprotoSyncGetLatestCommit.Output;
|
|
1836
|
+
response: {
|
|
1837
|
+
json: ComAtprotoSyncGetLatestCommit.Output;
|
|
1838
|
+
};
|
|
1677
1839
|
};
|
|
1678
1840
|
'com.atproto.sync.getRecord': {
|
|
1679
1841
|
params: ComAtprotoSyncGetRecord.Params;
|
|
1842
|
+
/** @deprecated */
|
|
1680
1843
|
output: ComAtprotoSyncGetRecord.Output;
|
|
1844
|
+
response: {};
|
|
1681
1845
|
};
|
|
1682
1846
|
'com.atproto.sync.getRepo': {
|
|
1683
1847
|
params: ComAtprotoSyncGetRepo.Params;
|
|
1848
|
+
/** @deprecated */
|
|
1684
1849
|
output: ComAtprotoSyncGetRepo.Output;
|
|
1850
|
+
response: {};
|
|
1685
1851
|
};
|
|
1686
1852
|
'com.atproto.sync.getRepoStatus': {
|
|
1687
1853
|
params: ComAtprotoSyncGetRepoStatus.Params;
|
|
1854
|
+
/** @deprecated */
|
|
1688
1855
|
output: ComAtprotoSyncGetRepoStatus.Output;
|
|
1856
|
+
response: {
|
|
1857
|
+
json: ComAtprotoSyncGetRepoStatus.Output;
|
|
1858
|
+
};
|
|
1689
1859
|
};
|
|
1690
1860
|
'com.atproto.sync.listBlobs': {
|
|
1691
1861
|
params: ComAtprotoSyncListBlobs.Params;
|
|
1862
|
+
/** @deprecated */
|
|
1692
1863
|
output: ComAtprotoSyncListBlobs.Output;
|
|
1864
|
+
response: {
|
|
1865
|
+
json: ComAtprotoSyncListBlobs.Output;
|
|
1866
|
+
};
|
|
1693
1867
|
};
|
|
1694
1868
|
'com.atproto.sync.listRepos': {
|
|
1695
1869
|
params: ComAtprotoSyncListRepos.Params;
|
|
1870
|
+
/** @deprecated */
|
|
1696
1871
|
output: ComAtprotoSyncListRepos.Output;
|
|
1872
|
+
response: {
|
|
1873
|
+
json: ComAtprotoSyncListRepos.Output;
|
|
1874
|
+
};
|
|
1697
1875
|
};
|
|
1698
1876
|
'com.atproto.sync.listReposByCollection': {
|
|
1699
1877
|
params: ComAtprotoSyncListReposByCollection.Params;
|
|
1878
|
+
/** @deprecated */
|
|
1700
1879
|
output: ComAtprotoSyncListReposByCollection.Output;
|
|
1880
|
+
response: {
|
|
1881
|
+
json: ComAtprotoSyncListReposByCollection.Output;
|
|
1882
|
+
};
|
|
1701
1883
|
};
|
|
1702
1884
|
'com.atproto.temp.checkSignupQueue': {
|
|
1885
|
+
/** @deprecated */
|
|
1703
1886
|
output: ComAtprotoTempCheckSignupQueue.Output;
|
|
1887
|
+
response: {
|
|
1888
|
+
json: ComAtprotoTempCheckSignupQueue.Output;
|
|
1889
|
+
};
|
|
1704
1890
|
};
|
|
1705
1891
|
'com.atproto.temp.fetchLabels': {
|
|
1706
1892
|
params: ComAtprotoTempFetchLabels.Params;
|
|
1893
|
+
/** @deprecated */
|
|
1707
1894
|
output: ComAtprotoTempFetchLabels.Output;
|
|
1895
|
+
response: {
|
|
1896
|
+
json: ComAtprotoTempFetchLabels.Output;
|
|
1897
|
+
};
|
|
1708
1898
|
};
|
|
1709
1899
|
}
|
|
1710
1900
|
export declare interface Procedures {
|
|
@@ -1722,7 +1912,11 @@ export declare interface Procedures {
|
|
|
1722
1912
|
};
|
|
1723
1913
|
'com.atproto.admin.sendEmail': {
|
|
1724
1914
|
input: ComAtprotoAdminSendEmail.Input;
|
|
1915
|
+
/** @deprecated */
|
|
1725
1916
|
output: ComAtprotoAdminSendEmail.Output;
|
|
1917
|
+
response: {
|
|
1918
|
+
json: ComAtprotoAdminSendEmail.Output;
|
|
1919
|
+
};
|
|
1726
1920
|
};
|
|
1727
1921
|
'com.atproto.admin.updateAccountEmail': {
|
|
1728
1922
|
input: ComAtprotoAdminUpdateAccountEmail.Input;
|
|
@@ -1735,12 +1929,28 @@ export declare interface Procedures {
|
|
|
1735
1929
|
};
|
|
1736
1930
|
'com.atproto.admin.updateSubjectStatus': {
|
|
1737
1931
|
input: ComAtprotoAdminUpdateSubjectStatus.Input;
|
|
1932
|
+
/** @deprecated */
|
|
1738
1933
|
output: ComAtprotoAdminUpdateSubjectStatus.Output;
|
|
1934
|
+
response: {
|
|
1935
|
+
json: ComAtprotoAdminUpdateSubjectStatus.Output;
|
|
1936
|
+
};
|
|
1937
|
+
};
|
|
1938
|
+
'com.atproto.identity.refreshIdentity': {
|
|
1939
|
+
input: ComAtprotoIdentityRefreshIdentity.Input;
|
|
1940
|
+
/** @deprecated */
|
|
1941
|
+
output: ComAtprotoIdentityRefreshIdentity.Output;
|
|
1942
|
+
response: {
|
|
1943
|
+
json: ComAtprotoIdentityRefreshIdentity.Output;
|
|
1944
|
+
};
|
|
1739
1945
|
};
|
|
1740
1946
|
'com.atproto.identity.requestPlcOperationSignature': {};
|
|
1741
1947
|
'com.atproto.identity.signPlcOperation': {
|
|
1742
1948
|
input: ComAtprotoIdentitySignPlcOperation.Input;
|
|
1949
|
+
/** @deprecated */
|
|
1743
1950
|
output: ComAtprotoIdentitySignPlcOperation.Output;
|
|
1951
|
+
response: {
|
|
1952
|
+
json: ComAtprotoIdentitySignPlcOperation.Output;
|
|
1953
|
+
};
|
|
1744
1954
|
};
|
|
1745
1955
|
'com.atproto.identity.submitPlcOperation': {
|
|
1746
1956
|
input: ComAtprotoIdentitySubmitPlcOperation.Input;
|
|
@@ -1750,30 +1960,54 @@ export declare interface Procedures {
|
|
|
1750
1960
|
};
|
|
1751
1961
|
'com.atproto.moderation.createReport': {
|
|
1752
1962
|
input: ComAtprotoModerationCreateReport.Input;
|
|
1963
|
+
/** @deprecated */
|
|
1753
1964
|
output: ComAtprotoModerationCreateReport.Output;
|
|
1965
|
+
response: {
|
|
1966
|
+
json: ComAtprotoModerationCreateReport.Output;
|
|
1967
|
+
};
|
|
1754
1968
|
};
|
|
1755
1969
|
'com.atproto.repo.applyWrites': {
|
|
1756
1970
|
input: ComAtprotoRepoApplyWrites.Input;
|
|
1971
|
+
/** @deprecated */
|
|
1757
1972
|
output: ComAtprotoRepoApplyWrites.Output;
|
|
1973
|
+
response: {
|
|
1974
|
+
json: ComAtprotoRepoApplyWrites.Output;
|
|
1975
|
+
};
|
|
1758
1976
|
};
|
|
1759
1977
|
'com.atproto.repo.createRecord': {
|
|
1760
1978
|
input: ComAtprotoRepoCreateRecord.Input;
|
|
1979
|
+
/** @deprecated */
|
|
1761
1980
|
output: ComAtprotoRepoCreateRecord.Output;
|
|
1981
|
+
response: {
|
|
1982
|
+
json: ComAtprotoRepoCreateRecord.Output;
|
|
1983
|
+
};
|
|
1762
1984
|
};
|
|
1763
1985
|
'com.atproto.repo.deleteRecord': {
|
|
1764
1986
|
input: ComAtprotoRepoDeleteRecord.Input;
|
|
1987
|
+
/** @deprecated */
|
|
1765
1988
|
output: ComAtprotoRepoDeleteRecord.Output;
|
|
1989
|
+
response: {
|
|
1990
|
+
json: ComAtprotoRepoDeleteRecord.Output;
|
|
1991
|
+
};
|
|
1766
1992
|
};
|
|
1767
1993
|
'com.atproto.repo.importRepo': {
|
|
1768
1994
|
input: ComAtprotoRepoImportRepo.Input;
|
|
1769
1995
|
};
|
|
1770
1996
|
'com.atproto.repo.putRecord': {
|
|
1771
1997
|
input: ComAtprotoRepoPutRecord.Input;
|
|
1998
|
+
/** @deprecated */
|
|
1772
1999
|
output: ComAtprotoRepoPutRecord.Output;
|
|
2000
|
+
response: {
|
|
2001
|
+
json: ComAtprotoRepoPutRecord.Output;
|
|
2002
|
+
};
|
|
1773
2003
|
};
|
|
1774
2004
|
'com.atproto.repo.uploadBlob': {
|
|
1775
2005
|
input: ComAtprotoRepoUploadBlob.Input;
|
|
2006
|
+
/** @deprecated */
|
|
1776
2007
|
output: ComAtprotoRepoUploadBlob.Output;
|
|
2008
|
+
response: {
|
|
2009
|
+
json: ComAtprotoRepoUploadBlob.Output;
|
|
2010
|
+
};
|
|
1777
2011
|
};
|
|
1778
2012
|
'com.atproto.server.activateAccount': {};
|
|
1779
2013
|
'com.atproto.server.confirmEmail': {
|
|
@@ -1781,23 +2015,43 @@ export declare interface Procedures {
|
|
|
1781
2015
|
};
|
|
1782
2016
|
'com.atproto.server.createAccount': {
|
|
1783
2017
|
input: ComAtprotoServerCreateAccount.Input;
|
|
2018
|
+
/** @deprecated */
|
|
1784
2019
|
output: ComAtprotoServerCreateAccount.Output;
|
|
2020
|
+
response: {
|
|
2021
|
+
json: ComAtprotoServerCreateAccount.Output;
|
|
2022
|
+
};
|
|
1785
2023
|
};
|
|
1786
2024
|
'com.atproto.server.createAppPassword': {
|
|
1787
2025
|
input: ComAtprotoServerCreateAppPassword.Input;
|
|
2026
|
+
/** @deprecated */
|
|
1788
2027
|
output: ComAtprotoServerCreateAppPassword.Output;
|
|
2028
|
+
response: {
|
|
2029
|
+
json: ComAtprotoServerCreateAppPassword.Output;
|
|
2030
|
+
};
|
|
1789
2031
|
};
|
|
1790
2032
|
'com.atproto.server.createInviteCode': {
|
|
1791
2033
|
input: ComAtprotoServerCreateInviteCode.Input;
|
|
2034
|
+
/** @deprecated */
|
|
1792
2035
|
output: ComAtprotoServerCreateInviteCode.Output;
|
|
2036
|
+
response: {
|
|
2037
|
+
json: ComAtprotoServerCreateInviteCode.Output;
|
|
2038
|
+
};
|
|
1793
2039
|
};
|
|
1794
2040
|
'com.atproto.server.createInviteCodes': {
|
|
1795
2041
|
input: ComAtprotoServerCreateInviteCodes.Input;
|
|
2042
|
+
/** @deprecated */
|
|
1796
2043
|
output: ComAtprotoServerCreateInviteCodes.Output;
|
|
2044
|
+
response: {
|
|
2045
|
+
json: ComAtprotoServerCreateInviteCodes.Output;
|
|
2046
|
+
};
|
|
1797
2047
|
};
|
|
1798
2048
|
'com.atproto.server.createSession': {
|
|
1799
2049
|
input: ComAtprotoServerCreateSession.Input;
|
|
2050
|
+
/** @deprecated */
|
|
1800
2051
|
output: ComAtprotoServerCreateSession.Output;
|
|
2052
|
+
response: {
|
|
2053
|
+
json: ComAtprotoServerCreateSession.Output;
|
|
2054
|
+
};
|
|
1801
2055
|
};
|
|
1802
2056
|
'com.atproto.server.deactivateAccount': {
|
|
1803
2057
|
input: ComAtprotoServerDeactivateAccount.Input;
|
|
@@ -1807,19 +2061,31 @@ export declare interface Procedures {
|
|
|
1807
2061
|
};
|
|
1808
2062
|
'com.atproto.server.deleteSession': {};
|
|
1809
2063
|
'com.atproto.server.refreshSession': {
|
|
2064
|
+
/** @deprecated */
|
|
1810
2065
|
output: ComAtprotoServerRefreshSession.Output;
|
|
2066
|
+
response: {
|
|
2067
|
+
json: ComAtprotoServerRefreshSession.Output;
|
|
2068
|
+
};
|
|
1811
2069
|
};
|
|
1812
2070
|
'com.atproto.server.requestAccountDelete': {};
|
|
1813
2071
|
'com.atproto.server.requestEmailConfirmation': {};
|
|
1814
2072
|
'com.atproto.server.requestEmailUpdate': {
|
|
2073
|
+
/** @deprecated */
|
|
1815
2074
|
output: ComAtprotoServerRequestEmailUpdate.Output;
|
|
2075
|
+
response: {
|
|
2076
|
+
json: ComAtprotoServerRequestEmailUpdate.Output;
|
|
2077
|
+
};
|
|
1816
2078
|
};
|
|
1817
2079
|
'com.atproto.server.requestPasswordReset': {
|
|
1818
2080
|
input: ComAtprotoServerRequestPasswordReset.Input;
|
|
1819
2081
|
};
|
|
1820
2082
|
'com.atproto.server.reserveSigningKey': {
|
|
1821
2083
|
input: ComAtprotoServerReserveSigningKey.Input;
|
|
2084
|
+
/** @deprecated */
|
|
1822
2085
|
output: ComAtprotoServerReserveSigningKey.Output;
|
|
2086
|
+
response: {
|
|
2087
|
+
json: ComAtprotoServerReserveSigningKey.Output;
|
|
2088
|
+
};
|
|
1823
2089
|
};
|
|
1824
2090
|
'com.atproto.server.resetPassword': {
|
|
1825
2091
|
input: ComAtprotoServerResetPassword.Input;
|
|
@@ -1838,7 +2104,11 @@ export declare interface Procedures {
|
|
|
1838
2104
|
};
|
|
1839
2105
|
'com.atproto.temp.addReservedHandle': {
|
|
1840
2106
|
input: ComAtprotoTempAddReservedHandle.Input;
|
|
2107
|
+
/** @deprecated */
|
|
1841
2108
|
output: ComAtprotoTempAddReservedHandle.Output;
|
|
2109
|
+
response: {
|
|
2110
|
+
json: ComAtprotoTempAddReservedHandle.Output;
|
|
2111
|
+
};
|
|
1842
2112
|
};
|
|
1843
2113
|
'com.atproto.temp.requestPhoneVerification': {
|
|
1844
2114
|
input: ComAtprotoTempRequestPhoneVerification.Input;
|