@atproto/api 0.19.15 → 0.19.17

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 (143) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/client/index.d.ts +74 -3
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +178 -9
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +11272 -8116
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +1800 -128
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/chat/bsky/convo/listConvos.d.ts +2 -0
  11. package/dist/client/types/chat/bsky/convo/listConvos.d.ts.map +1 -1
  12. package/dist/client/types/chat/bsky/convo/listConvos.js.map +1 -1
  13. package/dist/client/types/chat/bsky/group/defs.d.ts +6 -4
  14. package/dist/client/types/chat/bsky/group/defs.d.ts.map +1 -1
  15. package/dist/client/types/chat/bsky/group/defs.js +7 -7
  16. package/dist/client/types/chat/bsky/group/defs.js.map +1 -1
  17. package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.d.ts → getJoinLinkPreview.d.ts} +2 -2
  18. package/dist/client/types/chat/bsky/group/getJoinLinkPreview.d.ts.map +1 -0
  19. package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.js → getJoinLinkPreview.js} +2 -2
  20. package/dist/client/types/chat/bsky/group/{getGroupPublicInfo.js.map → getJoinLinkPreview.js.map} +1 -1
  21. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +16 -0
  22. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  23. package/dist/client/types/tools/ozone/moderation/emitEvent.js +9 -0
  24. package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
  25. package/dist/client/types/tools/ozone/queue/assignModerator.d.ts +29 -0
  26. package/dist/client/types/tools/ozone/queue/assignModerator.d.ts.map +1 -0
  27. package/dist/client/types/tools/ozone/queue/assignModerator.js +26 -0
  28. package/dist/client/types/tools/ozone/queue/assignModerator.js.map +1 -0
  29. package/dist/client/types/tools/ozone/queue/createQueue.d.ts +37 -0
  30. package/dist/client/types/tools/ozone/queue/createQueue.d.ts.map +1 -0
  31. package/dist/client/types/tools/ozone/queue/createQueue.js +26 -0
  32. package/dist/client/types/tools/ozone/queue/createQueue.js.map +1 -0
  33. package/dist/client/types/tools/ozone/queue/defs.d.ts +62 -0
  34. package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -0
  35. package/dist/client/types/tools/ozone/queue/defs.js +34 -0
  36. package/dist/client/types/tools/ozone/queue/defs.js.map +1 -0
  37. package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts +29 -0
  38. package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts.map +1 -0
  39. package/dist/client/types/tools/ozone/queue/deleteQueue.js +11 -0
  40. package/dist/client/types/tools/ozone/queue/deleteQueue.js.map +1 -0
  41. package/dist/client/types/tools/ozone/queue/getAssignments.d.ts +31 -0
  42. package/dist/client/types/tools/ozone/queue/getAssignments.d.ts.map +1 -0
  43. package/dist/client/types/tools/ozone/queue/getAssignments.js +11 -0
  44. package/dist/client/types/tools/ozone/queue/getAssignments.js.map +1 -0
  45. package/dist/client/types/tools/ozone/queue/listQueues.d.ts +33 -0
  46. package/dist/client/types/tools/ozone/queue/listQueues.d.ts.map +1 -0
  47. package/dist/client/types/tools/ozone/queue/listQueues.js +11 -0
  48. package/dist/client/types/tools/ozone/queue/listQueues.js.map +1 -0
  49. package/dist/client/types/tools/ozone/queue/routeReports.d.ts +33 -0
  50. package/dist/client/types/tools/ozone/queue/routeReports.d.ts.map +1 -0
  51. package/dist/client/types/tools/ozone/queue/routeReports.js +26 -0
  52. package/dist/client/types/tools/ozone/queue/routeReports.js.map +1 -0
  53. package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts +26 -0
  54. package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts.map +1 -0
  55. package/dist/client/types/tools/ozone/queue/unassignModerator.js +26 -0
  56. package/dist/client/types/tools/ozone/queue/unassignModerator.js.map +1 -0
  57. package/dist/client/types/tools/ozone/queue/updateQueue.d.ts +32 -0
  58. package/dist/client/types/tools/ozone/queue/updateQueue.d.ts.map +1 -0
  59. package/dist/client/types/tools/ozone/queue/updateQueue.js +11 -0
  60. package/dist/client/types/tools/ozone/queue/updateQueue.js.map +1 -0
  61. package/dist/client/types/tools/ozone/report/assignModerator.d.ts +36 -0
  62. package/dist/client/types/tools/ozone/report/assignModerator.d.ts.map +1 -0
  63. package/dist/client/types/tools/ozone/report/assignModerator.js +34 -0
  64. package/dist/client/types/tools/ozone/report/assignModerator.js.map +1 -0
  65. package/dist/client/types/tools/ozone/report/createActivity.d.ts +45 -0
  66. package/dist/client/types/tools/ozone/report/createActivity.d.ts.map +1 -0
  67. package/dist/client/types/tools/ozone/report/createActivity.js +42 -0
  68. package/dist/client/types/tools/ozone/report/createActivity.js.map +1 -0
  69. package/dist/client/types/tools/ozone/report/defs.d.ts +185 -0
  70. package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
  71. package/dist/client/types/tools/ozone/report/defs.js +108 -0
  72. package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
  73. package/dist/client/types/tools/ozone/report/getAssignments.d.ts +31 -0
  74. package/dist/client/types/tools/ozone/report/getAssignments.d.ts.map +1 -0
  75. package/dist/client/types/tools/ozone/report/getAssignments.js +11 -0
  76. package/dist/client/types/tools/ozone/report/getAssignments.js.map +1 -0
  77. package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts +37 -0
  78. package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts.map +1 -0
  79. package/dist/client/types/tools/ozone/report/getHistoricalStats.js +11 -0
  80. package/dist/client/types/tools/ozone/report/getHistoricalStats.js.map +1 -0
  81. package/dist/client/types/tools/ozone/report/getLatestReport.d.ts +24 -0
  82. package/dist/client/types/tools/ozone/report/getLatestReport.d.ts.map +1 -0
  83. package/dist/client/types/tools/ozone/report/getLatestReport.js +26 -0
  84. package/dist/client/types/tools/ozone/report/getLatestReport.js.map +1 -0
  85. package/dist/client/types/tools/ozone/report/getLiveStats.d.ts +28 -0
  86. package/dist/client/types/tools/ozone/report/getLiveStats.d.ts.map +1 -0
  87. package/dist/client/types/tools/ozone/report/getLiveStats.js +11 -0
  88. package/dist/client/types/tools/ozone/report/getLiveStats.js.map +1 -0
  89. package/dist/client/types/tools/ozone/report/getReport.d.ts +25 -0
  90. package/dist/client/types/tools/ozone/report/getReport.d.ts.map +1 -0
  91. package/dist/client/types/tools/ozone/report/getReport.js +26 -0
  92. package/dist/client/types/tools/ozone/report/getReport.js.map +1 -0
  93. package/dist/client/types/tools/ozone/report/listActivities.d.ts +27 -0
  94. package/dist/client/types/tools/ozone/report/listActivities.d.ts.map +1 -0
  95. package/dist/client/types/tools/ozone/report/listActivities.js +11 -0
  96. package/dist/client/types/tools/ozone/report/listActivities.js.map +1 -0
  97. package/dist/client/types/tools/ozone/report/queryReports.d.ts +49 -0
  98. package/dist/client/types/tools/ozone/report/queryReports.d.ts.map +1 -0
  99. package/dist/client/types/tools/ozone/report/queryReports.js +11 -0
  100. package/dist/client/types/tools/ozone/report/queryReports.js.map +1 -0
  101. package/dist/client/types/tools/ozone/report/reassignQueue.d.ts +45 -0
  102. package/dist/client/types/tools/ozone/report/reassignQueue.d.ts.map +1 -0
  103. package/dist/client/types/tools/ozone/report/reassignQueue.js +58 -0
  104. package/dist/client/types/tools/ozone/report/reassignQueue.js.map +1 -0
  105. package/dist/client/types/tools/ozone/report/refreshStats.d.ts +28 -0
  106. package/dist/client/types/tools/ozone/report/refreshStats.d.ts.map +1 -0
  107. package/dist/client/types/tools/ozone/report/refreshStats.js +11 -0
  108. package/dist/client/types/tools/ozone/report/refreshStats.js.map +1 -0
  109. package/dist/client/types/tools/ozone/report/unassignModerator.d.ts +27 -0
  110. package/dist/client/types/tools/ozone/report/unassignModerator.d.ts.map +1 -0
  111. package/dist/client/types/tools/ozone/report/unassignModerator.js +26 -0
  112. package/dist/client/types/tools/ozone/report/unassignModerator.js.map +1 -0
  113. package/package.json +1 -1
  114. package/src/client/index.ts +300 -8
  115. package/src/client/lexicons.ts +1920 -164
  116. package/src/client/types/chat/bsky/convo/listConvos.ts +2 -0
  117. package/src/client/types/chat/bsky/group/defs.ts +9 -7
  118. package/src/client/types/chat/bsky/group/{getGroupPublicInfo.ts → getJoinLinkPreview.ts} +2 -2
  119. package/src/client/types/tools/ozone/moderation/emitEvent.ts +24 -0
  120. package/src/client/types/tools/ozone/queue/assignModerator.ts +55 -0
  121. package/src/client/types/tools/ozone/queue/createQueue.ts +63 -0
  122. package/src/client/types/tools/ozone/queue/defs.ts +99 -0
  123. package/src/client/types/tools/ozone/queue/deleteQueue.ts +48 -0
  124. package/src/client/types/tools/ozone/queue/getAssignments.ts +49 -0
  125. package/src/client/types/tools/ozone/queue/listQueues.ts +51 -0
  126. package/src/client/types/tools/ozone/queue/routeReports.ts +59 -0
  127. package/src/client/types/tools/ozone/queue/unassignModerator.ts +51 -0
  128. package/src/client/types/tools/ozone/queue/updateQueue.ts +51 -0
  129. package/src/client/types/tools/ozone/report/assignModerator.ts +66 -0
  130. package/src/client/types/tools/ozone/report/createActivity.ts +85 -0
  131. package/src/client/types/tools/ozone/report/defs.ts +327 -0
  132. package/src/client/types/tools/ozone/report/getAssignments.ts +49 -0
  133. package/src/client/types/tools/ozone/report/getHistoricalStats.ts +55 -0
  134. package/src/client/types/tools/ozone/report/getLatestReport.ts +49 -0
  135. package/src/client/types/tools/ozone/report/getLiveStats.ts +46 -0
  136. package/src/client/types/tools/ozone/report/getReport.ts +49 -0
  137. package/src/client/types/tools/ozone/report/listActivities.ts +45 -0
  138. package/src/client/types/tools/ozone/report/queryReports.ts +73 -0
  139. package/src/client/types/tools/ozone/report/reassignQueue.ts +88 -0
  140. package/src/client/types/tools/ozone/report/refreshStats.ts +46 -0
  141. package/src/client/types/tools/ozone/report/unassignModerator.ts +53 -0
  142. package/tsconfig.build.tsbuildinfo +1 -1
  143. package/dist/client/types/chat/bsky/group/getGroupPublicInfo.d.ts.map +0 -1
