@atproto/ozone 0.2.14 → 0.2.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 +17 -0
- package/dist/api/queue/createQueue.d.ts.map +1 -1
- package/dist/api/queue/createQueue.js +3 -2
- package/dist/api/queue/createQueue.js.map +1 -1
- package/dist/api/report/getHistoricalStats.d.ts.map +1 -1
- package/dist/api/report/getHistoricalStats.js +5 -1
- package/dist/api/report/getHistoricalStats.js.map +1 -1
- package/dist/api/report/getLiveStats.d.ts.map +1 -1
- package/dist/api/report/getLiveStats.js +5 -1
- package/dist/api/report/getLiveStats.js.map +1 -1
- package/dist/db/migrations/20260617T210022765Z-add-report-isautomated.d.ts +4 -0
- package/dist/db/migrations/20260617T210022765Z-add-report-isautomated.d.ts.map +1 -0
- package/dist/db/migrations/20260617T210022765Z-add-report-isautomated.js +10 -0
- package/dist/db/migrations/20260617T210022765Z-add-report-isautomated.js.map +1 -0
- package/dist/db/migrations/index.d.ts +1 -0
- package/dist/db/migrations/index.d.ts.map +1 -1
- package/dist/db/migrations/index.js +1 -0
- package/dist/db/migrations/index.js.map +1 -1
- package/dist/db/schema/report.d.ts +1 -0
- package/dist/db/schema/report.d.ts.map +1 -1
- package/dist/db/schema/report.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +26 -24
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +12 -13
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/queue/createQueue.d.ts +2 -2
- package/dist/lexicon/types/tools/ozone/queue/createQueue.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/queue/createQueue.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/queue/defs.d.ts +2 -2
- package/dist/lexicon/types/tools/ozone/queue/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/queue/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/queue/listQueues.d.ts +1 -1
- package/dist/lexicon/types/tools/ozone/queue/listQueues.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/queue/listQueues.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/report/defs.d.ts +2 -0
- package/dist/lexicon/types/tools/ozone/report/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/report/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/report/queryReports.d.ts +2 -2
- package/dist/lexicon/types/tools/ozone/report/queryReports.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/report/queryReports.js.map +1 -1
- package/dist/mod-service/index.d.ts.map +1 -1
- package/dist/mod-service/index.js +2 -2
- package/dist/mod-service/index.js.map +1 -1
- package/dist/mod-service/report.d.ts.map +1 -1
- package/dist/mod-service/report.js +38 -14
- package/dist/mod-service/report.js.map +1 -1
- package/dist/mod-service/status.d.ts.map +1 -1
- package/dist/mod-service/status.js +2 -1
- package/dist/mod-service/status.js.map +1 -1
- package/dist/mod-service/subject.d.ts +2 -0
- package/dist/mod-service/subject.d.ts.map +1 -1
- package/dist/mod-service/subject.js +5 -0
- package/dist/mod-service/subject.js.map +1 -1
- package/dist/mod-service/views.d.ts.map +1 -1
- package/dist/mod-service/views.js +11 -14
- package/dist/mod-service/views.js.map +1 -1
- package/dist/queue/service.d.ts +14 -1
- package/dist/queue/service.d.ts.map +1 -1
- package/dist/queue/service.js +39 -7
- package/dist/queue/service.js.map +1 -1
- package/dist/report/stats.d.ts +2 -0
- package/dist/report/stats.d.ts.map +1 -1
- package/dist/report/stats.js +2 -0
- package/dist/report/stats.js.map +1 -1
- package/dist/report/views.d.ts +7 -83
- package/dist/report/views.d.ts.map +1 -1
- package/dist/report/views.js +44 -8
- package/dist/report/views.js.map +1 -1
- package/dist/tag-service/index.d.ts.map +1 -1
- package/dist/tag-service/index.js +10 -5
- package/dist/tag-service/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atproto/ozone
|
|
2
2
|
|
|
3
|
+
## 0.2.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`33f4416`](https://github.com/bluesky-social/atproto/commit/33f441661ffb28bcceef161c9ce381320ff7bb6f)]:
|
|
8
|
+
- @atproto/api@0.20.29
|
|
9
|
+
|
|
10
|
+
## 0.2.15
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#5076](https://github.com/bluesky-social/atproto/pull/5076) [`652016a`](https://github.com/bluesky-social/atproto/commit/652016ad57dca26f43b7f79167ecbfcabd5cbd4d) Thanks [@gcwill70](https://github.com/gcwill70)! - Support routing conversation reports to queues: allow the 'conversation' subject type on queue create/list, fix conversation subject typing in report re-routing, and add 'message'/'conversation' subjectType filters to tools.ozone.report.queryReports
|
|
15
|
+
|
|
16
|
+
- [#5083](https://github.com/bluesky-social/atproto/pull/5083) [`e408d11`](https://github.com/bluesky-social/atproto/commit/e408d11e723e3d232bcbfdb7247301273138cec6) Thanks [@gcwill70](https://github.com/gcwill70)! - add custom queues through moderation_event.modTool.meta.queueId
|
|
17
|
+
|
|
18
|
+
- [#5237](https://github.com/bluesky-social/atproto/pull/5237) [`349693e`](https://github.com/bluesky-social/atproto/commit/349693e63865a5ba88e56a2b760d9e4ad39fe730) Thanks [@devinivy](https://github.com/devinivy)! - Apply subject status tags in deterministic tagger order
|
|
19
|
+
|
|
3
20
|
## 0.2.14
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQueue.d.ts","sourceRoot":"","sources":["../../../src/api/queue/createQueue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAIpD,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"createQueue.d.ts","sourceRoot":"","sources":["../../../src/api/queue/createQueue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAIpD,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QA6DvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuthRequiredError, InvalidRequestError } from '@atproto/xrpc-server';
|
|
2
|
-
const VALID_SUBJECT_TYPES = ['account', 'record', 'message'];
|
|
2
|
+
const VALID_SUBJECT_TYPES = ['account', 'record', 'message', 'conversation'];
|
|
3
3
|
export default function (server, ctx) {
|
|
4
4
|
server.tools.ozone.queue.createQueue({
|
|
5
5
|
auth: ctx.authVerifier.modOrAdminToken,
|
|
@@ -8,7 +8,7 @@ export default function (server, ctx) {
|
|
|
8
8
|
if (!access.isModerator) {
|
|
9
9
|
throw new AuthRequiredError('Must be a moderator to create a queue');
|
|
10
10
|
}
|
|
11
|
-
const { name, subjectTypes, collection, reportTypes, description } = input.body;
|
|
11
|
+
const { name, subjectTypes = [], collection, reportTypes = [], description, } = input.body;
|
|
12
12
|
const createdBy = access.type === 'admin_token' ? 'admin_token' : access.iss;
|
|
13
13
|
const invalidTypes = subjectTypes.filter((t) => !VALID_SUBJECT_TYPES.includes(t));
|
|
14
14
|
if (invalidTypes.length > 0) {
|
|
@@ -19,6 +19,7 @@ export default function (server, ctx) {
|
|
|
19
19
|
}
|
|
20
20
|
const queueService = ctx.queueService(ctx.db);
|
|
21
21
|
await queueService.checkConflict({
|
|
22
|
+
name,
|
|
22
23
|
subjectTypes,
|
|
23
24
|
collection,
|
|
24
25
|
reportTypes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQueue.js","sourceRoot":"","sources":["../../../src/api/queue/createQueue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"createQueue.js","sourceRoot":"","sources":["../../../src/api/queue/createQueue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,CAAC,CAAA;AAE5E,MAAM,CAAC,OAAO,WAAW,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC;QACnC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,eAAe;QACtC,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;YACjC,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAA;YAE/B,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;gBACxB,MAAM,IAAI,iBAAiB,CAAC,uCAAuC,CAAC,CAAA;YACtE,CAAC;YAED,MAAM,EACJ,IAAI,EACJ,YAAY,GAAG,EAAE,EACjB,UAAU,EACV,WAAW,GAAG,EAAE,EAChB,WAAW,GACZ,GAAG,KAAK,CAAC,IAAI,CAAA;YACd,MAAM,SAAS,GACb,MAAM,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAA;YAE5D,MAAM,YAAY,GAAG,YAAY,CAAC,MAAM,CACtC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC,CACxC,CAAA;YACD,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC5B,MAAM,IAAI,mBAAmB,CAC3B,0BAA0B,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EACtG,oBAAoB,CACrB,CAAA;YACH,CAAC;YAED,IAAI,UAAU,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACnD,MAAM,IAAI,mBAAmB,CAC3B,sEAAsE,EACtE,mBAAmB,CACpB,CAAA;YACH,CAAC;YAED,MAAM,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YAE7C,MAAM,YAAY,CAAC,aAAa,CAAC;gBAC/B,IAAI;gBACJ,YAAY;gBACZ,UAAU;gBACV,WAAW;aACZ,CAAC,CAAA;YAEF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC;gBACtC,IAAI;gBACJ,YAAY;gBACZ,UAAU;gBACV,WAAW;gBACX,WAAW;gBACX,SAAS;aACV,CAAC,CAAA;YAEF,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;aAC1C,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import { AuthRequiredError, InvalidRequestError } from '@atproto/xrpc-server'\nimport type { AppContext } from '../../context.js'\nimport type { Server } from '../../lexicon/index.js'\n\nconst VALID_SUBJECT_TYPES = ['account', 'record', 'message', 'conversation']\n\nexport default function (server: Server, ctx: AppContext) {\n server.tools.ozone.queue.createQueue({\n auth: ctx.authVerifier.modOrAdminToken,\n handler: async ({ input, auth }) => {\n const access = auth.credentials\n\n if (!access.isModerator) {\n throw new AuthRequiredError('Must be a moderator to create a queue')\n }\n\n const {\n name,\n subjectTypes = [],\n collection,\n reportTypes = [],\n description,\n } = input.body\n const createdBy =\n access.type === 'admin_token' ? 'admin_token' : access.iss\n\n const invalidTypes = subjectTypes.filter(\n (t) => !VALID_SUBJECT_TYPES.includes(t),\n )\n if (invalidTypes.length > 0) {\n throw new InvalidRequestError(\n `Invalid subject types: ${invalidTypes.join(', ')}. Allowed values: ${VALID_SUBJECT_TYPES.join(', ')}`,\n 'InvalidSubjectType',\n )\n }\n\n if (collection && !subjectTypes.includes('record')) {\n throw new InvalidRequestError(\n 'collection can only be specified when subjectTypes includes \"record\"',\n 'InvalidCollection',\n )\n }\n\n const queueService = ctx.queueService(ctx.db)\n\n await queueService.checkConflict({\n name,\n subjectTypes,\n collection,\n reportTypes,\n })\n\n const queue = await queueService.create({\n name,\n subjectTypes,\n collection,\n reportTypes,\n description,\n createdBy,\n })\n\n return {\n encoding: 'application/json',\n body: { queue: queueService.view(queue) },\n }\n },\n })\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHistoricalStats.d.ts","sourceRoot":"","sources":["../../../src/api/report/getHistoricalStats.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getHistoricalStats.d.ts","sourceRoot":"","sources":["../../../src/api/report/getHistoricalStats.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAGpD,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAwCvD"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { ForbiddenError } from '@atproto/xrpc-server';
|
|
1
2
|
import { viewHistoricalStats } from '../../report/views.js';
|
|
2
3
|
export default function (server, ctx) {
|
|
3
4
|
server.tools.ozone.report.getHistoricalStats({
|
|
4
5
|
auth: ctx.authVerifier.modOrAdminToken,
|
|
5
|
-
handler: async ({ params }) => {
|
|
6
|
+
handler: async ({ params, auth }) => {
|
|
6
7
|
const { queueId, moderatorDid, reportTypes, startDate, endDate, limit, cursor, } = params;
|
|
8
|
+
if (moderatorDid && !auth.credentials.isAdmin) {
|
|
9
|
+
throw new ForbiddenError('Unauthorized');
|
|
10
|
+
}
|
|
7
11
|
const reportStatsService = ctx.reportStatsService(ctx.db);
|
|
8
12
|
const result = await reportStatsService.getHistoricalStats({
|
|
9
13
|
group: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHistoricalStats.js","sourceRoot":"","sources":["../../../src/api/report/getHistoricalStats.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getHistoricalStats.js","sourceRoot":"","sources":["../../../src/api/report/getHistoricalStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAGrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,MAAM,CAAC,OAAO,WAAW,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC;QAC3C,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,eAAe;QACtC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;YAClC,MAAM,EACJ,OAAO,EACP,YAAY,EACZ,WAAW,EACX,SAAS,EACT,OAAO,EACP,KAAK,EACL,MAAM,GACP,GAAG,MAAM,CAAA;YAEV,IAAI,YAAY,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;gBAC9C,MAAM,IAAI,cAAc,CAAC,cAAc,CAAC,CAAA;YAC1C,CAAC;YAED,MAAM,kBAAkB,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YACzD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,kBAAkB,CAAC;gBACzD,KAAK,EAAE;oBACL,OAAO,EAAE,OAAO,IAAI,IAAI;oBACxB,YAAY,EAAE,YAAY,IAAI,IAAI;oBAClC,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI;iBACtD;gBACD,SAAS;gBACT,OAAO;gBACP,KAAK,EAAE,KAAK,IAAI,EAAE;gBAClB,MAAM;aACP,CAAC,CAAA;YAEF,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC;oBAC5C,MAAM,EAAE,MAAM,CAAC,MAAM;iBACtB;aACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import { ForbiddenError } from '@atproto/xrpc-server'\nimport type { AppContext } from '../../context.js'\nimport type { Server } from '../../lexicon/index.js'\nimport { viewHistoricalStats } from '../../report/views.js'\n\nexport default function (server: Server, ctx: AppContext) {\n server.tools.ozone.report.getHistoricalStats({\n auth: ctx.authVerifier.modOrAdminToken,\n handler: async ({ params, auth }) => {\n const {\n queueId,\n moderatorDid,\n reportTypes,\n startDate,\n endDate,\n limit,\n cursor,\n } = params\n\n if (moderatorDid && !auth.credentials.isAdmin) {\n throw new ForbiddenError('Unauthorized')\n }\n\n const reportStatsService = ctx.reportStatsService(ctx.db)\n const result = await reportStatsService.getHistoricalStats({\n group: {\n queueId: queueId ?? null,\n moderatorDid: moderatorDid ?? null,\n reportTypes: reportTypes?.length ? reportTypes : null,\n },\n startDate,\n endDate,\n limit: limit ?? 30,\n cursor,\n })\n\n return {\n encoding: 'application/json',\n body: {\n stats: result.stats.map(viewHistoricalStats),\n cursor: result.cursor,\n },\n }\n },\n })\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLiveStats.d.ts","sourceRoot":"","sources":["../../../src/api/report/getLiveStats.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getLiveStats.d.ts","sourceRoot":"","sources":["../../../src/api/report/getLiveStats.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAGpD,MAAM,CAAC,OAAO,WAAW,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,QAyBvD"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { ForbiddenError } from '@atproto/xrpc-server';
|
|
1
2
|
import { viewLiveStats } from '../../report/views.js';
|
|
2
3
|
export default function (server, ctx) {
|
|
3
4
|
server.tools.ozone.report.getLiveStats({
|
|
4
5
|
auth: ctx.authVerifier.modOrAdminToken,
|
|
5
|
-
handler: async ({ params }) => {
|
|
6
|
+
handler: async ({ params, auth }) => {
|
|
6
7
|
const { queueId, moderatorDid, reportTypes } = params;
|
|
8
|
+
if (moderatorDid && !auth.credentials.isAdmin) {
|
|
9
|
+
throw new ForbiddenError('Unauthorized');
|
|
10
|
+
}
|
|
7
11
|
const reportStatsService = ctx.reportStatsService(ctx.db);
|
|
8
12
|
const row = await reportStatsService.getLiveStats({
|
|
9
13
|
queueId: queueId ?? null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLiveStats.js","sourceRoot":"","sources":["../../../src/api/report/getLiveStats.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getLiveStats.js","sourceRoot":"","sources":["../../../src/api/report/getLiveStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAGrD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAErD,MAAM,CAAC,OAAO,WAAW,MAAc,EAAE,GAAe;IACtD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC;QACrC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,eAAe;QACtC,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;YAClC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CAAA;YAErD,IAAI,YAAY,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;gBAC9C,MAAM,IAAI,cAAc,CAAC,cAAc,CAAC,CAAA;YAC1C,CAAC;YAED,MAAM,kBAAkB,GAAG,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YACzD,MAAM,GAAG,GAAG,MAAM,kBAAkB,CAAC,YAAY,CAAC;gBAChD,OAAO,EAAE,OAAO,IAAI,IAAI;gBACxB,YAAY,EAAE,YAAY,IAAI,IAAI;gBAClC,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI;aACtD,CAAC,CAAA;YAEF,OAAO;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE;oBACJ,KAAK,EAAE,aAAa,CAAC,GAAG,CAAC;iBAC1B;aACF,CAAA;QACH,CAAC;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import { ForbiddenError } from '@atproto/xrpc-server'\nimport type { AppContext } from '../../context.js'\nimport type { Server } from '../../lexicon/index.js'\nimport { viewLiveStats } from '../../report/views.js'\n\nexport default function (server: Server, ctx: AppContext) {\n server.tools.ozone.report.getLiveStats({\n auth: ctx.authVerifier.modOrAdminToken,\n handler: async ({ params, auth }) => {\n const { queueId, moderatorDid, reportTypes } = params\n\n if (moderatorDid && !auth.credentials.isAdmin) {\n throw new ForbiddenError('Unauthorized')\n }\n\n const reportStatsService = ctx.reportStatsService(ctx.db)\n const row = await reportStatsService.getLiveStats({\n queueId: queueId ?? null,\n moderatorDid: moderatorDid ?? null,\n reportTypes: reportTypes?.length ? reportTypes : null,\n })\n\n return {\n encoding: 'application/json',\n body: {\n stats: viewLiveStats(row),\n },\n }\n },\n })\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260617T210022765Z-add-report-isautomated.d.ts","sourceRoot":"","sources":["../../../src/db/migrations/20260617T210022765Z-add-report-isautomated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,wBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAO3D;AAED,wBAAsB,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export async function up(db) {
|
|
2
|
+
await db.schema
|
|
3
|
+
.alterTable('report')
|
|
4
|
+
.addColumn('isAutomated', 'boolean', (col) => col.notNull().defaultTo(false))
|
|
5
|
+
.execute();
|
|
6
|
+
}
|
|
7
|
+
export async function down(db) {
|
|
8
|
+
await db.schema.alterTable('report').dropColumn('isAutomated').execute();
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=20260617T210022765Z-add-report-isautomated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260617T210022765Z-add-report-isautomated.js","sourceRoot":"","sources":["../../../src/db/migrations/20260617T210022765Z-add-report-isautomated.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,KAAK,UAAU,EAAE,CAAC,EAAmB;IAC1C,MAAM,EAAE,CAAC,MAAM;SACZ,UAAU,CAAC,QAAQ,CAAC;SACpB,SAAS,CAAC,aAAa,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,CAC3C,GAAG,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAC/B;SACA,OAAO,EAAE,CAAA;AACd,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,EAAmB;IAC5C,MAAM,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,CAAA;AAC1E,CAAC","sourcesContent":["import type { Kysely } from 'kysely'\n\nexport async function up(db: Kysely<unknown>): Promise<void> {\n await db.schema\n .alterTable('report')\n .addColumn('isAutomated', 'boolean', (col) =>\n col.notNull().defaultTo(false),\n )\n .execute()\n}\n\nexport async function down(db: Kysely<unknown>): Promise<void> {\n await db.schema.alterTable('report').dropColumn('isAutomated').execute()\n}\n"]}
|
|
@@ -38,4 +38,5 @@ export * as _20260318T152058935Z from './20260318T152058935Z-add-report-stat.js'
|
|
|
38
38
|
export * as _20260428T000000000Z from './20260428T000000000Z-add-expiring-tag-table.js';
|
|
39
39
|
export * as _20260513T202941104Z from './20260513T202941104Z-add-subject-convo-id.js';
|
|
40
40
|
export * as _20260602T120000000Z from './20260602T120000000Z-add-report-activity-created-index.js';
|
|
41
|
+
export * as _20260617T210022765Z from './20260617T210022765Z-add-report-isautomated.js';
|
|
41
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/db/migrations/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,oBAAoB,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,gEAAgE,CAAA;AACtG,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CA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oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,mDAAmD,CAAA;AACzF,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,mCAAmC,CAAA;AACzE,OAAO,KAAK,oBAAoB,MAAM,2DAA2D,CAAA;AACjG,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,CAAA;AACxF,OAAO,KAAK,oBAAoB,MAAM,oDAAoD,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,qDAAqD,CAAA;AAC3F,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,CAAA;AACxF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,uDAAuD,CAAA;AAC7F,OAAO,KAAK,oBAAoB,MAAM,8CAA8C,CAAA;AACpF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,oDAAoD,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA"}
|
|
@@ -41,4 +41,5 @@ export * as _20260318T152058935Z from './20260318T152058935Z-add-report-stat.js'
|
|
|
41
41
|
export * as _20260428T000000000Z from './20260428T000000000Z-add-expiring-tag-table.js';
|
|
42
42
|
export * as _20260513T202941104Z from './20260513T202941104Z-add-subject-convo-id.js';
|
|
43
43
|
export * as _20260602T120000000Z from './20260602T120000000Z-add-report-activity-created-index.js';
|
|
44
|
+
export * as _20260617T210022765Z from './20260617T210022765Z-add-report-isautomated.js';
|
|
44
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/migrations/index.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,gGAAgG;AAChG,+FAA+F;AAE/F,OAAO,KAAK,oBAAoB,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,gEAAgE,CAAA;AACtG,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,gDAAgD,CAAA;AACtF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,oBAAoB,MAAM,kCAAkC,CAAA;AACxE,OAAO,KAAK,oBAAoB,MAAM,+DAA+D,CAAA;AACrG,OAAO,KAAK,oBAAoB,MAAM,mDAAmD,CAAA;AACzF,OAAO,KAAK,oBAAoB,MAAM,qDAAqD,CAAA;AAC3F,OAAO,KAAK,oBAAoB,MAAM,mDAAmD,CAAA;AACzF,OAAO,KAAK,oBAAoB,MAAM,+DAA+D,CAAA;AACrG,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,mDAAmD,CAAA;AACzF,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,mCAAmC,CAAA;AACzE,OAAO,KAAK,oBAAoB,MAAM,2DAA2D,CAAA;AACjG,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,CAAA;AACxF,OAAO,KAAK,oBAAoB,MAAM,oDAAoD,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,qDAAqD,CAAA;AAC3F,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,CAAA;AACxF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,uDAAuD,CAAA;AAC7F,OAAO,KAAK,oBAAoB,MAAM,8CAA8C,CAAA;AACpF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,oDAAoD,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA","sourcesContent":["// NOTE this file can be edited by hand, but it is also appended to by the migration:create command.\n// It's important that every migration is exported from here with the proper name. We'd simplify\n// this with kysely's FileMigrationProvider, but it doesn't play nicely with the build process.\n\nexport * as _20231219T205730722Z from './20231219T205730722Z-init.js'\nexport * as _20240116T085607200Z from './20240116T085607200Z-communication-template.js'\nexport * as _20240201T051104136Z from './20240201T051104136Z-mod-event-blobs.js'\nexport * as _20240208T213404429Z from './20240208T213404429Z-add-tags-column-to-moderation-subject.js'\nexport * as _20240228T003647759Z from './20240228T003647759Z-add-label-sigs.js'\nexport * as _20240408T192432676Z from './20240408T192432676Z-mute-reporting.js'\nexport * as _20240506T225055595Z from './20240506T225055595Z-message-subject.js'\nexport * as _20240430T211332580Z from './20240521T211332580Z-member.js'\nexport * as _20240814T003647759Z from './20240814T003647759Z-event-created-at-index.js'\nexport * as _20240903T205730722Z from './20240903T205730722Z-add-template-lang.js'\nexport * as _20240904T205730722Z from './20240904T205730722Z-add-subject-did-index.js'\nexport * as _20241001T205730722Z from './20241001T205730722Z-subject-status-review-state-index.js'\nexport * as _20241008T205730722Z from './20241008T205730722Z-sets.js'\nexport * as _20241018T205730722Z from './20241018T205730722Z-setting.js'\nexport * as _20241026T205730722Z from './20241026T205730722Z-add-hosting-status-to-subject-status.js'\nexport * as _20241220T144630860Z from './20241220T144630860Z-stats-materialized-views.js'\nexport * as _20250204T003647759Z from './20250204T003647759Z-add-subject-priority-score.js'\nexport * as _20250211T003647759Z from './20250211T003647759Z-add-reporter-stats-index.js'\nexport * as _20250211T132135150Z from './20250211T132135150Z-moderation-event-message-partial-idx.js'\nexport * as _20250221T132135150Z from './20250221T132135150Z-member-details.js'\nexport * as _20250404T201720309Z from './20250404T201720309Z-subject-status-sort-idxs.js'\nexport * as _20250415T201720309Z from './20250415T201720309Z-verification.js'\nexport * as _20250417T201720309Z from './20250417T201720309Z-firehose-cursor.js'\nexport * as _20250609T110704000Z from './20250609T110704000Z-safelink.js'\nexport * as _20250618T180246000Z from './20250618T180246000Z-add-mod-tool-to-moderation-event.js'\nexport * as _20250701T000000000Z from './20250701T000000000Z-add-age-assurance-state.js'\nexport * as _20250715T000000000Z from './20250715T000000000Z-add-mod-event-external-id.js'\nexport * as _20250718T150931000Z from './20250718T150931000Z-update-appeal-reason-stats.js'\nexport * as _20250813T000000000Z from './20250813T000000000Z-mod-tool-batch-id-index.js'\nexport * as _20250923T000000000Z from './20250923T000000000Z-scheduled-actions.js'\nexport * as _20251008T120000000Z from './20251008T120000000Z-add-strike-system.js'\nexport * as _20260210T154806448Z from './20260210T154806448Z-mod-event-created-by-indexes.js'\nexport * as _20260219T164523000Z from './20260219T164523000Z-create-report-table.js'\nexport * as _20260219T165302248Z from './20260219T165302248Z-moderator-assignment.js'\nexport * as _20260225T000000000Z from './20260225T000000000Z-add-report-queue-table.js'\nexport * as _20260313T000000000Z from './20260313T000000000Z-add-report-activity-table.js'\nexport * as _20260318T152058935Z from './20260318T152058935Z-add-report-stat.js'\nexport * as _20260428T000000000Z from './20260428T000000000Z-add-expiring-tag-table.js'\nexport * as _20260513T202941104Z from './20260513T202941104Z-add-subject-convo-id.js'\nexport * as _20260602T120000000Z from './20260602T120000000Z-add-report-activity-created-index.js'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/migrations/index.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,gGAAgG;AAChG,+FAA+F;AAE/F,OAAO,KAAK,oBAAoB,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,gEAAgE,CAAA;AACtG,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,gDAAgD,CAAA;AACtF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,oBAAoB,MAAM,kCAAkC,CAAA;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G,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA","sourcesContent":["// NOTE this file can be edited by hand, but it is also appended to by the migration:create command.\n// It's important that every migration is exported from here with the proper name. We'd simplify\n// this with kysely's FileMigrationProvider, but it doesn't play nicely with the build process.\n\nexport * as _20231219T205730722Z from './20231219T205730722Z-init.js'\nexport * as _20240116T085607200Z from './20240116T085607200Z-communication-template.js'\nexport * as _20240201T051104136Z from './20240201T051104136Z-mod-event-blobs.js'\nexport * as _20240208T213404429Z from './20240208T213404429Z-add-tags-column-to-moderation-subject.js'\nexport * as _20240228T003647759Z from './20240228T003647759Z-add-label-sigs.js'\nexport * as _20240408T192432676Z from './20240408T192432676Z-mute-reporting.js'\nexport * as _20240506T225055595Z from './20240506T225055595Z-message-subject.js'\nexport * as _20240430T211332580Z from './20240521T211332580Z-member.js'\nexport * as _20240814T003647759Z from './20240814T003647759Z-event-created-at-index.js'\nexport * as _20240903T205730722Z from './20240903T205730722Z-add-template-lang.js'\nexport * as _20240904T205730722Z from './20240904T205730722Z-add-subject-did-index.js'\nexport * as _20241001T205730722Z from './20241001T205730722Z-subject-status-review-state-index.js'\nexport * as _20241008T205730722Z from './20241008T205730722Z-sets.js'\nexport * as _20241018T205730722Z from './20241018T205730722Z-setting.js'\nexport * as _20241026T205730722Z from './20241026T205730722Z-add-hosting-status-to-subject-status.js'\nexport * as _20241220T144630860Z from './20241220T144630860Z-stats-materialized-views.js'\nexport * as _20250204T003647759Z from './20250204T003647759Z-add-subject-priority-score.js'\nexport * as _20250211T003647759Z from './20250211T003647759Z-add-reporter-stats-index.js'\nexport * as _20250211T132135150Z from './20250211T132135150Z-moderation-event-message-partial-idx.js'\nexport * as _20250221T132135150Z from './20250221T132135150Z-member-details.js'\nexport * as _20250404T201720309Z from './20250404T201720309Z-subject-status-sort-idxs.js'\nexport * as _20250415T201720309Z from './20250415T201720309Z-verification.js'\nexport * as _20250417T201720309Z from './20250417T201720309Z-firehose-cursor.js'\nexport * as _20250609T110704000Z from './20250609T110704000Z-safelink.js'\nexport * as _20250618T180246000Z from './20250618T180246000Z-add-mod-tool-to-moderation-event.js'\nexport * as _20250701T000000000Z from './20250701T000000000Z-add-age-assurance-state.js'\nexport * as _20250715T000000000Z from './20250715T000000000Z-add-mod-event-external-id.js'\nexport * as _20250718T150931000Z from './20250718T150931000Z-update-appeal-reason-stats.js'\nexport * as _20250813T000000000Z from './20250813T000000000Z-mod-tool-batch-id-index.js'\nexport * as _20250923T000000000Z from './20250923T000000000Z-scheduled-actions.js'\nexport * as _20251008T120000000Z from './20251008T120000000Z-add-strike-system.js'\nexport * as _20260210T154806448Z from './20260210T154806448Z-mod-event-created-by-indexes.js'\nexport * as _20260219T164523000Z from './20260219T164523000Z-create-report-table.js'\nexport * as _20260219T165302248Z from './20260219T165302248Z-moderator-assignment.js'\nexport * as _20260225T000000000Z from './20260225T000000000Z-add-report-queue-table.js'\nexport * as _20260313T000000000Z from './20260313T000000000Z-add-report-activity-table.js'\nexport * as _20260318T152058935Z from './20260318T152058935Z-add-report-stat.js'\nexport * as _20260428T000000000Z from './20260428T000000000Z-add-expiring-tag-table.js'\nexport * as _20260513T202941104Z from './20260513T202941104Z-add-subject-convo-id.js'\nexport * as _20260602T120000000Z from './20260602T120000000Z-add-report-activity-created-index.js'\nexport * as _20260617T210022765Z from './20260617T210022765Z-add-report-isautomated.js'\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/db/schema/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAEvC,eAAO,MAAM,eAAe,WAAW,CAAA;AAEvC,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IAC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AAA;IAClB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../src/db/schema/report.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA","sourcesContent":["import type { Generated } from 'kysely'\n\nexport const reportTableName = 'report'\n\nexport interface Report {\n id: Generated<number>\n eventId: number // References moderation_event.id\n queueId: number | null // NULL = not yet assigned, -1 = no matching queue\n queuedAt: string | null\n actionEventIds: number[] | null // Array of event IDs, sorted DESC [newest, ..., oldest]\n actionNote: string | null\n isMuted: boolean\n status: string // 'open', 'closed', 'escalated', 'queued', 'assigned'\n reportType: string // Denormalized from moderation_event.meta.reportType\n did: string // Denormalized from moderation_event.subjectDid\n recordPath: string // '' = account/message/conversation, 'collection/rkey' = record\n subjectMessageId: string | null // Denormalized from moderation_event.subjectMessageId\n subjectConvoId: string | null // Denormalized from moderation_event.subjectConvoId\n createdAt: string\n updatedAt: string\n assignedTo: string | null // DID of permanently assigned moderator, null if unassigned\n assignedAt: string | null // When the permanent assignment was created\n closedAt: string | null\n}\n\nexport type PartialDB = {\n [reportTableName]: Report\n}\n"]}
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../src/db/schema/report.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA","sourcesContent":["import type { Generated } from 'kysely'\n\nexport const reportTableName = 'report'\n\nexport interface Report {\n id: Generated<number>\n eventId: number // References moderation_event.id\n queueId: number | null // NULL = not yet assigned, -1 = no matching queue\n queuedAt: string | null\n actionEventIds: number[] | null // Array of event IDs, sorted DESC [newest, ..., oldest]\n actionNote: string | null\n isMuted: boolean\n isAutomated: boolean // Denormalized from moderation_event.modTool.meta.isAutomated\n status: string // 'open', 'closed', 'escalated', 'queued', 'assigned'\n reportType: string // Denormalized from moderation_event.meta.reportType\n did: string // Denormalized from moderation_event.subjectDid\n recordPath: string // '' = account/message/conversation, 'collection/rkey' = record\n subjectMessageId: string | null // Denormalized from moderation_event.subjectMessageId\n subjectConvoId: string | null // Denormalized from moderation_event.subjectConvoId\n createdAt: string\n updatedAt: string\n assignedTo: string | null // DID of permanently assigned moderator, null if unassigned\n assignedAt: string | null // When the permanent assignment was created\n closedAt: string | null\n}\n\nexport type PartialDB = {\n [reportTableName]: Report\n}\n"]}
|
|
@@ -20890,12 +20890,12 @@ export declare const schemaDict: {
|
|
|
20890
20890
|
readonly defs: {
|
|
20891
20891
|
readonly main: {
|
|
20892
20892
|
readonly type: 'procedure';
|
|
20893
|
-
readonly description:
|
|
20893
|
+
readonly description: "Create a new moderation queue. A queue can have optional matching criteria that ozone's queue router will use to match reports. A queue with no criteria must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`.";
|
|
20894
20894
|
readonly input: {
|
|
20895
20895
|
readonly encoding: 'application/json';
|
|
20896
20896
|
readonly schema: {
|
|
20897
20897
|
readonly type: 'object';
|
|
20898
|
-
readonly required: ["name"
|
|
20898
|
+
readonly required: ["name"];
|
|
20899
20899
|
readonly properties: {
|
|
20900
20900
|
readonly name: {
|
|
20901
20901
|
readonly type: 'string';
|
|
@@ -20903,10 +20903,9 @@ export declare const schemaDict: {
|
|
|
20903
20903
|
};
|
|
20904
20904
|
readonly subjectTypes: {
|
|
20905
20905
|
readonly type: 'array';
|
|
20906
|
-
readonly minLength: 1;
|
|
20907
20906
|
readonly items: {
|
|
20908
20907
|
readonly type: 'string';
|
|
20909
|
-
readonly knownValues: ["account", "record", "message"];
|
|
20908
|
+
readonly knownValues: ["account", "record", "message", "conversation"];
|
|
20910
20909
|
};
|
|
20911
20910
|
readonly description: 'Subject types this queue accepts';
|
|
20912
20911
|
};
|
|
@@ -20920,7 +20919,6 @@ export declare const schemaDict: {
|
|
|
20920
20919
|
readonly items: {
|
|
20921
20920
|
readonly type: 'string';
|
|
20922
20921
|
};
|
|
20923
|
-
readonly minLength: 1;
|
|
20924
20922
|
readonly maxLength: 25;
|
|
20925
20923
|
readonly description: 'Report reason types (fully qualified NSIDs)';
|
|
20926
20924
|
};
|
|
@@ -20957,7 +20955,7 @@ export declare const schemaDict: {
|
|
|
20957
20955
|
readonly defs: {
|
|
20958
20956
|
readonly queueView: {
|
|
20959
20957
|
readonly type: 'object';
|
|
20960
|
-
readonly required: ["id", "name", "
|
|
20958
|
+
readonly required: ["id", "name", "createdBy", "createdAt", "updatedAt", "enabled", "stats"];
|
|
20961
20959
|
readonly properties: {
|
|
20962
20960
|
readonly id: {
|
|
20963
20961
|
readonly type: 'integer';
|
|
@@ -20969,10 +20967,9 @@ export declare const schemaDict: {
|
|
|
20969
20967
|
};
|
|
20970
20968
|
readonly subjectTypes: {
|
|
20971
20969
|
readonly type: 'array';
|
|
20972
|
-
readonly minLength: 1;
|
|
20973
20970
|
readonly items: {
|
|
20974
20971
|
readonly type: 'string';
|
|
20975
|
-
readonly knownValues: ["account", "record", "message"];
|
|
20972
|
+
readonly knownValues: ["account", "record", "message", "conversation"];
|
|
20976
20973
|
};
|
|
20977
20974
|
readonly description: 'Subject types this queue accepts.';
|
|
20978
20975
|
};
|
|
@@ -20986,7 +20983,6 @@ export declare const schemaDict: {
|
|
|
20986
20983
|
readonly items: {
|
|
20987
20984
|
readonly type: 'string';
|
|
20988
20985
|
};
|
|
20989
|
-
readonly minLength: 1;
|
|
20990
20986
|
readonly description: 'Report reason types this queue accepts (fully qualified NSIDs)';
|
|
20991
20987
|
};
|
|
20992
20988
|
readonly description: {
|
|
@@ -21211,7 +21207,7 @@ export declare const schemaDict: {
|
|
|
21211
21207
|
};
|
|
21212
21208
|
readonly subjectType: {
|
|
21213
21209
|
readonly type: 'string';
|
|
21214
|
-
readonly description: "Filter queues that handle this subject type ('account' or '
|
|
21210
|
+
readonly description: "Filter queues that handle this subject type ('account', 'record', 'message', or 'conversation').";
|
|
21215
21211
|
};
|
|
21216
21212
|
readonly collection: {
|
|
21217
21213
|
readonly type: 'string';
|
|
@@ -21788,6 +21784,11 @@ export declare const schemaDict: {
|
|
|
21788
21784
|
readonly type: 'boolean';
|
|
21789
21785
|
readonly description: '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.';
|
|
21790
21786
|
};
|
|
21787
|
+
readonly isAutomated: {
|
|
21788
|
+
readonly type: 'boolean';
|
|
21789
|
+
readonly default: false;
|
|
21790
|
+
readonly description: 'Whether this report was emitted by automated tooling.';
|
|
21791
|
+
};
|
|
21791
21792
|
};
|
|
21792
21793
|
};
|
|
21793
21794
|
readonly queueActivity: {
|
|
@@ -22412,8 +22413,8 @@ export declare const schemaDict: {
|
|
|
22412
22413
|
};
|
|
22413
22414
|
readonly subjectType: {
|
|
22414
22415
|
readonly type: 'string';
|
|
22415
|
-
readonly description: 'If specified, reports of the given type
|
|
22416
|
-
readonly knownValues: ["account", "record"];
|
|
22416
|
+
readonly description: 'If specified, reports of the given subject type will be returned.';
|
|
22417
|
+
readonly knownValues: ["account", "record", "message", "conversation"];
|
|
22417
22418
|
};
|
|
22418
22419
|
readonly collections: {
|
|
22419
22420
|
readonly type: 'array';
|
|
@@ -44864,12 +44865,12 @@ export declare const schemas: ({
|
|
|
44864
44865
|
readonly defs: {
|
|
44865
44866
|
readonly main: {
|
|
44866
44867
|
readonly type: 'procedure';
|
|
44867
|
-
readonly description:
|
|
44868
|
+
readonly description: "Create a new moderation queue. A queue can have optional matching criteria that ozone's queue router will use to match reports. A queue with no criteria must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`.";
|
|
44868
44869
|
readonly input: {
|
|
44869
44870
|
readonly encoding: 'application/json';
|
|
44870
44871
|
readonly schema: {
|
|
44871
44872
|
readonly type: 'object';
|
|
44872
|
-
readonly required: ["name"
|
|
44873
|
+
readonly required: ["name"];
|
|
44873
44874
|
readonly properties: {
|
|
44874
44875
|
readonly name: {
|
|
44875
44876
|
readonly type: 'string';
|
|
@@ -44877,10 +44878,9 @@ export declare const schemas: ({
|
|
|
44877
44878
|
};
|
|
44878
44879
|
readonly subjectTypes: {
|
|
44879
44880
|
readonly type: 'array';
|
|
44880
|
-
readonly minLength: 1;
|
|
44881
44881
|
readonly items: {
|
|
44882
44882
|
readonly type: 'string';
|
|
44883
|
-
readonly knownValues: ["account", "record", "message"];
|
|
44883
|
+
readonly knownValues: ["account", "record", "message", "conversation"];
|
|
44884
44884
|
};
|
|
44885
44885
|
readonly description: 'Subject types this queue accepts';
|
|
44886
44886
|
};
|
|
@@ -44894,7 +44894,6 @@ export declare const schemas: ({
|
|
|
44894
44894
|
readonly items: {
|
|
44895
44895
|
readonly type: 'string';
|
|
44896
44896
|
};
|
|
44897
|
-
readonly minLength: 1;
|
|
44898
44897
|
readonly maxLength: 25;
|
|
44899
44898
|
readonly description: 'Report reason types (fully qualified NSIDs)';
|
|
44900
44899
|
};
|
|
@@ -44930,7 +44929,7 @@ export declare const schemas: ({
|
|
|
44930
44929
|
readonly defs: {
|
|
44931
44930
|
readonly queueView: {
|
|
44932
44931
|
readonly type: 'object';
|
|
44933
|
-
readonly required: ["id", "name", "
|
|
44932
|
+
readonly required: ["id", "name", "createdBy", "createdAt", "updatedAt", "enabled", "stats"];
|
|
44934
44933
|
readonly properties: {
|
|
44935
44934
|
readonly id: {
|
|
44936
44935
|
readonly type: 'integer';
|
|
@@ -44942,10 +44941,9 @@ export declare const schemas: ({
|
|
|
44942
44941
|
};
|
|
44943
44942
|
readonly subjectTypes: {
|
|
44944
44943
|
readonly type: 'array';
|
|
44945
|
-
readonly minLength: 1;
|
|
44946
44944
|
readonly items: {
|
|
44947
44945
|
readonly type: 'string';
|
|
44948
|
-
readonly knownValues: ["account", "record", "message"];
|
|
44946
|
+
readonly knownValues: ["account", "record", "message", "conversation"];
|
|
44949
44947
|
};
|
|
44950
44948
|
readonly description: 'Subject types this queue accepts.';
|
|
44951
44949
|
};
|
|
@@ -44959,7 +44957,6 @@ export declare const schemas: ({
|
|
|
44959
44957
|
readonly items: {
|
|
44960
44958
|
readonly type: 'string';
|
|
44961
44959
|
};
|
|
44962
|
-
readonly minLength: 1;
|
|
44963
44960
|
readonly description: 'Report reason types this queue accepts (fully qualified NSIDs)';
|
|
44964
44961
|
};
|
|
44965
44962
|
readonly description: {
|
|
@@ -45181,7 +45178,7 @@ export declare const schemas: ({
|
|
|
45181
45178
|
};
|
|
45182
45179
|
readonly subjectType: {
|
|
45183
45180
|
readonly type: 'string';
|
|
45184
|
-
readonly description: "Filter queues that handle this subject type ('account' or '
|
|
45181
|
+
readonly description: "Filter queues that handle this subject type ('account', 'record', 'message', or 'conversation').";
|
|
45185
45182
|
};
|
|
45186
45183
|
readonly collection: {
|
|
45187
45184
|
readonly type: 'string';
|
|
@@ -45752,6 +45749,11 @@ export declare const schemas: ({
|
|
|
45752
45749
|
readonly type: 'boolean';
|
|
45753
45750
|
readonly description: '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.';
|
|
45754
45751
|
};
|
|
45752
|
+
readonly isAutomated: {
|
|
45753
|
+
readonly type: 'boolean';
|
|
45754
|
+
readonly default: false;
|
|
45755
|
+
readonly description: 'Whether this report was emitted by automated tooling.';
|
|
45756
|
+
};
|
|
45755
45757
|
};
|
|
45756
45758
|
};
|
|
45757
45759
|
readonly queueActivity: {
|
|
@@ -46368,8 +46370,8 @@ export declare const schemas: ({
|
|
|
46368
46370
|
};
|
|
46369
46371
|
readonly subjectType: {
|
|
46370
46372
|
readonly type: 'string';
|
|
46371
|
-
readonly description: 'If specified, reports of the given type
|
|
46372
|
-
readonly knownValues: ["account", "record"];
|
|
46373
|
+
readonly description: 'If specified, reports of the given subject type will be returned.';
|
|
46374
|
+
readonly knownValues: ["account", "record", "message", "conversation"];
|
|
46373
46375
|
};
|
|
46374
46376
|
readonly collections: {
|
|
46375
46377
|
readonly type: 'array';
|