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.26.0"
".": "1.27.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/moderation-api-c3aa8563e03f0cddc62cbbc8ad42dcbd6f35b4652fd2dd09e0eb4d6a41364872.yml
openapi_spec_hash: 4647c8878266624f4af6605277061a59
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-c6993914ad5f9cb983c4b4eb18276af82b53ef3b56fbb7aec82fad2e2a39049a.yml
openapi_spec_hash: b528665c10bbfa79a5de41c338423fdd
config_hash: 9d144cc6c49d3fd53e5b4472c1e22165
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.27.0 (2026-07-20)

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

### Features

* **api:** api update ([04095f7](https://github.com/moderation-api/sdk-python/commit/04095f7afab929c3acc2506b7c3b933f2e71a46a))

## 1.26.0 (2026-07-18)

Full Changelog: [v1.25.2...v1.26.0](https://github.com/moderation-api/sdk-python/compare/v1.25.2...v1.26.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.26.0"
version = "1.27.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.26.0" # x-release-please-version
__version__ = "1.27.0" # x-release-please-version
22 changes: 22 additions & 0 deletions src/moderation_api/types/content_submit_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
"PolicyPolitical",
"PolicyReligion",
"PolicyCodeAbuse",
"PolicyUnicodeSpoofing",
"PolicyUnicodeSpoofingSignals",
"PolicyPiiMasking",
"PolicyPiiMaskingEntities",
"PolicyURLMasking",
Expand Down Expand Up @@ -450,6 +452,25 @@ class PolicyCodeAbuse(TypedDict, total=False):
threshold: float


class PolicyUnicodeSpoofingSignals(TypedDict, total=False):
flag: bool


class PolicyUnicodeSpoofing(TypedDict, total=False):
id: Required[Literal["unicode_spoofing"]]

flag: Required[bool]

signals: Dict[str, PolicyUnicodeSpoofingSignals]
"""Per-signal flag toggles.

Omitted signals are enabled. A signal set to { flag: false } is still detected
and reported as a label, but does not by itself flag the policy.
"""

threshold: float


class PolicyPiiMaskingEntities( # type: ignore[call-arg]
TypedDict,
total=False,
Expand Down Expand Up @@ -555,6 +576,7 @@ class PolicyGuideline(TypedDict, total=False):
PolicyPolitical,
PolicyReligion,
PolicyCodeAbuse,
PolicyUnicodeSpoofing,
PolicyPiiMasking,
PolicyURLMasking,
PolicyURLRisk,
Expand Down
7 changes: 7 additions & 0 deletions src/moderation_api/types/content_submit_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ class Content(BaseModel):
on the channel.
"""

unicode_cleaned: Optional[bool] = None
"""
Whether Unicode spoofing normalization rewrote the content — confusables folded
to their Latin lookalikes, invisible characters and combining-mark abuse
stripped.
"""


class Evaluation(BaseModel):
"""The evaluation of the content after running the channel policies."""
Expand Down
Loading