Skip to content

Commit 84fd4e2

Browse files
authored
Merge pull request #3 from moderation-api/release-please--branches--main--changes--next
release: 1.0.2
2 parents d181564 + 85ed3a7 commit 84fd4e2

14 files changed

Lines changed: 110 additions & 3 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.1"
2+
".": "1.0.2"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.0.2 (2025-12-09)
4+
5+
Full Changelog: [v1.0.1...v1.0.2](https://github.com/moderation-api/sdk-python/compare/v1.0.1...v1.0.2)
6+
7+
### Chores
8+
9+
* add missing docstrings ([02bdf8f](https://github.com/moderation-api/sdk-python/commit/02bdf8ffdef877fdb38df5c8215f241c0af2936e))
10+
311
## 1.0.1 (2025-12-09)
412

513
Full Changelog: [v1.0.0...v1.0.1](https://github.com/moderation-api/sdk-python/compare/v1.0.0...v1.0.1)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "moderation_api"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
description = "The official Python library for the moderation-api API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/moderation_api/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "moderation_api"
4-
__version__ = "1.0.1" # x-release-please-version
4+
__version__ = "1.0.2" # x-release-please-version

src/moderation_api/types/actions/execute_execute_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66

77

88
class ExecuteExecuteResponse(BaseModel):
9+
"""Execution result"""
10+
911
success: bool
1012
"""Whether the action was executed successfully"""

src/moderation_api/types/author_create_params.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ class AuthorCreateParams(TypedDict, total=False):
4141

4242

4343
class MetadataTyped(TypedDict, total=False):
44+
"""Additional metadata provided by your system.
45+
46+
We recommend including any relevant information that may assist in the moderation process.
47+
"""
48+
4449
email_verified: Optional[bool]
4550
"""Whether the author's email is verified"""
4651

src/moderation_api/types/author_create_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212

1313
class Block(BaseModel):
14+
"""Block or suspension details, if applicable. Null if the author is enabled."""
15+
1416
reason: Optional[str] = None
1517
"""The moderators reason why the author was blocked or suspended."""
1618

@@ -19,6 +21,11 @@ class Block(BaseModel):
1921

2022

2123
class Metadata(BaseModel):
24+
"""Additional metadata provided by your system.
25+
26+
We recommend including any relevant information that may assist in the moderation process.
27+
"""
28+
2229
email_verified: Optional[bool] = None
2330
"""Whether the author's email is verified"""
2431

@@ -59,6 +66,8 @@ class Metrics(BaseModel):
5966

6067

6168
class RiskEvaluation(BaseModel):
69+
"""Risk assessment details, if available."""
70+
6271
risk_level: Optional[float] = None
6372
"""Calculated risk level based on more than 10 behavioral signals."""
6473

src/moderation_api/types/author_list_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121

2222
class AuthorBlock(BaseModel):
23+
"""Block or suspension details, if applicable. Null if the author is enabled."""
24+
2325
reason: Optional[str] = None
2426
"""The moderators reason why the author was blocked or suspended."""
2527

@@ -28,6 +30,11 @@ class AuthorBlock(BaseModel):
2830

2931

3032
class AuthorMetadata(BaseModel):
33+
"""Additional metadata provided by your system.
34+
35+
We recommend including any relevant information that may assist in the moderation process.
36+
"""
37+
3138
email_verified: Optional[bool] = None
3239
"""Whether the author's email is verified"""
3340

@@ -68,6 +75,8 @@ class AuthorMetrics(BaseModel):
6875

6976

7077
class AuthorRiskEvaluation(BaseModel):
78+
"""Risk assessment details, if available."""
79+
7180
risk_level: Optional[float] = None
7281
"""Calculated risk level based on more than 10 behavioral signals."""
7382

src/moderation_api/types/author_retrieve_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212

1313
class Block(BaseModel):
14+
"""Block or suspension details, if applicable. Null if the author is enabled."""
15+
1416
reason: Optional[str] = None
1517
"""The moderators reason why the author was blocked or suspended."""
1618

@@ -19,6 +21,11 @@ class Block(BaseModel):
1921

2022

2123
class Metadata(BaseModel):
24+
"""Additional metadata provided by your system.
25+
26+
We recommend including any relevant information that may assist in the moderation process.
27+
"""
28+
2229
email_verified: Optional[bool] = None
2330
"""Whether the author's email is verified"""
2431

@@ -59,6 +66,8 @@ class Metrics(BaseModel):
5966

6067

6168
class RiskEvaluation(BaseModel):
69+
"""Risk assessment details, if available."""
70+
6271
risk_level: Optional[float] = None
6372
"""Calculated risk level based on more than 10 behavioral signals."""
6473

src/moderation_api/types/author_update_params.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class AuthorUpdateParams(TypedDict, total=False):
3838

3939

4040
class MetadataTyped(TypedDict, total=False):
41+
"""Additional metadata provided by your system.
42+
43+
We recommend including any relevant information that may assist in the moderation process.
44+
"""
45+
4146
email_verified: Optional[bool]
4247
"""Whether the author's email is verified"""
4348

0 commit comments

Comments
 (0)