@atproto/api 0.19.15 → 0.19.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.
- package/CHANGELOG.md +6 -0
- package/dist/client/index.d.ts +71 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +172 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +17860 -14724
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +1753 -91
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +16 -0
- package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/emitEvent.js +9 -0
- package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
- package/dist/client/types/tools/ozone/queue/assignModerator.d.ts +29 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.js +26 -0
- package/dist/client/types/tools/ozone/queue/assignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/createQueue.d.ts +37 -0
- package/dist/client/types/tools/ozone/queue/createQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/createQueue.js +26 -0
- package/dist/client/types/tools/ozone/queue/createQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/defs.d.ts +62 -0
- package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/defs.js +34 -0
- package/dist/client/types/tools/ozone/queue/defs.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts +29 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.js +11 -0
- package/dist/client/types/tools/ozone/queue/deleteQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.d.ts +31 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.js +11 -0
- package/dist/client/types/tools/ozone/queue/getAssignments.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/listQueues.d.ts +33 -0
- package/dist/client/types/tools/ozone/queue/listQueues.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/listQueues.js +11 -0
- package/dist/client/types/tools/ozone/queue/listQueues.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/routeReports.d.ts +33 -0
- package/dist/client/types/tools/ozone/queue/routeReports.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/routeReports.js +26 -0
- package/dist/client/types/tools/ozone/queue/routeReports.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts +26 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.js +26 -0
- package/dist/client/types/tools/ozone/queue/unassignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.d.ts +32 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.js +11 -0
- package/dist/client/types/tools/ozone/queue/updateQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/report/assignModerator.d.ts +36 -0
- package/dist/client/types/tools/ozone/report/assignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/assignModerator.js +34 -0
- package/dist/client/types/tools/ozone/report/assignModerator.js.map +1 -0
- package/dist/client/types/tools/ozone/report/createActivity.d.ts +45 -0
- package/dist/client/types/tools/ozone/report/createActivity.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/createActivity.js +42 -0
- package/dist/client/types/tools/ozone/report/createActivity.js.map +1 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts +185 -0
- package/dist/client/types/tools/ozone/report/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/report/defs.js +108 -0
- package/dist/client/types/tools/ozone/report/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/report/getAssignments.d.ts +31 -0
- package/dist/client/types/tools/ozone/report/getAssignments.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getAssignments.js +11 -0
- package/dist/client/types/tools/ozone/report/getAssignments.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts +37 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.js +11 -0
- package/dist/client/types/tools/ozone/report/getHistoricalStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.d.ts +24 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.js +26 -0
- package/dist/client/types/tools/ozone/report/getLatestReport.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.d.ts +28 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.js +11 -0
- package/dist/client/types/tools/ozone/report/getLiveStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/getReport.d.ts +25 -0
- package/dist/client/types/tools/ozone/report/getReport.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/getReport.js +26 -0
- package/dist/client/types/tools/ozone/report/getReport.js.map +1 -0
- package/dist/client/types/tools/ozone/report/listActivities.d.ts +27 -0
- package/dist/client/types/tools/ozone/report/listActivities.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/listActivities.js +11 -0
- package/dist/client/types/tools/ozone/report/listActivities.js.map +1 -0
- package/dist/client/types/tools/ozone/report/queryReports.d.ts +49 -0
- package/dist/client/types/tools/ozone/report/queryReports.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/queryReports.js +11 -0
- package/dist/client/types/tools/ozone/report/queryReports.js.map +1 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.d.ts +45 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.js +58 -0
- package/dist/client/types/tools/ozone/report/reassignQueue.js.map +1 -0
- package/dist/client/types/tools/ozone/report/refreshStats.d.ts +28 -0
- package/dist/client/types/tools/ozone/report/refreshStats.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/refreshStats.js +11 -0
- package/dist/client/types/tools/ozone/report/refreshStats.js.map +1 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.d.ts +27 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.js +26 -0
- package/dist/client/types/tools/ozone/report/unassignModerator.js.map +1 -0
- package/package.json +2 -2
- package/src/client/index.ts +292 -0
- package/src/client/lexicons.ts +1908 -164
- package/src/client/types/tools/ozone/moderation/emitEvent.ts +24 -0
- package/src/client/types/tools/ozone/queue/assignModerator.ts +55 -0
- package/src/client/types/tools/ozone/queue/createQueue.ts +63 -0
- package/src/client/types/tools/ozone/queue/defs.ts +99 -0
- package/src/client/types/tools/ozone/queue/deleteQueue.ts +48 -0
- package/src/client/types/tools/ozone/queue/getAssignments.ts +49 -0
- package/src/client/types/tools/ozone/queue/listQueues.ts +51 -0
- package/src/client/types/tools/ozone/queue/routeReports.ts +59 -0
- package/src/client/types/tools/ozone/queue/unassignModerator.ts +51 -0
- package/src/client/types/tools/ozone/queue/updateQueue.ts +51 -0
- package/src/client/types/tools/ozone/report/assignModerator.ts +66 -0
- package/src/client/types/tools/ozone/report/createActivity.ts +85 -0
- package/src/client/types/tools/ozone/report/defs.ts +327 -0
- package/src/client/types/tools/ozone/report/getAssignments.ts +49 -0
- package/src/client/types/tools/ozone/report/getHistoricalStats.ts +55 -0
- package/src/client/types/tools/ozone/report/getLatestReport.ts +49 -0
- package/src/client/types/tools/ozone/report/getLiveStats.ts +46 -0
- package/src/client/types/tools/ozone/report/getReport.ts +49 -0
- package/src/client/types/tools/ozone/report/listActivities.ts +45 -0
- package/src/client/types/tools/ozone/report/queryReports.ts +73 -0
- package/src/client/types/tools/ozone/report/reassignQueue.ts +88 -0
- package/src/client/types/tools/ozone/report/refreshStats.ts +46 -0
- package/src/client/types/tools/ozone/report/unassignModerator.ts +53 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -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,2CAI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AClC,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,gDAEC;AAiBD,0CAEC;AAED,sDAEC;AAiBD,oDAEC;AAED,gEAEC;AAiBD,oDAEC;AAED,gEAEC;AAiBD,0CAEC;AAED,sDAEC;AAiBD,4CAEC;AAED,wDAEC;AASD,wCAEC;AAED,oDAEC;AAkCD,oDAEC;AAED,gEAEC;AAuBD,kCAEC;AAED,8CAEC;AAyBD,8CAEC;AAED,0D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{ 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"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
};
|
|
14
|
+
export type InputSchema = undefined;
|
|
15
|
+
export interface OutputSchema {
|
|
16
|
+
stats: ToolsOzoneReportDefs.LiveStats;
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
headers?: HeadersMap;
|
|
21
|
+
}
|
|
22
|
+
export interface Response {
|
|
23
|
+
success: boolean;
|
|
24
|
+
headers: HeadersMap;
|
|
25
|
+
data: OutputSchema;
|
|
26
|
+
}
|
|
27
|
+
export declare function toKnownErr(e: any): any;
|
|
28
|
+
//# sourceMappingURL=getLiveStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLiveStats.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getLiveStats.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;CACvB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAA;CACtC;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.getLiveStats';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getLiveStats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLiveStats.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getLiveStats.ts"],"names":[],"mappings":";;AA2CA,gCAEC;AAvCD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,iCAAiC,CAAA;AA2B5C,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.getLiveStats'\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}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n stats: ToolsOzoneReportDefs.LiveStats\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,25 @@
|
|
|
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
|
+
/** The ID of the report to retrieve. */
|
|
8
|
+
id: number;
|
|
9
|
+
};
|
|
10
|
+
export type InputSchema = undefined;
|
|
11
|
+
export type OutputSchema = ToolsOzoneReportDefs.ReportView;
|
|
12
|
+
export interface CallOptions {
|
|
13
|
+
signal?: AbortSignal;
|
|
14
|
+
headers?: HeadersMap;
|
|
15
|
+
}
|
|
16
|
+
export interface Response {
|
|
17
|
+
success: boolean;
|
|
18
|
+
headers: HeadersMap;
|
|
19
|
+
data: OutputSchema;
|
|
20
|
+
}
|
|
21
|
+
export declare class NotFoundError extends XRPCError {
|
|
22
|
+
constructor(src: XRPCError);
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
25
|
+
//# sourceMappingURL=getReport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReport.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getReport.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;IACxB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AACnC,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,UAAU,CAAA;AAE1D,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.getReport';
|
|
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=getReport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReport.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/getReport.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,8BAA8B,CAAA;AAoBzC,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.getReport'\n\nexport type QueryParams = {\n /** The ID of the report to retrieve. */\n id: number\n}\nexport type InputSchema = undefined\nexport type OutputSchema = ToolsOzoneReportDefs.ReportView\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"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/** ID of the report whose activities to list */
|
|
8
|
+
reportId: number;
|
|
9
|
+
limit?: number;
|
|
10
|
+
cursor?: string;
|
|
11
|
+
};
|
|
12
|
+
export type InputSchema = undefined;
|
|
13
|
+
export interface OutputSchema {
|
|
14
|
+
activities: ToolsOzoneReportDefs.ReportActivityView[];
|
|
15
|
+
cursor?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CallOptions {
|
|
18
|
+
signal?: AbortSignal;
|
|
19
|
+
headers?: HeadersMap;
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: HeadersMap;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
27
|
+
//# sourceMappingURL=listActivities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listActivities.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/listActivities.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,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAA;IAChB,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,UAAU,EAAE,oBAAoB,CAAC,kBAAkB,EAAE,CAAA;IACrD,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.listActivities';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=listActivities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listActivities.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/listActivities.ts"],"names":[],"mappings":";;AA0CA,gCAEC;AAtCD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,CAAA;AA0B9C,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.listActivities'\n\nexport type QueryParams = {\n /** ID of the report whose activities to list */\n reportId: number\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n activities: ToolsOzoneReportDefs.ReportActivityView[]\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,49 @@
|
|
|
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 by queue ID. Use -1 for unassigned reports. */
|
|
8
|
+
queueId?: number;
|
|
9
|
+
/** Filter by report types (fully qualified string in the format of com.atproto.moderation.defs#reason<name>). */
|
|
10
|
+
reportTypes?: string[];
|
|
11
|
+
/** Filter by report status. */
|
|
12
|
+
status: 'open' | 'closed' | 'escalated' | 'queued' | 'assigned' | (string & {});
|
|
13
|
+
/** Filter by subject DID or AT-URI. */
|
|
14
|
+
subject?: string;
|
|
15
|
+
/** Filter to reports where the subject is this DID or any record owned by this DID. Unlike `subject` (which scopes to a specific account or record), this returns all reports tied to the DID across both account-level and record-level subjects. */
|
|
16
|
+
did?: string;
|
|
17
|
+
/** If specified, reports of the given type (account or record) will be returned. */
|
|
18
|
+
subjectType?: 'account' | 'record' | (string & {});
|
|
19
|
+
/** If specified, reports where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored. */
|
|
20
|
+
collections?: string[];
|
|
21
|
+
/** Retrieve reports created after a given timestamp */
|
|
22
|
+
reportedAfter?: string;
|
|
23
|
+
/** Retrieve reports created before a given timestamp */
|
|
24
|
+
reportedBefore?: string;
|
|
25
|
+
/** Filter by muted status. true returns only muted reports, false returns only unmuted reports. Defaults to false. */
|
|
26
|
+
isMuted?: boolean;
|
|
27
|
+
/** Filter by the DID of the moderator permanently assigned to the report. */
|
|
28
|
+
assignedTo?: string;
|
|
29
|
+
sortField?: 'createdAt' | 'updatedAt';
|
|
30
|
+
sortDirection?: 'asc' | 'desc';
|
|
31
|
+
limit?: number;
|
|
32
|
+
cursor?: string;
|
|
33
|
+
};
|
|
34
|
+
export type InputSchema = undefined;
|
|
35
|
+
export interface OutputSchema {
|
|
36
|
+
cursor?: string;
|
|
37
|
+
reports: ToolsOzoneReportDefs.ReportView[];
|
|
38
|
+
}
|
|
39
|
+
export interface CallOptions {
|
|
40
|
+
signal?: AbortSignal;
|
|
41
|
+
headers?: HeadersMap;
|
|
42
|
+
}
|
|
43
|
+
export interface Response {
|
|
44
|
+
success: boolean;
|
|
45
|
+
headers: HeadersMap;
|
|
46
|
+
data: OutputSchema;
|
|
47
|
+
}
|
|
48
|
+
export declare function toKnownErr(e: any): any;
|
|
49
|
+
//# sourceMappingURL=queryReports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryReports.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/queryReports.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,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,iHAAiH;IACjH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,+BAA+B;IAC/B,MAAM,EACF,MAAM,GACN,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,UAAU,GACV,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,sPAAsP;IACtP,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oFAAoF;IACpF,WAAW,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAClD,6JAA6J;IAC7J,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,wDAAwD;IACxD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sHAAsH;IACtH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,WAAW,GAAG,WAAW,CAAA;IACrC,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC9B,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,OAAO,EAAE,oBAAoB,CAAC,UAAU,EAAE,CAAA;CAC3C;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.queryReports';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=queryReports.js.map
|