@atproto/api 0.6.21 → 0.6.22

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atproto/api
2
2
 
3
+ ## 0.6.22
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1788](https://github.com/bluesky-social/atproto/pull/1788) [`84e2d4d2`](https://github.com/bluesky-social/atproto/commit/84e2d4d2b6694f344d80c18672c78b650189d423) Thanks [@bnewbold](https://github.com/bnewbold)! - update license to "MIT or Apache2"
8
+
9
+ - Updated dependencies [[`ce49743d`](https://github.com/bluesky-social/atproto/commit/ce49743d7f8800d33116b88001d7b512553c2c89), [`84e2d4d2`](https://github.com/bluesky-social/atproto/commit/84e2d4d2b6694f344d80c18672c78b650189d423)]:
10
+ - @atproto/lexicon@0.3.0
11
+ - @atproto/xrpc@0.4.0
12
+ - @atproto/common-web@0.2.3
13
+ - @atproto/syntax@0.1.4
14
+
3
15
  ## 0.6.21
4
16
 
5
17
  ### Patch Changes
package/LICENSE.txt ADDED
@@ -0,0 +1,7 @@
1
+ Dual MIT/Apache-2.0 License
2
+
3
+ Copyright (c) 2022-2023 Bluesky PBC, and Contributors
4
+
5
+ Except as otherwise noted in individual files, this software is licensed under the MIT license (<http://opensource.org/licenses/MIT>), or the Apache License, Version 2.0 (<http://www.apache.org/licenses/LICENSE-2.0>).
6
+
7
+ Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.
package/README.md CHANGED
@@ -335,4 +335,9 @@ BskyAgent.configure({
335
335
 
336
336
  ## License
337
337
 
338
- MIT
338
+ This project is dual-licensed under MIT and Apache 2.0 terms:
339
+
340
+ - MIT license ([LICENSE-MIT.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-MIT.txt) or http://opensource.org/licenses/MIT)
341
+ - Apache License, Version 2.0, ([LICENSE-APACHE.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-APACHE.txt) or http://www.apache.org/licenses/LICENSE-2.0)
342
+
343
+ Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.
@@ -2,6 +2,7 @@ import { Client as XrpcClient, ServiceClient as XrpcServiceClient } from '@atpro
2
2
  import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
3
3
  import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
4
4
  import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
5
+ import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo';
5
6
  import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
6
7
  import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
7
8
  import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
@@ -9,6 +10,7 @@ import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/g
9
10
  import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports';
10
11
  import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord';
11
12
  import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo';
13
+ import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus';
12
14
  import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports';
13
15
  import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
14
16
  import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
@@ -16,6 +18,7 @@ import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
16
18
  import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
17
19
  import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
18
20
  import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
21
+ import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus';
19
22
  import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle';
20
23
  import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle';
21
24
  import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels';
@@ -120,6 +123,7 @@ export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs';
120
123
  export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites';
121
124
  export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes';
122
125
  export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites';
126
+ export * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo';
123
127
  export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes';
124
128
  export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction';
125
129
  export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions';
@@ -127,6 +131,7 @@ export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/g
127
131
  export * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports';
128
132
  export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord';
129
133
  export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo';
134
+ export * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus';
130
135
  export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports';
131
136
  export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction';
132
137
  export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos';
@@ -134,6 +139,7 @@ export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail';
134
139
  export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction';
135
140
  export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail';
136
141
  export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle';
142
+ export * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus';
137
143
  export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle';
138
144
  export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle';
139
145
  export * as ComAtprotoLabelDefs from './types/com/atproto/label/defs';
@@ -302,6 +308,7 @@ export declare class AdminNS {
302
308
  disableAccountInvites(data?: ComAtprotoAdminDisableAccountInvites.InputSchema, opts?: ComAtprotoAdminDisableAccountInvites.CallOptions): Promise<ComAtprotoAdminDisableAccountInvites.Response>;
303
309
  disableInviteCodes(data?: ComAtprotoAdminDisableInviteCodes.InputSchema, opts?: ComAtprotoAdminDisableInviteCodes.CallOptions): Promise<ComAtprotoAdminDisableInviteCodes.Response>;
304
310
  enableAccountInvites(data?: ComAtprotoAdminEnableAccountInvites.InputSchema, opts?: ComAtprotoAdminEnableAccountInvites.CallOptions): Promise<ComAtprotoAdminEnableAccountInvites.Response>;
311
+ getAccountInfo(params?: ComAtprotoAdminGetAccountInfo.QueryParams, opts?: ComAtprotoAdminGetAccountInfo.CallOptions): Promise<ComAtprotoAdminGetAccountInfo.Response>;
305
312
  getInviteCodes(params?: ComAtprotoAdminGetInviteCodes.QueryParams, opts?: ComAtprotoAdminGetInviteCodes.CallOptions): Promise<ComAtprotoAdminGetInviteCodes.Response>;
306
313
  getModerationAction(params?: ComAtprotoAdminGetModerationAction.QueryParams, opts?: ComAtprotoAdminGetModerationAction.CallOptions): Promise<ComAtprotoAdminGetModerationAction.Response>;
307
314
  getModerationActions(params?: ComAtprotoAdminGetModerationActions.QueryParams, opts?: ComAtprotoAdminGetModerationActions.CallOptions): Promise<ComAtprotoAdminGetModerationActions.Response>;
@@ -309,6 +316,7 @@ export declare class AdminNS {
309
316
  getModerationReports(params?: ComAtprotoAdminGetModerationReports.QueryParams, opts?: ComAtprotoAdminGetModerationReports.CallOptions): Promise<ComAtprotoAdminGetModerationReports.Response>;
310
317
  getRecord(params?: ComAtprotoAdminGetRecord.QueryParams, opts?: ComAtprotoAdminGetRecord.CallOptions): Promise<ComAtprotoAdminGetRecord.Response>;
311
318
  getRepo(params?: ComAtprotoAdminGetRepo.QueryParams, opts?: ComAtprotoAdminGetRepo.CallOptions): Promise<ComAtprotoAdminGetRepo.Response>;
319
+ getSubjectStatus(params?: ComAtprotoAdminGetSubjectStatus.QueryParams, opts?: ComAtprotoAdminGetSubjectStatus.CallOptions): Promise<ComAtprotoAdminGetSubjectStatus.Response>;
312
320
  resolveModerationReports(data?: ComAtprotoAdminResolveModerationReports.InputSchema, opts?: ComAtprotoAdminResolveModerationReports.CallOptions): Promise<ComAtprotoAdminResolveModerationReports.Response>;
313
321
  reverseModerationAction(data?: ComAtprotoAdminReverseModerationAction.InputSchema, opts?: ComAtprotoAdminReverseModerationAction.CallOptions): Promise<ComAtprotoAdminReverseModerationAction.Response>;
314
322
  searchRepos(params?: ComAtprotoAdminSearchRepos.QueryParams, opts?: ComAtprotoAdminSearchRepos.CallOptions): Promise<ComAtprotoAdminSearchRepos.Response>;
@@ -316,6 +324,7 @@ export declare class AdminNS {
316
324
  takeModerationAction(data?: ComAtprotoAdminTakeModerationAction.InputSchema, opts?: ComAtprotoAdminTakeModerationAction.CallOptions): Promise<ComAtprotoAdminTakeModerationAction.Response>;
317
325
  updateAccountEmail(data?: ComAtprotoAdminUpdateAccountEmail.InputSchema, opts?: ComAtprotoAdminUpdateAccountEmail.CallOptions): Promise<ComAtprotoAdminUpdateAccountEmail.Response>;
318
326
  updateAccountHandle(data?: ComAtprotoAdminUpdateAccountHandle.InputSchema, opts?: ComAtprotoAdminUpdateAccountHandle.CallOptions): Promise<ComAtprotoAdminUpdateAccountHandle.Response>;
327
+ updateSubjectStatus(data?: ComAtprotoAdminUpdateSubjectStatus.InputSchema, opts?: ComAtprotoAdminUpdateSubjectStatus.CallOptions): Promise<ComAtprotoAdminUpdateSubjectStatus.Response>;
319
328
  }
320
329
  export declare class IdentityNS {
321
330
  _service: AtpServiceClient;
@@ -4,6 +4,18 @@ export declare const schemaDict: {
4
4
  lexicon: number;
5
5
  id: string;
6
6
  defs: {
7
+ statusAttr: {
8
+ type: string;
9
+ required: string[];
10
+ properties: {
11
+ applied: {
12
+ type: string;
13
+ };
14
+ ref: {
15
+ type: string;
16
+ };
17
+ };
18
+ };
7
19
  actionView: {
8
20
  type: string;
9
21
  required: string[];
@@ -348,6 +360,44 @@ export declare const schemaDict: {
348
360
  };
349
361
  };
350
362
  };
363
+ accountView: {
364
+ type: string;
365
+ required: string[];
366
+ properties: {
367
+ did: {
368
+ type: string;
369
+ format: string;
370
+ };
371
+ handle: {
372
+ type: string;
373
+ format: string;
374
+ };
375
+ email: {
376
+ type: string;
377
+ };
378
+ indexedAt: {
379
+ type: string;
380
+ format: string;
381
+ };
382
+ invitedBy: {
383
+ type: string;
384
+ ref: string;
385
+ };
386
+ invites: {
387
+ type: string;
388
+ items: {
389
+ type: string;
390
+ ref: string;
391
+ };
392
+ };
393
+ invitesDisabled: {
394
+ type: string;
395
+ };
396
+ inviteNote: {
397
+ type: string;
398
+ };
399
+ };
400
+ };
351
401
  repoViewNotFound: {
352
402
  type: string;
353
403
  required: string[];
@@ -368,6 +418,24 @@ export declare const schemaDict: {
368
418
  };
369
419
  };
370
420
  };
421
+ repoBlobRef: {
422
+ type: string;
423
+ required: string[];
424
+ properties: {
425
+ did: {
426
+ type: string;
427
+ format: string;
428
+ };
429
+ cid: {
430
+ type: string;
431
+ format: string;
432
+ };
433
+ recordUri: {
434
+ type: string;
435
+ format: string;
436
+ };
437
+ };
438
+ };
371
439
  recordView: {
372
440
  type: string;
373
441
  required: string[];
@@ -631,6 +699,33 @@ export declare const schemaDict: {
631
699
  };
632
700
  };
633
701
  };
702
+ ComAtprotoAdminGetAccountInfo: {
703
+ lexicon: number;
704
+ id: string;
705
+ defs: {
706
+ main: {
707
+ type: string;
708
+ description: string;
709
+ parameters: {
710
+ type: string;
711
+ required: string[];
712
+ properties: {
713
+ did: {
714
+ type: string;
715
+ format: string;
716
+ };
717
+ };
718
+ };
719
+ output: {
720
+ encoding: string;
721
+ schema: {
722
+ type: string;
723
+ ref: string;
724
+ };
725
+ };
726
+ };
727
+ };
728
+ };
634
729
  ComAtprotoAdminGetInviteCodes: {
635
730
  lexicon: number;
636
731
  id: string;
@@ -916,6 +1011,50 @@ export declare const schemaDict: {
916
1011
  };
917
1012
  };
918
1013
  };
1014
+ ComAtprotoAdminGetSubjectStatus: {
1015
+ lexicon: number;
1016
+ id: string;
1017
+ defs: {
1018
+ main: {
1019
+ type: string;
1020
+ description: string;
1021
+ parameters: {
1022
+ type: string;
1023
+ properties: {
1024
+ did: {
1025
+ type: string;
1026
+ format: string;
1027
+ };
1028
+ uri: {
1029
+ type: string;
1030
+ format: string;
1031
+ };
1032
+ blob: {
1033
+ type: string;
1034
+ format: string;
1035
+ };
1036
+ };
1037
+ };
1038
+ output: {
1039
+ encoding: string;
1040
+ schema: {
1041
+ type: string;
1042
+ required: string[];
1043
+ properties: {
1044
+ subject: {
1045
+ type: string;
1046
+ refs: string[];
1047
+ };
1048
+ takedown: {
1049
+ type: string;
1050
+ ref: string;
1051
+ };
1052
+ };
1053
+ };
1054
+ };
1055
+ };
1056
+ };
1057
+ };
919
1058
  ComAtprotoAdminResolveModerationReports: {
920
1059
  lexicon: number;
921
1060
  id: string;
@@ -1008,9 +1147,6 @@ export declare const schemaDict: {
1008
1147
  q: {
1009
1148
  type: string;
1010
1149
  };
1011
- invitedBy: {
1012
- type: string;
1013
- };
1014
1150
  limit: {
1015
1151
  type: string;
1016
1152
  minimum: number;
@@ -1206,6 +1342,50 @@ export declare const schemaDict: {
1206
1342
  };
1207
1343
  };
1208
1344
  };
1345
+ ComAtprotoAdminUpdateSubjectStatus: {
1346
+ lexicon: number;
1347
+ id: string;
1348
+ defs: {
1349
+ main: {
1350
+ type: string;
1351
+ description: string;
1352
+ input: {
1353
+ encoding: string;
1354
+ schema: {
1355
+ type: string;
1356
+ required: string[];
1357
+ properties: {
1358
+ subject: {
1359
+ type: string;
1360
+ refs: string[];
1361
+ };
1362
+ takedown: {
1363
+ type: string;
1364
+ ref: string;
1365
+ };
1366
+ };
1367
+ };
1368
+ };
1369
+ output: {
1370
+ encoding: string;
1371
+ schema: {
1372
+ type: string;
1373
+ required: string[];
1374
+ properties: {
1375
+ subject: {
1376
+ type: string;
1377
+ refs: string[];
1378
+ };
1379
+ takedown: {
1380
+ type: string;
1381
+ ref: string;
1382
+ };
1383
+ };
1384
+ };
1385
+ };
1386
+ };
1387
+ };
1388
+ };
1209
1389
  ComAtprotoIdentityResolveHandle: {
1210
1390
  lexicon: number;
1211
1391
  id: string;
@@ -1490,6 +1670,8 @@ export declare const schemaDict: {
1490
1670
  };
1491
1671
  reason: {
1492
1672
  type: string;
1673
+ maxGraphemes: number;
1674
+ maxLength: number;
1493
1675
  };
1494
1676
  subject: {
1495
1677
  type: string;
@@ -2734,6 +2916,18 @@ export declare const schemaDict: {
2734
2916
  main: {
2735
2917
  type: string;
2736
2918
  description: string;
2919
+ input: {
2920
+ encoding: string;
2921
+ schema: {
2922
+ type: string;
2923
+ properties: {
2924
+ did: {
2925
+ type: string;
2926
+ description: string;
2927
+ };
2928
+ };
2929
+ };
2930
+ };
2737
2931
  output: {
2738
2932
  encoding: string;
2739
2933
  schema: {
@@ -6943,6 +7137,7 @@ export declare const ids: {
6943
7137
  ComAtprotoAdminDisableAccountInvites: string;
6944
7138
  ComAtprotoAdminDisableInviteCodes: string;
6945
7139
  ComAtprotoAdminEnableAccountInvites: string;
7140
+ ComAtprotoAdminGetAccountInfo: string;
6946
7141
  ComAtprotoAdminGetInviteCodes: string;
6947
7142
  ComAtprotoAdminGetModerationAction: string;
6948
7143
  ComAtprotoAdminGetModerationActions: string;
@@ -6950,6 +7145,7 @@ export declare const ids: {
6950
7145
  ComAtprotoAdminGetModerationReports: string;
6951
7146
  ComAtprotoAdminGetRecord: string;
6952
7147
  ComAtprotoAdminGetRepo: string;
7148
+ ComAtprotoAdminGetSubjectStatus: string;
6953
7149
  ComAtprotoAdminResolveModerationReports: string;
6954
7150
  ComAtprotoAdminReverseModerationAction: string;
6955
7151
  ComAtprotoAdminSearchRepos: string;
@@ -6957,6 +7153,7 @@ export declare const ids: {
6957
7153
  ComAtprotoAdminTakeModerationAction: string;
6958
7154
  ComAtprotoAdminUpdateAccountEmail: string;
6959
7155
  ComAtprotoAdminUpdateAccountHandle: string;
7156
+ ComAtprotoAdminUpdateSubjectStatus: string;
6960
7157
  ComAtprotoIdentityResolveHandle: string;
6961
7158
  ComAtprotoIdentityUpdateHandle: string;
6962
7159
  ComAtprotoLabelDefs: string;
@@ -3,6 +3,13 @@ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
3
3
  import * as ComAtprotoModerationDefs from '../moderation/defs';
4
4
  import * as ComAtprotoServerDefs from '../server/defs';
5
5
  import * as ComAtprotoLabelDefs from '../label/defs';
6
+ export interface StatusAttr {
7
+ applied: boolean;
8
+ ref?: string;
9
+ [k: string]: unknown;
10
+ }
11
+ export declare function isStatusAttr(v: unknown): v is StatusAttr;
12
+ export declare function validateStatusAttr(v: unknown): ValidationResult;
6
13
  export interface ActionView {
7
14
  id: number;
8
15
  action: ActionType;
@@ -125,6 +132,19 @@ export interface RepoViewDetail {
125
132
  }
126
133
  export declare function isRepoViewDetail(v: unknown): v is RepoViewDetail;
127
134
  export declare function validateRepoViewDetail(v: unknown): ValidationResult;
135
+ export interface AccountView {
136
+ did: string;
137
+ handle: string;
138
+ email?: string;
139
+ indexedAt: string;
140
+ invitedBy?: ComAtprotoServerDefs.InviteCode;
141
+ invites?: ComAtprotoServerDefs.InviteCode[];
142
+ invitesDisabled?: boolean;
143
+ inviteNote?: string;
144
+ [k: string]: unknown;
145
+ }
146
+ export declare function isAccountView(v: unknown): v is AccountView;
147
+ export declare function validateAccountView(v: unknown): ValidationResult;
128
148
  export interface RepoViewNotFound {
129
149
  did: string;
130
150
  [k: string]: unknown;
@@ -137,6 +157,14 @@ export interface RepoRef {
137
157
  }
138
158
  export declare function isRepoRef(v: unknown): v is RepoRef;
139
159
  export declare function validateRepoRef(v: unknown): ValidationResult;
160
+ export interface RepoBlobRef {
161
+ did: string;
162
+ cid: string;
163
+ recordUri?: string;
164
+ [k: string]: unknown;
165
+ }
166
+ export declare function isRepoBlobRef(v: unknown): v is RepoBlobRef;
167
+ export declare function validateRepoBlobRef(v: unknown): ValidationResult;
140
168
  export interface RecordView {
141
169
  uri: string;
142
170
  cid: string;
@@ -0,0 +1,16 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminDefs from './defs';
3
+ export interface QueryParams {
4
+ did: string;
5
+ }
6
+ export declare type InputSchema = undefined;
7
+ export declare type OutputSchema = ComAtprotoAdminDefs.AccountView;
8
+ export interface CallOptions {
9
+ headers?: Headers;
10
+ }
11
+ export interface Response {
12
+ success: boolean;
13
+ headers: Headers;
14
+ data: OutputSchema;
15
+ }
16
+ export declare function toKnownErr(e: any): any;
@@ -0,0 +1,26 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminDefs from './defs';
3
+ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
4
+ export interface QueryParams {
5
+ did?: string;
6
+ uri?: string;
7
+ blob?: string;
8
+ }
9
+ export declare type InputSchema = undefined;
10
+ export interface OutputSchema {
11
+ subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | ComAtprotoAdminDefs.RepoBlobRef | {
12
+ $type: string;
13
+ [k: string]: unknown;
14
+ };
15
+ takedown?: ComAtprotoAdminDefs.StatusAttr;
16
+ [k: string]: unknown;
17
+ }
18
+ export interface CallOptions {
19
+ headers?: Headers;
20
+ }
21
+ export interface Response {
22
+ success: boolean;
23
+ headers: Headers;
24
+ data: OutputSchema;
25
+ }
26
+ export declare function toKnownErr(e: any): any;
@@ -3,7 +3,6 @@ import * as ComAtprotoAdminDefs from './defs';
3
3
  export interface QueryParams {
4
4
  term?: string;
5
5
  q?: string;
6
- invitedBy?: string;
7
6
  limit?: number;
8
7
  cursor?: string;
9
8
  }
@@ -0,0 +1,32 @@
1
+ import { Headers } from '@atproto/xrpc';
2
+ import * as ComAtprotoAdminDefs from './defs';
3
+ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
4
+ export interface QueryParams {
5
+ }
6
+ export interface InputSchema {
7
+ subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | ComAtprotoAdminDefs.RepoBlobRef | {
8
+ $type: string;
9
+ [k: string]: unknown;
10
+ };
11
+ takedown?: ComAtprotoAdminDefs.StatusAttr;
12
+ [k: string]: unknown;
13
+ }
14
+ export interface OutputSchema {
15
+ subject: ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main | ComAtprotoAdminDefs.RepoBlobRef | {
16
+ $type: string;
17
+ [k: string]: unknown;
18
+ };
19
+ takedown?: ComAtprotoAdminDefs.StatusAttr;
20
+ [k: string]: unknown;
21
+ }
22
+ export interface CallOptions {
23
+ headers?: Headers;
24
+ qp?: QueryParams;
25
+ encoding: 'application/json';
26
+ }
27
+ export interface Response {
28
+ success: boolean;
29
+ headers: Headers;
30
+ data: OutputSchema;
31
+ }
32
+ export declare function toKnownErr(e: any): any;
@@ -2,13 +2,13 @@ import { Headers, XRPCError } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  }
4
4
  export interface InputSchema {
5
- email: string;
5
+ email?: string;
6
6
  handle: string;
7
7
  did?: string;
8
8
  inviteCode?: string;
9
- password: string;
9
+ password?: string;
10
10
  recoveryKey?: string;
11
- plcOp?: Uint8Array;
11
+ plcOp?: {};
12
12
  [k: string]: unknown;
13
13
  }
14
14
  export interface OutputSchema {
@@ -1,7 +1,10 @@
1
1
  import { Headers } from '@atproto/xrpc';
2
2
  export interface QueryParams {
3
3
  }
4
- export declare type InputSchema = undefined;
4
+ export interface InputSchema {
5
+ did?: string;
6
+ [k: string]: unknown;
7
+ }
5
8
  export interface OutputSchema {
6
9
  signingKey: string;
7
10
  [k: string]: unknown;
@@ -9,6 +12,7 @@ export interface OutputSchema {
9
12
  export interface CallOptions {
10
13
  headers?: Headers;
11
14
  qp?: QueryParams;
15
+ encoding: 'application/json';
12
16
  }
13
17
  export interface Response {
14
18
  success: boolean;