@atproto/bsky 0.0.15 → 0.0.16

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 (170) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/api/com/atproto/moderation/util.d.ts +4 -3
  3. package/dist/context.d.ts +15 -0
  4. package/dist/db/index.js +26 -1
  5. package/dist/db/index.js.map +3 -3
  6. package/dist/db/migrations/20231003T202833377Z-create-moderation-subject-status.d.ts +3 -0
  7. package/dist/db/migrations/index.d.ts +1 -0
  8. package/dist/db/pagination.d.ts +2 -1
  9. package/dist/db/{periodic-moderation-action-reversal.d.ts → periodic-moderation-event-reversal.d.ts} +3 -5
  10. package/dist/db/tables/moderation.d.ts +24 -34
  11. package/dist/feed-gen/types.d.ts +1 -1
  12. package/dist/index.d.ts +2 -1
  13. package/dist/index.js +2750 -2121
  14. package/dist/index.js.map +3 -3
  15. package/dist/lexicon/index.d.ts +11 -18
  16. package/dist/lexicon/lexicons.d.ts +414 -399
  17. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +1 -7
  18. package/dist/lexicon/types/app/bsky/graph/defs.d.ts +1 -0
  19. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +114 -48
  20. package/dist/lexicon/types/com/atproto/admin/{takeModerationAction.d.ts → emitModerationEvent.d.ts} +5 -6
  21. package/dist/lexicon/types/com/atproto/admin/{getModerationAction.d.ts → getModerationEvent.d.ts} +1 -1
  22. package/dist/lexicon/types/com/atproto/admin/{getModerationActions.d.ts → queryModerationEvents.d.ts} +5 -1
  23. package/dist/lexicon/types/com/atproto/admin/{getModerationReports.d.ts → queryModerationStatuses.d.ts} +12 -6
  24. package/dist/lexicon/types/com/atproto/admin/sendEmail.d.ts +1 -0
  25. package/dist/migrate-moderation-data.d.ts +1 -0
  26. package/dist/services/actor/views.d.ts +2 -5
  27. package/dist/services/feed/index.d.ts +1 -0
  28. package/dist/services/feed/util.d.ts +9 -1
  29. package/dist/services/feed/views.d.ts +6 -17
  30. package/dist/services/graph/index.d.ts +5 -29
  31. package/dist/services/graph/types.d.ts +1 -0
  32. package/dist/services/moderation/index.d.ts +135 -72
  33. package/dist/services/moderation/pagination.d.ts +36 -0
  34. package/dist/services/moderation/status.d.ts +13 -0
  35. package/dist/services/moderation/types.d.ts +35 -0
  36. package/dist/services/moderation/views.d.ts +18 -14
  37. package/dist/util/debug.d.ts +1 -1
  38. package/package.json +11 -11
  39. package/src/api/app/bsky/feed/getActorFeeds.ts +2 -1
  40. package/src/api/app/bsky/feed/getActorLikes.ts +1 -3
  41. package/src/api/app/bsky/feed/getAuthorFeed.ts +1 -3
  42. package/src/api/app/bsky/feed/getFeed.ts +9 -9
  43. package/src/api/app/bsky/feed/getFeedGenerator.ts +3 -0
  44. package/src/api/app/bsky/feed/getFeedGenerators.ts +2 -1
  45. package/src/api/app/bsky/feed/getListFeed.ts +1 -3
  46. package/src/api/app/bsky/feed/getPostThread.ts +15 -54
  47. package/src/api/app/bsky/feed/getPosts.ts +21 -18
  48. package/src/api/app/bsky/feed/getSuggestedFeeds.ts +2 -1
  49. package/src/api/app/bsky/feed/getTimeline.ts +1 -3
  50. package/src/api/app/bsky/feed/searchPosts.ts +20 -17
  51. package/src/api/app/bsky/graph/getList.ts +6 -3
  52. package/src/api/app/bsky/graph/getListBlocks.ts +3 -2
  53. package/src/api/app/bsky/graph/getListMutes.ts +2 -1
  54. package/src/api/app/bsky/graph/getLists.ts +2 -1
  55. package/src/api/app/bsky/unspecced/getPopularFeedGenerators.ts +3 -1
  56. package/src/api/blob-resolver.ts +6 -11
  57. package/src/api/com/atproto/admin/emitModerationEvent.ts +220 -0
  58. package/src/api/com/atproto/admin/{getModerationActions.ts → getModerationEvent.ts} +5 -11
  59. package/src/api/com/atproto/admin/getRecord.ts +1 -0
  60. package/src/api/com/atproto/admin/{getModerationReports.ts → queryModerationEvents.ts} +13 -16
  61. package/src/api/com/atproto/admin/queryModerationStatuses.ts +55 -0
  62. package/src/api/com/atproto/moderation/createReport.ts +9 -7
  63. package/src/api/com/atproto/moderation/util.ts +38 -20
  64. package/src/api/index.ts +8 -14
  65. package/src/auth.ts +29 -21
  66. package/src/auto-moderator/index.ts +26 -19
  67. package/src/context.ts +4 -0
  68. package/src/db/migrations/20231003T202833377Z-create-moderation-subject-status.ts +123 -0
  69. package/src/db/migrations/index.ts +1 -0
  70. package/src/db/pagination.ts +26 -3
  71. package/src/db/{periodic-moderation-action-reversal.ts → periodic-moderation-event-reversal.ts} +50 -46
  72. package/src/db/tables/moderation.ts +35 -52
  73. package/src/feed-gen/best-of-follows.ts +6 -3
  74. package/src/feed-gen/bsky-team.ts +1 -1
  75. package/src/feed-gen/hot-classic.ts +1 -1
  76. package/src/feed-gen/mutuals.ts +6 -2
  77. package/src/feed-gen/types.ts +1 -1
  78. package/src/feed-gen/whats-hot.ts +1 -1
  79. package/src/feed-gen/with-friends.ts +7 -3
  80. package/src/index.ts +2 -1
  81. package/src/lexicon/index.ts +30 -67
  82. package/src/lexicon/lexicons.ts +526 -491
  83. package/src/lexicon/types/app/bsky/feed/defs.ts +1 -18
  84. package/src/lexicon/types/app/bsky/graph/defs.ts +1 -0
  85. package/src/lexicon/types/com/atproto/admin/defs.ts +276 -84
  86. package/src/lexicon/types/com/atproto/admin/{takeModerationAction.ts → emitModerationEvent.ts} +13 -11
  87. package/src/lexicon/types/com/atproto/admin/{getModerationReport.ts → getModerationEvent.ts} +1 -1
  88. package/src/lexicon/types/com/atproto/admin/{getModerationActions.ts → queryModerationEvents.ts} +8 -1
  89. package/src/lexicon/types/com/atproto/admin/{getModerationReports.ts → queryModerationStatuses.ts} +21 -14
  90. package/src/lexicon/types/com/atproto/admin/sendEmail.ts +1 -0
  91. package/src/migrate-moderation-data.ts +414 -0
  92. package/src/services/actor/views.ts +5 -14
  93. package/src/services/feed/index.ts +26 -7
  94. package/src/services/feed/util.ts +47 -19
  95. package/src/services/feed/views.ts +68 -4
  96. package/src/services/graph/index.ts +21 -3
  97. package/src/services/graph/types.ts +1 -0
  98. package/src/services/indexing/plugins/block.ts +2 -3
  99. package/src/services/indexing/plugins/feed-generator.ts +2 -3
  100. package/src/services/indexing/plugins/follow.ts +2 -3
  101. package/src/services/indexing/plugins/like.ts +2 -3
  102. package/src/services/indexing/plugins/list-block.ts +2 -3
  103. package/src/services/indexing/plugins/list-item.ts +2 -3
  104. package/src/services/indexing/plugins/list.ts +2 -3
  105. package/src/services/indexing/plugins/post.ts +3 -4
  106. package/src/services/indexing/plugins/repost.ts +2 -3
  107. package/src/services/indexing/plugins/thread-gate.ts +2 -3
  108. package/src/services/label/index.ts +2 -3
  109. package/src/services/moderation/index.ts +380 -395
  110. package/src/services/moderation/pagination.ts +96 -0
  111. package/src/services/moderation/status.ts +244 -0
  112. package/src/services/moderation/types.ts +49 -0
  113. package/src/services/moderation/views.ts +278 -329
  114. package/src/util/debug.ts +2 -2
  115. package/tests/__snapshots__/feed-generation.test.ts.snap +322 -6
  116. package/tests/__snapshots__/indexing.test.ts.snap +0 -6
  117. package/tests/admin/__snapshots__/get-record.test.ts.snap +30 -132
  118. package/tests/admin/__snapshots__/get-repo.test.ts.snap +14 -60
  119. package/tests/admin/__snapshots__/moderation-events.test.ts.snap +146 -0
  120. package/tests/admin/__snapshots__/moderation-statuses.test.ts.snap +64 -0
  121. package/tests/admin/__snapshots__/moderation.test.ts.snap +0 -125
  122. package/tests/admin/get-record.test.ts +5 -9
  123. package/tests/admin/get-repo.test.ts +5 -9
  124. package/tests/admin/moderation-events.test.ts +221 -0
  125. package/tests/admin/moderation-statuses.test.ts +145 -0
  126. package/tests/admin/moderation.test.ts +512 -860
  127. package/tests/admin/repo-search.test.ts +2 -3
  128. package/tests/auto-moderator/fuzzy-matcher.test.ts +2 -1
  129. package/tests/auto-moderator/takedowns.test.ts +45 -18
  130. package/tests/feed-generation.test.ts +57 -9
  131. package/tests/views/__snapshots__/block-lists.test.ts.snap +3 -9
  132. package/tests/views/__snapshots__/blocks.test.ts.snap +0 -9
  133. package/tests/views/__snapshots__/mute-lists.test.ts.snap +5 -5
  134. package/tests/views/__snapshots__/mutes.test.ts.snap +0 -3
  135. package/tests/views/__snapshots__/thread.test.ts.snap +0 -30
  136. package/tests/views/actor-search.test.ts +2 -3
  137. package/tests/views/author-feed.test.ts +42 -36
  138. package/tests/views/follows.test.ts +40 -35
  139. package/tests/views/list-feed.test.ts +17 -9
  140. package/tests/views/notifications.test.ts +13 -9
  141. package/tests/views/profile.test.ts +20 -18
  142. package/tests/views/thread.test.ts +54 -26
  143. package/tests/views/threadgating.test.ts +51 -19
  144. package/tests/views/timeline.test.ts +21 -13
  145. package/dist/api/com/atproto/admin/resolveModerationReports.d.ts +0 -3
  146. package/dist/api/com/atproto/admin/reverseModerationAction.d.ts +0 -3
  147. package/dist/api/com/atproto/admin/takeModerationAction.d.ts +0 -3
  148. package/dist/lexicon/types/com/atproto/admin/getModerationReport.d.ts +0 -29
  149. package/dist/lexicon/types/com/atproto/admin/resolveModerationReports.d.ts +0 -36
  150. package/dist/lexicon/types/com/atproto/admin/reverseModerationAction.d.ts +0 -36
  151. package/src/api/com/atproto/admin/getModerationAction.ts +0 -44
  152. package/src/api/com/atproto/admin/getModerationReport.ts +0 -43
  153. package/src/api/com/atproto/admin/resolveModerationReports.ts +0 -24
  154. package/src/api/com/atproto/admin/reverseModerationAction.ts +0 -115
  155. package/src/api/com/atproto/admin/takeModerationAction.ts +0 -156
  156. package/src/lexicon/types/com/atproto/admin/getModerationAction.ts +0 -41
  157. package/src/lexicon/types/com/atproto/admin/resolveModerationReports.ts +0 -49
  158. package/src/lexicon/types/com/atproto/admin/reverseModerationAction.ts +0 -49
  159. package/tests/admin/__snapshots__/get-moderation-action.test.ts.snap +0 -172
  160. package/tests/admin/__snapshots__/get-moderation-actions.test.ts.snap +0 -178
  161. package/tests/admin/__snapshots__/get-moderation-report.test.ts.snap +0 -177
  162. package/tests/admin/__snapshots__/get-moderation-reports.test.ts.snap +0 -307
  163. package/tests/admin/get-moderation-action.test.ts +0 -100
  164. package/tests/admin/get-moderation-actions.test.ts +0 -164
  165. package/tests/admin/get-moderation-report.test.ts +0 -100
  166. package/tests/admin/get-moderation-reports.test.ts +0 -332
  167. /package/dist/api/com/atproto/admin/{getModerationAction.d.ts → emitModerationEvent.d.ts} +0 -0
  168. /package/dist/api/com/atproto/admin/{getModerationActions.d.ts → getModerationEvent.d.ts} +0 -0
  169. /package/dist/api/com/atproto/admin/{getModerationReport.d.ts → queryModerationEvents.d.ts} +0 -0
  170. /package/dist/api/com/atproto/admin/{getModerationReports.d.ts → queryModerationStatuses.d.ts} +0 -0
