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.2.1"
".": "2.3.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-00324cd69f885e08708180c380317fd48101cb81c36f0bfaf7f8248d951d92f7.yml
openapi_spec_hash: 47c828ded2fac0ded969760340b6b6fa
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-07681c3b51c92b9d92d71f11e9245c37a37ac1ea6df730cd730e85968064d814.yml
openapi_spec_hash: 48bffabe129598fc41a232cf5469bd4b
config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 2.3.0 (2026-01-02)

Full Changelog: [v2.2.1...v2.3.0](https://github.com/moderation-api/sdk-ruby/compare/v2.2.1...v2.3.0)

### Features

* **api:** api update ([b7e4375](https://github.com/moderation-api/sdk-ruby/commit/b7e4375b627d949a7e9ac5794703793c9da54415))

## 2.2.1 (2025-12-19)

Full Changelog: [v2.2.0...v2.2.1](https://github.com/moderation-api/sdk-ruby/compare/v2.2.0...v2.2.1)
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.2.1)
moderation_api (2.3.0)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Moderation API
Copyright 2026 Moderation API

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
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.2.1"
gem "moderation_api", "~> 2.3.0"
```

<!-- x-release-please-end -->
Expand Down
92 changes: 22 additions & 70 deletions lib/moderation_api/models/content_submit_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -834,55 +834,31 @@ class PiiMasking < ModerationAPI::Internal::Type::BaseModel
# @param id [Symbol, :pii]

class Entity < ModerationAPI::Internal::Type::BaseModel
# @!attribute id
#
# @return [Symbol, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking::Entity::ID]
required :id, enum: -> { ModerationAPI::ContentSubmitParams::Policy::PiiMasking::Entity::ID }

# @!attribute enable
#
# @return [Boolean]
required :enable, ModerationAPI::Internal::Type::Boolean
# @return [Boolean, nil]
optional :enable, ModerationAPI::Internal::Type::Boolean

# @!attribute flag
#
# @return [Boolean]
required :flag, ModerationAPI::Internal::Type::Boolean

# @!attribute should_mask
#
# @return [Boolean]
required :should_mask, ModerationAPI::Internal::Type::Boolean, api_name: :shouldMask
# @return [Boolean, nil]
optional :flag, ModerationAPI::Internal::Type::Boolean

# @!attribute mask
#
# @return [String, nil]
optional :mask, String

# @!method initialize(id:, enable:, flag:, should_mask:, mask: nil)
# @param id [Symbol, ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking::Entity::ID]
# @!attribute should_mask
#
# @return [Boolean, nil]
optional :should_mask, ModerationAPI::Internal::Type::Boolean, api_name: :shouldMask

# @!method initialize(enable: nil, flag: nil, mask: nil, should_mask: nil)
# @param enable [Boolean]
# @param flag [Boolean]
# @param should_mask [Boolean]
# @param mask [String]

# @see ModerationAPI::Models::ContentSubmitParams::Policy::PiiMasking::Entity#id
module ID
extend ModerationAPI::Internal::Type::Enum

EMAIL = :email
PHONE = :phone
URL = :url
ADDRESS = :address
NAME = :name
USERNAME = :username
IP_ADDRESS = :ip_address
CREDIT_CARD = :credit_card
SENSITIVE_OTHER = :sensitive_other

# @!method self.values
# @return [Array<Symbol>]
end
# @param should_mask [Boolean]
end
end

Expand All @@ -903,55 +879,31 @@ class URLMasking < ModerationAPI::Internal::Type::BaseModel
# @param id [Symbol, :url]

class Entity < ModerationAPI::Internal::Type::BaseModel
# @!attribute id
#
# @return [Symbol, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking::Entity::ID]
required :id, enum: -> { ModerationAPI::ContentSubmitParams::Policy::URLMasking::Entity::ID }

# @!attribute enable
#
# @return [Boolean]
required :enable, ModerationAPI::Internal::Type::Boolean
# @return [Boolean, nil]
optional :enable, ModerationAPI::Internal::Type::Boolean

# @!attribute flag
#
# @return [Boolean]
required :flag, ModerationAPI::Internal::Type::Boolean

# @!attribute should_mask
#
# @return [Boolean]
required :should_mask, ModerationAPI::Internal::Type::Boolean, api_name: :shouldMask
# @return [Boolean, nil]
optional :flag, ModerationAPI::Internal::Type::Boolean

# @!attribute mask
#
# @return [String, nil]
optional :mask, String

# @!method initialize(id:, enable:, flag:, should_mask:, mask: nil)
# @param id [Symbol, ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking::Entity::ID]
# @!attribute should_mask
#
# @return [Boolean, nil]
optional :should_mask, ModerationAPI::Internal::Type::Boolean, api_name: :shouldMask

# @!method initialize(enable: nil, flag: nil, mask: nil, should_mask: nil)
# @param enable [Boolean]
# @param flag [Boolean]
# @param should_mask [Boolean]
# @param mask [String]

# @see ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking::Entity#id
module ID
extend ModerationAPI::Internal::Type::Enum

EMAIL = :email
PHONE = :phone
URL = :url
ADDRESS = :address
NAME = :name
USERNAME = :username
IP_ADDRESS = :ip_address
CREDIT_CARD = :credit_card
SENSITIVE_OTHER = :sensitive_other

# @!method self.values
# @return [Array<Symbol>]
end
# @param should_mask [Boolean]
end
end

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.2.1"
VERSION = "2.3.0"
end
Loading