moderation_api 2.7.1 → 2.8.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: b97c212694ae1d2600112e0c348cb3878dd2961f779c48c0dc0d735a0754c659
4
- data.tar.gz: 1a4ae73270e9c7ea2a8055423c318dd45645e953e8f58022aae37508d4e1bb96
3
+ metadata.gz: 4a5a1932f1d035735a1042c73cba9eb1bf58dd651a3d8618330451742d17b3f5
4
+ data.tar.gz: 46a5cc7981efd087a4f411eb670e8d183631b049c432de07098fd709aa934f20
5
5
  SHA512:
6
- metadata.gz: 75c750e5b11b51900510e75953496ece9ad1b05282c75038a3dd81bce765e71b3f4c6119bd6dae1aac51dd99cd4be2e9258155f6f6c5fee4650c782e479cc4cd
7
- data.tar.gz: 5556803bb2b4ec568c90c7ea5552c46bae3a40bf10abad5202a701c4564b778b0794127bcba90a2f70397905faa3f51c38330fdd8dad27f1a58798b57f0edad3
6
+ metadata.gz: ce10b7e9a64ca6af742dedeb4814da2a038b140760382ee0b0e50a8797695f80f733a24cd59661cd9d406fc14ec734fbd3127846207842c9fc8e10689a4403bc
7
+ data.tar.gz: 4c99e72aadc2ba7051dd8a8b442c242039a85c929801579ce9f5c20580de489bb6660bf200f305c9103de81ab17f4524c96ad7c11344d8e35c504e8b637eaa88
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.8.0 (2026-02-23)
4
+
5
+ Full Changelog: [v2.7.1...v2.8.0](https://github.com/moderation-api/sdk-ruby/compare/v2.7.1...v2.8.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([374320d](https://github.com/moderation-api/sdk-ruby/commit/374320d3fa671abf14953e89c7f022445a2cc53d))
10
+
3
11
  ## 2.7.1 (2026-02-20)
4
12
 
5
13
  Full Changelog: [v2.7.0...v2.7.1](https://github.com/moderation-api/sdk-ruby/compare/v2.7.0...v2.7.1)
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.7.1"
18
+ gem "moderation_api", "~> 2.8.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -142,23 +142,27 @@ module ModerationAPI
142
142
  required :type, const: :image
143
143
 
144
144
  # @!attribute data
145
- # Base64-encoded image data
145
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
146
+ # images are not stored and will not appear in the review queue.
146
147
  #
147
148
  # @return [String, nil]
148
149
  optional :data, String
149
150
 
150
151
  # @!attribute url
151
- # A public URL of the image content
152
+ # A public URL of the image content. Either url or data must be provided.
152
153
  #
153
154
  # @return [String, nil]
154
155
  optional :url, String
155
156
 
156
157
  # @!method initialize(data: nil, url: nil, type: :image)
158
+ # Some parameter documentations has been truncated, see
159
+ # {ModerationAPI::Models::ContentSubmitParams::Content::Image} for more details.
160
+ #
157
161
  # Image
158
162
  #
159
- # @param data [String] Base64-encoded image data
163
+ # @param data [String] Base64-encoded image data. Either url or data must be provided. Note: base64 ima
160
164
  #
161
- # @param url [String] A public URL of the image content
165
+ # @param url [String] A public URL of the image content. Either url or data must be provided.
162
166
  #
163
167
  # @param type [Symbol, :image]
164
168
  end
@@ -266,23 +270,28 @@ module ModerationAPI
266
270
  required :type, const: :image
267
271
 
268
272
  # @!attribute data
269
- # Base64-encoded image data
273
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
274
+ # images are not stored and will not appear in the review queue.
270
275
  #
271
276
  # @return [String, nil]
272
277
  optional :data, String
273
278
 
274
279
  # @!attribute url
275
- # A public URL of the image content
280
+ # A public URL of the image content. Either url or data must be provided.
276
281
  #
277
282
  # @return [String, nil]
278
283
  optional :url, String
279
284
 
280
285
  # @!method initialize(data: nil, url: nil, type: :image)
286
+ # Some parameter documentations has been truncated, see
287
+ # {ModerationAPI::Models::ContentSubmitParams::Content::Object::Data::Image} for
288
+ # more details.
289
+ #
281
290
  # Image
282
291
  #
283
- # @param data [String] Base64-encoded image data
292
+ # @param data [String] Base64-encoded image data. Either url or data must be provided. Note: base64 ima
284
293
  #
285
- # @param url [String] A public URL of the image content
294
+ # @param url [String] A public URL of the image content. Either url or data must be provided.
286
295
  #
287
296
  # @param type [Symbol, :image]
288
297
  end
@@ -268,23 +268,28 @@ module ModerationAPI
268
268
  required :type, const: :image
269
269
 
270
270
  # @!attribute data
271
- # Base64-encoded image data
271
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
272
+ # images are not stored and will not appear in the review queue.
272
273
  #
273
274
  # @return [String, nil]
274
275
  optional :data, String
275
276
 
276
277
  # @!attribute url
277
- # A public URL of the image content
278
+ # A public URL of the image content. Either url or data must be provided.
278
279
  #
279
280
  # @return [String, nil]
280
281
  optional :url, String
281
282
 
282
283
  # @!method initialize(data: nil, url: nil, type: :image)
284
+ # Some parameter documentations has been truncated, see
285
+ # {ModerationAPI::Models::ContentSubmitResponse::Content::Modified::ModifiedNestedObjectContent::Image}
286
+ # for more details.
287
+ #
283
288
  # Image
284
289
  #
285
- # @param data [String] Base64-encoded image data
290
+ # @param data [String] Base64-encoded image data. Either url or data must be provided. Note: base64 ima
286
291
  #
287
- # @param url [String] A public URL of the image content
292
+ # @param url [String] A public URL of the image content. Either url or data must be provided.
288
293
  #
289
294
  # @param type [Symbol, :image]
290
295
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerationAPI
4
- VERSION = "2.7.1"
4
+ VERSION = "2.8.0"
5
5
  end
@@ -363,14 +363,15 @@ module ModerationAPI
363
363
  sig { returns(Symbol) }
364
364
  attr_accessor :type
365
365
 
366
- # Base64-encoded image data
366
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
367
+ # images are not stored and will not appear in the review queue.
367
368
  sig { returns(T.nilable(String)) }
368
369
  attr_reader :data
369
370
 
370
371
  sig { params(data: String).void }
371
372
  attr_writer :data
372
373
 
373
- # A public URL of the image content
374
+ # A public URL of the image content. Either url or data must be provided.
374
375
  sig { returns(T.nilable(String)) }
375
376
  attr_reader :url
376
377
 
@@ -384,9 +385,10 @@ module ModerationAPI
384
385
  )
385
386
  end
386
387
  def self.new(
387
- # Base64-encoded image data
388
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
389
+ # images are not stored and will not appear in the review queue.
388
390
  data: nil,
389
- # A public URL of the image content
391
+ # A public URL of the image content. Either url or data must be provided.
390
392
  url: nil,
391
393
  type: :image
392
394
  )
@@ -586,14 +588,15 @@ module ModerationAPI
586
588
  sig { returns(Symbol) }
587
589
  attr_accessor :type
588
590
 
589
- # Base64-encoded image data
591
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
592
+ # images are not stored and will not appear in the review queue.
590
593
  sig { returns(T.nilable(String)) }
591
594
  attr_reader :data
592
595
 
593
596
  sig { params(data: String).void }
594
597
  attr_writer :data
595
598
 
596
- # A public URL of the image content
599
+ # A public URL of the image content. Either url or data must be provided.
597
600
  sig { returns(T.nilable(String)) }
598
601
  attr_reader :url
599
602
 
@@ -607,9 +610,10 @@ module ModerationAPI
607
610
  )
