From 5926e744944c7ed424579cfa943c5a0a41930f06 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 17 Mar 2026 13:25:48 +0000 Subject: [PATCH 1/4] chore(internal): tweak CI branches --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cff8b4..efd5649 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,14 @@ name: CI on: push: - branches-ignore: - - 'generated' - - 'codegen/**' - - 'integrated/**' - - 'stl-preview-head/**' - - 'stl-preview-base/**' + branches: + - '**' + - '!integrated/**' + - '!stl-preview-head/**' + - '!stl-preview-base/**' + - '!generated' + - '!codegen/**' + - 'codegen/stl/**' pull_request: branches-ignore: - 'stl-preview-head/**' From 1abdbecada399f4420b794b1bdcca041fc7d995f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 16:30:01 +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 288e44b..3a6a221 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-ad93e48ef2ee1066fe81553c7ac1f3be24037c6e1976778acb8b13baedbe5821.yml -openapi_spec_hash: 06e01ccb380f068bff3a571b58089a94 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-815dce43cbb14e41f094bdbca84682c0b379dcfd02b7e8800f9d8b45c00a76fd.yml +openapi_spec_hash: ab7d073e793fe5a556e64d39963aea93 config_hash: 6b825a08e19dfb747c5dc1766502b789 From 061ff7cb37ad9c1d08da38540773c9b706c79c79 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 10:29:50 +0000 Subject: [PATCH 3/4] feat(api): api update --- .stats.yml | 4 +-- src/Content/ContentSubmitResponse/Content.php | 28 +++++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3a6a221..f17b8ce 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-815dce43cbb14e41f094bdbca84682c0b379dcfd02b7e8800f9d8b45c00a76fd.yml -openapi_spec_hash: ab7d073e793fe5a556e64d39963aea93 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-a4934bf1e7f1348c021b48224f7a7110a6e41838253dda4fbcc720dd2d2ed6b7.yml +openapi_spec_hash: 537542216811907b1d4ebf23a54dc669 config_hash: 6b825a08e19dfb747c5dc1766502b789 diff --git a/src/Content/ContentSubmitResponse/Content.php b/src/Content/ContentSubmitResponse/Content.php index 30035a6..97ec02f 100644 --- a/src/Content/ContentSubmitResponse/Content.php +++ b/src/Content/ContentSubmitResponse/Content.php @@ -5,6 +5,7 @@ namespace ModerationAPI\Content\ContentSubmitResponse; use ModerationAPI\Content\ContentSubmitResponse\Content\Modified; +use ModerationAPI\Core\Attributes\Optional; use ModerationAPI\Core\Attributes\Required; use ModerationAPI\Core\Concerns\SdkModel; use ModerationAPI\Core\Contracts\BaseModel; @@ -16,7 +17,10 @@ * @phpstan-import-type ModifiedShape from \ModerationAPI\Content\ContentSubmitResponse\Content\Modified * * @phpstan-type ContentShape = array{ - * id: string, masked: bool, modified: ModifiedShape|null + * id: string, + * masked: bool, + * modified: ModifiedShape|null, + * transcript?: string|null, * } */ final class Content implements BaseModel @@ -44,6 +48,12 @@ final class Content implements BaseModel #[Required(union: Modified::class)] public string|array|null $modified; + /** + * The transcribed text from audio content. Only present when audio moderation is used and transcript inclusion is enabled on the channel. + */ + #[Optional(nullable: true)] + public ?string $transcript; + /** * `new Content()` is missing required properties by the API. * @@ -73,7 +83,8 @@ public function __construct() public static function with( string $id, bool $masked, - string|array|null $modified + string|array|null $modified, + ?string $transcript = null, ): self { $self = new self; @@ -81,6 +92,8 @@ public static function with( $self['masked'] = $masked; $self['modified'] = $modified; + null !== $transcript && $self['transcript'] = $transcript; + return $self; } @@ -118,4 +131,15 @@ public function withModified(string|array|null $modified): self return $self; } + + /** + * The transcribed text from audio content. Only present when audio moderation is used and transcript inclusion is enabled on the channel. + */ + public function withTranscript(?string $transcript): self + { + $self = clone $this; + $self['transcript'] = $transcript; + + return $self; + } } From 3ba9645bc046dd7aa4efa53ddc388b89c6ef528d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 10:30:26 +0000 Subject: [PATCH 4/4] release: 0.11.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ README.md | 2 +- src/Version.php | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 091cfb1..f7014c3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.10.0" + ".": "0.11.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 317b673..3ada0c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.11.0 (2026-03-31) + +Full Changelog: [v0.10.0...v0.11.0](https://github.com/moderation-api/sdk-php/compare/v0.10.0...v0.11.0) + +### Features + +* **api:** api update ([061ff7c](https://github.com/moderation-api/sdk-php/commit/061ff7cb37ad9c1d08da38540773c9b706c79c79)) + + +### Chores + +* **internal:** tweak CI branches ([5926e74](https://github.com/moderation-api/sdk-php/commit/5926e744944c7ed424579cfa943c5a0a41930f06)) + ## 0.10.0 (2026-03-16) Full Changelog: [v0.9.0...v0.10.0](https://github.com/moderation-api/sdk-php/compare/v0.9.0...v0.10.0) diff --git a/README.md b/README.md index e894558..e30baf8 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The REST API documentation can be found on [docs.moderationapi.com](https://docs ``` -composer require "moderation-api/sdk-php 0.10.0" +composer require "moderation-api/sdk-php 0.11.0" ``` diff --git a/src/Version.php b/src/Version.php index 75cabf4..88bd716 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace ModerationAPI; // x-release-please-start-version -const VERSION = '0.10.0'; +const VERSION = '0.11.0'; // x-release-please-end