From 16805259b2c36c455e512af21103074829dbe15f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 13:13:26 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- .../types/content_submit_params.py | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ec34a10..e615fc9 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/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 diff --git a/src/moderation_api/types/content_submit_params.py b/src/moderation_api/types/content_submit_params.py index f964ddc..41362e8 100644 --- a/src/moderation_api/types/content_submit_params.py +++ b/src/moderation_api/types/content_submit_params.py @@ -41,6 +41,7 @@ "PolicyViolence", "PolicySelfHarm", "PolicySpam", + "PolicyLowQualityContent", "PolicySelfPromotion", "PolicyPolitical", "PolicyReligion", @@ -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"]] @@ -473,6 +488,7 @@ class PolicyGuideline(TypedDict, total=False): PolicyViolence, PolicySelfHarm, PolicySpam, + PolicyLowQualityContent, PolicySelfPromotion, PolicyPolitical, PolicyReligion, From 76ad456048a87f6275c8fd38925b9c0638d86b2f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 13:13:51 +0000 Subject: [PATCH 2/2] release: 1.22.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/moderation_api/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ba231b0..397c420 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.21.0" + ".": "1.22.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 51c9241..495db9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 4168580..5de6975 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/moderation_api/_version.py b/src/moderation_api/_version.py index 7586f49..49ec943 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.21.0" # x-release-please-version +__version__ = "1.22.0" # x-release-please-version