@atproto/ozone 0.2.5 → 0.2.6
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 +18 -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/queryActivities.d.ts +4 -0
- package/dist/api/report/queryActivities.d.ts.map +1 -0
- package/dist/api/report/queryActivities.js +36 -0
- package/dist/api/report/queryActivities.js.map +1 -0
- package/dist/background.d.ts +5 -3
- package/dist/background.d.ts.map +1 -1
- package/dist/background.js +13 -4
- package/dist/background.js.map +1 -1
- package/dist/context.js +1 -1
- package/dist/context.js.map +1 -1
- package/dist/daemon/context.js +1 -1
- package/dist/daemon/context.js.map +1 -1
- package/dist/daemon/verification-listener.d.ts +1 -1
- package/dist/daemon/verification-listener.d.ts.map +1 -1
- package/dist/daemon/verification-listener.js +10 -4
- package/dist/daemon/verification-listener.js.map +1 -1
- package/dist/db/migrations/20260602T120000000Z-add-report-activity-created-index.d.ts +4 -0
- package/dist/db/migrations/20260602T120000000Z-add-report-activity-created-index.d.ts.map +1 -0
- package/dist/db/migrations/20260602T120000000Z-add-report-activity-created-index.js +15 -0
- package/dist/db/migrations/20260602T120000000Z-add-report-activity-created-index.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/index.d.ts.map +1 -1
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -1
- package/dist/jetstream/service.d.ts +1 -1
- package/dist/jetstream/service.d.ts.map +1 -1
- package/dist/jetstream/service.js +3 -1
- package/dist/jetstream/service.js.map +1 -1
- package/dist/lexicon/index.d.ts +11 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +18 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +338 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +173 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/defs.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/notification/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/notification/defs.d.ts +19 -0
- package/dist/lexicon/types/chat/bsky/notification/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/notification/defs.js +19 -0
- package/dist/lexicon/types/chat/bsky/notification/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/notification/getPreferences.d.ts +20 -0
- package/dist/lexicon/types/chat/bsky/notification/getPreferences.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/notification/getPreferences.js +5 -0
- package/dist/lexicon/types/chat/bsky/notification/getPreferences.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/notification/putPreferences.d.ts +26 -0
- package/dist/lexicon/types/chat/bsky/notification/putPreferences.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/notification/putPreferences.js +5 -0
- package/dist/lexicon/types/chat/bsky/notification/putPreferences.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/report/defs.d.ts +1 -0
- package/dist/lexicon/types/tools/ozone/report/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/report/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/report/queryActivities.d.ts +32 -0
- package/dist/lexicon/types/tools/ozone/report/queryActivities.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/report/queryActivities.js +5 -0
- package/dist/lexicon/types/tools/ozone/report/queryActivities.js.map +1 -0
- package/dist/mod-service/report.d.ts +1 -0
- package/dist/mod-service/report.d.ts.map +1 -1
- package/dist/mod-service/report.js +16 -0
- package/dist/mod-service/report.js.map +1 -1
- package/dist/report/activity.d.ts +19 -1
- package/dist/report/activity.d.ts.map +1 -1
- package/dist/report/activity.js +27 -1
- package/dist/report/activity.js.map +1 -1
- package/package.json +9 -8
- package/src/api/index.ts +2 -0
- package/src/api/report/queryActivities.ts +64 -0
- package/src/background.ts +19 -4
- package/src/context.ts +1 -1
- package/src/daemon/context.ts +1 -1
- package/src/daemon/verification-listener.ts +9 -4
- package/src/db/migrations/20260602T120000000Z-add-report-activity-created-index.ts +17 -0
- package/src/db/migrations/index.ts +1 -0
- package/src/index.ts +25 -15
- package/src/jetstream/service.ts +3 -1
- package/src/mod-service/report.ts +19 -0
- package/src/report/activity.ts +47 -0
- package/tests/3p-labeler.test.ts +2 -2
- package/tests/_util.ts +8 -25
- package/tests/account-strikes.test.ts +1 -1
- package/tests/ack-all-subjects-of-account.test.ts +1 -1
- package/tests/age-assurance.test.ts +1 -1
- package/tests/blob-divert.test.ts +1 -1
- package/tests/communication-templates.test.ts +1 -1
- package/tests/content-tagger.test.ts +1 -1
- package/tests/db.test.ts +1 -1
- package/tests/expiring-label.test.ts +1 -1
- package/tests/expiring-tags.test.ts +1 -1
- package/tests/get-account-timeline.test.ts +1 -1
- package/tests/get-config.test.ts +1 -1
- package/tests/get-lists.test.ts +2 -1
- package/tests/get-profiles.test.ts +1 -1
- package/tests/get-record.test.ts +1 -1
- package/tests/get-records.test.ts +1 -1
- package/tests/get-repo.test.ts +1 -1
- package/tests/get-report.test.ts +1 -1
- package/tests/get-reporter-stats.test.ts +1 -1
- package/tests/get-repos.test.ts +1 -1
- package/tests/get-starter-pack.test.ts +1 -1
- package/tests/get-subjects.test.ts +1 -1
- package/tests/mod-tool.test.ts +1 -1
- package/tests/moderation-appeals.test.ts +1 -1
- package/tests/moderation-events.test.ts +1 -1
- package/tests/moderation-status-tags.test.ts +1 -1
- package/tests/moderation-statuses.test.ts +1 -1
- package/tests/moderation.test.ts +1 -1
- package/tests/protected-tags.test.ts +1 -1
- package/tests/query-labels.test.ts +1 -1
- package/tests/query-reports.test.ts +1 -1
- package/tests/queue-assignment.test.ts +1 -1
- package/tests/queue-router.test.ts +1 -1
- package/tests/queues.test.ts +1 -1
- package/tests/record-and-account-events.test.ts +1 -1
- package/tests/repo-search.test.ts +2 -2
- package/tests/report-action.test.ts +1 -1
- package/tests/report-activity.test.ts +145 -1
- package/tests/report-assignment.test.ts +1 -1
- package/tests/report-muting.test.ts +1 -1
- package/tests/report-reason.test.ts +1 -1
- package/tests/report-reassign-queue.test.ts +1 -1
- package/tests/report-routing.test.ts +1 -1
- package/tests/report-stats.test.ts +1 -1
- package/tests/revoke-account-credentials.test.ts +1 -1
- package/tests/safelink.test.ts +1 -1
- package/tests/scheduled-action-processor.test.ts +1 -1
- package/tests/scheduled-action.test.ts +1 -1
- package/tests/sequencer.test.ts +1 -1
- package/tests/server.test.ts +9 -12
- package/tests/sets.test.ts +1 -1
- package/tests/settings.test.ts +1 -1
- package/tests/strike-expiry-processor.test.ts +1 -1
- package/tests/subject-priority-score.test.ts +1 -1
- package/tests/takedown.test.ts +1 -1
- package/tests/team.test.ts +1 -1
- package/tests/verification-listener.test.ts +40 -13
- package/tests/verification.test.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -7017,6 +7017,7 @@ export const schemaDict = {
|
|
|
7017
7017
|
},
|
|
7018
7018
|
chatPreference: {
|
|
7019
7019
|
type: 'object',
|
|
7020
|
+
description: 'Deprecated: use chat.bsky.notification preferences instead. This will only return a default value.',
|
|
7020
7021
|
required: ['include', 'push'],
|
|
7021
7022
|
properties: {
|
|
7022
7023
|
include: {
|
|
@@ -7077,6 +7078,7 @@ export const schemaDict = {
|
|
|
7077
7078
|
chat: {
|
|
7078
7079
|
type: 'ref',
|
|
7079
7080
|
ref: 'lex:app.bsky.notification.defs#chatPreference',
|
|
7081
|
+
description: 'Deprecated: use chat.bsky.notification preferences instead. This will only return a default value.',
|
|
7080
7082
|
},
|
|
7081
7083
|
follow: {
|
|
7082
7084
|
type: 'ref',
|
|
@@ -7473,6 +7475,7 @@ export const schemaDict = {
|
|
|
7473
7475
|
chat: {
|
|
7474
7476
|
type: 'ref',
|
|
7475
7477
|
ref: 'lex:app.bsky.notification.defs#chatPreference',
|
|
7478
|
+
description: "Deprecated: use chat.bsky.notification preferences instead. Setting this won't stick and the default values will be returned.",
|
|
7476
7479
|
},
|
|
7477
7480
|
follow: {
|
|
7478
7481
|
type: 'ref',
|
|
@@ -14022,6 +14025,101 @@ export const schemaDict = {
|
|
|
14022
14025
|
},
|
|
14023
14026
|
},
|
|
14024
14027
|
},
|
|
14028
|
+
ChatBskyNotificationDefs: {
|
|
14029
|
+
lexicon: 1,
|
|
14030
|
+
id: 'chat.bsky.notification.defs',
|
|
14031
|
+
defs: {
|
|
14032
|
+
preferences: {
|
|
14033
|
+
type: 'object',
|
|
14034
|
+
required: ['chat', 'chatRequest'],
|
|
14035
|
+
properties: {
|
|
14036
|
+
chat: {
|
|
14037
|
+
type: 'ref',
|
|
14038
|
+
ref: 'lex:chat.bsky.notification.defs#chatPreference',
|
|
14039
|
+
},
|
|
14040
|
+
chatRequest: {
|
|
14041
|
+
type: 'ref',
|
|
14042
|
+
ref: 'lex:chat.bsky.notification.defs#chatPreference',
|
|
14043
|
+
},
|
|
14044
|
+
},
|
|
14045
|
+
},
|
|
14046
|
+
chatPreference: {
|
|
14047
|
+
type: 'object',
|
|
14048
|
+
required: ['include', 'push'],
|
|
14049
|
+
properties: {
|
|
14050
|
+
include: {
|
|
14051
|
+
type: 'string',
|
|
14052
|
+
knownValues: ['all', 'follows'],
|
|
14053
|
+
},
|
|
14054
|
+
push: {
|
|
14055
|
+
type: 'boolean',
|
|
14056
|
+
},
|
|
14057
|
+
},
|
|
14058
|
+
},
|
|
14059
|
+
},
|
|
14060
|
+
},
|
|
14061
|
+
ChatBskyNotificationGetPreferences: {
|
|
14062
|
+
lexicon: 1,
|
|
14063
|
+
id: 'chat.bsky.notification.getPreferences',
|
|
14064
|
+
defs: {
|
|
14065
|
+
main: {
|
|
14066
|
+
type: 'query',
|
|
14067
|
+
description: "Get the requesting account's chat notification preferences. Defaults are returned for accounts that have not set any preferences. Requires auth.",
|
|
14068
|
+
output: {
|
|
14069
|
+
encoding: 'application/json',
|
|
14070
|
+
schema: {
|
|
14071
|
+
type: 'object',
|
|
14072
|
+
required: ['preferences'],
|
|
14073
|
+
properties: {
|
|
14074
|
+
preferences: {
|
|
14075
|
+
type: 'ref',
|
|
14076
|
+
ref: 'lex:chat.bsky.notification.defs#preferences',
|
|
14077
|
+
},
|
|
14078
|
+
},
|
|
14079
|
+
},
|
|
14080
|
+
},
|
|
14081
|
+
},
|
|
14082
|
+
},
|
|
14083
|
+
},
|
|
14084
|
+
ChatBskyNotificationPutPreferences: {
|
|
14085
|
+
lexicon: 1,
|
|
14086
|
+
id: 'chat.bsky.notification.putPreferences',
|
|
14087
|
+
defs: {
|
|
14088
|
+
main: {
|
|
14089
|
+
type: 'procedure',
|
|
14090
|
+
description: "Set the requesting account's chat notification preferences. Only the provided preferences are updated; omitted preferences are left unchanged.",
|
|
14091
|
+
input: {
|
|
14092
|
+
encoding: 'application/json',
|
|
14093
|
+
schema: {
|
|
14094
|
+
type: 'object',
|
|
14095
|
+
properties: {
|
|
14096
|
+
chat: {
|
|
14097
|
+
type: 'ref',
|
|
14098
|
+
ref: 'lex:chat.bsky.notification.defs#chatPreference',
|
|
14099
|
+
},
|
|
14100
|
+
chatRequest: {
|
|
14101
|
+
type: 'ref',
|
|
14102
|
+
ref: 'lex:chat.bsky.notification.defs#chatPreference',
|
|
14103
|
+
},
|
|
14104
|
+
},
|
|
14105
|
+
},
|
|
14106
|
+
},
|
|
14107
|
+
output: {
|
|
14108
|
+
encoding: 'application/json',
|
|
14109
|
+
schema: {
|
|
14110
|
+
type: 'object',
|
|
14111
|
+
required: ['preferences'],
|
|
14112
|
+
properties: {
|
|
14113
|
+
preferences: {
|
|
14114
|
+
type: 'ref',
|
|
14115
|
+
ref: 'lex:chat.bsky.notification.defs#preferences',
|
|
14116
|
+
},
|
|
14117
|
+
},
|
|
14118
|
+
},
|
|
14119
|
+
},
|
|
14120
|
+
},
|
|
14121
|
+
},
|
|
14122
|
+
},
|
|
14025
14123
|
ComAtprotoAdminDefs: {
|
|
14026
14124
|
lexicon: 1,
|
|
14027
14125
|
id: 'com.atproto.admin.defs',
|
|
@@ -22868,6 +22966,11 @@ export const schemaDict = {
|
|
|
22868
22966
|
ref: 'lex:tools.ozone.team.defs#member',
|
|
22869
22967
|
description: 'Full member record of the moderator who created this activity',
|
|
22870
22968
|
},
|
|
22969
|
+
report: {
|
|
22970
|
+
type: 'ref',
|
|
22971
|
+
ref: 'lex:tools.ozone.report.defs#reportView',
|
|
22972
|
+
description: 'Full view of the report this activity belongs to.',
|
|
22973
|
+
},
|
|
22871
22974
|
createdAt: {
|
|
22872
22975
|
type: 'string',
|
|
22873
22976
|
format: 'datetime',
|
|
@@ -23280,6 +23383,72 @@ export const schemaDict = {
|
|
|
23280
23383
|
},
|
|
23281
23384
|
},
|
|
23282
23385
|
},
|
|
23386
|
+
ToolsOzoneReportQueryActivities: {
|
|
23387
|
+
lexicon: 1,
|
|
23388
|
+
id: 'tools.ozone.report.queryActivities',
|
|
23389
|
+
defs: {
|
|
23390
|
+
main: {
|
|
23391
|
+
type: 'query',
|
|
23392
|
+
description: 'Query report activities across all reports, ordered by createdAt. Used by downstream pollers; for per-report activity history use listActivities.',
|
|
23393
|
+
parameters: {
|
|
23394
|
+
type: 'params',
|
|
23395
|
+
properties: {
|
|
23396
|
+
activityTypes: {
|
|
23397
|
+
type: 'array',
|
|
23398
|
+
items: {
|
|
23399
|
+
type: 'string',
|
|
23400
|
+
},
|
|
23401
|
+
description: 'Filter to specific activity types (e.g. closeActivity, escalationActivity). If omitted, all types are returned.',
|
|
23402
|
+
},
|
|
23403
|
+
createdAfter: {
|
|
23404
|
+
type: 'string',
|
|
23405
|
+
format: 'datetime',
|
|
23406
|
+
description: 'Retrieve activities created at or after a given timestamp',
|
|
23407
|
+
},
|
|
23408
|
+
createdBefore: {
|
|
23409
|
+
type: 'string',
|
|
23410
|
+
format: 'datetime',
|
|
23411
|
+
description: 'Retrieve activities created at or before a given timestamp',
|
|
23412
|
+
},
|
|
23413
|
+
sortDirection: {
|
|
23414
|
+
type: 'string',
|
|
23415
|
+
default: 'desc',
|
|
23416
|
+
enum: ['asc', 'desc'],
|
|
23417
|
+
},
|
|
23418
|
+
limit: {
|
|
23419
|
+
type: 'integer',
|
|
23420
|
+
minimum: 1,
|
|
23421
|
+
maximum: 100,
|
|
23422
|
+
default: 50,
|
|
23423
|
+
},
|
|
23424
|
+
cursor: {
|
|
23425
|
+
type: 'string',
|
|
23426
|
+
description: 'Cursor of the form `<createdAtMs>::<activityId>`.',
|
|
23427
|
+
},
|
|
23428
|
+
},
|
|
23429
|
+
},
|
|
23430
|
+
output: {
|
|
23431
|
+
encoding: 'application/json',
|
|
23432
|
+
schema: {
|
|
23433
|
+
type: 'object',
|
|
23434
|
+
required: ['activities'],
|
|
23435
|
+
properties: {
|
|
23436
|
+
activities: {
|
|
23437
|
+
type: 'array',
|
|
23438
|
+
items: {
|
|
23439
|
+
type: 'ref',
|
|
23440
|
+
ref: 'lex:tools.ozone.report.defs#reportActivityView',
|
|
23441
|
+
},
|
|
23442
|
+
},
|
|
23443
|
+
cursor: {
|
|
23444
|
+
type: 'string',
|
|
23445
|
+
},
|
|
23446
|
+
},
|
|
23447
|
+
},
|
|
23448
|
+
},
|
|
23449
|
+
},
|
|
23450
|
+
},
|
|
23451
|
+
},
|
|
23283
23452
|
ToolsOzoneReportQueryReports: {
|
|
23284
23453
|
lexicon: 1,
|
|
23285
23454
|
id: 'tools.ozone.report.queryReports',
|
|
@@ -25520,6 +25689,9 @@ export const ids = {
|
|
|
25520
25689
|
ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
|
|
25521
25690
|
ChatBskyModerationSubscribeModEvents: 'chat.bsky.moderation.subscribeModEvents',
|
|
25522
25691
|
ChatBskyModerationUpdateActorAccess: 'chat.bsky.moderation.updateActorAccess',
|
|
25692
|
+
ChatBskyNotificationDefs: 'chat.bsky.notification.defs',
|
|
25693
|
+
ChatBskyNotificationGetPreferences: 'chat.bsky.notification.getPreferences',
|
|
25694
|
+
ChatBskyNotificationPutPreferences: 'chat.bsky.notification.putPreferences',
|
|
25523
25695
|
ComAtprotoAdminDefs: 'com.atproto.admin.defs',
|
|
25524
25696
|
ComAtprotoAdminDeleteAccount: 'com.atproto.admin.deleteAccount',
|
|
25525
25697
|
ComAtprotoAdminDisableAccountInvites: 'com.atproto.admin.disableAccountInvites',
|
|
@@ -25655,6 +25827,7 @@ export const ids = {
|
|
|
25655
25827
|
ToolsOzoneReportGetLiveStats: 'tools.ozone.report.getLiveStats',
|
|
25656
25828
|
ToolsOzoneReportGetReport: 'tools.ozone.report.getReport',
|
|
25657
25829
|
ToolsOzoneReportListActivities: 'tools.ozone.report.listActivities',
|
|
25830
|
+
ToolsOzoneReportQueryActivities: 'tools.ozone.report.queryActivities',
|
|
25658
25831
|
ToolsOzoneReportQueryReports: 'tools.ozone.report.queryReports',
|
|
25659
25832
|
ToolsOzoneReportReassignQueue: 'tools.ozone.report.reassignQueue',
|
|
25660
25833
|
ToolsOzoneReportRefreshStats: 'tools.ozone.report.refreshStats',
|