@atproto/ozone 0.2.20 → 0.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/api/index.js +2 -0
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/report/closeReports.d.ts +4 -0
  6. package/dist/api/report/closeReports.d.ts.map +1 -0
  7. package/dist/api/report/closeReports.js +46 -0
  8. package/dist/api/report/closeReports.js.map +1 -0
  9. package/dist/api/report/createActivity.d.ts.map +1 -1
  10. package/dist/api/report/createActivity.js +5 -1
  11. package/dist/api/report/createActivity.js.map +1 -1
  12. package/dist/config/config.d.ts +1 -0
  13. package/dist/config/config.d.ts.map +1 -1
  14. package/dist/config/config.js +1 -0
  15. package/dist/config/config.js.map +1 -1
  16. package/dist/config/env.d.ts +1 -0
  17. package/dist/config/env.d.ts.map +1 -1
  18. package/dist/config/env.js +1 -0
  19. package/dist/config/env.js.map +1 -1
  20. package/dist/daemon/context.d.ts.map +1 -1
  21. package/dist/daemon/context.js +1 -1
  22. package/dist/daemon/context.js.map +1 -1
  23. package/dist/daemon/materialized-view-refresher.d.ts +1 -1
  24. package/dist/daemon/materialized-view-refresher.d.ts.map +1 -1
  25. package/dist/daemon/materialized-view-refresher.js +35 -21
  26. package/dist/daemon/materialized-view-refresher.js.map +1 -1
  27. package/dist/daemon/stats-computer.d.ts +1 -1
  28. package/dist/daemon/stats-computer.d.ts.map +1 -1
  29. package/dist/daemon/stats-computer.js +3 -4
  30. package/dist/daemon/stats-computer.js.map +1 -1
  31. package/dist/db/index.d.ts +2 -0
  32. package/dist/db/index.d.ts.map +1 -1
  33. package/dist/db/index.js +4 -0
  34. package/dist/db/index.js.map +1 -1
  35. package/dist/db/migrations/20260720T000000000Z-add-convo-subjects-to-stats-views.d.ts +4 -0
  36. package/dist/db/migrations/20260720T000000000Z-add-convo-subjects-to-stats-views.d.ts.map +1 -0
  37. package/dist/db/migrations/20260720T000000000Z-add-convo-subjects-to-stats-views.js +257 -0
  38. package/dist/db/migrations/20260720T000000000Z-add-convo-subjects-to-stats-views.js.map +1 -0
  39. package/dist/db/migrations/index.d.ts +1 -0
  40. package/dist/db/migrations/index.d.ts.map +1 -1
  41. package/dist/db/migrations/index.js +1 -0
  42. package/dist/db/migrations/index.js.map +1 -1
  43. package/dist/db/schema/record_events_stats.d.ts +1 -1
  44. package/dist/db/schema/record_events_stats.d.ts.map +1 -1
  45. package/dist/db/schema/record_events_stats.js.map +1 -1
  46. package/dist/lexicon/index.d.ts +2 -0
  47. package/dist/lexicon/index.d.ts.map +1 -1
  48. package/dist/lexicon/index.js +5 -0
  49. package/dist/lexicon/index.js.map +1 -1
  50. package/dist/lexicon/lexicons.d.ts +164 -6
  51. package/dist/lexicon/lexicons.d.ts.map +1 -1
  52. package/dist/lexicon/lexicons.js +89 -3
  53. package/dist/lexicon/lexicons.js.map +1 -1
  54. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -0
  55. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
  56. package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
  57. package/dist/lexicon/types/app/bsky/video/defs.d.ts +2 -0
  58. package/dist/lexicon/types/app/bsky/video/defs.d.ts.map +1 -1
  59. package/dist/lexicon/types/app/bsky/video/defs.js.map +1 -1
  60. package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +2 -0
  61. package/dist/lexicon/types/com/atproto/server/describeServer.d.ts.map +1 -1
  62. package/dist/lexicon/types/com/atproto/server/describeServer.js.map +1 -1
  63. package/dist/lexicon/types/tools/ozone/report/closeReports.d.ts +34 -0
  64. package/dist/lexicon/types/tools/ozone/report/closeReports.d.ts.map +1 -0
  65. package/dist/lexicon/types/tools/ozone/report/closeReports.js +10 -0
  66. package/dist/lexicon/types/tools/ozone/report/closeReports.js.map +1 -0
  67. package/dist/lexicon/types/tools/ozone/report/createActivity.d.ts +4 -2
  68. package/dist/lexicon/types/tools/ozone/report/createActivity.d.ts.map +1 -1
  69. package/dist/lexicon/types/tools/ozone/report/createActivity.js.map +1 -1
  70. package/dist/mod-service/report.d.ts +21 -0
  71. package/dist/mod-service/report.d.ts.map +1 -1
  72. package/dist/mod-service/report.js +87 -4
  73. package/dist/mod-service/report.js.map +1 -1
  74. package/dist/report/activity.d.ts +4 -1
  75. package/dist/report/activity.d.ts.map +1 -1
  76. package/dist/report/activity.js +14 -5
  77. package/dist/report/activity.js.map +1 -1
  78. package/dist/report/handle-report-update.js +1 -1
  79. package/dist/report/handle-report-update.js.map +1 -1
  80. package/package.json +9 -9