608
611
  end
609
612
  def self.new(
610
- # Base64-encoded image data
613
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
614
+ # images are not stored and will not appear in the review queue.
611
615
  data: nil,
612
- # A public URL of the image content
616
+ # A public URL of the image content. Either url or data must be provided.
613
617
  url: nil,
614
618
  type: :image
615
619
  )
@@ -558,14 +558,15 @@ module ModerationAPI
558
558
  sig { returns(Symbol) }
559
559
  attr_accessor :type
560
560
 
561
- # Base64-encoded image data
561
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
562
+ # images are not stored and will not appear in the review queue.
562
563
  sig { returns(T.nilable(String)) }
563
564
  attr_reader :data
564
565
 
565
566
  sig { params(data: String).void }
566
567
  attr_writer :data
567
568
 
568
- # A public URL of the image content
569
+ # A public URL of the image content. Either url or data must be provided.
569
570
  sig { returns(T.nilable(String)) }
570
571
  attr_reader :url
571
572
 
@@ -579,9 +580,10 @@ module ModerationAPI
579
580
  )
580
581
  end
581
582
  def self.new(
582
- # Base64-encoded image data
583
+ # Base64-encoded image data. Either url or data must be provided. Note: base64
584
+ # images are not stored and will not appear in the review queue.
583
585
  data: nil,
584
- # A public URL of the image content
586
+ # A public URL of the image content. Either url or data must be provided.
585
587
  url: nil,
586
588
  type: :image
587
589
  )
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.7.1
4
+ version: 2.8.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-02-20 00:00:00.000000000 Z
11
+ date: 2026-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi