moderation_api 2.25.0 → 2.26.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 +8 -0
- data/README.md +1 -1
- data/lib/moderation_api/models/content_submit_response.rb +11 -11
- data/lib/moderation_api/version.rb +1 -1
- data/rbi/moderation_api/models/content_submit_response.rbi +14 -17
- data/sig/moderation_api/models/content_submit_response.rbs +8 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bb60d97ebda8246fd8379d0f3f65e5616e39c17b7bdee3a2e363a4f740c9e9f
|
|
4
|
+
data.tar.gz: 300c111be043041069d2048c6a5f6f08119df3ad8956db3a38503a12e19c5921
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4edc722604ec4dfc2f045197fa38d38174955cdd8c3bad8479480c3336e2627bec90b92de9a53c3398e1de1bf135313e0b3654d2c0e9bcf7618489d7d61c03e5
|
|
7
|
+
data.tar.gz: 2ab5f840dc47a68fc4323bde58513eee4992677552e335813d8eebab17ed3d88cb96fe5fd1ba5addccc90a0eec5d9c23086cc8200aaa2f7efd8c22d83b0d4fba
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.26.0 (2026-07-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.25.0...v2.26.0](https://github.com/moderation-api/sdk-ruby/compare/v2.25.0...v2.26.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([a646112](https://github.com/moderation-api/sdk-ruby/commit/a646112a9e230e28c00ed0a346426ff3e25589df))
|
|
10
|
+
|
|
3
11
|
## 2.25.0 (2026-07-20)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v2.24.0...v2.25.0](https://github.com/moderation-api/sdk-ruby/compare/v2.24.0...v2.25.0)
|
data/README.md
CHANGED
|
@@ -201,6 +201,14 @@ module ModerationAPI
|
|
|
201
201
|
union: -> { ModerationAPI::Models::ContentSubmitResponse::Content::Modified },
|
|
202
202
|
nil?: true
|
|
203
203
|
|
|
204
|
+
# @!attribute unicode_cleaned
|
|
205
|
+
# Whether Unicode spoofing normalization rewrote the content — confusables folded
|
|
206
|
+
# to their Latin lookalikes, invisible characters and combining-mark abuse
|
|
207
|
+
# stripped.
|
|
208
|
+
#
|
|
209
|
+
# @return [Boolean]
|
|
210
|
+
required :unicode_cleaned, ModerationAPI::Internal::Type::Boolean
|
|
211
|
+
|
|
204
212
|
# @!attribute transcript
|
|
205
213
|
# The transcribed text from audio content. Only present when audio moderation is
|
|
206
214
|
# used and transcript inclusion is enabled on the channel.
|
|
@@ -208,15 +216,7 @@ module ModerationAPI
|
|
|
208
216
|
# @return [String, nil]
|
|
209
217
|
optional :transcript, String, nil?: true
|
|
210
218
|
|
|
211
|
-
# @!
|
|
212
|
-
# Whether Unicode spoofing normalization rewrote the content — confusables folded
|
|
213
|
-
# to their Latin lookalikes, invisible characters and combining-mark abuse
|
|
214
|
-
# stripped.
|
|
215
|
-
#
|
|
216
|
-
# @return [Boolean, nil]
|
|
217
|
-
optional :unicode_cleaned, ModerationAPI::Internal::Type::Boolean
|
|
218
|
-
|
|
219
|
-
# @!method initialize(id:, masked:, modified:, transcript: nil, unicode_cleaned: nil)
|
|
219
|
+
# @!method initialize(id:, masked:, modified:, unicode_cleaned:, transcript: nil)
|
|
220
220
|
# Some parameter documentations has been truncated, see
|
|
221
221
|
# {ModerationAPI::Models::ContentSubmitResponse::Content} for more details.
|
|
222
222
|
#
|
|
@@ -228,9 +228,9 @@ module ModerationAPI
|
|
|
228
228
|
#
|
|
229
229
|
# @param modified [String, Hash{Symbol=>Object}, Hash{Symbol=>ModerationAPI::Models::ContentSubmitResponse::Content::Modified::ModifiedNestedObjectContent::Text, ModerationAPI::Models::ContentSubmitResponse::Content::Modified::ModifiedNestedObjectContent::Image, ModerationAPI::Models::ContentSubmitResponse::Content::Modified::ModifiedNestedObjectContent::Video, ModerationAPI::Models::ContentSubmitResponse::Content::Modified::ModifiedNestedObjectContent::Audio}, nil] The modified content, if any.
|
|
230
230
|
#
|
|
231
|
-
# @param transcript [String, nil] The transcribed text from audio content. Only present when audio moderation is u
|
|
232
|
-
#
|
|
233
231
|
# @param unicode_cleaned [Boolean] Whether Unicode spoofing normalization rewrote the content — confusables folded
|
|
232
|
+
#
|
|
233
|
+
# @param transcript [String, nil] The transcribed text from audio content. Only present when audio moderation is u
|
|
234
234
|
|
|
235
235
|
# The modified content, if any.
|
|
236
236
|
#
|
|
@@ -447,19 +447,16 @@ module ModerationAPI
|
|
|
447
447
|
end
|
|
448
448
|
attr_accessor :modified
|
|
449
449
|
|
|
450
|
-
# The transcribed text from audio content. Only present when audio moderation is
|
|
451
|
-
# used and transcript inclusion is enabled on the channel.
|
|
452
|
-
sig { returns(T.nilable(String)) }
|
|
453
|
-
attr_accessor :transcript
|
|
454
|
-
|
|
455
450
|
# Whether Unicode spoofing normalization rewrote the content — confusables folded
|
|
456
451
|
# to their Latin lookalikes, invisible characters and combining-mark abuse
|
|
457
452
|
# stripped.
|
|
458
|
-
sig { returns(T
|
|
459
|
-
|
|
453
|
+
sig { returns(T::Boolean) }
|
|
454
|
+
attr_accessor :unicode_cleaned
|
|
460
455
|
|
|
461
|
-
|
|
462
|
-
|
|
456
|
+
# The transcribed text from audio content. Only present when audio moderation is
|
|
457
|
+
# used and transcript inclusion is enabled on the channel.
|
|
458
|
+
sig { returns(T.nilable(String)) }
|
|
459
|
+
attr_accessor :transcript
|
|
463
460
|
|
|
464
461
|
# Potentially modified content.
|
|
465
462
|
sig do
|
|
@@ -470,8 +467,8 @@ module ModerationAPI
|
|
|
470
467
|
T.nilable(
|
|
471
468
|
ModerationAPI::Models::ContentSubmitResponse::Content::Modified::Variants
|
|
472
469
|
),
|
|
473
|
-
|
|
474
|
-
|
|
470
|
+
unicode_cleaned: T::Boolean,
|
|
471
|
+
transcript: T.nilable(String)
|
|
475
472
|
).returns(T.attached_class)
|
|
476
473
|
end
|
|
477
474
|
def self.new(
|
|
@@ -482,13 +479,13 @@ module ModerationAPI
|
|
|
482
479
|
masked:,
|
|
483
480
|
# The modified content, if any.
|
|
484
481
|
modified:,
|
|
485
|
-
# The transcribed text from audio content. Only present when audio moderation is
|
|
486
|
-
# used and transcript inclusion is enabled on the channel.
|
|
487
|
-
transcript: nil,
|
|
488
482
|
# Whether Unicode spoofing normalization rewrote the content — confusables folded
|
|
489
483
|
# to their Latin lookalikes, invisible characters and combining-mark abuse
|
|
490
484
|
# stripped.
|
|
491
|
-
unicode_cleaned
|
|
485
|
+
unicode_cleaned:,
|
|
486
|
+
# The transcribed text from audio content. Only present when audio moderation is
|
|
487
|
+
# used and transcript inclusion is enabled on the channel.
|
|
488
|
+
transcript: nil
|
|
492
489
|
)
|
|
493
490
|
end
|
|
494
491
|
|
|
@@ -501,8 +498,8 @@ module ModerationAPI
|
|
|
501
498
|
T.nilable(
|
|
502
499
|
ModerationAPI::Models::ContentSubmitResponse::Content::Modified::Variants
|
|
503
500
|
),
|
|
504
|
-
|
|
505
|
-
|
|
501
|
+
unicode_cleaned: T::Boolean,
|
|
502
|
+
transcript: T.nilable(String)
|
|
506
503
|
}
|
|
507
504
|
)
|
|
508
505
|
end
|
|
@@ -133,8 +133,8 @@ module ModerationAPI
|
|
|
133
133
|
id: String,
|
|
134
134
|
masked: bool,
|
|
135
135
|
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified?,
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
unicode_cleaned: bool,
|
|
137
|
+
transcript: String?
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
class Content < ModerationAPI::Internal::Type::BaseModel
|
|
@@ -144,26 +144,24 @@ module ModerationAPI
|
|
|
144
144
|
|
|
145
145
|
attr_accessor modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified?
|
|
146
146
|
|
|
147
|
-
attr_accessor
|
|
148
|
-
|
|
149
|
-
attr_reader unicode_cleaned: bool?
|
|
147
|
+
attr_accessor unicode_cleaned: bool
|
|
150
148
|
|
|
151
|
-
|
|
149
|
+
attr_accessor transcript: String?
|
|
152
150
|
|
|
153
151
|
def initialize: (
|
|
154
152
|
id: String,
|
|
155
153
|
masked: bool,
|
|
156
154
|
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified?,
|
|
157
|
-
|
|
158
|
-
?
|
|
155
|
+
unicode_cleaned: bool,
|
|
156
|
+
?transcript: String?
|
|
159
157
|
) -> void
|
|
160
158
|
|
|
161
159
|
def to_hash: -> {
|
|
162
160
|
id: String,
|
|
163
161
|
masked: bool,
|
|
164
162
|
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified?,
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
unicode_cleaned: bool,
|
|
164
|
+
transcript: String?
|
|
167
165
|
}
|
|
168
166
|
|
|
169
167
|
type modified =
|