@atproto/ozone 0.1.47 → 0.1.48

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/api/proxied.d.ts.map +1 -1
  3. package/dist/api/proxied.js +39 -0
  4. package/dist/api/proxied.js.map +1 -1
  5. package/dist/lexicon/index.d.ts +11 -0
  6. package/dist/lexicon/index.d.ts.map +1 -1
  7. package/dist/lexicon/index.js +32 -1
  8. package/dist/lexicon/index.js.map +1 -1
  9. package/dist/lexicon/lexicons.d.ts +176 -0
  10. package/dist/lexicon/lexicons.d.ts.map +1 -1
  11. package/dist/lexicon/lexicons.js +176 -0
  12. package/dist/lexicon/lexicons.js.map +1 -1
  13. package/dist/lexicon/types/tools/ozone/signature/defs.d.ts +12 -0
  14. package/dist/lexicon/types/tools/ozone/signature/defs.d.ts.map +1 -0
  15. package/dist/lexicon/types/tools/ozone/signature/defs.js +16 -0
  16. package/dist/lexicon/types/tools/ozone/signature/defs.js.map +1 -0
  17. package/dist/lexicon/types/tools/ozone/signature/findCorrelation.d.ts +36 -0
  18. package/dist/lexicon/types/tools/ozone/signature/findCorrelation.d.ts.map +1 -0
  19. package/dist/lexicon/types/tools/ozone/signature/findCorrelation.js +3 -0
  20. package/dist/lexicon/types/tools/ozone/signature/findCorrelation.js.map +1 -0
  21. package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.d.ts +48 -0
  22. package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.d.ts.map +1 -0
  23. package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.js +16 -0
  24. package/dist/lexicon/types/tools/ozone/signature/findRelatedAccounts.js.map +1 -0
  25. package/dist/lexicon/types/tools/ozone/signature/searchAccounts.d.ts +39 -0
  26. package/dist/lexicon/types/tools/ozone/signature/searchAccounts.d.ts.map +1 -0
  27. package/dist/lexicon/types/tools/ozone/signature/searchAccounts.js +3 -0
  28. package/dist/lexicon/types/tools/ozone/signature/searchAccounts.js.map +1 -0
  29. package/package.json +3 -3
  30. package/src/api/proxied.ts +51 -0
  31. package/src/lexicon/index.ts +46 -0
  32. package/src/lexicon/lexicons.ts +180 -0
  33. package/src/lexicon/types/tools/ozone/signature/defs.ts +25 -0
  34. package/src/lexicon/types/tools/ozone/signature/findCorrelation.ts +46 -0
  35. package/src/lexicon/types/tools/ozone/signature/findRelatedAccounts.ts +71 -0
  36. package/src/lexicon/types/tools/ozone/signature/searchAccounts.ts +49 -0
@@ -0,0 +1,71 @@
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
+ import * as ToolsOzoneSignatureDefs from './defs'
12
+
13
+ export interface QueryParams {
14
+ did: string
15
+ cursor?: string
16
+ limit: number
17
+ }
18
+
19
+ export type InputSchema = undefined
20
+
21
+ export interface OutputSchema {
22
+ cursor?: string
23
+ accounts: RelatedAccount[]
24
+ [k: string]: unknown
25
+ }
26
+
27
+ export type HandlerInput = undefined
28
+
29
+ export interface HandlerSuccess {
30
+ encoding: 'application/json'
31
+ body: OutputSchema
32
+ headers?: { [key: string]: string }
33
+ }
34
+
35
+ export interface HandlerError {
36
+ status: number
37
+ message?: string
38
+ }
39
+
40
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
41
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
42
+ auth: HA
43
+ params: QueryParams
44
+ input: HandlerInput
45
+ req: express.Request
46
+ res: express.Response
47
+ }
48
+ export type Handler<HA extends HandlerAuth = never> = (
49
+ ctx: HandlerReqCtx<HA>,
50
+ ) => Promise<HandlerOutput> | HandlerOutput
51
+
52
+ export interface RelatedAccount {
53
+ account: ComAtprotoAdminDefs.AccountView
54
+ similarities?: ToolsOzoneSignatureDefs.SigDetail[]
55
+ [k: string]: unknown
56
+ }
57
+
58
+ export function isRelatedAccount(v: unknown): v is RelatedAccount {
59
+ return (
60
+ isObj(v) &&
61
+ hasProp(v, '$type') &&
62
+ v.$type === 'tools.ozone.signature.findRelatedAccounts#relatedAccount'
63
+ )
64
+ }
65
+
66
+ export function validateRelatedAccount(v: unknown): ValidationResult {
67
+ return lexicons.validate(
68
+ 'tools.ozone.signature.findRelatedAccounts#relatedAccount',
69
+ v,
70
+ )
71
+ }
@@ -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