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.21.0"
".": "1.22.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-3bb06bde0f76baa35ecc698b0c60371c9eadfd7b58c00b77cbc124d5be5dcb8b.yml
openapi_spec_hash: b4339d93d43fb725be0e98bd3bbf4f0b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-2a9024f55f158ede9f9d4811ab4035e470afc920d0f15513da6603d011b2bef7.yml
openapi_spec_hash: cc3275c46438bd043ac96e669e27276f
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.22.0 (2026-06-01)

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

### Features

* **api:** api update ([1680525](https://github.com/moderation-api/sdk-python/commit/16805259b2c36c455e512af21103074829dbe15f))

## 1.21.0 (2026-05-19)

Full Changelog: [v1.20.0...v1.21.0](https://github.com/moderation-api/sdk-python/compare/v1.20.0...v1.21.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.21.0"
version = "1.22.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.21.0" # x-release-please-version
__version__ = "1.22.0" # x-release-please-version
16 changes: 16 additions & 0 deletions src/moderation_api/types/content_submit_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"PolicyViolence",
"PolicySelfHarm",
"PolicySpam",
"PolicyLowQualityContent",
"PolicySelfPromotion",
"PolicyPolitical",
"PolicyReligion",
Expand Down Expand Up @@ -350,6 +351,20 @@ class PolicySpam(TypedDict, total=False):
threshold: float


class PolicyLowQualityContent(TypedDict, total=False):
id: Required[Literal["low_quality"]]

flag: Required[bool]

min_words: Annotated[int, PropertyInfo(alias="minWords")]
"""Flag content with fewer than this many words as low-effort.

Defaults to 3. Set to disable by omitting.
"""

threshold: float


class PolicySelfPromotion(TypedDict, total=False):
id: Required[Literal["self_promotion"]]

Expand Down Expand Up @@ -473,6 +488,7 @@ class PolicyGuideline(TypedDict, total=False):
PolicyViolence,
PolicySelfHarm,
PolicySpam,
PolicyLowQualityContent,
PolicySelfPromotion,
PolicyPolitical,
PolicyReligion,
Expand Down
Loading