@@ -16,20 +16,16 @@ export declare const schemaDict: {
16
16
  };
17
17
  };
18
18
  };
19
- actionView: {
19
+ modEventView: {
20
20
  type: string;
21
21
  required: string[];
22
22
  properties: {
23
23
  id: {
24
24
  type: string;
25
25
  };
26
- action: {
26
+ event: {
27
27
  type: string;
28
- ref: string;
29
- };
30
- durationInHours: {
31
- type: string;
32
- description: string;
28
+ refs: string[];
33
29
  };
34
30
  subject: {
35
31
  type: string;
@@ -41,21 +37,6 @@ export declare const schemaDict: {
41
37
  type: string;
42
38
  };
43
39
  };
44
- createLabelVals: {
45
- type: string;
46
- items: {
47
- type: string;
48
- };
49
- };
50
- negateLabelVals: {
51
- type: string;
52
- items: {
53
- type: string;
54
- };
55
- };
56
- reason: {
57
- type: string;
58
- };
59
40
  createdBy: {
60
41
  type: string;
61
42
  format: string;
@@ -64,32 +45,24 @@ export declare const schemaDict: {
64
45
  type: string;
65
46
  format: string;
66
47
  };
67
- reversal: {
48
+ creatorHandle: {
68
49
  type: string;
69
- ref: string;
70
50
  };
71
- resolvedReportIds: {
51
+ subjectHandle: {
72
52
  type: string;
73
- items: {
74
- type: string;
75
- };
76
53
  };
77
54
  };
78
55
  };
79
- actionViewDetail: {
56
+ modEventViewDetail: {
80
57
  type: string;
81
58
  required: string[];
82
59
  properties: {
83
60
  id: {
84
61
  type: string;
85
62
  };
86
- action: {
63
+ event: {
87
64
  type: string;
88
- ref: string;
89
- };
90
- durationInHours: {
91
- type: string;
92
- description: string;
65
+ refs: string[];
93
66
  };
94
67
  subject: {
95
68
  type: string;
@@ -102,130 +75,114 @@ export declare const schemaDict: {
102
75
  ref: string;
103
76
  };
104
77
  };
105
- createLabelVals: {
78
+ createdBy: {
106
79
  type: string;
107
- items: {
108
- type: string;
109
- };
80
+ format: string;
110
81
  };
111
- negateLabelVals: {
82
+ createdAt: {
112
83
  type: string;
113
- items: {
114
- type: string;
115
- };
84
+ format: string;
116
85
  };
117
- reason: {
86
+ };
87
+ };
88
+ reportView: {
89
+ type: string;
90
+ required: string[];
91
+ properties: {
92
+ id: {
118
93
  type: string;
119
94
  };
120
- createdBy: {
95
+ reasonType: {
121
96
  type: string;
122
- format: string;
97
+ ref: string;
123
98
  };
124
- createdAt: {
99
+ comment: {
100
+ type: string;
101
+ };
102
+ subjectRepoHandle: {
103
+ type: string;
104
+ };
105
+ subject: {
106
+ type: string;
107
+ refs: string[];
108
+ };
109
+ reportedBy: {
125
110
  type: string;
126
111
  format: string;
127
112
  };
128
- reversal: {
113
+ createdAt: {
129
114
  type: string;
130
- ref: string;
115
+ format: string;
131
116
  };
132
- resolvedReports: {
117
+ resolvedByActionIds: {
133
118
  type: string;
134
119
  items: {
135
120
  type: string;
136
- ref: string;
137
121
  };
138
122
  };
139
123
  };
140
124
  };
141
- actionViewCurrent: {
125
+ subjectStatusView: {
142
126
  type: string;
143
127
  required: string[];
144
128
  properties: {
145
129
  id: {
146
130
  type: string;
147
131
  };
148
- action: {
132
+ subject: {
149
133
  type: string;
150
- ref: string;
134
+ refs: string[];
151
135
  };
152
- durationInHours: {
136
+ subjectBlobCids: {
153
137
  type: string;
154
- description: string;
138
+ items: {
139
+ type: string;
140
+ format: string;
141
+ };
155
142
  };
156
- };
157
- };
158
- actionReversal: {
159
- type: string;
160
- required: string[];
161
- properties: {
162
- reason: {
143
+ subjectRepoHandle: {
163
144
  type: string;
164
145
  };
165
- createdBy: {
146
+ updatedAt: {
166
147
  type: string;
167
148
  format: string;
149
+ description: string;
168
150
  };
169
151
  createdAt: {
170
152
  type: string;
171
153
  format: string;
154
+ description: string;
172
155
  };
173
- };
174
- };
175
- actionType: {
176
- type: string;
177
- knownValues: string[];
178
- };
179
- takedown: {
180
- type: string;
181
- description: string;
182
- };
183
- flag: {
184
- type: string;
185
- description: string;
186
- };
187
- acknowledge: {
188
- type: string;
189
- description: string;
190
- };
191
- escalate: {
192
- type: string;
193
- description: string;
194
- };
195
- reportView: {
196
- type: string;
197
- required: string[];
198
- properties: {
199
- id: {
200
- type: string;
201
- };
202
- reasonType: {
156
+ reviewState: {
203
157
  type: string;
204
158
  ref: string;
205
159
  };
206
- reason: {
160
+ comment: {
207
161
  type: string;
162
+ description: string;
208
163
  };
209
- subjectRepoHandle: {
164
+ muteUntil: {
210
165
  type: string;
166
+ format: string;
211
167
  };
212
- subject: {
168
+ lastReviewedBy: {
213
169
  type: string;
214
- refs: string[];
170
+ format: string;
215
171
  };
216
- reportedBy: {
172
+ lastReviewedAt: {
217
173
  type: string;
218
174
  format: string;
219
175
  };
220
- createdAt: {
176
+ lastReportedAt: {
221
177
  type: string;
222
178
  format: string;
223
179
  };
224
- resolvedByActionIds: {
180
+ takendown: {
225
181
  type: string;
226
- items: {
227
- type: string;
228
- };
182
+ };
183
+ suspendUntil: {
184
+ type: string;
185
+ format: string;
229
186
  };
230
187
  };
231
188
  };
@@ -240,13 +197,17 @@ export declare const schemaDict: {
240
197
  type: string;
241
198
  ref: string;
242
199
  };
243
- reason: {
200
+ comment: {
244
201
  type: string;
245
202
  };
246
203
  subject: {
247
204
  type: string;
248
205
  refs: string[];
249
206
  };
207
+ subjectStatus: {
208
+ type: string;
209
+ ref: string;
210
+ };
250
211
  reportedBy: {
251
212
  type: string;
252
213
  format: string;
@@ -536,7 +497,7 @@ export declare const schemaDict: {
536
497
  moderation: {
537
498
  type: string;
538
499
  properties: {
539
- currentAction: {
500
+ subjectStatus: {
540
501
  type: string;
541
502
  ref: string;
542
503
  };
@@ -544,26 +505,11 @@ export declare const schemaDict: {
544
505
  };
545
506
  moderationDetail: {
546
507
  type: string;
547
- required: string[];
548
508
  properties: {
549
- currentAction: {
509
+ subjectStatus: {
550
510
  type: string;
551
511
  ref: string;
552
512
  };
553
- actions: {
554
- type: string;
555
- items: {
556
- type: string;
557
- ref: string;
558
- };
559
- };
560
- reports: {
561
- type: string;
562
- items: {
563
- type: string;
564
- ref: string;
565
- };
566
- };
567
513
  };
568
514
  };
569
515
  blobView: {
@@ -621,6 +567,146 @@ export declare const schemaDict: {
621
567
  };
622
568
  };
623
569
  };
570
+ subjectReviewState: {
571
+ type: string;
572
+ knownValues: string[];
573
+ };
574
+ reviewOpen: {
575
+ type: string;
576
+ description: string;
577
+ };
578
+ reviewEscalated: {
579
+ type: string;
580
+ description: string;
581
+ };
582
+ reviewClosed: {
583
+ type: string;
584
+ description: string;
585
+ };
586
+ modEventTakedown: {
587
+ type: string;
588
+ description: string;
589
+ properties: {
590
+ comment: {
591
+ type: string;
592
+ };
593
+ durationInHours: {
594
+ type: string;
595
+ description: string;
596
+ };
597
+ };
598
+ };
599
+ modEventReverseTakedown: {
600
+ type: string;
601
+ description: string;
602
+ properties: {
603
+ comment: {
604
+ type: string;
605
+ description: string;
606
+ };
607
+ };
608
+ };
609
+ modEventComment: {
610
+ type: string;
611
+ description: string;
612
+ required: string[];
613
+ properties: {
614
+ comment: {
615
+ type: string;
616
+ };
617
+ sticky: {
618
+ type: string;
619
+ description: string;
620
+ };
621
+ };
622
+ };
623
+ modEventReport: {
624
+ type: string;
625
+ description: string;
626
+ required: string[];
627
+ properties: {
628
+ comment: {
629
+ type: string;
630
+ };
631
+ reportType: {
632
+ type: string;
633
+ ref: string;
634
+ };
635
+ };
636
+ };
637
+ modEventLabel: {
638
+ type: string;
639
+ description: string;
640
+ required: string[];
641
+ properties: {
642
+ comment: {
643
+ type: string;
644
+ };
645
+ createLabelVals: {
646
+ type: string;
647
+ items: {
648
+ type: string;
649
+ };
650
+ };
651
+ negateLabelVals: {
652
+ type: string;
653
+ items: {
654
+ type: string;
655
+ };
656
+ };
657
+ };
658
+ };
659
+ modEventAcknowledge: {
660
+ type: string;
661
+ properties: {
662
+ comment: {
663
+ type: string;
664
+ };
665
+ };
666
+ };
667
+ modEventEscalate: {
668
+ type: string;
669
+ properties: {
670
+ comment: {
671
+ type: string;
672
+ };
673
+ };
674
+ };
675
+ modEventMute: {
676
+ type: string;
677
+ description: string;
678
+ required: string[];
679
+ properties: {
680
+ comment: {
681
+ type: string;
682
+ };
683
+ durationInHours: {
684
+ type: string;
685
+ description: string;
686
+ };
687
+ };
688
+ };
689
+ modEventUnmute: {
690
+ type: string;
691
+ description: string;
692
+ properties: {
693
+ comment: {
694
+ type: string;
695
+ description: string;
696
+ };
697
+ };
698
+ };
699
+ modEventEmail: {
700
+ type: string;
701
+ description: string;
702
+ required: string[];
703
+ properties: {
704
+ subjectLine: {
705
+ type: string;
706
+ description: string;
707
+ };
708
+ };
709
+ };
624
710
  };
625
711
  };
626
712
  ComAtprotoAdminDisableAccountInvites: {
@@ -680,7 +766,7 @@ export declare const schemaDict: {
680
766
  };
681
767
  };
682
768
  };
683
- ComAtprotoAdminEnableAccountInvites: {
769
+ ComAtprotoAdminEmitModerationEvent: {
684
770
  lexicon: number;
685
771
  id: string;
686
772
  defs: {
@@ -693,108 +779,25 @@ export declare const schemaDict: {
693
779
  type: string;
694
780
  required: string[];
695
781
  properties: {
696
- account: {
697
- type: string;
698
- format: string;
699
- };
700
- note: {
782
+ event: {
701
783
  type: string;
702
- description: string;
784
+ refs: string[];
703
785
  };
704
- };
705
- };
706
- };
707
- };
708
- };
709
- };
710
- ComAtprotoAdminGetAccountInfo: {
711
- lexicon: number;
712
- id: string;
713
- defs: {
714
- main: {
715
- type: string;
716
- description: string;
717
- parameters: {
718
- type: string;
719
- required: string[];
720
- properties: {
721
- did: {
722
- type: string;
723
- format: string;
724
- };
725
- };
726
- };
727
- output: {
728
- encoding: string;
729
- schema: {
730
- type: string;
731
- ref: string;
732
- };
733
- };
734
- };
735
- };
736
- };
737
- ComAtprotoAdminGetInviteCodes: {
738
- lexicon: number;
739
- id: string;
740
- defs: {
741
- main: {
742
- type: string;
743
- description: string;
744
- parameters: {
745
- type: string;
746
- properties: {
747
- sort: {
748
- type: string;
749
- knownValues: string[];
750
- default: string;
751
- };
752
- limit: {
753
- type: string;
754
- minimum: number;
755
- maximum: number;
756
- default: number;
757
- };
758
- cursor: {
759
- type: string;
760
- };
761
- };
762
- };
763
- output: {
764
- encoding: string;
765
- schema: {
766
- type: string;
767
- required: string[];
768
- properties: {
769
- cursor: {
786
+ subject: {
770
787
  type: string;
788
+ refs: string[];
771
789
  };
772
- codes: {
790
+ subjectBlobCids: {
773
791
  type: string;
774
792
  items: {
775
793
  type: string;
776
- ref: string;
794
+ format: string;
777
795
  };
778
796
  };
779
- };
780
- };
781
- };
782
- };
783
- };
784
- };
785
- ComAtprotoAdminGetModerationAction: {
786
- lexicon: number;
787
- id: string;
788
- defs: {
789
- main: {
790
- type: string;
791
- description: string;
792
- parameters: {
793
- type: string;
794
- required: string[];
795
- properties: {
796
- id: {
797
- type: string;
797
+ createdBy: {
798
+ type: string;
799
+ format: string;
800
+ };
798
801
  };
799
802
  };
800
803
  };
@@ -805,48 +808,32 @@ export declare const schemaDict: {
805
808
  ref: string;
806
809
  };
807
810
  };
811
+ errors: {
812
+ name: string;
813
+ }[];
808
814
  };
809
815
  };
810
816
  };
811
- ComAtprotoAdminGetModerationActions: {
817
+ ComAtprotoAdminEnableAccountInvites: {
812
818
  lexicon: number;
813
819
  id: string;
814
820
  defs: {
815
821
  main: {
816
822
  type: string;
817
823
  description: string;
818
- parameters: {
819
- type: string;
820
- properties: {
821
- subject: {
822
- type: string;
823
- };
824
- limit: {
825
- type: string;
826
- minimum: number;
827
- maximum: number;
828
- default: number;
829
- };
830
- cursor: {
831
- type: string;
832
- };
833
- };
834
- };
835
- output: {
824
+ input: {
836
825
  encoding: string;
837
826
  schema: {
838
827
  type: string;
839
828
  required: string[];
840
829
  properties: {
841
- cursor: {
830
+ account: {
842
831
  type: string;
832
+ format: string;
843
833
  };
844
- actions: {
834
+ note: {
845
835
  type: string;
846
- items: {
847
- type: string;
848
- ref: string;
849
- };
836
+ description: string;
850
837
  };
851
838
  };
852
839
  };
@@ -854,7 +841,7 @@ export declare const schemaDict: {
854
841
  };
855
842
  };
856
843
  };
857
- ComAtprotoAdminGetModerationReport: {
844
+ ComAtprotoAdminGetAccountInfo: {
858
845
  lexicon: number;
859
846
  id: string;
860
847
  defs: {
@@ -865,8 +852,9 @@ export declare const schemaDict: {
865
852
  type: string;
866
853
  required: string[];
867
854
  properties: {
868
- id: {
855
+ did: {
869
856
  type: string;
857
+ format: string;
870
858
  };
871
859
  };
872
860
  };
@@ -880,43 +868,20 @@ export declare const schemaDict: {
880
868
  };
881
869
  };
882
870
  };
883
- ComAtprotoAdminGetModerationReports: {
884
- lexicon: number;
885
- id: string;
886
- defs: {
887
- main: {
888
- type: string;
889
- description: string;
890
- parameters: {
891
- type: string;
892
- properties: {
893
- subject: {
894
- type: string;
895
- };
896
- ignoreSubjects: {
897
- type: string;
898
- items: {
899
- type: string;
900
- };
901
- };
902
- actionedBy: {
903
- type: string;
904
- format: string;
905
- description: string;
906
- };
907
- reporters: {
908
- type: string;
909
- items: {
910
- type: string;
911
- };
912
- description: string;
913
- };
914
- resolved: {
915
- type: string;
916
- };
917
- actionType: {
871
+ ComAtprotoAdminGetInviteCodes: {
872
+ lexicon: number;
873
+ id: string;
874
+ defs: {
875
+ main: {
876
+ type: string;
877
+ description: string;
878
+ parameters: {
879
+ type: string;
880
+ properties: {
881
+ sort: {
918
882
  type: string;
919
883
  knownValues: string[];
884
+ default: string;
920
885
  };
921
886
  limit: {
922
887
  type: string;
@@ -927,10 +892,6 @@ export declare const schemaDict: {
927
892
  cursor: {
928
893
  type: string;
929
894
  };
930
- reverse: {
931
- type: string;
932
- description: string;
933
- };
934
895
  };
935
896
  };
936
897
  output: {
@@ -942,7 +903,7 @@ export declare const schemaDict: {
942
903
  cursor: {
943
904
  type: string;
944
905
  };
945
- reports: {
906
+ codes: {
946
907
  type: string;
947
908
  items: {
948
909
  type: string;
@@ -955,6 +916,32 @@ export declare const schemaDict: {
955
916
  };
956
917
  };
957
918
  };
919
+ ComAtprotoAdminGetModerationEvent: {
920
+ lexicon: number;
921
+ id: string;
922
+ defs: {
923
+ main: {
924
+ type: string;
925
+ description: string;
926
+ parameters: {
927
+ type: string;
928
+ required: string[];
929
+ properties: {
930
+ id: {
931
+ type: string;
932
+ };
933
+ };
934
+ };
935
+ output: {
936
+ encoding: string;
937
+ schema: {
938
+ type: string;
939
+ ref: string;
940
+ };
941
+ };
942
+ };
943
+ };
944
+ };
958
945
  ComAtprotoAdminGetRecord: {
959
946
  lexicon: number;
960
947
  id: string;
@@ -1063,76 +1050,175 @@ export declare const schemaDict: {
1063
1050
  };
1064
1051
  };
1065
1052
  };
1066
- ComAtprotoAdminResolveModerationReports: {
1053
+ ComAtprotoAdminQueryModerationEvents: {
1067
1054
  lexicon: number;
1068
1055
  id: string;
1069
1056
  defs: {
1070
1057
  main: {
1071
1058
  type: string;
1072
1059
  description: string;
1073
- input: {
1060
+ parameters: {
1061
+ type: string;
1062
+ properties: {
1063
+ types: {
1064
+ type: string;
1065
+ items: {
1066
+ type: string;
1067
+ };
1068
+ description: string;
1069
+ };
1070
+ createdBy: {
1071
+ type: string;
1072
+ format: string;
1073
+ };
1074
+ sortDirection: {
1075
+ type: string;
1076
+ default: string;
1077
+ enum: string[];
1078
+ description: string;
1079
+ };
1080
+ subject: {
1081
+ type: string;
1082
+ format: string;
1083
+ };
1084
+ includeAllUserRecords: {
1085
+ type: string;
1086
+ default: boolean;
1087
+ description: string;
1088
+ };
1089
+ limit: {
1090
+ type: string;
1091
+ minimum: number;
1092
+ maximum: number;
1093
+ default: number;
1094
+ };
1095
+ cursor: {
1096
+ type: string;
1097
+ };
1098
+ };
1099
+ };
1100
+ output: {
1074
1101
  encoding: string;
1075
1102
  schema: {
1076
1103
  type: string;
1077
1104
  required: string[];
1078
1105
  properties: {
1079
- actionId: {
1106
+ cursor: {
1080
1107
  type: string;
1081
1108
  };
1082
- reportIds: {
1109
+ events: {
1083
1110
  type: string;
1084
1111
  items: {
1085
1112
  type: string;
1113
+ ref: string;
1086
1114
  };
1087
1115
  };
1088
- createdBy: {
1089
- type: string;
1090
- format: string;
1091
- };
1092
1116
  };
1093
1117
  };
1094
1118
  };
1095
- output: {
1096
- encoding: string;
1097
- schema: {
1098
- type: string;
1099
- ref: string;
1100
- };
1101
- };
1102
1119
  };
1103
1120
  };
1104
1121
  };
1105
- ComAtprotoAdminReverseModerationAction: {
1122
+ ComAtprotoAdminQueryModerationStatuses: {
1106
1123
  lexicon: number;
1107
1124
  id: string;
1108
1125
  defs: {
1109
1126
  main: {
1110
1127
  type: string;
1111
1128
  description: string;
1112
- input: {
1113
- encoding: string;
1114
- schema: {
1115
- type: string;
1116
- required: string[];
1117
- properties: {
1118
- id: {
1119
- type: string;
1120
- };
1121
- reason: {
1122
- type: string;
1123
- };
1124
- createdBy: {
1129
+ parameters: {
1130
+ type: string;
1131
+ properties: {
1132
+ subject: {
1133
+ type: string;
1134
+ format: string;
1135
+ };
1136
+ comment: {
1137
+ type: string;
1138
+ description: string;
1139
+ };
1140
+ reportedAfter: {
1141
+ type: string;
1142
+ format: string;
1143
+ description: string;
1144
+ };
1145
+ reportedBefore: {
1146
+ type: string;
1147
+ format: string;
1148
+ description: string;
1149
+ };
1150
+ reviewedAfter: {
1151
+ type: string;
1152
+ format: string;
1153
+ description: string;
1154
+ };
1155
+ reviewedBefore: {
1156
+ type: string;
1157
+ format: string;
1158
+ description: string;
1159
+ };
1160
+ includeMuted: {
1161
+ type: string;
1162
+ description: string;
1163
+ };
1164
+ reviewState: {
1165
+ type: string;
1166
+ description: string;
1167
+ };
1168
+ ignoreSubjects: {
1169
+ type: string;
1170
+ items: {
1125
1171
  type: string;
1126
1172
  format: string;
1127
1173
  };
1128
1174
  };
1175
+ lastReviewedBy: {
1176
+ type: string;
1177
+ format: string;
1178
+ description: string;
1179
+ };
1180
+ sortField: {
1181
+ type: string;
1182
+ default: string;
1183
+ enum: string[];
1184
+ };
1185
+ sortDirection: {
1186
+ type: string;
1187
+ default: string;
1188
+ enum: string[];
1189
+ };
1190
+ takendown: {
1191
+ type: string;
1192
+ description: string;
1193
+ };
1194
+ limit: {
1195
+ type: string;
1196
+ minimum: number;
1197
+ maximum: number;
1198
+ default: number;
1199
+ };
1200
+ cursor: {
1201
+ type: string;
1202
+ };
1129
1203
  };
1130
1204
  };
1131
1205
  output: {
1132
1206
  encoding: string;
1133
1207
  schema: {
1134
1208
  type: string;
1135
- ref: string;
1209
+ required: string[];
1210
+ properties: {
1211
+ cursor: {
1212
+ type: string;
1213
+ };
1214
+ subjectStatuses: {
1215
+ type: string;
1216
+ items: {
1217
+ type: string;
1218
+ ref: string;
1219
+ };
1220
+ };
1221
+ };
1136
1222
  };
1137
1223
  };
1138
1224
  };
@@ -1211,88 +1297,25 @@ export declare const schemaDict: {
1211
1297
  subject: {
1212
1298
  type: string;
1213
1299
  };
1214
- };
1215
- };
1216
- };
1217
- output: {
1218
- encoding: string;
1219
- schema: {
1220
- type: string;
1221
- required: string[];
1222
- properties: {
1223
- sent: {
1300
+ senderDid: {
1224
1301
  type: string;
1302
+ format: string;
1225
1303
  };
1226
1304
  };
1227
1305
  };
1228
1306
  };
1229
- };
1230
- };
1231
- };
1232
- ComAtprotoAdminTakeModerationAction: {
1233
- lexicon: number;
1234
- id: string;
1235
- defs: {
1236
- main: {
1237
- type: string;
1238
- description: string;
1239
- input: {
1307
+ output: {
1240
1308
  encoding: string;
1241
1309
  schema: {
1242
1310
  type: string;
1243
1311
  required: string[];
1244
1312
  properties: {
1245
- action: {
1246
- type: string;
1247
- knownValues: string[];
1248
- };
1249
- subject: {
1250
- type: string;
1251
- refs: string[];
1252
- };
1253
- subjectBlobCids: {
1254
- type: string;
1255
- items: {
1256
- type: string;
1257
- format: string;
1258
- };
1259
- };
1260
- createLabelVals: {
1261
- type: string;
1262
- items: {
1263
- type: string;
1264
- };
1265
- };
1266
- negateLabelVals: {
1267
- type: string;
1268
- items: {
1269
- type: string;
1270
- };
1271
- };
1272
- reason: {
1273
- type: string;
1274
- };
1275
- durationInHours: {
1276
- type: string;
1277
- description: string;
1278
- };
1279
- createdBy: {
1313
+ sent: {
1280
1314
  type: string;
1281
- format: string;
1282
1315
  };
1283
1316
  };
1284
1317
  };
1285
1318
  };
1286
- output: {
1287
- encoding: string;
1288
- schema: {
1289
- type: string;
1290
- ref: string;
1291
- };
1292
- };
1293
- errors: {
1294
- name: string;
1295
- }[];
1296
1319
  };
1297
1320
  };
1298
1321
  };
@@ -4555,6 +4578,9 @@ export declare const schemaDict: {
4555
4578
  type: string;
4556
4579
  format: string;
4557
4580
  };
4581
+ replyDisabled: {
4582
+ type: string;
4583
+ };
4558
4584
  };
4559
4585
  };
4560
4586
  feedViewPost: {
@@ -4622,10 +4648,6 @@ export declare const schemaDict: {
4622
4648
  refs: string[];
4623
4649
  };
4624
4650
  };
4625
- viewer: {
4626
- type: string;
4627
- ref: string;
4628
- };
4629
4651
  };
4630
4652
  };
4631
4653
  notFoundPost: {
@@ -4674,14 +4696,6 @@ export declare const schemaDict: {
4674
4696
  };
4675
4697
  };
4676
4698
  };
4677
- viewerThreadState: {
4678
- type: string;
4679
- properties: {
4680
- canReply: {
4681
- type: string;
4682
- };
4683
- };
4684
- };
4685
4699
  generatorView: {
4686
4700
  type: string;
4687
4701
  required: string[];
@@ -5994,6 +6008,10 @@ export declare const schemaDict: {
5994
6008
  type: string;
5995
6009
  required: string[];
5996
6010
  properties: {
6011
+ uri: {
6012
+ type: string;
6013
+ format: string;
6014
+ };
5997
6015
  subject: {
5998
6016
  type: string;
5999
6017
  ref: string;
@@ -7198,21 +7216,18 @@ export declare const ids: {
7198
7216
  ComAtprotoAdminDefs: string;
7199
7217
  ComAtprotoAdminDisableAccountInvites: string;
7200
7218
  ComAtprotoAdminDisableInviteCodes: string;
7219
+ ComAtprotoAdminEmitModerationEvent: string;
7201
7220
  ComAtprotoAdminEnableAccountInvites: string;
7202
7221
  ComAtprotoAdminGetAccountInfo: string;
7203
7222
  ComAtprotoAdminGetInviteCodes: string;
7204
- ComAtprotoAdminGetModerationAction: string;
7205
- ComAtprotoAdminGetModerationActions: string;
7206
- ComAtprotoAdminGetModerationReport: string;
7207
- ComAtprotoAdminGetModerationReports: string;
7223
+ ComAtprotoAdminGetModerationEvent: string;
7208
7224
  ComAtprotoAdminGetRecord: string;
7209
7225
  ComAtprotoAdminGetRepo: string;
7210
7226
  ComAtprotoAdminGetSubjectStatus: string;
7211
- ComAtprotoAdminResolveModerationReports: string;
7212
- ComAtprotoAdminReverseModerationAction: string;
7227
+ ComAtprotoAdminQueryModerationEvents: string;
7228
+ ComAtprotoAdminQueryModerationStatuses: string;
7213
7229
  ComAtprotoAdminSearchRepos: string;
7214
7230
  ComAtprotoAdminSendEmail: string;
7215
- ComAtprotoAdminTakeModerationAction: string;
7216
7231
  ComAtprotoAdminUpdateAccountEmail: string;
7217
7232
  ComAtprotoAdminUpdateAccountHandle: string;
7218
7233
  ComAtprotoAdminUpdateSubjectStatus: string;