3232
3333
3434class AuthorBlock (BaseModel ):
35+ """Block or suspension details, if applicable. Null if the author is enabled."""
36+
3537 reason : Optional [str ] = None
3638 """The moderators reason why the author was blocked or suspended."""
3739
@@ -48,6 +50,11 @@ class AuthorTrustLevel(BaseModel):
4850
4951
5052class Author (BaseModel ):
53+ """The author of the content if your account has authors enabled.
54+
55+ Requires you to send authorId when submitting content.
56+ """
57+
5158 id : str
5259 """Author ID in Moderation API"""
5360
@@ -64,27 +71,35 @@ class Author(BaseModel):
6471
6572
6673class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObjectContentItemText (BaseModel ):
74+ """Text"""
75+
6776 text : str
6877 """The content text"""
6978
7079 type : Literal ["text" ]
7180
7281
7382class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObjectContentItemImage (BaseModel ):
83+ """Image"""
84+
7485 type : Literal ["image" ]
7586
7687 url : str
7788 """A public URL of the image content"""
7889
7990
8091class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObjectContentItemVideo (BaseModel ):
92+ """Video"""
93+
8194 type : Literal ["video" ]
8295
8396 url : str
8497 """A public URL of the video content"""
8598
8699
87100class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObjectContentItemAudio (BaseModel ):
101+ """Audio"""
102+
88103 type : Literal ["audio" ]
89104
90105 url : str
@@ -100,6 +115,8 @@ class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObj
100115
101116
102117class Content (BaseModel ):
118+ """Potentially modified content."""
119+
103120 id : str
104121 """The unique identifier for the content.
105122
@@ -119,6 +136,8 @@ class Content(BaseModel):
119136
120137
121138class Evaluation (BaseModel ):
139+ """The evaluation of the content after running the channel policies."""
140+
122141 flag_probability : float
123142 """The probability that the content should be flagged."""
124143
@@ -136,6 +155,8 @@ class Evaluation(BaseModel):
136155
137156
138157class InsightSentimentInsight (BaseModel ):
158+ """Sentiment insight"""
159+
139160 id : Literal ["sentiment" ]
140161
141162 probability : float
@@ -146,6 +167,8 @@ class InsightSentimentInsight(BaseModel):
146167
147168
148169class InsightLanguageInsight (BaseModel ):
170+ """Language insight"""
171+
149172 id : Literal ["language" ]
150173
151174 probability : float
@@ -159,6 +182,8 @@ class InsightLanguageInsight(BaseModel):
159182
160183
161184class Meta (BaseModel ):
185+ """Metadata about the moderation request"""
186+
162187 channel_key : str
163188 """The unique key of the channel where the content was handled.
164189
@@ -183,6 +208,8 @@ class PolicyClassifierOutputLabel(BaseModel):
183208
184209
185210class PolicyClassifierOutput (BaseModel ):
211+ """Classifier policy."""
212+
186213 id : str
187214 """The unique identifier for the classifier output."""
188215
@@ -207,6 +234,8 @@ class PolicyEntityMatcherOutputMatch(BaseModel):
207234
208235
209236class PolicyEntityMatcherOutput (BaseModel ):
237+ """Entity matcher policy."""
238+
210239 id : str
211240
212241 flagged : bool
@@ -224,6 +253,8 @@ class PolicyEntityMatcherOutput(BaseModel):
224253
225254
226255class Recommendation (BaseModel ):
256+ """The recommendation for the content based on the evaluation."""
257+
227258 action : Literal ["review" , "allow" , "reject" ]
228259 """The action to take based on the recommendation"""
229260
0 commit comments