@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.
Files changed (107) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/lexicon/lexicons.d.ts +2 -2
  3. package/dist/lexicon/lexicons.js +1 -1
  4. package/dist/lexicon/lexicons.js.map +1 -1
  5. package/dist/lexicon/types/app/bsky/actor/profile.d.ts +4 -3
  6. package/dist/lexicon/types/app/bsky/actor/profile.d.ts.map +1 -1
  7. package/dist/lexicon/types/app/bsky/actor/profile.js +9 -7
  8. package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
  9. package/dist/lexicon/types/app/bsky/actor/status.d.ts +4 -3
  10. package/dist/lexicon/types/app/bsky/actor/status.d.ts.map +1 -1
  11. package/dist/lexicon/types/app/bsky/actor/status.js +9 -7
  12. package/dist/lexicon/types/app/bsky/actor/status.js.map +1 -1
  13. package/dist/lexicon/types/app/bsky/feed/generator.d.ts +4 -3
  14. package/dist/lexicon/types/app/bsky/feed/generator.d.ts.map +1 -1
  15. package/dist/lexicon/types/app/bsky/feed/generator.js +9 -7
  16. package/dist/lexicon/types/app/bsky/feed/generator.js.map +1 -1
  17. package/dist/lexicon/types/app/bsky/feed/like.d.ts +4 -3
  18. package/dist/lexicon/types/app/bsky/feed/like.d.ts.map +1 -1
  19. package/dist/lexicon/types/app/bsky/feed/like.js +9 -7
  20. package/dist/lexicon/types/app/bsky/feed/like.js.map +1 -1
  21. package/dist/lexicon/types/app/bsky/feed/post.d.ts +4 -3
  22. package/dist/lexicon/types/app/bsky/feed/post.d.ts.map +1 -1
  23. package/dist/lexicon/types/app/bsky/feed/post.js +9 -7
  24. package/dist/lexicon/types/app/bsky/feed/post.js.map +1 -1
  25. package/dist/lexicon/types/app/bsky/feed/postgate.d.ts +4 -3
  26. package/dist/lexicon/types/app/bsky/feed/postgate.d.ts.map +1 -1
  27. package/dist/lexicon/types/app/bsky/feed/postgate.js +9 -7
  28. package/dist/lexicon/types/app/bsky/feed/postgate.js.map +1 -1
  29. package/dist/lexicon/types/app/bsky/feed/repost.d.ts +4 -3
  30. package/dist/lexicon/types/app/bsky/feed/repost.d.ts.map +1 -1
  31. package/dist/lexicon/types/app/bsky/feed/repost.js +9 -7
  32. package/dist/lexicon/types/app/bsky/feed/repost.js.map +1 -1
  33. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +4 -3
  34. package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
  35. package/dist/lexicon/types/app/bsky/feed/threadgate.js +9 -7
  36. package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
  37. package/dist/lexicon/types/app/bsky/graph/block.d.ts +4 -3
  38. package/dist/lexicon/types/app/bsky/graph/block.d.ts.map +1 -1
  39. package/dist/lexicon/types/app/bsky/graph/block.js +9 -7
  40. package/dist/lexicon/types/app/bsky/graph/block.js.map +1 -1
  41. package/dist/lexicon/types/app/bsky/graph/follow.d.ts +4 -3
  42. package/dist/lexicon/types/app/bsky/graph/follow.d.ts.map +1 -1
  43. package/dist/lexicon/types/app/bsky/graph/follow.js +9 -7
  44. package/dist/lexicon/types/app/bsky/graph/follow.js.map +1 -1
  45. package/dist/lexicon/types/app/bsky/graph/list.d.ts +4 -3
  46. package/dist/lexicon/types/app/bsky/graph/list.d.ts.map +1 -1
  47. package/dist/lexicon/types/app/bsky/graph/list.js +9 -7
  48. package/dist/lexicon/types/app/bsky/graph/list.js.map +1 -1
  49. package/dist/lexicon/types/app/bsky/graph/listblock.d.ts +4 -3
  50. package/dist/lexicon/types/app/bsky/graph/listblock.d.ts.map +1 -1
  51. package/dist/lexicon/types/app/bsky/graph/listblock.js +9 -7
  52. package/dist/lexicon/types/app/bsky/graph/listblock.js.map +1 -1
  53. package/dist/lexicon/types/app/bsky/graph/listitem.d.ts +4 -3
  54. package/dist/lexicon/types/app/bsky/graph/listitem.d.ts.map +1 -1
  55. package/dist/lexicon/types/app/bsky/graph/listitem.js +9 -7
  56. package/dist/lexicon/types/app/bsky/graph/listitem.js.map +1 -1
  57. package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts +4 -3
  58. package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts.map +1 -1
  59. package/dist/lexicon/types/app/bsky/graph/starterpack.js +9 -7
  60. package/dist/lexicon/types/app/bsky/graph/starterpack.js.map +1 -1
  61. package/dist/lexicon/types/app/bsky/graph/verification.d.ts +4 -3
  62. package/dist/lexicon/types/app/bsky/graph/verification.d.ts.map +1 -1
  63. package/dist/lexicon/types/app/bsky/graph/verification.js +9 -7
  64. package/dist/lexicon/types/app/bsky/graph/verification.js.map +1 -1
  65. package/dist/lexicon/types/app/bsky/labeler/service.d.ts +4 -3
  66. package/dist/lexicon/types/app/bsky/labeler/service.d.ts.map +1 -1
  67. package/dist/lexicon/types/app/bsky/labeler/service.js +9 -7
  68. package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
  69. package/dist/lexicon/types/app/bsky/notification/declaration.d.ts +4 -3
  70. package/dist/lexicon/types/app/bsky/notification/declaration.d.ts.map +1 -1
  71. package/dist/lexicon/types/app/bsky/notification/declaration.js +9 -7
  72. package/dist/lexicon/types/app/bsky/notification/declaration.js.map +1 -1
  73. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +4 -3
  74. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -1
  75. package/dist/lexicon/types/chat/bsky/actor/declaration.js +9 -7
  76. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
  77. package/dist/lexicon/types/com/atproto/lexicon/schema.d.ts +4 -3
  78. package/dist/lexicon/types/com/atproto/lexicon/schema.d.ts.map +1 -1
  79. package/dist/lexicon/types/com/atproto/lexicon/schema.js +9 -7
  80. package/dist/lexicon/types/com/atproto/lexicon/schema.js.map +1 -1
  81. package/dist/mod-service/views.d.ts.map +1 -1
  82. package/dist/mod-service/views.js +0 -1
  83. package/dist/mod-service/views.js.map +1 -1
  84. package/package.json +4 -4
  85. package/src/lexicon/lexicons.ts +1 -1
  86. package/src/lexicon/types/app/bsky/actor/profile.ts +12 -6
  87. package/src/lexicon/types/app/bsky/actor/status.ts +12 -6
  88. package/src/lexicon/types/app/bsky/feed/generator.ts +12 -6
  89. package/src/lexicon/types/app/bsky/feed/like.ts +12 -6
  90. package/src/lexicon/types/app/bsky/feed/post.ts +12 -6
  91. package/src/lexicon/types/app/bsky/feed/postgate.ts +12 -6
  92. package/src/lexicon/types/app/bsky/feed/repost.ts +12 -6
  93. package/src/lexicon/types/app/bsky/feed/threadgate.ts +12 -6
  94. package/src/lexicon/types/app/bsky/graph/block.ts +12 -6
  95. package/src/lexicon/types/app/bsky/graph/follow.ts +12 -6
  96. package/src/lexicon/types/app/bsky/graph/list.ts +12 -6
  97. package/src/lexicon/types/app/bsky/graph/listblock.ts +12 -6
  98. package/src/lexicon/types/app/bsky/graph/listitem.ts +12 -6
  99. package/src/lexicon/types/app/bsky/graph/starterpack.ts +12 -6
  100. package/src/lexicon/types/app/bsky/graph/verification.ts +12 -6
  101. package/src/lexicon/types/app/bsky/labeler/service.ts +12 -6
  102. package/src/lexicon/types/app/bsky/notification/declaration.ts +12 -6
  103. package/src/lexicon/types/chat/bsky/actor/declaration.ts +12 -6
  104. package/src/lexicon/types/com/atproto/lexicon/schema.ts +12 -6
  105. package/src/mod-service/views.ts +2 -1
  106. package/tests/__snapshots__/blob-divert.test.ts.snap +197 -0
  107. 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 Record {
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 hashRecord = 'main'
51
+ const hashMain = 'main'
52
52
 
53
- export function isRecord<V>(v: V) {
54
- return is$typed(v, id, hashRecord)
53
+ export function isMain<V>(v: V) {
54
+ return is$typed(v, id, hashMain)
55
55
  }
56
56
 
57
- export function validateRecord<V>(v: V) {
58
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
29
+ const hashMain = 'main'
30
30
 
31
- export function isRecord<V>(v: V) {
32
- return is$typed(v, id, hashRecord)
31
+ export function isMain<V>(v: V) {
32
+ return is$typed(v, id, hashMain)
33
33
  }
34
34
 
35
- export function validateRecord<V>(v: V) {
36
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
26
+ const hashMain = 'main'
27
27
 
28
- export function isRecord<V>(v: V) {
29
- return is$typed(v, id, hashRecord)
28
+ export function isMain<V>(v: V) {
29
+ return is$typed(v, id, hashMain)
30
30
  }
31
31
 
32
- export function validateRecord<V>(v: V) {
33
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
35
+ const hashMain = 'main'
36
36
 
37
- export function isRecord<V>(v: V) {
38
- return is$typed(v, id, hashRecord)
37
+ export function isMain<V>(v: V) {
38
+ return is$typed(v, id, hashMain)
39
39
  }
40
40
 
41
- export function validateRecord<V>(v: V) {
42
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
25
+ const hashMain = 'main'
26
26
 
27
- export function isRecord<V>(v: V) {
28
- return is$typed(v, id, hashRecord)
27
+ export function isMain<V>(v: V) {
28
+ return is$typed(v, id, hashMain)
29
29
  }
30
30
 
31
- export function validateRecord<V>(v: V) {
32
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
24
+ const hashMain = 'main'
25
25
 
26
- export function isRecord<V>(v: V) {
27
- return is$typed(v, id, hashRecord)
26
+ export function isMain<V>(v: V) {
27
+ return is$typed(v, id, hashMain)
28
28
  }
29
29
 
30
- export function validateRecord<V>(v: V) {
31
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
33
+ const hashMain = 'main'
34
34
 
35
- export function isRecord<V>(v: V) {
36
- return is$typed(v, id, hashRecord)
35
+ export function isMain<V>(v: V) {
36
+ return is$typed(v, id, hashMain)
37
37
  }
38
38
 
39
- export function validateRecord<V>(v: V) {
40
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
25
+ const hashMain = 'main'
26
26
 
27
- export function isRecord<V>(v: V) {
28
- return is$typed(v, id, hashRecord)
27
+ export function isMain<V>(v: V) {
28
+ return is$typed(v, id, hashMain)
29
29
  }
30
30
 
31
- export function validateRecord<V>(v: V) {
32
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
27
+ const hashMain = 'main'
28
28
 
29
- export function isRecord<V>(v: V) {
30
- return is$typed(v, id, hashRecord)
29
+ export function isMain<V>(v: V) {
30
+ return is$typed(v, id, hashMain)
31
31
  }
32
32
 
33
- export function validateRecord<V>(v: V) {
34
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
31
+ const hashMain = 'main'
32
32
 
33
- export function isRecord<V>(v: V) {
34
- return is$typed(v, id, hashRecord)
33
+ export function isMain<V>(v: V) {
34
+ return is$typed(v, id, hashMain)
35
35
  }
36
36
 
37
- export function validateRecord<V>(v: V) {
38
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
30
+ const hashMain = 'main'
31
31
 
32
- export function isRecord<V>(v: V) {
33
- return is$typed(v, id, hashRecord)
32
+ export function isMain<V>(v: V) {
33
+ return is$typed(v, id, hashMain)
34
34
  }
35
35
 
36
- export function validateRecord<V>(v: V) {
37
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
34
+ const hashMain = 'main'
35
35
 
36
- export function isRecord<V>(v: V) {
37
- return is$typed(v, id, hashRecord)
36
+ export function isMain<V>(v: V) {
37
+ return is$typed(v, id, hashMain)
38
38
  }
39
39
 
40
- export function validateRecord<V>(v: V) {
41
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
24
+ const hashMain = 'main'
25
25
 
26
- export function isRecord<V>(v: V) {
27
- return is$typed(v, id, hashRecord)
26
+ export function isMain<V>(v: V) {
27
+ return is$typed(v, id, hashMain)
28
28
  }
29
29
 
30
- export function validateRecord<V>(v: V) {
31
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
23
+ const hashMain = 'main'
24
24
 
25
- export function isRecord<V>(v: V) {
26
- return is$typed(v, id, hashRecord)
25
+ export function isMain<V>(v: V) {
26
+ return is$typed(v, id, hashMain)
27
27
  }
28
28
 
29
- export function validateRecord<V>(v: V) {
30
- return validate<Record & V>(v, id, hashRecord, true)
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 Record {
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 hashRecord = 'main'
24
+ const hashMain = 'main'
25
25
 
26
- export function isRecord<V>(v: V) {
27
- return is$typed(v, id, hashRecord)
26
+ export function isMain<V>(v: V) {
27
+ return is$typed(v, id, hashMain)
28
28
  }
29
29
 
30
- export function validateRecord<V>(v: V) {
31
- return validate<Record & V>(v, id, hashRecord, true)
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
  }
@@ -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,