moderation_api 2.29.0 → 2.31.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/content_submit_response.rb +39 -8
- data/lib/moderation_api/models/queue_retrieve_response.rb +148 -5
- data/lib/moderation_api/version.rb +1 -1
- data/rbi/moderation_api/models/content_submit_response.rbi +31 -18
- data/rbi/moderation_api/models/queue_retrieve_response.rbi +429 -7
- data/sig/moderation_api/models/content_submit_response.rbs +4 -3
- data/sig/moderation_api/models/queue_retrieve_response.rbs +163 -5
- 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: 8ddfad53ae53d39d253387320017ca201f94f933f3698e76d30837bc72b40de5
|
|
4
|
+
data.tar.gz: 12e43b501283cb6bc390627735fec3afefefff2aef90fe7250cbe21bafbd5e36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b35f3975999288d4693d4854bb8a3a1f3e6de8abeedc53c5e27d55bad04d458ca0cb245ba5119d60a85e017625a0c4b3625e029c6c6aa42111d72855c3d439b8
|
|
7
|
+
data.tar.gz: a5ed0a572bfa98afc0e7b12799da69b2dd83784751bbd677e32198d5ccd5b153b86840a85fe6ff1c158eb27c6a1427f5886b7e9a2d384fc04517d8a5fefca1d2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.31.0 (2026-08-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.30.0...v2.31.0](https://github.com/moderation-api/sdk-ruby/compare/v2.30.0...v2.31.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([51b061a](https://github.com/moderation-api/sdk-ruby/commit/51b061a53e5b8bcad198fd86761eebc861034f7f))
|
|
10
|
+
|
|
11
|
+
## 2.30.0 (2026-08-04)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v2.29.0...v2.30.0](https://github.com/moderation-api/sdk-ruby/compare/v2.29.0...v2.30.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([2a572ac](https://github.com/moderation-api/sdk-ruby/commit/2a572ac911b6ed3e6d96b1d98da8d0c98032ff68))
|
|
18
|
+
|
|
3
19
|
## 2.29.0 (2026-07-23)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v2.28.0...v2.29.0](https://github.com/moderation-api/sdk-ruby/compare/v2.28.0...v2.29.0)
|
data/README.md
CHANGED
|
@@ -871,12 +871,13 @@ module ModerationAPI
|
|
|
871
871
|
required :action, enum: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::Action }
|
|
872
872
|
|
|
873
873
|
# @!attribute reason_codes
|
|
874
|
-
#
|
|
875
|
-
#
|
|
874
|
+
# Reason codes for the recommendation. Standard codes plus a `rule:<key>` code
|
|
875
|
+
# identifying the rule that produced the action. Can be used to display a reason
|
|
876
|
+
# to the user.
|
|
876
877
|
#
|
|
877
|
-
# @return [Array<Symbol, ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode>]
|
|
878
|
+
# @return [Array<Symbol, String, ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode>]
|
|
878
879
|
required :reason_codes,
|
|
879
|
-
-> { ModerationAPI::Internal::Type::ArrayOf[
|
|
880
|
+
-> { ModerationAPI::Internal::Type::ArrayOf[union: ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode] }
|
|
880
881
|
|
|
881
882
|
# @!attribute matched_rules
|
|
882
883
|
# Rules that matched during evaluation, if rules engine is active.
|
|
@@ -893,7 +894,7 @@ module ModerationAPI
|
|
|
893
894
|
#
|
|
894
895
|
# @param action [Symbol, ModerationAPI::Models::ContentSubmitResponse::Recommendation::Action] The action to take based on the recommendation
|
|
895
896
|
#
|
|
896
|
-
# @param reason_codes [Array<Symbol, ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode>]
|
|
897
|
+
# @param reason_codes [Array<Symbol, String, ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode>] Reason codes for the recommendation. Standard codes plus a `rule:<key>` code ide
|
|
897
898
|
#
|
|
898
899
|
# @param matched_rules [Array<ModerationAPI::Models::ContentSubmitResponse::Recommendation::MatchedRule>] Rules that matched during evaluation, if rules engine is active.
|
|
899
900
|
|
|
@@ -912,7 +913,38 @@ module ModerationAPI
|
|
|
912
913
|
end
|
|
913
914
|
|
|
914
915
|
module ReasonCode
|
|
915
|
-
extend ModerationAPI::Internal::Type::
|
|
916
|
+
extend ModerationAPI::Internal::Type::Union
|
|
917
|
+
|
|
918
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::SEVERITY_REJECT }
|
|
919
|
+
|
|
920
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::SEVERITY_REVIEW }
|
|
921
|
+
|
|
922
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::AUTHOR_BLOCK }
|
|
923
|
+
|
|
924
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::DRY_RUN }
|
|
925
|
+
|
|
926
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::TRUSTED_ALLOW }
|
|
927
|
+
|
|
928
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::UNTRUSTED_SEVERITY }
|
|
929
|
+
|
|
930
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::RULE_MATCH }
|
|
931
|
+
|
|
932
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::RULE_DEFAULT }
|
|
933
|
+
|
|
934
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::RULE_FALLBACK }
|
|
935
|
+
|
|
936
|
+
variant const: -> { ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::CLIENT_OVERRIDE }
|
|
937
|
+
|
|
938
|
+
variant String
|
|
939
|
+
|
|
940
|
+
# @!method self.variants
|
|
941
|
+
# @return [Array(Symbol, String)]
|
|
942
|
+
|
|
943
|
+
define_sorbet_constant!(:Variants) do
|
|
944
|
+
T.type_alias { T.any(ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::TaggedSymbol, String) }
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
# @!group
|
|
916
948
|
|
|
917
949
|
SEVERITY_REJECT = :severity_reject
|
|
918
950
|
SEVERITY_REVIEW = :severity_review
|
|
@@ -925,8 +957,7 @@ module ModerationAPI
|
|
|
925
957
|
RULE_FALLBACK = :rule_fallback
|
|
926
958
|
CLIENT_OVERRIDE = :client_override
|
|
927
959
|
|
|
928
|
-
# @!
|
|
929
|
-
# @return [Array<Symbol>]
|
|
960
|
+
# @!endgroup
|
|
930
961
|
end
|
|
931
962
|
|
|
932
963
|
class MatchedRule < ModerationAPI::Internal::Type::BaseModel
|
|
@@ -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
|
|
@@ -173,6 +275,32 @@ module ModerationAPI
|
|
|
173
275
|
end
|
|
174
276
|
end
|
|
175
277
|
|
|
278
|
+
# @see ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter#is_flagged
|
|
279
|
+
module IsFlagged
|
|
280
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
281
|
+
|
|
282
|
+
ALL = :ALL
|
|
283
|
+
FLAGGED = :FLAGGED
|
|
284
|
+
NOT_FLAGGED = :NOT_FLAGGED
|
|
285
|
+
SHADOW_FLAGGED = :SHADOW_FLAGGED
|
|
286
|
+
|
|
287
|
+
# @!method self.values
|
|
288
|
+
# @return [Array<Symbol>]
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
module MediaType
|
|
292
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
293
|
+
|
|
294
|
+
TEXT = :text
|
|
295
|
+
IMAGE = :image
|
|
296
|
+
VIDEO = :video
|
|
297
|
+
OBJECT = :object
|
|
298
|
+
AUDIO = :audio
|
|
299
|
+
|
|
300
|
+
# @!method self.values
|
|
301
|
+
# @return [Array<Symbol>]
|
|
302
|
+
end
|
|
303
|
+
|
|
176
304
|
module RecommendationAction
|
|
177
305
|
extend ModerationAPI::Internal::Type::Enum
|
|
178
306
|
|
|
@@ -183,6 +311,21 @@ module ModerationAPI
|
|
|
183
311
|
# @!method self.values
|
|
184
312
|
# @return [Array<Symbol>]
|
|
185
313
|
end
|
|
314
|
+
|
|
315
|
+
# @see ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter#within_unit
|
|
316
|
+
module WithinUnit
|
|
317
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
318
|
+
|
|
319
|
+
MINUTES = :MINUTES
|
|
320
|
+
HOURS = :HOURS
|
|
321
|
+
DAYS = :DAYS
|
|
322
|
+
WEEKS = :WEEKS
|
|
323
|
+
MONTHS = :MONTHS
|
|
324
|
+
YEARS = :YEARS
|
|
325
|
+
|
|
326
|
+
# @!method self.values
|
|
327
|
+
# @return [Array<Symbol>]
|
|
328
|
+
end
|
|
186
329
|
end
|
|
187
330
|
end
|
|
188
331
|
end
|
|
@@ -1625,12 +1625,13 @@ module ModerationAPI
|
|
|
1625
1625
|
end
|
|
1626
1626
|
attr_accessor :action
|
|
1627
1627
|
|
|
1628
|
-
#
|
|
1629
|
-
#
|
|
1628
|
+
# Reason codes for the recommendation. Standard codes plus a `rule:<key>` code
|
|
1629
|
+
# identifying the rule that produced the action. Can be used to display a reason
|
|
1630
|
+
# to the user.
|
|
1630
1631
|
sig do
|
|
1631
1632
|
returns(
|
|
1632
1633
|
T::Array[
|
|
1633
|
-
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::
|
|
1634
|
+
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::Variants
|
|
1634
1635
|
]
|
|
1635
1636
|
)
|
|
1636
1637
|
end
|
|
@@ -1665,7 +1666,10 @@ module ModerationAPI
|
|
|
1665
1666
|
ModerationAPI::Models::ContentSubmitResponse::Recommendation::Action::OrSymbol,
|
|
1666
1667
|
reason_codes:
|
|
1667
1668
|
T::Array[
|
|
1668
|
-
|
|
1669
|
+
T.any(
|
|
1670
|
+
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::OrSymbol,
|
|
1671
|
+
String
|
|
1672
|
+
)
|
|
1669
1673
|
],
|
|
1670
1674
|
matched_rules:
|
|
1671
1675
|
T::Array[
|
|
@@ -1676,8 +1680,9 @@ module ModerationAPI
|
|
|
1676
1680
|
def self.new(
|
|
1677
1681
|
# The action to take based on the recommendation
|
|
1678
1682
|
action:,
|
|
1679
|
-
#
|
|
1680
|
-
#
|
|
1683
|
+
# Reason codes for the recommendation. Standard codes plus a `rule:<key>` code
|
|
1684
|
+
# identifying the rule that produced the action. Can be used to display a reason
|
|
1685
|
+
# to the user.
|
|
1681
1686
|
reason_codes:,
|
|
1682
1687
|
# Rules that matched during evaluation, if rules engine is active.
|
|
1683
1688
|
matched_rules: nil
|
|
@@ -1691,7 +1696,7 @@ module ModerationAPI
|
|
|
1691
1696
|
ModerationAPI::Models::ContentSubmitResponse::Recommendation::Action::TaggedSymbol,
|
|
1692
1697
|
reason_codes:
|
|
1693
1698
|
T::Array[
|
|
1694
|
-
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::
|
|
1699
|
+
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::Variants
|
|
1695
1700
|
],
|
|
1696
1701
|
matched_rules:
|
|
1697
1702
|
T::Array[
|
|
@@ -1744,7 +1749,25 @@ module ModerationAPI
|
|
|
1744
1749
|
end
|
|
1745
1750
|
|
|
1746
1751
|
module ReasonCode
|
|
1747
|
-
extend ModerationAPI::Internal::Type::
|
|
1752
|
+
extend ModerationAPI::Internal::Type::Union
|
|
1753
|
+
|
|
1754
|
+
Variants =
|
|
1755
|
+
T.type_alias do
|
|
1756
|
+
T.any(
|
|
1757
|
+
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::TaggedSymbol,
|
|
1758
|
+
String
|
|
1759
|
+
)
|
|
1760
|
+
end
|
|
1761
|
+
|
|
1762
|
+
sig do
|
|
1763
|
+
override.returns(
|
|
1764
|
+
T::Array[
|
|
1765
|
+
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::Variants
|
|
1766
|
+
]
|
|
1767
|
+
)
|
|
1768
|
+
end
|
|
1769
|
+
def self.variants
|
|
1770
|
+
end
|
|
1748
1771
|
|
|
1749
1772
|
TaggedSymbol =
|
|
1750
1773
|
T.type_alias do
|
|
@@ -1805,16 +1828,6 @@ module ModerationAPI
|
|
|
1805
1828
|
:client_override,
|
|
1806
1829
|
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::TaggedSymbol
|
|
1807
1830
|
)
|
|
1808
|
-
|
|
1809
|
-
sig do
|
|
1810
|
-
override.returns(
|
|
1811
|
-
T::Array[
|
|
1812
|
-
ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::TaggedSymbol
|
|
1813
|
-
]
|
|
1814
|
-
)
|
|
1815
|
-
end
|
|
1816
|
-
def self.values
|
|
1817
|
-
end
|
|
1818
1831
|
end
|
|
1819
1832
|
|
|
1820
1833
|
class MatchedRule < ModerationAPI::Internal::Type::BaseModel
|
|
@@ -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
|
|
@@ -366,6 +641,99 @@ module ModerationAPI
|
|
|
366
641
|
end
|
|
367
642
|
end
|
|
368
643
|
|
|
644
|
+
module IsFlagged
|
|
645
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
646
|
+
|
|
647
|
+
TaggedSymbol =
|
|
648
|
+
T.type_alias do
|
|
649
|
+
T.all(
|
|
650
|
+
Symbol,
|
|
651
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged
|
|
652
|
+
)
|
|
653
|
+
end
|
|
654
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
655
|
+
|
|
656
|
+
ALL =
|
|
657
|
+
T.let(
|
|
658
|
+
:ALL,
|
|
659
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
660
|
+
)
|
|
661
|
+
FLAGGED =
|
|
662
|
+
T.let(
|
|
663
|
+
:FLAGGED,
|
|
664
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
665
|
+
)
|
|
666
|
+
NOT_FLAGGED =
|
|
667
|
+
T.let(
|
|
668
|
+
:NOT_FLAGGED,
|
|
669
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
670
|
+
)
|
|
671
|
+
SHADOW_FLAGGED =
|
|
672
|
+
T.let(
|
|
673
|
+
:SHADOW_FLAGGED,
|
|
674
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
675
|
+
)
|
|
676
|
+
|
|
677
|
+
sig do
|
|
678
|
+
override.returns(
|
|
679
|
+
T::Array[
|
|
680
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::IsFlagged::TaggedSymbol
|
|
681
|
+
]
|
|
682
|
+
)
|
|
683
|
+
end
|
|
684
|
+
def self.values
|
|
685
|
+
end
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
module MediaType
|
|
689
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
690
|
+
|
|
691
|
+
TaggedSymbol =
|
|
692
|
+
T.type_alias do
|
|
693
|
+
T.all(
|
|
694
|
+
Symbol,
|
|
695
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType
|
|
696
|
+
)
|
|
697
|
+
end
|
|
698
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
699
|
+
|
|
700
|
+
TEXT =
|
|
701
|
+
T.let(
|
|
702
|
+
:text,
|
|
703
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
704
|
+
)
|
|
705
|
+
IMAGE =
|
|
706
|
+
T.let(
|
|
707
|
+
:image,
|
|
708
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
709
|
+
)
|
|
710
|
+
VIDEO =
|
|
711
|
+
T.let(
|
|
712
|
+
:video,
|
|
713
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
714
|
+
)
|
|
715
|
+
OBJECT =
|
|
716
|
+
T.let(
|
|
717
|
+
:object,
|
|
718
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
719
|
+
)
|
|
720
|
+
AUDIO =
|
|
721
|
+
T.let(
|
|
722
|
+
:audio,
|
|
723
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
724
|
+
)
|
|
725
|
+
|
|
726
|
+
sig do
|
|
727
|
+
override.returns(
|
|
728
|
+
T::Array[
|
|
729
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::MediaType::TaggedSymbol
|
|
730
|
+
]
|
|
731
|
+
)
|
|
732
|
+
end
|
|
733
|
+
def self.values
|
|
734
|
+
end
|
|
735
|
+
end
|
|
736
|
+
|
|
369
737
|
module RecommendationAction
|
|
370
738
|
extend ModerationAPI::Internal::Type::Enum
|
|
371
739
|
|
|
@@ -404,6 +772,60 @@ module ModerationAPI
|
|
|
404
772
|
def self.values
|
|
405
773
|
end
|
|
406
774
|
end
|
|
775
|
+
|
|
776
|
+
module WithinUnit
|
|
777
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
778
|
+
|
|
779
|
+
TaggedSymbol =
|
|
780
|
+
T.type_alias do
|
|
781
|
+
T.all(
|
|
782
|
+
Symbol,
|
|
783
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit
|
|
784
|
+
)
|
|
785
|
+
end
|
|
786
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
787
|
+
|
|
788
|
+
MINUTES =
|
|
789
|
+
T.let(
|
|
790
|
+
:MINUTES,
|
|
791
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
792
|
+
)
|
|
793
|
+
HOURS =
|
|
794
|
+
T.let(
|
|
795
|
+
:HOURS,
|
|
796
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
797
|
+
)
|
|
798
|
+
DAYS =
|
|
799
|
+
T.let(
|
|
800
|
+
:DAYS,
|
|
801
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
802
|
+
)
|
|
803
|
+
WEEKS =
|
|
804
|
+
T.let(
|
|
805
|
+
:WEEKS,
|
|
806
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
807
|
+
)
|
|
808
|
+
MONTHS =
|
|
809
|
+
T.let(
|
|
810
|
+
:MONTHS,
|
|
811
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
812
|
+
)
|
|
813
|
+
YEARS =
|
|
814
|
+
T.let(
|
|
815
|
+
:YEARS,
|
|
816
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
817
|
+
)
|
|
818
|
+
|
|
819
|
+
sig do
|
|
820
|
+
override.returns(
|
|
821
|
+
T::Array[
|
|
822
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit::TaggedSymbol
|
|
823
|
+
]
|
|
824
|
+
)
|
|
825
|
+
end
|
|
826
|
+
def self.values
|
|
827
|
+
end
|
|
828
|
+
end
|
|
407
829
|
end
|
|
408
830
|
end
|
|
409
831
|
end
|
|
@@ -758,9 +758,12 @@ module ModerationAPI
|
|
|
758
758
|
| :rule_default
|
|
759
759
|
| :rule_fallback
|
|
760
760
|
| :client_override
|
|
761
|
+
| String
|
|
761
762
|
|
|
762
763
|
module ReasonCode
|
|
763
|
-
extend ModerationAPI::Internal::Type::
|
|
764
|
+
extend ModerationAPI::Internal::Type::Union
|
|
765
|
+
|
|
766
|
+
def self?.variants: -> ::Array[ModerationAPI::Models::ContentSubmitResponse::Recommendation::reason_code]
|
|
764
767
|
|
|
765
768
|
SEVERITY_REJECT: :severity_reject
|
|
766
769
|
SEVERITY_REVIEW: :severity_review
|
|
@@ -772,8 +775,6 @@ module ModerationAPI
|
|
|
772
775
|
RULE_DEFAULT: :rule_default
|
|
773
776
|
RULE_FALLBACK: :rule_fallback
|
|
774
777
|
CLIENT_OVERRIDE: :client_override
|
|
775
|
-
|
|
776
|
-
def self?.values: -> ::Array[ModerationAPI::Models::ContentSubmitResponse::Recommendation::reason_code]
|
|
777
778
|
end
|
|
778
779
|
|
|
779
780
|
type matched_rule = { key: String, name: String }
|
|
@@ -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,
|
|
@@ -189,6 +304,33 @@ module ModerationAPI
|
|
|
189
304
|
end
|
|
190
305
|
end
|
|
191
306
|
|
|
307
|
+
type is_flagged = :ALL | :FLAGGED | :NOT_FLAGGED | :SHADOW_FLAGGED
|
|
308
|
+
|
|
309
|
+
module IsFlagged
|
|
310
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
311
|
+
|
|
312
|
+
ALL: :ALL
|
|
313
|
+
FLAGGED: :FLAGGED
|
|
314
|
+
NOT_FLAGGED: :NOT_FLAGGED
|
|
315
|
+
SHADOW_FLAGGED: :SHADOW_FLAGGED
|
|
316
|
+
|
|
317
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::is_flagged]
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
type media_type = :text | :image | :video | :object | :audio
|
|
321
|
+
|
|
322
|
+
module MediaType
|
|
323
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
324
|
+
|
|
325
|
+
TEXT: :text
|
|
326
|
+
IMAGE: :image
|
|
327
|
+
VIDEO: :video
|
|
328
|
+
OBJECT: :object
|
|
329
|
+
AUDIO: :audio
|
|
330
|
+
|
|
331
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::media_type]
|
|
332
|
+
end
|
|
333
|
+
|
|
192
334
|
type recommendation_action = :review | :allow | :reject
|
|
193
335
|
|
|
194
336
|
module RecommendationAction
|
|
@@ -200,6 +342,22 @@ module ModerationAPI
|
|
|
200
342
|
|
|
201
343
|
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::recommendation_action]
|
|
202
344
|
end
|
|
345
|
+
|
|
346
|
+
type within_unit =
|
|
347
|
+
:MINUTES | :HOURS | :DAYS | :WEEKS | :MONTHS | :YEARS
|
|
348
|
+
|
|
349
|
+
module WithinUnit
|
|
350
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
351
|
+
|
|
352
|
+
MINUTES: :MINUTES
|
|
353
|
+
HOURS: :HOURS
|
|
354
|
+
DAYS: :DAYS
|
|
355
|
+
WEEKS: :WEEKS
|
|
356
|
+
MONTHS: :MONTHS
|
|
357
|
+
YEARS: :YEARS
|
|
358
|
+
|
|
359
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit]
|
|
360
|
+
end
|
|
203
361
|
end
|
|
204
362
|
end
|
|
205
363
|
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.31.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-07
|
|
11
|
+
date: 2026-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|