@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.
- package/CHANGELOG.md +23 -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 +164 -6
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +89 -3
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.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 +9 -9
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -2229,6 +2229,7 @@ export const schemaDict = {
|
|
|
2229
2229
|
properties: {
|
|
2230
2230
|
id: {
|
|
2231
2231
|
type: 'string',
|
|
2232
|
+
format: 'tid',
|
|
2232
2233
|
description: 'The ID of the created draft.',
|
|
2233
2234
|
},
|
|
2234
2235
|
},
|
|
@@ -7689,6 +7690,11 @@ export const schemaDict = {
|
|
|
7689
7690
|
record: {
|
|
7690
7691
|
type: 'unknown',
|
|
7691
7692
|
},
|
|
7693
|
+
starterPack: {
|
|
7694
|
+
description: 'The starter pack associated with this notification. Present when the notification is for a follow originating from a starter pack.',
|
|
7695
|
+
type: 'ref',
|
|
7696
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
7697
|
+
},
|
|
7692
7698
|
isRead: {
|
|
7693
7699
|
type: 'boolean',
|
|
7694
7700
|
},
|
|
@@ -9834,6 +9840,17 @@ export const schemaDict = {
|
|
|
9834
9840
|
error: {
|
|
9835
9841
|
type: 'string',
|
|
9836
9842
|
},
|
|
9843
|
+
failureCode: {
|
|
9844
|
+
type: 'string',
|
|
9845
|
+
description: 'A machine-readable code for why the video processing job failed.',
|
|
9846
|
+
knownValues: [
|
|
9847
|
+
'validation_failure',
|
|
9848
|
+
'encoding_failure',
|
|
9849
|
+
'pds_upload_failure',
|
|
9850
|
+
'pds_upload_unsupported_blob_size',
|
|
9851
|
+
'generic_failure',
|
|
9852
|
+
],
|
|
9853
|
+
},
|
|
9837
9854
|
message: {
|
|
9838
9855
|
type: 'string',
|
|
9839
9856
|
},
|
|
@@ -17320,6 +17337,10 @@ export const schemaDict = {
|
|
|
17320
17337
|
type: 'boolean',
|
|
17321
17338
|
description: 'If true, a phone verification token must be supplied to create an account on this instance.',
|
|
17322
17339
|
},
|
|
17340
|
+
blobUploadLimit: {
|
|
17341
|
+
type: 'integer',
|
|
17342
|
+
description: 'Maximum size of a blob that can be uploaded via com.atproto.repo.uploadBlob, in bytes.',
|
|
17343
|
+
},
|
|
17323
17344
|
availableUserDomains: {
|
|
17324
17345
|
type: 'array',
|
|
17325
17346
|
description: 'List of domain suffixes that can be used in account handles.',
|
|
@@ -22755,6 +22776,66 @@ export const schemaDict = {
|
|
|
22755
22776
|
},
|
|
22756
22777
|
},
|
|
22757
22778
|
},
|
|
22779
|
+
ToolsOzoneReportCloseReports: {
|
|
22780
|
+
lexicon: 1,
|
|
22781
|
+
id: 'tools.ozone.report.closeReports',
|
|
22782
|
+
defs: {
|
|
22783
|
+
main: {
|
|
22784
|
+
type: 'procedure',
|
|
22785
|
+
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.',
|
|
22786
|
+
input: {
|
|
22787
|
+
encoding: 'application/json',
|
|
22788
|
+
schema: {
|
|
22789
|
+
type: 'object',
|
|
22790
|
+
required: ['subject'],
|
|
22791
|
+
properties: {
|
|
22792
|
+
subject: {
|
|
22793
|
+
type: 'string',
|
|
22794
|
+
format: 'uri',
|
|
22795
|
+
description: 'Subject DID (account-level reports) or AT-URI (record-level reports) whose reports should be closed.',
|
|
22796
|
+
},
|
|
22797
|
+
reportTypes: {
|
|
22798
|
+
type: 'array',
|
|
22799
|
+
items: {
|
|
22800
|
+
type: 'string',
|
|
22801
|
+
},
|
|
22802
|
+
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.',
|
|
22803
|
+
},
|
|
22804
|
+
internalNote: {
|
|
22805
|
+
type: 'string',
|
|
22806
|
+
description: 'Optional moderator-only note recorded on each close activity. Not visible to reporters.',
|
|
22807
|
+
},
|
|
22808
|
+
isAutomated: {
|
|
22809
|
+
type: 'boolean',
|
|
22810
|
+
description: 'Set true when this action is triggered by an automated process. Defaults to false.',
|
|
22811
|
+
default: false,
|
|
22812
|
+
},
|
|
22813
|
+
},
|
|
22814
|
+
},
|
|
22815
|
+
},
|
|
22816
|
+
output: {
|
|
22817
|
+
encoding: 'application/json',
|
|
22818
|
+
schema: {
|
|
22819
|
+
type: 'object',
|
|
22820
|
+
required: ['closedCount', 'reportIds'],
|
|
22821
|
+
properties: {
|
|
22822
|
+
closedCount: {
|
|
22823
|
+
type: 'integer',
|
|
22824
|
+
description: 'Number of reports that were transitioned to closed.',
|
|
22825
|
+
},
|
|
22826
|
+
reportIds: {
|
|
22827
|
+
type: 'array',
|
|
22828
|
+
items: {
|
|
22829
|
+
type: 'integer',
|
|
22830
|
+
},
|
|
22831
|
+
description: 'IDs of the reports that were closed.',
|
|
22832
|
+
},
|
|
22833
|
+
},
|
|
22834
|
+
},
|
|
22835
|
+
},
|
|
22836
|
+
},
|
|
22837
|
+
},
|
|
22838
|
+
},
|
|
22758
22839
|
ToolsOzoneReportCreateActivity: {
|
|
22759
22840
|
lexicon: 1,
|
|
22760
22841
|
id: 'tools.ozone.report.createActivity',
|
|
@@ -22766,11 +22847,15 @@ export const schemaDict = {
|
|
|
22766
22847
|
encoding: 'application/json',
|
|
22767
22848
|
schema: {
|
|
22768
22849
|
type: 'object',
|
|
22769
|
-
required: ['
|
|
22850
|
+
required: ['activity'],
|
|
22770
22851
|
properties: {
|
|
22771
22852
|
reportId: {
|
|
22772
22853
|
type: 'integer',
|
|
22773
|
-
description: 'ID of the report to record activity on',
|
|
22854
|
+
description: 'ID of the report to record activity on. Exactly one of reportId or eventId must be provided.',
|
|
22855
|
+
},
|
|
22856
|
+
eventId: {
|
|
22857
|
+
type: 'integer',
|
|
22858
|
+
description: 'ID of the report moderation event. Resolves to the report created from that event. Exactly one of reportId or eventId must be provided.',
|
|
22774
22859
|
},
|
|
22775
22860
|
activity: {
|
|
22776
22861
|
type: 'union',
|
|
@@ -22816,7 +22901,7 @@ export const schemaDict = {
|
|
|
22816
22901
|
errors: [
|
|
22817
22902
|
{
|
|
22818
22903
|
name: 'ReportNotFound',
|
|
22819
|
-
description: 'No report exists with the given reportId',
|
|
22904
|
+
description: 'No report exists with the given reportId or eventId',
|
|
22820
22905
|
},
|
|
22821
22906
|
{
|
|
22822
22907
|
name: 'InvalidStateTransition',
|
|
@@ -26148,6 +26233,7 @@ export const ids = {
|
|
|
26148
26233
|
ToolsOzoneQueueUnassignModerator: 'tools.ozone.queue.unassignModerator',
|
|
26149
26234
|
ToolsOzoneQueueUpdateQueue: 'tools.ozone.queue.updateQueue',
|
|
26150
26235
|
ToolsOzoneReportAssignModerator: 'tools.ozone.report.assignModerator',
|
|
26236
|
+
ToolsOzoneReportCloseReports: 'tools.ozone.report.closeReports',
|
|
26151
26237
|
ToolsOzoneReportCreateActivity: 'tools.ozone.report.createActivity',
|
|
26152
26238
|
ToolsOzoneReportDefs: 'tools.ozone.report.defs',
|
|
26153
26239
|
ToolsOzoneReportGetAssignments: 'tools.ozone.report.getAssignments',
|