@atproto/bsky 0.0.59 → 0.0.60

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.
@@ -0,0 +1,39 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
6
+ import * as ComAtprotoAdminDefs from './defs';
7
+ export interface QueryParams {
8
+ email?: string;
9
+ cursor?: string;
10
+ limit: number;
11
+ }
12
+ export type InputSchema = undefined;
13
+ export interface OutputSchema {
14
+ cursor?: string;
15
+ accounts: ComAtprotoAdminDefs.AccountView[];
16
+ [k: string]: unknown;
17
+ }
18
+ export type HandlerInput = undefined;
19
+ export interface HandlerSuccess {
20
+ encoding: 'application/json';
21
+ body: OutputSchema;
22
+ headers?: {
23
+ [key: string]: string;
24
+ };
25
+ }
26
+ export interface HandlerError {
27
+ status: number;
28
+ message?: string;
29
+ }
30
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
31
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
32
+ auth: HA;
33
+ params: QueryParams;
34
+ input: HandlerInput;
35
+ req: express.Request;
36
+ res: express.Response;
37
+ };
38
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
39
+ //# sourceMappingURL=searchAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchAccounts.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/admin/searchAccounts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,mBAAmB,MAAM,QAAQ,CAAA;AAE7C,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,mBAAmB,CAAC,WAAW,EAAE,CAAA;IAC3C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=searchAccounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchAccounts.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/admin/searchAccounts.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/bsky",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of app.bsky App View (Bluesky API)",
6
6
  "keywords": [
@@ -39,10 +39,10 @@
39
39
  "structured-headers": "^1.0.1",
40
40
  "typed-emitter": "^2.1.0",
41
41
  "uint8arrays": "3.0.0",
42
- "@atproto/api": "^0.12.16",
42
+ "@atproto/api": "^0.12.17",
43
43
  "@atproto/common": "^0.4.0",
44
- "@atproto/crypto": "^0.4.0",
45
44
  "@atproto/identity": "^0.4.0",
45
+ "@atproto/crypto": "^0.4.0",
46
46
  "@atproto/lexicon": "^0.4.0",
47
47
  "@atproto/repo": "^0.4.0",
48
48
  "@atproto/syntax": "^0.3.0",
@@ -61,9 +61,9 @@
61
61
  "axios": "^0.27.2",
62
62
  "jest": "^28.1.2",
63
63
  "ts-node": "^10.8.2",
64
- "@atproto/api": "^0.12.16",
64
+ "@atproto/api": "^0.12.17",
65
65
  "@atproto/lex-cli": "^0.4.0",
66
- "@atproto/pds": "^0.4.31",
66
+ "@atproto/pds": "^0.4.32",
67
67
  "@atproto/xrpc": "^0.5.0"
68
68
  },
69
69
  "scripts": {
@@ -17,6 +17,7 @@ import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAcc
17
17
  import * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos'
18
18
  import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
19
19
  import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
20
+ import * as ComAtprotoAdminSearchAccounts from './types/com/atproto/admin/searchAccounts'
20
21
  import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
21
22
  import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
22
23
  import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
@@ -323,6 +324,17 @@ export class ComAtprotoAdminNS {
323
324
  return this._server.xrpc.method(nsid, cfg)
324
325
  }
325
326
 
327
+ searchAccounts<AV extends AuthVerifier>(
328
+ cfg: ConfigOf<
329
+ AV,
330
+ ComAtprotoAdminSearchAccounts.Handler<ExtractAuth<AV>>,
331
+ ComAtprotoAdminSearchAccounts.HandlerReqCtx<ExtractAuth<AV>>
332
+ >,
333
+ ) {
334
+ const nsid = 'com.atproto.admin.searchAccounts' // @ts-ignore
335
+ return this._server.xrpc.method(nsid, cfg)
336
+ }
337
+
326
338
  sendEmail<AV extends AuthVerifier>(
327
339
  cfg: ConfigOf<
328
340
  AV,
@@ -378,6 +378,52 @@ export const schemaDict = {
378
378
  },
379
379
  },
380
380
  },
381
+ ComAtprotoAdminSearchAccounts: {
382
+ lexicon: 1,
383
+ id: 'com.atproto.admin.searchAccounts',
384
+ defs: {
385
+ main: {
386
+ type: 'query',
387
+ description: 'Get list of accounts that matches your search query.',
388
+ parameters: {
389
+ type: 'params',
390
+ properties: {
391
+ email: {
392
+ type: 'string',
393
+ },
394
+ cursor: {
395
+ type: 'string',
396
+ },
397
+ limit: {
398
+ type: 'integer',
399
+ minimum: 1,
400
+ maximum: 100,
401
+ default: 50,
402
+ },
403
+ },
404
+ },
405
+ output: {
406
+ encoding: 'application/json',
407
+ schema: {
408
+ type: 'object',
409
+ required: ['accounts'],
410
+ properties: {
411
+ cursor: {
412
+ type: 'string',
413
+ },
414
+ accounts: {
415
+ type: 'array',
416
+ items: {
417
+ type: 'ref',
418
+ ref: 'lex:com.atproto.admin.defs#accountView',
419
+ },
420
+ },
421
+ },
422
+ },
423
+ },
424
+ },
425
+ },
426
+ },
381
427
  ComAtprotoAdminSendEmail: {
382
428
  lexicon: 1,
383
429
  id: 'com.atproto.admin.sendEmail',
@@ -9356,6 +9402,7 @@ export const ids = {
9356
9402
  ComAtprotoAdminGetAccountInfos: 'com.atproto.admin.getAccountInfos',
9357
9403
  ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
9358
9404
  ComAtprotoAdminGetSubjectStatus: 'com.atproto.admin.getSubjectStatus',
9405
+ ComAtprotoAdminSearchAccounts: 'com.atproto.admin.searchAccounts',
9359
9406
  ComAtprotoAdminSendEmail: 'com.atproto.admin.sendEmail',
9360
9407
  ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
9361
9408
  ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
@@ -0,0 +1,49 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { isObj, hasProp } from '../../../../util'
8
+ import { CID } from 'multiformats/cid'
9
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
10
+ import * as ComAtprotoAdminDefs from './defs'
11
+
12
+ export interface QueryParams {
13
+ email?: string
14
+ cursor?: string
15
+ limit: number
16
+ }
17
+
18
+ export type InputSchema = undefined
19
+
20
+ export interface OutputSchema {
21
+ cursor?: string
22
+ accounts: ComAtprotoAdminDefs.AccountView[]
23
+ [k: string]: unknown
24
+ }
25
+
26
+ export type HandlerInput = undefined
27
+
28
+ export interface HandlerSuccess {
29
+ encoding: 'application/json'
30
+ body: OutputSchema
31
+ headers?: { [key: string]: string }
32
+ }
33
+
34
+ export interface HandlerError {
35
+ status: number
36
+ message?: string
37
+ }
38
+
39
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
40
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
41
+ auth: HA
42
+ params: QueryParams
43
+ input: HandlerInput
44
+ req: express.Request
45
+ res: express.Response
46
+ }
47
+ export type Handler<HA extends HandlerAuth = never> = (
48
+ ctx: HandlerReqCtx<HA>,
49
+ ) => Promise<HandlerOutput> | HandlerOutput