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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95b95520c51da5cb3f0195033966c1a7f3b855fae6bb15d602a9a903b9bfe2a0
|
|
4
|
+
data.tar.gz: 80fd1b6ed741e4a99d97c141f696b2927a534b3756ac5a8139b9e0dbcefa786e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
|
1130
|
-
#
|
|
1131
|
-
#
|
|
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
|
|
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
|
#
|
|
@@ -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
|
|
2053
|
-
#
|
|
2054
|
-
#
|
|
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
|
|
2099
|
-
#
|
|
2100
|
-
#
|
|
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
|