diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2cd8f9b..eb4e0db 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.9.1" + ".": "1.10.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 5ec92ed..688c1d0 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-67a3fe4439c3aa74fb2c18b207b43c790d42bab7bfd7e5e16f3e1046765ec959.yml -openapi_spec_hash: c87b33c2c72a172da02ed75d4e79eb70 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-7270e2afd5e9c57ffcb1b83d5eb8b549a33c471b72ab494f903473a23b3f7115.yml +openapi_spec_hash: cfd11087252e28bc7e7d4f4dbefc51ee config_hash: 6b825a08e19dfb747c5dc1766502b789 diff --git a/CHANGELOG.md b/CHANGELOG.md index b83516e..4f1eca8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.10.0 (2026-02-23) + +Full Changelog: [v1.9.1...v1.10.0](https://github.com/moderation-api/sdk-python/compare/v1.9.1...v1.10.0) + +### Features + +* **api:** api update ([cb8b6ab](https://github.com/moderation-api/sdk-python/commit/cb8b6ab428c44825924ae368c8cfea983357b785)) + ## 1.9.1 (2026-02-20) Full Changelog: [v1.9.0...v1.9.1](https://github.com/moderation-api/sdk-python/compare/v1.9.0...v1.9.1) diff --git a/pyproject.toml b/pyproject.toml index 9b4b17f..8aeebd5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "moderation_api" -version = "1.9.1" +version = "1.10.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 cf9e4b4..9292ece 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.9.1" # x-release-please-version +__version__ = "1.10.0" # x-release-please-version diff --git a/src/moderation_api/types/content_submit_params.py b/src/moderation_api/types/content_submit_params.py index 4695155..6cbd67c 100644 --- a/src/moderation_api/types/content_submit_params.py +++ b/src/moderation_api/types/content_submit_params.py @@ -108,10 +108,14 @@ class ContentImage(TypedDict, total=False): type: Required[Literal["image"]] data: str - """Base64-encoded image data""" + """Base64-encoded image data. + + Either url or data must be provided. Note: base64 images are not stored and will + not appear in the review queue. + """ url: str - """A public URL of the image content""" + """A public URL of the image content. Either url or data must be provided.""" class ContentVideo(TypedDict, total=False): @@ -147,10 +151,14 @@ class ContentObjectDataImage(TypedDict, total=False): type: Required[Literal["image"]] data: str - """Base64-encoded image data""" + """Base64-encoded image data. + + Either url or data must be provided. Note: base64 images are not stored and will + not appear in the review queue. + """ url: str - """A public URL of the image content""" + """A public URL of the image content. Either url or data must be provided.""" class ContentObjectDataVideo(TypedDict, total=False): diff --git a/src/moderation_api/types/content_submit_response.py b/src/moderation_api/types/content_submit_response.py index 102bc09..9f7a749 100644 --- a/src/moderation_api/types/content_submit_response.py +++ b/src/moderation_api/types/content_submit_response.py @@ -85,10 +85,14 @@ class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObj type: Literal["image"] data: Optional[str] = None - """Base64-encoded image data""" + """Base64-encoded image data. + + Either url or data must be provided. Note: base64 images are not stored and will + not appear in the review queue. + """ url: Optional[str] = None - """A public URL of the image content""" + """A public URL of the image content. Either url or data must be provided.""" class ContentModifiedModifiedNestedObjectContentContentModifiedModifiedNestedObjectContentItemVideo(BaseModel):