diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fe26bee..511dd51 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.5.1" + ".": "2.6.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index b7f9ccf..00bcaad 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-d63cb4b89d39d82fa1d4600501ad5cedfddfbcf7a8806cac61634873b5211a9f.yml -openapi_spec_hash: 5a8d51e52ea8e52681c77eed584fb21c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-422330754281be38d7919f08a9d1e7862cbdc6921602473cb07a8f2022635832.yml +openapi_spec_hash: 7e6fa61ced995dc03e0ccd3e11fb121c config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb diff --git a/CHANGELOG.md b/CHANGELOG.md index 44739ee..8c1e698 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 2.6.0 (2026-02-06) + +Full Changelog: [v2.5.1...v2.6.0](https://github.com/moderation-api/sdk-ruby/compare/v2.5.1...v2.6.0) + +### Features + +* **api:** api update ([3f29a05](https://github.com/moderation-api/sdk-ruby/commit/3f29a05c2dcf23a3640f6ec76ca450cd44fcd66c)) + + +### Chores + +* **docs:** remove www prefix ([f5b51e1](https://github.com/moderation-api/sdk-ruby/commit/f5b51e17d19b441376cedfeca7fbf7858bbf8fe9)) + ## 2.5.1 (2026-02-03) Full Changelog: [v2.5.0...v2.5.1](https://github.com/moderation-api/sdk-ruby/compare/v2.5.0...v2.5.1) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 42c2ffc..fe915e5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,13 +43,13 @@ If you’d like to use the repository from source, you can either install from g To install via git in your `Gemfile`: ```ruby -gem "moderation_api", git: "https://www.github.com/moderation-api/sdk-ruby" +gem "moderation_api", git: "https://github.com/moderation-api/sdk-ruby" ``` Alternatively, reference local copy of the repo: ```bash -$ git clone -- 'https://www.github.com/moderation-api/sdk-ruby' '' +$ git clone -- 'https://github.com/moderation-api/sdk-ruby' '' ``` ```ruby diff --git a/Gemfile.lock b/Gemfile.lock index cbe877c..f9938b8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - moderation_api (2.5.1) + moderation_api (2.6.0) cgi connection_pool diff --git a/README.md b/README.md index 20dc2ef..c1176d3 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.5.1" +gem "moderation_api", "~> 2.6.0" ``` diff --git a/lib/moderation_api/models/content_submit_response.rb b/lib/moderation_api/models/content_submit_response.rb index 2c2c912..4363b31 100644 --- a/lib/moderation_api/models/content_submit_response.rb +++ b/lib/moderation_api/models/content_submit_response.rb @@ -721,6 +721,8 @@ module ReasonCode SEVERITY_REVIEW = :severity_review AUTHOR_BLOCK = :author_block DRY_RUN = :dry_run + TRUSTED_ALLOW = :trusted_allow + UNTRUSTED_SEVERITY = :untrusted_severity # @!method self.values # @return [Array] diff --git a/lib/moderation_api/version.rb b/lib/moderation_api/version.rb index ef6ebaa..f613738 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.5.1" + VERSION = "2.6.0" end diff --git a/rbi/moderation_api/models/content_submit_response.rbi b/rbi/moderation_api/models/content_submit_response.rbi index b24c649..f975a29 100644 --- a/rbi/moderation_api/models/content_submit_response.rbi +++ b/rbi/moderation_api/models/content_submit_response.rbi @@ -1424,6 +1424,16 @@ module ModerationAPI :dry_run, ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::TaggedSymbol ) + TRUSTED_ALLOW = + T.let( + :trusted_allow, + ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::TaggedSymbol + ) + UNTRUSTED_SEVERITY = + T.let( + :untrusted_severity, + ModerationAPI::Models::ContentSubmitResponse::Recommendation::ReasonCode::TaggedSymbol + ) sig do override.returns( diff --git a/sig/moderation_api/models/content_submit_response.rbs b/sig/moderation_api/models/content_submit_response.rbs index 5d58293..89a5767 100644 --- a/sig/moderation_api/models/content_submit_response.rbs +++ b/sig/moderation_api/models/content_submit_response.rbs @@ -572,7 +572,12 @@ module ModerationAPI end type reason_code = - :severity_reject | :severity_review | :author_block | :dry_run + :severity_reject + | :severity_review + | :author_block + | :dry_run + | :trusted_allow + | :untrusted_severity module ReasonCode extend ModerationAPI::Internal::Type::Enum @@ -581,6 +586,8 @@ module ModerationAPI SEVERITY_REVIEW: :severity_review AUTHOR_BLOCK: :author_block DRY_RUN: :dry_run + TRUSTED_ALLOW: :trusted_allow + UNTRUSTED_SEVERITY: :untrusted_severity def self?.values: -> ::Array[ModerationAPI::Models::ContentSubmitResponse::Recommendation::reason_code] end