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.9.1"
".": "1.10.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-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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.9.1"
version = "1.10.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.9.1" # x-release-please-version
__version__ = "1.10.0" # x-release-please-version
16 changes: 12 additions & 4 deletions src/moderation_api/types/content_submit_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down
8 changes: 6 additions & 2 deletions src/moderation_api/types/content_submit_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down