@@ -1,3 +1,12 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import { type $Typed } from '../../../../util';
6
+ import type * as ToolsOzoneTeamDefs from '../team/defs.js';
7
+ import type * as ToolsOzoneModerationDefs from '../moderation/defs.js';
8
+ import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js';
9
+ import type * as ToolsOzoneQueueDefs from '../queue/defs.js';
1
10
  export type ReasonType = 'tools.ozone.report.defs#reasonAppeal' | 'tools.ozone.report.defs#reasonOther' | 'tools.ozone.report.defs#reasonViolenceAnimal' | 'tools.ozone.report.defs#reasonViolenceThreats' | 'tools.ozone.report.defs#reasonViolenceGraphicContent' | 'tools.ozone.report.defs#reasonViolenceGlorification' | 'tools.ozone.report.defs#reasonViolenceExtremistContent' | 'tools.ozone.report.defs#reasonViolenceTrafficking' | 'tools.ozone.report.defs#reasonViolenceOther' | 'tools.ozone.report.defs#reasonSexualAbuseContent' | 'tools.ozone.report.defs#reasonSexualNCII' | 'tools.ozone.report.defs#reasonSexualDeepfake' | 'tools.ozone.report.defs#reasonSexualAnimal' | 'tools.ozone.report.defs#reasonSexualUnlabeled' | 'tools.ozone.report.defs#reasonSexualOther' | 'tools.ozone.report.defs#reasonChildSafetyCSAM' | 'tools.ozone.report.defs#reasonChildSafetyGroom' | 'tools.ozone.report.defs#reasonChildSafetyPrivacy' | 'tools.ozone.report.defs#reasonChildSafetyHarassment' | 'tools.ozone.report.defs#reasonChildSafetyOther' | 'tools.ozone.report.defs#reasonHarassmentTroll' | 'tools.ozone.report.defs#reasonHarassmentTargeted' | 'tools.ozone.report.defs#reasonHarassmentHateSpeech' | 'tools.ozone.report.defs#reasonHarassmentDoxxing' | 'tools.ozone.report.defs#reasonHarassmentOther' | 'tools.ozone.report.defs#reasonMisleadingBot' | 'tools.ozone.report.defs#reasonMisleadingImpersonation' | 'tools.ozone.report.defs#reasonMisleadingSpam' | 'tools.ozone.report.defs#reasonMisleadingScam' | 'tools.ozone.report.defs#reasonMisleadingElections' | 'tools.ozone.report.defs#reasonMisleadingOther' | 'tools.ozone.report.defs#reasonRuleSiteSecurity' | 'tools.ozone.report.defs#reasonRuleProhibitedSales' | 'tools.ozone.report.defs#reasonRuleBanEvasion' | 'tools.ozone.report.defs#reasonRuleOther' | 'tools.ozone.report.defs#reasonSelfHarmContent' | 'tools.ozone.report.defs#reasonSelfHarmED' | 'tools.ozone.report.defs#reasonSelfHarmStunts' | 'tools.ozone.report.defs#reasonSelfHarmSubstances' | 'tools.ozone.report.defs#reasonSelfHarmOther' | (string & {});
2
11
  /** Appeal a previously taken moderation action */
3
12
  export declare const REASONAPPEAL = "tools.ozone.report.defs#reasonAppeal";
@@ -79,4 +88,180 @@ export declare const REASONSELFHARMSTUNTS = "tools.ozone.report.defs#reasonSelfH
79
88
  export declare const REASONSELFHARMSUBSTANCES = "tools.ozone.report.defs#reasonSelfHarmSubstances";
80
89
  /** Other dangerous content */
81
90
  export declare const REASONSELFHARMOTHER = "tools.ozone.report.defs#reasonSelfHarmOther";
