@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.6.21",
3
+ "version": "0.6.22",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -20,15 +20,15 @@
20
20
  "tlds": "^1.234.0",
21
21
  "typed-emitter": "^2.1.0",
22
22
  "zod": "^3.21.4",
23
- "@atproto/common-web": "^0.2.2",
24
- "@atproto/lexicon": "^0.2.3",
25
- "@atproto/syntax": "^0.1.3",
26
- "@atproto/xrpc": "^0.3.3"
23
+ "@atproto/common-web": "^0.2.3",
24
+ "@atproto/lexicon": "^0.3.0",
25
+ "@atproto/syntax": "^0.1.4",
26
+ "@atproto/xrpc": "^0.4.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "common-tags": "^1.8.2",
30
- "@atproto/lex-cli": "^0.2.3",
31
- "@atproto/dev-env": "^0.2.12"
30
+ "@atproto/lex-cli": "^0.2.4",
31
+ "@atproto/dev-env": "^0.2.13"
32
32
  },
33
33
  "scripts": {
34
34
  "codegen": "pnpm docgen && node ./scripts/generate-code.mjs && lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
@@ -11,6 +11,7 @@ import * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
11
11
  import * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
12
12
  import * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
13
13
  import * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
14
+ import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo'
14
15
  import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
15
16
  import * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
16
17
  import * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
@@ -18,6 +19,7 @@ import * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/g
18
19
  import * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports'
19
20
  import * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
20
21
  import * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
22
+ import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
21
23
  import * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports'
22
24
  import * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
23
25
  import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
@@ -25,6 +27,7 @@ import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
25
27
  import * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
26
28
  import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
27
29
  import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
30
+ import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
28
31
  import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
29
32
  import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
30
33
  import * as ComAtprotoLabelDefs from './types/com/atproto/label/defs'
@@ -145,6 +148,7 @@ export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
145
148
  export * as ComAtprotoAdminDisableAccountInvites from './types/com/atproto/admin/disableAccountInvites'
146
149
  export * as ComAtprotoAdminDisableInviteCodes from './types/com/atproto/admin/disableInviteCodes'
147
150
  export * as ComAtprotoAdminEnableAccountInvites from './types/com/atproto/admin/enableAccountInvites'
151
+ export * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAccountInfo'
148
152
  export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
149
153
  export * as ComAtprotoAdminGetModerationAction from './types/com/atproto/admin/getModerationAction'
150
154
  export * as ComAtprotoAdminGetModerationActions from './types/com/atproto/admin/getModerationActions'
@@ -152,6 +156,7 @@ export * as ComAtprotoAdminGetModerationReport from './types/com/atproto/admin/g
152
156
  export * as ComAtprotoAdminGetModerationReports from './types/com/atproto/admin/getModerationReports'
153
157
  export * as ComAtprotoAdminGetRecord from './types/com/atproto/admin/getRecord'
154
158
  export * as ComAtprotoAdminGetRepo from './types/com/atproto/admin/getRepo'
159
+ export * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
155
160
  export * as ComAtprotoAdminResolveModerationReports from './types/com/atproto/admin/resolveModerationReports'
156
161
  export * as ComAtprotoAdminReverseModerationAction from './types/com/atproto/admin/reverseModerationAction'
157
162
  export * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRepos'
@@ -159,6 +164,7 @@ export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
159
164
  export * as ComAtprotoAdminTakeModerationAction from './types/com/atproto/admin/takeModerationAction'
160
165
  export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
161
166
  export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
167
+ export * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
162
168
  export * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
163
169
  export * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
164
170
  export * as ComAtprotoLabelDefs from './types/com/atproto/label/defs'
@@ -396,6 +402,17 @@ export class AdminNS {
396
402
  })
397
403
  }
398
404
 
405
+ getAccountInfo(
406
+ params?: ComAtprotoAdminGetAccountInfo.QueryParams,
407
+ opts?: ComAtprotoAdminGetAccountInfo.CallOptions,
408
+ ): Promise<ComAtprotoAdminGetAccountInfo.Response> {
409
+ return this._service.xrpc
410
+ .call('com.atproto.admin.getAccountInfo', params, undefined, opts)
411
+ .catch((e) => {
412
+ throw ComAtprotoAdminGetAccountInfo.toKnownErr(e)
413
+ })
414
+ }
415
+
399
416
  getInviteCodes(
400
417
  params?: ComAtprotoAdminGetInviteCodes.QueryParams,
401
418
  opts?: ComAtprotoAdminGetInviteCodes.CallOptions,
@@ -473,6 +490,17 @@ export class AdminNS {
473
490
  })
