moderation_api 2.26.0 → 2.27.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: 7bb60d97ebda8246fd8379d0f3f65e5616e39c17b7bdee3a2e363a4f740c9e9f
4
- data.tar.gz: 300c111be043041069d2048c6a5f6f08119df3ad8956db3a38503a12e19c5921
3
+ metadata.gz: 95b95520c51da5cb3f0195033966c1a7f3b855fae6bb15d602a9a903b9bfe2a0
4
+ data.tar.gz: 80fd1b6ed741e4a99d97c141f696b2927a534b3756ac5a8139b9e0dbcefa786e
5
5
  SHA512:
6
- metadata.gz: 4edc722604ec4dfc2f045197fa38d38174955cdd8c3bad8479480c3336e2627bec90b92de9a53c3398e1de1bf135313e0b3654d2c0e9bcf7618489d7d61c03e5
7
- data.tar.gz: 2ab5f840dc47a68fc4323bde58513eee4992677552e335813d8eebab17ed3d88cb96fe5fd1ba5addccc90a0eec5d9c23086cc8200aaa2f7efd8c22d83b0d4fba
6
+ metadata.gz: 3ac8756e94c8bfaf17969910d5a7266336f3c140dc87003b309e3033827ad65787a264e540efce5c57fffd3fe785a60e4b0963593ebae44254a33ca615219140
7
+ data.tar.gz: 6a46cfb0c5d6f588f6f10d625f27c9110bd059a5b8013031c6e3e4f866fd0466848727c79cd9db75fceb7d41f7218d0c41add193b2ec268347166b36aa683e15
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.27.0 (2026-07-20)
4
+
5
+ Full Changelog: [v2.26.0...v2.27.0](https://github.com/moderation-api/sdk-ruby/compare/v2.26.0...v2.27.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f890a47](https://github.com/moderation-api/sdk-ruby/commit/f890a47040aecbada8bcfc78426c5dffc6b58c5a))
10
+
3
11
  ## 2.26.0 (2026-07-20)
4
12
 
5
13
  Full Changelog: [v2.25.0...v2.26.0](https://github.com/moderation-api/sdk-ruby/compare/v2.25.0...v2.26.0)
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.26.0"
18
+ gem "moderation_api", "~> 2.27.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -1126,9 +1126,10 @@ module ModerationAPI
1126
1126
  required :flag, ModerationAPI::Internal::Type::Boolean
1127
1127
 
1128
1128
  # @!attribute signals
1129
- # Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag:
1130
- # false } is still detected and reported as a label, but does not by itself flag
1131
- # the policy.
1129
+ # Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage
1130
+ # defaults to off because decode damage (U+FFFD) marks a broken pipeline, not an
1131
+ # attack. A disabled signal is still detected and reported as a label, but does
1132
+ # not by itself flag the policy.
1132
1133
  #
1133
1134
  # @return [Hash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal}, nil]
1134
1135
  optional :signals,
@@ -1146,7 +1147,7 @@ module ModerationAPI
1146
1147
  #
1147
1148
  # @param flag [Boolean]
1148
1149
  #
1149
- # @param signals [Hash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal}] Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag: fa
1150
+ # @param signals [Hash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal}] Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage d
1150
1151
  #
1151
1152
  # @param threshold [Float]
1152
1153
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerationAPI
4
- VERSION = "2.26.0"
4
+ VERSION = "2.27.0"
5
5
  end
@@ -2049,9 +2049,10 @@ module ModerationAPI
2049
2049
  sig { returns(T::Boolean) }
2050
2050
  attr_accessor :flag
2051
2051
 
2052
- # Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag:
2053
- # false } is still detected and reported as a label, but does not by itself flag
2054
- # the policy.
2052
+ # Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage
2053
+ # defaults to off because decode damage (U+FFFD) marks a broken pipeline, not an
2054
+ # attack. A disabled signal is still detected and reported as a label, but does
2055
+ # not by itself flag the policy.
2055
2056
  sig do
2056
2057
  returns(
2057
2058
  T.nilable(
@@ -2095,9 +2096,10 @@ module ModerationAPI
2095
2096
  end
2096
2097
  def self.new(
2097
2098
  flag:,
2098
- # Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag:
2099
- # false } is still detected and reported as a label, but does not by itself flag
2100
- # the policy.
2099
+ # Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage
2100
+ # defaults to off because decode damage (U+FFFD) marks a broken pipeline, not an
2101
+ # attack. A disabled signal is still detected and reported as a label, but does
2102
+ # not by itself flag the policy.
2101
2103
  signals: nil,
2102
2104
  threshold: nil,
2103
2105
  id: :unicode_spoofing
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moderation_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.26.0
4
+ version: 2.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moderation API