@atproto/ozone 0.1.148 → 0.1.150
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/CHANGELOG.md +16 -0
- package/dist/lexicon/lexicons.d.ts +2 -2
- package/dist/lexicon/lexicons.js +1 -1
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/profile.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/profile.js +9 -7
- package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/status.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/actor/status.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/status.js +9 -7
- package/dist/lexicon/types/app/bsky/actor/status.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/generator.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/generator.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/generator.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/generator.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/like.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/like.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/like.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/like.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/post.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/post.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/post.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/post.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/postgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/postgate.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/repost.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/repost.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/repost.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/repost.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.js +9 -7
- package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/block.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/block.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/block.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/block.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/follow.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/follow.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/follow.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/follow.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/list.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/list.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/list.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/list.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listblock.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/listblock.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listblock.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/listblock.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listitem.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/listitem.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/listitem.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/listitem.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/starterpack.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/starterpack.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/verification.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/graph/verification.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/verification.js +9 -7
- package/dist/lexicon/types/app/bsky/graph/verification.js.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.js +9 -7
- package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/declaration.d.ts +4 -3
- package/dist/lexicon/types/app/bsky/notification/declaration.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/declaration.js +9 -7
- package/dist/lexicon/types/app/bsky/notification/declaration.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +4 -3
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.js +9 -7
- package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
- package/dist/lexicon/types/com/atproto/lexicon/schema.d.ts +4 -3
- package/dist/lexicon/types/com/atproto/lexicon/schema.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/lexicon/schema.js +9 -7
- package/dist/lexicon/types/com/atproto/lexicon/schema.js.map +1 -1
- package/dist/mod-service/views.d.ts.map +1 -1
- package/dist/mod-service/views.js +0 -1
- package/dist/mod-service/views.js.map +1 -1
- package/package.json +4 -4
- package/src/lexicon/lexicons.ts +1 -1
- package/src/lexicon/types/app/bsky/actor/profile.ts +12 -6
- package/src/lexicon/types/app/bsky/actor/status.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/generator.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/like.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/post.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/postgate.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/repost.ts +12 -6
- package/src/lexicon/types/app/bsky/feed/threadgate.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/block.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/follow.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/list.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/listblock.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/listitem.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/starterpack.ts +12 -6
- package/src/lexicon/types/app/bsky/graph/verification.ts +12 -6
- package/src/lexicon/types/app/bsky/labeler/service.ts +12 -6
- package/src/lexicon/types/app/bsky/notification/declaration.ts +12 -6
- package/src/lexicon/types/chat/bsky/actor/declaration.ts +12 -6
- package/src/lexicon/types/com/atproto/lexicon/schema.ts +12 -6
- package/src/mod-service/views.ts +2 -1
- package/tests/__snapshots__/blob-divert.test.ts.snap +197 -0
- package/tests/blob-divert.test.ts +3 -0
|
@@ -22,7 +22,7 @@ const is$typed = _is$typed,
|
|
|
22
22
|
validate = _validate
|
|
23
23
|
const id = 'app.bsky.feed.post'
|
|
24
24
|
|
|
25
|
-
export interface
|
|
25
|
+
export interface Main {
|
|
26
26
|
$type: 'app.bsky.feed.post'
|
|
27
27
|
/** The primary post content. May be an empty string, if there are embeds. */
|
|
28
28
|
text: string
|
|
@@ -48,14 +48,20 @@ export interface Record {
|
|
|
48
48
|
[k: string]: unknown
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
const
|
|
51
|
+
const hashMain = 'main'
|
|
52
52
|
|
|
53
|
-
export function
|
|
54
|
-
return is$typed(v, id,
|
|
53
|
+
export function isMain<V>(v: V) {
|
|
54
|
+
return is$typed(v, id, hashMain)
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export function
|
|
58
|
-
return validate<
|
|
57
|
+
export function validateMain<V>(v: V) {
|
|
58
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
type Main as Record,
|
|
63
|
+
isMain as isRecord,
|
|
64
|
+
validateMain as validateRecord,
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
export interface ReplyRef {
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.feed.postgate'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.feed.postgate'
|
|
19
19
|
createdAt: string
|
|
20
20
|
/** Reference (AT-URI) to the post record. */
|
|
@@ -26,14 +26,20 @@ export interface Record {
|
|
|
26
26
|
[k: string]: unknown
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const hashMain = 'main'
|
|
30
30
|
|
|
31
|
-
export function
|
|
32
|
-
return is$typed(v, id,
|
|
31
|
+
export function isMain<V>(v: V) {
|
|
32
|
+
return is$typed(v, id, hashMain)
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export function
|
|
36
|
-
return validate<
|
|
35
|
+
export function validateMain<V>(v: V) {
|
|
36
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
type Main as Record,
|
|
41
|
+
isMain as isRecord,
|
|
42
|
+
validateMain as validateRecord,
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
/** Disables embedding of this post. */
|
|
@@ -15,7 +15,7 @@ const is$typed = _is$typed,
|
|
|
15
15
|
validate = _validate
|
|
16
16
|
const id = 'app.bsky.feed.repost'
|
|
17
17
|
|
|
18
|
-
export interface
|
|
18
|
+
export interface Main {
|
|
19
19
|
$type: 'app.bsky.feed.repost'
|
|
20
20
|
subject: ComAtprotoRepoStrongRef.Main
|
|
21
21
|
createdAt: string
|
|
@@ -23,12 +23,18 @@ export interface Record {
|
|
|
23
23
|
[k: string]: unknown
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
const
|
|
26
|
+
const hashMain = 'main'
|
|
27
27
|
|
|
28
|
-
export function
|
|
29
|
-
return is$typed(v, id,
|
|
28
|
+
export function isMain<V>(v: V) {
|
|
29
|
+
return is$typed(v, id, hashMain)
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export function
|
|
33
|
-
return validate<
|
|
32
|
+
export function validateMain<V>(v: V) {
|
|
33
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export {
|
|
37
|
+
type Main as Record,
|
|
38
|
+
isMain as isRecord,
|
|
39
|
+
validateMain as validateRecord,
|
|
34
40
|
}
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.feed.threadgate'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.feed.threadgate'
|
|
19
19
|
/** Reference (AT-URI) to the post record. */
|
|
20
20
|
post: string
|
|
@@ -32,14 +32,20 @@ export interface Record {
|
|
|
32
32
|
[k: string]: unknown
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const
|
|
35
|
+
const hashMain = 'main'
|
|
36
36
|
|
|
37
|
-
export function
|
|
38
|
-
return is$typed(v, id,
|
|
37
|
+
export function isMain<V>(v: V) {
|
|
38
|
+
return is$typed(v, id, hashMain)
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export function
|
|
42
|
-
return validate<
|
|
41
|
+
export function validateMain<V>(v: V) {
|
|
42
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
type Main as Record,
|
|
47
|
+
isMain as isRecord,
|
|
48
|
+
validateMain as validateRecord,
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
/** Allow replies from actors mentioned in your post. */
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.graph.block'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.graph.block'
|
|
19
19
|
/** DID of the account to be blocked. */
|
|
20
20
|
subject: string
|
|
@@ -22,12 +22,18 @@ export interface Record {
|
|
|
22
22
|
[k: string]: unknown
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const hashMain = 'main'
|
|
26
26
|
|
|
27
|
-
export function
|
|
28
|
-
return is$typed(v, id,
|
|
27
|
+
export function isMain<V>(v: V) {
|
|
28
|
+
return is$typed(v, id, hashMain)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export function
|
|
32
|
-
return validate<
|
|
31
|
+
export function validateMain<V>(v: V) {
|
|
32
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
type Main as Record,
|
|
37
|
+
isMain as isRecord,
|
|
38
|
+
validateMain as validateRecord,
|
|
33
39
|
}
|
|
@@ -14,19 +14,25 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.graph.follow'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.graph.follow'
|
|
19
19
|
subject: string
|
|
20
20
|
createdAt: string
|
|
21
21
|
[k: string]: unknown
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const hashMain = 'main'
|
|
25
25
|
|
|
26
|
-
export function
|
|
27
|
-
return is$typed(v, id,
|
|
26
|
+
export function isMain<V>(v: V) {
|
|
27
|
+
return is$typed(v, id, hashMain)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export function
|
|
31
|
-
return validate<
|
|
30
|
+
export function validateMain<V>(v: V) {
|
|
31
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
type Main as Record,
|
|
36
|
+
isMain as isRecord,
|
|
37
|
+
validateMain as validateRecord,
|
|
32
38
|
}
|
|
@@ -17,7 +17,7 @@ const is$typed = _is$typed,
|
|
|
17
17
|
validate = _validate
|
|
18
18
|
const id = 'app.bsky.graph.list'
|
|
19
19
|
|
|
20
|
-
export interface
|
|
20
|
+
export interface Main {
|
|
21
21
|
$type: 'app.bsky.graph.list'
|
|
22
22
|
purpose: AppBskyGraphDefs.ListPurpose
|
|
23
23
|
/** Display name for list; can not be empty. */
|
|
@@ -30,12 +30,18 @@ export interface Record {
|
|
|
30
30
|
[k: string]: unknown
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const hashMain = 'main'
|
|
34
34
|
|
|
35
|
-
export function
|
|
36
|
-
return is$typed(v, id,
|
|
35
|
+
export function isMain<V>(v: V) {
|
|
36
|
+
return is$typed(v, id, hashMain)
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export function
|
|
40
|
-
return validate<
|
|
39
|
+
export function validateMain<V>(v: V) {
|
|
40
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
type Main as Record,
|
|
45
|
+
isMain as isRecord,
|
|
46
|
+
validateMain as validateRecord,
|
|
41
47
|
}
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.graph.listblock'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.graph.listblock'
|
|
19
19
|
/** Reference (AT-URI) to the mod list record. */
|
|
20
20
|
subject: string
|
|
@@ -22,12 +22,18 @@ export interface Record {
|
|
|
22
22
|
[k: string]: unknown
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const hashMain = 'main'
|
|
26
26
|
|
|
27
|
-
export function
|
|
28
|
-
return is$typed(v, id,
|
|
27
|
+
export function isMain<V>(v: V) {
|
|
28
|
+
return is$typed(v, id, hashMain)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export function
|
|
32
|
-
return validate<
|
|
31
|
+
export function validateMain<V>(v: V) {
|
|
32
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
type Main as Record,
|
|
37
|
+
isMain as isRecord,
|
|
38
|
+
validateMain as validateRecord,
|
|
33
39
|
}
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.graph.listitem'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.graph.listitem'
|
|
19
19
|
/** The account which is included on the list. */
|
|
20
20
|
subject: string
|
|
@@ -24,12 +24,18 @@ export interface Record {
|
|
|
24
24
|
[k: string]: unknown
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const hashMain = 'main'
|
|
28
28
|
|
|
29
|
-
export function
|
|
30
|
-
return is$typed(v, id,
|
|
29
|
+
export function isMain<V>(v: V) {
|
|
30
|
+
return is$typed(v, id, hashMain)
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export function
|
|
34
|
-
return validate<
|
|
33
|
+
export function validateMain<V>(v: V) {
|
|
34
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
type Main as Record,
|
|
39
|
+
isMain as isRecord,
|
|
40
|
+
validateMain as validateRecord,
|
|
35
41
|
}
|
|
@@ -15,7 +15,7 @@ const is$typed = _is$typed,
|
|
|
15
15
|
validate = _validate
|
|
16
16
|
const id = 'app.bsky.graph.starterpack'
|
|
17
17
|
|
|
18
|
-
export interface
|
|
18
|
+
export interface Main {
|
|
19
19
|
$type: 'app.bsky.graph.starterpack'
|
|
20
20
|
/** Display name for starter pack; can not be empty. */
|
|
21
21
|
name: string
|
|
@@ -28,14 +28,20 @@ export interface Record {
|
|
|
28
28
|
[k: string]: unknown
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
const
|
|
31
|
+
const hashMain = 'main'
|
|
32
32
|
|
|
33
|
-
export function
|
|
34
|
-
return is$typed(v, id,
|
|
33
|
+
export function isMain<V>(v: V) {
|
|
34
|
+
return is$typed(v, id, hashMain)
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export function
|
|
38
|
-
return validate<
|
|
37
|
+
export function validateMain<V>(v: V) {
|
|
38
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
type Main as Record,
|
|
43
|
+
isMain as isRecord,
|
|
44
|
+
validateMain as validateRecord,
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
export interface FeedItem {
|
|
@@ -14,7 +14,7 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.graph.verification'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.graph.verification'
|
|
19
19
|
/** DID of the subject the verification applies to. */
|
|
20
20
|
subject: string
|
|
@@ -27,12 +27,18 @@ export interface Record {
|
|
|
27
27
|
[k: string]: unknown
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const
|
|
30
|
+
const hashMain = 'main'
|
|
31
31
|
|
|
32
|
-
export function
|
|
33
|
-
return is$typed(v, id,
|
|
32
|
+
export function isMain<V>(v: V) {
|
|
33
|
+
return is$typed(v, id, hashMain)
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export function
|
|
37
|
-
return validate<
|
|
36
|
+
export function validateMain<V>(v: V) {
|
|
37
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
type Main as Record,
|
|
42
|
+
isMain as isRecord,
|
|
43
|
+
validateMain as validateRecord,
|
|
38
44
|
}
|
|
@@ -17,7 +17,7 @@ const is$typed = _is$typed,
|
|
|
17
17
|
validate = _validate
|
|
18
18
|
const id = 'app.bsky.labeler.service'
|
|
19
19
|
|
|
20
|
-
export interface
|
|
20
|
+
export interface Main {
|
|
21
21
|
$type: 'app.bsky.labeler.service'
|
|
22
22
|
policies: AppBskyLabelerDefs.LabelerPolicies
|
|
23
23
|
labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }
|
|
@@ -31,12 +31,18 @@ export interface Record {
|
|
|
31
31
|
[k: string]: unknown
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
const
|
|
34
|
+
const hashMain = 'main'
|
|
35
35
|
|
|
36
|
-
export function
|
|
37
|
-
return is$typed(v, id,
|
|
36
|
+
export function isMain<V>(v: V) {
|
|
37
|
+
return is$typed(v, id, hashMain)
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export function
|
|
41
|
-
return validate<
|
|
40
|
+
export function validateMain<V>(v: V) {
|
|
41
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export {
|
|
45
|
+
type Main as Record,
|
|
46
|
+
isMain as isRecord,
|
|
47
|
+
validateMain as validateRecord,
|
|
42
48
|
}
|
|
@@ -14,19 +14,25 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'app.bsky.notification.declaration'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'app.bsky.notification.declaration'
|
|
19
19
|
/** A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'. */
|
|
20
20
|
allowSubscriptions: 'followers' | 'mutuals' | 'none' | (string & {})
|
|
21
21
|
[k: string]: unknown
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const hashMain = 'main'
|
|
25
25
|
|
|
26
|
-
export function
|
|
27
|
-
return is$typed(v, id,
|
|
26
|
+
export function isMain<V>(v: V) {
|
|
27
|
+
return is$typed(v, id, hashMain)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export function
|
|
31
|
-
return validate<
|
|
30
|
+
export function validateMain<V>(v: V) {
|
|
31
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
type Main as Record,
|
|
36
|
+
isMain as isRecord,
|
|
37
|
+
validateMain as validateRecord,
|
|
32
38
|
}
|
|
@@ -14,18 +14,24 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'chat.bsky.actor.declaration'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'chat.bsky.actor.declaration'
|
|
19
19
|
allowIncoming: 'all' | 'none' | 'following' | (string & {})
|
|
20
20
|
[k: string]: unknown
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
const
|
|
23
|
+
const hashMain = 'main'
|
|
24
24
|
|
|
25
|
-
export function
|
|
26
|
-
return is$typed(v, id,
|
|
25
|
+
export function isMain<V>(v: V) {
|
|
26
|
+
return is$typed(v, id, hashMain)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export function
|
|
30
|
-
return validate<
|
|
29
|
+
export function validateMain<V>(v: V) {
|
|
30
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
type Main as Record,
|
|
35
|
+
isMain as isRecord,
|
|
36
|
+
validateMain as validateRecord,
|
|
31
37
|
}
|
|
@@ -14,19 +14,25 @@ const is$typed = _is$typed,
|
|
|
14
14
|
validate = _validate
|
|
15
15
|
const id = 'com.atproto.lexicon.schema'
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface Main {
|
|
18
18
|
$type: 'com.atproto.lexicon.schema'
|
|
19
19
|
/** Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. */
|
|
20
20
|
lexicon: number
|
|
21
21
|
[k: string]: unknown
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const hashMain = 'main'
|
|
25
25
|
|
|
26
|
-
export function
|
|
27
|
-
return is$typed(v, id,
|
|
26
|
+
export function isMain<V>(v: V) {
|
|
27
|
+
return is$typed(v, id, hashMain)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export function
|
|
31
|
-
return validate<
|
|
30
|
+
export function validateMain<V>(v: V) {
|
|
31
|
+
return validate<Main & V>(v, id, hashMain, true)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
type Main as Record,
|
|
36
|
+
isMain as isRecord,
|
|
37
|
+
validateMain as validateRecord,
|
|
32
38
|
}
|
package/src/mod-service/views.ts
CHANGED
|
@@ -578,8 +578,8 @@ export class ModerationViews {
|
|
|
578
578
|
'moderation_subject_status.blobCids',
|
|
579
579
|
)} @> ${JSON.stringify(blobs.map((blob) => blob.ref.toString()))}`,
|
|
580
580
|
)
|
|
581
|
-
.selectAll()
|
|
582
581
|
.executeTakeFirst()
|
|
582
|
+
|
|
583
583
|
const statusByCid = (modStatusResults?.blobCids || [])?.reduce(
|
|
584
584
|
(acc, cur) => Object.assign(acc, { [cur]: modStatusResults }),
|
|
585
585
|
{},
|
|
@@ -592,6 +592,7 @@ export class ModerationViews {
|
|
|
592
592
|
const subjectStatus = statusByCid[cid]
|
|
593
593
|
? this.formatSubjectStatus(statusByCid[cid])
|
|
594
594
|
: undefined
|
|
595
|
+
|
|
595
596
|
return {
|
|
596
597
|
cid,
|
|
597
598
|
mimeType: blob.mimeType,
|