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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7404b317d392e4158ee38e5f377d3c25cab373787060002aa376c6f6b7889547
4
- data.tar.gz: 0e5efa281358b160b0c77eb1fca0dcec5b5d41f7005eb72bacfe5536c6b158df
3
+ metadata.gz: 7bb60d97ebda8246fd8379d0f3f65e5616e39c17b7bdee3a2e363a4f740c9e9f
4
+ data.tar.gz: 300c111be043041069d2048c6a5f6f08119df3ad8956db3a38503a12e19c5921
5
5
  SHA512:
6
- metadata.gz: 51beac10e325f94d02256cd7894620930b33181e1bd0f03d64c2fbe688ccee05c30e7d97612932387c631a9ff9d0ff7f0c0a73cc021031803c70f3e48de49b29
7
- data.tar.gz: 177add4039c9dc718efd03e289c477d8e29e0f7e5701d4d81e6349fdf59d99f24a6519354bdfa920f27b88e5b4a10ee13209251fb5b971a7b054dcf0553abdec
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
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "moderation_api", "~> 2.25.0"
18
+ gem "moderation_api", "~> 2.26.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -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
- # @!attribute unicode_cleaned
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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerationAPI
4
- VERSION = "2.25.0"
4
+ VERSION = "2.26.0"
5
5
  end
@@ -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.nilable(T::Boolean)) }
459
- attr_reader :unicode_cleaned
453
+ sig { returns(T::Boolean) }
454
+ attr_accessor :unicode_cleaned
460
455
 
461
- sig { params(unicode_cleaned: T::Boolean).void }
462
- attr_writer :unicode_cleaned
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
- transcript: T.nilable(String),
474
- unicode_cleaned: T::Boolean
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: nil
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
- transcript: T.nilable(String),
505
- unicode_cleaned: T::Boolean
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
- transcript: String?,
137
- unicode_cleaned: bool
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 transcript: String?
148
-
149
- attr_reader unicode_cleaned: bool?
147
+ attr_accessor unicode_cleaned: bool
150
148
 
151
- def unicode_cleaned=: (bool) -> bool
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
- ?transcript: String?,
158
- ?unicode_cleaned: bool
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
- transcript: String?,
166
- unicode_cleaned: bool
163
+ unicode_cleaned: bool,
164
+ transcript: String?
167
165
  }
168
166
 
169
167
  type modified =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moderation_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.25.0
4
+ version: 2.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moderation API