@atproto/ozone 0.1.22 → 0.1.24

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 (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/lexicon/index.d.ts +6 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +12 -0
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +127 -0
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +127 -0
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +9 -0
  11. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
  13. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  14. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -0
  15. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  16. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  17. package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.d.ts +40 -0
  18. package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.d.ts.map +1 -0
  19. package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.js +3 -0
  20. package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.js.map +1 -0
  21. package/dist/lexicon/types/app/bsky/graph/muteThread.d.ts +29 -0
  22. package/dist/lexicon/types/app/bsky/graph/muteThread.d.ts.map +1 -0
  23. package/dist/lexicon/types/app/bsky/graph/muteThread.js +3 -0
  24. package/dist/lexicon/types/app/bsky/graph/muteThread.js.map +1 -0
  25. package/dist/lexicon/types/app/bsky/graph/unmuteThread.d.ts +29 -0
  26. package/dist/lexicon/types/app/bsky/graph/unmuteThread.d.ts.map +1 -0
  27. package/dist/lexicon/types/app/bsky/graph/unmuteThread.js +3 -0
  28. package/dist/lexicon/types/app/bsky/graph/unmuteThread.js.map +1 -0
  29. package/package.json +3 -3
  30. package/src/lexicon/index.ts +36 -0
  31. package/src/lexicon/lexicons.ts +129 -0
  32. package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
  33. package/src/lexicon/types/app/bsky/feed/defs.ts +1 -0
  34. package/src/lexicon/types/app/bsky/graph/getKnownFollowers.ts +50 -0
  35. package/src/lexicon/types/app/bsky/graph/muteThread.ts +38 -0
  36. package/src/lexicon/types/app/bsky/graph/unmuteThread.ts +38 -0
  37. package/tests/lang.test.ts +1 -4
@@ -49,6 +49,7 @@ export function validatePostView(v: unknown): ValidationResult {
49
49
  export interface ViewerState {
50
50
  repost?: string
51
51
  like?: string
52
+ threadMuted?: boolean
52
53
  replyDisabled?: boolean
53
54
  [k: string]: unknown
54
55
  }
@@ -0,0 +1,50 @@
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 AppBskyActorDefs from '../actor/defs'
11
+
12
+ export interface QueryParams {
13
+ actor: string
14
+ limit: number
15
+ cursor?: string
16
+ }
17
+
18
+ export type InputSchema = undefined
19
+
20
+ export interface OutputSchema {
21
+ subject: AppBskyActorDefs.ProfileView
22
+ cursor?: string
23
+ followers: AppBskyActorDefs.ProfileView[]
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
@@ -0,0 +1,38 @@
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
+
11
+ export interface QueryParams {}
12
+
13
+ export interface InputSchema {
14
+ root: string
15
+ [k: string]: unknown
16
+ }
17
+
18
+ export interface HandlerInput {
19
+ encoding: 'application/json'
20
+ body: InputSchema
21
+ }
22
+
23
+ export interface HandlerError {
24
+ status: number
25
+ message?: string
26
+ }
27
+
28
+ export type HandlerOutput = HandlerError | void
29
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
30
+ auth: HA
31
+ params: QueryParams
32
+ input: HandlerInput
33
+ req: express.Request
34
+ res: express.Response
35
+ }
36
+ export type Handler<HA extends HandlerAuth = never> = (
37
+ ctx: HandlerReqCtx<HA>,
38
+ ) => Promise<HandlerOutput> | HandlerOutput
@@ -0,0 +1,38 @@
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
+
11
+ export interface QueryParams {}
12
+
13
+ export interface InputSchema {
14
+ root: string
15
+ [k: string]: unknown
16
+ }
17
+
18
+ export interface HandlerInput {
19
+ encoding: 'application/json'
20
+ body: InputSchema
21
+ }
22
+
23
+ export interface HandlerError {
24
+ status: number
25
+ message?: string
26
+ }
27
+
28
+ export type HandlerOutput = HandlerError | void
29
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
30
+ auth: HA
31
+ params: QueryParams
32
+ input: HandlerInput
33
+ req: express.Request
34
+ res: express.Response
35
+ }
36
+ export type Handler<HA extends HandlerAuth = never> = (
37
+ ctx: HandlerReqCtx<HA>,
38
+ ) => Promise<HandlerOutput> | HandlerOutput
@@ -4,24 +4,21 @@ import {
4
4
  TestNetwork,
5
5
  basicSeed,
6
6
  } from '@atproto/dev-env'
7
- import AtpAgent from '@atproto/api'
8
7
  import { REASONSPAM } from '../src/lexicon/types/com/atproto/moderation/defs'
9
8
 
10
9
  describe('moderation status language tagging', () => {
11
10
  let network: TestNetwork
12
- let agent: AtpAgent
13
11
  let sc: SeedClient
14
12
  let modClient: ModeratorClient
15
13
 
16
14
  beforeAll(async () => {
17
15
  network = await TestNetwork.create({
18
- dbPostgresSchema: 'ozone_blob_divert_test',
16
+ dbPostgresSchema: 'ozone_lang_test',
19
17
  ozone: {
20
18
  blobDivertUrl: `https://blob-report.com`,
21
19
  blobDivertAdminPassword: 'test-auth-token',
22
20
  },
23
21
  })
24
- agent = network.pds.getClient()
25
22
  sc = network.getSeedClient()
26
23
  modClient = network.ozone.getModClient()
27
24
  await basicSeed(sc)