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.5.1"
".": "2.6.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%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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' '<path-to-repo>'
$ git clone -- 'https://github.com/moderation-api/sdk-ruby' '<path-to-repo>'
```

```ruby
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.5.1)
moderation_api (2.6.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.5.1"
gem "moderation_api", "~> 2.6.0"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 2 additions & 0 deletions lib/moderation_api/models/content_submit_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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<Symbol>]
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.5.1"
VERSION = "2.6.0"
end
10 changes: 10 additions & 0 deletions rbi/moderation_api/models/content_submit_response.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
9 changes: 8 additions & 1 deletion sig/moderation_api/models/content_submit_response.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down