diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cce9d1c..c523ce1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.7.0" + ".": "1.8.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 1cde193..094f381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 3f39e41..47e3ab5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/moderation_api/_version.py b/src/moderation_api/_version.py index b4bd0be..50f43a0 100644 --- a/src/moderation_api/_version.py +++ b/src/moderation_api/_version.py @@ -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 diff --git a/src/moderation_api/types/content_submit_response.py b/src/moderation_api/types/content_submit_response.py index fede561..21ee65b 100644 --- a/src/moderation_api/types/content_submit_response.py +++ b/src/moderation_api/types/content_submit_response.py @@ -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.