@atproto/ozone 0.1.75 → 0.1.77
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 +16 -0
- package/dist/api/util.d.ts.map +1 -1
- package/dist/api/util.js +1 -0
- package/dist/api/util.js.map +1 -1
- package/dist/db/migrations/20250204T003647759Z-add-subject-priority-score.d.ts +4 -0
- package/dist/db/migrations/20250204T003647759Z-add-subject-priority-score.d.ts.map +1 -0
- package/dist/db/migrations/20250204T003647759Z-add-subject-priority-score.js +22 -0
- package/dist/db/migrations/20250204T003647759Z-add-subject-priority-score.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/db/schema/moderation_event.d.ts +2 -2
- package/dist/db/schema/moderation_event.d.ts.map +1 -1
- package/dist/db/schema/moderation_subject_status.d.ts +1 -0
- package/dist/db/schema/moderation_subject_status.d.ts.map +1 -1
- package/dist/lexicon/lexicons.d.ts +76 -12
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +38 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts +7 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/threadgate.js +10 -0
- package/dist/lexicon/types/app/bsky/feed/threadgate.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +12 -2
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.js +10 -0
- package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts +3 -1
- package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
- package/dist/mod-service/index.d.ts +4 -3
- package/dist/mod-service/index.d.ts.map +1 -1
- package/dist/mod-service/index.js +10 -2
- package/dist/mod-service/index.js.map +1 -1
- package/dist/mod-service/status.d.ts +1 -0
- package/dist/mod-service/status.d.ts.map +1 -1
- package/dist/mod-service/status.js +5 -0
- package/dist/mod-service/status.js.map +1 -1
- package/dist/mod-service/types.d.ts +1 -1
- package/dist/mod-service/types.d.ts.map +1 -1
- package/dist/mod-service/views.d.ts.map +1 -1
- package/dist/mod-service/views.js +8 -0
- package/dist/mod-service/views.js.map +1 -1
- package/package.json +3 -3
- package/src/api/util.ts +1 -0
- package/src/db/migrations/20250204T003647759Z-add-subject-priority-score.ts +22 -0
- package/src/db/migrations/index.ts +1 -0
- package/src/db/schema/moderation_event.ts +2 -1
- package/src/db/schema/moderation_subject_status.ts +1 -0
- package/src/lexicon/lexicons.ts +41 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +1 -0
- package/src/lexicon/types/app/bsky/feed/threadgate.ts +18 -0
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +28 -0
- package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +1 -0
- package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +3 -0
- package/src/mod-service/index.ts +18 -2
- package/src/mod-service/status.ts +8 -0
- package/src/mod-service/types.ts +1 -0
- package/src/mod-service/views.ts +9 -0
- package/tests/__snapshots__/get-record.test.ts.snap +2 -0
- package/tests/__snapshots__/get-records.test.ts.snap +1 -0
- package/tests/__snapshots__/get-repo.test.ts.snap +1 -0
- package/tests/__snapshots__/get-repos.test.ts.snap +1 -0
- package/tests/__snapshots__/moderation-events.test.ts.snap +1 -0
- package/tests/__snapshots__/moderation-statuses.test.ts.snap +6 -0
- package/tests/subject-priority-score.test.ts +96 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -4574,6 +4574,7 @@ exports.schemaDict = {
|
|
|
4574
4574
|
type: 'union',
|
|
4575
4575
|
refs: [
|
|
4576
4576
|
'lex:app.bsky.feed.threadgate#mentionRule',
|
|
4577
|
+
'lex:app.bsky.feed.threadgate#followerRule',
|
|
4577
4578
|
'lex:app.bsky.feed.threadgate#followingRule',
|
|
4578
4579
|
'lex:app.bsky.feed.threadgate#listRule',
|
|
4579
4580
|
],
|
|
@@ -7139,6 +7140,7 @@ exports.schemaDict = {
|
|
|
7139
7140
|
type: 'union',
|
|
7140
7141
|
refs: [
|
|
7141
7142
|
'lex:app.bsky.feed.threadgate#mentionRule',
|
|
7143
|
+
'lex:app.bsky.feed.threadgate#followerRule',
|
|
7142
7144
|
'lex:app.bsky.feed.threadgate#followingRule',
|
|
7143
7145
|
'lex:app.bsky.feed.threadgate#listRule',
|
|
7144
7146
|
],
|
|
@@ -7165,6 +7167,11 @@ exports.schemaDict = {
|
|
|
7165
7167
|
description: 'Allow replies from actors mentioned in your post.',
|
|
7166
7168
|
properties: {},
|
|
7167
7169
|
},
|
|
7170
|
+
followerRule: {
|
|
7171
|
+
type: 'object',
|
|
7172
|
+
description: 'Allow replies from actors who follow you.',
|
|
7173
|
+
properties: {},
|
|
7174
|
+
},
|
|
7168
7175
|
followingRule: {
|
|
7169
7176
|
type: 'object',
|
|
7170
7177
|
description: 'Allow replies from actors you follow.',
|
|
@@ -10866,6 +10873,7 @@ exports.schemaDict = {
|
|
|
10866
10873
|
'lex:tools.ozone.moderation.defs#accountEvent',
|
|
10867
10874
|
'lex:tools.ozone.moderation.defs#identityEvent',
|
|
10868
10875
|
'lex:tools.ozone.moderation.defs#recordEvent',
|
|
10876
|
+
'lex:tools.ozone.moderation.defs#modEventPriorityScore',
|
|
10869
10877
|
],
|
|
10870
10878
|
},
|
|
10871
10879
|
subject: {
|
|
@@ -10933,6 +10941,7 @@ exports.schemaDict = {
|
|
|
10933
10941
|
'lex:tools.ozone.moderation.defs#accountEvent',
|
|
10934
10942
|
'lex:tools.ozone.moderation.defs#identityEvent',
|
|
10935
10943
|
'lex:tools.ozone.moderation.defs#recordEvent',
|
|
10944
|
+
'lex:tools.ozone.moderation.defs#modEventPriorityScore',
|
|
10936
10945
|
],
|
|
10937
10946
|
},
|
|
10938
10947
|
subject: {
|
|
@@ -11010,6 +11019,12 @@ exports.schemaDict = {
|
|
|
11010
11019
|
type: 'string',
|
|
11011
11020
|
description: 'Sticky comment on the subject.',
|
|
11012
11021
|
},
|
|
11022
|
+
priorityScore: {
|
|
11023
|
+
type: 'integer',
|
|
11024
|
+
description: 'Numeric value representing the level of priority. Higher score means higher priority.',
|
|
11025
|
+
minimum: 0,
|
|
11026
|
+
maximum: 100,
|
|
11027
|
+
},
|
|
11013
11028
|
muteUntil: {
|
|
11014
11029
|
type: 'string',
|
|
11015
11030
|
format: 'datetime',
|
|
@@ -11256,6 +11271,21 @@ exports.schemaDict = {
|
|
|
11256
11271
|
},
|
|
11257
11272
|
},
|
|
11258
11273
|
},
|
|
11274
|
+
modEventPriorityScore: {
|
|
11275
|
+
type: 'object',
|
|
11276
|
+
description: 'Set priority score of the subject. Higher score means higher priority.',
|
|
11277
|
+
required: ['score'],
|
|
11278
|
+
properties: {
|
|
11279
|
+
comment: {
|
|
11280
|
+
type: 'string',
|
|
11281
|
+
},
|
|
11282
|
+
score: {
|
|
11283
|
+
type: 'integer',
|
|
11284
|
+
minimum: 0,
|
|
11285
|
+
maximum: 100,
|
|
11286
|
+
},
|
|
11287
|
+
},
|
|
11288
|
+
},
|
|
11259
11289
|
modEventAcknowledge: {
|
|
11260
11290
|
type: 'object',
|
|
11261
11291
|
properties: {
|
|
@@ -11870,6 +11900,7 @@ exports.schemaDict = {
|
|
|
11870
11900
|
'lex:tools.ozone.moderation.defs#accountEvent',
|
|
11871
11901
|
'lex:tools.ozone.moderation.defs#identityEvent',
|
|
11872
11902
|
'lex:tools.ozone.moderation.defs#recordEvent',
|
|
11903
|
+
'lex:tools.ozone.moderation.defs#modEventPriorityScore',
|
|
11873
11904
|
],
|
|
11874
11905
|
},
|
|
11875
11906
|
subject: {
|
|
@@ -12344,6 +12375,7 @@ exports.schemaDict = {
|
|
|
12344
12375
|
'lastReportedAt',
|
|
12345
12376
|
'reportedRecordsCount',
|
|
12346
12377
|
'takendownRecordsCount',
|
|
12378
|
+
'priorityScore',
|
|
12347
12379
|
],
|
|
12348
12380
|
},
|
|
12349
12381
|
sortDirection: {
|
|
@@ -12408,6 +12440,12 @@ exports.schemaDict = {
|
|
|
12408
12440
|
type: 'integer',
|
|
12409
12441
|
description: 'If specified, only subjects that belong to an account that has at least this many taken down records will be returned.',
|
|
12410
12442
|
},
|
|
12443
|
+
minPriorityScore: {
|
|
12444
|
+
minimum: 0,
|
|
12445
|
+
maximum: 100,
|
|
12446
|
+
type: 'integer',
|
|
12447
|
+
description: 'If specified, only subjects that have priority score value above the given value will be returned.',
|
|
12448
|
+
},
|
|
12411
12449
|
},
|
|
12412
12450
|
},
|
|
12413
12451
|
output: {
|