@atproto/ozone 0.1.46 → 0.1.47
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 +12 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/moderation/getRecord.d.ts.map +1 -1
- package/dist/api/moderation/getRecord.js +5 -4
- package/dist/api/moderation/getRecord.js.map +1 -1
- package/dist/api/moderation/getRecords.d.ts +4 -0
- package/dist/api/moderation/getRecords.d.ts.map +1 -0
- package/dist/api/moderation/getRecords.js +37 -0
- package/dist/api/moderation/getRecords.js.map +1 -0
- package/dist/api/moderation/getRepo.d.ts.map +1 -1
- package/dist/api/moderation/getRepo.js +5 -4
- package/dist/api/moderation/getRepo.js.map +1 -1
- package/dist/api/moderation/getRepos.d.ts +4 -0
- package/dist/api/moderation/getRepos.d.ts.map +1 -0
- package/dist/api/moderation/getRepos.js +36 -0
- package/dist/api/moderation/getRepos.js.map +1 -0
- package/dist/api/util.d.ts +1 -1
- package/dist/api/util.d.ts.map +1 -1
- package/dist/api/util.js +13 -9
- package/dist/api/util.js.map +1 -1
- package/dist/db/migrations/20241001T205730722Z-subject-status-review-state-index.d.ts +4 -0
- package/dist/db/migrations/20241001T205730722Z-subject-status-review-state-index.d.ts.map +1 -0
- package/dist/db/migrations/20241001T205730722Z-subject-status-review-state-index.js +18 -0
- package/dist/db/migrations/20241001T205730722Z-subject-status-review-state-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 +85 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +93 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/getRecord.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/repo/getRecord.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/getRecords.d.ts +39 -0
- package/dist/lexicon/types/tools/ozone/moderation/getRecords.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/getRecords.js +3 -0
- package/dist/lexicon/types/tools/ozone/moderation/getRecords.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/getRepos.d.ts +39 -0
- package/dist/lexicon/types/tools/ozone/moderation/getRepos.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/getRepos.js +3 -0
- package/dist/lexicon/types/tools/ozone/moderation/getRepos.js.map +1 -0
- package/dist/mod-service/views.d.ts +5 -5
- package/dist/mod-service/views.d.ts.map +1 -1
- package/dist/mod-service/views.js +75 -48
- package/dist/mod-service/views.js.map +1 -1
- package/package.json +5 -5
- package/src/api/index.ts +4 -0
- package/src/api/moderation/getRecord.ts +7 -5
- package/src/api/moderation/getRecords.ts +50 -0
- package/src/api/moderation/getRepo.ts +7 -5
- package/src/api/moderation/getRepos.ts +41 -0
- package/src/api/util.ts +16 -9
- package/src/db/migrations/20241001T205730722Z-subject-status-review-state-index.ts +15 -0
- package/src/db/migrations/index.ts +1 -0
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +93 -0
- package/src/lexicon/types/com/atproto/repo/getRecord.ts +1 -0
- package/src/lexicon/types/tools/ozone/moderation/getRecords.ts +50 -0
- package/src/lexicon/types/tools/ozone/moderation/getRepos.ts +50 -0
- package/src/mod-service/views.ts +93 -52
- package/tests/__snapshots__/get-records.test.ts.snap +153 -0
- package/tests/__snapshots__/get-repos.test.ts.snap +108 -0
- package/tests/get-records.test.ts +87 -0
- package/tests/get-repos.test.ts +87 -0
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -1631,6 +1631,11 @@ exports.schemaDict = {
|
|
|
1631
1631
|
},
|
|
1632
1632
|
},
|
|
1633
1633
|
},
|
|
1634
|
+
errors: [
|
|
1635
|
+
{
|
|
1636
|
+
name: 'RecordNotFound',
|
|
1637
|
+
},
|
|
1638
|
+
],
|
|
1634
1639
|
},
|
|
1635
1640
|
},
|
|
1636
1641
|
},
|
|
@@ -11331,6 +11336,49 @@ exports.schemaDict = {
|
|
|
11331
11336
|
},
|
|
11332
11337
|
},
|
|
11333
11338
|
},
|
|
11339
|
+
ToolsOzoneModerationGetRecords: {
|
|
11340
|
+
lexicon: 1,
|
|
11341
|
+
id: 'tools.ozone.moderation.getRecords',
|
|
11342
|
+
defs: {
|
|
11343
|
+
main: {
|
|
11344
|
+
type: 'query',
|
|
11345
|
+
description: 'Get details about some records.',
|
|
11346
|
+
parameters: {
|
|
11347
|
+
type: 'params',
|
|
11348
|
+
required: ['uris'],
|
|
11349
|
+
properties: {
|
|
11350
|
+
uris: {
|
|
11351
|
+
type: 'array',
|
|
11352
|
+
maxLength: 100,
|
|
11353
|
+
items: {
|
|
11354
|
+
type: 'string',
|
|
11355
|
+
format: 'at-uri',
|
|
11356
|
+
},
|
|
11357
|
+
},
|
|
11358
|
+
},
|
|
11359
|
+
},
|
|
11360
|
+
output: {
|
|
11361
|
+
encoding: 'application/json',
|
|
11362
|
+
schema: {
|
|
11363
|
+
type: 'object',
|
|
11364
|
+
required: ['records'],
|
|
11365
|
+
properties: {
|
|
11366
|
+
records: {
|
|
11367
|
+
type: 'array',
|
|
11368
|
+
items: {
|
|
11369
|
+
type: 'union',
|
|
11370
|
+
refs: [
|
|
11371
|
+
'lex:tools.ozone.moderation.defs#recordViewDetail',
|
|
11372
|
+
'lex:tools.ozone.moderation.defs#recordViewNotFound',
|
|
11373
|
+
],
|
|
11374
|
+
},
|
|
11375
|
+
},
|
|
11376
|
+
},
|
|
11377
|
+
},
|
|
11378
|
+
},
|
|
11379
|
+
},
|
|
11380
|
+
},
|
|
11381
|
+
},
|
|
11334
11382
|
ToolsOzoneModerationGetRepo: {
|
|
11335
11383
|
lexicon: 1,
|
|
11336
11384
|
id: 'tools.ozone.moderation.getRepo',
|
|
@@ -11363,6 +11411,49 @@ exports.schemaDict = {
|
|
|
11363
11411
|
},
|
|
11364
11412
|
},
|
|
11365
11413
|
},
|
|
11414
|
+
ToolsOzoneModerationGetRepos: {
|
|
11415
|
+
lexicon: 1,
|
|
11416
|
+
id: 'tools.ozone.moderation.getRepos',
|
|
11417
|
+
defs: {
|
|
11418
|
+
main: {
|
|
11419
|
+
type: 'query',
|
|
11420
|
+
description: 'Get details about some repositories.',
|
|
11421
|
+
parameters: {
|
|
11422
|
+
type: 'params',
|
|
11423
|
+
required: ['dids'],
|
|
11424
|
+
properties: {
|
|
11425
|
+
dids: {
|
|
11426
|
+
type: 'array',
|
|
11427
|
+
maxLength: 100,
|
|
11428
|
+
items: {
|
|
11429
|
+
type: 'string',
|
|
11430
|
+
format: 'did',
|
|
11431
|
+
},
|
|
11432
|
+
},
|
|
11433
|
+
},
|
|
11434
|
+
},
|
|
11435
|
+
output: {
|
|
11436
|
+
encoding: 'application/json',
|
|
11437
|
+
schema: {
|
|
11438
|
+
type: 'object',
|
|
11439
|
+
required: ['repos'],
|
|
11440
|
+
properties: {
|
|
11441
|
+
repos: {
|
|
11442
|
+
type: 'array',
|
|
11443
|
+
items: {
|
|
11444
|
+
type: 'union',
|
|
11445
|
+
refs: [
|
|
11446
|
+
'lex:tools.ozone.moderation.defs#repoViewDetail',
|
|
11447
|
+
'lex:tools.ozone.moderation.defs#repoViewNotFound',
|
|
11448
|
+
],
|
|
11449
|
+
},
|
|
11450
|
+
},
|
|
11451
|
+
},
|
|
11452
|
+
},
|
|
11453
|
+
},
|
|
11454
|
+
},
|
|
11455
|
+
},
|
|
11456
|
+
},
|
|
11366
11457
|
ToolsOzoneModerationQueryEvents: {
|
|
11367
11458
|
lexicon: 1,
|
|
11368
11459
|
id: 'tools.ozone.moderation.queryEvents',
|
|
@@ -12144,7 +12235,9 @@ exports.ids = {
|
|
|
12144
12235
|
ToolsOzoneModerationEmitEvent: 'tools.ozone.moderation.emitEvent',
|
|
12145
12236
|
ToolsOzoneModerationGetEvent: 'tools.ozone.moderation.getEvent',
|
|
12146
12237
|
ToolsOzoneModerationGetRecord: 'tools.ozone.moderation.getRecord',
|
|
12238
|
+
ToolsOzoneModerationGetRecords: 'tools.ozone.moderation.getRecords',
|
|
12147
12239
|
ToolsOzoneModerationGetRepo: 'tools.ozone.moderation.getRepo',
|
|
12240
|
+
ToolsOzoneModerationGetRepos: 'tools.ozone.moderation.getRepos',
|
|
12148
12241
|
ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
|
|
12149
12242
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
12150
12243
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|