@atproto/pds 0.4.61 → 0.4.62
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/dist/account-manager/helpers/token.d.ts +16 -16
- package/dist/lexicon/index.d.ts +11 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +32 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +176 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +176 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/signature/defs.d.ts +12 -0
- package/dist/lexicon/types/tools/ozone/signature/defs.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/signature/defs.js +16 -0
- package/dist/lexicon/types/tools/ozone/signature/defs.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/signature/findCorrelation.d.ts +36 -0
- package/dist/lexicon/types/tools/ozone/signature/findCorrelation.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/signature/findCorrelation.js +3 -0
- package/dist/lexicon/types/tools/ozone/signature/findCorrelation.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.d.ts +48 -0
- package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.js +16 -0
- package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/signature/searchAccounts.d.ts +39 -0
- package/dist/lexicon/types/tools/ozone/signature/searchAccounts.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/signature/searchAccounts.js +3 -0
- package/dist/lexicon/types/tools/ozone/signature/searchAccounts.js.map +1 -0
- package/package.json +6 -6
- package/src/lexicon/index.ts +46 -0
- package/src/lexicon/lexicons.ts +180 -0
- package/src/lexicon/types/tools/ozone/signature/defs.ts +25 -0
- package/src/lexicon/types/tools/ozone/signature/findCorrelation.ts +46 -0
- package/src/lexicon/types/tools/ozone/signature/findRelatedAccounts.ts +71 -0
- package/src/lexicon/types/tools/ozone/signature/searchAccounts.ts +49 -0
@@ -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 '../../../com/atproto/admin/defs'
|
11
|
+
|
12
|
+
export interface QueryParams {
|
13
|
+
values: 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
|