@atproto/ozone 0.1.91 → 0.1.93
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/moderation/getSubjects.d.ts +4 -0
- package/dist/api/moderation/getSubjects.d.ts.map +1 -0
- package/dist/api/moderation/getSubjects.js +81 -0
- package/dist/api/moderation/getSubjects.js.map +1 -0
- package/dist/api/util.js +1 -1
- package/dist/api/util.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 +4 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +144 -10
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +73 -5
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +1 -1
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +14 -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/getSubjects.d.ts +36 -0
- package/dist/lexicon/types/tools/ozone/moderation/getSubjects.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/moderation/getSubjects.js +7 -0
- package/dist/lexicon/types/tools/ozone/moderation/getSubjects.js.map +1 -0
- package/dist/mod-service/views.d.ts +2 -1
- package/dist/mod-service/views.d.ts.map +1 -1
- package/dist/mod-service/views.js +23 -4
- package/dist/mod-service/views.js.map +1 -1
- package/package.json +3 -3
- package/src/api/index.ts +2 -0
- package/src/api/moderation/getSubjects.ts +101 -0
- package/src/api/util.ts +1 -1
- package/src/lexicon/index.ts +12 -0
- package/src/lexicon/lexicons.ts +75 -5
- package/src/lexicon/types/chat/bsky/convo/defs.ts +1 -1
- package/src/lexicon/types/tools/ozone/moderation/defs.ts +21 -0
- package/src/lexicon/types/tools/ozone/moderation/getSubjects.ts +54 -0
- package/src/mod-service/views.ts +31 -7
- package/tests/__snapshots__/get-subjects.test.ts.snap +517 -0
- package/tests/get-subjects.test.ts +81 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -10243,6 +10243,7 @@ exports.schemaDict = {
|
|
|
10243
10243
|
},
|
|
10244
10244
|
reactions: {
|
|
10245
10245
|
type: 'array',
|
|
10246
|
+
description: 'Reactions to this message, in ascending order of creation time.',
|
|
10246
10247
|
items: {
|
|
10247
10248
|
type: 'ref',
|
|
10248
10249
|
ref: 'lex:chat.bsky.convo.defs#reactionView',
|
|
@@ -10290,7 +10291,7 @@ exports.schemaDict = {
|
|
|
10290
10291
|
},
|
|
10291
10292
|
reactionView: {
|
|
10292
10293
|
type: 'object',
|
|
10293
|
-
required: ['value', 'sender'
|
|
10294
|
+
required: ['value', 'sender'],
|
|
10294
10295
|
properties: {
|
|
10295
10296
|
value: {
|
|
10296
10297
|
type: 'string',
|
|
@@ -10299,10 +10300,6 @@ exports.schemaDict = {
|
|
|
10299
10300
|
type: 'ref',
|
|
10300
10301
|
ref: 'lex:chat.bsky.convo.defs#reactionViewSender',
|
|
10301
10302
|
},
|
|
10302
|
-
createdAt: {
|
|
10303
|
-
type: 'string',
|
|
10304
|
-
format: 'datetime',
|
|
10305
|
-
},
|
|
10306
10303
|
},
|
|
10307
10304
|
},
|
|
10308
10305
|
reactionViewSender: {
|
|
@@ -11737,6 +11734,36 @@ exports.schemaDict = {
|
|
|
11737
11734
|
},
|
|
11738
11735
|
},
|
|
11739
11736
|
},
|
|
11737
|
+
subjectView: {
|
|
11738
|
+
description: "Detailed view of a subject. For record subjects, the author's repo and profile will be returned.",
|
|
11739
|
+
type: 'object',
|
|
11740
|
+
required: ['type', 'subject'],
|
|
11741
|
+
properties: {
|
|
11742
|
+
type: {
|
|
11743
|
+
type: 'ref',
|
|
11744
|
+
ref: 'lex:com.atproto.moderation.defs#subjectType',
|
|
11745
|
+
},
|
|
11746
|
+
subject: {
|
|
11747
|
+
type: 'string',
|
|
11748
|
+
},
|
|
11749
|
+
status: {
|
|
11750
|
+
type: 'ref',
|
|
11751
|
+
ref: 'lex:tools.ozone.moderation.defs#subjectStatusView',
|
|
11752
|
+
},
|
|
11753
|
+
repo: {
|
|
11754
|
+
type: 'ref',
|
|
11755
|
+
ref: 'lex:tools.ozone.moderation.defs#repoViewDetail',
|
|
11756
|
+
},
|
|
11757
|
+
profile: {
|
|
11758
|
+
type: 'union',
|
|
11759
|
+
refs: [],
|
|
11760
|
+
},
|
|
11761
|
+
record: {
|
|
11762
|
+
type: 'ref',
|
|
11763
|
+
ref: 'lex:tools.ozone.moderation.defs#recordViewDetail',
|
|
11764
|
+
},
|
|
11765
|
+
},
|
|
11766
|
+
},
|
|
11740
11767
|
accountStats: {
|
|
11741
11768
|
description: 'Statistics about a particular account subject',
|
|
11742
11769
|
type: 'object',
|
|
@@ -12869,6 +12896,46 @@ exports.schemaDict = {
|
|
|
12869
12896
|
},
|
|
12870
12897
|
},
|
|
12871
12898
|
},
|
|
12899
|
+
ToolsOzoneModerationGetSubjects: {
|
|
12900
|
+
lexicon: 1,
|
|
12901
|
+
id: 'tools.ozone.moderation.getSubjects',
|
|
12902
|
+
defs: {
|
|
12903
|
+
main: {
|
|
12904
|
+
type: 'query',
|
|
12905
|
+
description: 'Get details about subjects.',
|
|
12906
|
+
parameters: {
|
|
12907
|
+
type: 'params',
|
|
12908
|
+
required: ['subjects'],
|
|
12909
|
+
properties: {
|
|
12910
|
+
subjects: {
|
|
12911
|
+
type: 'array',
|
|
12912
|
+
maxLength: 100,
|
|
12913
|
+
minLength: 1,
|
|
12914
|
+
items: {
|
|
12915
|
+
type: 'string',
|
|
12916
|
+
},
|
|
12917
|
+
},
|
|
12918
|
+
},
|
|
12919
|
+
},
|
|
12920
|
+
output: {
|
|
12921
|
+
encoding: 'application/json',
|
|
12922
|
+
schema: {
|
|
12923
|
+
type: 'object',
|
|
12924
|
+
required: ['subjects'],
|
|
12925
|
+
properties: {
|
|
12926
|
+
subjects: {
|
|
12927
|
+
type: 'array',
|
|
12928
|
+
items: {
|
|
12929
|
+
type: 'ref',
|
|
12930
|
+
ref: 'lex:tools.ozone.moderation.defs#subjectView',
|
|
12931
|
+
},
|
|
12932
|
+
},
|
|
12933
|
+
},
|
|
12934
|
+
},
|
|
12935
|
+
},
|
|
12936
|
+
},
|
|
12937
|
+
},
|
|
12938
|
+
},
|
|
12872
12939
|
ToolsOzoneModerationQueryEvents: {
|
|
12873
12940
|
lexicon: 1,
|
|
12874
12941
|
id: 'tools.ozone.moderation.queryEvents',
|
|
@@ -14471,6 +14538,7 @@ exports.ids = {
|
|
|
14471
14538
|
ToolsOzoneModerationGetRepo: 'tools.ozone.moderation.getRepo',
|
|
14472
14539
|
ToolsOzoneModerationGetReporterStats: 'tools.ozone.moderation.getReporterStats',
|
|
14473
14540
|
ToolsOzoneModerationGetRepos: 'tools.ozone.moderation.getRepos',
|
|
14541
|
+
ToolsOzoneModerationGetSubjects: 'tools.ozone.moderation.getSubjects',
|
|
14474
14542
|
ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
|
|
14475
14543
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
14476
14544
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|