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 @@
{
".": "1.7.0"
".": "1.8.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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.8.0 (2026-02-06)

Full Changelog: [v1.7.0...v1.8.0](https://github.com/moderation-api/sdk-python/compare/v1.7.0...v1.8.0)

### Features

* **api:** api update ([75cdb26](https://github.com/moderation-api/sdk-python/commit/75cdb2662e2bd833ef4edad65da9d4f06c8e2473))

## 1.7.0 (2026-01-30)

Full Changelog: [v1.6.0...v1.7.0](https://github.com/moderation-api/sdk-python/compare/v1.6.0...v1.7.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "moderation_api"
version = "1.7.0"
version = "1.8.0"
description = "The official Python library for the moderation-api API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/moderation_api/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "moderation_api"
__version__ = "1.7.0" # x-release-please-version
__version__ = "1.8.0" # x-release-please-version
4 changes: 3 additions & 1 deletion src/moderation_api/types/content_submit_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ class Recommendation(BaseModel):
action: Literal["review", "allow", "reject"]
"""The action to take based on the recommendation"""

reason_codes: List[Literal["severity_reject", "severity_review", "author_block", "dry_run"]]
reason_codes: List[
Literal["severity_reject", "severity_review", "author_block", "dry_run", "trusted_allow", "untrusted_severity"]
]
"""The reason code for the recommendation.

Can be used to display a reason to the user.
Expand Down