91
+ /** Information about the moderator currently assigned to a report. */
92
+ export interface ReportAssignment {
93
+ $type?: 'tools.ozone.report.defs#reportAssignment';
94
+ /** DID of the assigned moderator */
95
+ did: string;
96
+ moderator?: ToolsOzoneTeamDefs.Member;
97
+ /** When the report was assigned */
98
+ assignedAt: string;
99
+ }
100
+ export declare function isReportAssignment<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "reportAssignment">;
101
+ export declare function validateReportAssignment<V>(v: V): ValidationResult<ReportAssignment & V>;
102
+ export interface ReportView {
103
+ $type?: 'tools.ozone.report.defs#reportView';
104
+ /** Report ID */
105
+ id: number;
106
+ /** ID of the moderation event that created this report */
107
+ eventId: number;
108
+ /** Current status of the report */
109
+ status: 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {});
110
+ subject: ToolsOzoneModerationDefs.SubjectView;
111
+ reportType: ComAtprotoModerationDefs.ReasonType;
112
+ /** DID of the user who made the report */
113
+ reportedBy: string;
114
+ reporter: ToolsOzoneModerationDefs.SubjectView;
115
+ /** Comment provided by the reporter */
116
+ comment?: string;
117
+ /** When the report was created */
118
+ createdAt: string;
119
+ /** When the report was last updated */
120
+ updatedAt?: string;
121
+ /** When the report was assigned to its current queue */
122
+ queuedAt?: string;
123
+ /** Array of moderation event IDs representing actions taken on this report (sorted DESC, most recent first) */
124
+ actionEventIds?: number[];
125
+ /** Optional: expanded action events */
126
+ actions?: ToolsOzoneModerationDefs.ModEventView[];
127
+ /** Note sent to reporter when report was actioned */
128
+ actionNote?: string;
129
+ subjectStatus?: ToolsOzoneModerationDefs.SubjectStatusView;
130
+ /** Number of other pending reports on the same subject */
131
+ relatedReportCount?: number;
132
+ assignment?: ReportAssignment;
133
+ queue?: ToolsOzoneQueueDefs.QueueView;
134
+ /** Whether this report is muted. A report is muted if the reporter was muted or the subject was muted at the time the report was created. */
135
+ isMuted?: boolean;
136
+ }
137
+ export declare function isReportView<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "reportView">;
138
+ export declare function validateReportView<V>(v: V): ValidationResult<ReportView & V>;
139
+ /** Activity recording a report being routed to a queue. */
140
+ export interface QueueActivity {
141
+ $type?: 'tools.ozone.report.defs#queueActivity';
142
+ /** The report's status before this activity. Populated automatically from the report row; not required in input. */
143
+ previousStatus?: 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {});
144
+ }
145
+ export declare function isQueueActivity<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "queueActivity">;
146
+ export declare function validateQueueActivity<V>(v: V): ValidationResult<QueueActivity & V>;
147
+ /** Activity recording a moderator being assigned to a report. */
148
+ export interface AssignmentActivity {
149
+ $type?: 'tools.ozone.report.defs#assignmentActivity';
150
+ /** The report's status before this activity. Populated automatically from the report row; not required in input. */
151
+ previousStatus?: 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {});
152
+ }
153
+ export declare function isAssignmentActivity<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "assignmentActivity">;
154
+ export declare function validateAssignmentActivity<V>(v: V): ValidationResult<AssignmentActivity & V>;
155
+ /** Activity recording a report being escalated. */
156
+ export interface EscalationActivity {
157
+ $type?: 'tools.ozone.report.defs#escalationActivity';
158
+ /** The report's status before this activity. Populated automatically from the report row; not required in input. */
159
+ previousStatus?: 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {});
160
+ }
161
+ export declare function isEscalationActivity<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "escalationActivity">;
162
+ export declare function validateEscalationActivity<V>(v: V): ValidationResult<EscalationActivity & V>;
163
+ /** Activity recording a report being closed. */
164
+ export interface CloseActivity {
165
+ $type?: 'tools.ozone.report.defs#closeActivity';
166
+ /** The report's status before this activity. Populated automatically from the report row; not required in input. */
167
+ previousStatus?: 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {});
168
+ }
169
+ export declare function isCloseActivity<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "closeActivity">;
170
+ export declare function validateCloseActivity<V>(v: V): ValidationResult<CloseActivity & V>;
171
+ /** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */
172
+ export interface ReopenActivity {
173
+ $type?: 'tools.ozone.report.defs#reopenActivity';
174
+ /** The report's status before this activity. Populated automatically from the report row; not required in input. */
175
+ previousStatus?: 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {});
176
+ }
177
+ export declare function isReopenActivity<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "reopenActivity">;
178
+ export declare function validateReopenActivity<V>(v: V): ValidationResult<ReopenActivity & V>;
179
+ /** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */
180
+ export interface NoteActivity {
181
+ $type?: 'tools.ozone.report.defs#noteActivity';
182
+ }
183
+ export declare function isNoteActivity<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "noteActivity">;
184
+ export declare function validateNoteActivity<V>(v: V): ValidationResult<NoteActivity & V>;
185
+ /** A single activity entry on a report. */
186
+ export interface ReportActivityView {
187
+ $type?: 'tools.ozone.report.defs#reportActivityView';
188
+ /** Activity ID */
189
+ id: number;
190
+ /** ID of the report this activity belongs to */
191
+ reportId: number;
192
+ activity: $Typed<QueueActivity> | $Typed<AssignmentActivity> | $Typed<EscalationActivity> | $Typed<CloseActivity> | $Typed<ReopenActivity> | $Typed<NoteActivity> | {
193
+ $type: string;
194
+ };
195
+ /** Optional moderator-only note. Not visible to reporters. */
196
+ internalNote?: string;
197
+ /** Optional public note, potentially visible to the reporter. */
198
+ publicNote?: string;
199
+ /** Extensible JSON payload for loose activity-specific metadata (e.g. assignmentId). */
200
+ meta?: {
201
+ [_ in string]: unknown;
202
+ };
203
+ /** True if this activity was created by an automated process (e.g. queue router) rather than a direct human action. */
204
+ isAutomated: boolean;
205
+ /** DID of the actor who created this activity, or the service DID for automated activities. */
206
+ createdBy: string;
207
+ moderator?: ToolsOzoneTeamDefs.Member;
208
+ /** When this activity was created */
209
+ createdAt: string;
210
+ }
211
+ export declare function isReportActivityView<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "reportActivityView">;
212
+ export declare function validateReportActivityView<V>(v: V): ValidationResult<ReportActivityView & V>;
213
+ /** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */
214
+ export interface LiveStats {
215
+ $type?: 'tools.ozone.report.defs#liveStats';
216
+ /** Number of reports currently not closed. */
217
+ pendingCount?: number;
218
+ /** Number of reports closed today. */
219
+ actionedCount?: number;
220
+ /** Number of reports escalated today. */
221
+ escalatedCount?: number;
222
+ /** Reports received today. */
223
+ inboundCount?: number;
224
+ /** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. */
225
+ actionRate?: number;
226
+ /** Average time in seconds from report creation (or moderator assignment) to close. */
227
+ avgHandlingTimeSec?: number;
228
+ /** When these statistics were last computed. */
229
+ lastUpdated?: string;
230
+ }
231
+ export declare function isLiveStats<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "liveStats">;
232
+ export declare function validateLiveStats<V>(v: V): ValidationResult<LiveStats & V>;
233
+ /** A single daily snapshot of report statistics for a calendar date. */
234
+ export interface HistoricalStats {
235
+ $type?: 'tools.ozone.report.defs#historicalStats';
236
+ /** The calendar date this snapshot covers (YYYY-MM-DD). */
237
+ date: string;
238
+ /** When this snapshot was last computed. */
239
+ computedAt?: string;
240
+ /** Number of reports not closed at time of computation. */
241
+ pendingCount?: number;
242
+ /** Number of reports closed during this day. */
243
+ actionedCount?: number;
244
+ /** Number of reports escalated during this day. */
245
+ escalatedCount?: number;
246
+ /** Reports received during this day. */
247
+ inboundCount?: number;
248
+ /** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. */
249
+ actionRate?: number;
250
+ /** Average time in seconds from report creation (or moderator assignment) to close. */
251
+ avgHandlingTimeSec?: number;
252
+ }
253
+ export declare function isHistoricalStats<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "historicalStats">;
254
+ export declare function validateHistoricalStats<V>(v: V): ValidationResult<HistoricalStats & V>;
255
+ export interface AssignmentView {
256
+ $type?: 'tools.ozone.report.defs#assignmentView';
257
+ id: number;
258
+ did: string;
259
+ moderator?: ToolsOzoneTeamDefs.Member;
260
+ queue?: ToolsOzoneQueueDefs.QueueView;
261
+ reportId: number;
262
+ startAt: string;
263
+ endAt?: string;
264
+ }
265
+ export declare function isAssignmentView<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.report.defs", "assignmentView">;
266
+ export declare function validateAssignmentView<V>(v: V): ValidationResult<AssignmentView & V>;
82
267
  //# sourceMappingURL=defs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/defs.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,UAAU,GAClB,sCAAsC,GACtC,qCAAqC,GACrC,8CAA8C,GAC9C,+CAA+C,GAC/C,sDAAsD,GACtD,qDAAqD,GACrD,wDAAwD,GACxD,mDAAmD,GACnD,6CAA6C,GAC7C,kDAAkD,GAClD,0CAA0C,GAC1C,8CAA8C,GAC9C,4CAA4C,GAC5C,+CAA+C,GAC/C,2CAA2C,GAC3C,+CAA+C,GAC/C,gDAAgD,GAChD,kDAAkD,GAClD,qDAAqD,GACrD,gDAAgD,GAChD,+CAA+C,GAC/C,kDAAkD,GAClD,oDAAoD,GACpD,iDAAiD,GACjD,+CAA+C,GAC/C,6CAA6C,GAC7C,uDAAuD,GACvD,8CAA8C,GAC9C,8CAA8C,GAC9C,mDAAmD,GACnD,+CAA+C,GAC/C,gDAAgD,GAChD,mDAAmD,GACnD,8CAA8C,GAC9C,yCAAyC,GACzC,+CAA+C,GAC/C,0CAA0C,GAC1C,8CAA8C,GAC9C,kDAAkD,GAClD,6CAA6C,GAC7C,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEjB,kDAAkD;AAClD,eAAO,MAAM,YAAY,yCAAuB,CAAA;AAChD,6CAA6C;AAC7C,eAAO,MAAM,WAAW,wCAAsB,CAAA;AAC9C,gCAAgC;AAChC,eAAO,MAAM,oBAAoB,iDAA+B,CAAA;AAChE,4BAA4B;AAC5B,eAAO,MAAM,qBAAqB,kDAAgC,CAAA;AAClE,8BAA8B;AAC9B,eAAO,MAAM,4BAA4B,yDAAuC,CAAA;AAChF,gCAAgC;AAChC,eAAO,MAAM,2BAA2B,wDAAsC,CAAA;AAC9E,4GAA4G;AAC5G,eAAO,MAAM,8BAA8B,2DAAyC,CAAA;AACpF,wBAAwB;AACxB,eAAO,MAAM,yBAAyB,sDAAoC,CAAA;AAC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,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
