@atproto/ozone 0.2.21 → 0.2.23
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 +29 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/report/closeReports.d.ts +4 -0
- package/dist/api/report/closeReports.d.ts.map +1 -0
- package/dist/api/report/closeReports.js +46 -0
- package/dist/api/report/closeReports.js.map +1 -0
- package/dist/api/report/createActivity.d.ts.map +1 -1
- package/dist/api/report/createActivity.js +5 -1
- package/dist/api/report/createActivity.js.map +1 -1
- package/dist/config/config.d.ts +1 -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/daemon/context.d.ts.map +1 -1
- package/dist/daemon/context.js +1 -1
- package/dist/daemon/context.js.map +1 -1
- package/dist/daemon/materialized-view-refresher.d.ts +1 -1
- package/dist/daemon/materialized-view-refresher.d.ts.map +1 -1
- package/dist/daemon/materialized-view-refresher.js +35 -21
- package/dist/daemon/materialized-view-refresher.js.map +1 -1
- package/dist/daemon/stats-computer.d.ts +1 -1
- package/dist/daemon/stats-computer.d.ts.map +1 -1
- package/dist/daemon/stats-computer.js +3 -4
- package/dist/daemon/stats-computer.js.map +1 -1
- package/dist/db/index.d.ts +2 -0
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +4 -0
- package/dist/db/index.js.map +1 -1
- package/dist/db/migrations/20260720T000000000Z-add-convo-subjects-to-stats-views.d.ts +4 -0
- package/dist/db/migrations/20260720T000000000Z-add-convo-subjects-to-stats-views.d.ts.map +1 -0
- package/dist/db/migrations/20260720T000000000Z-add-convo-subjects-to-stats-views.js +257 -0
- package/dist/db/migrations/20260720T000000000Z-add-convo-subjects-to-stats-views.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/record_events_stats.d.ts +1 -1
- package/dist/db/schema/record_events_stats.d.ts.map +1 -1
- package/dist/db/schema/record_events_stats.js.map +1 -1
- package/dist/lexicon/index.d.ts +2 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +5 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +154 -6
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +84 -3
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/video/defs.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/video/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/video/defs.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/describeServer.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/report/closeReports.d.ts +34 -0
- package/dist/lexicon/types/tools/ozone/report/closeReports.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/report/closeReports.js +10 -0
- package/dist/lexicon/types/tools/ozone/report/closeReports.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/report/createActivity.d.ts +4 -2
- package/dist/lexicon/types/tools/ozone/report/createActivity.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/report/createActivity.js.map +1 -1
- package/dist/mod-service/report.d.ts +21 -0
- package/dist/mod-service/report.d.ts.map +1 -1
- package/dist/mod-service/report.js +87 -4
- package/dist/mod-service/report.js.map +1 -1
- package/dist/report/activity.d.ts +4 -1
- package/dist/report/activity.d.ts.map +1 -1
- package/dist/report/activity.js +14 -5
- package/dist/report/activity.js.map +1 -1
- package/dist/report/handle-report-update.js +1 -1
- package/dist/report/handle-report-update.js.map +1 -1
- package/package.json +10 -10
|
@@ -2148,6 +2148,7 @@ export declare const schemaDict: {
|
|
|
2148
2148
|
readonly properties: {
|
|
2149
2149
|
readonly id: {
|
|
2150
2150
|
readonly type: 'string';
|
|
2151
|
+
readonly format: 'tid';
|
|
2151
2152
|
readonly description: 'The ID of the created draft.';
|
|
2152
2153
|
};
|
|
2153
2154
|
};
|
|
@@ -9549,6 +9550,11 @@ export declare const schemaDict: {
|
|
|
9549
9550
|
readonly error: {
|
|
9550
9551
|
readonly type: 'string';
|
|
9551
9552
|
};
|
|
9553
|
+
readonly failureCode: {
|
|
9554
|
+
readonly type: 'string';
|
|
9555
|
+
readonly description: 'A machine-readable code for why the video processing job failed.';
|
|
9556
|
+
readonly knownValues: ["validation_failure", "encoding_failure", "pds_upload_failure", "pds_upload_unsupported_blob_size", "generic_failure"];
|
|
9557
|
+
};
|
|
9552
9558
|
readonly message: {
|
|
9553
9559
|
readonly type: 'string';
|
|
9554
9560
|
};
|
|
@@ -16477,6 +16483,10 @@ export declare const schemaDict: {
|
|
|
16477
16483
|
readonly type: 'boolean';
|
|
16478
16484
|
readonly description: 'If true, a phone verification token must be supplied to create an account on this instance.';
|
|
16479
16485
|
};
|
|
16486
|
+
readonly blobUploadLimit: {
|
|
16487
|
+
readonly type: 'integer';
|
|
16488
|
+
readonly description: 'Maximum size of a blob that can be uploaded via com.atproto.repo.uploadBlob, in bytes.';
|
|
16489
|
+
};
|
|
16480
16490
|
readonly availableUserDomains: {
|
|
16481
16491
|
readonly type: 'array';
|
|
16482
16492
|
readonly description: 'List of domain suffixes that can be used in account handles.';
|
|
@@ -21519,6 +21529,66 @@ export declare const schemaDict: {
|
|
|
21519
21529
|
};
|
|
21520
21530
|
};
|
|
21521
21531
|
};
|
|
21532
|
+
readonly ToolsOzoneReportCloseReports: {
|
|
21533
|
+
readonly lexicon: 1;
|
|
21534
|
+
readonly id: 'tools.ozone.report.closeReports';
|
|
21535
|
+
readonly defs: {
|
|
21536
|
+
readonly main: {
|
|
21537
|
+
readonly type: 'procedure';
|
|
21538
|
+
readonly description: 'Close all reports on a subject matching the given criteria. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.';
|
|
21539
|
+
readonly input: {
|
|
21540
|
+
readonly encoding: 'application/json';
|
|
21541
|
+
readonly schema: {
|
|
21542
|
+
readonly type: 'object';
|
|
21543
|
+
readonly required: ["subject"];
|
|
21544
|
+
readonly properties: {
|
|
21545
|
+
readonly subject: {
|
|
21546
|
+
readonly type: 'string';
|
|
21547
|
+
readonly format: 'uri';
|
|
21548
|
+
readonly description: 'Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.';
|
|
21549
|
+
};
|
|
21550
|
+
readonly reportTypes: {
|
|
21551
|
+
readonly type: 'array';
|
|
21552
|
+
readonly items: {
|
|
21553
|
+
readonly type: 'string';
|
|
21554
|
+
};
|
|
21555
|
+
readonly description: 'If specified, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted, all non-closed reports on the subject are targeted.';
|
|
21556
|
+
};
|
|
21557
|
+
readonly internalNote: {
|
|
21558
|
+
readonly type: 'string';
|
|
21559
|
+
readonly description: 'Optional moderator-only note recorded on each close activity. Not visible to reporters.';
|
|
21560
|
+
};
|
|
21561
|
+
readonly isAutomated: {
|
|
21562
|
+
readonly type: 'boolean';
|
|
21563
|
+
readonly description: 'Set true when this action is triggered by an automated process. Defaults to false.';
|
|
21564
|
+
readonly default: false;
|
|
21565
|
+
};
|
|
21566
|
+
};
|
|
21567
|
+
};
|
|
21568
|
+
};
|
|
21569
|
+
readonly output: {
|
|
21570
|
+
readonly encoding: 'application/json';
|
|
21571
|
+
readonly schema: {
|
|
21572
|
+
readonly type: 'object';
|
|
21573
|
+
readonly required: ["closedCount", "reportIds"];
|
|
21574
|
+
readonly properties: {
|
|
21575
|
+
readonly closedCount: {
|
|
21576
|
+
readonly type: 'integer';
|
|
21577
|
+
readonly description: 'Number of reports that were transitioned to closed.';
|
|
21578
|
+
};
|
|
21579
|
+
readonly reportIds: {
|
|
21580
|
+
readonly type: 'array';
|
|
21581
|
+
readonly items: {
|
|
21582
|
+
readonly type: 'integer';
|
|
21583
|
+
};
|
|
21584
|
+
readonly description: 'IDs of the reports that were closed.';
|
|
21585
|
+
};
|
|
21586
|
+
};
|
|
21587
|
+
};
|
|
21588
|
+
};
|
|
21589
|
+
};
|
|
21590
|
+
};
|
|
21591
|
+
};
|
|
21522
21592
|
readonly ToolsOzoneReportCreateActivity: {
|
|
21523
21593
|
readonly lexicon: 1;
|
|
21524
21594
|
readonly id: 'tools.ozone.report.createActivity';
|
|
@@ -21530,11 +21600,15 @@ export declare const schemaDict: {
|
|
|
21530
21600
|
readonly encoding: 'application/json';
|
|
21531
21601
|
readonly schema: {
|
|
21532
21602
|
readonly type: 'object';
|
|
21533
|
-
readonly required: ["
|
|
21603
|
+
readonly required: ["activity"];
|
|
21534
21604
|
readonly properties: {
|
|
21535
21605
|
readonly reportId: {
|
|
21536
21606
|
readonly type: 'integer';
|
|
21537
|
-
readonly description: 'ID of the report to record activity on';
|
|
21607
|
+
readonly description: 'ID of the report to record activity on. Exactly one of reportId or eventId must be provided.';
|
|
21608
|
+
};
|
|
21609
|
+
readonly eventId: {
|
|
21610
|
+
readonly type: 'integer';
|
|
21611
|
+
readonly description: 'ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.';
|
|
21538
21612
|
};
|
|
21539
21613
|
readonly activity: {
|
|
21540
21614
|
readonly type: 'union';
|
|
@@ -21572,7 +21646,7 @@ export declare const schemaDict: {
|
|
|
21572
21646
|
};
|
|
21573
21647
|
readonly errors: [{
|
|
21574
21648
|
readonly name: 'ReportNotFound';
|
|
21575
|
-
readonly description: 'No report exists with the given reportId';
|
|
21649
|
+
readonly description: 'No report exists with the given reportId or eventId';
|
|
21576
21650
|
}, {
|
|
21577
21651
|
readonly name: 'InvalidStateTransition';
|
|
21578
21652
|
readonly description: "The requested state transition is not permitted from the report's current status";
|
|
@@ -26506,6 +26580,7 @@ export declare const schemas: ({
|
|
|
26506
26580
|
readonly properties: {
|
|
26507
26581
|
readonly id: {
|
|
26508
26582
|
readonly type: 'string';
|
|
26583
|
+
readonly format: 'tid';
|
|
26509
26584
|
readonly description: 'The ID of the created draft.';
|
|
26510
26585
|
};
|
|
26511
26586
|
};
|
|
@@ -33789,6 +33864,11 @@ export declare const schemas: ({
|
|
|
33789
33864
|
readonly error: {
|
|
33790
33865
|
readonly type: 'string';
|
|
33791
33866
|
};
|
|
33867
|
+
readonly failureCode: {
|
|
33868
|
+
readonly type: 'string';
|
|
33869
|
+
readonly description: 'A machine-readable code for why the video processing job failed.';
|
|
33870
|
+
readonly knownValues: ["validation_failure", "encoding_failure", "pds_upload_failure", "pds_upload_unsupported_blob_size", "generic_failure"];
|
|
33871
|
+
};
|
|
33792
33872
|
readonly message: {
|
|
33793
33873
|
readonly type: 'string';
|
|
33794
33874
|
};
|
|
@@ -40599,6 +40679,10 @@ export declare const schemas: ({
|
|
|
40599
40679
|
readonly type: 'boolean';
|
|
40600
40680
|
readonly description: 'If true, a phone verification token must be supplied to create an account on this instance.';
|
|
40601
40681
|
};
|
|
40682
|
+
readonly blobUploadLimit: {
|
|
40683
|
+
readonly type: 'integer';
|
|
40684
|
+
readonly description: 'Maximum size of a blob that can be uploaded via com.atproto.repo.uploadBlob, in bytes.';
|
|
40685
|
+
};
|
|
40602
40686
|
readonly availableUserDomains: {
|
|
40603
40687
|
readonly type: 'array';
|
|
40604
40688
|
readonly description: 'List of domain suffixes that can be used in account handles.';
|
|
@@ -45571,6 +45655,65 @@ export declare const schemas: ({
|
|
|
45571
45655
|
}];
|
|
45572
45656
|
};
|
|
45573
45657
|
};
|
|
45658
|
+
} | {
|
|
45659
|
+
readonly lexicon: 1;
|
|
45660
|
+
readonly id: 'tools.ozone.report.closeReports';
|
|
45661
|
+
readonly defs: {
|
|
45662
|
+
readonly main: {
|
|
45663
|
+
readonly type: 'procedure';
|
|
45664
|
+
readonly description: 'Close all reports on a subject matching the given criteria. Reports whose current status does not permit a transition to closed are skipped silently. Intended for automated flows that resolve reports without taking action on the subject.';
|
|
45665
|
+
readonly input: {
|
|
45666
|
+
readonly encoding: 'application/json';
|
|
45667
|
+
readonly schema: {
|
|
45668
|
+
readonly type: 'object';
|
|
45669
|
+
readonly required: ["subject"];
|
|
45670
|
+
readonly properties: {
|
|
45671
|
+
readonly subject: {
|
|
45672
|
+
readonly type: 'string';
|
|
45673
|
+
readonly format: 'uri';
|
|
45674
|
+
readonly description: 'Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.';
|
|
45675
|
+
};
|
|
45676
|
+
readonly reportTypes: {
|
|
45677
|
+
readonly type: 'array';
|
|
45678
|
+
readonly items: {
|
|
45679
|
+
readonly type: 'string';
|
|
45680
|
+
};
|
|
45681
|
+
readonly description: 'If specified, only reports of the given report types (fully qualified reason NSIDs) are closed. When omitted, all non-closed reports on the subject are targeted.';
|
|
45682
|
+
};
|
|
45683
|
+
readonly internalNote: {
|
|
45684
|
+
readonly type: 'string';
|
|
45685
|
+
readonly description: 'Optional moderator-only note recorded on each close activity. Not visible to reporters.';
|
|
45686
|
+
};
|
|
45687
|
+
readonly isAutomated: {
|
|
45688
|
+
readonly type: 'boolean';
|
|
45689
|
+
readonly description: 'Set true when this action is triggered by an automated process. Defaults to false.';
|
|
45690
|
+
readonly default: false;
|
|
45691
|
+
};
|
|
45692
|
+
};
|
|
45693
|
+
};
|
|
45694
|
+
};
|
|
45695
|
+
readonly output: {
|
|
45696
|
+
readonly encoding: 'application/json';
|
|
45697
|
+
readonly schema: {
|
|
45698
|
+
readonly type: 'object';
|
|
45699
|
+
readonly required: ["closedCount", "reportIds"];
|
|
45700
|
+
readonly properties: {
|
|
45701
|
+
readonly closedCount: {
|
|
45702
|
+
readonly type: 'integer';
|
|
45703
|
+
readonly description: 'Number of reports that were transitioned to closed.';
|
|
45704
|
+
};
|
|
45705
|
+
readonly reportIds: {
|
|
45706
|
+
readonly type: 'array';
|
|
45707
|
+
readonly items: {
|
|
45708
|
+
readonly type: 'integer';
|
|
45709
|
+
};
|
|
45710
|
+
readonly description: 'IDs of the reports that were closed.';
|
|
45711
|
+
};
|
|
45712
|
+
};
|
|
45713
|
+
};
|
|
45714
|
+
};
|
|
45715
|
+
};
|
|
45716
|
+
};
|
|
45574
45717
|
} | {
|
|
45575
45718
|
readonly lexicon: 1;
|
|
45576
45719
|
readonly id: 'tools.ozone.report.createActivity';
|
|
@@ -45582,11 +45725,15 @@ export declare const schemas: ({
|
|
|
45582
45725
|
readonly encoding: 'application/json';
|
|
45583
45726
|
readonly schema: {
|
|
45584
45727
|
readonly type: 'object';
|
|
45585
|
-
readonly required: ["
|
|
45728
|
+
readonly required: ["activity"];
|
|
45586
45729
|
readonly properties: {
|
|
45587
45730
|
readonly reportId: {
|
|
45588
45731
|
readonly type: 'integer';
|
|
45589
|
-
readonly description: 'ID of the report to record activity on';
|
|
45732
|
+
readonly description: 'ID of the report to record activity on. Exactly one of reportId or eventId must be provided.';
|
|
45733
|
+
};
|
|
45734
|
+
readonly eventId: {
|
|
45735
|
+
readonly type: 'integer';
|
|
45736
|
+
readonly description: 'ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.';
|
|
45590
45737
|
};
|
|
45591
45738
|
readonly activity: {
|
|
45592
45739
|
readonly type: 'union';
|
|
@@ -45624,7 +45771,7 @@ export declare const schemas: ({
|
|
|
45624
45771
|
};
|
|
45625
45772
|
readonly errors: [{
|
|
45626
45773
|
readonly name: 'ReportNotFound';
|
|
45627
|
-
readonly description: 'No report exists with the given reportId';
|
|
45774
|
+
readonly description: 'No report exists with the given reportId or eventId';
|
|
45628
45775
|
}, {
|
|
45629
45776
|
readonly name: 'InvalidStateTransition';
|
|
45630
45777
|
readonly description: "The requested state transition is not permitted from the report's current status";
|
|
@@ -48737,6 +48884,7 @@ export declare const ids: {
|
|
|
48737
48884
|
readonly ToolsOzoneQueueUnassignModerator: 'tools.ozone.queue.unassignModerator';
|
|
48738
48885
|
readonly ToolsOzoneQueueUpdateQueue: 'tools.ozone.queue.updateQueue';
|
|
48739
48886
|
readonly ToolsOzoneReportAssignModerator: 'tools.ozone.report.assignModerator';
|
|
48887
|
+
readonly ToolsOzoneReportCloseReports: 'tools.ozone.report.closeReports';
|
|
48740
48888
|
readonly ToolsOzoneReportCreateActivity: 'tools.ozone.report.createActivity';
|
|
48741
48889
|
readonly ToolsOzoneReportDefs: 'tools.ozone.report.defs';
|
|
48742
48890
|
readonly ToolsOzoneReportGetAssignments: 'tools.ozone.report.getAssignments';
|