474
491
  }
475
492
 
493
+ getSubjectStatus(
494
+ params?: ComAtprotoAdminGetSubjectStatus.QueryParams,
495
+ opts?: ComAtprotoAdminGetSubjectStatus.CallOptions,
496
+ ): Promise<ComAtprotoAdminGetSubjectStatus.Response> {
497
+ return this._service.xrpc
498
+ .call('com.atproto.admin.getSubjectStatus', params, undefined, opts)
499
+ .catch((e) => {
500
+ throw ComAtprotoAdminGetSubjectStatus.toKnownErr(e)
501
+ })
502
+ }
503
+
476
504
  resolveModerationReports(
477
505
  data?: ComAtprotoAdminResolveModerationReports.InputSchema,
478
506
  opts?: ComAtprotoAdminResolveModerationReports.CallOptions,
@@ -549,6 +577,17 @@ export class AdminNS {
549
577
  throw ComAtprotoAdminUpdateAccountHandle.toKnownErr(e)
550
578
  })
551
579
  }
580
+
581
+ updateSubjectStatus(
582
+ data?: ComAtprotoAdminUpdateSubjectStatus.InputSchema,
583
+ opts?: ComAtprotoAdminUpdateSubjectStatus.CallOptions,
584
+ ): Promise<ComAtprotoAdminUpdateSubjectStatus.Response> {
585
+ return this._service.xrpc
586
+ .call('com.atproto.admin.updateSubjectStatus', opts?.qp, data, opts)
587
+ .catch((e) => {
588
+ throw ComAtprotoAdminUpdateSubjectStatus.toKnownErr(e)
589
+ })
590
+ }
552
591
  }
553
592
 