@@ -1,6 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.REASONSELFHARMOTHER = exports.REASONSELFHARMSUBSTANCES = exports.REASONSELFHARMSTUNTS = exports.REASONSELFHARMED = exports.REASONSELFHARMCONTENT = exports.REASONRULEOTHER = exports.REASONRULEBANEVASION = exports.REASONRULEPROHIBITEDSALES = exports.REASONRULESITESECURITY = exports.REASONMISLEADINGOTHER = exports.REASONMISLEADINGELECTIONS = exports.REASONMISLEADINGSCAM = exports.REASONMISLEADINGSPAM = exports.REASONMISLEADINGIMPERSONATION = exports.REASONMISLEADINGBOT = exports.REASONHARASSMENTOTHER = exports.REASONHARASSMENTDOXXING = exports.REASONHARASSMENTHATESPEECH = exports.REASONHARASSMENTTARGETED = exports.REASONHARASSMENTTROLL = exports.REASONCHILDSAFETYOTHER = exports.REASONCHILDSAFETYHARASSMENT = exports.REASONCHILDSAFETYPRIVACY = exports.REASONCHILDSAFETYGROOM = exports.REASONCHILDSAFETYCSAM = exports.REASONSEXUALOTHER = exports.REASONSEXUALUNLABELED = exports.REASONSEXUALANIMAL = exports.REASONSEXUALDEEPFAKE = exports.REASONSEXUALNCII = exports.REASONSEXUALABUSECONTENT = exports.REASONVIOLENCEOTHER = exports.REASONVIOLENCETRAFFICKING = exports.REASONVIOLENCEEXTREMISTCONTENT = exports.REASONVIOLENCEGLORIFICATION = exports.REASONVIOLENCEGRAPHICCONTENT = exports.REASONVIOLENCETHREATS = exports.REASONVIOLENCEANIMAL = exports.REASONOTHER = exports.REASONAPPEAL = void 0;
4
+ exports.isReportAssignment = isReportAssignment;
5
+ exports.validateReportAssignment = validateReportAssignment;
6
+ exports.isReportView = isReportView;
7
+ exports.validateReportView = validateReportView;
8
+ exports.isQueueActivity = isQueueActivity;
9
+ exports.validateQueueActivity = validateQueueActivity;
10
+ exports.isAssignmentActivity = isAssignmentActivity;
11
+ exports.validateAssignmentActivity = validateAssignmentActivity;
12
+ exports.isEscalationActivity = isEscalationActivity;
13
+ exports.validateEscalationActivity = validateEscalationActivity;
14
+ exports.isCloseActivity = isCloseActivity;
15
+ exports.validateCloseActivity = validateCloseActivity;
16
+ exports.isReopenActivity = isReopenActivity;
17
+ exports.validateReopenActivity = validateReopenActivity;
18
+ exports.isNoteActivity = isNoteActivity;
19
+ exports.validateNoteActivity = validateNoteActivity;
20
+ exports.isReportActivityView = isReportActivityView;
21
+ exports.validateReportActivityView = validateReportActivityView;
22
+ exports.isLiveStats = isLiveStats;
23
+ exports.validateLiveStats = validateLiveStats;
24
+ exports.isHistoricalStats = isHistoricalStats;
25
+ exports.validateHistoricalStats = validateHistoricalStats;
26
+ exports.isAssignmentView = isAssignmentView;
27
+ exports.validateAssignmentView = validateAssignmentView;
4
28
  const lexicons_1 = require("../../../../lexicons");
5
29
  const util_1 = require("../../../../util");
6
30
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
@@ -85,4 +109,88 @@ exports.REASONSELFHARMSTUNTS = `${id}#reasonSelfHarmStunts`;
85
109
  exports.REASONSELFHARMSUBSTANCES = `${id}#reasonSelfHarmSubstances`;
86
110
  /** Other dangerous content */
87
111
  exports.REASONSELFHARMOTHER = `${id}#reasonSelfHarmOther`;
