diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d4d94e..41e7c93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/moderation-api-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v5 @@ -41,7 +41,7 @@ jobs: id-token: write runs-on: ${{ github.repository == 'stainless-sdks/moderation-api-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v5 @@ -57,7 +57,7 @@ jobs: - name: Get GitHub OIDC Token if: github.repository == 'stainless-sdks/moderation-api-python' id: github-oidc - uses: actions/github-script@v6 + uses: actions/github-script@v8 with: script: core.setOutput('github_token', await core.getIDToken()); @@ -75,7 +75,7 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/moderation-api-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v5 diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index ed9ee80..77300d3 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install uv uses: astral-sh/setup-uv@v5 diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 2fa10d1..8c5f0e4 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -12,7 +12,7 @@ jobs: if: github.repository == 'moderation-api/sdk-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Check release environment run: | diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3e9af1b..fbd9082 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.0" + ".": "1.5.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 6aa934b..4169724 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%2Fmoderation-api-c4b4a6dd58ac7acb74655c95e375be9c52d9b4b23a6b4c40ac6fceeb3e91f8ed.yml -openapi_spec_hash: 436eb030ad0ba2f3c53382a40ec9f4c9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-4c45cb81092c51edd3affb49ac04582b6416054870f15e8bb30565375cd390eb.yml +openapi_spec_hash: 9ff39aca0794f22638ac710075bf70fe config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb diff --git a/CHANGELOG.md b/CHANGELOG.md index 558a70f..1b68ad2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 1.5.0 (2026-01-28) + +Full Changelog: [v1.4.0...v1.5.0](https://github.com/moderation-api/sdk-python/compare/v1.4.0...v1.5.0) + +### Features + +* **api:** api update ([f169692](https://github.com/moderation-api/sdk-python/commit/f1696924142a6c6ab846a6d2186986000e767f16)) + + +### Chores + +* **ci:** upgrade `actions/github-script` ([2b6a3c8](https://github.com/moderation-api/sdk-python/commit/2b6a3c800e24d79e9e33856f7c30131d7c6b43f6)) +* **internal:** update `actions/checkout` version ([bb501b1](https://github.com/moderation-api/sdk-python/commit/bb501b1f60a8a374c8357993e67251e436c161fa)) + ## 1.4.0 (2026-01-14) Full Changelog: [v1.3.0...v1.4.0](https://github.com/moderation-api/sdk-python/compare/v1.3.0...v1.4.0) diff --git a/pyproject.toml b/pyproject.toml index fbbd41b..64b7964 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "moderation_api" -version = "1.4.0" +version = "1.5.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 ea67f39..4f9dcd0 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.4.0" # x-release-please-version +__version__ = "1.5.0" # x-release-please-version diff --git a/src/moderation_api/types/content_submit_params.py b/src/moderation_api/types/content_submit_params.py index 1216409..4831096 100644 --- a/src/moderation_api/types/content_submit_params.py +++ b/src/moderation_api/types/content_submit_params.py @@ -31,6 +31,7 @@ "PolicyIllicitFirearms", "PolicyIllicitTobacco", "PolicyIllicitGambling", + "PolicyCannabis", "PolicySexual", "PolicyFlirtation", "PolicyProfanity", @@ -259,6 +260,14 @@ class PolicyIllicitGambling(TypedDict, total=False): threshold: float +class PolicyCannabis(TypedDict, total=False): + id: Required[Literal["cannabis"]] + + flag: Required[bool] + + threshold: float + + class PolicySexual(TypedDict, total=False): id: Required[Literal["sexual"]] @@ -400,6 +409,7 @@ class PolicyGuideline(TypedDict, total=False): PolicyIllicitFirearms, PolicyIllicitTobacco, PolicyIllicitGambling, + PolicyCannabis, PolicySexual, PolicyFlirtation, PolicyProfanity,