@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/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
- /** Handles type branding in objects */
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
- /** Base AT Protocol schema types */
26
+ /** base AT Protocol schema types */
27
27
  export declare namespace At {
28
- /** CID string */
29
- type CID = string;
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;
30
65
 
31
- /** DID of a user */
32
- type DID = `did:${string}`;
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}`;
33
76
 
34
- /** User handle */
35
- type Handle = string;
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}`;
36
85
 
37
- /** URI string */
38
- type Uri = string;
86
+ /**
87
+ * represents a generic URI
88
+ */
89
+ type GenericUri = `${string}:${string}`;
39
90
 
40
- /** Object containing a CID string */
41
- interface CIDLink {
42
- $link: CID;
91
+ /**
92
+ * represents a Content Identifier (CID) reference
93
+ */
94
+ interface CidLink {
95
+ $link: Cid;
43
96
  }
44
97
 
45
- /** Object containing a base64-encoded bytes */
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
- /** Blob interface */
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.DID;
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.CID;
79
- did: At.DID;
80
- recordUri?: At.Uri;
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.DID;
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.DID;
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.DID;
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.DID;
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.DID;
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.DID[];
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.CID;
183
- did?: At.DID;
184
- uri?: At.Uri;
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.DID;
221
- senderDid: At.DID;
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: string;
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.DID;
303
+ did: At.Did;
247
304
  handle: At.Handle;
248
305
  }
249
306
  type Output = undefined;