112
+ const hashReportAssignment = 'reportAssignment';
113
+ function isReportAssignment(v) {
114
+ return is$typed(v, id, hashReportAssignment);
115
+ }
116
+ function validateReportAssignment(v) {
117
+ return validate(v, id, hashReportAssignment);
118
+ }
119
+ const hashReportView = 'reportView';
120
+ function isReportView(v) {
121
+ return is$typed(v, id, hashReportView);
122
+ }
123
+ function validateReportView(v) {
124
+ return validate(v, id, hashReportView);
125
+ }
126
+ const hashQueueActivity = 'queueActivity';
127
+ function isQueueActivity(v) {
128
+ return is$typed(v, id, hashQueueActivity);
129
+ }
130
+ function validateQueueActivity(v) {
131
+ return validate(v, id, hashQueueActivity);
132
+ }
133
+ const hashAssignmentActivity = 'assignmentActivity';
134
+ function isAssignmentActivity(v) {
135
+ return is$typed(v, id, hashAssignmentActivity);
136
+ }
137
+ function validateAssignmentActivity(v) {
138
+ return validate(v, id, hashAssignmentActivity);
139
+ }
140
+ const hashEscalationActivity = 'escalationActivity';
141
+ function isEscalationActivity(v) {
142
+ return is$typed(v, id, hashEscalationActivity);
143
+ }
144
+ function validateEscalationActivity(v) {
145
+ return validate(v, id, hashEscalationActivity);
146
+ }
147
+ const hashCloseActivity = 'closeActivity';
148
+ function isCloseActivity(v) {
149
+ return is$typed(v, id, hashCloseActivity);
150
+ }
151
+ function validateCloseActivity(v) {
152
+ return validate(v, id, hashCloseActivity);
153
+ }
154
+ const hashReopenActivity = 'reopenActivity';
155
+ function isReopenActivity(v) {
156
+ return is$typed(v, id, hashReopenActivity);
157
+ }
158
+ function validateReopenActivity(v) {
159
+ return validate(v, id, hashReopenActivity);
160
+ }
161
+ const hashNoteActivity = 'noteActivity';
162
+ function isNoteActivity(v) {
163
+ return is$typed(v, id, hashNoteActivity);
164
+ }
165
+ function validateNoteActivity(v) {
166
+ return validate(v, id, hashNoteActivity);
167
+ }
168
+ const hashReportActivityView = 'reportActivityView';
169
+ function isReportActivityView(v) {
170
+ return is$typed(v, id, hashReportActivityView);
171
+ }
172
+ function validateReportActivityView(v) {
173
+ return validate(v, id, hashReportActivityView);
174
+ }
175
+ const hashLiveStats = 'liveStats';
176
+ function isLiveStats(v) {
177
+ return is$typed(v, id, hashLiveStats);
178
+ }
179
+ function validateLiveStats(v) {
180
+ return validate(v, id, hashLiveStats);
181
+ }
182
+ const hashHistoricalStats = 'historicalStats';
183
+ function isHistoricalStats(v) {
184
+ return is$typed(v, id, hashHistoricalStats);
185
+ }
186
+ function validateHistoricalStats(v) {
187
+ return validate(v, id, hashHistoricalStats);
188
+ }
189
+ const hashAssignmentView = 'assignmentView';
190
+ function isAssignmentView(v) {
191
+ return is$typed(v, id, hashAssignmentView);
192
+ }
193
+ function validateAssignmentView(v) {
194
+ return validate(v, id, hashAssignmentView);
195
+ }
88
196
  //# sourceMappingURL=defs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/defs.ts"],"names":[],"mappings":";;;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AA6CpC,kDAAkD;AACrC,QAAA,YAAY,GAAG,GAAG,EAAE,eAAe,CAAA;AAChD,6CAA6C;AAChC,QAAA,WAAW,GAAG,GAAG,EAAE,cAAc,CAAA;AAC9C,gCAAgC;AACnB,QAAA,oBAAoB,GAAG,GAAG,EAAE,uBAAuB,CAAA;AAChE,4BAA4B;AACf,QAAA,qBAAqB,GAAG,GAAG,EAAE,wBAAwB,CAAA;AAClE,8BAA8B;AACjB,QAAA,4BAA4B,GAAG,GAAG,EAAE,+BAA+B,CAAA;AAChF,gCAAgC;AACnB,QAAA,2BAA2B,GAAG,GAAG,EAAE,8BAA8B,CAAA;AAC9E,4GAA4G;AAC/F,QAAA,8BAA8B,GAAG,GAAG,EAAE,iCAAiC,CAAA;AACpF,wBAAwB;AACX,QAAA,yBAAyB,GAAG,GAAG,EAAE,4BAA4B,CAAA;AAC1E,4BAA4B;AACf,QAAA,mBAAmB,GAAG,GAAG,EAAE,sBAAsB,CAAA;AAC9D,iCAAiC;AACpB,QAAA,wBAAwB,GAAG,GAAG,EAAE,2BAA2B,CAAA;AACxE,sCAAsC;AACzB,QAAA,gBAAgB,GAAG,GAAG,EAAE,mBAAmB,CAAA;AACxD,6BAA6B;AAChB,QAAA,oBAAoB,GAAG,GAAG,EAAE,uBAAuB,CAAA;AAChE,0BAA0B;AACb,QAAA,kBAAkB,GAAG,GAAG,EAAE,qBAAqB,CAAA;AAC5D,+BAA+B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,GAAG,EAAE,yBAAyB,CAAA;AACpE,wDAAwD;AAC3C,QAAA,yBAAyB,GAAG,GAAG,EAAE,4BAA4B,CAAA;AAC1E,4BAA4B;AACf,QAAA,oBAAoB,GAAG,GAAG,EAAE,uBAAuB,CAAA;AAChE,YAAY;AACC,QAAA,eAAe,GAAG,GAAG,EAAE,kBAAkB,CAAA;AACtD,+CAA+C;AAClC,QAAA,qBAAqB,GAAG,GAAG,EAAE,wBAAwB,CAAA;AAClE,uBAAuB;AACV,QAAA,gBAAgB,GAAG,GAAG,EAAE,mBAAmB,CAAA;AACxD,yCAAyC;AAC5B,QAAA,oBAAoB,GAAG,GAAG,EAAE,uBAAuB,CAAA;AAChE,yCAAyC;AAC5B,QAAA,wBAAwB,GAAG,GAAG,EAAE,2BAA2B,CAAA;AACxE,8BAA8B;AACjB,QAAA,mBAAmB,GAAG,GAAG,EAAE,sBAAsB,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.defs'\n\nexport type ReasonType =\n | 'tools.ozone.report.defs#reasonAppeal'\n | 'tools.ozone.report.defs#reasonOther'\n | 'tools.ozone.report.defs#reasonViolenceAnimal'\n | 'tools.ozone.report.defs#reasonViolenceThreats'\n | 'tools.ozone.report.defs#reasonViolenceGraphicContent'\n | 'tools.ozone.report.defs#reasonViolenceGlorification'\n | 'tools.ozone.report.defs#reasonViolenceExtremistContent'\n | 'tools.ozone.report.defs#reasonViolenceTrafficking'\n | 'tools.ozone.report.defs#reasonViolenceOther'\n | 'tools.ozone.report.defs#reasonSexualAbuseContent'\n | 'tools.ozone.report.defs#reasonSexualNCII'\n | 'tools.ozone.report.defs#reasonSexualDeepfake'\n | 'tools.ozone.report.defs#reasonSexualAnimal'\n | 'tools.ozone.report.defs#reasonSexualUnlabeled'\n | 'tools.ozone.report.defs#reasonSexualOther'\n | 'tools.ozone.report.defs#reasonChildSafetyCSAM'\n | 'tools.ozone.report.defs#reasonChildSafetyGroom'\n | 'tools.ozone.report.defs#reasonChildSafetyPrivacy'\n | 'tools.ozone.report.defs#reasonChildSafetyHarassment'\n | 'tools.ozone.report.defs#reasonChildSafetyOther'\n | 'tools.ozone.report.defs#reasonHarassmentTroll'\n | 'tools.ozone.report.defs#reasonHarassmentTargeted'\n | 'tools.ozone.report.defs#reasonHarassmentHateSpeech'\n | 'tools.ozone.report.defs#reasonHarassmentDoxxing'\n | 'tools.ozone.report.defs#reasonHarassmentOther'\n | 'tools.ozone.report.defs#reasonMisleadingBot'\n | 'tools.ozone.report.defs#reasonMisleadingImpersonation'\n | 'tools.ozone.report.defs#reasonMisleadingSpam'\n | 'tools.ozone.report.defs#reasonMisleadingScam'\n | 'tools.ozone.report.defs#reasonMisleadingElections'\n | 'tools.ozone.report.defs#reasonMisleadingOther'\n | 'tools.ozone.report.defs#reasonRuleSiteSecurity'\n | 'tools.ozone.report.defs#reasonRuleProhibitedSales'\n | 'tools.ozone.report.defs#reasonRuleBanEvasion'\n | 'tools.ozone.report.defs#reasonRuleOther'\n | 'tools.ozone.report.defs#reasonSelfHarmContent'\n | 'tools.ozone.report.defs#reasonSelfHarmED'\n | 'tools.ozone.report.defs#reasonSelfHarmStunts'\n | 'tools.ozone.report.defs#reasonSelfHarmSubstances'\n | 'tools.ozone.report.defs#reasonSelfHarmOther'\n | (string & {})\n\n/** Appeal a previously taken moderation action */\nexport const REASONAPPEAL = `${id}#reasonAppeal`\n/** An issue not included in these options */\nexport const REASONOTHER = `${id}#reasonOther`\n/** Animal welfare violations */\nexport const REASONVIOLENCEANIMAL = `${id}#reasonViolenceAnimal`\n/** Threats or incitement */\nexport const REASONVIOLENCETHREATS = `${id}#reasonViolenceThreats`\n/** Graphic violent content */\nexport const REASONVIOLENCEGRAPHICCONTENT = `${id}#reasonViolenceGraphicContent`\n/** Glorification of violence */\nexport const REASONVIOLENCEGLORIFICATION = `${id}#reasonViolenceGlorification`\n/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONVIOLENCEEXTREMISTCONTENT = `${id}#reasonViolenceExtremistContent`\n/** Human trafficking */\nexport const REASONVIOLENCETRAFFICKING = `${id}#reasonViolenceTrafficking`\n/** Other violent content */\nexport const REASONVIOLENCEOTHER = `${id}#reasonViolenceOther`\n/** Adult sexual abuse content */\nexport const REASONSEXUALABUSECONTENT = `${id}#reasonSexualAbuseContent`\n/** Non-consensual intimate imagery */\nexport const REASONSEXUALNCII = `${id}#reasonSexualNCII`\n/** Deepfake adult content */\nexport const REASONSEXUALDEEPFAKE = `${id}#reasonSexualDeepfake`\n/** Animal sexual abuse */\nexport const REASONSEXUALANIMAL = `${id}#reasonSexualAnimal`\n/** Unlabelled adult content */\nexport const REASONSEXUALUNLABELED = `${id}#reasonSexualUnlabeled`\n/** Other sexual violence content */\nexport const REASONSEXUALOTHER = `${id}#reasonSexualOther`\n/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYCSAM = `${id}#reasonChildSafetyCSAM`\n/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYGROOM = `${id}#reasonChildSafetyGroom`\n/** Privacy violation involving a minor */\nexport const REASONCHILDSAFETYPRIVACY = `${id}#reasonChildSafetyPrivacy`\n/** Harassment or bullying of minors */\nexport const REASONCHILDSAFETYHARASSMENT = `${id}#reasonChildSafetyHarassment`\n/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYOTHER = `${id}#reasonChildSafetyOther`\n/** Trolling */\nexport const REASONHARASSMENTTROLL = `${id}#reasonHarassmentTroll`\n/** Targeted harassment */\nexport const REASONHARASSMENTTARGETED = `${id}#reasonHarassmentTargeted`\n/** Hate speech */\nexport const REASONHARASSMENTHATESPEECH = `${id}#reasonHarassmentHateSpeech`\n/** Doxxing */\nexport const REASONHARASSMENTDOXXING = `${id}#reasonHarassmentDoxxing`\n/** Other harassing or hateful content */\nexport const REASONHARASSMENTOTHER = `${id}#reasonHarassmentOther`\n/** Fake account or bot */\nexport const REASONMISLEADINGBOT = `${id}#reasonMisleadingBot`\n/** Impersonation */\nexport const REASONMISLEADINGIMPERSONATION = `${id}#reasonMisleadingImpersonation`\n/** Spam */\nexport const REASONMISLEADINGSPAM = `${id}#reasonMisleadingSpam`\n/** Scam */\nexport const REASONMISLEADINGSCAM = `${id}#reasonMisleadingScam`\n/** False information about elections */\nexport const REASONMISLEADINGELECTIONS = `${id}#reasonMisleadingElections`\n/** Other misleading content */\nexport const REASONMISLEADINGOTHER = `${id}#reasonMisleadingOther`\n/** Hacking or system attacks */\nexport const REASONRULESITESECURITY = `${id}#reasonRuleSiteSecurity`\n/** Promoting or selling prohibited items or services */\nexport const REASONRULEPROHIBITEDSALES = `${id}#reasonRuleProhibitedSales`\n/** Banned user returning */\nexport const REASONRULEBANEVASION = `${id}#reasonRuleBanEvasion`\n/** Other */\nexport const REASONRULEOTHER = `${id}#reasonRuleOther`\n/** Content promoting or depicting self-harm */\nexport const REASONSELFHARMCONTENT = `${id}#reasonSelfHarmContent`\n/** Eating disorders */\nexport const REASONSELFHARMED = `${id}#reasonSelfHarmED`\n/** Dangerous challenges or activities */\nexport const REASONSELFHARMSTUNTS = `${id}#reasonSelfHarmStunts`\n/** Dangerous substances or drug abuse */\nexport const REASONSELFHARMSUBSTANCES = `${id}#reasonSelfHarmSubstances`\n/** Other dangerous content */\nexport const REASONSELFHARMOTHER = `${id}#reasonSelfHarmOther`\n"]}
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/defs.ts"],"names":[],"mappings":";;;AA4JA,gDAEC;AAED,4DAEC;AA8CD,oCAEC;AAED,gDAE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AAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,SAAgB,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneTeamDefs from '../team/defs.js'\nimport type * as ToolsOzoneModerationDefs from '../moderation/defs.js'\nimport type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'\nimport type * as ToolsOzoneQueueDefs from '../queue/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.defs'\n\nexport type ReasonType =\n | 'tools.ozone.report.defs#reasonAppeal'\n | 'tools.ozone.report.defs#reasonOther'\n | 'tools.ozone.report.defs#reasonViolenceAnimal'\n | 'tools.ozone.report.defs#reasonViolenceThreats'\n | 'tools.ozone.report.defs#reasonViolenceGraphicContent'\n | 'tools.ozone.report.defs#reasonViolenceGlorification'\n | 'tools.ozone.report.defs#reasonViolenceExtremistContent'\n | 'tools.ozone.report.defs#reasonViolenceTrafficking'\n | 'tools.ozone.report.defs#reasonViolenceOther'\n | 'tools.ozone.report.defs#reasonSexualAbuseContent'\n | 'tools.ozone.report.defs#reasonSexualNCII'\n | 'tools.ozone.report.defs#reasonSexualDeepfake'\n | 'tools.ozone.report.defs#reasonSexualAnimal'\n | 'tools.ozone.report.defs#reasonSexualUnlabeled'\n | 'tools.ozone.report.defs#reasonSexualOther'\n | 'tools.ozone.report.defs#reasonChildSafetyCSAM'\n | 'tools.ozone.report.defs#reasonChildSafetyGroom'\n | 'tools.ozone.report.defs#reasonChildSafetyPrivacy'\n | 'tools.ozone.report.defs#reasonChildSafetyHarassment'\n | 'tools.ozone.report.defs#reasonChildSafetyOther'\n | 'tools.ozone.report.defs#reasonHarassmentTroll'\n | 'tools.ozone.report.defs#reasonHarassmentTargeted'\n | 'tools.ozone.report.defs#reasonHarassmentHateSpeech'\n | 'tools.ozone.report.defs#reasonHarassmentDoxxing'\n | 'tools.ozone.report.defs#reasonHarassmentOther'\n | 'tools.ozone.report.defs#reasonMisleadingBot'\n | 'tools.ozone.report.defs#reasonMisleadingImpersonation'\n | 'tools.ozone.report.defs#reasonMisleadingSpam'\n | 'tools.ozone.report.defs#reasonMisleadingScam'\n | 'tools.ozone.report.defs#reasonMisleadingElections'\n | 'tools.ozone.report.defs#reasonMisleadingOther'\n | 'tools.ozone.report.defs#reasonRuleSiteSecurity'\n | 'tools.ozone.report.defs#reasonRuleProhibitedSales'\n | 'tools.ozone.report.defs#reasonRuleBanEvasion'\n | 'tools.ozone.report.defs#reasonRuleOther'\n | 'tools.ozone.report.defs#reasonSelfHarmContent'\n | 'tools.ozone.report.defs#reasonSelfHarmED'\n | 'tools.ozone.report.defs#reasonSelfHarmStunts'\n | 'tools.ozone.report.defs#reasonSelfHarmSubstances'\n | 'tools.ozone.report.defs#reasonSelfHarmOther'\n | (string & {})\n\n/** Appeal a previously taken moderation action */\nexport const REASONAPPEAL = `${id}#reasonAppeal`\n/** An issue not included in these options */\nexport const REASONOTHER = `${id}#reasonOther`\n/** Animal welfare violations */\nexport const REASONVIOLENCEANIMAL = `${id}#reasonViolenceAnimal`\n/** Threats or incitement */\nexport const REASONVIOLENCETHREATS = `${id}#reasonViolenceThreats`\n/** Graphic violent content */\nexport const REASONVIOLENCEGRAPHICCONTENT = `${id}#reasonViolenceGraphicContent`\n/** Glorification of violence */\nexport const REASONVIOLENCEGLORIFICATION = `${id}#reasonViolenceGlorification`\n/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONVIOLENCEEXTREMISTCONTENT = `${id}#reasonViolenceExtremistContent`\n/** Human trafficking */\nexport const REASONVIOLENCETRAFFICKING = `${id}#reasonViolenceTrafficking`\n/** Other violent content */\nexport const REASONVIOLENCEOTHER = `${id}#reasonViolenceOther`\n/** Adult sexual abuse content */\nexport const REASONSEXUALABUSECONTENT = `${id}#reasonSexualAbuseContent`\n/** Non-consensual intimate imagery */\nexport const REASONSEXUALNCII = `${id}#reasonSexualNCII`\n/** Deepfake adult content */\nexport const REASONSEXUALDEEPFAKE = `${id}#reasonSexualDeepfake`\n/** Animal sexual abuse */\nexport const REASONSEXUALANIMAL = `${id}#reasonSexualAnimal`\n/** Unlabelled adult content */\nexport const REASONSEXUALUNLABELED = `${id}#reasonSexualUnlabeled`\n/** Other sexual violence content */\nexport const REASONSEXUALOTHER = `${id}#reasonSexualOther`\n/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYCSAM = `${id}#reasonChildSafetyCSAM`\n/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYGROOM = `${id}#reasonChildSafetyGroom`\n/** Privacy violation involving a minor */\nexport const REASONCHILDSAFETYPRIVACY = `${id}#reasonChildSafetyPrivacy`\n/** Harassment or bullying of minors */\nexport const REASONCHILDSAFETYHARASSMENT = `${id}#reasonChildSafetyHarassment`\n/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */\nexport const REASONCHILDSAFETYOTHER = `${id}#reasonChildSafetyOther`\n/** Trolling */\nexport const REASONHARASSMENTTROLL = `${id}#reasonHarassmentTroll`\n/** Targeted harassment */\nexport const REASONHARASSMENTTARGETED = `${id}#reasonHarassmentTargeted`\n/** Hate speech */\nexport const REASONHARASSMENTHATESPEECH = `${id}#reasonHarassmentHateSpeech`\n/** Doxxing */\nexport const REASONHARASSMENTDOXXING = `${id}#reasonHarassmentDoxxing`\n/** Other harassing or hateful content */\nexport const REASONHARASSMENTOTHER = `${id}#reasonHarassmentOther`\n/** Fake account or bot */\nexport const REASONMISLEADINGBOT = `${id}#reasonMisleadingBot`\n/** Impersonation */\nexport const REASONMISLEADINGIMPERSONATION = `${id}#reasonMisleadingImpersonation`\n/** Spam */\nexport const REASONMISLEADINGSPAM = `${id}#reasonMisleadingSpam`\n/** Scam */\nexport const REASONMISLEADINGSCAM = `${id}#reasonMisleadingScam`\n/** False information about elections */\nexport const REASONMISLEADINGELECTIONS = `${id}#reasonMisleadingElections`\n/** Other misleading content */\nexport const REASONMISLEADINGOTHER = `${id}#reasonMisleadingOther`\n/** Hacking or system attacks */\nexport const REASONRULESITESECURITY = `${id}#reasonRuleSiteSecurity`\n/** Promoting or selling prohibited items or services */\nexport const REASONRULEPROHIBITEDSALES = `${id}#reasonRuleProhibitedSales`\n/** Banned user returning */\nexport const REASONRULEBANEVASION = `${id}#reasonRuleBanEvasion`\n/** Other */\nexport const REASONRULEOTHER = `${id}#reasonRuleOther`\n/** Content promoting or depicting self-harm */\nexport const REASONSELFHARMCONTENT = `${id}#reasonSelfHarmContent`\n/** Eating disorders */\nexport const REASONSELFHARMED = `${id}#reasonSelfHarmED`\n/** Dangerous challenges or activities */\nexport const REASONSELFHARMSTUNTS = `${id}#reasonSelfHarmStunts`\n/** Dangerous substances or drug abuse */\nexport const REASONSELFHARMSUBSTANCES = `${id}#reasonSelfHarmSubstances`\n/** Other dangerous content */\nexport const REASONSELFHARMOTHER = `${id}#reasonSelfHarmOther`\n\n/** Information about the moderator currently assigned to a report. */\nexport interface ReportAssignment {\n $type?: 'tools.ozone.report.defs#reportAssignment'\n /** DID of the assigned moderator */\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n /** When the report was assigned */\n assignedAt: string\n}\n\nconst hashReportAssignment = 'reportAssignment'\n\nexport function isReportAssignment<V>(v: V) {\n return is$typed(v, id, hashReportAssignment)\n}\n\nexport function validateReportAssignment<V>(v: V) {\n return validate<ReportAssignment & V>(v, id, hashReportAssignment)\n}\n\nexport interface ReportView {\n $type?: 'tools.ozone.report.defs#reportView'\n /** Report ID */\n id: number\n /** ID of the moderation event that created this report */\n eventId: number\n /** Current status of the report */\n status:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | (string & {})\n subject: ToolsOzoneModerationDefs.SubjectView\n reportType: ComAtprotoModerationDefs.ReasonType\n /** DID of the user who made the report */\n reportedBy: string\n reporter: ToolsOzoneModerationDefs.SubjectView\n /** Comment provided by the reporter */\n comment?: string\n /** When the report was created */\n createdAt: string\n /** When the report was last updated */\n updatedAt?: string\n /** When the report was assigned to its current queue */\n queuedAt?: string\n /** Array of moderation event IDs representing actions taken on this report (sorted DESC, most recent first) */\n actionEventIds?: number[]\n /** Optional: expanded action events */\n actions?: ToolsOzoneModerationDefs.ModEventView[]\n /** Note sent to reporter when report was actioned */\n actionNote?: string\n subjectStatus?: ToolsOzoneModerationDefs.SubjectStatusView\n /** Number of other pending reports on the same subject */\n relatedReportCount?: number\n assignment?: ReportAssignment\n queue?: ToolsOzoneQueueDefs.QueueView\n /** Whether this report is muted. A report is muted if the reporter was muted or the subject was muted at the time the report was created. */\n isMuted?: boolean\n}\n\nconst hashReportView = 'reportView'\n\nexport function isReportView<V>(v: V) {\n return is$typed(v, id, hashReportView)\n}\n\nexport function validateReportView<V>(v: V) {\n return validate<ReportView & V>(v, id, hashReportView)\n}\n\n/** Activity recording a report being routed to a queue. */\nexport interface QueueActivity {\n $type?: 'tools.ozone.report.defs#queueActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | (string & {})\n}\n\nconst hashQueueActivity = 'queueActivity'\n\nexport function isQueueActivity<V>(v: V) {\n return is$typed(v, id, hashQueueActivity)\n}\n\nexport function validateQueueActivity<V>(v: V) {\n return validate<QueueActivity & V>(v, id, hashQueueActivity)\n}\n\n/** Activity recording a moderator being assigned to a report. */\nexport interface AssignmentActivity {\n $type?: 'tools.ozone.report.defs#assignmentActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | (string & {})\n}\n\nconst hashAssignmentActivity = 'assignmentActivity'\n\nexport function isAssignmentActivity<V>(v: V) {\n return is$typed(v, id, hashAssignmentActivity)\n}\n\nexport function validateAssignmentActivity<V>(v: V) {\n return validate<AssignmentActivity & V>(v, id, hashAssignmentActivity)\n}\n\n/** Activity recording a report being escalated. */\nexport interface EscalationActivity {\n $type?: 'tools.ozone.report.defs#escalationActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | (string & {})\n}\n\nconst hashEscalationActivity = 'escalationActivity'\n\nexport function isEscalationActivity<V>(v: V) {\n return is$typed(v, id, hashEscalationActivity)\n}\n\nexport function validateEscalationActivity<V>(v: V) {\n return validate<EscalationActivity & V>(v, id, hashEscalationActivity)\n}\n\n/** Activity recording a report being closed. */\nexport interface CloseActivity {\n $type?: 'tools.ozone.report.defs#closeActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | (string & {})\n}\n\nconst hashCloseActivity = 'closeActivity'\n\nexport function isCloseActivity<V>(v: V) {\n return is$typed(v, id, hashCloseActivity)\n}\n\nexport function validateCloseActivity<V>(v: V) {\n return validate<CloseActivity & V>(v, id, hashCloseActivity)\n}\n\n/** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */\nexport interface ReopenActivity {\n $type?: 'tools.ozone.report.defs#reopenActivity'\n /** The report's status before this activity. Populated automatically from the report row; not required in input. */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | (string & {})\n}\n\nconst hashReopenActivity = 'reopenActivity'\n\nexport function isReopenActivity<V>(v: V) {\n return is$typed(v, id, hashReopenActivity)\n}\n\nexport function validateReopenActivity<V>(v: V) {\n return validate<ReopenActivity & V>(v, id, hashReopenActivity)\n}\n\n/** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */\nexport interface NoteActivity {\n $type?: 'tools.ozone.report.defs#noteActivity'\n}\n\nconst hashNoteActivity = 'noteActivity'\n\nexport function isNoteActivity<V>(v: V) {\n return is$typed(v, id, hashNoteActivity)\n}\n\nexport function validateNoteActivity<V>(v: V) {\n return validate<NoteActivity & V>(v, id, hashNoteActivity)\n}\n\n/** A single activity entry on a report. */\nexport interface ReportActivityView {\n $type?: 'tools.ozone.report.defs#reportActivityView'\n /** Activity ID */\n id: number\n /** ID of the report this activity belongs to */\n reportId: number\n activity:\n | $Typed<QueueActivity>\n | $Typed<AssignmentActivity>\n | $Typed<EscalationActivity>\n | $Typed<CloseActivity>\n | $Typed<ReopenActivity>\n | $Typed<NoteActivity>\n | { $type: string }\n /** Optional moderator-only note. Not visible to reporters. */\n internalNote?: string\n /** Optional public note, potentially visible to the reporter. */\n publicNote?: string\n /** Extensible JSON payload for loose activity-specific metadata (e.g. assignmentId). */\n meta?: { [_ in string]: unknown }\n /** True if this activity was created by an automated process (e.g. queue router) rather than a direct human action. */\n isAutomated: boolean\n /** DID of the actor who created this activity, or the service DID for automated activities. */\n createdBy: string\n moderator?: ToolsOzoneTeamDefs.Member\n /** When this activity was created */\n createdAt: string\n}\n\nconst hashReportActivityView = 'reportActivityView'\n\nexport function isReportActivityView<V>(v: V) {\n return is$typed(v, id, hashReportActivityView)\n}\n\nexport function validateReportActivityView<V>(v: V) {\n return validate<ReportActivityView & V>(v, id, hashReportActivityView)\n}\n\n/** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */\nexport interface LiveStats {\n $type?: 'tools.ozone.report.defs#liveStats'\n /** Number of reports currently not closed. */\n pendingCount?: number\n /** Number of reports closed today. */\n actionedCount?: number\n /** Number of reports escalated today. */\n escalatedCount?: number\n /** Reports received today. */\n inboundCount?: number\n /** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. */\n actionRate?: number\n /** Average time in seconds from report creation (or moderator assignment) to close. */\n avgHandlingTimeSec?: number\n /** When these statistics were last computed. */\n lastUpdated?: string\n}\n\nconst hashLiveStats = 'liveStats'\n\nexport function isLiveStats<V>(v: V) {\n return is$typed(v, id, hashLiveStats)\n}\n\nexport function validateLiveStats<V>(v: V) {\n return validate<LiveStats & V>(v, id, hashLiveStats)\n}\n\n/** A single daily snapshot of report statistics for a calendar date. */\nexport interface HistoricalStats {\n $type?: 'tools.ozone.report.defs#historicalStats'\n /** The calendar date this snapshot covers (YYYY-MM-DD). */\n date: string\n /** When this snapshot was last computed. */\n computedAt?: string\n /** Number of reports not closed at time of computation. */\n pendingCount?: number\n /** Number of reports closed during this day. */\n actionedCount?: number\n /** Number of reports escalated during this day. */\n escalatedCount?: number\n /** Reports received during this day. */\n inboundCount?: number\n /** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. */\n actionRate?: number\n /** Average time in seconds from report creation (or moderator assignment) to close. */\n avgHandlingTimeSec?: number\n}\n\nconst hashHistoricalStats = 'historicalStats'\n\nexport function isHistoricalStats<V>(v: V) {\n return is$typed(v, id, hashHistoricalStats)\n}\n\nexport function validateHistoricalStats<V>(v: V) {\n return validate<HistoricalStats & V>(v, id, hashHistoricalStats)\n}\n\nexport interface AssignmentView {\n $type?: 'tools.ozone.report.defs#assignmentView'\n id: number\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n queue?: ToolsOzoneQueueDefs.QueueView\n reportId: number\n startAt: string\n endAt?: string\n}\n\nconst hashAssignmentView = 'assignmentView'\n\nexport function isAssignmentView<V>(v: V) {\n return is$typed(v, id, hashAssignmentView)\n}\n\nexport function validateAssignmentView<V>(v: V) {\n return validate<AssignmentView & V>(v, id, hashAssignmentView)\n}\n"]}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneReportDefs from './defs.js';
6
+ export type QueryParams = {
7
+ /** When true, only returns active assignments. */
8
+ onlyActive?: boolean;
9
+ /** If specified, returns assignments for these reports only. */
10
+ reportIds?: number[];
11
+ /** If specified, returns assignments for these moderators only. */
12
+ dids?: string[];
13
+ limit?: number;
14
+ cursor?: string;
15
+ };
16
+ export type InputSchema = undefined;
17
+ export interface OutputSchema {
18
+ cursor?: string;
19
+ assignments: ToolsOzoneReportDefs.AssignmentView[];
20
+ }
21
+ export interface CallOptions {
22
+ signal?: AbortSignal;
23
+ headers?: HeadersMap;
24
+ }
25
+ export interface Response {
26
+ success: boolean;
27
+ headers: HeadersMap;
28
+ data: OutputSchema;
29
+ }
30
+ export declare function toKnownErr(e: any): any;
31
+ //# sourceMappingURL=getAssignments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAssignments.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getAssignments.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG;IACxB,kDAAkD;IAClD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,oBAAoB,CAAC,cAAc,EAAE,CAAA;CACnD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toKnownErr = toKnownErr;
4
+ const lexicons_1 = require("../../../../lexicons");
5
+ const util_1 = require("../../../../util");
6
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
7
+ const id = 'tools.ozone.report.getAssignments';
8
+ function toKnownErr(e) {
9
+ return e;
10
+ }
11
+ //# sourceMappingURL=getAssignments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAssignments.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getAssignments.ts"],"names":[],"mappings":";;AA8CA,gCAEC;AA1CD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA;AA8B9C,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneReportDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.getAssignments'\n\nexport type QueryParams = {\n /** When true, only returns active assignments. */\n onlyActive?: boolean\n /** If specified, returns assignments for these reports only. */\n reportIds?: number[]\n /** If specified, returns assignments for these moderators only. */\n dids?: string[]\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n assignments: ToolsOzoneReportDefs.AssignmentView[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneReportDefs from './defs.js';
6
+ export type QueryParams = {
7
+ /** Filter stats by queue. Use -1 for unqueued reports. */
8
+ queueId?: number;
9
+ /** Filter stats by moderator DID. */
10
+ moderatorDid?: string;
11
+ /** Filter stats by report types. */
12
+ reportTypes?: string[];
13
+ /** Earliest date to include (inclusive). */
14
+ startDate?: string;
15
+ /** Latest date to include (inclusive). */
16
+ endDate?: string;
17
+ /** Maximum number of entries to return. */
18
+ limit?: number;
19
+ /** Pagination cursor. */
20
+ cursor?: string;
21
+ };
22
+ export type InputSchema = undefined;
23
+ export interface OutputSchema {
24
+ stats: ToolsOzoneReportDefs.HistoricalStats[];
25
+ cursor?: string;
26
+ }
27
+ export interface CallOptions {
28
+ signal?: AbortSignal;
29
+ headers?: HeadersMap;
30
+ }
31
+ export interface Response {
32
+ success: boolean;
33
+ headers: HeadersMap;
34
+ data: OutputSchema;
35
+ }
36
+ export declare function toKnownErr(e: any): any;
37
+ //# sourceMappingURL=getHistoricalStats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getHistoricalStats.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getHistoricalStats.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG;IACxB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,oBAAoB,CAAC,eAAe,EAAE,CAAA;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toKnownErr = toKnownErr;
4
+ const lexicons_1 = require("../../../../lexicons");
5
+ const util_1 = require("../../../../util");
6
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
7
+ const id = 'tools.ozone.report.getHistoricalStats';
8
+ function toKnownErr(e) {
9
+ return e;
10
+ }
11
+ //# sourceMappingURL=getHistoricalStats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getHistoricalStats.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getHistoricalStats.ts"],"names":[],"mappings":";;AAoDA,gCAEC;AAhDD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,uCAAuC,CAAA;AAoClD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneReportDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.getHistoricalStats'\n\nexport type QueryParams = {\n /** Filter stats by queue. Use -1 for unqueued reports. */\n queueId?: number\n /** Filter stats by moderator DID. */\n moderatorDid?: string\n /** Filter stats by report types. */\n reportTypes?: string[]\n /** Earliest date to include (inclusive). */\n startDate?: string\n /** Latest date to include (inclusive). */\n endDate?: string\n /** Maximum number of entries to return. */\n limit?: number\n /** Pagination cursor. */\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n stats: ToolsOzoneReportDefs.HistoricalStats[]\n cursor?: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneReportDefs from './defs.js';
6
+ export type QueryParams = {};
7
+ export type InputSchema = undefined;
8
+ export interface OutputSchema {
9
+ report: ToolsOzoneReportDefs.ReportView;
10
+ }
11
+ export interface CallOptions {
12
+ signal?: AbortSignal;
13
+ headers?: HeadersMap;
14
+ }
15
+ export interface Response {
16
+ success: boolean;
17
+ headers: HeadersMap;
18
+ data: OutputSchema;
19
+ }
20
+ export declare class NotFoundError extends XRPCError {
21
+ constructor(src: XRPCError);
22
+ }
23
+ export declare function toKnownErr(e: any): any;
24
+ //# sourceMappingURL=getLatestReport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLatestReport.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getLatestReport.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,oBAAoB,CAAC,UAAU,CAAA;CACxC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,aAAc,SAAQ,SAAS;gBAC9B,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotFoundError = void 0;
4
+ exports.toKnownErr = toKnownErr;
5
+ /**
6
+ * GENERATED CODE - DO NOT MODIFY
7
+ */
8
+ const xrpc_1 = require("@atproto/xrpc");
9
+ const lexicons_1 = require("../../../../lexicons");
10
+ const util_1 = require("../../../../util");
11
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
12
+ const id = 'tools.ozone.report.getLatestReport';
13
+ class NotFoundError extends xrpc_1.XRPCError {
14
+ constructor(src) {
15
+ super(src.status, src.error, src.message, src.headers, { cause: src });
16
+ }
17
+ }
18
+ exports.NotFoundError = NotFoundError;
19
+ function toKnownErr(e) {
20
+ if (e instanceof xrpc_1.XRPCError) {
21
+ if (e.error === 'NotFound')
22
+ return new NotFoundError(e);
23
+ }
24
+ return e;
25
+ }
26
+ //# sourceMappingURL=getLatestReport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLatestReport.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getLatestReport.ts"],"names":[],"mappings":";;;AA0CA,gCAMC;AAhDD;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oCAAoC,CAAA;AAoB/C,MAAa,aAAc,SAAQ,gBAAS;IAC1C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAJD,sCAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,UAAU;YAAE,OAAO,IAAI,aAAa,CAAC,CAAC,CAAC,CAAA;IACzD,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as ToolsOzoneReportDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.getLatestReport'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n report: ToolsOzoneReportDefs.ReportView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class NotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'NotFound') return new NotFoundError(e)\n }\n\n return e\n}\n"]}