Skip to content

Commit b3b3dbe

Browse files
chrisdengsogithub-actions[bot]
authored andcommitted
fix: v2.1.2
1 parent 5aac460 commit b3b3dbe

6 files changed

Lines changed: 18 additions & 10 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ management:
55
docVersion: 1.1.0
66
speakeasyVersion: internal
77
generationVersion: internal
8-
releaseVersion: 2.1.1
9-
configChecksum: 3d9a12333f71c39e9fb299bc45245b92
8+
releaseVersion: 2.1.2
9+
configChecksum: dbd2aeafa525943ca94fcc919445110d
1010
repoURL: https://github.com/moderation-api/sdk-python
1111
installationURL: https://github.com/moderation-api/sdk-python.git
1212
published: true
@@ -681,7 +681,7 @@ trackedFiles:
681681
pylintrc:
682682
last_write_checksum: sha1:cb40e5fd2885dcf20f7c572a590b2656efe282a0
683683
pyproject.toml:
684-
last_write_checksum: sha1:194d3d0511d59ba7a0fc47a58ed0253a3d74922d
684+
last_write_checksum: sha1:ea151d0f849831c0b8b1565cb29460e1cf7086cc
685685
scripts/prepare_readme.py:
686686
last_write_checksum: sha1:7b330dc0eb57c916a1158fd90c6227f8dc517c83
687687
scripts/publish.sh:
@@ -695,7 +695,7 @@ trackedFiles:
695695
src/moderation_api/_hooks/types.py:
696696
last_write_checksum: sha1:bb2a67c388c536a910bd205bd9582065c5d2de39
697697
src/moderation_api/_version.py:
698-
last_write_checksum: sha1:3846cc0f16d9c62f387bc8ee9b1f3f7911ad8e49
698+
last_write_checksum: sha1:5895909026c540af6052d3d45bcbff504a707216
699699
src/moderation_api/account.py:
700700
last_write_checksum: sha1:b83155ed2e9ddea53715fef16adf03683ea99006
701701
src/moderation_api/actions.py:

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: true
3333
skipResponseBodyAssertions: false
3434
python:
35-
version: 2.1.1
35+
version: 2.1.2
3636
additionalDependencies:
3737
dev: {}
3838
main: {}

‎CHANGELOG.md‎

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

3+
## 2.1.2 (2026-10-22)
4+
5+
Full Changelog: [v2.1.1...v2.1.2](https://github.com/moderation-api/sdk-python/compare/v2.1.1...v2.1.2)
6+
7+
### Chores
8+
9+
- Update the generated code.
10+
311
## 2.1.1 (2026-10-22)
412

513
Full Changelog: [v2.1.0...v2.1.1](https://github.com/moderation-api/sdk-python/compare/v2.1.0...v2.1.1)

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ with ModerationAPI(
309309
Moderation API has two kinds of API keys:
310310

311311
- A **project key** works with one project: content, authors, review queues, actions, wordlists, webhooks and the account. Most integrations need only this key.
312-
- An **organization key** works with the [management API](https://docs.moderationapi.com/api-reference/management-api): projects and channels. The management API is available on Enterprise plans.
312+
- An **organization key** works with the [management API](https://docs.moderationapi.com/api-reference/management-api): projects and channels. It can also use any project's endpoints: name the project with `projectId`.
313313

314-
Each key works only with its own endpoints. With the wrong key the API returns `403` with the code `project_key_required` or `organization_key_required`. If you use both, create one client for each key:
314+
A project key can't call the management API: the API returns `403` with the code `organization_key_required`. If you use both kinds of key, create one client for each:
315315

316316
```python
317317
import os

‎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 = "2.1.1"
3+
version = "2.1.2"
44
description = "The official Python library for the Moderation API"
55
authors = [{ name = "Moderation API" },]
66
readme = "README-PYPI.md"

‎src/moderation_api/_version.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "moderation_api"
6-
__version__: str = "2.1.1"
6+
__version__: str = "2.1.2"
77
__openapi_doc_version__: str = "1.1.0"
88
__gen_version__: str = "internal"
9-
__user_agent__: str = "speakeasy-sdk/python 2.1.1 internal 1.1.0 moderation_api"
9+
__user_agent__: str = "speakeasy-sdk/python 2.1.2 internal 1.1.0 moderation_api"
1010

1111
try:
1212
if __package__ is not None:

0 commit comments

Comments
 (0)