moderation_api 2.30.0 → 2.32.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/moderation_api/models/queue_retrieve_response.rb +149 -5
- data/lib/moderation_api/version.rb +1 -1
- data/rbi/moderation_api/models/queue_retrieve_response.rbi +434 -7
- data/sig/moderation_api/models/queue_retrieve_response.rbs +165 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4da8e7e8e80c5f870e4c3d99885f95112f0f8ec3ee8c568b9af96418423f0ee4
|
|
4
|
+
data.tar.gz: 13b0959a3ff841b9a17f33cf29d438f77e4d052a67b881efc5df36f43f04dce3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d266dcfe90fe7990266cfceb814aa82ed1d833d573c20123131c1eeb0ad7657f810b1679a1fba534cfa99d3c4428aff7df83a99d669232c2e22f74ae510d4dd8
|
|
7
|
+
data.tar.gz: f881ae0b98b7a85a1e444ee5b61e5b5ec7a597077ea372eedc75c37f2ee728e3803a4d607bbcab675dfbe7d8a67273452b331203431093224d8e1aef8514bb45
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.32.0 (2026-08-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.31.0...v2.32.0](https://github.com/moderation-api/sdk-ruby/compare/v2.31.0...v2.32.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([4e48342](https://github.com/moderation-api/sdk-ruby/commit/4e483424d93298db61b5f1a10e858519b218015b))
|
|
10
|
+
|
|
11
|
+
## 2.31.0 (2026-08-07)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v2.30.0...v2.31.0](https://github.com/moderation-api/sdk-ruby/compare/v2.30.0...v2.31.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([51b061a](https://github.com/moderation-api/sdk-ruby/commit/51b061a53e5b8bcad198fd86761eebc861034f7f))
|
|
18
|
+
|
|
3
19
|
## 2.30.0 (2026-08-04)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v2.29.0...v2.30.0](https://github.com/moderation-api/sdk-ruby/compare/v2.29.0...v2.30.0)
|
data/README.md
CHANGED
|
@@ -70,11 +70,43 @@ module ModerationAPI
|
|
|
70
70
|
# @return [String, nil]
|
|
71
71
|
optional :author_id, String, api_name: :authorID
|
|
72
72
|
|
|
73
|
+
# @!attribute author_trust_levels
|
|
74
|
+
#
|
|
75
|
+
# @return [Array<Integer>, nil]
|
|
76
|
+
optional :author_trust_levels,
|
|
77
|
+
ModerationAPI::Internal::Type::ArrayOf[Integer],
|
|
78
|
+
api_name: :authorTrustLevels
|
|
79
|
+
|
|
73
80
|
# @!attribute before_date
|
|
74
81
|
#
|
|
75
82
|
# @return [String, nil]
|
|
76
83
|
optional :before_date, String, api_name: :beforeDate
|
|
77
84
|
|
|
85
|
+
# @!attribute check_status
|
|
86
|
+
#
|
|
87
|
+
# @return [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus, nil]
|
|
88
|
+
optional :check_status,
|
|
89
|
+
enum: -> { ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus },
|
|
90
|
+
api_name: :checkStatus,
|
|
91
|
+
nil?: true
|
|
92
|
+
|
|
93
|
+
# @!attribute clear_date_window
|
|
94
|
+
#
|
|
95
|
+
# @return [Boolean, nil]
|
|
96
|
+
optional :clear_date_window, ModerationAPI::Internal::Type::Boolean, api_name: :clearDateWindow
|
|
97
|
+
|
|
98
|
+
# @!attribute content_id
|
|
99
|
+
#
|
|
100
|
+
# @return [String, nil]
|
|
101
|
+
optional :content_id, String, api_name: :contentID
|
|
102
|
+
|
|
103
|
+
# @!attribute content_types
|
|
104
|
+
#
|
|
105
|
+
# @return [Array<Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType>, nil]
|
|
106
|
+
optional :content_types,
|
|
107
|
+
-> { ModerationAPI::Internal::Type::ArrayOf[enum: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType] },
|
|
108
|
+
api_name: :contentTypes
|
|
109
|
+
|
|
78
110
|
# @!attribute conversation_ids
|
|
79
111
|
#
|
|
80
112
|
# @return [Array<String, nil>, nil]
|
|
@@ -103,11 +135,30 @@ module ModerationAPI
|
|
|
103
135
|
-> { ModerationAPI::Internal::Type::ArrayOf[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel] },
|
|
104
136
|
api_name: :filterLabels
|
|
105
137
|
|
|
138
|
+
# @!attribute is_flagged
|
|
139
|
+
#
|
|
140
|
+
# @return [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged, nil]
|
|
141
|
+
optional :is_flagged,
|
|
142
|
+
enum: -> { ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged },
|
|
143
|
+
api_name: :isFlagged
|
|
144
|
+
|
|
106
145
|
# @!attribute labels
|
|
107
146
|
#
|
|
108
147
|
# @return [Array<String>, nil]
|
|
109
148
|
optional :labels, ModerationAPI::Internal::Type::ArrayOf[String]
|
|
110
149
|
|
|
150
|
+
# @!attribute languages
|
|
151
|
+
#
|
|
152
|
+
# @return [Array<String>, nil]
|
|
153
|
+
optional :languages, ModerationAPI::Internal::Type::ArrayOf[String]
|
|
154
|
+
|
|
155
|
+
# @!attribute media_types
|
|
156
|
+
#
|
|
157
|
+
# @return [Array<Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType>, nil]
|
|
158
|
+
optional :media_types,
|
|
159
|
+
-> { ModerationAPI::Internal::Type::ArrayOf[enum: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType] },
|
|
160
|
+
api_name: :mediaTypes
|
|
161
|
+
|
|
111
162
|
# @!attribute recommendation_actions
|
|
112
163
|
#
|
|
113
164
|
# @return [Array<Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::RecommendationAction>, nil]
|
|
@@ -115,22 +166,73 @@ module ModerationAPI
|
|
|
115
166
|
-> { ModerationAPI::Internal::Type::ArrayOf[enum: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::RecommendationAction] },
|
|
116
167
|
api_name: :recommendationActions
|
|
117
168
|
|
|
118
|
-
# @!attribute
|
|
169
|
+
# @!attribute search
|
|
119
170
|
#
|
|
120
|
-
# @return [
|
|
121
|
-
optional :
|
|
171
|
+
# @return [Array<String>, nil]
|
|
172
|
+
optional :search, ModerationAPI::Internal::Type::ArrayOf[String]
|
|
173
|
+
|
|
174
|
+
# @!attribute within
|
|
175
|
+
#
|
|
176
|
+
# @return [Float, nil]
|
|
177
|
+
optional :within, Float
|
|
122
178
|
|
|
123
|
-
# @!
|
|
179
|
+
# @!attribute within_unit
|
|
180
|
+
#
|
|
181
|
+
# @return [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit, nil]
|
|
182
|
+
optional :within_unit,
|
|
183
|
+
enum: -> { ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit },
|
|
184
|
+
api_name: :withinUnit
|
|
185
|
+
|
|
186
|
+
# @!method initialize(after_date: nil, author_id: nil, author_trust_levels: nil, before_date: nil, check_status: nil, clear_date_window: nil, content_id: nil, content_types: nil, conversation_ids: nil, filtered_action_ids: nil, filtered_channel_ids: nil, filter_labels: nil, is_flagged: nil, labels: nil, languages: nil, media_types: nil, recommendation_actions: nil, search: nil, within: nil, within_unit: nil)
|
|
124
187
|
# @param after_date [String]
|
|
125
188
|
# @param author_id [String]
|
|
189
|
+
# @param author_trust_levels [Array<Integer>]
|
|
126
190
|
# @param before_date [String]
|
|
191
|
+
# @param check_status [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus, nil]
|
|
192
|
+
# @param clear_date_window [Boolean]
|
|
193
|
+
# @param content_id [String]
|
|
194
|
+
# @param content_types [Array<Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType>]
|
|
127
195
|
# @param conversation_ids [Array<String, nil>]
|
|
128
196
|
# @param filtered_action_ids [Array<String>]
|
|
129
197
|
# @param filtered_channel_ids [Array<String>]
|
|
130
198
|
# @param filter_labels [Array<ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel>]
|
|
199
|
+
# @param is_flagged [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged]
|
|
131
200
|
# @param labels [Array<String>]
|
|
201
|
+
# @param languages [Array<String>]
|
|
202
|
+
# @param media_types [Array<Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType>]
|
|
132
203
|
# @param recommendation_actions [Array<Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::RecommendationAction>]
|
|
133
|
-
# @param
|
|
204
|
+
# @param search [Array<String>]
|
|
205
|
+
# @param within [Float]
|
|
206
|
+
# @param within_unit [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit]
|
|
207
|
+
|
|
208
|
+
# @see ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter#check_status
|
|
209
|
+
module CheckStatus
|
|
210
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
211
|
+
|
|
212
|
+
ALL = :all
|
|
213
|
+
CHECKED = :checked
|
|
214
|
+
UNCHECKED = :unchecked
|
|
215
|
+
|
|
216
|
+
# @!method self.values
|
|
217
|
+
# @return [Array<Symbol>]
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
module ContentType
|
|
221
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
222
|
+
|
|
223
|
+
PROFILE = :profile
|
|
224
|
+
MESSAGE = :message
|
|
225
|
+
POST = :post
|
|
226
|
+
COMMENT = :comment
|
|
227
|
+
EVENT = :event
|
|
228
|
+
PRODUCT = :product
|
|
229
|
+
REVIEW = :review
|
|
230
|
+
VOICE = :voice
|
|
231
|
+
OTHER = :other
|
|
232
|
+
|
|
233
|
+
# @!method self.values
|
|
234
|
+
# @return [Array<Symbol>]
|
|
235
|
+
end
|
|
134
236
|
|
|
135
237
|
class FilterLabel < ModerationAPI::Internal::Type::BaseModel
|
|
136
238
|
# @!attribute label
|
|
@@ -167,12 +269,39 @@ module ModerationAPI
|
|
|
167
269
|
FLAGGED = :FLAGGED
|
|
168
270
|
NOT_FLAGGED = :NOT_FLAGGED
|
|
169
271
|
THRESHOLDS = :THRESHOLDS
|
|
272
|
+
MATCHED = :MATCHED
|
|
170
273
|
|
|
171
274
|
# @!method self.values
|
|
172
275
|
# @return [Array<Symbol>]
|
|
173
276
|
end
|
|
174
277
|
end
|
|
175
278
|
|
|
279
|
+
# @see ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter#is_flagged
|
|
280
|
+
module IsFlagged
|
|
281
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
282
|
+
|
|
283
|
+
ALL = :ALL
|
|
284
|
+
FLAGGED = :FLAGGED
|
|
285
|
+
NOT_FLAGGED = :NOT_FLAGGED
|
|
286
|
+
SHADOW_FLAGGED = :SHADOW_FLAGGED
|
|
287
|
+
|
|
288
|
+
# @!method self.values
|
|
289
|
+
# @return [Array<Symbol>]
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
module MediaType
|
|
293
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
294
|
+
|
|
295
|
+
TEXT = :text
|
|
296
|
+
IMAGE = :image
|
|
297
|
+
VIDEO = :video
|
|
298
|
+
OBJECT = :object
|
|
299
|
+
AUDIO = :audio
|
|
300
|
+
|
|
301
|
+
# @!method self.values
|
|
302
|
+
# @return [Array<Symbol>]
|
|
303
|
+
end
|
|
304
|
+
|
|
176
305
|
module RecommendationAction
|
|
177
306
|
extend ModerationAPI::Internal::Type::Enum
|
|
178
307
|
|
|
@@ -183,6 +312,21 @@ module ModerationAPI
|
|
|
183
312
|
# @!method self.values
|
|
184
313
|
# @return [Array<Symbol>]
|
|
185
314
|
end
|
|
315
|
+
|
|
316
|
+
# @see ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter#within_unit
|
|
317
|
+
module WithinUnit
|
|
318
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
319
|
+
|
|
320
|
+
MINUTES = :MINUTES
|
|
321
|
+
HOURS = :HOURS
|
|
322
|
+
DAYS = :DAYS
|
|
323
|
+
WEEKS = :WEEKS
|
|
324
|
+
MONTHS = :MONTHS
|
|
325
|
+
YEARS = :YEARS
|
|
326
|
+
|
|
327
|
+
# @!method self.values
|
|
328
|
+
# @return [Array<Symbol>]
|
|
329
|
+
end
|
|
186
330
|
end
|
|
187
331
|
end
|
|
188
332
|
end
|
|
@@ -138,12 +138,60 @@ module ModerationAPI
|
|
|
138
138
|
sig { params(author_id: String).void }
|
|
139
139
|
attr_writer :author_id
|
|
140
140
|
|
|
141
|
+
sig { returns(T.nilable(T::Array[Integer])) }
|
|
142
|
+
attr_reader :author_trust_levels
|
|
143
|
+
|
|
144
|
+
sig { params(author_trust_levels: T::Array[Integer]).void }
|
|
145
|
+
attr_writer :author_trust_levels
|
|
146
|
+
|
|
141
147
|
sig { returns(T.nilable(String)) }
|
|
142
148
|
attr_reader :before_date
|
|
143
149
|
|
|
144
150
|
sig { params(before_date: String).void }
|
|
145
151
|
attr_writer :before_date
|
|
146
152
|
|
|
153
|
+
sig do
|
|
154
|
+
returns(
|
|
155
|
+
T.nilable(
|
|
156
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::TaggedSymbol
|
|
157
|
+
)
|
|
158
|
+
)
|
|
159
|
+
end
|
|
160
|
+
attr_accessor :check_status
|
|
161
|
+
|
|
162
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
163
|
+
attr_reader :clear_date_window
|
|
164
|
+
|
|
165
|
+
sig { params(clear_date_window: T::Boolean).void }
|
|
166
|
+
attr_writer :clear_date_window
|
|
167
|
+
|
|
168
|
+
sig { returns(T.nilable(String)) }
|
|
169
|
+
attr_reader :content_id
|
|
170
|
+
|
|
171
|
+
sig { params(content_id: String).void }
|
|
172
|
+
attr_writer :content_id
|
|
173
|
+
|
|
174
|
+
sig do
|
|
175
|
+
returns(
|
|
176
|
+
T.nilable(
|
|
177
|
+
T::Array[
|
|
178
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
179
|
+
]
|
|
180
|
+
)
|
|
181
|
+
)
|
|
182
|
+
end
|
|
183
|
+
attr_reader :content_types
|
|
184
|
+
|
|
185
|
+
sig do
|
|
186
|
+
params(
|
|
187
|
+
content_types:
|
|
188
|
+
T::Array[
|
|
189
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::OrSymbol
|
|
190
|
+
]
|
|
191
|
+
).void
|
|
192
|
+
end
|
|
193
|
+
attr_writer :content_types
|
|
194
|
+
|
|
147
195
|
sig { returns(T.nilable(T::Array[T.nilable(String)])) }
|
|
148
196
|
attr_reader :conversation_ids
|
|
149
197
|
|
|
@@ -183,12 +231,56 @@ module ModerationAPI
|
|
|
183
231
|
end
|
|
184
232
|
attr_writer :filter_labels
|
|
185
233
|
|
|
234
|
+
sig do
|
|
235
|
+
returns(
|
|
236
|
+
T.nilable(
|
|
237
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
238
|
+
)
|
|
239
|
+
)
|
|
240
|
+
end
|
|
241
|
+
attr_reader :is_flagged
|
|
242
|
+
|
|
243
|
+
sig do
|
|
244
|
+
params(
|
|
245
|
+
is_flagged:
|
|
246
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::OrSymbol
|
|
247
|
+
).void
|
|
248
|
+
end
|
|
249
|
+
attr_writer :is_flagged
|
|
250
|
+
|
|
186
251
|
sig { returns(T.nilable(T::Array[String])) }
|
|
187
252
|
attr_reader :labels
|
|
188
253
|
|
|
189
254
|
sig { params(labels: T::Array[String]).void }
|
|
190
255
|
attr_writer :labels
|
|
191
256
|
|
|
257
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
258
|
+
attr_reader :languages
|
|
259
|
+
|
|
260
|
+
sig { params(languages: T::Array[String]).void }
|
|
261
|
+
attr_writer :languages
|
|
262
|
+
|
|
263
|
+
sig do
|
|
264
|
+
returns(
|
|
265
|
+
T.nilable(
|
|
266
|
+
T::Array[
|
|
267
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
268
|
+
]
|
|
269
|
+
)
|
|
270
|
+
)
|
|
271
|
+
end
|
|
272
|
+
attr_reader :media_types
|
|
273
|
+
|
|
274
|
+
sig do
|
|
275
|
+
params(
|
|
276
|
+
media_types:
|
|
277
|
+
T::Array[
|
|
278
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::OrSymbol
|
|
279
|
+
]
|
|
280
|
+
).void
|
|
281
|
+
end
|
|
282
|
+
attr_writer :media_types
|
|
283
|
+
|
|
192
284
|
sig do
|
|
193
285
|
returns(
|
|
194
286
|
T.nilable(
|
|
@@ -210,17 +302,51 @@ module ModerationAPI
|
|
|
210
302
|
end
|
|
211
303
|
attr_writer :recommendation_actions
|
|
212
304
|
|
|
213
|
-
sig { returns(T.nilable(T::
|
|
214
|
-
attr_reader :
|
|
305
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
306
|
+
attr_reader :search
|
|
307
|
+
|
|
308
|
+
sig { params(search: T::Array[String]).void }
|
|
309
|
+
attr_writer :search
|
|
310
|
+
|
|
311
|
+
sig { returns(T.nilable(Float)) }
|
|
312
|
+
attr_reader :within
|
|
313
|
+
|
|
314
|
+
sig { params(within: Float).void }
|
|
315
|
+
attr_writer :within
|
|
316
|
+
|
|
317
|
+
sig do
|
|
318
|
+
returns(
|
|
319
|
+
T.nilable(
|
|
320
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
321
|
+
)
|
|
322
|
+
)
|
|
323
|
+
end
|
|
324
|
+
attr_reader :within_unit
|
|
215
325
|
|
|
216
|
-
sig
|
|
217
|
-
|
|
326
|
+
sig do
|
|
327
|
+
params(
|
|
328
|
+
within_unit:
|
|
329
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::OrSymbol
|
|
330
|
+
).void
|
|
331
|
+
end
|
|
332
|
+
attr_writer :within_unit
|
|
218
333
|
|
|
219
334
|
sig do
|
|
220
335
|
params(
|
|
221
336
|
after_date: String,
|
|
222
337
|
author_id: String,
|
|
338
|
+
author_trust_levels: T::Array[Integer],
|
|
223
339
|
before_date: String,
|
|
340
|
+
check_status:
|
|
341
|
+
T.nilable(
|
|
342
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::OrSymbol
|
|
343
|
+
),
|
|
344
|
+
clear_date_window: T::Boolean,
|
|
345
|
+
content_id: String,
|
|
346
|
+
content_types:
|
|
347
|
+
T::Array[
|
|
348
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::OrSymbol
|
|
349
|
+
],
|
|
224
350
|
conversation_ids: T::Array[T.nilable(String)],
|
|
225
351
|
filtered_action_ids: T::Array[String],
|
|
226
352
|
filtered_channel_ids: T::Array[String],
|
|
@@ -228,25 +354,45 @@ module ModerationAPI
|
|
|
228
354
|
T::Array[
|
|
229
355
|
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel::OrHash
|
|
230
356
|
],
|
|
357
|
+
is_flagged:
|
|
358
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::OrSymbol,
|
|
231
359
|
labels: T::Array[String],
|
|
360
|
+
languages: T::Array[String],
|
|
361
|
+
media_types:
|
|
362
|
+
T::Array[
|
|
363
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::OrSymbol
|
|
364
|
+
],
|
|
232
365
|
recommendation_actions:
|
|
233
366
|
T::Array[
|
|
234
367
|
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::RecommendationAction::OrSymbol
|
|
235
368
|
],
|
|
236
|
-
|
|
369
|
+
search: T::Array[String],
|
|
370
|
+
within: Float,
|
|
371
|
+
within_unit:
|
|
372
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::OrSymbol
|
|
237
373
|
).returns(T.attached_class)
|
|
238
374
|
end
|
|
239
375
|
def self.new(
|
|
240
376
|
after_date: nil,
|
|
241
377
|
author_id: nil,
|
|
378
|
+
author_trust_levels: nil,
|
|
242
379
|
before_date: nil,
|
|
380
|
+
check_status: nil,
|
|
381
|
+
clear_date_window: nil,
|
|
382
|
+
content_id: nil,
|
|
383
|
+
content_types: nil,
|
|
243
384
|
conversation_ids: nil,
|
|
244
385
|
filtered_action_ids: nil,
|
|
245
386
|
filtered_channel_ids: nil,
|
|
246
387
|
filter_labels: nil,
|
|
388
|
+
is_flagged: nil,
|
|
247
389
|
labels: nil,
|
|
390
|
+
languages: nil,
|
|
391
|
+
media_types: nil,
|
|
248
392
|
recommendation_actions: nil,
|
|
249
|
-
|
|
393
|
+
search: nil,
|
|
394
|
+
within: nil,
|
|
395
|
+
within_unit: nil
|
|
250
396
|
)
|
|
251
397
|
end
|
|
252
398
|
|
|
@@ -255,7 +401,18 @@ module ModerationAPI
|
|
|
255
401
|
{
|
|
256
402
|
after_date: String,
|
|
257
403
|
author_id: String,
|
|
404
|
+
author_trust_levels: T::Array[Integer],
|
|
258
405
|
before_date: String,
|
|
406
|
+
check_status:
|
|
407
|
+
T.nilable(
|
|
408
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::TaggedSymbol
|
|
409
|
+
),
|
|
410
|
+
clear_date_window: T::Boolean,
|
|
411
|
+
content_id: String,
|
|
412
|
+
content_types:
|
|
413
|
+
T::Array[
|
|
414
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
415
|
+
],
|
|
259
416
|
conversation_ids: T::Array[T.nilable(String)],
|
|
260
417
|
filtered_action_ids: T::Array[String],
|
|
261
418
|
filtered_channel_ids: T::Array[String],
|
|
@@ -263,18 +420,136 @@ module ModerationAPI
|
|
|
263
420
|
T::Array[
|
|
264
421
|
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel
|
|
265
422
|
],
|
|
423
|
+
is_flagged:
|
|
424
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol,
|
|
266
425
|
labels: T::Array[String],
|
|
426
|
+
languages: T::Array[String],
|
|
427
|
+
media_types:
|
|
428
|
+
T::Array[
|
|
429
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
430
|
+
],
|
|
267
431
|
recommendation_actions:
|
|
268
432
|
T::Array[
|
|
269
433
|
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::RecommendationAction::TaggedSymbol
|
|
270
434
|
],
|
|
271
|
-
|
|
435
|
+
search: T::Array[String],
|
|
436
|
+
within: Float,
|
|
437
|
+
within_unit:
|
|
438
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
272
439
|
}
|
|
273
440
|
)
|
|
274
441
|
end
|
|
275
442
|
def to_hash
|
|
276
443
|
end
|
|
277
444
|
|
|
445
|
+
module CheckStatus
|
|
446
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
447
|
+
|
|
448
|
+
TaggedSymbol =
|
|
449
|
+
T.type_alias do
|
|
450
|
+
T.all(
|
|
451
|
+
Symbol,
|
|
452
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus
|
|
453
|
+
)
|
|
454
|
+
end
|
|
455
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
456
|
+
|
|
457
|
+
ALL =
|
|
458
|
+
T.let(
|
|
459
|
+
:all,
|
|
460
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::TaggedSymbol
|
|
461
|
+
)
|
|
462
|
+
CHECKED =
|
|
463
|
+
T.let(
|
|
464
|
+
:checked,
|
|
465
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::TaggedSymbol
|
|
466
|
+
)
|
|
467
|
+
UNCHECKED =
|
|
468
|
+
T.let(
|
|
469
|
+
:unchecked,
|
|
470
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::TaggedSymbol
|
|
471
|
+
)
|
|
472
|
+
|
|
473
|
+
sig do
|
|
474
|
+
override.returns(
|
|
475
|
+
T::Array[
|
|
476
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::TaggedSymbol
|
|
477
|
+
]
|
|
478
|
+
)
|
|
479
|
+
end
|
|
480
|
+
def self.values
|
|
481
|
+
end
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
module ContentType
|
|
485
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
486
|
+
|
|
487
|
+
TaggedSymbol =
|
|
488
|
+
T.type_alias do
|
|
489
|
+
T.all(
|
|
490
|
+
Symbol,
|
|
491
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType
|
|
492
|
+
)
|
|
493
|
+
end
|
|
494
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
495
|
+
|
|
496
|
+
PROFILE =
|
|
497
|
+
T.let(
|
|
498
|
+
:profile,
|
|
499
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
500
|
+
)
|
|
501
|
+
MESSAGE =
|
|
502
|
+
T.let(
|
|
503
|
+
:message,
|
|
504
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
505
|
+
)
|
|
506
|
+
POST =
|
|
507
|
+
T.let(
|
|
508
|
+
:post,
|
|
509
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
510
|
+
)
|
|
511
|
+
COMMENT =
|
|
512
|
+
T.let(
|
|
513
|
+
:comment,
|
|
514
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
515
|
+
)
|
|
516
|
+
EVENT =
|
|
517
|
+
T.let(
|
|
518
|
+
:event,
|
|
519
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
520
|
+
)
|
|
521
|
+
PRODUCT =
|
|
522
|
+
T.let(
|
|
523
|
+
:product,
|
|
524
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
525
|
+
)
|
|
526
|
+
REVIEW =
|
|
527
|
+
T.let(
|
|
528
|
+
:review,
|
|
529
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
530
|
+
)
|
|
531
|
+
VOICE =
|
|
532
|
+
T.let(
|
|
533
|
+
:voice,
|
|
534
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
535
|
+
)
|
|
536
|
+
OTHER =
|
|
537
|
+
T.let(
|
|
538
|
+
:other,
|
|
539
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
540
|
+
)
|
|
541
|
+
|
|
542
|
+
sig do
|
|
543
|
+
override.returns(
|
|
544
|
+
T::Array[
|
|
545
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::ContentType::TaggedSymbol
|
|
546
|
+
]
|
|
547
|
+
)
|
|
548
|
+
end
|
|
549
|
+
def self.values
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
278
553
|
class FilterLabel < ModerationAPI::Internal::Type::BaseModel
|
|
279
554
|
OrHash =
|
|
280
555
|
T.type_alias do
|
|
@@ -353,6 +628,11 @@ module ModerationAPI
|
|
|
353
628
|
:THRESHOLDS,
|
|
354
629
|
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel::Type::TaggedSymbol
|
|
355
630
|
)
|
|
631
|
+
MATCHED =
|
|
632
|
+
T.let(
|
|
633
|
+
:MATCHED,
|
|
634
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel::Type::TaggedSymbol
|
|
635
|
+
)
|
|
356
636
|
|
|
357
637
|
sig do
|
|
358
638
|
override.returns(
|
|
@@ -366,6 +646,99 @@ module ModerationAPI
|
|
|
366
646
|
end
|
|
367
647
|
end
|
|
368
648
|
|
|
649
|
+
module IsFlagged
|
|
650
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
651
|
+
|
|
652
|
+
TaggedSymbol =
|
|
653
|
+
T.type_alias do
|
|
654
|
+
T.all(
|
|
655
|
+
Symbol,
|
|
656
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged
|
|
657
|
+
)
|
|
658
|
+
end
|
|
659
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
660
|
+
|
|
661
|
+
ALL =
|
|
662
|
+
T.let(
|
|
663
|
+
:ALL,
|
|
664
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
665
|
+
)
|
|
666
|
+
FLAGGED =
|
|
667
|
+
T.let(
|
|
668
|
+
:FLAGGED,
|
|
669
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
670
|
+
)
|
|
671
|
+
NOT_FLAGGED =
|
|
672
|
+
T.let(
|
|
673
|
+
:NOT_FLAGGED,
|
|
674
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
675
|
+
)
|
|
676
|
+
SHADOW_FLAGGED =
|
|
677
|
+
T.let(
|
|
678
|
+
:SHADOW_FLAGGED,
|
|
679
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
680
|
+
)
|
|
681
|
+
|
|
682
|
+
sig do
|
|
683
|
+
override.returns(
|
|
684
|
+
T::Array[
|
|
685
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
686
|
+
]
|
|
687
|
+
)
|
|
688
|
+
end
|
|
689
|
+
def self.values
|
|
690
|
+
end
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
module MediaType
|
|
694
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
695
|
+
|
|
696
|
+
TaggedSymbol =
|
|
697
|
+
T.type_alias do
|
|
698
|
+
T.all(
|
|
699
|
+
Symbol,
|
|
700
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType
|
|
701
|
+
)
|
|
702
|
+
end
|
|
703
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
704
|
+
|
|
705
|
+
TEXT =
|
|
706
|
+
T.let(
|
|
707
|
+
:text,
|
|
708
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
709
|
+
)
|
|
710
|
+
IMAGE =
|
|
711
|
+
T.let(
|
|
712
|
+
:image,
|
|
713
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
714
|
+
)
|
|
715
|
+
VIDEO =
|
|
716
|
+
T.let(
|
|
717
|
+
:video,
|
|
718
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
719
|
+
)
|
|
720
|
+
OBJECT =
|
|
721
|
+
T.let(
|
|
722
|
+
:object,
|
|
723
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
724
|
+
)
|
|
725
|
+
AUDIO =
|
|
726
|
+
T.let(
|
|
727
|
+
:audio,
|
|
728
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
729
|
+
)
|
|
730
|
+
|
|
731
|
+
sig do
|
|
732
|
+
override.returns(
|
|
733
|
+
T::Array[
|
|
734
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
735
|
+
]
|
|
736
|
+
)
|
|
737
|
+
end
|
|
738
|
+
def self.values
|
|
739
|
+
end
|
|
740
|
+
end
|
|
741
|
+
|
|
369
742
|
module RecommendationAction
|
|
370
743
|
extend ModerationAPI::Internal::Type::Enum
|
|
371
744
|
|
|
@@ -404,6 +777,60 @@ module ModerationAPI
|
|
|
404
777
|
def self.values
|
|
405
778
|
end
|
|
406
779
|
end
|
|
780
|
+
|
|
781
|
+
module WithinUnit
|
|
782
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
783
|
+
|
|
784
|
+
TaggedSymbol =
|
|
785
|
+
T.type_alias do
|
|
786
|
+
T.all(
|
|
787
|
+
Symbol,
|
|
788
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit
|
|
789
|
+
)
|
|
790
|
+
end
|
|
791
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
792
|
+
|
|
793
|
+
MINUTES =
|
|
794
|
+
T.let(
|
|
795
|
+
:MINUTES,
|
|
796
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
797
|
+
)
|
|
798
|
+
HOURS =
|
|
799
|
+
T.let(
|
|
800
|
+
:HOURS,
|
|
801
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
802
|
+
)
|
|
803
|
+
DAYS =
|
|
804
|
+
T.let(
|
|
805
|
+
:DAYS,
|
|
806
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
807
|
+
)
|
|
808
|
+
WEEKS =
|
|
809
|
+
T.let(
|
|
810
|
+
:WEEKS,
|
|
811
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
812
|
+
)
|
|
813
|
+
MONTHS =
|
|
814
|
+
T.let(
|
|
815
|
+
:MONTHS,
|
|
816
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
817
|
+
)
|
|
818
|
+
YEARS =
|
|
819
|
+
T.let(
|
|
820
|
+
:YEARS,
|
|
821
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
822
|
+
)
|
|
823
|
+
|
|
824
|
+
sig do
|
|
825
|
+
override.returns(
|
|
826
|
+
T::Array[
|
|
827
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
828
|
+
]
|
|
829
|
+
)
|
|
830
|
+
end
|
|
831
|
+
def self.values
|
|
832
|
+
end
|
|
833
|
+
end
|
|
407
834
|
end
|
|
408
835
|
end
|
|
409
836
|
end
|
|
@@ -64,14 +64,24 @@ module ModerationAPI
|
|
|
64
64
|
{
|
|
65
65
|
after_date: String,
|
|
66
66
|
author_id: String,
|
|
67
|
+
author_trust_levels: ::Array[Integer],
|
|
67
68
|
before_date: String,
|
|
69
|
+
check_status: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status?,
|
|
70
|
+
clear_date_window: bool,
|
|
71
|
+
content_id: String,
|
|
72
|
+
content_types: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::content_type],
|
|
68
73
|
conversation_ids: ::Array[String?],
|
|
69
74
|
filtered_action_ids: ::Array[String],
|
|
70
75
|
filtered_channel_ids: ::Array[String],
|
|
71
76
|
filter_labels: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel],
|
|
77
|
+
is_flagged: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::is_flagged,
|
|
72
78
|
labels: ::Array[String],
|
|
79
|
+
languages: ::Array[String],
|
|
80
|
+
media_types: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::media_type],
|
|
73
81
|
recommendation_actions: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::recommendation_action],
|
|
74
|
-
|
|
82
|
+
search: ::Array[String],
|
|
83
|
+
within: Float,
|
|
84
|
+
within_unit: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit
|
|
75
85
|
}
|
|
76
86
|
|
|
77
87
|
class Filter < ModerationAPI::Internal::Type::BaseModel
|
|
@@ -83,10 +93,30 @@ module ModerationAPI
|
|
|
83
93
|
|
|
84
94
|
def author_id=: (String) -> String
|
|
85
95
|
|
|
96
|
+
attr_reader author_trust_levels: ::Array[Integer]?
|
|
97
|
+
|
|
98
|
+
def author_trust_levels=: (::Array[Integer]) -> ::Array[Integer]
|
|
99
|
+
|
|
86
100
|
attr_reader before_date: String?
|
|
87
101
|
|
|
88
102
|
def before_date=: (String) -> String
|
|
89
103
|
|
|
104
|
+
attr_accessor check_status: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status?
|
|
105
|
+
|
|
106
|
+
attr_reader clear_date_window: bool?
|
|
107
|
+
|
|
108
|
+
def clear_date_window=: (bool) -> bool
|
|
109
|
+
|
|
110
|
+
attr_reader content_id: String?
|
|
111
|
+
|
|
112
|
+
def content_id=: (String) -> String
|
|
113
|
+
|
|
114
|
+
attr_reader content_types: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::content_type]?
|
|
115
|
+
|
|
116
|
+
def content_types=: (
|
|
117
|
+
::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::content_type]
|
|
118
|
+
) -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::content_type]
|
|
119
|
+
|
|
90
120
|
attr_reader conversation_ids: ::Array[String?]?
|
|
91
121
|
|
|
92
122
|
def conversation_ids=: (::Array[String?]) -> ::Array[String?]
|
|
@@ -105,46 +135,131 @@ module ModerationAPI
|
|
|
105
135
|
::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel]
|
|
106
136
|
) -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel]
|
|
107
137
|
|
|
138
|
+
attr_reader is_flagged: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::is_flagged?
|
|
139
|
+
|
|
140
|
+
def is_flagged=: (
|
|
141
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::is_flagged
|
|
142
|
+
) -> ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::is_flagged
|
|
143
|
+
|
|
108
144
|
attr_reader labels: ::Array[String]?
|
|
109
145
|
|
|
110
146
|
def labels=: (::Array[String]) -> ::Array[String]
|
|
111
147
|
|
|
148
|
+
attr_reader languages: ::Array[String]?
|
|
149
|
+
|
|
150
|
+
def languages=: (::Array[String]) -> ::Array[String]
|
|
151
|
+
|
|
152
|
+
attr_reader media_types: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::media_type]?
|
|
153
|
+
|
|
154
|
+
def media_types=: (
|
|
155
|
+
::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::media_type]
|
|
156
|
+
) -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::media_type]
|
|
157
|
+
|
|
112
158
|
attr_reader recommendation_actions: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::recommendation_action]?
|
|
113
159
|
|
|
114
160
|
def recommendation_actions=: (
|
|
115
161
|
::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::recommendation_action]
|
|
116
162
|
) -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::recommendation_action]
|
|
117
163
|
|
|
118
|
-
attr_reader
|
|
164
|
+
attr_reader search: ::Array[String]?
|
|
165
|
+
|
|
166
|
+
def search=: (::Array[String]) -> ::Array[String]
|
|
167
|
+
|
|
168
|
+
attr_reader within: Float?
|
|
169
|
+
|
|
170
|
+
def within=: (Float) -> Float
|
|
171
|
+
|
|
172
|
+
attr_reader within_unit: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit?
|
|
119
173
|
|
|
120
|
-
def
|
|
174
|
+
def within_unit=: (
|
|
175
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit
|
|
176
|
+
) -> ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit
|
|
121
177
|
|
|
122
178
|
def initialize: (
|
|
123
179
|
?after_date: String,
|
|
124
180
|
?author_id: String,
|
|
181
|
+
?author_trust_levels: ::Array[Integer],
|
|
125
182
|
?before_date: String,
|
|
183
|
+
?check_status: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status?,
|
|
184
|
+
?clear_date_window: bool,
|
|
185
|
+
?content_id: String,
|
|
186
|
+
?content_types: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::content_type],
|
|
126
187
|
?conversation_ids: ::Array[String?],
|
|
127
188
|
?filtered_action_ids: ::Array[String],
|
|
128
189
|
?filtered_channel_ids: ::Array[String],
|
|
129
190
|
?filter_labels: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel],
|
|
191
|
+
?is_flagged: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::is_flagged,
|
|
130
192
|
?labels: ::Array[String],
|
|
193
|
+
?languages: ::Array[String],
|
|
194
|
+
?media_types: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::media_type],
|
|
131
195
|
?recommendation_actions: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::recommendation_action],
|
|
132
|
-
?
|
|
196
|
+
?search: ::Array[String],
|
|
197
|
+
?within: Float,
|
|
198
|
+
?within_unit: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit
|
|
133
199
|
) -> void
|
|
134
200
|
|
|
135
201
|
def to_hash: -> {
|
|
136
202
|
after_date: String,
|
|
137
203
|
author_id: String,
|
|
204
|
+
author_trust_levels: ::Array[Integer],
|
|
138
205
|
before_date: String,
|
|
206
|
+
check_status: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status?,
|
|
207
|
+
clear_date_window: bool,
|
|
208
|
+
content_id: String,
|
|
209
|
+
content_types: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::content_type],
|
|
139
210
|
conversation_ids: ::Array[String?],
|
|
140
211
|
filtered_action_ids: ::Array[String],
|
|
141
212
|
filtered_channel_ids: ::Array[String],
|
|
142
213
|
filter_labels: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel],
|
|
214
|
+
is_flagged: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::is_flagged,
|
|
143
215
|
labels: ::Array[String],
|
|
216
|
+
languages: ::Array[String],
|
|
217
|
+
media_types: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::media_type],
|
|
144
218
|
recommendation_actions: ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::recommendation_action],
|
|
145
|
-
|
|
219
|
+
search: ::Array[String],
|
|
220
|
+
within: Float,
|
|
221
|
+
within_unit: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit
|
|
146
222
|
}
|
|
147
223
|
|
|
224
|
+
type check_status = :all | :checked | :unchecked
|
|
225
|
+
|
|
226
|
+
module CheckStatus
|
|
227
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
228
|
+
|
|
229
|
+
ALL: :all
|
|
230
|
+
CHECKED: :checked
|
|
231
|
+
UNCHECKED: :unchecked
|
|
232
|
+
|
|
233
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status]
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
type content_type =
|
|
237
|
+
:profile
|
|
238
|
+
| :message
|
|
239
|
+
| :post
|
|
240
|
+
| :comment
|
|
241
|
+
| :event
|
|
242
|
+
| :product
|
|
243
|
+
| :review
|
|
244
|
+
| :voice
|
|
245
|
+
| :other
|
|
246
|
+
|
|
247
|
+
module ContentType
|
|
248
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
249
|
+
|
|
250
|
+
PROFILE: :profile
|
|
251
|
+
MESSAGE: :message
|
|
252
|
+
POST: :post
|
|
253
|
+
COMMENT: :comment
|
|
254
|
+
EVENT: :event
|
|
255
|
+
PRODUCT: :product
|
|
256
|
+
REVIEW: :review
|
|
257
|
+
VOICE: :voice
|
|
258
|
+
OTHER: :other
|
|
259
|
+
|
|
260
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::content_type]
|
|
261
|
+
end
|
|
262
|
+
|
|
148
263
|
type filter_label =
|
|
149
264
|
{
|
|
150
265
|
label: String,
|
|
@@ -176,7 +291,7 @@ module ModerationAPI
|
|
|
176
291
|
min_threshold: Float?
|
|
177
292
|
}
|
|
178
293
|
|
|
179
|
-
type type_ = :FLAGGED | :NOT_FLAGGED | :THRESHOLDS
|
|
294
|
+
type type_ = :FLAGGED | :NOT_FLAGGED | :THRESHOLDS | :MATCHED
|
|
180
295
|
|
|
181
296
|
module Type
|
|
182
297
|
extend ModerationAPI::Internal::Type::Enum
|
|
@@ -184,11 +299,39 @@ module ModerationAPI
|
|
|
184
299
|
FLAGGED: :FLAGGED
|
|
185
300
|
NOT_FLAGGED: :NOT_FLAGGED
|
|
186
301
|
THRESHOLDS: :THRESHOLDS
|
|
302
|
+
MATCHED: :MATCHED
|
|
187
303
|
|
|
188
304
|
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::FilterLabel::type_]
|
|
189
305
|
end
|
|
190
306
|
end
|
|
191
307
|
|
|
308
|
+
type is_flagged = :ALL | :FLAGGED | :NOT_FLAGGED | :SHADOW_FLAGGED
|
|
309
|
+
|
|
310
|
+
module IsFlagged
|
|
311
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
312
|
+
|
|
313
|
+
ALL: :ALL
|
|
314
|
+
FLAGGED: :FLAGGED
|
|
315
|
+
NOT_FLAGGED: :NOT_FLAGGED
|
|
316
|
+
SHADOW_FLAGGED: :SHADOW_FLAGGED
|
|
317
|
+
|
|
318
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::is_flagged]
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
type media_type = :text | :image | :video | :object | :audio
|
|
322
|
+
|
|
323
|
+
module MediaType
|
|
324
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
325
|
+
|
|
326
|
+
TEXT: :text
|
|
327
|
+
IMAGE: :image
|
|
328
|
+
VIDEO: :video
|
|
329
|
+
OBJECT: :object
|
|
330
|
+
AUDIO: :audio
|
|
331
|
+
|
|
332
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::media_type]
|
|
333
|
+
end
|
|
334
|
+
|
|
192
335
|
type recommendation_action = :review | :allow | :reject
|
|
193
336
|
|
|
194
337
|
module RecommendationAction
|
|
@@ -200,6 +343,22 @@ module ModerationAPI
|
|
|
200
343
|
|
|
201
344
|
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::recommendation_action]
|
|
202
345
|
end
|
|
346
|
+
|
|
347
|
+
type within_unit =
|
|
348
|
+
:MINUTES | :HOURS | :DAYS | :WEEKS | :MONTHS | :YEARS
|
|
349
|
+
|
|
350
|
+
module WithinUnit
|
|
351
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
352
|
+
|
|
353
|
+
MINUTES: :MINUTES
|
|
354
|
+
HOURS: :HOURS
|
|
355
|
+
DAYS: :DAYS
|
|
356
|
+
WEEKS: :WEEKS
|
|
357
|
+
MONTHS: :MONTHS
|
|
358
|
+
YEARS: :YEARS
|
|
359
|
+
|
|
360
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit]
|
|
361
|
+
end
|
|
203
362
|
end
|
|
204
363
|
end
|
|
205
364
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moderation_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.32.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Moderation API
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|