From 734e7c6d93eda2e16c731ecd2021878f62c1344f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 16:13:36 +0000 Subject: [PATCH 1/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a46dbf3..f680984 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-f98e3ca6513c4ec22c2cf595a503c80649356ec0977d7e4ec592139aebf945a8.yml -openapi_spec_hash: 94799eb5a21fc7c9350e9b0678b00ca2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-63d0d4499a8cd32edccb49280b8b7eb305a0497bcb56715c8d77dd4a245272f5.yml +openapi_spec_hash: 4e1086e40514a7841b94f7962dc82fa9 config_hash: 9d144cc6c49d3fd53e5b4472c1e22165 From ad24d1d26a5ef691b8e6a1192b70e42ddf4b99a6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 12:13:23 +0000 Subject: [PATCH 2/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f680984..18f68d3 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-63d0d4499a8cd32edccb49280b8b7eb305a0497bcb56715c8d77dd4a245272f5.yml -openapi_spec_hash: 4e1086e40514a7841b94f7962dc82fa9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-c3aa8563e03f0cddc62cbbc8ad42dcbd6f35b4652fd2dd09e0eb4d6a41364872.yml +openapi_spec_hash: 4647c8878266624f4af6605277061a59 config_hash: 9d144cc6c49d3fd53e5b4472c1e22165 From 348fae3cbebd21db329ad5eaed0d8222a1275911 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 02:03:36 +0000 Subject: [PATCH 3/4] fix(types): avoid type-checker errors on params with additional properties --- src/moderation_api/types/author_create_params.py | 6 +++++- src/moderation_api/types/author_update_params.py | 6 +++++- src/moderation_api/types/content_submit_params.py | 12 ++++++++++-- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/moderation_api/types/author_create_params.py b/src/moderation_api/types/author_create_params.py index 4882d2a..7c4692b 100644 --- a/src/moderation_api/types/author_create_params.py +++ b/src/moderation_api/types/author_create_params.py @@ -43,7 +43,11 @@ class AuthorCreateParams(TypedDict, total=False): """URL of the author's profile picture""" -class Metadata(TypedDict, total=False, extra_items=object): # type: ignore[call-arg] +class Metadata( # type: ignore[call-arg] + TypedDict, + total=False, + extra_items=object, # pyright: ignore[reportGeneralTypeIssues] +): """Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process. diff --git a/src/moderation_api/types/author_update_params.py b/src/moderation_api/types/author_update_params.py index 94bab88..4bc3cca 100644 --- a/src/moderation_api/types/author_update_params.py +++ b/src/moderation_api/types/author_update_params.py @@ -40,7 +40,11 @@ class AuthorUpdateParams(TypedDict, total=False): """URL of the author's profile picture""" -class Metadata(TypedDict, total=False, extra_items=object): # type: ignore[call-arg] +class Metadata( # type: ignore[call-arg] + TypedDict, + total=False, + extra_items=object, # pyright: ignore[reportGeneralTypeIssues] +): """Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process. diff --git a/src/moderation_api/types/content_submit_params.py b/src/moderation_api/types/content_submit_params.py index c05f892..4a2d30f 100644 --- a/src/moderation_api/types/content_submit_params.py +++ b/src/moderation_api/types/content_submit_params.py @@ -450,7 +450,11 @@ class PolicyCodeAbuse(TypedDict, total=False): threshold: float -class PolicyPiiMaskingEntities(TypedDict, total=False, extra_items=object): # type: ignore[call-arg] +class PolicyPiiMaskingEntities( # type: ignore[call-arg] + TypedDict, + total=False, + extra_items=object, # pyright: ignore[reportGeneralTypeIssues] +): enable: bool flag: bool @@ -466,7 +470,11 @@ class PolicyPiiMasking(TypedDict, total=False): entities: Required[Dict[str, PolicyPiiMaskingEntities]] -class PolicyURLMaskingEntities(TypedDict, total=False, extra_items=object): # type: ignore[call-arg] +class PolicyURLMaskingEntities( # type: ignore[call-arg] + TypedDict, + total=False, + extra_items=object, # pyright: ignore[reportGeneralTypeIssues] +): enable: bool flag: bool From 55cf9877656b710641d08364ea351731a9ab53af Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 02:03:57 +0000 Subject: [PATCH 4/4] release: 1.25.1 --- .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 0c0c0c3..f5cfbcb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.25.0" + ".": "1.25.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 00017bb..11bebbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.25.1 (2026-06-30) + +Full Changelog: [v1.25.0...v1.25.1](https://github.com/moderation-api/sdk-python/compare/v1.25.0...v1.25.1) + +### Bug Fixes + +* **types:** avoid type-checker errors on params with additional properties ([348fae3](https://github.com/moderation-api/sdk-python/commit/348fae3cbebd21db329ad5eaed0d8222a1275911)) + ## 1.25.0 (2026-06-18) Full Changelog: [v1.24.0...v1.25.0](https://github.com/moderation-api/sdk-python/compare/v1.24.0...v1.25.0) diff --git a/pyproject.toml b/pyproject.toml index fd8275d..826bbf3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "moderation_api" -version = "1.25.0" +version = "1.25.1" 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 3bd6940..88d5c5c 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.25.0" # x-release-please-version +__version__ = "1.25.1" # x-release-please-version