From a6ec0885225ae950277829afc69986e92f752e67 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 12:27:13 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/Content/ContentSubmitParams/Content/Image.php | 8 ++++---- .../ContentSubmitParams/Content/Object_/Data/Image.php | 8 ++++---- .../Modified/ModifiedNestedObjectContent/Image.php | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5ec92ed..688c1d0 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-67a3fe4439c3aa74fb2c18b207b43c790d42bab7bfd7e5e16f3e1046765ec959.yml -openapi_spec_hash: c87b33c2c72a172da02ed75d4e79eb70 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-7270e2afd5e9c57ffcb1b83d5eb8b549a33c471b72ab494f903473a23b3f7115.yml +openapi_spec_hash: cfd11087252e28bc7e7d4f4dbefc51ee config_hash: 6b825a08e19dfb747c5dc1766502b789 diff --git a/src/Content/ContentSubmitParams/Content/Image.php b/src/Content/ContentSubmitParams/Content/Image.php index 138d281..7da8011 100644 --- a/src/Content/ContentSubmitParams/Content/Image.php +++ b/src/Content/ContentSubmitParams/Content/Image.php @@ -26,13 +26,13 @@ final class Image implements BaseModel public string $type = 'image'; /** - * Base64-encoded image data. + * Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue. */ #[Optional] public ?string $data; /** - * A public URL of the image content. + * A public URL of the image content. Either url or data must be provided. */ #[Optional] public ?string $url; @@ -69,7 +69,7 @@ public function withType(string $type): self } /** - * Base64-encoded image data. + * Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue. */ public function withData(string $data): self { @@ -80,7 +80,7 @@ public function withData(string $data): self } /** - * A public URL of the image content. + * A public URL of the image content. Either url or data must be provided. */ public function withURL(string $url): self { diff --git a/src/Content/ContentSubmitParams/Content/Object_/Data/Image.php b/src/Content/ContentSubmitParams/Content/Object_/Data/Image.php index c9d3866..267d989 100644 --- a/src/Content/ContentSubmitParams/Content/Object_/Data/Image.php +++ b/src/Content/ContentSubmitParams/Content/Object_/Data/Image.php @@ -26,13 +26,13 @@ final class Image implements BaseModel public string $type = 'image'; /** - * Base64-encoded image data. + * Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue. */ #[Optional] public ?string $data; /** - * A public URL of the image content. + * A public URL of the image content. Either url or data must be provided. */ #[Optional] public ?string $url; @@ -69,7 +69,7 @@ public function withType(string $type): self } /** - * Base64-encoded image data. + * Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue. */ public function withData(string $data): self { @@ -80,7 +80,7 @@ public function withData(string $data): self } /** - * A public URL of the image content. + * A public URL of the image content. Either url or data must be provided. */ public function withURL(string $url): self { diff --git a/src/Content/ContentSubmitResponse/Content/Modified/ModifiedNestedObjectContent/Image.php b/src/Content/ContentSubmitResponse/Content/Modified/ModifiedNestedObjectContent/Image.php index 6483991..5c47405 100644 --- a/src/Content/ContentSubmitResponse/Content/Modified/ModifiedNestedObjectContent/Image.php +++ b/src/Content/ContentSubmitResponse/Content/Modified/ModifiedNestedObjectContent/Image.php @@ -26,13 +26,13 @@ final class Image implements BaseModel public string $type = 'image'; /** - * Base64-encoded image data. + * Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue. */ #[Optional] public ?string $data; /** - * A public URL of the image content. + * A public URL of the image content. Either url or data must be provided. */ #[Optional] public ?string $url; @@ -69,7 +69,7 @@ public function withType(string $type): self } /** - * Base64-encoded image data. + * Base64-encoded image data. Either url or data must be provided. Note: base64 images are not stored and will not appear in the review queue. */ public function withData(string $data): self { @@ -80,7 +80,7 @@ public function withData(string $data): self } /** - * A public URL of the image content. + * A public URL of the image content. Either url or data must be provided. */ public function withURL(string $url): self { From f4274c5ecf38e7f627e9aafeac2578342a027c49 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 12:27:30 +0000 Subject: [PATCH 2/2] release: 0.8.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 2 +- src/Version.php | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1bc5713..6538ca9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.7.1" + ".": "0.8.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index f28466c..4704e34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.8.0 (2026-02-23) + +Full Changelog: [v0.7.1...v0.8.0](https://github.com/moderation-api/sdk-php/compare/v0.7.1...v0.8.0) + +### Features + +* **api:** api update ([a6ec088](https://github.com/moderation-api/sdk-php/commit/a6ec0885225ae950277829afc69986e92f752e67)) + ## 0.7.1 (2026-02-20) Full Changelog: [v0.7.0...v0.7.1](https://github.com/moderation-api/sdk-php/compare/v0.7.0...v0.7.1) diff --git a/README.md b/README.md index 984a638..d7770a9 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.7.1" +composer require "moderation-api/sdk-php 0.8.0" ``` diff --git a/src/Version.php b/src/Version.php index c920800..57dcb6f 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace ModerationAPI; // x-release-please-start-version -const VERSION = '0.7.1'; +const VERSION = '0.8.0'; // x-release-please-end