@atproto/ozone 0.1.79 → 0.1.80
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 +9 -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/moderation/getReporterStats.d.ts +4 -0
- package/dist/api/moderation/getReporterStats.d.ts.map +1 -0
- package/dist/api/moderation/getReporterStats.js +17 -0
- package/dist/api/moderation/getReporterStats.js.map +1 -0
- package/dist/daemon/materialized-view-refresher.d.ts.map +1 -1
- package/dist/daemon/materialized-view-refresher.js +1 -0
- package/dist/daemon/materialized-view-refresher.js.map +1 -1
- package/dist/db/migrations/20250211T003647759Z-add-reporter-stats-index.d.ts +4 -0
- package/dist/db/migrations/20250211T003647759Z-add-reporter-stats-index.d.ts.map +1 -0
- package/dist/db/migrations/20250211T003647759Z-add-reporter-stats-index.js +38 -0
- package/dist/db/migrations/20250211T003647759Z-add-reporter-stats-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 +2 -1
- package/dist/db/migrations/index.js.map +1 -1
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +282 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +153 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/listReposByCollection.d.ts +46 -0
- package/dist/lexicon/types/com/atproto/sync/listReposByCollection.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/sync/listReposByCollection.js +16 -0
- package/dist/lexicon/types/com/atproto/sync/listReposByCollection.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +22 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js +9 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/getReporterStats.d.ts +36 -0
- package/dist/lexicon/types/tools/ozone/moderation/getReporterStats.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/getReporterStats.js +7 -0
- package/dist/lexicon/types/tools/ozone/moderation/getReporterStats.js.map +1 -0
- package/dist/mod-service/index.d.ts +5 -1
- package/dist/mod-service/index.d.ts.map +1 -1
- package/dist/mod-service/index.js +94 -0
- package/dist/mod-service/index.js.map +1 -1
- package/dist/mod-service/types.d.ts +21 -0
- package/dist/mod-service/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/index.ts +2 -0
- package/src/api/moderation/getReporterStats.ts +18 -0
- package/src/daemon/materialized-view-refresher.ts +1 -0
- package/src/db/migrations/20250211T003647759Z-add-reporter-stats-index.ts +38 -0
- package/src/db/migrations/index.ts +1 -0
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +162 -0
- package/src/lexicon/types/com/atproto/sync/listReposByCollection.ts +68 -0
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +31 -0
- package/src/lexicon/types/tools/ozone/moderation/getReporterStats.ts +50 -0
- package/src/mod-service/index.ts +126 -0
- package/src/mod-service/types.ts +23 -0
- package/tests/get-reporter-stats.test.ts +117 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -3540,6 +3540,65 @@ exports.schemaDict = {
|
|
|
3540
3540
|
},
|
|
3541
3541
|
},
|
|
3542
3542
|
},
|
|
3543
|
+
ComAtprotoSyncListReposByCollection: {
|
|
3544
|
+
lexicon: 1,
|
|
3545
|
+
id: 'com.atproto.sync.listReposByCollection',
|
|
3546
|
+
defs: {
|
|
3547
|
+
main: {
|
|
3548
|
+
type: 'query',
|
|
3549
|
+
description: 'Enumerates all the DIDs which have records with the given collection NSID.',
|
|
3550
|
+
parameters: {
|
|
3551
|
+
type: 'params',
|
|
3552
|
+
required: ['collection'],
|
|
3553
|
+
properties: {
|
|
3554
|
+
collection: {
|
|
3555
|
+
type: 'string',
|
|
3556
|
+
format: 'nsid',
|
|
3557
|
+
},
|
|
3558
|
+
limit: {
|
|
3559
|
+
type: 'integer',
|
|
3560
|
+
description: 'Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists.',
|
|
3561
|
+
minimum: 1,
|
|
3562
|
+
maximum: 2000,
|
|
3563
|
+
default: 500,
|
|
3564
|
+
},
|
|
3565
|
+
cursor: {
|
|
3566
|
+
type: 'string',
|
|
3567
|
+
},
|
|
3568
|
+
},
|
|
3569
|
+
},
|
|
3570
|
+
output: {
|
|
3571
|
+
encoding: 'application/json',
|
|
3572
|
+
schema: {
|
|
3573
|
+
type: 'object',
|
|
3574
|
+
required: ['repos'],
|
|
3575
|
+
properties: {
|
|
3576
|
+
cursor: {
|
|
3577
|
+
type: 'string',
|
|
3578
|
+
},
|
|
3579
|
+
repos: {
|
|
3580
|
+
type: 'array',
|
|
3581
|
+
items: {
|
|
3582
|
+
type: 'ref',
|
|
3583
|
+
ref: 'lex:com.atproto.sync.listReposByCollection#repo',
|
|
3584
|
+
},
|
|
3585
|
+
},
|
|
3586
|
+
},
|
|
3587
|
+
},
|
|
3588
|
+
},
|
|
3589
|
+
},
|
|
3590
|
+
repo: {
|
|
3591
|
+
type: 'object',
|
|
3592
|
+
required: ['did'],
|
|
3593
|
+
properties: {
|
|
3594
|
+
did: {
|
|
3595
|
+
type: 'string',
|
|
3596
|
+
format: 'did',
|
|
3597
|
+
},
|
|
3598
|
+
},
|
|
3599
|
+
},
|
|
3600
|
+
},
|
|
3601
|
+
},
|
|
3543
3602
|
ComAtprotoSyncNotifyOfUpdate: {
|
|
3544
3603
|
lexicon: 1,
|
|
3545
3604
|
id: 'com.atproto.sync.notifyOfUpdate',
|
|
@@ -11867,6 +11926,58 @@ exports.schemaDict = {
|
|
|
11867
11926
|
},
|
|
11868
11927
|
},
|
|
11869
11928
|
},
|
|
11929
|
+
reporterStats: {
|
|
11930
|
+
type: 'object',
|
|
11931
|
+
required: [
|
|
11932
|
+
'did',
|
|
11933
|
+
'accountReportCount',
|
|
11934
|
+
'recordReportCount',
|
|
11935
|
+
'reportedAccountCount',
|
|
11936
|
+
'reportedRecordCount',
|
|
11937
|
+
'takendownAccountCount',
|
|
11938
|
+
'takendownRecordCount',
|
|
11939
|
+
'labeledAccountCount',
|
|
11940
|
+
'labeledRecordCount',
|
|
11941
|
+
],
|
|
11942
|
+
properties: {
|
|
11943
|
+
did: {
|
|
11944
|
+
type: 'string',
|
|
11945
|
+
format: 'did',
|
|
11946
|
+
},
|
|
11947
|
+
accountReportCount: {
|
|
11948
|
+
type: 'integer',
|
|
11949
|
+
description: 'The total number of reports made by the user on accounts.',
|
|
11950
|
+
},
|
|
11951
|
+
recordReportCount: {
|
|
11952
|
+
type: 'integer',
|
|
11953
|
+
description: 'The total number of reports made by the user on records.',
|
|
11954
|
+
},
|
|
11955
|
+
reportedAccountCount: {
|
|
11956
|
+
type: 'integer',
|
|
11957
|
+
description: 'The total number of accounts reported by the user.',
|
|
11958
|
+
},
|
|
11959
|
+
reportedRecordCount: {
|
|
11960
|
+
type: 'integer',
|
|
11961
|
+
description: 'The total number of records reported by the user.',
|
|
11962
|
+
},
|
|
11963
|
+
takendownAccountCount: {
|
|
11964
|
+
type: 'integer',
|
|
11965
|
+
description: "The total number of accounts taken down as a result of the user's reports.",
|
|
11966
|
+
},
|
|
11967
|
+
takendownRecordCount: {
|
|
11968
|
+
type: 'integer',
|
|
11969
|
+
description: "The total number of records taken down as a result of the user's reports.",
|
|
11970
|
+
},
|
|
11971
|
+
labeledAccountCount: {
|
|
11972
|
+
type: 'integer',
|
|
11973
|
+
description: "The total number of accounts labeled as a result of the user's reports.",
|
|
11974
|
+
},
|
|
11975
|
+
labeledRecordCount: {
|
|
11976
|
+
type: 'integer',
|
|
11977
|
+
description: "The total number of records labeled as a result of the user's reports.",
|
|
11978
|
+
},
|
|
11979
|
+
},
|
|
11980
|
+
},
|
|
11870
11981
|
},
|
|
11871
11982
|
},
|
|
11872
11983
|
ToolsOzoneModerationEmitEvent: {
|
|
@@ -12078,6 +12189,46 @@ exports.schemaDict = {
|
|
|
12078
12189
|
},
|
|
12079
12190
|
},
|
|
12080
12191
|
},
|
|
12192
|
+
ToolsOzoneModerationGetReporterStats: {
|
|
12193
|
+
lexicon: 1,
|
|
12194
|
+
id: 'tools.ozone.moderation.getReporterStats',
|
|
12195
|
+
defs: {
|
|
12196
|
+
main: {
|
|
12197
|
+
type: 'query',
|
|
12198
|
+
description: 'Get reporter stats for a list of users.',
|
|
12199
|
+
parameters: {
|
|
12200
|
+
type: 'params',
|
|
12201
|
+
required: ['dids'],
|
|
12202
|
+
properties: {
|
|
12203
|
+
dids: {
|
|
12204
|
+
type: 'array',
|
|
12205
|
+
maxLength: 100,
|
|
12206
|
+
items: {
|
|
12207
|
+
type: 'string',
|
|
12208
|
+
format: 'did',
|
|
12209
|
+
},
|
|
12210
|
+
},
|
|
12211
|
+
},
|
|
12212
|
+
},
|
|
12213
|
+
output: {
|
|
12214
|
+
encoding: 'application/json',
|
|
12215
|
+
schema: {
|
|
12216
|
+
type: 'object',
|
|
12217
|
+
required: ['stats'],
|
|
12218
|
+
properties: {
|
|
12219
|
+
stats: {
|
|
12220
|
+
type: 'array',
|
|
12221
|
+
items: {
|
|
12222
|
+
type: 'ref',
|
|
12223
|
+
ref: 'lex:tools.ozone.moderation.defs#reporterStats',
|
|
12224
|
+
},
|
|
12225
|
+
},
|
|
12226
|
+
},
|
|
12227
|
+
},
|
|
12228
|
+
},
|
|
12229
|
+
},
|
|
12230
|
+
},
|
|
12231
|
+
},
|
|
12081
12232
|
ToolsOzoneModerationGetRepos: {
|
|
12082
12233
|
lexicon: 1,
|
|
12083
12234
|
id: 'tools.ozone.moderation.getRepos',
|
|
@@ -13571,6 +13722,7 @@ exports.ids = {
|
|
|
13571
13722
|
ComAtprotoSyncGetRepoStatus: 'com.atproto.sync.getRepoStatus',
|
|
13572
13723
|
ComAtprotoSyncListBlobs: 'com.atproto.sync.listBlobs',
|
|
13573
13724
|
ComAtprotoSyncListRepos: 'com.atproto.sync.listRepos',
|
|
13725
|
+
ComAtprotoSyncListReposByCollection: 'com.atproto.sync.listReposByCollection',
|
|
13574
13726
|
ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
|
|
13575
13727
|
ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
|
|
13576
13728
|
ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
|
|
@@ -13699,6 +13851,7 @@ exports.ids = {
|
|
|
13699
13851
|
ToolsOzoneModerationGetRecord: 'tools.ozone.moderation.getRecord',
|
|
13700
13852
|
ToolsOzoneModerationGetRecords: 'tools.ozone.moderation.getRecords',
|
|
13701
13853
|
ToolsOzoneModerationGetRepo: 'tools.ozone.moderation.getRepo',
|
|
13854
|
+
ToolsOzoneModerationGetReporterStats: 'tools.ozone.moderation.getReporterStats',
|
|
13702
13855
|
ToolsOzoneModerationGetRepos: 'tools.ozone.moderation.getRepos',
|
|
13703
13856
|
ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
|
|
13704
13857
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|