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.26.0"
".": "2.27.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/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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.26.0)
moderation_api (2.27.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.26.0"
gem "moderation_api", "~> 2.27.0"
```

<!-- x-release-please-end -->
Expand Down
9 changes: 5 additions & 4 deletions lib/moderation_api/models/content_submit_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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]
#
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.26.0"
VERSION = "2.27.0"
end
14 changes: 8 additions & 6 deletions rbi/moderation_api/models/content_submit_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down