@atproto/ozone 0.10.1 → 0.10.3
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 +21 -0
- package/README.md +8 -0
- package/dist/api/label/subscribeLabels.d.ts.map +1 -1
- package/dist/api/label/subscribeLabels.js +36 -2
- package/dist/api/label/subscribeLabels.js.map +1 -1
- package/dist/api/queue/assignModerator.d.ts.map +1 -1
- package/dist/api/queue/assignModerator.js +1 -1
- package/dist/api/queue/assignModerator.js.map +1 -1
- package/dist/api/queue/createQueue.d.ts.map +1 -1
- package/dist/api/queue/createQueue.js +5 -1
- package/dist/api/queue/createQueue.js.map +1 -1
- package/dist/api/queue/deleteQueue.d.ts.map +1 -1
- package/dist/api/queue/deleteQueue.js +27 -14
- package/dist/api/queue/deleteQueue.js.map +1 -1
- package/dist/api/queue/listQueues.d.ts.map +1 -1
- package/dist/api/queue/listQueues.js +3 -1
- package/dist/api/queue/listQueues.js.map +1 -1
- package/dist/api/queue/updateQueue.d.ts.map +1 -1
- package/dist/api/queue/updateQueue.js +11 -2
- package/dist/api/queue/updateQueue.js.map +1 -1
- package/dist/api/report/getReport.d.ts.map +1 -1
- package/dist/api/report/getReport.js +6 -2
- package/dist/api/report/getReport.js.map +1 -1
- package/dist/api/report/queryReports.d.ts.map +1 -1
- package/dist/api/report/queryReports.js +5 -0
- package/dist/api/report/queryReports.js.map +1 -1
- package/dist/api/safelink/queryRules.d.ts.map +1 -1
- package/dist/api/safelink/queryRules.js +2 -1
- package/dist/api/safelink/queryRules.js.map +1 -1
- package/dist/assignment/index.d.ts +3 -1
- package/dist/assignment/index.d.ts.map +1 -1
- package/dist/assignment/index.js +29 -19
- package/dist/assignment/index.js.map +1 -1
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +1 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/env.d.ts +1 -0
- package/dist/config/env.d.ts.map +1 -1
- package/dist/config/env.js +1 -0
- package/dist/config/env.js.map +1 -1
- package/dist/db/migrations/20261020T000000000Z-add-queue-strict-access.d.ts +4 -0
- package/dist/db/migrations/20261020T000000000Z-add-queue-strict-access.d.ts.map +1 -0
- package/dist/db/migrations/20261020T000000000Z-add-queue-strict-access.js +13 -0
- package/dist/db/migrations/20261020T000000000Z-add-queue-strict-access.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_queue.d.ts +1 -0
- package/dist/db/schema/report_queue.d.ts.map +1 -1
- package/dist/db/schema/report_queue.js.map +1 -1
- package/dist/db/schema/report_stat.js.map +1 -1
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.d.ts +2 -0
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.js +1 -1
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts +4 -0
- package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.js +1 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/queue/updateQueue.defs.d.ts +2 -0
- package/dist/lexicons/tools/ozone/queue/updateQueue.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/queue/updateQueue.defs.js +1 -1
- package/dist/lexicons/tools/ozone/queue/updateQueue.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/queryRules.defs.d.ts +6 -0
- package/dist/lexicons/tools/ozone/safelink/queryRules.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/queryRules.defs.js +1 -1
- package/dist/lexicons/tools/ozone/safelink/queryRules.defs.js.map +1 -1
- package/dist/logger.d.ts +1 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +1 -0
- package/dist/logger.js.map +1 -1
- package/dist/queue/access.d.ts +19 -0
- package/dist/queue/access.d.ts.map +1 -0
- package/dist/queue/access.js +51 -0
- package/dist/queue/access.js.map +1 -0
- package/dist/queue/service.d.ts +7 -3
- package/dist/queue/service.d.ts.map +1 -1
- package/dist/queue/service.js +10 -3
- package/dist/queue/service.js.map +1 -1
- package/dist/report/stats.d.ts.map +1 -1
- package/dist/report/stats.js +1 -0
- package/dist/report/stats.js.map +1 -1
- package/dist/safelink/service.d.ts +2 -1
- package/dist/safelink/service.d.ts.map +1 -1
- package/dist/safelink/service.js +4 -1
- package/dist/safelink/service.js.map +1 -1
- package/dist/sequencer/backfill-rate-limiter.d.ts +10 -0
- package/dist/sequencer/backfill-rate-limiter.d.ts.map +1 -0
- package/dist/sequencer/backfill-rate-limiter.js +34 -0
- package/dist/sequencer/backfill-rate-limiter.js.map +1 -0
- package/dist/sequencer/outbox.d.ts +3 -1
- package/dist/sequencer/outbox.d.ts.map +1 -1
- package/dist/sequencer/outbox.js +12 -4
- package/dist/sequencer/outbox.js.map +1 -1
- package/package.json +9 -9
|
@@ -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,oBA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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;AACvF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,mEAAmE,CAAA;AACzG,OAAO,KAAK,oBAAoB,MAAM,sDAAsD,CAAA;AAC5F,OAAO,KAAK,oBAAoB,MAAM,qDAAqD,CAAA;AAC3F,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,CAAA;AACxF,OAAO,KAAK,oBAAoB,MAAM,qCAAqC,CAAA;AAC3E,OAAO,KAAK,oBAAoB,MAAM,8CAA8C,CAAA;AACpF,OAAO,KAAK,oBAAoB,MAAM,8CAA8C,CAAA;AACpF,OAAO,KAAK,oBAAoB,MAAM,0DAA0D,CAAA;AAChG,OAAO,KAAK,oBAAoB,MAAM,wDAAwD,CAAA;AAC9F,OAAO,KAAK,oBAAoB,MAAM,wDAAwD,CAAA;AAC9F,OAAO,KAAK,oBAAoB,MAAM,mDAAmD,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'\nexport * as _20260720T000000000Z from './20260720T000000000Z-add-convo-subjects-to-stats-views.js'\nexport * as _20260731T000000000Z from './20260731T000000000Z-add-recommended-policies-to-report-queue.js'\nexport * as _20260810T000000000Z from './20260810T000000000Z-add-report-stats-components.js'\nexport * as _20260922T153505234Z from './20260922T153505234Z-add-report-closed-at-index.js'\nexport * as _20260928T000000000Z from './20260928T000000000Z-inbox-appeal.js'\nexport * as _20261002T000000000Z from './20261002T000000000Z-add-report-reporter-did.js'\nexport * as _20261005T000000000Z from './20261005T000000000Z-inbox-seen.js'\nexport * as _20261005T000000001Z from './20261005T000000001Z-inbox-notifications.js'\nexport * as _20261008T000000000Z from './20261008T000000000Z-add-report-priority.js'\nexport * as _20261008T000000001Z from './20261008T000000001Z-add-report-closure-target-stats.js'\nexport * as _20261012T000000000Z from './20261012T000000000Z-inbox-notification-categories.js'\nexport * as _20261016T000000000Z from './20261016T000000000Z-add-report-queue-tag-criteria.js'\nexport * as _20261016T174053481Z from './20261016T174053481Z-add-safelink-rule-source.js'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/migrations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A0D,CAAA;AAChG,OAAO,KAAK,oBAAoB,MAAM,wDAAwD,CAAA;AAC9F,OAAO,KAAK,oBAAoB,MAAM,wDAAwD,CAAA;AAC9F,OAAO,KAAK,oBAAoB,MAAM,mDAAmD,CAAA;AACzF,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,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'\nexport * as _20260720T000000000Z from './20260720T000000000Z-add-convo-subjects-to-stats-views.js'\nexport * as _20260731T000000000Z from './20260731T000000000Z-add-recommended-policies-to-report-queue.js'\nexport * as _20260810T000000000Z from './20260810T000000000Z-add-report-stats-components.js'\nexport * as _20260922T153505234Z from './20260922T153505234Z-add-report-closed-at-index.js'\nexport * as _20260928T000000000Z from './20260928T000000000Z-inbox-appeal.js'\nexport * as _20261002T000000000Z from './20261002T000000000Z-add-report-reporter-did.js'\nexport * as _20261005T000000000Z from './20261005T000000000Z-inbox-seen.js'\nexport * as _20261005T000000001Z from './20261005T000000001Z-inbox-notifications.js'\nexport * as _20261008T000000000Z from './20261008T000000000Z-add-report-priority.js'\nexport * as _20261008T000000001Z from './20261008T000000001Z-add-report-closure-target-stats.js'\nexport * as _20261012T000000000Z from './20261012T000000000Z-inbox-notification-categories.js'\nexport * as _20261016T000000000Z from './20261016T000000000Z-add-report-queue-tag-criteria.js'\nexport * as _20261016T174053481Z from './20261016T174053481Z-add-safelink-rule-source.js'\nexport * as _20261020T000000000Z from './20261020T000000000Z-add-queue-strict-access.js'\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_queue.d.ts","sourceRoot":"","sources":["../../../src/db/schema/report_queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzE,eAAO,MAAM,oBAAoB,iBAAiB,CAAA;AAElD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC7B;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAA;IAC7B,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,G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B,CAAC,oBAAoB,CAAC,EAAE,WAAW,CAAA;CACpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_queue.js","sourceRoot":"","sources":["../../../src/db/schema/report_queue.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAA","sourcesContent":["import type { Generated } from 'kysely'\nimport type { DatetimeString, DidString, NsidString } from '@atproto/lex'\n\nexport const reportQueueTableName = 'report_queue'\n\nexport interface ReportQueue {\n id: Generated<number>\n name: string\n subjectTypes: string[] // ['account'] or ['record'] or ['account', 'record']\n collection: NsidString | null // Collection name (e.g., 'app.bsky.feed.post'), NULL for accounts\n reportTypes: string[] // Report reason types; [] matches no reports automatically.\n /**\n * Match tags on the account submitting the report.\n */\n reporterTags: string[] | null\n /**\n * Match tags on the account that is being reported against.\n */\n accountTags: string[] | null\n description: string | null // Optional description of the queue\n recommendedPolicies: string[] // Policy keys recommended for reports in this queue\n recommendedLabels: string[] // Label values recommended for this queue and used for appeal routing\n createdBy: DidString | 'admin_token' // DID of moderator who created this queue\n createdAt: DatetimeString\n updatedAt: DatetimeString\n enabled: boolean\n deletedAt: string | null // NULL = active, timestamp = soft-deleted\n}\n\nexport type PartialDB = {\n [reportQueueTableName]: ReportQueue\n}\n"]}
|
|
1
|
+
{"version":3,"file":"report_queue.js","sourceRoot":"","sources":["../../../src/db/schema/report_queue.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAA","sourcesContent":["import type { Generated } from 'kysely'\nimport type { DatetimeString, DidString, NsidString } from '@atproto/lex'\n\nexport const reportQueueTableName = 'report_queue'\n\nexport interface ReportQueue {\n id: Generated<number>\n name: string\n subjectTypes: string[] // ['account'] or ['record'] or ['account', 'record']\n collection: NsidString | null // Collection name (e.g., 'app.bsky.feed.post'), NULL for accounts\n reportTypes: string[] // Report reason types; [] matches no reports automatically.\n /**\n * Match tags on the account submitting the report.\n */\n reporterTags: string[] | null\n /**\n * Match tags on the account that is being reported against.\n */\n accountTags: string[] | null\n description: string | null // Optional description of the queue\n recommendedPolicies: string[] // Policy keys recommended for reports in this queue\n recommendedLabels: string[] // Label values recommended for this queue and used for appeal routing\n createdBy: DidString | 'admin_token' // DID of moderator who created this queue\n createdAt: DatetimeString\n updatedAt: DatetimeString\n enabled: boolean\n strictAccess: Generated<boolean>\n deletedAt: string | null // NULL = active, timestamp = soft-deleted\n}\n\nexport type PartialDB = {\n [reportQueueTableName]: ReportQueue\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_stat.js","sourceRoot":"","sources":["../../../src/db/schema/report_stat.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAA","sourcesContent":["import type { Generated } from 'kysely'\nimport type { DatetimeString, DidString } from '@atproto/lex'\n\n/**\n * A calendar day in `YYYY-MM-DD` form. Typed as a template literal so it\n * composes into a {@link DatetimeString} without a cast.\n */\nexport type DateString = `${string}-${string}-${string}`\n\nexport const reportStatTableName = 'report_stat'\n\nexport interface ReportStat {\n // metadata\n id: Generated<number>\n computedAt: DatetimeString // When this snapshot was last computed\n\n // group\n date: DateString // ISO date e.g. '2026-04-15' — the calendar day this snapshot covers\n queueId: number | null // NULL = aggregate across all queues\n reportTypes: string[] | null // NULL = aggregate across all report types\n moderatorDid: DidString | null // NULL = aggregate, non-null = per-moderator\n\n // inbound\n inboundCount: number | null //
|
|
1
|
+
{"version":3,"file":"report_stat.js","sourceRoot":"","sources":["../../../src/db/schema/report_stat.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAA","sourcesContent":["import type { Generated } from 'kysely'\nimport type { DatetimeString, DidString } from '@atproto/lex'\n\n/**\n * A calendar day in `YYYY-MM-DD` form. Typed as a template literal so it\n * composes into a {@link DatetimeString} without a cast.\n */\nexport type DateString = `${string}-${string}-${string}`\n\nexport const reportStatTableName = 'report_stat'\n\nexport interface ReportStat {\n // metadata\n id: Generated<number>\n computedAt: DatetimeString // When this snapshot was last computed\n\n // group\n date: DateString // ISO date e.g. '2026-04-15' — the calendar day this snapshot covers\n queueId: number | null // NULL = aggregate across all queues\n reportTypes: string[] | null // NULL = aggregate across all report types\n moderatorDid: DidString | null // NULL = aggregate, non-null = per-moderator\n\n // inbound\n inboundCount: number | null // Unmuted reports received during this calendar day\n\n // unresolved\n pendingCount: number | null // Unmuted reports not closed at the snapshot time\n escalatedCount: number | null // Reports escalated during this calendar day\n\n // resolved\n actionedCount: number | null // Current closures whose last action was enforcement\n actionRate: number | null // actionedCount / closedCount * 100\n labelActionCount: number | null // Current closures whose last action was label\n tagActionCount: number | null // Current closures whose last action was tag\n takedownActionCount: number | null // Current closures whose last action was takedown\n acknowledgedCount: number | null // Current closures without a last enforcement action\n closedCount: number | null // Current reports with closedAt in this calendar day\n\n // handling time\n avgHandlingTimeSec: number | null // Average time from assignment to close, in seconds\n ahtDurationSec: number | null // Sum of assignment-to-close durations\n ahtSampleCount: number | null // Assigned closed-report samples in ahtDurationSec\n\n // resolution time\n resolutionDurationSec: number | null // Sum of creation-to-close durations\n resolutionSampleCount: number | null // Closed-report samples in resolutionDurationSec\n avgResolutionTimeSec: number | null // Average time from creation to close, in seconds\n\n // closure target\n /** Current closures within the closure target, inclusive. */\n closureTargetMetCount: number | null\n /** Current closures exceeding the closure target. */\n closureTargetMissedCount: number | null\n /** Unmuted pending reports past their closure target. */\n closureTargetOverdueCount: number | null\n}\n\nexport type PartialDB = {\n [reportStatTableName]: ReportStat\n}\n"]}
|
|
@@ -23,6 +23,7 @@ export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
|
23
23
|
description: l.OptionalSchema<l.StringSchema<{}>>;
|
|
24
24
|
recommendedPolicies: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
25
25
|
recommendedLabels: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
26
|
+
strictAccess: l.OptionalSchema<l.BooleanSchema>;
|
|
26
27
|
}>>;
|
|
27
28
|
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
|
|
28
29
|
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
|
|
@@ -50,6 +51,7 @@ declare const main: l.Procedure<"tools.ozone.queue.createQueue", l.ParamsSchema<
|
|
|
50
51
|
description: l.OptionalSchema<l.StringSchema<{}>>;
|
|
51
52
|
recommendedPolicies: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
52
53
|
recommendedLabels: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
54
|
+
strictAccess: l.OptionalSchema<l.BooleanSchema>;
|
|
53
55
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
54
56
|
queue: l.RefSchema<l.Validator<QueueDefs.QueueView, QueueDefs.QueueView>>;
|
|
55
57
|
}>>, readonly ["InvalidRecommendedPolicies", "ConflictingQueue"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQueue.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/createQueue.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,QAAA,MAAM,KAAK,kCAAkC,CAAC;AAE9C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"createQueue.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/createQueue.defs.ts"],"names":[],"mappings":"AAI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|
|
6
6
|
const $nsid = "tools.ozone.queue.createQueue";
|
|
7
7
|
export { $nsid };
|
|
8
8
|
export const $params = /*#__PURE__*/ l.params();
|
|
9
|
-
export const $input = /*#__PURE__*/ l.jsonPayload({ "name": /*#__PURE__*/ l.string(), "subjectTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "collection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "nsid" })), "reportTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "reporterTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "accountTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())) });
|
|
9
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({ "name": /*#__PURE__*/ l.string(), "subjectTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "collection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "nsid" })), "reportTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "reporterTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "accountTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "strictAccess": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()) });
|
|
10
10
|
export const $output = /*#__PURE__*/ l.jsonPayload({ "queue": /*#__PURE__*/ l.ref((() => QueueDefs.queueView)) });
|
|
11
11
|
/** Create a new moderation queue. A queue with omitted or empty subjectTypes or reportTypes must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`. */
|
|
12
12
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["InvalidRecommendedPolicies", "ConflictingQueue"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQueue.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/createQueue.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,MAAM,KAAK,GAAG,+BAA+B,CAAC;AAI9C,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AAIhD,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,MAAM,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAC,cAAc,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAiE,CAAG,CAAC,EAAC,YAAY,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,MAAM,E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CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAG,CAAC,EAAC,mBAAmB,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAG,CAAC,EAAC,cAAc,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAC,CAAC,CAAC;AAKn9B,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,OAAO,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAsB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CAAC,EAAC,CAAC,CAAC;AAK3I,yPAAyP;AACzP,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,4BAA4B,EAAC,kBAAkB,CAAC,CAAC,CAAC;AAE3H,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,KAAK,CAAC;AAInB,OAAO,EAAE,IAAI,EAAE,CAAC","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from \"@atproto/lex\";\nimport * as QueueDefs from \"./defs.defs.js\";\n\nconst $nsid = \"tools.ozone.queue.createQueue\";\n\ntype $nsid = typeof $nsid;\n\nexport { $nsid };\n\nexport const $params = /*#__PURE__*/ l.params();\n\nexport type $Params = l.InferOutput<typeof $params>;\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\"name\":/*#__PURE__*/ l.string(),\"subjectTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string<{\"knownValues\":[\"account\",\"record\",\"message\",\"conversation\"]}>(), )),\"collection\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"nsid\"})),\"reportTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"reporterTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"accountTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"description\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"recommendedPolicies\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"recommendedLabels\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"strictAccess\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean())});\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\"queue\":/*#__PURE__*/ l.ref<QueueDefs.QueueView>((() => QueueDefs.queueView) as any)});\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;\n\n/** Create a new moderation queue. A queue with omitted or empty subjectTypes or reportTypes must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`. */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [\"InvalidRecommendedPolicies\",\"ConflictingQueue\"]);\n\nexport { main };\n\nconst $lxm = $nsid;\n\ntype $lxm = typeof $lxm;\n\nexport { $lxm };\n"]}
|
|
@@ -63,6 +63,10 @@ type QueueView = {
|
|
|
63
63
|
* Statistics about this queue
|
|
64
64
|
*/
|
|
65
65
|
"stats": QueueStats;
|
|
66
|
+
/**
|
|
67
|
+
* Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.
|
|
68
|
+
*/
|
|
69
|
+
"strictAccess"?: boolean;
|
|
66
70
|
};
|
|
67
71
|
export type { QueueView };
|
|
68
72
|
declare const queueView: l.TypedObjectSchema<"tools.ozone.queue.defs#queueView", l.Validator<QueueView, QueueView>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAEjD,QAAA,MAAM,KAAK,2BAA2B,CAAC;AAEvC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,KAAK,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,kCAAkC,CAAC;IAE5D;;OAEG;IACH,IAAI,EAAC,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,EAAC,MAAM,CAAC;IAEd;;OAEG;IACH,cAAc,CAAC,EAAC,CAAC,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC;IAExF;;OAEG;IACH,YAAY,CAAC,EAAC,CAAC,CAAC,UAAU,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAC,MAAM,CAAC;IAEtB;;OAEG;IACH,qB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5
|
import * as TeamDefs from "../team/defs.defs.js";
|
|
6
6
|
const $nsid = "tools.ozone.queue.defs";
|
|
7
7
|
export { $nsid };
|
|
8
|
-
const queueView = /*#__PURE__*/ l.typedObject($nsid, "queueView", /*#__PURE__*/ l.object({ "id": /*#__PURE__*/ l.integer(), "name": /*#__PURE__*/ l.string(), "subjectTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "collection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "nsid" })), "reportTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "reporterTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "accountTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "enabled": /*#__PURE__*/ l.boolean(), "deletedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "stats": /*#__PURE__*/ l.ref((() => queueStats)) }));
|
|
8
|
+
const queueView = /*#__PURE__*/ l.typedObject($nsid, "queueView", /*#__PURE__*/ l.object({ "id": /*#__PURE__*/ l.integer(), "name": /*#__PURE__*/ l.string(), "subjectTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "collection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "nsid" })), "reportTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "reporterTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "accountTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "enabled": /*#__PURE__*/ l.boolean(), "deletedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "stats": /*#__PURE__*/ l.ref((() => queueStats)), "strictAccess": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()) }));
|
|
9
9
|
export { queueView };
|
|
10
10
|
const queueStats = /*#__PURE__*/ l.typedObject($nsid, "queueStats", /*#__PURE__*/ l.object({ "pendingCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "closureTargetOverdueCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ "minimum": 0 })), "closureTargetMetCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ "minimum": 0 })), "closureTargetMissedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ "minimum": 0 })), "closureTargetMetRate": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ "minimum": 0, "maximum": 100 })), "closedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "actionedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "acknowledgedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "escalatedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "inboundCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "labelActionCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "tagActionCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "takedownActionCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "ahtDurationSec": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "ahtSampleCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "resolutionDurationSec": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "resolutionSampleCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "actionRate": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "avgHandlingTimeSec": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "avgResolutionTimeSec": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "lastUpdated": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })) }));
|
|
11
11
|
export { queueStats };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAEjD,MAAM,KAAK,GAAG,wBAAwB,CAAC;AAIvC,OAAO,EAAE,KAAK,EAAE,CAAC;AA4EjB,MAAM,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAY,KAAK,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAC,MAA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AAM,CAAC,EAAC,QAAQ,EAAC,UAAU,EAAC,CAAC,EAAC,OAAO,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,UAAU,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAEzf,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from \"@atproto/lex\";\nimport * as TeamDefs from \"../team/defs.defs.js\";\n\nconst $nsid = \"tools.ozone.queue.defs\";\n\ntype $nsid = typeof $nsid;\n\nexport { $nsid };\n\ntype QueueView = { $type?: \"tools.ozone.queue.defs#queueView\";\n\n /**\n * Queue ID\n */\n \"id\":number;\n\n /**\n * Display name of the queue\n */\n \"name\":string;\n\n /**\n * Subject types this queue accepts.\n */\n \"subjectTypes\"?:(\"account\" | \"record\" | \"message\" | \"conversation\" | l.UnknownString)[];\n\n /**\n * Collection name for record subjects. Omit to accept every collection.\n */\n \"collection\"?:l.NsidString;\n\n /**\n * Report reason types this queue accepts (fully qualified NSIDs)\n */\n \"reportTypes\"?:(string)[];\n\n /**\n * Match any listed tag on the account submitting the report.\n */\n \"reporterTags\"?:(string)[];\n\n /**\n * Match tags on the account that is being reported against. For record subjects, use the author account. Match any listed tag.\n */\n \"accountTags\"?:(string)[];\n\n /**\n * Optional description of the queue\n */\n \"description\"?:string;\n\n /**\n * Policy keys recommended when actioning reports in this queue\n */\n \"recommendedPolicies\"?:(string)[];\n\n /**\n * Labels recommended for this queue and used as a fallback when routing label appeals\n */\n \"recommendedLabels\"?:(string)[];\n\n /**\n * DID of moderator who created this queue\n */\n \"createdBy\":l.DidString;\"createdAt\":l.DatetimeString;\"updatedAt\":l.DatetimeString;\n\n /**\n * Whether this queue is currently active\n */\n \"enabled\":boolean;\n\n /**\n * When the queue was deleted, if applicable\n */\n \"deletedAt\"?:l.DatetimeString;\n\n /**\n * Statistics about this queue\n */\n \"stats\":QueueStats };\n\nexport type { QueueView };\n\nconst queueView = /*#__PURE__*/ l.typedObject<QueueView>($nsid, \"queueView\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"name\":/*#__PURE__*/ l.string(),\"subjectTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string<{\"knownValues\":[\"account\",\"record\",\"message\",\"conversation\"]}>(), )),\"collection\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"nsid\"})),\"reportTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"reporterTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"accountTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"description\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"recommendedPolicies\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"recommendedLabels\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"createdBy\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"createdAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"updatedAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"enabled\":/*#__PURE__*/ l.boolean(),\"deletedAt\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"})),\"stats\":/*#__PURE__*/ l.ref<QueueStats>((() => queueStats) as any)}));\n\nexport { queueView };\n\ntype QueueStats = { $type?: \"tools.ozone.queue.defs#queueStats\";\n\n /**\n * Number of unmuted reports currently not closed.\n */\n \"pendingCount\"?:number;\n\n /**\n * Unmuted pending reports past their closure target.\n */\n \"closureTargetOverdueCount\"?:number;\n\n /**\n * Reports whose closure meets their closure target.\n */\n \"closureTargetMetCount\"?:number;\n\n /**\n * Reports whose closure exceeds their closure target.\n */\n \"closureTargetMissedCount\"?:number;\n\n /**\n * Percent of reports meeting their closure target.\n */\n \"closureTargetMetRate\"?:number;\n\n /**\n * Number of reports whose current closure falls within this UTC calendar day.\n */\n \"closedCount\"?:number;\n\n /**\n * Number of closures whose last report action is label, tag, or takedown.\n */\n \"actionedCount\"?:number;\n\n /**\n * Number of closures whose last report action is not label, tag, or takedown.\n */\n \"acknowledgedCount\"?:number;\n\n /**\n * Number of report escalation events during this UTC calendar day.\n */\n \"escalatedCount\"?:number;\n\n /**\n * Reports received in this queue during this UTC calendar day.\n */\n \"inboundCount\"?:number;\n\n /**\n * Closures whose last report action is a label event.\n */\n \"labelActionCount\"?:number;\n\n /**\n * Closures whose last report action is a tag event.\n */\n \"tagActionCount\"?:number;\n\n /**\n * Closures whose last report action is a takedown event.\n */\n \"takedownActionCount\"?:number;\n\n /**\n * Sum of report assignment-to-close seconds.\n */\n \"ahtDurationSec\"?:number;\n\n /**\n * Number of assigned closed-report samples in ahtDurationSec.\n */\n \"ahtSampleCount\"?:number;\n\n /**\n * Sum of report creation-to-close seconds.\n */\n \"resolutionDurationSec\"?:number;\n\n /**\n * Number of closed-report samples in resolutionDurationSec.\n */\n \"resolutionSampleCount\"?:number;\n\n /**\n * Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer.\n */\n \"actionRate\"?:number;\n\n /**\n * Average handling time in seconds from report assignment to close.\n */\n \"avgHandlingTimeSec\"?:number;\n\n /**\n * Average resolution time in seconds from report creation to close.\n */\n \"avgResolutionTimeSec\"?:number;\n\n /**\n * When these statistics were last computed.\n */\n \"lastUpdated\"?:l.DatetimeString };\n\nexport type { QueueStats };\n\nconst queueStats = /*#__PURE__*/ l.typedObject<QueueStats>($nsid, \"queueStats\", /*#__PURE__*/ l.object({\"pendingCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"closureTargetOverdueCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMetCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMissedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMetRate\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0,\"maximum\":100})),\"closedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"actionedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"acknowledgedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"escalatedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"inboundCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"labelActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"tagActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"takedownActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"ahtDurationSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"ahtSampleCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"resolutionDurationSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"resolutionSampleCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"actionRate\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"avgHandlingTimeSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"avgResolutionTimeSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"lastUpdated\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"}))}));\n\nexport { queueStats };\n\ntype AssignmentView = { $type?: \"tools.ozone.queue.defs#assignmentView\";\"id\":number;\"did\":l.DidString;\n\n /**\n * The moderator assigned to this queue\n */\n \"moderator\"?:TeamDefs.Member;\"queue\":QueueView;\"startAt\":l.DatetimeString;\"endAt\"?:l.DatetimeString };\n\nexport type { AssignmentView };\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>($nsid, \"assignmentView\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"did\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"moderator\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any)),\"queue\":/*#__PURE__*/ l.ref<QueueView>((() => queueView) as any),\"startAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"endAt\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"}))}));\n\nexport { assignmentView };\n"]}
|
|
1
|
+
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAEjD,MAAM,KAAK,GAAG,wBAAwB,CAAC;AAIvC,OAAO,EAAE,KAAK,EAAE,CAAC;AAiFjB,MAAM,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAY,KAAK,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAC,MAAM,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAC,cAAc,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAiE,CAAG,CAAC,EAAC,YAAY,EAAC,aAAa,CAAC,CAAC,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AC,MAAM,CAAC,EAAC,QAAQ,EAAC,UAAU,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAEzf,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from \"@atproto/lex\";\nimport * as TeamDefs from \"../team/defs.defs.js\";\n\nconst $nsid = \"tools.ozone.queue.defs\";\n\ntype $nsid = typeof $nsid;\n\nexport { $nsid };\n\ntype QueueView = { $type?: \"tools.ozone.queue.defs#queueView\";\n\n /**\n * Queue ID\n */\n \"id\":number;\n\n /**\n * Display name of the queue\n */\n \"name\":string;\n\n /**\n * Subject types this queue accepts.\n */\n \"subjectTypes\"?:(\"account\" | \"record\" | \"message\" | \"conversation\" | l.UnknownString)[];\n\n /**\n * Collection name for record subjects. Omit to accept every collection.\n */\n \"collection\"?:l.NsidString;\n\n /**\n * Report reason types this queue accepts (fully qualified NSIDs)\n */\n \"reportTypes\"?:(string)[];\n\n /**\n * Match any listed tag on the account submitting the report.\n */\n \"reporterTags\"?:(string)[];\n\n /**\n * Match tags on the account that is being reported against. For record subjects, use the author account. Match any listed tag.\n */\n \"accountTags\"?:(string)[];\n\n /**\n * Optional description of the queue\n */\n \"description\"?:string;\n\n /**\n * Policy keys recommended when actioning reports in this queue\n */\n \"recommendedPolicies\"?:(string)[];\n\n /**\n * Labels recommended for this queue and used as a fallback when routing label appeals\n */\n \"recommendedLabels\"?:(string)[];\n\n /**\n * DID of moderator who created this queue\n */\n \"createdBy\":l.DidString;\"createdAt\":l.DatetimeString;\"updatedAt\":l.DatetimeString;\n\n /**\n * Whether this queue is currently active\n */\n \"enabled\":boolean;\n\n /**\n * When the queue was deleted, if applicable\n */\n \"deletedAt\"?:l.DatetimeString;\n\n /**\n * Statistics about this queue\n */\n \"stats\":QueueStats;\n\n /**\n * Admins can always list this queue and browse its reports. Other roles require an active queue assignment. Individual report and moderation event access is unchanged.\n */\n \"strictAccess\"?:boolean };\n\nexport type { QueueView };\n\nconst queueView = /*#__PURE__*/ l.typedObject<QueueView>($nsid, \"queueView\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"name\":/*#__PURE__*/ l.string(),\"subjectTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string<{\"knownValues\":[\"account\",\"record\",\"message\",\"conversation\"]}>(), )),\"collection\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"nsid\"})),\"reportTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"reporterTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"accountTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"description\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"recommendedPolicies\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"recommendedLabels\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"createdBy\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"createdAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"updatedAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"enabled\":/*#__PURE__*/ l.boolean(),\"deletedAt\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"})),\"stats\":/*#__PURE__*/ l.ref<QueueStats>((() => queueStats) as any),\"strictAccess\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean())}));\n\nexport { queueView };\n\ntype QueueStats = { $type?: \"tools.ozone.queue.defs#queueStats\";\n\n /**\n * Number of unmuted reports currently not closed.\n */\n \"pendingCount\"?:number;\n\n /**\n * Unmuted pending reports past their closure target.\n */\n \"closureTargetOverdueCount\"?:number;\n\n /**\n * Reports whose closure meets their closure target.\n */\n \"closureTargetMetCount\"?:number;\n\n /**\n * Reports whose closure exceeds their closure target.\n */\n \"closureTargetMissedCount\"?:number;\n\n /**\n * Percent of reports meeting their closure target.\n */\n \"closureTargetMetRate\"?:number;\n\n /**\n * Number of reports whose current closure falls within this UTC calendar day.\n */\n \"closedCount\"?:number;\n\n /**\n * Number of closures whose last report action is label, tag, or takedown.\n */\n \"actionedCount\"?:number;\n\n /**\n * Number of closures whose last report action is not label, tag, or takedown.\n */\n \"acknowledgedCount\"?:number;\n\n /**\n * Number of report escalation events during this UTC calendar day.\n */\n \"escalatedCount\"?:number;\n\n /**\n * Reports received in this queue during this UTC calendar day.\n */\n \"inboundCount\"?:number;\n\n /**\n * Closures whose last report action is a label event.\n */\n \"labelActionCount\"?:number;\n\n /**\n * Closures whose last report action is a tag event.\n */\n \"tagActionCount\"?:number;\n\n /**\n * Closures whose last report action is a takedown event.\n */\n \"takedownActionCount\"?:number;\n\n /**\n * Sum of report assignment-to-close seconds.\n */\n \"ahtDurationSec\"?:number;\n\n /**\n * Number of assigned closed-report samples in ahtDurationSec.\n */\n \"ahtSampleCount\"?:number;\n\n /**\n * Sum of report creation-to-close seconds.\n */\n \"resolutionDurationSec\"?:number;\n\n /**\n * Number of closed-report samples in resolutionDurationSec.\n */\n \"resolutionSampleCount\"?:number;\n\n /**\n * Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer.\n */\n \"actionRate\"?:number;\n\n /**\n * Average handling time in seconds from report assignment to close.\n */\n \"avgHandlingTimeSec\"?:number;\n\n /**\n * Average resolution time in seconds from report creation to close.\n */\n \"avgResolutionTimeSec\"?:number;\n\n /**\n * When these statistics were last computed.\n */\n \"lastUpdated\"?:l.DatetimeString };\n\nexport type { QueueStats };\n\nconst queueStats = /*#__PURE__*/ l.typedObject<QueueStats>($nsid, \"queueStats\", /*#__PURE__*/ l.object({\"pendingCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"closureTargetOverdueCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMetCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMissedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMetRate\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0,\"maximum\":100})),\"closedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"actionedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"acknowledgedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"escalatedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"inboundCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"labelActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"tagActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"takedownActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"ahtDurationSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"ahtSampleCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"resolutionDurationSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"resolutionSampleCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"actionRate\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"avgHandlingTimeSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"avgResolutionTimeSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"lastUpdated\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"}))}));\n\nexport { queueStats };\n\ntype AssignmentView = { $type?: \"tools.ozone.queue.defs#assignmentView\";\"id\":number;\"did\":l.DidString;\n\n /**\n * The moderator assigned to this queue\n */\n \"moderator\"?:TeamDefs.Member;\"queue\":QueueView;\"startAt\":l.DatetimeString;\"endAt\"?:l.DatetimeString };\n\nexport type { AssignmentView };\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>($nsid, \"assignmentView\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"did\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"moderator\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any)),\"queue\":/*#__PURE__*/ l.ref<QueueView>((() => queueView) as any),\"startAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"endAt\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"}))}));\n\nexport { assignmentView };\n"]}
|
|
@@ -12,6 +12,7 @@ export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
|
12
12
|
description: l.OptionalSchema<l.StringSchema<{}>>;
|
|
13
13
|
recommendedPolicies: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
14
14
|
recommendedLabels: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
15
|
+
strictAccess: l.OptionalSchema<l.BooleanSchema>;
|
|
15
16
|
}>>;
|
|
16
17
|
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
|
|
17
18
|
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
|
|
@@ -28,6 +29,7 @@ declare const main: l.Procedure<"tools.ozone.queue.updateQueue", l.ParamsSchema<
|
|
|
28
29
|
description: l.OptionalSchema<l.StringSchema<{}>>;
|
|
29
30
|
recommendedPolicies: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
30
31
|
recommendedLabels: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
32
|
+
strictAccess: l.OptionalSchema<l.BooleanSchema>;
|
|
31
33
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
32
34
|
queue: l.RefSchema<l.Validator<QueueDefs.QueueView, QueueDefs.QueueView>>;
|
|
33
35
|
}>>, readonly ["InvalidRecommendedPolicies", "ConflictingQueue"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateQueue.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/updateQueue.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,QAAA,MAAM,KAAK,kCAAkC,CAAC;AAE9C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"updateQueue.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/updateQueue.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,QAAA,MAAM,KAAK,kCAAkC,CAAC;AAE9C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM;;;;;;;;GAAmgB,CAAC;AAEvhB,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AACxE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AAEhF,eAAO,MAAM,OAAO;;GAAsH,CAAC;AAE3I,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAElF,+BAA+B;AAC/B,QAAA,MAAM,IAAI;;;;;;;;;;iEAAgH,CAAC;AAE3H,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,QAAA,MAAM,IAAI,kCAAQ,CAAC;AAEnB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ import * as QueueDefs from "./defs.defs.js";
|
|
|
6
6
|
const $nsid = "tools.ozone.queue.updateQueue";
|
|
7
7
|
export { $nsid };
|
|
8
8
|
export const $params = /*#__PURE__*/ l.params();
|
|
9
|
-
export const $input = /*#__PURE__*/ l.jsonPayload({ "queueId": /*#__PURE__*/ l.integer(), "name": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "enabled": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())) });
|
|
9
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({ "queueId": /*#__PURE__*/ l.integer(), "name": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "enabled": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "strictAccess": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()) });
|
|
10
10
|
export const $output = /*#__PURE__*/ l.jsonPayload({ "queue": /*#__PURE__*/ l.ref((() => QueueDefs.queueView)) });
|
|
11
11
|
/** Update queue properties. */
|
|
12
12
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["InvalidRecommendedPolicies", "ConflictingQueue"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateQueue.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/updateQueue.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,MAAM,KAAK,GAAG,+BAA+B,CAAC;AAI9C,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AAIhD,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAC,MAAM,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,C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CAAC,EAAC,qBAAqB,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAG,CAAC,EAAC,mBAAmB,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAG,CAAC,EAAC,cAAc,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAC,CAAC,CAAC;AAKvhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,OAAO,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAsB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CAAC,EAAC,CAAC,CAAC;AAK3I,+BAA+B;AAC/B,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,4BAA4B,EAAC,kBAAkB,CAAC,CAAC,CAAC;AAE3H,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,KAAK,CAAC;AAInB,OAAO,EAAE,IAAI,EAAE,CAAC","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from \"@atproto/lex\";\nimport * as QueueDefs from \"./defs.defs.js\";\n\nconst $nsid = \"tools.ozone.queue.updateQueue\";\n\ntype $nsid = typeof $nsid;\n\nexport { $nsid };\n\nexport const $params = /*#__PURE__*/ l.params();\n\nexport type $Params = l.InferOutput<typeof $params>;\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\"queueId\":/*#__PURE__*/ l.integer(),\"name\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"enabled\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\"description\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"recommendedPolicies\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"recommendedLabels\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"strictAccess\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean())});\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\"queue\":/*#__PURE__*/ l.ref<QueueDefs.QueueView>((() => QueueDefs.queueView) as any)});\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;\n\n/** Update queue properties. */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [\"InvalidRecommendedPolicies\",\"ConflictingQueue\"]);\n\nexport { main };\n\nconst $lxm = $nsid;\n\ntype $lxm = typeof $lxm;\n\nexport { $lxm };\n"]}
|
|
@@ -12,6 +12,9 @@ export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
|
12
12
|
patternType: l.OptionalSchema<l.StringSchema<{}>>;
|
|
13
13
|
actions: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
14
14
|
reason: l.OptionalSchema<l.StringSchema<{}>>;
|
|
15
|
+
source: l.OptionalSchema<l.StringSchema<{
|
|
16
|
+
readonly maxLength: 128;
|
|
17
|
+
}>>;
|
|
15
18
|
createdBy: l.OptionalSchema<l.StringSchema<{
|
|
16
19
|
readonly format: "did";
|
|
17
20
|
}>>;
|
|
@@ -35,6 +38,9 @@ declare const main: l.Procedure<"tools.ozone.safelink.queryRules", l.ParamsSchem
|
|
|
35
38
|
patternType: l.OptionalSchema<l.StringSchema<{}>>;
|
|
36
39
|
actions: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
37
40
|
reason: l.OptionalSchema<l.StringSchema<{}>>;
|
|
41
|
+
source: l.OptionalSchema<l.StringSchema<{
|
|
42
|
+
readonly maxLength: 128;
|
|
43
|
+
}>>;
|
|
38
44
|
createdBy: l.OptionalSchema<l.StringSchema<{
|
|
39
45
|
readonly format: "did";
|
|
40
46
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryRules.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/queryRules.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,QAAA,MAAM,KAAK,oCAAoC,CAAC;AAEhD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"queryRules.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/queryRules.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,QAAA,MAAM,KAAK,oCAAoC,CAAC;AAEhD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;GAA+xB,CAAC;AAEnzB,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AACxE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AAEhF,eAAO,MAAM,OAAO;;;GAA6M,CAAC;AAElO,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAElF,6BAA6B;AAC7B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;eAA6D,CAAC;AAExE,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,QAAA,MAAM,IAAI,oCAAQ,CAAC;AAEnB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ import * as SafelinkDefs from "./defs.defs.js";
|
|
|
6
6
|
const $nsid = "tools.ozone.safelink.queryRules";
|
|
7
7
|
export { $nsid };
|
|
8
8
|
export const $params = /*#__PURE__*/ l.params();
|
|
9
|
-
export const $input = /*#__PURE__*/ l.jsonPayload({ "cursor": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "limit": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({ "minimum": 1, "maximum": 100 }), 50)), "urls": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "patternType": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "actions": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "reason": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })), "sortDirection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string(), "desc")) });
|
|
9
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({ "cursor": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "limit": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({ "minimum": 1, "maximum": 100 }), 50)), "urls": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "patternType": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "actions": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "reason": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "source": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "maxLength": 128 })), "createdBy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })), "sortDirection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string(), "desc")) });
|
|
10
10
|
export const $output = /*#__PURE__*/ l.jsonPayload({ "cursor": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "rules": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => SafelinkDefs.urlRule))) });
|
|
11
11
|
/** Query URL safety rules */
|
|
12
12
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryRules.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/queryRules.defs.ts"],"names":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Content":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from \"@atproto/lex\";\nimport * as SafelinkDefs from \"./defs.defs.js\";\n\nconst $nsid = \"tools.ozone.safelink.queryRules\";\n\ntype $nsid = typeof $nsid;\n\nexport { $nsid };\n\nexport const $params = /*#__PURE__*/ l.params();\n\nexport type $Params = l.InferOutput<typeof $params>;\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\"cursor\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"limit\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({\"minimum\":1,\"maximum\":100}), 50)),\"urls\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"patternType\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"actions\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"reason\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"source\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"maxLength\":128})),\"createdBy\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"did\"})),\"sortDirection\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string<{\"knownValues\":[\"asc\",\"desc\"]}>(), \"desc\"))});\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\"cursor\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"rules\":/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref<SafelinkDefs.UrlRule>((() => SafelinkDefs.urlRule) as any), )});\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;\n\n/** Query URL safety rules */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output);\n\nexport { main };\n\nconst $lxm = $nsid;\n\ntype $lxm = typeof $lxm;\n\nexport { $lxm };\n"]}
|
package/dist/logger.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { subsystemLogger } from '@atproto/common';
|
|
|
3
3
|
export declare const dbLogger: ReturnType<typeof subsystemLogger>;
|
|
4
4
|
export declare const seqLogger: ReturnType<typeof subsystemLogger>;
|
|
5
5
|
export declare const httpLogger: ReturnType<typeof subsystemLogger>;
|
|
6
|
+
export declare const labelStreamLogger: ReturnType<typeof subsystemLogger>;
|
|
6
7
|
export declare const langLogger: ReturnType<typeof subsystemLogger>;
|
|
7
8
|
export declare const verificationLogger: ReturnType<typeof subsystemLogger>;
|
|
8
9
|
export declare const loggerMiddleware: import("pino-http").HttpLogger<IncomingMessage, import("http").ServerResponse<IncomingMessage>, never>;
|
package/dist/logger.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAoB,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEnE,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,OAAO,eAAe,CAC3B,CAAA;AAC7B,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CACrB,CAAA;AACpC,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,OAAO,eAAe,CAChC,CAAA;AAC1B,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,OAAO,eAAe,CAC3B,CAAA;AAC/B,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,OAAO,eAAe,CAC3B,CAAA;AAEvC,eAAO,MAAM,gBAAgB,wGAa3B,CAAA"}
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EAAoB,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEnE,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,OAAO,eAAe,CAC3B,CAAA;AAC7B,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CACrB,CAAA;AACpC,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,OAAO,eAAe,CAChC,CAAA;AAC1B,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,OAAO,eAAe,CAC1B,CAAA;AACvC,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,OAAO,eAAe,CAC3B,CAAA;AAC/B,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,OAAO,eAAe,CAC3B,CAAA;AAEvC,eAAO,MAAM,gBAAgB,wGAa3B,CAAA"}
|
package/dist/logger.js
CHANGED
|
@@ -3,6 +3,7 @@ import { obfuscateHeaders, subsystemLogger } from '@atproto/common';
|
|
|
3
3
|
export const dbLogger = subsystemLogger('ozone:db');
|
|
4
4
|
export const seqLogger = subsystemLogger('ozone:sequencer');
|
|
5
5
|
export const httpLogger = subsystemLogger('ozone');
|
|
6
|
+
export const labelStreamLogger = subsystemLogger('ozone:label-stream');
|
|
6
7
|
export const langLogger = subsystemLogger('ozone:lang');
|
|
7
8
|
export const verificationLogger = subsystemLogger('ozone:verification');
|
|
8
9
|
export const loggerMiddleware = pinoHttp({
|
package/dist/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEnE,MAAM,CAAC,MAAM,QAAQ,GACnB,eAAe,CAAC,UAAU,CAAC,CAAA;AAC7B,MAAM,CAAC,MAAM,SAAS,GACpB,eAAe,CAAC,iBAAiB,CAAC,CAAA;AACpC,MAAM,CAAC,MAAM,UAAU,GACrB,eAAe,CAAC,OAAO,CAAC,CAAA;AAC1B,MAAM,CAAC,MAAM,UAAU,GACrB,eAAe,CAAC,YAAY,CAAC,CAAA;AAC/B,MAAM,CAAC,MAAM,kBAAkB,GAC7B,eAAe,CAAC,oBAAoB,CAAC,CAAA;AAEvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACvC,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE;QACX,GAAG,EAAE,CAAC,GAAY,EAAE,EAAE,CAAC,CAAC;YACtB,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC;SAC1B,CAAC;QACF,GAAG,EAAE,CAAC,GAAoB,EAAE,EAAE;YAC5B,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YAC1C,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;YACpD,OAAO,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAA;QACnC,CAAC;KACF;CACF,CAAC,CAAA","sourcesContent":["import type { IncomingMessage } from 'node:http'\nimport { pinoHttp, stdSerializers } from 'pino-http'\nimport { obfuscateHeaders, subsystemLogger } from '@atproto/common'\n\nexport const dbLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:db')\nexport const seqLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:sequencer')\nexport const httpLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone')\nexport const langLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:lang')\nexport const verificationLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:verification')\n\nexport const loggerMiddleware = pinoHttp({\n logger: httpLogger,\n serializers: {\n err: (err: unknown) => ({\n code: err?.['code'],\n message: err?.['message'],\n }),\n req: (req: IncomingMessage) => {\n const serialized = stdSerializers.req(req)\n const headers = obfuscateHeaders(serialized.headers)\n return { ...serialized, headers }\n },\n },\n})\n"]}
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEnE,MAAM,CAAC,MAAM,QAAQ,GACnB,eAAe,CAAC,UAAU,CAAC,CAAA;AAC7B,MAAM,CAAC,MAAM,SAAS,GACpB,eAAe,CAAC,iBAAiB,CAAC,CAAA;AACpC,MAAM,CAAC,MAAM,UAAU,GACrB,eAAe,CAAC,OAAO,CAAC,CAAA;AAC1B,MAAM,CAAC,MAAM,iBAAiB,GAC5B,eAAe,CAAC,oBAAoB,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,UAAU,GACrB,eAAe,CAAC,YAAY,CAAC,CAAA;AAC/B,MAAM,CAAC,MAAM,kBAAkB,GAC7B,eAAe,CAAC,oBAAoB,CAAC,CAAA;AAEvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACvC,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE;QACX,GAAG,EAAE,CAAC,GAAY,EAAE,EAAE,CAAC,CAAC;YACtB,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC;SAC1B,CAAC;QACF,GAAG,EAAE,CAAC,GAAoB,EAAE,EAAE;YAC5B,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YAC1C,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;YACpD,OAAO,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,CAAA;QACnC,CAAC;KACF;CACF,CAAC,CAAA","sourcesContent":["import type { IncomingMessage } from 'node:http'\nimport { pinoHttp, stdSerializers } from 'pino-http'\nimport { obfuscateHeaders, subsystemLogger } from '@atproto/common'\n\nexport const dbLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:db')\nexport const seqLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:sequencer')\nexport const httpLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone')\nexport const labelStreamLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:label-stream')\nexport const langLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:lang')\nexport const verificationLogger: ReturnType<typeof subsystemLogger> =\n subsystemLogger('ozone:verification')\n\nexport const loggerMiddleware = pinoHttp({\n logger: httpLogger,\n serializers: {\n err: (err: unknown) => ({\n code: err?.['code'],\n message: err?.['message'],\n }),\n req: (req: IncomingMessage) => {\n const serialized = stdSerializers.req(req)\n const headers = obfuscateHeaders(serialized.headers)\n return { ...serialized, headers }\n },\n },\n})\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RawBuilder } from 'kysely';
|
|
2
|
+
import type { AdminTokenOutput, ModeratorOutput } from '../auth-verifier.js';
|
|
3
|
+
import type { Database } from '../db/index.js';
|
|
4
|
+
export type QueueAccessCredentials = (AdminTokenOutput | ModeratorOutput)['credentials'];
|
|
5
|
+
/** Request-scoped queue access. Internal jobs do not use moderator filters. */
|
|
6
|
+
export declare class QueueAccess {
|
|
7
|
+
private readonly hiddenQueueIds;
|
|
8
|
+
private constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Get the queue access for a specific actor based on their credentials.
|
|
11
|
+
*/
|
|
12
|
+
static forActor(db: Database, credentials: QueueAccessCredentials): Promise<QueueAccess>;
|
|
13
|
+
/** Filter queue listings before pagination. */
|
|
14
|
+
filter(column: string): RawBuilder<boolean>;
|
|
15
|
+
/** Whether the caller may access a queue. */
|
|
16
|
+
canAccessQueue(queueId: number): boolean;
|
|
17
|
+
assertQueue(queueId: number): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=access.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../src/queue/access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAO,MAAM,QAAQ,CAAA;AAG7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,CACnC,gBAAgB,GAAG,eAAe,CACnC,CAAC,aAAa,CAAC,CAAA;AAEhB,+EAA+E;AAC/E,qBAAa,WAAW;IACF,OAAO,CAAC,QAAQ,CAAC,cAAc;IAAnD,OAAO,eAA0D;IAEjE;;OAEG;IACH,OAAa,QAAQ,CACnB,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,sBAAsB,GAClC,OAAO,CAAC,WAAW,CAAC,CA4BtB;IAED,+CAA+C;IAC/C,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAI1C;IAED,6CAA6C;IAC7C,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvC;IAED,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIjC;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { sql } from 'kysely';
|
|
2
|
+
import { currentDatetimeString } from '@atproto/lex';
|
|
3
|
+
import { InvalidRequestError } from '@atproto/xrpc-server';
|
|
4
|
+
/** Request-scoped queue access. Internal jobs do not use moderator filters. */
|
|
5
|
+
export class QueueAccess {
|
|
6
|
+
constructor(hiddenQueueIds) {
|
|
7
|
+
this.hiddenQueueIds = hiddenQueueIds;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the queue access for a specific actor based on their credentials.
|
|
11
|
+
*/
|
|
12
|
+
static async forActor(db, credentials) {
|
|
13
|
+
if (credentials.isAdmin)
|
|
14
|
+
return new QueueAccess([]);
|
|
15
|
+
const now = currentDatetimeString();
|
|
16
|
+
const hidden = await db.db
|
|
17
|
+
.selectFrom('report_queue as access_queue')
|
|
18
|
+
.select('access_queue.id')
|
|
19
|
+
.where('access_queue.strictAccess', '=', true)
|
|
20
|
+
.where((eb) => eb.not(eb.exists(eb
|
|
21
|
+
.selectFrom('moderator_assignment as access_member')
|
|
22
|
+
.select('access_member.id')
|
|
23
|
+
.whereRef('access_member.queueId', '=', 'access_queue.id')
|
|
24
|
+
.where('access_member.reportId', 'is', null)
|
|
25
|
+
.where('access_member.did', '=', credentials.iss)
|
|
26
|
+
.where('access_member.startAt', '<=', now)
|
|
27
|
+
.where((membership) => membership.or([
|
|
28
|
+
membership('access_member.endAt', 'is', null),
|
|
29
|
+
membership('access_member.endAt', '>', now),
|
|
30
|
+
])))))
|
|
31
|
+
.execute();
|
|
32
|
+
return new QueueAccess(hidden.map(({ id }) => id));
|
|
33
|
+
}
|
|
34
|
+
/** Filter queue listings before pagination. */
|
|
35
|
+
filter(column) {
|
|
36
|
+
if (!this.hiddenQueueIds.length)
|
|
37
|
+
return sql `true`;
|
|
38
|
+
const ref = sql.ref(column);
|
|
39
|
+
return sql `${ref} NOT IN (${sql.join(this.hiddenQueueIds)})`;
|
|
40
|
+
}
|
|
41
|
+
/** Whether the caller may access a queue. */
|
|
42
|
+
canAccessQueue(queueId) {
|
|
43
|
+
return !this.hiddenQueueIds.includes(queueId);
|
|
44
|
+
}
|
|
45
|
+
assertQueue(queueId) {
|
|
46
|
+
if (!this.canAccessQueue(queueId)) {
|
|
47
|
+
throw new InvalidRequestError('Queue not found', 'QueueNotFound');
|
|
48
|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CACpB,UAAU,CAAC,EAAE,CAAC;YACZ,UAAU,CAAC,qBAAqB,EAAE,IAAI,EAAE,IAAI,CAAC;YAC7C,UAAU,CAAC,qBAAqB,EAAE,GAAG,EAAE,GAAG,CAAC;SAC5C,CAAC,CACH,CACJ,CACF,CACF;aACA,OAAO,EAAE,CAAA;QACZ,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IACpD,CAAC;IAED,+CAA+C;IAC/C,MAAM,CAAC,MAAc;QACnB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM;YAAE,OAAO,GAAG,CAAS,MAAM,CAAA;QAC1D,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAC3B,OAAO,GAAG,CAAS,GAAG,GAAG,YAAY,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAA;IACvE,CAAC;IAED,6CAA6C;IAC7C,cAAc,CAAC,OAAe;QAC5B,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC/C,CAAC;IAED,WAAW,CAAC,OAAe;QACzB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,mBAAmB,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAA;QACnE,CAAC;IACH,CAAC;CACF","sourcesContent":["import { type RawBuilder, sql } from 'kysely'\nimport { currentDatetimeString } from '@atproto/lex'\nimport { InvalidRequestError } from '@atproto/xrpc-server'\nimport type { AdminTokenOutput, ModeratorOutput } from '../auth-verifier.js'\nimport type { Database } from '../db/index.js'\n\nexport type QueueAccessCredentials = (\n AdminTokenOutput | ModeratorOutput\n)['credentials']\n\n/** Request-scoped queue access. Internal jobs do not use moderator filters. */\nexport class QueueAccess {\n private constructor(private readonly hiddenQueueIds: number[]) {}\n\n /**\n * Get the queue access for a specific actor based on their credentials.\n */\n static async forActor(\n db: Database,\n credentials: QueueAccessCredentials,\n ): Promise<QueueAccess> {\n if (credentials.isAdmin) return new QueueAccess([])\n const now = currentDatetimeString()\n const hidden = await db.db\n .selectFrom('report_queue as access_queue')\n .select('access_queue.id')\n .where('access_queue.strictAccess', '=', true)\n .where((eb) =>\n eb.not(\n eb.exists(\n eb\n .selectFrom('moderator_assignment as access_member')\n .select('access_member.id')\n .whereRef('access_member.queueId', '=', 'access_queue.id')\n .where('access_member.reportId', 'is', null)\n .where('access_member.did', '=', credentials.iss)\n .where('access_member.startAt', '<=', now)\n .where((membership) =>\n membership.or([\n membership('access_member.endAt', 'is', null),\n membership('access_member.endAt', '>', now),\n ]),\n ),\n ),\n ),\n )\n .execute()\n return new QueueAccess(hidden.map(({ id }) => id))\n }\n\n /** Filter queue listings before pagination. */\n filter(column: string): RawBuilder<boolean> {\n if (!this.hiddenQueueIds.length) return sql<boolean>`true`\n const ref = sql.ref(column)\n return sql<boolean>`${ref} NOT IN (${sql.join(this.hiddenQueueIds)})`\n }\n\n /** Whether the caller may access a queue. */\n canAccessQueue(queueId: number): boolean {\n return !this.hiddenQueueIds.includes(queueId)\n }\n\n assertQueue(queueId: number): void {\n if (!this.canAccessQueue(queueId)) {\n throw new InvalidRequestError('Queue not found', 'QueueNotFound')\n }\n }\n}\n"]}
|
package/dist/queue/service.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { Database } from '../db/index.js';
|
|
|
4
4
|
import type { ReportQueue } from '../db/schema/report_queue.js';
|
|
5
5
|
import { tools } from '../lexicons/index.js';
|
|
6
6
|
import type { ModerationEventRow } from '../mod-service/types.js';
|
|
7
|
+
import type { QueueAccess } from './access.js';
|
|
7
8
|
/**
|
|
8
9
|
* Parse routing info from modTool
|
|
9
10
|
*/
|
|
@@ -46,7 +47,7 @@ export declare class QueueService {
|
|
|
46
47
|
recommendedLabels?: string[];
|
|
47
48
|
excludeId?: number;
|
|
48
49
|
}): Promise<void>;
|
|
49
|
-
create({ name, subjectTypes, collection, reportTypes, reporterTags, accountTags, description, recommendedPolicies, recommendedLabels, createdBy, }: {
|
|
50
|
+
create({ name, subjectTypes, collection, reportTypes, reporterTags, accountTags, description, recommendedPolicies, recommendedLabels, createdBy, strictAccess, }: {
|
|
50
51
|
name: string;
|
|
51
52
|
subjectTypes: string[];
|
|
52
53
|
collection?: NsidString | null;
|
|
@@ -57,21 +58,24 @@ export declare class QueueService {
|
|
|
57
58
|
recommendedPolicies: string[];
|
|
58
59
|
recommendedLabels?: string[];
|
|
59
60
|
createdBy: DidString | 'admin_token';
|
|
61
|
+
strictAccess?: boolean;
|
|
60
62
|
}): Promise<Selectable<ReportQueue>>;
|
|
61
|
-
getById(id: number): Promise<Selectable<ReportQueue> | undefined>;
|
|
63
|
+
getById(id: number, lock?: boolean): Promise<Selectable<ReportQueue> | undefined>;
|
|
62
64
|
getByRecommendedLabel(label: string): Promise<Selectable<ReportQueue> | undefined>;
|
|
63
65
|
getViewsByIds(ids: number[]): Promise<Map<number, tools.ozone.queue.defs.QueueView>>;
|
|
64
66
|
update(id: number, updates: {
|
|
65
67
|
name?: string;
|
|
66
68
|
enabled?: boolean;
|
|
69
|
+
strictAccess?: boolean;
|
|
67
70
|
description?: string;
|
|
68
71
|
recommendedPolicies?: string[];
|
|
69
72
|
recommendedLabels?: string[];
|
|
70
73
|
}): Promise<Selectable<ReportQueue>>;
|
|
71
74
|
delete(id: number): Promise<void>;
|
|
72
75
|
migrateReports(fromQueueId: number, toQueueId?: number): Promise<number>;
|
|
73
|
-
list({ limit, cursor, enabled, subjectType, collection, reportTypes, }: {
|
|
76
|
+
list({ limit, cursor, enabled, subjectType, collection, reportTypes, access, }: {
|
|
74
77
|
limit: number;
|
|
78
|
+
access?: QueueAccess;
|
|
75
79
|
cursor?: string;
|
|
76
80
|
enabled?: boolean;
|
|
77
81
|
subjectType?: string;
|