Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.7.1"
".": "2.8.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 27
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-67a3fe4439c3aa74fb2c18b207b43c790d42bab7bfd7e5e16f3e1046765ec959.yml
openapi_spec_hash: c87b33c2c72a172da02ed75d4e79eb70
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-7270e2afd5e9c57ffcb1b83d5eb8b549a33c471b72ab494f903473a23b3f7115.yml
openapi_spec_hash: cfd11087252e28bc7e7d4f4dbefc51ee
config_hash: 6b825a08e19dfb747c5dc1766502b789
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.8.0 (2026-02-23)

Full Changelog: [v2.7.1...v2.8.0](https://github.com/moderation-api/sdk-ruby/compare/v2.7.1...v2.8.0)

### Features

* **api:** api update ([374320d](https://github.com/moderation-api/sdk-ruby/commit/374320d3fa671abf14953e89c7f022445a2cc53d))

## 2.7.1 (2026-02-20)

Full Changelog: [v2.7.0...v2.7.1](https://github.com/moderation-api/sdk-ruby/compare/v2.7.0...v2.7.1)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
moderation_api (2.7.1)
moderation_api (2.8.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "moderation_api", "~> 2.7.1"
gem "moderation_api", "~> 2.8.0"
```

<!-- x-release-please-end -->
Expand Down
25 changes: 17 additions & 8 deletions lib/moderation_api/models/content_submit_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,27 @@ class Image < ModerationAPI::Internal::Type::BaseModel
required :type, const: :image

# @!attribute data
# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
#
# @return [String, nil]
optional :data, String

# @!attribute url
# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
#
# @return [String, nil]
optional :url, String

# @!method initialize(data: nil, url: nil, type: :image)
# Some parameter documentations has been truncated, see
# {ModerationAPI::Models::ContentSubmitParams::Content::Image} for more details.
#
# Image
#
# @param data [String] Base64-encoded image data
# @param data [String] Base64-encoded image data. Either url or data must be provided. Note: base64 ima
#
# @param url [String] A public URL of the image content
# @param url [String] A public URL of the image content. Either url or data must be provided.
#
# @param type [Symbol, :image]
end
Expand Down Expand Up @@ -266,23 +270,28 @@ class Image < ModerationAPI::Internal::Type::BaseModel
required :type, const: :image

# @!attribute data
# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
#
# @return [String, nil]
optional :data, String

# @!attribute url
# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
#
# @return [String, nil]
optional :url, String

# @!method initialize(data: nil, url: nil, type: :image)
# Some parameter documentations has been truncated, see
# {ModerationAPI::Models::ContentSubmitParams::Content::Object::Data::Image} for
# more details.
#
# Image
#
# @param data [String] Base64-encoded image data
# @param data [String] Base64-encoded image data. Either url or data must be provided. Note: base64 ima
#
# @param url [String] A public URL of the image content
# @param url [String] A public URL of the image content. Either url or data must be provided.
#
# @param type [Symbol, :image]
end
Expand Down
13 changes: 9 additions & 4 deletions lib/moderation_api/models/content_submit_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,23 +268,28 @@ class Image < ModerationAPI::Internal::Type::BaseModel
required :type, const: :image

# @!attribute data
# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
#
# @return [String, nil]
optional :data, String

# @!attribute url
# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
#
# @return [String, nil]
optional :url, String

# @!method initialize(data: nil, url: nil, type: :image)
# Some parameter documentations has been truncated, see
# {ModerationAPI::Models::ContentSubmitResponse::Content::Modified::ModifiedNestedObjectContent::Image}
# for more details.
#
# Image
#
# @param data [String] Base64-encoded image data
# @param data [String] Base64-encoded image data. Either url or data must be provided. Note: base64 ima
#
# @param url [String] A public URL of the image content
# @param url [String] A public URL of the image content. Either url or data must be provided.
#
# @param type [Symbol, :image]
end
Expand Down
2 changes: 1 addition & 1 deletion lib/moderation_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ModerationAPI
VERSION = "2.7.1"
VERSION = "2.8.0"
end
20 changes: 12 additions & 8 deletions rbi/moderation_api/models/content_submit_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,15 @@ module ModerationAPI
sig { returns(Symbol) }
attr_accessor :type

# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
sig { returns(T.nilable(String)) }
attr_reader :data

sig { params(data: String).void }
attr_writer :data

# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
sig { returns(T.nilable(String)) }
attr_reader :url

Expand All @@ -384,9 +385,10 @@ module ModerationAPI
)
end
def self.new(
# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
data: nil,
# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
url: nil,
type: :image
)
Expand Down Expand Up @@ -586,14 +588,15 @@ module ModerationAPI
sig { returns(Symbol) }
attr_accessor :type

# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
sig { returns(T.nilable(String)) }
attr_reader :data

sig { params(data: String).void }
attr_writer :data

# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
sig { returns(T.nilable(String)) }
attr_reader :url

Expand All @@ -607,9 +610,10 @@ module ModerationAPI
)
end
def self.new(
# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
data: nil,
# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
url: nil,
type: :image
)
Expand Down
10 changes: 6 additions & 4 deletions rbi/moderation_api/models/content_submit_response.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -558,14 +558,15 @@ module ModerationAPI
sig { returns(Symbol) }
attr_accessor :type

# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
sig { returns(T.nilable(String)) }
attr_reader :data

sig { params(data: String).void }
attr_writer :data

# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
sig { returns(T.nilable(String)) }
attr_reader :url

Expand All @@ -579,9 +580,10 @@ module ModerationAPI
)
end
def self.new(
# Base64-encoded image data
# Base64-encoded image data. Either url or data must be provided. Note: base64
# images are not stored and will not appear in the review queue.
data: nil,
# A public URL of the image content
# A public URL of the image content. Either url or data must be provided.
url: nil,
type: :image
)
Expand Down