moderation_api 2.10.1 → 2.11.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 +13 -0
- data/README.md +1 -1
- data/lib/moderation_api/models/content_submit_response.rb +10 -1
- data/lib/moderation_api/version.rb +1 -1
- data/rbi/moderation_api/models/content_submit_response.rbi +13 -3
- data/sig/moderation_api/models/content_submit_response.rbs +8 -3
- 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: b5fa9b68b9d710f39d0af9ff2e556edefc17fb6529e28302250393cffc741940
|
|
4
|
+
data.tar.gz: 14f31f4cad8e35238206f9122dcd162131bf86a37401009f630d6218f343132a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f01802857671b01c19c443b547098e3fe5a8175bb800f10957116c404c711417e9933abde8dc51f948e4674155ba335815c97b55615bec5f2703e811db36bdd
|
|
7
|
+
data.tar.gz: d493152543047239b51ae235d6ed2b9923c4b4f24af1aee0c23bfbff6f4d5a4be00af8fbf8e2934f213e41e622d43435e08fadefe059ca9a4c69b704bc7f97ba
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.11.0 (2026-03-31)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.10.1...v2.11.0](https://github.com/moderation-api/sdk-ruby/compare/v2.10.1...v2.11.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([7003628](https://github.com/moderation-api/sdk-ruby/commit/70036284e49ac86dd1de5f1e9b10f908c35571cc))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **ci:** support opting out of skipping builds on metadata-only commits ([8cbba6f](https://github.com/moderation-api/sdk-ruby/commit/8cbba6fe84670b175bb6283c543ecff4bad13006))
|
|
15
|
+
|
|
3
16
|
## 2.10.1 (2026-03-27)
|
|
4
17
|
|
|
5
18
|
Full Changelog: [v2.10.0...v2.10.1](https://github.com/moderation-api/sdk-ruby/compare/v2.10.0...v2.10.1)
|
data/README.md
CHANGED
|
@@ -201,7 +201,14 @@ module ModerationAPI
|
|
|
201
201
|
union: -> { ModerationAPI::Models::ContentSubmitResponse::Content::Modified },
|
|
202
202
|
nil?: true
|
|
203
203
|
|
|
204
|
-
# @!
|
|
204
|
+
# @!attribute transcript
|
|
205
|
+
# The transcribed text from audio content. Only present when audio moderation is
|
|
206
|
+
# used and transcript inclusion is enabled on the channel.
|
|
207
|
+
#
|
|
208
|
+
# @return [String, nil]
|
|
209
|
+
optional :transcript, String, nil?: true
|
|
210
|
+
|
|
211
|
+
# @!method initialize(id:, masked:, modified:, transcript: nil)
|
|
205
212
|
# Some parameter documentations has been truncated, see
|
|
206
213
|
# {ModerationAPI::Models::ContentSubmitResponse::Content} for more details.
|
|
207
214
|
#
|
|
@@ -212,6 +219,8 @@ module ModerationAPI
|
|
|
212
219
|
# @param masked [Boolean] Whether any values have been masked.
|
|
213
220
|
#
|
|
214
221
|
# @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.
|
|
222
|
+
#
|
|
223
|
+
# @param transcript [String, nil] The transcribed text from audio content. Only present when audio moderation is u
|
|
215
224
|
|
|
216
225
|
# The modified content, if any.
|
|
217
226
|
#
|
|
@@ -447,6 +447,11 @@ 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
|
+
|
|
450
455
|
# Potentially modified content.
|
|
451
456
|
sig do
|
|
452
457
|
params(
|
|
@@ -455,7 +460,8 @@ module ModerationAPI
|
|
|
455
460
|
modified:
|
|
456
461
|
T.nilable(
|
|
457
462
|
ModerationAPI::Models::ContentSubmitResponse::Content::Modified::Variants
|
|
458
|
-
)
|
|
463
|
+
),
|
|
464
|
+
transcript: T.nilable(String)
|
|
459
465
|
).returns(T.attached_class)
|
|
460
466
|
end
|
|
461
467
|
def self.new(
|
|
@@ -465,7 +471,10 @@ module ModerationAPI
|
|
|
465
471
|
# Whether any values have been masked.
|
|
466
472
|
masked:,
|
|
467
473
|
# The modified content, if any.
|
|
468
|
-
modified
|
|
474
|
+
modified:,
|
|
475
|
+
# The transcribed text from audio content. Only present when audio moderation is
|
|
476
|
+
# used and transcript inclusion is enabled on the channel.
|
|
477
|
+
transcript: nil
|
|
469
478
|
)
|
|
470
479
|
end
|
|
471
480
|
|
|
@@ -477,7 +486,8 @@ module ModerationAPI
|
|
|
477
486
|
modified:
|
|
478
487
|
T.nilable(
|
|
479
488
|
ModerationAPI::Models::ContentSubmitResponse::Content::Modified::Variants
|
|
480
|
-
)
|
|
489
|
+
),
|
|
490
|
+
transcript: T.nilable(String)
|
|
481
491
|
}
|
|
482
492
|
)
|
|
483
493
|
end
|
|
@@ -132,7 +132,8 @@ module ModerationAPI
|
|
|
132
132
|
{
|
|
133
133
|
id: String,
|
|
134
134
|
masked: bool,
|
|
135
|
-
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified
|
|
135
|
+
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified?,
|
|
136
|
+
transcript: String?
|
|
136
137
|
}
|
|
137
138
|
|
|
138
139
|
class Content < ModerationAPI::Internal::Type::BaseModel
|
|
@@ -142,16 +143,20 @@ module ModerationAPI
|
|
|
142
143
|
|
|
143
144
|
attr_accessor modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified?
|
|
144
145
|
|
|
146
|
+
attr_accessor transcript: String?
|
|
147
|
+
|
|
145
148
|
def initialize: (
|
|
146
149
|
id: String,
|
|
147
150
|
masked: bool,
|
|
148
|
-
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified
|
|
151
|
+
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified?,
|
|
152
|
+
?transcript: String?
|
|
149
153
|
) -> void
|
|
150
154
|
|
|
151
155
|
def to_hash: -> {
|
|
152
156
|
id: String,
|
|
153
157
|
masked: bool,
|
|
154
|
-
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified
|
|
158
|
+
modified: ModerationAPI::Models::ContentSubmitResponse::Content::modified?,
|
|
159
|
+
transcript: String?
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
type modified =
|
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.11.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-03-
|
|
11
|
+
date: 2026-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|