From 374320d3fa671abf14953e89c7f022445a2cc53d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 12:27:22 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +-- .../models/content_submit_params.rb | 25 +++++++++++++------ .../models/content_submit_response.rb | 13 +++++++--- .../models/content_submit_params.rbi | 20 +++++++++------ .../models/content_submit_response.rbi | 10 +++++--- 5 files changed, 46 insertions(+), 26 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ec92ed..688c1d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/lib/moderation_api/models/content_submit_params.rb b/lib/moderation_api/models/content_submit_params.rb index e43fe01..b069cf3 100644 --- a/lib/moderation_api/models/content_submit_params.rb +++ b/lib/moderation_api/models/content_submit_params.rb @@ -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 @@ -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 diff --git a/lib/moderation_api/models/content_submit_response.rb b/lib/moderation_api/models/content_submit_response.rb index 6462a0f..fca5d14 100644 --- a/lib/moderation_api/models/content_submit_response.rb +++ b/lib/moderation_api/models/content_submit_response.rb @@ -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 diff --git a/rbi/moderation_api/models/content_submit_params.rbi b/rbi/moderation_api/models/content_submit_params.rbi index 6c3fe96..7c49601 100644 --- a/rbi/moderation_api/models/content_submit_params.rbi +++ b/rbi/moderation_api/models/content_submit_params.rbi @@ -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 @@ -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 ) @@ -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 @@ -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 ) diff --git a/rbi/moderation_api/models/content_submit_response.rbi b/rbi/moderation_api/models/content_submit_response.rbi index 056e89a..203cff0 100644 --- a/rbi/moderation_api/models/content_submit_response.rbi +++ b/rbi/moderation_api/models/content_submit_response.rbi @@ -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 @@ -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 ) From a72439c35c30510acfbd9ee2f897d410fe137ffe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 12:27:38 +0000 Subject: [PATCH 2/2] release: 2.8.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/moderation_api/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0a163d7..64f9ff4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.7.1" + ".": "2.8.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 54f3a01..17aa7dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 423b69f..a141186 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - moderation_api (2.7.1) + moderation_api (2.8.0) cgi connection_pool diff --git a/README.md b/README.md index 9363db3..571259d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "moderation_api", "~> 2.7.1" +gem "moderation_api", "~> 2.8.0" ``` diff --git a/lib/moderation_api/version.rb b/lib/moderation_api/version.rb index e2926bc..e7bf221 100644 --- a/lib/moderation_api/version.rb +++ b/lib/moderation_api/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ModerationAPI - VERSION = "2.7.1" + VERSION = "2.8.0" end