moderation_api 2.39.0 → 2.41.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 +17 -0
- data/README.md +1 -1
- data/lib/moderation_api/models/author_delete_params.rb +3 -1
- data/lib/moderation_api/models/content_submit_params.rb +27 -3
- data/lib/moderation_api/models/queue_retrieve_response.rb +30 -10
- data/lib/moderation_api/resources/authors.rb +5 -2
- data/lib/moderation_api/resources/content.rb +1 -1
- data/lib/moderation_api/version.rb +1 -1
- data/rbi/moderation_api/models/author_delete_params.rbi +6 -1
- data/rbi/moderation_api/models/content_submit_params.rbi +41 -0
- data/rbi/moderation_api/models/queue_retrieve_response.rbi +80 -19
- data/rbi/moderation_api/resources/authors.rbi +8 -2
- data/rbi/moderation_api/resources/content.rbi +1 -0
- data/sig/moderation_api/models/content_submit_params.rbs +22 -0
- data/sig/moderation_api/models/queue_retrieve_response.rbs +32 -11
- 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: edfe068eda75b6437e610ba48cc49d36ea6d9a81438a37ce0373ff2a7f179d4a
|
|
4
|
+
data.tar.gz: cfd5b70f707eb7ef9caac764c6e747856d9918c9167496c938d2a61db979a350
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c430aa627786557a2be2d68fe34fb8094fda745afe7d936054dc6bb3c1c463e664ce6c723ce554bbfd8e133b122e7b6eacc74abc1b9b0b071b11a9655f010cd2
|
|
7
|
+
data.tar.gz: 6ecdab832e8e92d80f5556ea2c02869c65706ee4834b39413337c0635373691ee3607f28b75475c7fbd108a5ad61474e597c774f7f5b8abfda396eb216c01b8d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.41.0 (2026-09-14)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.40.0...v2.41.0](https://github.com/moderation-api/sdk-ruby/compare/v2.40.0...v2.41.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([0bd8a67](https://github.com/moderation-api/sdk-ruby/commit/0bd8a67acc01c28b5d95cf976b9a573e779ec249))
|
|
10
|
+
* **api:** api update ([99151aa](https://github.com/moderation-api/sdk-ruby/commit/99151aa7336b11514ce4c78f1dabd55418c45c3a))
|
|
11
|
+
|
|
12
|
+
## 2.40.0 (2026-08-28)
|
|
13
|
+
|
|
14
|
+
Full Changelog: [v2.39.0...v2.40.0](https://github.com/moderation-api/sdk-ruby/compare/v2.39.0...v2.40.0)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **api:** api update ([dd5d609](https://github.com/moderation-api/sdk-ruby/commit/dd5d6092584810958cd582203aac4da6f4ae7c62))
|
|
19
|
+
|
|
3
20
|
## 2.39.0 (2026-08-27)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v2.38.0...v2.39.0](https://github.com/moderation-api/sdk-ruby/compare/v2.38.0...v2.39.0)
|
data/README.md
CHANGED
|
@@ -8,12 +8,14 @@ module ModerationAPI
|
|
|
8
8
|
include ModerationAPI::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute id
|
|
11
|
+
# Either external ID or the ID assigned by moderation API.
|
|
11
12
|
#
|
|
12
13
|
# @return [String]
|
|
13
14
|
required :id, String
|
|
14
15
|
|
|
15
16
|
# @!method initialize(id:, request_options: {})
|
|
16
|
-
# @param id [String]
|
|
17
|
+
# @param id [String] Either external ID or the ID assigned by moderation API.
|
|
18
|
+
#
|
|
17
19
|
# @param request_options [ModerationAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
18
20
|
end
|
|
19
21
|
end
|
|
@@ -71,7 +71,7 @@ module ModerationAPI
|
|
|
71
71
|
# @!attribute policies
|
|
72
72
|
# (Enterprise) override the channel policies for this moderation request only.
|
|
73
73
|
#
|
|
74
|
-
# @return [Array<ModerationAPI::Models::ContentSubmitParams::Policy::Toxicity, ModerationAPI::Models::ContentSubmitParams::Policy::PersonalInformation, ModerationAPI::Models::ContentSubmitParams::Policy::ToxicitySevere, ModerationAPI::Models::ContentSubmitParams::Policy::Hate, ModerationAPI::Models::ContentSubmitParams::Policy::Illicit, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitDrugs, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitAlcohol, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitFirearms, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitTobacco, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitGambling, ModerationAPI::Models::ContentSubmitParams::Policy::Cannabis, ModerationAPI::Models::ContentSubmitParams::Policy::Adult, ModerationAPI::Models::ContentSubmitParams::Policy::Crypto, ModerationAPI::Models::ContentSubmitParams::Policy::Sexual, ModerationAPI::Models::ContentSubmitParams::Policy::Flirtation, ModerationAPI::Models::ContentSubmitParams::Policy::Profanity, ModerationAPI::Models::ContentSubmitParams::Policy::Violence, ModerationAPI::Models::ContentSubmitParams::Policy::SelfHarm, ModerationAPI::Models::ContentSubmitParams::Policy::Spam, ModerationAPI::Models::ContentSubmitParams::Policy::LowQualityContent, ModerationAPI::Models::ContentSubmitParams::Policy::FaceDetection, ModerationAPI::Models::ContentSubmitParams::Policy::SelfPromotion, ModerationAPI::Models::ContentSubmitParams::Policy::Political, ModerationAPI::Models::ContentSubmitParams::Policy::Religion, ModerationAPI::Models::ContentSubmitParams::Policy::CodeAbuse, ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLRisk, ModerationAPI::Models::ContentSubmitParams::Policy::Guideline>, nil]
|
|
74
|
+
# @return [Array<ModerationAPI::Models::ContentSubmitParams::Policy::Toxicity, ModerationAPI::Models::ContentSubmitParams::Policy::PersonalInformation, ModerationAPI::Models::ContentSubmitParams::Policy::ToxicitySevere, ModerationAPI::Models::ContentSubmitParams::Policy::Hate, ModerationAPI::Models::ContentSubmitParams::Policy::Illicit, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitDrugs, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitAlcohol, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitFirearms, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitTobacco, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitGambling, ModerationAPI::Models::ContentSubmitParams::Policy::Cannabis, ModerationAPI::Models::ContentSubmitParams::Policy::Adult, ModerationAPI::Models::ContentSubmitParams::Policy::Crypto, ModerationAPI::Models::ContentSubmitParams::Policy::Sexual, ModerationAPI::Models::ContentSubmitParams::Policy::SexualMinors, ModerationAPI::Models::ContentSubmitParams::Policy::Flirtation, ModerationAPI::Models::ContentSubmitParams::Policy::Profanity, ModerationAPI::Models::ContentSubmitParams::Policy::Violence, ModerationAPI::Models::ContentSubmitParams::Policy::SelfHarm, ModerationAPI::Models::ContentSubmitParams::Policy::Spam, ModerationAPI::Models::ContentSubmitParams::Policy::LowQualityContent, ModerationAPI::Models::ContentSubmitParams::Policy::FaceDetection, ModerationAPI::Models::ContentSubmitParams::Policy::SelfPromotion, ModerationAPI::Models::ContentSubmitParams::Policy::Political, ModerationAPI::Models::ContentSubmitParams::Policy::Religion, ModerationAPI::Models::ContentSubmitParams::Policy::CodeAbuse, ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLRisk, ModerationAPI::Models::ContentSubmitParams::Policy::Guideline>, nil]
|
|
75
75
|
optional :policies,
|
|
76
76
|
-> { ModerationAPI::Internal::Type::ArrayOf[union: ModerationAPI::ContentSubmitParams::Policy] }
|
|
77
77
|
|
|
@@ -104,7 +104,7 @@ module ModerationAPI
|
|
|
104
104
|
#
|
|
105
105
|
# @param meta_type [Symbol, ModerationAPI::Models::ContentSubmitParams::MetaType] The meta type of content being moderated
|
|
106
106
|
#
|
|
107
|
-
# @param policies [Array<ModerationAPI::Models::ContentSubmitParams::Policy::Toxicity, ModerationAPI::Models::ContentSubmitParams::Policy::PersonalInformation, ModerationAPI::Models::ContentSubmitParams::Policy::ToxicitySevere, ModerationAPI::Models::ContentSubmitParams::Policy::Hate, ModerationAPI::Models::ContentSubmitParams::Policy::Illicit, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitDrugs, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitAlcohol, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitFirearms, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitTobacco, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitGambling, ModerationAPI::Models::ContentSubmitParams::Policy::Cannabis, ModerationAPI::Models::ContentSubmitParams::Policy::Adult, ModerationAPI::Models::ContentSubmitParams::Policy::Crypto, ModerationAPI::Models::ContentSubmitParams::Policy::Sexual, ModerationAPI::Models::ContentSubmitParams::Policy::Flirtation, ModerationAPI::Models::ContentSubmitParams::Policy::Profanity, ModerationAPI::Models::ContentSubmitParams::Policy::Violence, ModerationAPI::Models::ContentSubmitParams::Policy::SelfHarm, ModerationAPI::Models::ContentSubmitParams::Policy::Spam, ModerationAPI::Models::ContentSubmitParams::Policy::LowQualityContent, ModerationAPI::Models::ContentSubmitParams::Policy::FaceDetection, ModerationAPI::Models::ContentSubmitParams::Policy::SelfPromotion, ModerationAPI::Models::ContentSubmitParams::Policy::Political, ModerationAPI::Models::ContentSubmitParams::Policy::Religion, ModerationAPI::Models::ContentSubmitParams::Policy::CodeAbuse, ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLRisk, ModerationAPI::Models::ContentSubmitParams::Policy::Guideline>] (Enterprise) override the channel policies for this moderation request only.
|
|
107
|
+
# @param policies [Array<ModerationAPI::Models::ContentSubmitParams::Policy::Toxicity, ModerationAPI::Models::ContentSubmitParams::Policy::PersonalInformation, ModerationAPI::Models::ContentSubmitParams::Policy::ToxicitySevere, ModerationAPI::Models::ContentSubmitParams::Policy::Hate, ModerationAPI::Models::ContentSubmitParams::Policy::Illicit, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitDrugs, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitAlcohol, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitFirearms, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitTobacco, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitGambling, ModerationAPI::Models::ContentSubmitParams::Policy::Cannabis, ModerationAPI::Models::ContentSubmitParams::Policy::Adult, ModerationAPI::Models::ContentSubmitParams::Policy::Crypto, ModerationAPI::Models::ContentSubmitParams::Policy::Sexual, ModerationAPI::Models::ContentSubmitParams::Policy::SexualMinors, ModerationAPI::Models::ContentSubmitParams::Policy::Flirtation, ModerationAPI::Models::ContentSubmitParams::Policy::Profanity, ModerationAPI::Models::ContentSubmitParams::Policy::Violence, ModerationAPI::Models::ContentSubmitParams::Policy::SelfHarm, ModerationAPI::Models::ContentSubmitParams::Policy::Spam, ModerationAPI::Models::ContentSubmitParams::Policy::LowQualityContent, ModerationAPI::Models::ContentSubmitParams::Policy::FaceDetection, ModerationAPI::Models::ContentSubmitParams::Policy::SelfPromotion, ModerationAPI::Models::ContentSubmitParams::Policy::Political, ModerationAPI::Models::ContentSubmitParams::Policy::Religion, ModerationAPI::Models::ContentSubmitParams::Policy::CodeAbuse, ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLRisk, ModerationAPI::Models::ContentSubmitParams::Policy::Guideline>] (Enterprise) override the channel policies for this moderation request only.
|
|
108
108
|
#
|
|
109
109
|
# @param timestamp [Float] Unix timestamp (in milliseconds) of when the content was created. Use if content
|
|
110
110
|
#
|
|
@@ -479,6 +479,8 @@ module ModerationAPI
|
|
|
479
479
|
|
|
480
480
|
variant -> { ModerationAPI::ContentSubmitParams::Policy::Sexual }
|
|
481
481
|
|
|
482
|
+
variant -> { ModerationAPI::ContentSubmitParams::Policy::SexualMinors }
|
|
483
|
+
|
|
482
484
|
variant -> { ModerationAPI::ContentSubmitParams::Policy::Flirtation }
|
|
483
485
|
|
|
484
486
|
variant -> { ModerationAPI::ContentSubmitParams::Policy::Profanity }
|
|
@@ -819,6 +821,28 @@ module ModerationAPI
|
|
|
819
821
|
# @param id [Symbol, :sexual]
|
|
820
822
|
end
|
|
821
823
|
|
|
824
|
+
class SexualMinors < ModerationAPI::Internal::Type::BaseModel
|
|
825
|
+
# @!attribute id
|
|
826
|
+
#
|
|
827
|
+
# @return [Symbol, :sexual_minors]
|
|
828
|
+
required :id, const: :sexual_minors
|
|
829
|
+
|
|
830
|
+
# @!attribute flag
|
|
831
|
+
#
|
|
832
|
+
# @return [Boolean]
|
|
833
|
+
required :flag, ModerationAPI::Internal::Type::Boolean
|
|
834
|
+
|
|
835
|
+
# @!attribute threshold
|
|
836
|
+
#
|
|
837
|
+
# @return [Float, nil]
|
|
838
|
+
optional :threshold, Float
|
|
839
|
+
|
|
840
|
+
# @!method initialize(flag:, threshold: nil, id: :sexual_minors)
|
|
841
|
+
# @param flag [Boolean]
|
|
842
|
+
# @param threshold [Float]
|
|
843
|
+
# @param id [Symbol, :sexual_minors]
|
|
844
|
+
end
|
|
845
|
+
|
|
822
846
|
class Flirtation < ModerationAPI::Internal::Type::BaseModel
|
|
823
847
|
# @!attribute id
|
|
824
848
|
#
|
|
@@ -1350,7 +1374,7 @@ module ModerationAPI
|
|
|
1350
1374
|
end
|
|
1351
1375
|
|
|
1352
1376
|
# @!method self.variants
|
|
1353
|
-
# @return [Array(ModerationAPI::Models::ContentSubmitParams::Policy::Toxicity, ModerationAPI::Models::ContentSubmitParams::Policy::PersonalInformation, ModerationAPI::Models::ContentSubmitParams::Policy::ToxicitySevere, ModerationAPI::Models::ContentSubmitParams::Policy::Hate, ModerationAPI::Models::ContentSubmitParams::Policy::Illicit, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitDrugs, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitAlcohol, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitFirearms, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitTobacco, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitGambling, ModerationAPI::Models::ContentSubmitParams::Policy::Cannabis, ModerationAPI::Models::ContentSubmitParams::Policy::Adult, ModerationAPI::Models::ContentSubmitParams::Policy::Crypto, ModerationAPI::Models::ContentSubmitParams::Policy::Sexual, ModerationAPI::Models::ContentSubmitParams::Policy::Flirtation, ModerationAPI::Models::ContentSubmitParams::Policy::Profanity, ModerationAPI::Models::ContentSubmitParams::Policy::Violence, ModerationAPI::Models::ContentSubmitParams::Policy::SelfHarm, ModerationAPI::Models::ContentSubmitParams::Policy::Spam, ModerationAPI::Models::ContentSubmitParams::Policy::LowQualityContent, ModerationAPI::Models::ContentSubmitParams::Policy::FaceDetection, ModerationAPI::Models::ContentSubmitParams::Policy::SelfPromotion, ModerationAPI::Models::ContentSubmitParams::Policy::Political, ModerationAPI::Models::ContentSubmitParams::Policy::Religion, ModerationAPI::Models::ContentSubmitParams::Policy::CodeAbuse, ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLRisk, ModerationAPI::Models::ContentSubmitParams::Policy::Guideline)]
|
|
1377
|
+
# @return [Array(ModerationAPI::Models::ContentSubmitParams::Policy::Toxicity, ModerationAPI::Models::ContentSubmitParams::Policy::PersonalInformation, ModerationAPI::Models::ContentSubmitParams::Policy::ToxicitySevere, ModerationAPI::Models::ContentSubmitParams::Policy::Hate, ModerationAPI::Models::ContentSubmitParams::Policy::Illicit, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitDrugs, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitAlcohol, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitFirearms, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitTobacco, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitGambling, ModerationAPI::Models::ContentSubmitParams::Policy::Cannabis, ModerationAPI::Models::ContentSubmitParams::Policy::Adult, ModerationAPI::Models::ContentSubmitParams::Policy::Crypto, ModerationAPI::Models::ContentSubmitParams::Policy::Sexual, ModerationAPI::Models::ContentSubmitParams::Policy::SexualMinors, ModerationAPI::Models::ContentSubmitParams::Policy::Flirtation, ModerationAPI::Models::ContentSubmitParams::Policy::Profanity, ModerationAPI::Models::ContentSubmitParams::Policy::Violence, ModerationAPI::Models::ContentSubmitParams::Policy::SelfHarm, ModerationAPI::Models::ContentSubmitParams::Policy::Spam, ModerationAPI::Models::ContentSubmitParams::Policy::LowQualityContent, ModerationAPI::Models::ContentSubmitParams::Policy::FaceDetection, ModerationAPI::Models::ContentSubmitParams::Policy::SelfPromotion, ModerationAPI::Models::ContentSubmitParams::Policy::Political, ModerationAPI::Models::ContentSubmitParams::Policy::Religion, ModerationAPI::Models::ContentSubmitParams::Policy::CodeAbuse, ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLRisk, ModerationAPI::Models::ContentSubmitParams::Policy::Guideline)]
|
|
1354
1378
|
end
|
|
1355
1379
|
end
|
|
1356
1380
|
end
|
|
@@ -82,12 +82,19 @@ module ModerationAPI
|
|
|
82
82
|
# @return [String, nil]
|
|
83
83
|
optional :before_date, String, api_name: :beforeDate
|
|
84
84
|
|
|
85
|
-
# @!attribute
|
|
85
|
+
# @!attribute casebook_agreement
|
|
86
86
|
#
|
|
87
|
-
# @return [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
88
|
-
optional :
|
|
89
|
-
enum: -> { ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
90
|
-
api_name: :
|
|
87
|
+
# @return [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement, nil]
|
|
88
|
+
optional :casebook_agreement,
|
|
89
|
+
enum: -> { ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement },
|
|
90
|
+
api_name: :casebookAgreement
|
|
91
|
+
|
|
92
|
+
# @!attribute casebook_answer
|
|
93
|
+
#
|
|
94
|
+
# @return [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer, nil]
|
|
95
|
+
optional :casebook_answer,
|
|
96
|
+
enum: -> { ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer },
|
|
97
|
+
api_name: :casebookAnswer
|
|
91
98
|
|
|
92
99
|
# @!attribute check_status
|
|
93
100
|
#
|
|
@@ -207,12 +214,13 @@ module ModerationAPI
|
|
|
207
214
|
enum: -> { ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit },
|
|
208
215
|
api_name: :withinUnit
|
|
209
216
|
|
|
210
|
-
# @!method initialize(after_date: nil, author_id: nil, author_trust_levels: nil, before_date: nil,
|
|
217
|
+
# @!method initialize(after_date: nil, author_id: nil, author_trust_levels: nil, before_date: nil, casebook_agreement: nil, casebook_answer: 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, max_severity: nil, media_types: nil, metadata_filters: nil, min_severity: nil, recommendation_actions: nil, search: nil, within: nil, within_unit: nil)
|
|
211
218
|
# @param after_date [String]
|
|
212
219
|
# @param author_id [String]
|
|
213
220
|
# @param author_trust_levels [Array<Integer>]
|
|
214
221
|
# @param before_date [String]
|
|
215
|
-
# @param
|
|
222
|
+
# @param casebook_agreement [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement]
|
|
223
|
+
# @param casebook_answer [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer]
|
|
216
224
|
# @param check_status [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus, nil]
|
|
217
225
|
# @param clear_date_window [Boolean]
|
|
218
226
|
# @param content_id [String]
|
|
@@ -233,14 +241,26 @@ module ModerationAPI
|
|
|
233
241
|
# @param within [Float]
|
|
234
242
|
# @param within_unit [Symbol, ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::WithinUnit]
|
|
235
243
|
|
|
236
|
-
# @see ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter#
|
|
237
|
-
module
|
|
244
|
+
# @see ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter#casebook_agreement
|
|
245
|
+
module CasebookAgreement
|
|
246
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
247
|
+
|
|
248
|
+
ALL = :ALL
|
|
249
|
+
OVERRULED = :OVERRULED
|
|
250
|
+
AGREED = :AGREED
|
|
251
|
+
|
|
252
|
+
# @!method self.values
|
|
253
|
+
# @return [Array<Symbol>]
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# @see ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter#casebook_answer
|
|
257
|
+
module CasebookAnswer
|
|
238
258
|
extend ModerationAPI::Internal::Type::Enum
|
|
239
259
|
|
|
240
260
|
ALL = :ALL
|
|
241
261
|
ALLOWED = :ALLOWED
|
|
242
262
|
REJECTED = :REJECTED
|
|
243
|
-
|
|
263
|
+
NO_ANSWER = :NO_ANSWER
|
|
244
264
|
|
|
245
265
|
# @!method self.values
|
|
246
266
|
# @return [Array<Symbol>]
|
|
@@ -154,11 +154,14 @@ module ModerationAPI
|
|
|
154
154
|
)
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
# Delete a specific author
|
|
157
|
+
# Delete a specific author. This resets the author: status, blocks, trust level,
|
|
158
|
+
# metrics and action history are removed. The author is created again with a clean
|
|
159
|
+
# record the next time content is moderated for the same ID.
|
|
158
160
|
#
|
|
159
161
|
# @overload delete(id, request_options: {})
|
|
160
162
|
#
|
|
161
|
-
# @param id [String]
|
|
163
|
+
# @param id [String] Either external ID or the ID assigned by moderation API.
|
|
164
|
+
#
|
|
162
165
|
# @param request_options [ModerationAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
163
166
|
#
|
|
164
167
|
# @return [ModerationAPI::Models::AuthorDeleteResponse]
|
|
@@ -68,7 +68,7 @@ module ModerationAPI
|
|
|
68
68
|
#
|
|
69
69
|
# @param meta_type [Symbol, ModerationAPI::Models::ContentSubmitParams::MetaType] The meta type of content being moderated
|
|
70
70
|
#
|
|
71
|
-
# @param policies [Array<ModerationAPI::Models::ContentSubmitParams::Policy::Toxicity, ModerationAPI::Models::ContentSubmitParams::Policy::PersonalInformation, ModerationAPI::Models::ContentSubmitParams::Policy::ToxicitySevere, ModerationAPI::Models::ContentSubmitParams::Policy::Hate, ModerationAPI::Models::ContentSubmitParams::Policy::Illicit, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitDrugs, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitAlcohol, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitFirearms, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitTobacco, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitGambling, ModerationAPI::Models::ContentSubmitParams::Policy::Cannabis, ModerationAPI::Models::ContentSubmitParams::Policy::Adult, ModerationAPI::Models::ContentSubmitParams::Policy::Crypto, ModerationAPI::Models::ContentSubmitParams::Policy::Sexual, ModerationAPI::Models::ContentSubmitParams::Policy::Flirtation, ModerationAPI::Models::ContentSubmitParams::Policy::Profanity, ModerationAPI::Models::ContentSubmitParams::Policy::Violence, ModerationAPI::Models::ContentSubmitParams::Policy::SelfHarm, ModerationAPI::Models::ContentSubmitParams::Policy::Spam, ModerationAPI::Models::ContentSubmitParams::Policy::LowQualityContent, ModerationAPI::Models::ContentSubmitParams::Policy::FaceDetection, ModerationAPI::Models::ContentSubmitParams::Policy::SelfPromotion, ModerationAPI::Models::ContentSubmitParams::Policy::Political, ModerationAPI::Models::ContentSubmitParams::Policy::Religion, ModerationAPI::Models::ContentSubmitParams::Policy::CodeAbuse, ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLRisk, ModerationAPI::Models::ContentSubmitParams::Policy::Guideline>] (Enterprise) override the channel policies for this moderation request only.
|
|
71
|
+
# @param policies [Array<ModerationAPI::Models::ContentSubmitParams::Policy::Toxicity, ModerationAPI::Models::ContentSubmitParams::Policy::PersonalInformation, ModerationAPI::Models::ContentSubmitParams::Policy::ToxicitySevere, ModerationAPI::Models::ContentSubmitParams::Policy::Hate, ModerationAPI::Models::ContentSubmitParams::Policy::Illicit, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitDrugs, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitAlcohol, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitFirearms, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitTobacco, ModerationAPI::Models::ContentSubmitParams::Policy::IllicitGambling, ModerationAPI::Models::ContentSubmitParams::Policy::Cannabis, ModerationAPI::Models::ContentSubmitParams::Policy::Adult, ModerationAPI::Models::ContentSubmitParams::Policy::Crypto, ModerationAPI::Models::ContentSubmitParams::Policy::Sexual, ModerationAPI::Models::ContentSubmitParams::Policy::SexualMinors, ModerationAPI::Models::ContentSubmitParams::Policy::Flirtation, ModerationAPI::Models::ContentSubmitParams::Policy::Profanity, ModerationAPI::Models::ContentSubmitParams::Policy::Violence, ModerationAPI::Models::ContentSubmitParams::Policy::SelfHarm, ModerationAPI::Models::ContentSubmitParams::Policy::Spam, ModerationAPI::Models::ContentSubmitParams::Policy::LowQualityContent, ModerationAPI::Models::ContentSubmitParams::Policy::FaceDetection, ModerationAPI::Models::ContentSubmitParams::Policy::SelfPromotion, ModerationAPI::Models::ContentSubmitParams::Policy::Political, ModerationAPI::Models::ContentSubmitParams::Policy::Religion, ModerationAPI::Models::ContentSubmitParams::Policy::CodeAbuse, ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking, ModerationAPI::Models::ContentSubmitParams::Policy::URLRisk, ModerationAPI::Models::ContentSubmitParams::Policy::Guideline>] (Enterprise) override the channel policies for this moderation request only.
|
|
72
72
|
#
|
|
73
73
|
# @param timestamp [Float] Unix timestamp (in milliseconds) of when the content was created. Use if content
|
|
74
74
|
#
|
|
@@ -14,6 +14,7 @@ module ModerationAPI
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# Either external ID or the ID assigned by moderation API.
|
|
17
18
|
sig { returns(String) }
|
|
18
19
|
attr_accessor :id
|
|
19
20
|
|
|
@@ -23,7 +24,11 @@ module ModerationAPI
|
|
|
23
24
|
request_options: ModerationAPI::RequestOptions::OrHash
|
|
24
25
|
).returns(T.attached_class)
|
|
25
26
|
end
|
|
26
|
-
def self.new(
|
|
27
|
+
def self.new(
|
|
28
|
+
# Either external ID or the ID assigned by moderation API.
|
|
29
|
+
id:,
|
|
30
|
+
request_options: {}
|
|
31
|
+
)
|
|
27
32
|
end
|
|
28
33
|
|
|
29
34
|
sig do
|
|
@@ -122,6 +122,7 @@ module ModerationAPI
|
|
|
122
122
|
ModerationAPI::ContentSubmitParams::Policy::Adult,
|
|
123
123
|
ModerationAPI::ContentSubmitParams::Policy::Crypto,
|
|
124
124
|
ModerationAPI::ContentSubmitParams::Policy::Sexual,
|
|
125
|
+
ModerationAPI::ContentSubmitParams::Policy::SexualMinors,
|
|
125
126
|
ModerationAPI::ContentSubmitParams::Policy::Flirtation,
|
|
126
127
|
ModerationAPI::ContentSubmitParams::Policy::Profanity,
|
|
127
128
|
ModerationAPI::ContentSubmitParams::Policy::Violence,
|
|
@@ -164,6 +165,7 @@ module ModerationAPI
|
|
|
164
165
|
ModerationAPI::ContentSubmitParams::Policy::Adult::OrHash,
|
|
165
166
|
ModerationAPI::ContentSubmitParams::Policy::Crypto::OrHash,
|
|
166
167
|
ModerationAPI::ContentSubmitParams::Policy::Sexual::OrHash,
|
|
168
|
+
ModerationAPI::ContentSubmitParams::Policy::SexualMinors::OrHash,
|
|
167
169
|
ModerationAPI::ContentSubmitParams::Policy::Flirtation::OrHash,
|
|
168
170
|
ModerationAPI::ContentSubmitParams::Policy::Profanity::OrHash,
|
|
169
171
|
ModerationAPI::ContentSubmitParams::Policy::Violence::OrHash,
|
|
@@ -230,6 +232,7 @@ module ModerationAPI
|
|
|
230
232
|
ModerationAPI::ContentSubmitParams::Policy::Adult::OrHash,
|
|
231
233
|
ModerationAPI::ContentSubmitParams::Policy::Crypto::OrHash,
|
|
232
234
|
ModerationAPI::ContentSubmitParams::Policy::Sexual::OrHash,
|
|
235
|
+
ModerationAPI::ContentSubmitParams::Policy::SexualMinors::OrHash,
|
|
233
236
|
ModerationAPI::ContentSubmitParams::Policy::Flirtation::OrHash,
|
|
234
237
|
ModerationAPI::ContentSubmitParams::Policy::Profanity::OrHash,
|
|
235
238
|
ModerationAPI::ContentSubmitParams::Policy::Violence::OrHash,
|
|
@@ -319,6 +322,7 @@ module ModerationAPI
|
|
|
319
322
|
ModerationAPI::ContentSubmitParams::Policy::Adult,
|
|
320
323
|
ModerationAPI::ContentSubmitParams::Policy::Crypto,
|
|
321
324
|
ModerationAPI::ContentSubmitParams::Policy::Sexual,
|
|
325
|
+
ModerationAPI::ContentSubmitParams::Policy::SexualMinors,
|
|
322
326
|
ModerationAPI::ContentSubmitParams::Policy::Flirtation,
|
|
323
327
|
ModerationAPI::ContentSubmitParams::Policy::Profanity,
|
|
324
328
|
ModerationAPI::ContentSubmitParams::Policy::Violence,
|
|
@@ -1003,6 +1007,7 @@ module ModerationAPI
|
|
|
1003
1007
|
ModerationAPI::ContentSubmitParams::Policy::Adult,
|
|
1004
1008
|
ModerationAPI::ContentSubmitParams::Policy::Crypto,
|
|
1005
1009
|
ModerationAPI::ContentSubmitParams::Policy::Sexual,
|
|
1010
|
+
ModerationAPI::ContentSubmitParams::Policy::SexualMinors,
|
|
1006
1011
|
ModerationAPI::ContentSubmitParams::Policy::Flirtation,
|
|
1007
1012
|
ModerationAPI::ContentSubmitParams::Policy::Profanity,
|
|
1008
1013
|
ModerationAPI::ContentSubmitParams::Policy::Violence,
|
|
@@ -1526,6 +1531,42 @@ module ModerationAPI
|
|
|
1526
1531
|
end
|
|
1527
1532
|
end
|
|
1528
1533
|
|
|
1534
|
+
class SexualMinors < ModerationAPI::Internal::Type::BaseModel
|
|
1535
|
+
OrHash =
|
|
1536
|
+
T.type_alias do
|
|
1537
|
+
T.any(
|
|
1538
|
+
ModerationAPI::ContentSubmitParams::Policy::SexualMinors,
|
|
1539
|
+
ModerationAPI::Internal::AnyHash
|
|
1540
|
+
)
|
|
1541
|
+
end
|
|
1542
|
+
|
|
1543
|
+
sig { returns(Symbol) }
|
|
1544
|
+
attr_accessor :id
|
|
1545
|
+
|
|
1546
|
+
sig { returns(T::Boolean) }
|
|
1547
|
+
attr_accessor :flag
|
|
1548
|
+
|
|
1549
|
+
sig { returns(T.nilable(Float)) }
|
|
1550
|
+
attr_reader :threshold
|
|
1551
|
+
|
|
1552
|
+
sig { params(threshold: Float).void }
|
|
1553
|
+
attr_writer :threshold
|
|
1554
|
+
|
|
1555
|
+
sig do
|
|
1556
|
+
params(flag: T::Boolean, threshold: Float, id: Symbol).returns(
|
|
1557
|
+
T.attached_class
|
|
1558
|
+
)
|
|
1559
|
+
end
|
|
1560
|
+
def self.new(flag:, threshold: nil, id: :sexual_minors)
|
|
1561
|
+
end
|
|
1562
|
+
|
|
1563
|
+
sig do
|
|
1564
|
+
override.returns({ id: Symbol, flag: T::Boolean, threshold: Float })
|
|
1565
|
+
end
|
|
1566
|
+
def to_hash
|
|
1567
|
+
end
|
|
1568
|
+
end
|
|
1569
|
+
|
|
1529
1570
|
class Flirtation < ModerationAPI::Internal::Type::BaseModel
|
|
1530
1571
|
OrHash =
|
|
1531
1572
|
T.type_alias do
|
|
@@ -153,19 +153,36 @@ module ModerationAPI
|
|
|
153
153
|
sig do
|
|
154
154
|
returns(
|
|
155
155
|
T.nilable(
|
|
156
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
156
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement::TaggedSymbol
|
|
157
157
|
)
|
|
158
158
|
)
|
|
159
159
|
end
|
|
160
|
-
attr_reader :
|
|
160
|
+
attr_reader :casebook_agreement
|
|
161
161
|
|
|
162
162
|
sig do
|
|
163
163
|
params(
|
|
164
|
-
|
|
165
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
164
|
+
casebook_agreement:
|
|
165
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement::OrSymbol
|
|
166
166
|
).void
|
|
167
167
|
end
|
|
168
|
-
attr_writer :
|
|
168
|
+
attr_writer :casebook_agreement
|
|
169
|
+
|
|
170
|
+
sig do
|
|
171
|
+
returns(
|
|
172
|
+
T.nilable(
|
|
173
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::TaggedSymbol
|
|
174
|
+
)
|
|
175
|
+
)
|
|
176
|
+
end
|
|
177
|
+
attr_reader :casebook_answer
|
|
178
|
+
|
|
179
|
+
sig do
|
|
180
|
+
params(
|
|
181
|
+
casebook_answer:
|
|
182
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::OrSymbol
|
|
183
|
+
).void
|
|
184
|
+
end
|
|
185
|
+
attr_writer :casebook_answer
|
|
169
186
|
|
|
170
187
|
sig do
|
|
171
188
|
returns(
|
|
@@ -387,8 +404,10 @@ module ModerationAPI
|
|
|
387
404
|
author_id: String,
|
|
388
405
|
author_trust_levels: T::Array[Integer],
|
|
389
406
|
before_date: String,
|
|
390
|
-
|
|
391
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
407
|
+
casebook_agreement:
|
|
408
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement::OrSymbol,
|
|
409
|
+
casebook_answer:
|
|
410
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::OrSymbol,
|
|
392
411
|
check_status:
|
|
393
412
|
T.nilable(
|
|
394
413
|
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::OrSymbol
|
|
@@ -435,7 +454,8 @@ module ModerationAPI
|
|
|
435
454
|
author_id: nil,
|
|
436
455
|
author_trust_levels: nil,
|
|
437
456
|
before_date: nil,
|
|
438
|
-
|
|
457
|
+
casebook_agreement: nil,
|
|
458
|
+
casebook_answer: nil,
|
|
439
459
|
check_status: nil,
|
|
440
460
|
clear_date_window: nil,
|
|
441
461
|
content_id: nil,
|
|
@@ -465,8 +485,10 @@ module ModerationAPI
|
|
|
465
485
|
author_id: String,
|
|
466
486
|
author_trust_levels: T::Array[Integer],
|
|
467
487
|
before_date: String,
|
|
468
|
-
|
|
469
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
488
|
+
casebook_agreement:
|
|
489
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement::TaggedSymbol,
|
|
490
|
+
casebook_answer:
|
|
491
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::TaggedSymbol,
|
|
470
492
|
check_status:
|
|
471
493
|
T.nilable(
|
|
472
494
|
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CheckStatus::TaggedSymbol
|
|
@@ -512,14 +534,14 @@ module ModerationAPI
|
|
|
512
534
|
def to_hash
|
|
513
535
|
end
|
|
514
536
|
|
|
515
|
-
module
|
|
537
|
+
module CasebookAgreement
|
|
516
538
|
extend ModerationAPI::Internal::Type::Enum
|
|
517
539
|
|
|
518
540
|
TaggedSymbol =
|
|
519
541
|
T.type_alias do
|
|
520
542
|
T.all(
|
|
521
543
|
Symbol,
|
|
522
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
544
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement
|
|
523
545
|
)
|
|
524
546
|
end
|
|
525
547
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -527,28 +549,67 @@ module ModerationAPI
|
|
|
527
549
|
ALL =
|
|
528
550
|
T.let(
|
|
529
551
|
:ALL,
|
|
530
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
552
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement::TaggedSymbol
|
|
553
|
+
)
|
|
554
|
+
OVERRULED =
|
|
555
|
+
T.let(
|
|
556
|
+
:OVERRULED,
|
|
557
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement::TaggedSymbol
|
|
558
|
+
)
|
|
559
|
+
AGREED =
|
|
560
|
+
T.let(
|
|
561
|
+
:AGREED,
|
|
562
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement::TaggedSymbol
|
|
563
|
+
)
|
|
564
|
+
|
|
565
|
+
sig do
|
|
566
|
+
override.returns(
|
|
567
|
+
T::Array[
|
|
568
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAgreement::TaggedSymbol
|
|
569
|
+
]
|
|
570
|
+
)
|
|
571
|
+
end
|
|
572
|
+
def self.values
|
|
573
|
+
end
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
module CasebookAnswer
|
|
577
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
578
|
+
|
|
579
|
+
TaggedSymbol =
|
|
580
|
+
T.type_alias do
|
|
581
|
+
T.all(
|
|
582
|
+
Symbol,
|
|
583
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer
|
|
584
|
+
)
|
|
585
|
+
end
|
|
586
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
587
|
+
|
|
588
|
+
ALL =
|
|
589
|
+
T.let(
|
|
590
|
+
:ALL,
|
|
591
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::TaggedSymbol
|
|
531
592
|
)
|
|
532
593
|
ALLOWED =
|
|
533
594
|
T.let(
|
|
534
595
|
:ALLOWED,
|
|
535
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
596
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::TaggedSymbol
|
|
536
597
|
)
|
|
537
598
|
REJECTED =
|
|
538
599
|
T.let(
|
|
539
600
|
:REJECTED,
|
|
540
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
601
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::TaggedSymbol
|
|
541
602
|
)
|
|
542
|
-
|
|
603
|
+
NO_ANSWER =
|
|
543
604
|
T.let(
|
|
544
|
-
:
|
|
545
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
605
|
+
:NO_ANSWER,
|
|
606
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::TaggedSymbol
|
|
546
607
|
)
|
|
547
608
|
|
|
548
609
|
sig do
|
|
549
610
|
override.returns(
|
|
550
611
|
T::Array[
|
|
551
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
612
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::CasebookAnswer::TaggedSymbol
|
|
552
613
|
]
|
|
553
614
|
)
|
|
554
615
|
end
|
|
@@ -130,14 +130,20 @@ module ModerationAPI
|
|
|
130
130
|
)
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
# Delete a specific author
|
|
133
|
+
# Delete a specific author. This resets the author: status, blocks, trust level,
|
|
134
|
+
# metrics and action history are removed. The author is created again with a clean
|
|
135
|
+
# record the next time content is moderated for the same ID.
|
|
134
136
|
sig do
|
|
135
137
|
params(
|
|
136
138
|
id: String,
|
|
137
139
|
request_options: ModerationAPI::RequestOptions::OrHash
|
|
138
140
|
).returns(ModerationAPI::Models::AuthorDeleteResponse)
|
|
139
141
|
end
|
|
140
|
-
def delete(
|
|
142
|
+
def delete(
|
|
143
|
+
# Either external ID or the ID assigned by moderation API.
|
|
144
|
+
id,
|
|
145
|
+
request_options: {}
|
|
146
|
+
)
|
|
141
147
|
end
|
|
142
148
|
|
|
143
149
|
# @api private
|
|
@@ -73,6 +73,7 @@ module ModerationAPI
|
|
|
73
73
|
ModerationAPI::ContentSubmitParams::Policy::Adult::OrHash,
|
|
74
74
|
ModerationAPI::ContentSubmitParams::Policy::Crypto::OrHash,
|
|
75
75
|
ModerationAPI::ContentSubmitParams::Policy::Sexual::OrHash,
|
|
76
|
+
ModerationAPI::ContentSubmitParams::Policy::SexualMinors::OrHash,
|
|
76
77
|
ModerationAPI::ContentSubmitParams::Policy::Flirtation::OrHash,
|
|
77
78
|
ModerationAPI::ContentSubmitParams::Policy::Profanity::OrHash,
|
|
78
79
|
ModerationAPI::ContentSubmitParams::Policy::Violence::OrHash,
|
|
@@ -362,6 +362,7 @@ module ModerationAPI
|
|
|
362
362
|
| ModerationAPI::ContentSubmitParams::Policy::Adult
|
|
363
363
|
| ModerationAPI::ContentSubmitParams::Policy::Crypto
|
|
364
364
|
| ModerationAPI::ContentSubmitParams::Policy::Sexual
|
|
365
|
+
| ModerationAPI::ContentSubmitParams::Policy::SexualMinors
|
|
365
366
|
| ModerationAPI::ContentSubmitParams::Policy::Flirtation
|
|
366
367
|
| ModerationAPI::ContentSubmitParams::Policy::Profanity
|
|
367
368
|
| ModerationAPI::ContentSubmitParams::Policy::Violence
|
|
@@ -661,6 +662,27 @@ module ModerationAPI
|
|
|
661
662
|
def to_hash: -> { id: :sexual, flag: bool, threshold: Float }
|
|
662
663
|
end
|
|
663
664
|
|
|
665
|
+
type sexual_minors =
|
|
666
|
+
{ id: :sexual_minors, flag: bool, threshold: Float }
|
|
667
|
+
|
|
668
|
+
class SexualMinors < ModerationAPI::Internal::Type::BaseModel
|
|
669
|
+
attr_accessor id: :sexual_minors
|
|
670
|
+
|
|
671
|
+
attr_accessor flag: bool
|
|
672
|
+
|
|
673
|
+
attr_reader threshold: Float?
|
|
674
|
+
|
|
675
|
+
def threshold=: (Float) -> Float
|
|
676
|
+
|
|
677
|
+
def initialize: (
|
|
678
|
+
flag: bool,
|
|
679
|
+
?threshold: Float,
|
|
680
|
+
?id: :sexual_minors
|
|
681
|
+
) -> void
|
|
682
|
+
|
|
683
|
+
def to_hash: -> { id: :sexual_minors, flag: bool, threshold: Float }
|
|
684
|
+
end
|
|
685
|
+
|
|
664
686
|
type flirtation = { id: :flirtation, flag: bool, threshold: Float }
|
|
665
687
|
|
|
666
688
|
class Flirtation < ModerationAPI::Internal::Type::BaseModel
|
|
@@ -66,7 +66,8 @@ module ModerationAPI
|
|
|
66
66
|
author_id: String,
|
|
67
67
|
author_trust_levels: ::Array[Integer],
|
|
68
68
|
before_date: String,
|
|
69
|
-
|
|
69
|
+
casebook_agreement: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_agreement,
|
|
70
|
+
casebook_answer: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_answer,
|
|
70
71
|
check_status: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status?,
|
|
71
72
|
clear_date_window: bool,
|
|
72
73
|
content_id: String,
|
|
@@ -105,11 +106,17 @@ module ModerationAPI
|
|
|
105
106
|
|
|
106
107
|
def before_date=: (String) -> String
|
|
107
108
|
|
|
108
|
-
attr_reader
|
|
109
|
+
attr_reader casebook_agreement: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_agreement?
|
|
109
110
|
|
|
110
|
-
def
|
|
111
|
-
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
112
|
-
) -> ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
111
|
+
def casebook_agreement=: (
|
|
112
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_agreement
|
|
113
|
+
) -> ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_agreement
|
|
114
|
+
|
|
115
|
+
attr_reader casebook_answer: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_answer?
|
|
116
|
+
|
|
117
|
+
def casebook_answer=: (
|
|
118
|
+
ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_answer
|
|
119
|
+
) -> ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_answer
|
|
113
120
|
|
|
114
121
|
attr_accessor check_status: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status?
|
|
115
122
|
|
|
@@ -204,7 +211,8 @@ module ModerationAPI
|
|
|
204
211
|
?author_id: String,
|
|
205
212
|
?author_trust_levels: ::Array[Integer],
|
|
206
213
|
?before_date: String,
|
|
207
|
-
?
|
|
214
|
+
?casebook_agreement: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_agreement,
|
|
215
|
+
?casebook_answer: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_answer,
|
|
208
216
|
?check_status: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status?,
|
|
209
217
|
?clear_date_window: bool,
|
|
210
218
|
?content_id: String,
|
|
@@ -231,7 +239,8 @@ module ModerationAPI
|
|
|
231
239
|
author_id: String,
|
|
232
240
|
author_trust_levels: ::Array[Integer],
|
|
233
241
|
before_date: String,
|
|
234
|
-
|
|
242
|
+
casebook_agreement: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_agreement,
|
|
243
|
+
casebook_answer: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_answer,
|
|
235
244
|
check_status: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::check_status?,
|
|
236
245
|
clear_date_window: bool,
|
|
237
246
|
content_id: String,
|
|
@@ -253,17 +262,29 @@ module ModerationAPI
|
|
|
253
262
|
within_unit: ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::within_unit
|
|
254
263
|
}
|
|
255
264
|
|
|
256
|
-
type
|
|
265
|
+
type casebook_agreement = :ALL | :OVERRULED | :AGREED
|
|
257
266
|
|
|
258
|
-
module
|
|
267
|
+
module CasebookAgreement
|
|
268
|
+
extend ModerationAPI::Internal::Type::Enum
|
|
269
|
+
|
|
270
|
+
ALL: :ALL
|
|
271
|
+
OVERRULED: :OVERRULED
|
|
272
|
+
AGREED: :AGREED
|
|
273
|
+
|
|
274
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_agreement]
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
type casebook_answer = :ALL | :ALLOWED | :REJECTED | :NO_ANSWER
|
|
278
|
+
|
|
279
|
+
module CasebookAnswer
|
|
259
280
|
extend ModerationAPI::Internal::Type::Enum
|
|
260
281
|
|
|
261
282
|
ALL: :ALL
|
|
262
283
|
ALLOWED: :ALLOWED
|
|
263
284
|
REJECTED: :REJECTED
|
|
264
|
-
|
|
285
|
+
NO_ANSWER: :NO_ANSWER
|
|
265
286
|
|
|
266
|
-
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::
|
|
287
|
+
def self?.values: -> ::Array[ModerationAPI::Models::QueueRetrieveResponse::Queue::Filter::casebook_answer]
|
|
267
288
|
end
|
|
268
289
|
|
|
269
290
|
type check_status = :all | :checked | :unchecked
|
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.41.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-
|
|
11
|
+
date: 2026-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|