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/**' 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/.stats.yml b/.stats.yml index 288e44b..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-ad93e48ef2ee1066fe81553c7ac1f3be24037c6e1976778acb8b13baedbe5821.yml -openapi_spec_hash: 06e01ccb380f068bff3a571b58089a94 +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/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/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; + } } 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