@@ -253,7 +310,7 @@ export declare namespace ComAtprotoAdminUpdateAccountHandle {
253
310
  export declare namespace ComAtprotoAdminUpdateAccountPassword {
254
311
  interface Params {}
255
312
  interface Input {
256
- did: At.DID;
313
+ did: At.Did;
257
314
  password: string;
258
315
  }
259
316
  type Output = undefined;
@@ -277,6 +334,17 @@ export declare namespace ComAtprotoAdminUpdateSubjectStatus {
277
334
  }
278
335
  }
279
336
 
337
+ export declare namespace ComAtprotoIdentityDefs {
338
+ interface IdentityInfo {
339
+ [Brand.Type]?: 'com.atproto.identity.defs#identityInfo';
340
+ did: At.Did;
341
+ /** The complete DID document for the identity. */
342
+ didDoc: unknown;
343
+ /** The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. */
344
+ handle: At.Handle;
345
+ }
346
+ }
347
+
280
348
  /** Describe the credentials that should be included in the DID doc of an account that is migrating to this service. */
281
349
  export declare namespace ComAtprotoIdentityGetRecommendedDidCredentials {
282
350
  interface Params {}
@@ -290,6 +358,20 @@ export declare namespace ComAtprotoIdentityGetRecommendedDidCredentials {
290
358
  }
291
359
  }
292
360
 
361
+ /** 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. */
362
+ export declare namespace ComAtprotoIdentityRefreshIdentity {
363
+ interface Params {}
364
+ interface Input {
365
+ identifier: At.Identifier;
366
+ }
367
+ type Output = ComAtprotoIdentityDefs.IdentityInfo;
368
+ interface Errors {
369
+ HandleNotFound: {};
370
+ DidNotFound: {};
371
+ DidDeactivated: {};
372
+ }
373
+ }
374
+
293
375
  /** Request an email with a code to in order to request a signed PLC operation. Requires Auth. */
294
376
  export declare namespace ComAtprotoIdentityRequestPlcOperationSignature {
295
377
  interface Params {}
@@ -297,7 +379,24 @@ export declare namespace ComAtprotoIdentityRequestPlcOperationSignature {
297
379
  type Output = undefined;
298
380
  }
299
381
 
300
- /** Resolves a handle (domain name) to a DID. */
382
+ /** Resolves DID to DID document. Does not bi-directionally verify handle. */
383
+ export declare namespace ComAtprotoIdentityResolveDid {
384
+ interface Params {
385
+ /** DID to resolve. */
386
+ did: At.Did;
387
+ }
388
+ type Input = undefined;
389
+ interface Output {
390
+ /** The complete DID document for the identity. */
391
+ didDoc: unknown;
392
+ }
393
+ interface Errors {
394
+ DidNotFound: {};
395
+ DidDeactivated: {};
396
+ }
397
+ }
398
+
399
+ /** Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document. */
301
400
  export declare namespace ComAtprotoIdentityResolveHandle {
302
401
  interface Params {
303
402
  /** The handle to resolve. */
@@ -305,7 +404,25 @@ export declare namespace ComAtprotoIdentityResolveHandle {
305
404
  }
306
405
  type Input = undefined;
307
406
  interface Output {
308
- did: At.DID;
407
+ did: At.Did;
408
+ }
409
+ interface Errors {
410
+ HandleNotFound: {};
411
+ }
412
+ }
413
+
414
+ /** Resolves an identity (DID or Handle) to a full identity (DID document and verified handle). */
415
+ export declare namespace ComAtprotoIdentityResolveIdentity {
416
+ interface Params {
417
+ /** Handle or DID to resolve. */
418
+ identifier: At.Identifier;
419
+ }
420
+ type Input = undefined;
421
+ type Output = ComAtprotoIdentityDefs.IdentityInfo;
422
+ interface Errors {
423
+ HandleNotFound: {};
424
+ DidNotFound: {};
425
+ DidDeactivated: {};
309
426
  }
310
427
  }
311
428
 
@@ -352,16 +469,16 @@ export declare namespace ComAtprotoLabelDefs {
352
469
  /** Timestamp when this label was created. */
353
470
  cts: string;
354
471
  /** DID of the actor who created this label. */
355
- src: At.DID;
472
+ src: At.Did;
356
473
  /** AT URI of the record, repository (account), or other resource that this label applies to. */
357
- uri: string;
474
+ uri: At.GenericUri;
358
475
  /**
359
476
  * The short string name of the value or type of this label. \
360
477
  * Maximum string length: 128
361
478
  */
362
479
  val: string;
363
480
  /** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */
364
- cid?: At.CID;
481
+ cid?: At.Cid;
365
482
  /** Timestamp at which this label expires (no longer applies). */
366
483
  exp?: string;
367
484
  /** If true, this is a negation label, overwriting a previous label. */
@@ -454,7 +571,7 @@ export declare namespace ComAtprotoLabelQueryLabels {
454
571
  */
455
572
  limit?: number;
456
573
  /** Optional list of label sources (DIDs) to filter on. */
457
- sources?: At.DID[];
574
+ sources?: At.Did[];
458
575
  }
459
576
  type Input = undefined;
460
577
  interface Output {
@@ -503,7 +620,7 @@ export declare namespace ComAtprotoModerationCreateReport {
503
620
  createdAt: string;
504
621
  id: number;
505
622
  reasonType: ComAtprotoModerationDefs.ReasonType;
506
- reportedBy: At.DID;
623
+ reportedBy: At.Did;
507
624
  subject: Brand.Union<ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main>;
508
625
  /**
509
626
  * Maximum string length: 20000 \
@@ -530,6 +647,8 @@ export declare namespace ComAtprotoModerationDefs {
530
647
  | 'com.atproto.moderation.defs#reasonViolation'
531
648
  | (string & {});
532
649
  type ReasonViolation = 'com.atproto.moderation.defs#reasonViolation';
650
+ /** Tag describing a type of subject that might be reported. */
651
+ type SubjectType = 'account' | 'chat' | 'record' | (string & {});
533
652
  }
534
653
 
535
654
  /** Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS. */
@@ -537,10 +656,10 @@ export declare namespace ComAtprotoRepoApplyWrites {
537
656
  interface Params {}
538
657
  interface Input {
539
658
  /** The handle or DID of the repo (aka, current account). */
540
- repo: string;
659
+ repo: At.Identifier;
541
660
  writes: Brand.Union<Create | Delete | Update>[];
542
661
  /** If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. */
543
- swapCommit?: At.CID;
662
+ swapCommit?: At.Cid;
544
663
  /** 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. */
545
664
  validate?: boolean;
546
665
  }
@@ -554,22 +673,22 @@ export declare namespace ComAtprotoRepoApplyWrites {
554
673
  /** Operation which creates a new record. */
555
674
  interface Create {
556
675
  [Brand.Type]?: 'com.atproto.repo.applyWrites#create';
557
- collection: string;
676
+ collection: At.Nsid;
558
677
  value: unknown;
559
678
  /** NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. */
560
- rkey?: string;
679
+ rkey?: At.RecordKey;
561
680
  }
562
681
  interface CreateResult {
563
682
  [Brand.Type]?: 'com.atproto.repo.applyWrites#createResult';
564
- cid: At.CID;
565
- uri: At.Uri;
683
+ cid: At.Cid;
684
+ uri: At.ResourceUri;
566
685
  validationStatus?: 'unknown' | 'valid' | (string & {});
567
686
  }
568
687
  /** Operation which deletes an existing record. */
569
688
  interface Delete {
570
689
  [Brand.Type]?: 'com.atproto.repo.applyWrites#delete';
571
- collection: string;
572
- rkey: string;
690
+ collection: At.Nsid;
691
+ rkey: At.RecordKey;
573
692
  }
574
693
  interface DeleteResult {
575
694
  [Brand.Type]?: 'com.atproto.repo.applyWrites#deleteResult';
@@ -577,14 +696,14 @@ export declare namespace ComAtprotoRepoApplyWrites {
577
696
  /** Operation which updates an existing record. */
578
697
  interface Update {
579
698
  [Brand.Type]?: 'com.atproto.repo.applyWrites#update';
580
- collection: string;
581
- rkey: string;
699
+ collection: At.Nsid;
700
+ rkey: At.RecordKey;
582
701
  value: unknown;
583
702
  }
584
703
  interface UpdateResult {
585
704
  [Brand.Type]?: 'com.atproto.repo.applyWrites#updateResult';
586
- cid: At.CID;
587
- uri: At.Uri;
705
+ cid: At.Cid;
706
+ uri: At.ResourceUri;
588
707
  validationStatus?: 'unknown' | 'valid' | (string & {});
589
708
  }
590
709
  }
@@ -594,21 +713,21 @@ export declare namespace ComAtprotoRepoCreateRecord {
594
713
  interface Params {}
595
714
  interface Input {
596
715
  /** The NSID of the record collection. */
597
- collection: string;
716
+ collection: At.Nsid;
598
717
  /** The record itself. Must contain a $type field. */
599
718
  record: unknown;
600
719
  /** The handle or DID of the repo (aka, current account). */
601
- repo: string;
720
+ repo: At.Identifier;
602
721
  /** The Record Key. */
603
- rkey?: string;
722
+ rkey?: At.RecordKey;
604
723
  /** Compare and swap with the previous commit by CID. */
605
- swapCommit?: At.CID;
724
+ swapCommit?: At.Cid;
606
725
  /** 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. */
607
726
  validate?: boolean;
608
727
  }
609
728
  interface Output {
610
- cid: At.CID;
611
- uri: At.Uri;
729
+ cid: At.Cid;
730
+ uri: At.ResourceUri;
612
731
  commit?: ComAtprotoRepoDefs.CommitMeta;
613
732
  validationStatus?: 'unknown' | 'valid' | (string & {});
614
733
  }
@@ -620,8 +739,8 @@ export declare namespace ComAtprotoRepoCreateRecord {
620
739
  export declare namespace ComAtprotoRepoDefs {
621
740
  interface CommitMeta {
622
741
  [Brand.Type]?: 'com.atproto.repo.defs#commitMeta';
623
- cid: At.CID;
624
- rev: string;
742
+ cid: At.Cid;
743
+ rev: At.Tid;
625
744
  }
626
745
  }
627
746
 
@@ -630,15 +749,15 @@ export declare namespace ComAtprotoRepoDeleteRecord {
630
749
  interface Params {}
631
750
  interface Input {
632
751
  /** The NSID of the record collection. */
633
- collection: string;
752
+ collection: At.Nsid;
634
753
  /** The handle or DID of the repo (aka, current account). */
635
- repo: string;
754
+ repo: At.Identifier;
636
755
  /** The Record Key. */
637
- rkey: string;
756
+ rkey: At.RecordKey;
638
757
  /** Compare and swap with the previous commit by CID. */
639
- swapCommit?: At.CID;
758
+ swapCommit?: At.Cid;
640
759
  /** Compare and swap with the previous record by CID. */
641
- swapRecord?: At.CID;
760
+ swapRecord?: At.Cid;
642
761
  }
643
762
  interface Output {
644
763
  commit?: ComAtprotoRepoDefs.CommitMeta;
@@ -652,13 +771,13 @@ export declare namespace ComAtprotoRepoDeleteRecord {
652
771
  export declare namespace ComAtprotoRepoDescribeRepo {
653
772
  interface Params {
654
773
  /** The handle or DID of the repo. */
655
- repo: string;
774
+ repo: At.Identifier;
656
775
  }
657
776
  type Input = undefined;
658
777
  interface Output {
659
778
  /** List of all the collections (NSIDs) for which this repo contains at least one record. */
660
- collections: string[];
661
- did: At.DID;
779
+ collections: At.Nsid[];
780
+ did: At.Did;
662
781
  /** The complete DID document for this account. */
663
782
  didDoc: unknown;
664
783
  handle: At.Handle;
@@ -671,19 +790,19 @@ export declare namespace ComAtprotoRepoDescribeRepo {
671
790
  export declare namespace ComAtprotoRepoGetRecord {
672
791
  interface Params {
673
792
  /** The NSID of the record collection. */
674
- collection: string;
793
+ collection: At.Nsid;
675
794
  /** The handle or DID of the repo. */
676
- repo: string;
795
+ repo: At.Identifier;
677
796
  /** The Record Key. */
678
- rkey: string;
797
+ rkey: At.RecordKey;
679
798
  /** The CID of the version of the record. If not specified, then return the most recent version. */
680
- cid?: At.CID;
799
+ cid?: At.Cid;
681
800
  }
682
801
  type Input = undefined;
683
802
  interface Output {
684
- uri: At.Uri;
803
+ uri: At.ResourceUri;
685
804
  value: unknown;
686
- cid?: At.CID;
805
+ cid?: At.Cid;
687
806
  }
688
807
  interface Errors {
689
808
  RecordNotFound: {};
@@ -693,7 +812,7 @@ export declare namespace ComAtprotoRepoGetRecord {
693
812
  /** Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set. */
694
813
  export declare namespace ComAtprotoRepoImportRepo {
695
814
  interface Params {}
696
- type Input = Blob | ArrayBufferView;
815
+ type Input = Blob | BufferSource | ReadableStream;
697
816
  type Output = undefined;
698
817
  }
699
818
 
@@ -715,8 +834,8 @@ export declare namespace ComAtprotoRepoListMissingBlobs {
715
834
  }
716
835
  interface RecordBlob {
717
836
  [Brand.Type]?: 'com.atproto.repo.listMissingBlobs#recordBlob';
718
- cid: At.CID;
719
- recordUri: At.Uri;
837
+ cid: At.Cid;
838
+ recordUri: At.ResourceUri;
720
839
  }
721
840
  }
722
841
 
@@ -724,9 +843,9 @@ export declare namespace ComAtprotoRepoListMissingBlobs {
724
843
  export declare namespace ComAtprotoRepoListRecords {
725
844
  interface Params {
726
845
  /** The NSID of the record type. */
727
- collection: string;
846
+ collection: At.Nsid;
728
847
  /** The handle or DID of the repo. */
729
- repo: string;
848
+ repo: At.Identifier;
730
849
  cursor?: string;
731
850
  /**
732
851
  * The number of records to return. \
@@ -737,16 +856,6 @@ export declare namespace ComAtprotoRepoListRecords {
737
856
  limit?: number;
738
857
  /** Flag to reverse the order of the returned records. */
739
858
  reverse?: boolean;
740
- /**
741
- * DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)
742
- * @deprecated
743
- */
744
- rkeyEnd?: string;
745
- /**
746
- * DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)
747
- * @deprecated
748
- */
749
- rkeyStart?: string;
750
859
  }
751
860
  type Input = undefined;
752
861
  interface Output {
@@ -755,8 +864,8 @@ export declare namespace ComAtprotoRepoListRecords {
755
864
  }
756
865
  interface Record {
757
866
  [Brand.Type]?: 'com.atproto.repo.listRecords#record';
758
- cid: At.CID;
759
- uri: At.Uri;
867
+ cid: At.Cid;
868
+ uri: At.ResourceUri;
760
869
  value: unknown;
761
870
  }
762
871
  }
@@ -766,23 +875,23 @@ export declare namespace ComAtprotoRepoPutRecord {
766
875
  interface Params {}
767
876
  interface Input {
768
877
  /** The NSID of the record collection. */
769
- collection: string;
878
+ collection: At.Nsid;
770
879
  /** The record to write. */
771
880
  record: unknown;
772
881
  /** The handle or DID of the repo (aka, current account). */
773
- repo: string;
882
+ repo: At.Identifier;
774
883
  /** The Record Key. */
775
- rkey: string;
884
+ rkey: At.RecordKey;
776
885
  /** Compare and swap with the previous commit by CID. */
777
- swapCommit?: At.CID;
886
+ swapCommit?: At.Cid;
778
887
  /** Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation */
779
- swapRecord?: At.CID | null;
888
+ swapRecord?: At.Cid | null;
780
889
  /** 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. */
781
890
  validate?: boolean;
782
891
  }
783
892
  interface Output {
784
- cid: At.CID;
785
- uri: At.Uri;
893
+ cid: At.Cid;
894
+ uri: At.ResourceUri;
786
895
  commit?: ComAtprotoRepoDefs.CommitMeta;
787
896
  validationStatus?: 'unknown' | 'valid' | (string & {});
788
897
  }
@@ -794,15 +903,15 @@ export declare namespace ComAtprotoRepoPutRecord {
794
903
  export declare namespace ComAtprotoRepoStrongRef {
795
904
  interface Main {
796
905
  [Brand.Type]?: 'com.atproto.repo.strongRef';
797
- cid: At.CID;
798
- uri: At.Uri;
906
+ cid: At.Cid;
907
+ uri: At.ResourceUri;
799
908
  }
800
909
  }
801
910
 
802
911
  /** 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. */
803
912
  export declare namespace ComAtprotoRepoUploadBlob {
804
913
  interface Params {}
805
- type Input = Blob | ArrayBufferView;
914
+ type Input = Blob | BufferSource | ReadableStream;
806
915
  interface Output {
807
916
  blob: At.Blob;
808
917
  }
@@ -826,7 +935,7 @@ export declare namespace ComAtprotoServerCheckAccountStatus {
826
935
  indexedRecords: number;
827
936
  privateStateValues: number;
828
937
  repoBlocks: number;
829
- repoCommit: At.CID;
938
+ repoCommit: At.Cid;
830
939
  repoRev: string;
831
940
  validDid: boolean;
832
941
  }
@@ -855,7 +964,7 @@ export declare namespace ComAtprotoServerCreateAccount {
855
964
  /** Requested handle for the account. */
856
965
  handle: At.Handle;
857
966
  /** Pre-existing atproto DID, being imported to a new account. */
858
- did?: At.DID;
967
+ did?: At.Did;
859
968
  email?: string;
860
969
  inviteCode?: string;
861
970
  /** Initial account password. May need to meet instance-specific password strength requirements. */
@@ -871,7 +980,7 @@ export declare namespace ComAtprotoServerCreateAccount {
871
980
  interface Output {
872
981
  accessJwt: string;
873
982
  /** The DID of the new account. */
874
- did: At.DID;
983
+ did: At.Did;
875
984
  handle: At.Handle;
876
985
  refreshJwt: string;
877
986
  /** Complete DID document. */
@@ -915,7 +1024,7 @@ export declare namespace ComAtprotoServerCreateInviteCode {
915
1024
  interface Params {}
916
1025
  interface Input {
917
1026
  useCount: number;
918
- forAccount?: At.DID;
1027
+ forAccount?: At.Did;
919
1028
  }
920
1029
  interface Output {
921
1030
  code: string;
@@ -929,7 +1038,7 @@ export declare namespace ComAtprotoServerCreateInviteCodes {
929
1038
  /** @default 1 */
930
1039
  codeCount: number;
931
1040
  useCount: number;
932
- forAccounts?: At.DID[];
1041
+ forAccounts?: At.Did[];
933
1042
  }
934
1043
  interface Output {
935
1044
  codes: AccountCodes[];
@@ -954,7 +1063,7 @@ export declare namespace ComAtprotoServerCreateSession {
954
1063
  }
955
1064
  interface Output {
956
1065
  accessJwt: string;
957
- did: At.DID;
1066
+ did: At.Did;
958
1067
  handle: At.Handle;
959
1068
  refreshJwt: string;
960
1069
  active?: boolean;
@@ -995,7 +1104,7 @@ export declare namespace ComAtprotoServerDefs {
995
1104
  interface InviteCodeUse {
996
1105
  [Brand.Type]?: 'com.atproto.server.defs#inviteCodeUse';
997
1106
  usedAt: string;
998
- usedBy: At.DID;
1107
+ usedBy: At.Did;
999
1108
  }
1000
1109
  }
1001
1110
 
@@ -1003,7 +1112,7 @@ export declare namespace ComAtprotoServerDefs {
1003
1112
  export declare namespace ComAtprotoServerDeleteAccount {
1004
1113
  interface Params {}
1005
1114
  interface Input {
1006
- did: At.DID;
1115
+ did: At.Did;
1007
1116
  password: string;
1008
1117
  token: string;
1009
1118
  }
@@ -1028,7 +1137,7 @@ export declare namespace ComAtprotoServerDescribeServer {
1028
1137
  interface Output {
1029
1138
  /** List of domain suffixes that can be used in account handles. */
1030
1139
  availableUserDomains: string[];
1031
- did: At.DID;
1140
+ did: At.Did;
1032
1141
  /** Contact information */
1033
1142
  contact?: Contact;
1034
1143
  /** If true, an invite code must be supplied to create an account on this instance. */
@@ -1044,8 +1153,8 @@ export declare namespace ComAtprotoServerDescribeServer {
1044
1153
  }
1045
1154
  interface Links {
1046
1155
  [Brand.Type]?: 'com.atproto.server.describeServer#links';
1047
- privacyPolicy?: string;
1048
- termsOfService?: string;
1156
+ privacyPolicy?: At.GenericUri;
1157
+ termsOfService?: At.GenericUri;
1049
1158
  }
1050
1159
  }
1051
1160
 
@@ -1073,11 +1182,11 @@ export declare namespace ComAtprotoServerGetAccountInviteCodes {
1073
1182
  export declare namespace ComAtprotoServerGetServiceAuth {
1074
1183
  interface Params {
1075
1184
  /** The DID of the service that the token will be used to authenticate with */
1076
- aud: At.DID;
1185
+ aud: At.Did;
1077
1186
  /** 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. */
1078
1187
  exp?: number;
1079
1188
  /** Lexicon (XRPC) method to bind the requested token to */
1080
- lxm?: string;
1189
+ lxm?: At.Nsid;
1081
1190
  }
1082
1191
  type Input = undefined;
1083
1192
  interface Output {
@@ -1093,7 +1202,7 @@ export declare namespace ComAtprotoServerGetSession {
1093
1202
  interface Params {}
1094
1203
  type Input = undefined;
1095
1204
  interface Output {
1096
- did: At.DID;
1205
+ did: At.Did;
1097
1206
  handle: At.Handle;
1098
1207
  active?: boolean;
1099
1208
  didDoc?: unknown;
@@ -1129,7 +1238,7 @@ export declare namespace ComAtprotoServerRefreshSession {
1129
1238
  type Input = undefined;
1130
1239
  interface Output {
1131
1240
  accessJwt: string;
1132
- did: At.DID;
1241
+ did: At.Did;
1133
1242
  handle: At.Handle;
1134
1243
  refreshJwt: string;
1135
1244
  active?: boolean;
@@ -1179,7 +1288,7 @@ export declare namespace ComAtprotoServerReserveSigningKey {
1179
1288
  interface Params {}
1180
1289
  interface Input {
1181
1290
  /** The DID to reserve a key for. */
1182
- did?: At.DID;
1291
+ did?: At.Did;
1183
1292
  }
1184
1293
  interface Output {
1185
1294
  /** The public key for the reserved signing key, in did:key serialization. */
@@ -1231,9 +1340,9 @@ export declare namespace ComAtprotoServerUpdateEmail {
1231
1340
  export declare namespace ComAtprotoSyncGetBlob {
1232
1341
  interface Params {
1233
1342
  /** The CID of the blob to fetch */
1234
- cid: At.CID;
1343
+ cid: At.Cid;
1235
1344
  /** The DID of the account. */
1236
- did: At.DID;
1345
+ did: At.Did;
1237
1346
  }
1238
1347
  type Input = undefined;
1239
1348
  type Output = Uint8Array;
@@ -1249,9 +1358,9 @@ export declare namespace ComAtprotoSyncGetBlob {
1249
1358
  /** Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS. */
1250
1359
  export declare namespace ComAtprotoSyncGetBlocks {
1251
1360
  interface Params {
1252
- cids: At.CID[];
1361
+ cids: At.Cid[];
1253
1362
  /** The DID of the repo. */
1254
- did: At.DID;
1363
+ did: At.Did;
1255
1364
  }
1256
1365
  type Input = undefined;
1257
1366
  type Output = Uint8Array;
@@ -1271,7 +1380,7 @@ export declare namespace ComAtprotoSyncGetBlocks {
1271
1380
  export declare namespace ComAtprotoSyncGetCheckout {
1272
1381
  interface Params {
1273
1382
  /** The DID of the repo. */
1274
- did: At.DID;
1383
+ did: At.Did;
1275
1384
  }
1276
1385
  type Input = undefined;
1277
1386
  type Output = Uint8Array;
@@ -1284,11 +1393,11 @@ export declare namespace ComAtprotoSyncGetCheckout {
1284
1393
  export declare namespace ComAtprotoSyncGetHead {
1285
1394
  interface Params {
1286
1395
  /** The DID of the repo. */
1287
- did: At.DID;
1396
+ did: At.Did;
1288
1397
  }
1289
1398
  type Input = undefined;
1290
1399
  interface Output {
1291
- root: At.CID;
1400
+ root: At.Cid;
1292
1401
  }
1293
1402
  interface Errors {
1294
1403
  HeadNotFound: {};
@@ -1299,12 +1408,12 @@ export declare namespace ComAtprotoSyncGetHead {
1299
1408
  export declare namespace ComAtprotoSyncGetLatestCommit {
1300
1409
  interface Params {
1301
1410
  /** The DID of the repo. */
1302
- did: At.DID;
1411
+ did: At.Did;
1303
1412
  }
1304
1413
  type Input = undefined;
1305
1414
  interface Output {
1306
- cid: At.CID;
1307
- rev: string;
1415
+ cid: At.Cid;
1416
+ rev: At.Tid;
1308
1417
  }
1309
1418
  interface Errors {
1310
1419
  RepoNotFound: {};
@@ -1317,16 +1426,11 @@ export declare namespace ComAtprotoSyncGetLatestCommit {
1317
1426
  /** Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. */
1318
1427
  export declare namespace ComAtprotoSyncGetRecord {
1319
1428
  interface Params {
1320
- collection: string;
1429
+ collection: At.Nsid;
1321
1430
  /** The DID of the repo. */
1322
- did: At.DID;
1431
+ did: At.Did;
1323
1432
  /** Record Key */
1324
- rkey: string;
1325
- /**
1326
- * DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit
1327
- * @deprecated
1328
- */
1329
- commit?: At.CID;
1433
+ rkey: At.RecordKey;
1330
1434
  }
1331
1435
  type Input = undefined;
1332
1436
  type Output = Uint8Array;
@@ -1343,9 +1447,9 @@ export declare namespace ComAtprotoSyncGetRecord {
1343
1447
  export declare namespace ComAtprotoSyncGetRepo {
1344
1448
  interface Params {
1345
1449
  /** The DID of the repo. */
1346
- did: At.DID;
1450
+ did: At.Did;
1347
1451
  /** The revision ('rev') of the repo to create a diff from. */
1348
- since?: string;
1452
+ since?: At.Tid;
1349
1453
  }
1350
1454
  type Input = undefined;
1351
1455
  type Output = Uint8Array;
@@ -1361,14 +1465,14 @@ export declare namespace ComAtprotoSyncGetRepo {
1361
1465
  export declare namespace ComAtprotoSyncGetRepoStatus {
1362
1466
  interface Params {
1363
1467
  /** The DID of the repo. */
1364
- did: At.DID;
1468
+ did: At.Did;
1365
1469
  }
1366
1470
  type Input = undefined;
1367
1471
  interface Output {
1368
1472
  active: boolean;
1369
- did: At.DID;
1473
+ did: At.Did;
1370
1474
  /** Optional field, the current rev of the repo, if active=true */
1371
- rev?: string;
1475
+ rev?: At.Tid;
1372
1476
  /** 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. */
1373
1477
  status?:
1374
1478
  | 'deactivated'
@@ -1388,7 +1492,7 @@ export declare namespace ComAtprotoSyncGetRepoStatus {
1388
1492
  export declare namespace ComAtprotoSyncListBlobs {
1389
1493
  interface Params {
1390
1494
  /** The DID of the repo. */
1391
- did: At.DID;
1495
+ did: At.Did;
1392
1496
  cursor?: string;
1393
1497
  /**
1394
1498
  * Minimum: 1 \
@@ -1397,11 +1501,11 @@ export declare namespace ComAtprotoSyncListBlobs {
1397
1501
  */
1398
1502
  limit?: number;
1399
1503
  /** Optional revision of the repo to list blobs since. */
1400
- since?: string;
1504
+ since?: At.Tid;
1401
1505
  }
1402
1506
  type Input = undefined;
1403
1507
  interface Output {
1404
- cids: At.CID[];
1508
+ cids: At.Cid[];
1405
1509
  cursor?: string;
1406
1510
  }
1407
1511
  interface Errors {
@@ -1430,10 +1534,10 @@ export declare namespace ComAtprotoSyncListRepos {
1430
1534
  }
1431
1535
  interface Repo {
1432
1536
  [Brand.Type]?: 'com.atproto.sync.listRepos#repo';
1433
- did: At.DID;
1537
+ did: At.Did;
1434
1538
  /** Current repo commit CID */
1435
- head: At.CID;
1436
- rev: string;
1539
+ head: At.Cid;
1540
+ rev: At.Tid;
1437
1541
  active?: boolean;
1438
1542
  /** 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. */
1439
1543
  status?:
@@ -1450,7 +1554,7 @@ export declare namespace ComAtprotoSyncListRepos {
1450
1554
  /** Enumerates all the DIDs which have records with the given collection NSID. */
1451
1555
  export declare namespace ComAtprotoSyncListReposByCollection {
1452
1556
  interface Params {
1453
- collection: string;
1557
+ collection: At.Nsid;
1454
1558
  cursor?: string;
1455
1559
  /**
1456
1560
  * Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists. \
@@ -1467,11 +1571,11 @@ export declare namespace ComAtprotoSyncListReposByCollection {
1467
1571
  }
1468
1572
  interface Repo {
1469
1573
  [Brand.Type]?: 'com.atproto.sync.listReposByCollection#repo';
1470
- did: At.DID;
1574
+ did: At.Did;
1471
1575
  }
1472
1576
  }
1473
1577
 
1474
- /** 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. */
1578
+ /** 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 */
1475
1579
  export declare namespace ComAtprotoSyncNotifyOfUpdate {
1476
1580
  interface Params {}
1477
1581
  interface Input {
@@ -1497,7 +1601,7 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
1497
1601
  [Brand.Type]?: 'com.atproto.sync.subscribeRepos#account';
1498
1602
  /** Indicates that the account has a repository which can be fetched from the host that emitted this event. */
1499
1603
  active: boolean;
1500
- did: At.DID;
1604
+ did: At.Did;
1501
1605
  seq: number;
1502
1606
  time: string;
1503
1607
  /** If active=false, this optional field indicates a reason for why the account is not active. */
@@ -1517,11 +1621,11 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
1517
1621
  * DEPRECATED -- will soon always be empty. List of new blobs (by CID) referenced by records in this commit.
1518
1622
  * @deprecated
1519
1623
  */
1520
- blobs: At.CIDLink[];
1624
+ blobs: At.CidLink[];
1521
1625
  /** 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. */
1522
1626
  blocks: At.Bytes;
1523
1627
  /** Repo commit object CID. */
1524
- commit: At.CIDLink;
1628
+ commit: At.CidLink;
1525
1629
  /**
1526
1630
  * Maximum array length: 200 \
1527
1631
  * List of repo mutation operations in this commit (eg, records created, updated, or deleted).
@@ -1533,13 +1637,13 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
1533
1637
  */
1534
1638
  rebase: boolean;
1535
1639
  /** The repo this event comes from. Note that all other message types name this field 'did'. */
1536
- repo: At.DID;
1640
+ repo: At.Did;
1537
1641
  /** 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. */
1538
- rev: string;
1642
+ rev: At.Tid;
1539
1643
  /** The stream sequence number of this message. */
1540
1644
  seq: number;
1541
1645
  /** The rev of the last emitted commit from this repo (if any). */
1542
- since: string | null;
1646
+ since: At.Tid | null;
1543
1647
  /** Timestamp of when this message was originally broadcast. */
1544
1648
  time: string;
1545
1649
  /**
@@ -1548,23 +1652,12 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
1548
1652
  */
1549
1653
  tooBig: boolean;
1550
1654
  /** 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. */
1551
- prevData?: At.CIDLink;
1552
- }
1553
- /**
1554
- * DEPRECATED -- Use #identity event instead
1555
- * @deprecated
1556
- */
1557
- interface Handle {
1558
- [Brand.Type]?: 'com.atproto.sync.subscribeRepos#handle';
1559
- did: At.DID;
1560
- handle: At.Handle;
1561
- seq: number;
1562
- time: string;
1655
+ prevData?: At.CidLink;
1563
1656
  }
1564
1657
  /** 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. */
1565
1658
  interface Identity {
1566
1659
  [Brand.Type]?: 'com.atproto.sync.subscribeRepos#identity';
1567
- did: At.DID;
1660
+ did: At.Did;
1568
1661
  seq: number;
1569
1662
  time: string;
1570
1663
  /** 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. */
@@ -1575,26 +1668,15 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
1575
1668
  name: 'OutdatedCursor' | (string & {});
1576
1669
  message?: string;
1577
1670
  }
1578
- /**
1579
- * DEPRECATED -- Use #account event instead
1580
- * @deprecated
1581
- */
1582
- interface Migrate {
1583
- [Brand.Type]?: 'com.atproto.sync.subscribeRepos#migrate';
1584
- did: At.DID;
1585
- migrateTo: string | null;
1586
- seq: number;
1587
- time: string;
1588
- }
1589
1671
  /** A repo operation, ie a mutation of a single record. */
1590
1672
  interface RepoOp {
1591
1673
  [Brand.Type]?: 'com.atproto.sync.subscribeRepos#repoOp';
1592
1674
  action: 'create' | 'delete' | 'update' | (string & {});
1593
1675
  /** For creates and updates, the new record CID. For deletions, null. */
1594
- cid: At.CIDLink | null;
1676
+ cid: At.CidLink | null;
1595
1677
  path: string;
1596
1678
  /** For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. */
1597
- prev?: At.CIDLink;
1679
+ prev?: At.CidLink;
1598
1680
  }
1599
1681
  /** 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. */
1600
1682
  interface Sync {
@@ -1602,7 +1684,7 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
1602
1684
  /** CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. */
1603
1685
  blocks: At.Bytes;
1604
1686
  /** The account this repo event corresponds to. Must match that in the commit object. */
1605
- did: At.DID;
1687
+ did: At.Did;
1606
1688
  /** The rev of the commit. This value must match that in the commit object. */
1607
1689
  rev: string;
1608
1690
  /** The stream sequence number of this message. */
@@ -1610,16 +1692,6 @@ export declare namespace ComAtprotoSyncSubscribeRepos {
1610
1692
  /** Timestamp of when this message was originally broadcast. */
1611
1693
  time: string;
1612
1694
  }
1613
- /**
1614
- * DEPRECATED -- Use #account event instead
1615
- * @deprecated
1616
- */
1617
- interface Tombstone {
1618
- [Brand.Type]?: 'com.atproto.sync.subscribeRepos#tombstone';
1619
- did: At.DID;
1620
- seq: number;
1621
- time: string;
1622
- }
1623
1695
  }
1624
1696
 
1625
1697
  /** Add a handle to the set of reserved handles. */
@@ -1678,121 +1750,195 @@ export declare interface Records {
1678
1750
  export declare interface Queries {
1679
1751
  'com.atproto.admin.getAccountInfo': {
1680
1752
  params: ComAtprotoAdminGetAccountInfo.Params;
1753
+ /** @deprecated */
1681
1754
  output: ComAtprotoAdminGetAccountInfo.Output;
1755
+ response: { json: ComAtprotoAdminGetAccountInfo.Output };
1682
1756
  };
1683
1757
  'com.atproto.admin.getAccountInfos': {
1684
1758
  params: ComAtprotoAdminGetAccountInfos.Params;
1759
+ /** @deprecated */
1685
1760
  output: ComAtprotoAdminGetAccountInfos.Output;
1761
+ response: { json: ComAtprotoAdminGetAccountInfos.Output };
1686
1762
  };
1687
1763
  'com.atproto.admin.getInviteCodes': {
1688
1764
  params: ComAtprotoAdminGetInviteCodes.Params;
1765
+ /** @deprecated */
1689
1766
  output: ComAtprotoAdminGetInviteCodes.Output;
1767
+ response: { json: ComAtprotoAdminGetInviteCodes.Output };
1690
1768
  };
1691
1769
  'com.atproto.admin.getSubjectStatus': {
1692
1770
  params: ComAtprotoAdminGetSubjectStatus.Params;
1771
+ /** @deprecated */
1693
1772
  output: ComAtprotoAdminGetSubjectStatus.Output;
1773
+ response: { json: ComAtprotoAdminGetSubjectStatus.Output };
1694
1774
  };
1695
1775
  'com.atproto.admin.searchAccounts': {
1696
1776
  params: ComAtprotoAdminSearchAccounts.Params;
1777
+ /** @deprecated */
1697
1778
  output: ComAtprotoAdminSearchAccounts.Output;
1779
+ response: { json: ComAtprotoAdminSearchAccounts.Output };
1698
1780
  };
1699
1781
  'com.atproto.identity.getRecommendedDidCredentials': {
1782
+ /** @deprecated */
1700
1783
  output: ComAtprotoIdentityGetRecommendedDidCredentials.Output;
1784
+ response: { json: ComAtprotoIdentityGetRecommendedDidCredentials.Output };
1785
+ };
1786
+ 'com.atproto.identity.resolveDid': {
1787
+ params: ComAtprotoIdentityResolveDid.Params;
1788
+ /** @deprecated */
1789
+ output: ComAtprotoIdentityResolveDid.Output;
1790
+ response: { json: ComAtprotoIdentityResolveDid.Output };
1701
1791
  };
1702
1792
  'com.atproto.identity.resolveHandle': {
1703
1793
  params: ComAtprotoIdentityResolveHandle.Params;
1794
+ /** @deprecated */
1704
1795
  output: ComAtprotoIdentityResolveHandle.Output;
1796
+ response: { json: ComAtprotoIdentityResolveHandle.Output };
1797
+ };
1798
+ 'com.atproto.identity.resolveIdentity': {
1799
+ params: ComAtprotoIdentityResolveIdentity.Params;
1800
+ /** @deprecated */
1801
+ output: ComAtprotoIdentityResolveIdentity.Output;
1802
+ response: { json: ComAtprotoIdentityResolveIdentity.Output };
1705
1803
  };
1706
1804
  'com.atproto.label.queryLabels': {
1707
1805
  params: ComAtprotoLabelQueryLabels.Params;
1806
+ /** @deprecated */
1708
1807
  output: ComAtprotoLabelQueryLabels.Output;
1808
+ response: { json: ComAtprotoLabelQueryLabels.Output };
1709
1809
  };
1710
1810
  'com.atproto.repo.describeRepo': {
1711
1811
  params: ComAtprotoRepoDescribeRepo.Params;
1812
+ /** @deprecated */
1712
1813
  output: ComAtprotoRepoDescribeRepo.Output;
1814
+ response: { json: ComAtprotoRepoDescribeRepo.Output };
1713
1815
  };
1714
1816
  'com.atproto.repo.getRecord': {
1715
1817
  params: ComAtprotoRepoGetRecord.Params;
1818
+ /** @deprecated */
1716
1819
  output: ComAtprotoRepoGetRecord.Output;
1820
+ response: { json: ComAtprotoRepoGetRecord.Output };
1717
1821
  };
1718
1822
  'com.atproto.repo.listMissingBlobs': {
1719
1823
  params: ComAtprotoRepoListMissingBlobs.Params;
1824
+ /** @deprecated */
1720
1825
  output: ComAtprotoRepoListMissingBlobs.Output;
1826
+ response: { json: ComAtprotoRepoListMissingBlobs.Output };
1721
1827
  };
1722
1828
  'com.atproto.repo.listRecords': {
1723
1829
  params: ComAtprotoRepoListRecords.Params;
1830
+ /** @deprecated */
1724
1831
  output: ComAtprotoRepoListRecords.Output;
1832
+ response: { json: ComAtprotoRepoListRecords.Output };
1725
1833
  };
1726
1834
  'com.atproto.server.checkAccountStatus': {
1835
+ /** @deprecated */
1727
1836
  output: ComAtprotoServerCheckAccountStatus.Output;
1837
+ response: { json: ComAtprotoServerCheckAccountStatus.Output };
1728
1838
  };
1729
1839
  'com.atproto.server.describeServer': {
1840
+ /** @deprecated */
1730
1841
  output: ComAtprotoServerDescribeServer.Output;
1842
+ response: { json: ComAtprotoServerDescribeServer.Output };
1731
1843
  };
1732
1844
  'com.atproto.server.getAccountInviteCodes': {
1733
1845
  params: ComAtprotoServerGetAccountInviteCodes.Params;
1846
+ /** @deprecated */
1734
1847
  output: ComAtprotoServerGetAccountInviteCodes.Output;
1848
+ response: { json: ComAtprotoServerGetAccountInviteCodes.Output };
1735
1849
  };
1736
1850
  'com.atproto.server.getServiceAuth': {
1737
1851
  params: ComAtprotoServerGetServiceAuth.Params;
1852
+ /** @deprecated */
1738
1853
  output: ComAtprotoServerGetServiceAuth.Output;
1854
+ response: { json: ComAtprotoServerGetServiceAuth.Output };
1739
1855
  };
1740
1856
  'com.atproto.server.getSession': {
1857
+ /** @deprecated */
1741
1858
  output: ComAtprotoServerGetSession.Output;
1859
+ response: { json: ComAtprotoServerGetSession.Output };
1742
1860
  };
1743
1861
  'com.atproto.server.listAppPasswords': {
1862
+ /** @deprecated */
1744
1863
  output: ComAtprotoServerListAppPasswords.Output;
1864
+ response: { json: ComAtprotoServerListAppPasswords.Output };
1745
1865
  };
1746
1866
  'com.atproto.sync.getBlob': {
1747
1867
  params: ComAtprotoSyncGetBlob.Params;
1868
+ /** @deprecated */
1748
1869
  output: ComAtprotoSyncGetBlob.Output;
1870
+ response: {};
1749
1871
  };
1750
1872
  'com.atproto.sync.getBlocks': {
1751
1873
  params: ComAtprotoSyncGetBlocks.Params;
1874
+ /** @deprecated */
1752
1875
  output: ComAtprotoSyncGetBlocks.Output;
1876
+ response: {};
1753
1877
  };
1754
1878
  'com.atproto.sync.getCheckout': {
1755
1879
  params: ComAtprotoSyncGetCheckout.Params;
1880
+ /** @deprecated */
1756
1881
  output: ComAtprotoSyncGetCheckout.Output;
1882
+ response: {};
1757
1883
  };
1758
1884
  'com.atproto.sync.getHead': {
1759
1885
  params: ComAtprotoSyncGetHead.Params;
1886
+ /** @deprecated */
1760
1887
  output: ComAtprotoSyncGetHead.Output;
1888
+ response: { json: ComAtprotoSyncGetHead.Output };
1761
1889
  };
1762
1890
  'com.atproto.sync.getLatestCommit': {
1763
1891
  params: ComAtprotoSyncGetLatestCommit.Params;
1892
+ /** @deprecated */
1764
1893
  output: ComAtprotoSyncGetLatestCommit.Output;
1894
+ response: { json: ComAtprotoSyncGetLatestCommit.Output };
1765
1895
  };
1766
1896
  'com.atproto.sync.getRecord': {
1767
1897
  params: ComAtprotoSyncGetRecord.Params;
1898
+ /** @deprecated */
1768
1899
  output: ComAtprotoSyncGetRecord.Output;
1900
+ response: {};
1769
1901
  };
1770
1902
  'com.atproto.sync.getRepo': {
1771
1903
  params: ComAtprotoSyncGetRepo.Params;
1904
+ /** @deprecated */
1772
1905
  output: ComAtprotoSyncGetRepo.Output;
1906
+ response: {};
1773
1907
  };
1774
1908
  'com.atproto.sync.getRepoStatus': {
1775
1909
  params: ComAtprotoSyncGetRepoStatus.Params;
1910
+ /** @deprecated */
1776
1911
  output: ComAtprotoSyncGetRepoStatus.Output;
1912
+ response: { json: ComAtprotoSyncGetRepoStatus.Output };
1777
1913
  };
1778
1914
  'com.atproto.sync.listBlobs': {
1779
1915
  params: ComAtprotoSyncListBlobs.Params;
1916
+ /** @deprecated */
1780
1917
  output: ComAtprotoSyncListBlobs.Output;
1918
+ response: { json: ComAtprotoSyncListBlobs.Output };
1781
1919
  };
1782
1920
  'com.atproto.sync.listRepos': {
1783
1921
  params: ComAtprotoSyncListRepos.Params;
1922
+ /** @deprecated */
1784
1923
  output: ComAtprotoSyncListRepos.Output;
1924
+ response: { json: ComAtprotoSyncListRepos.Output };
1785
1925
  };
1786
1926
  'com.atproto.sync.listReposByCollection': {
1787
1927
  params: ComAtprotoSyncListReposByCollection.Params;
1928
+ /** @deprecated */
1788
1929
  output: ComAtprotoSyncListReposByCollection.Output;
1930
+ response: { json: ComAtprotoSyncListReposByCollection.Output };
1789
1931
  };
1790
1932
  'com.atproto.temp.checkSignupQueue': {
1933
+ /** @deprecated */
1791
1934
  output: ComAtprotoTempCheckSignupQueue.Output;
1935
+ response: { json: ComAtprotoTempCheckSignupQueue.Output };
1792
1936
  };
1793
1937
  'com.atproto.temp.fetchLabels': {
1794
1938
  params: ComAtprotoTempFetchLabels.Params;
1939
+ /** @deprecated */
1795
1940
  output: ComAtprotoTempFetchLabels.Output;
1941
+ response: { json: ComAtprotoTempFetchLabels.Output };
1796
1942
  };
1797
1943
  }
1798
1944
 
@@ -1811,7 +1957,9 @@ export declare interface Procedures {
1811
1957
  };
1812
1958
  'com.atproto.admin.sendEmail': {
1813
1959
  input: ComAtprotoAdminSendEmail.Input;
1960
+ /** @deprecated */
1814
1961
  output: ComAtprotoAdminSendEmail.Output;
1962
+ response: { json: ComAtprotoAdminSendEmail.Output };
1815
1963
  };
1816
1964
  'com.atproto.admin.updateAccountEmail': {
1817
1965
  input: ComAtprotoAdminUpdateAccountEmail.Input;
@@ -1824,12 +1972,22 @@ export declare interface Procedures {
1824
1972
  };
1825
1973
  'com.atproto.admin.updateSubjectStatus': {
1826
1974
  input: ComAtprotoAdminUpdateSubjectStatus.Input;
1975
+ /** @deprecated */
1827
1976
  output: ComAtprotoAdminUpdateSubjectStatus.Output;
1977
+ response: { json: ComAtprotoAdminUpdateSubjectStatus.Output };
1978
+ };
1979
+ 'com.atproto.identity.refreshIdentity': {
1980
+ input: ComAtprotoIdentityRefreshIdentity.Input;
1981
+ /** @deprecated */
1982
+ output: ComAtprotoIdentityRefreshIdentity.Output;
1983
+ response: { json: ComAtprotoIdentityRefreshIdentity.Output };
1828
1984
  };
1829
1985
  'com.atproto.identity.requestPlcOperationSignature': {};
1830
1986
  'com.atproto.identity.signPlcOperation': {
1831
1987
  input: ComAtprotoIdentitySignPlcOperation.Input;
1988
+ /** @deprecated */
1832
1989
  output: ComAtprotoIdentitySignPlcOperation.Output;
1990
+ response: { json: ComAtprotoIdentitySignPlcOperation.Output };
1833
1991
  };
1834
1992
  'com.atproto.identity.submitPlcOperation': {
1835
1993
  input: ComAtprotoIdentitySubmitPlcOperation.Input;
@@ -1839,30 +1997,42 @@ export declare interface Procedures {
1839
1997
  };
1840
1998
  'com.atproto.moderation.createReport': {
1841
1999
  input: ComAtprotoModerationCreateReport.Input;
2000
+ /** @deprecated */
1842
2001
  output: ComAtprotoModerationCreateReport.Output;
2002
+ response: { json: ComAtprotoModerationCreateReport.Output };
1843
2003
  };
1844
2004
  'com.atproto.repo.applyWrites': {
1845
2005
  input: ComAtprotoRepoApplyWrites.Input;
2006
+ /** @deprecated */
1846
2007
  output: ComAtprotoRepoApplyWrites.Output;
2008
+ response: { json: ComAtprotoRepoApplyWrites.Output };
1847
2009
  };
1848
2010
  'com.atproto.repo.createRecord': {
1849
2011
  input: ComAtprotoRepoCreateRecord.Input;
2012
+ /** @deprecated */
1850
2013
  output: ComAtprotoRepoCreateRecord.Output;
2014
+ response: { json: ComAtprotoRepoCreateRecord.Output };
1851
2015
  };
1852
2016
  'com.atproto.repo.deleteRecord': {
1853
2017
  input: ComAtprotoRepoDeleteRecord.Input;
2018
+ /** @deprecated */
1854
2019
  output: ComAtprotoRepoDeleteRecord.Output;
2020
+ response: { json: ComAtprotoRepoDeleteRecord.Output };
1855
2021
  };
1856
2022
  'com.atproto.repo.importRepo': {
1857
2023
  input: ComAtprotoRepoImportRepo.Input;
1858
2024
  };
1859
2025
  'com.atproto.repo.putRecord': {
1860
2026
  input: ComAtprotoRepoPutRecord.Input;
2027
+ /** @deprecated */
1861
2028
  output: ComAtprotoRepoPutRecord.Output;
2029
+ response: { json: ComAtprotoRepoPutRecord.Output };
1862
2030
  };
1863
2031
  'com.atproto.repo.uploadBlob': {
1864
2032
  input: ComAtprotoRepoUploadBlob.Input;
2033
+ /** @deprecated */
1865
2034
  output: ComAtprotoRepoUploadBlob.Output;
2035
+ response: { json: ComAtprotoRepoUploadBlob.Output };
1866
2036
  };
1867
2037
  'com.atproto.server.activateAccount': {};
1868
2038
  'com.atproto.server.confirmEmail': {
@@ -1870,23 +2040,33 @@ export declare interface Procedures {
1870
2040
  };
1871
2041
  'com.atproto.server.createAccount': {
1872
2042
  input: ComAtprotoServerCreateAccount.Input;
2043
+ /** @deprecated */
1873
2044
  output: ComAtprotoServerCreateAccount.Output;
2045
+ response: { json: ComAtprotoServerCreateAccount.Output };
1874
2046
  };
1875
2047
  'com.atproto.server.createAppPassword': {
1876
2048
  input: ComAtprotoServerCreateAppPassword.Input;
2049
+ /** @deprecated */
1877
2050
  output: ComAtprotoServerCreateAppPassword.Output;
2051
+ response: { json: ComAtprotoServerCreateAppPassword.Output };
1878
2052
  };
1879
2053
  'com.atproto.server.createInviteCode': {
1880
2054
  input: ComAtprotoServerCreateInviteCode.Input;
2055
+ /** @deprecated */
1881
2056
  output: ComAtprotoServerCreateInviteCode.Output;
2057
+ response: { json: ComAtprotoServerCreateInviteCode.Output };
1882
2058
  };
1883
2059
  'com.atproto.server.createInviteCodes': {
1884
2060
  input: ComAtprotoServerCreateInviteCodes.Input;
2061
+ /** @deprecated */
1885
2062
  output: ComAtprotoServerCreateInviteCodes.Output;
2063
+ response: { json: ComAtprotoServerCreateInviteCodes.Output };
1886
2064
  };
1887
2065
  'com.atproto.server.createSession': {
1888
2066
  input: ComAtprotoServerCreateSession.Input;
2067
+ /** @deprecated */
1889
2068
  output: ComAtprotoServerCreateSession.Output;
2069
+ response: { json: ComAtprotoServerCreateSession.Output };
1890
2070
  };
1891
2071
  'com.atproto.server.deactivateAccount': {
1892
2072
  input: ComAtprotoServerDeactivateAccount.Input;
@@ -1896,19 +2076,25 @@ export declare interface Procedures {
1896
2076
  };
1897
2077
  'com.atproto.server.deleteSession': {};
1898
2078
  'com.atproto.server.refreshSession': {
2079
+ /** @deprecated */
1899
2080
  output: ComAtprotoServerRefreshSession.Output;
2081
+ response: { json: ComAtprotoServerRefreshSession.Output };
1900
2082
  };
1901
2083
  'com.atproto.server.requestAccountDelete': {};
1902
2084
  'com.atproto.server.requestEmailConfirmation': {};
1903
2085
  'com.atproto.server.requestEmailUpdate': {
2086
+ /** @deprecated */
1904
2087
  output: ComAtprotoServerRequestEmailUpdate.Output;
2088
+ response: { json: ComAtprotoServerRequestEmailUpdate.Output };
1905
2089
  };
1906
2090
  'com.atproto.server.requestPasswordReset': {
1907
2091
  input: ComAtprotoServerRequestPasswordReset.Input;
1908
2092
  };
1909
2093
  'com.atproto.server.reserveSigningKey': {
1910
2094
  input: ComAtprotoServerReserveSigningKey.Input;
2095
+ /** @deprecated */
1911
2096
  output: ComAtprotoServerReserveSigningKey.Output;
2097
+ response: { json: ComAtprotoServerReserveSigningKey.Output };
1912
2098
  };
1913
2099
  'com.atproto.server.resetPassword': {
1914
2100
  input: ComAtprotoServerResetPassword.Input;
@@ -1927,7 +2113,9 @@ export declare interface Procedures {
1927
2113
  };
1928
2114
  'com.atproto.temp.addReservedHandle': {
1929
2115
  input: ComAtprotoTempAddReservedHandle.Input;
2116
+ /** @deprecated */
1930
2117
  output: ComAtprotoTempAddReservedHandle.Output;
2118
+ response: { json: ComAtprotoTempAddReservedHandle.Output };
1931
2119
  };
1932
2120
  'com.atproto.temp.requestPhoneVerification': {
1933
2121
  input: ComAtprotoTempRequestPhoneVerification.Input;