diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1441304..4bdf489 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.26.0" + ".": "2.27.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index fd98a14..c1aa9be 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/moderation-api-d45fc18a0aeccdda77cc82d443afc4e011858a155d39f8222e019127cc103b25.yml -openapi_spec_hash: 5b8bb678ea468c4801cf9ccc96b01637 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-4f75d58eb24cf0975c540c0317b7e163a4b25fc41fe5da1751977ca703b812bf.yml +openapi_spec_hash: 87ae9898b5ba445f9785c1a10790cf7b config_hash: 9d144cc6c49d3fd53e5b4472c1e22165 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bce3dd..57e3649 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.27.0 (2026-07-20) + +Full Changelog: [v2.26.0...v2.27.0](https://github.com/moderation-api/sdk-ruby/compare/v2.26.0...v2.27.0) + +### Features + +* **api:** api update ([f890a47](https://github.com/moderation-api/sdk-ruby/commit/f890a47040aecbada8bcfc78426c5dffc6b58c5a)) + ## 2.26.0 (2026-07-20) Full Changelog: [v2.25.0...v2.26.0](https://github.com/moderation-api/sdk-ruby/compare/v2.25.0...v2.26.0) diff --git a/Gemfile.lock b/Gemfile.lock index 7371fbb..b976049 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - moderation_api (2.26.0) + moderation_api (2.27.0) cgi connection_pool diff --git a/README.md b/README.md index b4ab47a..d42e97e 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.26.0" +gem "moderation_api", "~> 2.27.0" ``` diff --git a/lib/moderation_api/models/content_submit_params.rb b/lib/moderation_api/models/content_submit_params.rb index 3c8a5d9..c58caf0 100644 --- a/lib/moderation_api/models/content_submit_params.rb +++ b/lib/moderation_api/models/content_submit_params.rb @@ -1126,9 +1126,10 @@ class UnicodeSpoofing < ModerationAPI::Internal::Type::BaseModel required :flag, ModerationAPI::Internal::Type::Boolean # @!attribute signals - # Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag: - # false } is still detected and reported as a label, but does not by itself flag - # the policy. + # Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage + # defaults to off because decode damage (U+FFFD) marks a broken pipeline, not an + # attack. A disabled signal is still detected and reported as a label, but does + # not by itself flag the policy. # # @return [Hash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal}, nil] optional :signals, @@ -1146,7 +1147,7 @@ class UnicodeSpoofing < ModerationAPI::Internal::Type::BaseModel # # @param flag [Boolean] # - # @param signals [Hash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal}] Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag: fa + # @param signals [Hash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal}] Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage d # # @param threshold [Float] # diff --git a/lib/moderation_api/version.rb b/lib/moderation_api/version.rb index d468f08..5600cc6 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.26.0" + VERSION = "2.27.0" end diff --git a/rbi/moderation_api/models/content_submit_params.rbi b/rbi/moderation_api/models/content_submit_params.rbi index a662d4c..35ce856 100644 --- a/rbi/moderation_api/models/content_submit_params.rbi +++ b/rbi/moderation_api/models/content_submit_params.rbi @@ -2049,9 +2049,10 @@ module ModerationAPI sig { returns(T::Boolean) } attr_accessor :flag - # Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag: - # false } is still detected and reported as a label, but does not by itself flag - # the policy. + # Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage + # defaults to off because decode damage (U+FFFD) marks a broken pipeline, not an + # attack. A disabled signal is still detected and reported as a label, but does + # not by itself flag the policy. sig do returns( T.nilable( @@ -2095,9 +2096,10 @@ module ModerationAPI end def self.new( flag:, - # Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag: - # false } is still detected and reported as a label, but does not by itself flag - # the policy. + # Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage + # defaults to off because decode damage (U+FFFD) marks a broken pipeline, not an + # attack. A disabled signal is still detected and reported as a label, but does + # not by itself flag the policy. signals: nil, threshold: nil, id: :unicode_spoofing