@@ -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
  };
@@ -7439,6 +7440,11 @@ export declare const schemaDict: {
7439
7440
  readonly record: {
7440
7441
  readonly type: 'unknown';
7441
7442
  };
7443
+ readonly starterPack: {
7444
+ readonly description: 'The starter pack associated with this notification. Present when the notification is for a follow originating from a starter pack.';
7445
+ readonly type: 'ref';
7446
+ readonly ref: 'lex:app.bsky.graph.defs#starterPackViewBasic';
7447
+ };
7442
7448
  readonly isRead: {
7443
7449
  readonly type: 'boolean';
7444
7450
  };
@@ -9544,6 +9550,11 @@ export declare const schemaDict: {
9544
9550
  readonly error: {
9545
9551
  readonly type: 'string';
9546
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
+ };
9547
9558
  readonly message: {
9548
9559
  readonly type: 'string';
9549
9560
  };
@@ -16472,6 +16483,10 @@ export declare const schemaDict: {
16472
16483
  readonly type: 'boolean';
16473
16484
  readonly description: 'If true, a phone verification token must be supplied to create an account on this instance.';
16474
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
+ };
16475
16490
  readonly availableUserDomains: {
16476
16491
  readonly type: 'array';
16477
16492
  readonly description: 'List of domain suffixes that can be used in account handles.';
@@ -21514,6 +21529,66 @@ export declare const schemaDict: {
21514
21529
  };
21515
21530
  };
21516
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
+ };
21517
21592
  readonly ToolsOzoneReportCreateActivity: {
21518
21593
  readonly lexicon: 1;
21519
21594
  readonly id: 'tools.ozone.report.createActivity';
@@ -21525,11 +21600,15 @@ export declare const schemaDict: {
21525
21600
  readonly encoding: 'application/json';
21526
21601
  readonly schema: {
21527
21602
  readonly type: 'object';
21528
- readonly required: ["reportId", "activity"];
21603
+ readonly required: ["activity"];
21529
21604
  readonly properties: {
21530
21605
  readonly reportId: {
21531
21606
  readonly type: 'integer';
21532
- 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.';
21533
21612
  };
21534
21613
  readonly activity: {
21535
21614
  readonly type: 'union';
@@ -21567,7 +21646,7 @@ export declare const schemaDict: {
21567
21646
  };
21568
21647
  readonly errors: [{
21569
21648
  readonly name: 'ReportNotFound';
21570
- readonly description: 'No report exists with the given reportId';
21649
+ readonly description: 'No report exists with the given reportId or eventId';
21571
21650
  }, {
21572
21651
  readonly name: 'InvalidStateTransition';
21573
21652
  readonly description: "The requested state transition is not permitted from the report's current status";
@@ -26501,6 +26580,7 @@ export declare const schemas: ({
26501
26580
  readonly properties: {
26502
26581
  readonly id: {
26503
26582
  readonly type: 'string';
26583
+ readonly format: 'tid';
26504
26584
  readonly description: 'The ID of the created draft.';
26505
26585
  };
26506
26586
  };
@@ -31713,6 +31793,11 @@ export declare const schemas: ({
31713
31793
  readonly record: {
31714
31794
  readonly type: 'unknown';
31715
31795
  };
31796
+ readonly starterPack: {
31797
+ readonly description: 'The starter pack associated with this notification. Present when the notification is for a follow originating from a starter pack.';
31798
+ readonly type: 'ref';
31799
+ readonly ref: 'lex:app.bsky.graph.defs#starterPackViewBasic';
31800
+ };
31716
31801
  readonly isRead: {
31717
31802
  readonly type: 'boolean';
31718
31803
  };
@@ -33779,6 +33864,11 @@ export declare const schemas: ({
33779
33864
  readonly error: {
33780
33865
  readonly type: 'string';
33781
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
+ };
33782
33872
  readonly message: {
33783
33873
  readonly type: 'string';
33784
33874
  };
@@ -40589,6 +40679,10 @@ export declare const schemas: ({
40589
40679
  readonly type: 'boolean';
40590
40680
  readonly description: 'If true, a phone verification token must be supplied to create an account on this instance.';
40591
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
+ };
40592
40686
  readonly availableUserDomains: {
40593
40687
  readonly type: 'array';
40594
40688
  readonly description: 'List of domain suffixes that can be used in account handles.';
@@ -45561,6 +45655,65 @@ export declare const schemas: ({
45561
45655
  }];
45562
45656
  };
45563
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
+ };
45564
45717
  } | {
45565
45718
  readonly lexicon: 1;
45566
45719
  readonly id: 'tools.ozone.report.createActivity';
@@ -45572,11 +45725,15 @@ export declare const schemas: ({
45572
45725
  readonly encoding: 'application/json';
45573
45726
  readonly schema: {
45574
45727
  readonly type: 'object';
45575
- readonly required: ["reportId", "activity"];
45728
+ readonly required: ["activity"];
45576
45729
  readonly properties: {
45577
45730
  readonly reportId: {
45578
45731
  readonly type: 'integer';
45579
- 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.';
45580
45737
  };
45581
45738
  readonly activity: {
45582
45739
  readonly type: 'union';
@@ -45614,7 +45771,7 @@ export declare const schemas: ({
45614
45771
  };
45615
45772
  readonly errors: [{
45616
45773
  readonly name: 'ReportNotFound';
45617
- readonly description: 'No report exists with the given reportId';
45774
+ readonly description: 'No report exists with the given reportId or eventId';
45618
45775
  }, {
45619
45776
  readonly name: 'InvalidStateTransition';
45620
45777
  readonly description: "The requested state transition is not permitted from the report's current status";
@@ -48727,6 +48884,7 @@ export declare const ids: {
48727
48884
  readonly ToolsOzoneQueueUnassignModerator: 'tools.ozone.queue.unassignModerator';
48728
48885
  readonly ToolsOzoneQueueUpdateQueue: 'tools.ozone.queue.updateQueue';
48729
48886
  readonly ToolsOzoneReportAssignModerator: 'tools.ozone.report.assignModerator';
48887
+ readonly ToolsOzoneReportCloseReports: 'tools.ozone.report.closeReports';
48730
48888
  readonly ToolsOzoneReportCreateActivity: 'tools.ozone.report.createActivity';
48731
48889
  readonly ToolsOzoneReportDefs: 'tools.ozone.report.defs';
48732
48890
  readonly ToolsOzoneReportGetAssignments: 'tools.ozone.report.getAssignments';