554
593
  export class IdentityNS {
@@ -8,6 +8,18 @@ export const schemaDict = {
8
8
  lexicon: 1,
9
9
  id: 'com.atproto.admin.defs',
10
10
  defs: {
11
+ statusAttr: {
12
+ type: 'object',
13
+ required: ['applied'],
14
+ properties: {
15
+ applied: {
16
+ type: 'boolean',
17
+ },
18
+ ref: {
19
+ type: 'string',
20
+ },
21
+ },
22
+ },
11
23
  actionView: {
12
24
  type: 'object',
13
25
  required: [
@@ -424,6 +436,44 @@ export const schemaDict = {
424
436
  },
425
437
  },
426
438
  },
439
+ accountView: {
440
+ type: 'object',
441
+ required: ['did', 'handle', 'indexedAt'],
442
+ properties: {
443
+ did: {
444
+ type: 'string',
445
+ format: 'did',
446
+ },
447
+ handle: {
448
+ type: 'string',
449
+ format: 'handle',
450
+ },
451
+ email: {
452
+ type: 'string',
453
+ },
454
+ indexedAt: {
455
+ type: 'string',
456
+ format: 'datetime',
457
+ },
458
+ invitedBy: {
459
+ type: 'ref',
460
+ ref: 'lex:com.atproto.server.defs#inviteCode',
461
+ },
462
+ invites: {
463
+ type: 'array',
464
+ items: {
465
+ type: 'ref',
466
+ ref: 'lex:com.atproto.server.defs#inviteCode',
467
+ },
468
+ },
469
+ invitesDisabled: {
470
+ type: 'boolean',
471
+ },
472
+ inviteNote: {
473
+ type: 'string',
474
+ },
475
+ },
476
+ },
427
477
  repoViewNotFound: {
428
478
  type: 'object',
429
479
  required: ['did'],
@@ -444,6 +494,24 @@ export const schemaDict = {
444
494
  },
445
495
  },
446
496
  },
497
+ repoBlobRef: {
498
+ type: 'object',
499
+ required: ['did', 'cid'],
500
+ properties: {
501
+ did: {
502
+ type: 'string',
503
+ format: 'did',
504
+ },
505
+ cid: {
506
+ type: 'string',
507
+ format: 'cid',
508
+ },
509
+ recordUri: {
510
+ type: 'string',
511
+ format: 'at-uri',
512
+ },
513
+ },
514
+ },
447
515
  recordView: {
448
516
  type: 'object',
449
517
  required: [
@@ -730,6 +798,33 @@ export const schemaDict = {
730
798
  },
731
799
  },
732
800
  },
801
+ ComAtprotoAdminGetAccountInfo: {
802
+ lexicon: 1,
803
+ id: 'com.atproto.admin.getAccountInfo',
804
+ defs: {
805
+ main: {
806
+ type: 'query',
807
+ description: 'View details about an account.',
808
+ parameters: {
809
+ type: 'params',
810
+ required: ['did'],
811
+ properties: {
812
+ did: {
813
+ type: 'string',
814
+ format: 'did',
815
+ },
816
+ },
817
+ },
818
+ output: {
819
+ encoding: 'application/json',
820
+ schema: {
821
+ type: 'ref',
822
+ ref: 'lex:com.atproto.admin.defs#accountView',
823
+ },
824
+ },
825
+ },
826
+ },
827
+ },
733
828
  ComAtprotoAdminGetInviteCodes: {
734
829
  lexicon: 1,
735
830
  id: 'com.atproto.admin.getInviteCodes',
@@ -1026,6 +1121,55 @@ export const schemaDict = {
1026
1121
  },
1027
1122
  },
1028
1123
  },
1124
+ ComAtprotoAdminGetSubjectStatus: {
1125
+ lexicon: 1,
1126
+ id: 'com.atproto.admin.getSubjectStatus',
1127
+ defs: {
1128
+ main: {
1129
+ type: 'query',
1130
+ description:
1131
+ 'Fetch the service-specific the admin status of a subject (account, record, or blob)',
1132
+ parameters: {
1133
+ type: 'params',
1134
+ properties: {
1135
+ did: {
1136
+ type: 'string',
1137
+ format: 'did',
1138
+ },
1139
+ uri: {
1140
+ type: 'string',
1141
+ format: 'at-uri',
1142
+ },
1143
+ blob: {
1144
+ type: 'string',
1145
+ format: 'cid',
1146
+ },
1147
+ },
1148
+ },
1149
+ output: {
1150
+ encoding: 'application/json',
1151
+ schema: {
1152
+ type: 'object',
1153
+ required: ['subject'],
1154
+ properties: {
1155
+ subject: {
1156
+ type: 'union',
1157
+ refs: [
1158
+ 'lex:com.atproto.admin.defs#repoRef',
1159
+ 'lex:com.atproto.repo.strongRef',
1160
+ 'lex:com.atproto.admin.defs#repoBlobRef',
1161
+ ],
1162
+ },
1163
+ takedown: {
1164
+ type: 'ref',
1165
+ ref: 'lex:com.atproto.admin.defs#statusAttr',
1166
+ },
1167
+ },
1168
+ },
1169
+ },
1170
+ },
1171
+ },
1172
+ },
1029
1173
  ComAtprotoAdminResolveModerationReports: {
1030
1174
  lexicon: 1,
1031
1175
  id: 'com.atproto.admin.resolveModerationReports',
@@ -1118,9 +1262,6 @@ export const schemaDict = {
1118
1262
  q: {
1119
1263
  type: 'string',
1120
1264
  },
1121
- invitedBy: {
1122
- type: 'string',
1123
- },
1124
1265
  limit: {
1125
1266
  type: 'integer',
1126
1267
  minimum: 1,
@@ -1326,6 +1467,59 @@ export const schemaDict = {
1326
1467
  },
1327
1468
  },
1328
1469
  },
1470
+ ComAtprotoAdminUpdateSubjectStatus: {
1471
+ lexicon: 1,
1472
+ id: 'com.atproto.admin.updateSubjectStatus',
1473
+ defs: {
1474
+ main: {
1475
+ type: 'procedure',
1476
+ description:
1477
+ 'Update the service-specific admin status of a subject (account, record, or blob)',
1478
+ input: {
1479
+ encoding: 'application/json',
1480
+ schema: {
1481
+ type: 'object',
1482
+ required: ['subject'],
1483
+ properties: {
1484
+ subject: {
1485
+ type: 'union',
1486
+ refs: [
1487
+ 'lex:com.atproto.admin.defs#repoRef',
1488
+ 'lex:com.atproto.repo.strongRef',
1489
+ 'lex:com.atproto.admin.defs#repoBlobRef',
1490
+ ],
1491
+ },
1492
+ takedown: {
1493
+ type: 'ref',
1494
+ ref: 'lex:com.atproto.admin.defs#statusAttr',
1495
+ },
1496
+ },
1497
+ },
1498
+ },
1499
+ output: {
1500
+ encoding: 'application/json',
1501
+ schema: {
1502
+ type: 'object',
1503
+ required: ['subject'],
1504
+ properties: {
1505
+ subject: {
1506
+ type: 'union',
1507
+ refs: [
1508
+ 'lex:com.atproto.admin.defs#repoRef',
1509
+ 'lex:com.atproto.repo.strongRef',
1510
+ 'lex:com.atproto.admin.defs#repoBlobRef',
1511
+ ],
1512
+ },
1513
+ takedown: {
1514
+ type: 'ref',
1515
+ ref: 'lex:com.atproto.admin.defs#statusAttr',
1516
+ },
1517
+ },
1518
+ },
1519
+ },
1520
+ },
1521
+ },
1522
+ },
1329
1523
  ComAtprotoIdentityResolveHandle: {
1330
1524
  lexicon: 1,
1331
1525
  id: 'com.atproto.identity.resolveHandle',
@@ -1632,6 +1826,8 @@ export const schemaDict = {
1632
1826
  },
1633
1827
  reason: {
1634
1828
  type: 'string',
1829
+ maxGraphemes: 2000,
1830
+ maxLength: 20000,
1635
1831
  },
1636
1832
  subject: {
1637
1833
  type: 'union',
@@ -2293,7 +2489,7 @@ export const schemaDict = {
2293
2489
  encoding: 'application/json',
2294
2490
  schema: {
2295
2491
  type: 'object',
2296
- required: ['handle', 'email', 'password'],
2492
+ required: ['handle'],
2297
2493
  properties: {
2298
2494
  email: {
2299
2495
  type: 'string',
@@ -2316,7 +2512,7 @@ export const schemaDict = {
2316
2512
  type: 'string',
2317
2513
  },
2318
2514
  plcOp: {
2319
- type: 'bytes',
2515
+ type: 'unknown',
2320
2516
  },
2321
2517
  },
2322
2518
  },
@@ -2974,6 +3170,18 @@ export const schemaDict = {
2974
3170
  main: {
2975
3171
  type: 'procedure',
2976
3172
  description: 'Reserve a repo signing key for account creation.',
3173
+ input: {
3174
+ encoding: 'application/json',
3175
+ schema: {
3176
+ type: 'object',
3177
+ properties: {
3178
+ did: {
3179
+ type: 'string',
3180
+ description: 'The did to reserve a new did:key for',
3181
+ },
3182
+ },
3183
+ },
3184
+ },
2977
3185
  output: {
2978
3186
  encoding: 'application/json',
2979
3187
  schema: {
@@ -7367,6 +7575,7 @@ export const ids = {
7367
7575
  'com.atproto.admin.disableAccountInvites',
7368
7576
  ComAtprotoAdminDisableInviteCodes: 'com.atproto.admin.disableInviteCodes',
7369
7577
  ComAtprotoAdminEnableAccountInvites: 'com.atproto.admin.enableAccountInvites',
7578
+ ComAtprotoAdminGetAccountInfo: 'com.atproto.admin.getAccountInfo',
7370
7579
  ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
7371
7580
  ComAtprotoAdminGetModerationAction: 'com.atproto.admin.getModerationAction',
7372
7581
  ComAtprotoAdminGetModerationActions: 'com.atproto.admin.getModerationActions',
@@ -7374,6 +7583,7 @@ export const ids = {
7374
7583
  ComAtprotoAdminGetModerationReports: 'com.atproto.admin.getModerationReports',
7375
7584
  ComAtprotoAdminGetRecord: 'com.atproto.admin.getRecord',
7376
7585
  ComAtprotoAdminGetRepo: 'com.atproto.admin.getRepo',
7586
+ ComAtprotoAdminGetSubjectStatus: 'com.atproto.admin.getSubjectStatus',
7377
7587
  ComAtprotoAdminResolveModerationReports:
7378
7588
  'com.atproto.admin.resolveModerationReports',
7379
7589
  ComAtprotoAdminReverseModerationAction:
@@ -7383,6 +7593,7 @@ export const ids = {
7383
7593
  ComAtprotoAdminTakeModerationAction: 'com.atproto.admin.takeModerationAction',
7384
7594
  ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
7385
7595
  ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
7596
+ ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
7386
7597
  ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle',
7387
7598
  ComAtprotoIdentityUpdateHandle: 'com.atproto.identity.updateHandle',
7388
7599
  ComAtprotoLabelDefs: 'com.atproto.label.defs',
@@ -10,6 +10,24 @@ import * as ComAtprotoModerationDefs from '../moderation/defs'
10
10
  import * as ComAtprotoServerDefs from '../server/defs'
11
11
  import * as ComAtprotoLabelDefs from '../label/defs'
12
12
 
13
+ export interface StatusAttr {
14
+ applied: boolean
15
+ ref?: string
16
+ [k: string]: unknown
17
+ }
18
+
19
+ export function isStatusAttr(v: unknown): v is StatusAttr {
20
+ return (
21
+ isObj(v) &&
22
+ hasProp(v, '$type') &&
23
+ v.$type === 'com.atproto.admin.defs#statusAttr'
24
+ )
25
+ }
26
+
27
+ export function validateStatusAttr(v: unknown): ValidationResult {
28
+ return lexicons.validate('com.atproto.admin.defs#statusAttr', v)
29
+ }
30
+
13
31
  export interface ActionView {
14
32
  id: number
15
33
  action: ActionType
@@ -238,6 +256,30 @@ export function validateRepoViewDetail(v: unknown): ValidationResult {
238
256
  return lexicons.validate('com.atproto.admin.defs#repoViewDetail', v)
239
257
  }
240
258
 
259
+ export interface AccountView {
260
+ did: string
261
+ handle: string
262
+ email?: string
263
+ indexedAt: string
264
+ invitedBy?: ComAtprotoServerDefs.InviteCode
265
+ invites?: ComAtprotoServerDefs.InviteCode[]
266
+ invitesDisabled?: boolean
267
+ inviteNote?: string
268
+ [k: string]: unknown
269
+ }
270
+
271
+ export function isAccountView(v: unknown): v is AccountView {
272
+ return (
273
+ isObj(v) &&
274
+ hasProp(v, '$type') &&
275
+ v.$type === 'com.atproto.admin.defs#accountView'
276
+ )
277
+ }
278
+
279
+ export function validateAccountView(v: unknown): ValidationResult {
280
+ return lexicons.validate('com.atproto.admin.defs#accountView', v)
281
+ }
282
+
241
283
  export interface RepoViewNotFound {
242
284
  did: string
243
285
  [k: string]: unknown
@@ -272,6 +314,25 @@ export function validateRepoRef(v: unknown): ValidationResult {
272
314
  return lexicons.validate('com.atproto.admin.defs#repoRef', v)
273
315
  }
274
316
 
317
+ export interface RepoBlobRef {
318
+ did: string
319
+ cid: string
320
+ recordUri?: string
321
+ [k: string]: unknown
322
+ }
323
+
324
+ export function isRepoBlobRef(v: unknown): v is RepoBlobRef {
325
+ return (
326
+ isObj(v) &&
327
+ hasProp(v, '$type') &&
328
+ v.$type === 'com.atproto.admin.defs#repoBlobRef'
329
+ )
330
+ }
331
+
332
+ export function validateRepoBlobRef(v: unknown): ValidationResult {
333
+ return lexicons.validate('com.atproto.admin.defs#repoBlobRef', v)
334
+ }
335
+
275
336
  export interface RecordView {
276
337
  uri: string
277
338
  cid: string
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ComAtprotoAdminDefs from './defs'
10
+
11
+ export interface QueryParams {
12
+ did: string
13
+ }
14
+
15
+ export type InputSchema = undefined
16
+ export type OutputSchema = ComAtprotoAdminDefs.AccountView
17
+
18
+ export interface CallOptions {
19
+ headers?: Headers
20
+ }
21
+
22
+ export interface Response {
23
+ success: boolean
24
+ headers: Headers
25
+ data: OutputSchema
26
+ }
27
+
28
+ export function toKnownErr(e: any) {
29
+ if (e instanceof XRPCError) {
30
+ }
31
+ return e
32
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ComAtprotoAdminDefs from './defs'
10
+ import * as ComAtprotoRepoStrongRef from '../repo/strongRef'
11
+
12
+ export interface QueryParams {
13
+ did?: string
14
+ uri?: string
15
+ blob?: string
16
+ }
17
+
18
+ export type InputSchema = undefined
19
+
20
+ export interface OutputSchema {
21
+ subject:
22
+ | ComAtprotoAdminDefs.RepoRef
23
+ | ComAtprotoRepoStrongRef.Main
24
+ | ComAtprotoAdminDefs.RepoBlobRef
25
+ | { $type: string; [k: string]: unknown }
26
+ takedown?: ComAtprotoAdminDefs.StatusAttr
27
+ [k: string]: unknown
28
+ }
29
+
30
+ export interface CallOptions {
31
+ headers?: Headers
32
+ }
33
+
34
+ export interface Response {
35
+ success: boolean
36
+ headers: Headers
37
+ data: OutputSchema
38
+ }
39
+
40
+ export function toKnownErr(e: any) {
41
+ if (e instanceof XRPCError) {
42
+ }
43
+ return e
44
+ }
@@ -12,7 +12,6 @@ export interface QueryParams {
12
12
  /** DEPRECATED: use 'q' instead */
13
13
  term?: string
14
14
  q?: string
15
- invitedBy?: string
16
15
  limit?: number
17
16
  cursor?: string
18
17
  }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { Headers, XRPCError } from '@atproto/xrpc'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { lexicons } from '../../../../lexicons'
8
+ import { CID } from 'multiformats/cid'
9
+ import * as ComAtprotoAdminDefs from './defs'
10
+ import * as ComAtprotoRepoStrongRef from '../repo/strongRef'
11
+
12
+ export interface QueryParams {}
13
+
14
+ export interface InputSchema {
15
+ subject:
16
+ | ComAtprotoAdminDefs.RepoRef
17
+ | ComAtprotoRepoStrongRef.Main
18
+ | ComAtprotoAdminDefs.RepoBlobRef
19
+ | { $type: string; [k: string]: unknown }
20
+ takedown?: ComAtprotoAdminDefs.StatusAttr
21
+ [k: string]: unknown
22
+ }
23
+
24
+ export interface OutputSchema {
25
+ subject:
26
+ | ComAtprotoAdminDefs.RepoRef
27
+ | ComAtprotoRepoStrongRef.Main
28
+ | ComAtprotoAdminDefs.RepoBlobRef
29
+ | { $type: string; [k: string]: unknown }
30
+ takedown?: ComAtprotoAdminDefs.StatusAttr
31
+ [k: string]: unknown
32
+ }
33
+
34
+ export interface CallOptions {
35
+ headers?: Headers
36
+ qp?: QueryParams
37
+ encoding: 'application/json'
38
+ }
39
+
40
+ export interface Response {
41
+ success: boolean
42
+ headers: Headers
43
+ data: OutputSchema
44
+ }
45
+
46
+ export function toKnownErr(e: any) {
47
+ if (e instanceof XRPCError) {
48
+ }
49
+ return e
50
+ }
@@ -10,13 +10,13 @@ import { CID } from 'multiformats/cid'
10
10
  export interface QueryParams {}
11
11
 
12
12
  export interface InputSchema {
13
- email: string
13
+ email?: string
14
14
  handle: string
15
15
  did?: string
16
16
  inviteCode?: string
17
- password: string
17
+ password?: string
18
18
  recoveryKey?: string
19
- plcOp?: Uint8Array
19
+ plcOp?: {}
20
20
  [k: string]: unknown
21
21
  }
22
22