From f83c051deb17c543958f4790fbae5b4f4bce831d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 14:13:30 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/Content/ContentSubmitParams/MetaType.php | 2 ++ .../QueueItemActionEvent/Data/Object_/Item/MetaType.php | 2 ++ .../QueueItemAllowedEvent/Data/Object_/Item/MetaType.php | 2 ++ .../QueueItemCompletedEvent/Data/Object_/Item/MetaType.php | 2 ++ .../QueueItemRejectedEvent/Data/Object_/Item/MetaType.php | 2 ++ src/Services/ContentRawService.php | 2 +- 7 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3729e09..a46dbf3 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/moderation-api-e2abce1482c148fbbce5c7a7048691afc45935d1bde7feddea11c522ad47a3a1.yml -openapi_spec_hash: 3b3b86090b2243f865bc5aea8554c737 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-f98e3ca6513c4ec22c2cf595a503c80649356ec0977d7e4ec592139aebf945a8.yml +openapi_spec_hash: 94799eb5a21fc7c9350e9b0678b00ca2 config_hash: 9d144cc6c49d3fd53e5b4472c1e22165 diff --git a/src/Content/ContentSubmitParams/MetaType.php b/src/Content/ContentSubmitParams/MetaType.php index 4cb235f..f2165c4 100644 --- a/src/Content/ContentSubmitParams/MetaType.php +++ b/src/Content/ContentSubmitParams/MetaType.php @@ -23,5 +23,7 @@ enum MetaType: string case REVIEW = 'review'; + case VOICE = 'voice'; + case OTHER = 'other'; } diff --git a/src/Queue/WebhookEvent/QueueItemActionEvent/Data/Object_/Item/MetaType.php b/src/Queue/WebhookEvent/QueueItemActionEvent/Data/Object_/Item/MetaType.php index 358f6f3..5567d34 100644 --- a/src/Queue/WebhookEvent/QueueItemActionEvent/Data/Object_/Item/MetaType.php +++ b/src/Queue/WebhookEvent/QueueItemActionEvent/Data/Object_/Item/MetaType.php @@ -23,5 +23,7 @@ enum MetaType: string case REVIEW = 'review'; + case VOICE = 'voice'; + case OTHER = 'other'; } diff --git a/src/Queue/WebhookEvent/QueueItemAllowedEvent/Data/Object_/Item/MetaType.php b/src/Queue/WebhookEvent/QueueItemAllowedEvent/Data/Object_/Item/MetaType.php index bae0958..30c92a2 100644 --- a/src/Queue/WebhookEvent/QueueItemAllowedEvent/Data/Object_/Item/MetaType.php +++ b/src/Queue/WebhookEvent/QueueItemAllowedEvent/Data/Object_/Item/MetaType.php @@ -23,5 +23,7 @@ enum MetaType: string case REVIEW = 'review'; + case VOICE = 'voice'; + case OTHER = 'other'; } diff --git a/src/Queue/WebhookEvent/QueueItemCompletedEvent/Data/Object_/Item/MetaType.php b/src/Queue/WebhookEvent/QueueItemCompletedEvent/Data/Object_/Item/MetaType.php index 2ff50ce..e6ba1bf 100644 --- a/src/Queue/WebhookEvent/QueueItemCompletedEvent/Data/Object_/Item/MetaType.php +++ b/src/Queue/WebhookEvent/QueueItemCompletedEvent/Data/Object_/Item/MetaType.php @@ -23,5 +23,7 @@ enum MetaType: string case REVIEW = 'review'; + case VOICE = 'voice'; + case OTHER = 'other'; } diff --git a/src/Queue/WebhookEvent/QueueItemRejectedEvent/Data/Object_/Item/MetaType.php b/src/Queue/WebhookEvent/QueueItemRejectedEvent/Data/Object_/Item/MetaType.php index e516d61..90f9ebb 100644 --- a/src/Queue/WebhookEvent/QueueItemRejectedEvent/Data/Object_/Item/MetaType.php +++ b/src/Queue/WebhookEvent/QueueItemRejectedEvent/Data/Object_/Item/MetaType.php @@ -23,5 +23,7 @@ enum MetaType: string case REVIEW = 'review'; + case VOICE = 'voice'; + case OTHER = 'other'; } diff --git a/src/Services/ContentRawService.php b/src/Services/ContentRawService.php index 1dbcf9d..909d159 100644 --- a/src/Services/ContentRawService.php +++ b/src/Services/ContentRawService.php @@ -40,7 +40,7 @@ public function __construct(private Client $client) {} * conversationID?: string, * doNotStore?: bool, * metadata?: array, - * metaType?: MetaType|value-of, + * metaType?: value-of, * policies?: list, * timestamp?: float, * }|ContentSubmitParams $params From 84725969337bdd74b407d1f28b42919c27173871 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 14:13:53 +0000 Subject: [PATCH 2/2] release: 0.23.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 cb9d254..7f3f5c8 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.22.0" + ".": "0.23.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index f57cd68..56a67bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.23.0 (2026-06-18) + +Full Changelog: [v0.22.0...v0.23.0](https://github.com/moderation-api/sdk-php/compare/v0.22.0...v0.23.0) + +### Features + +* **api:** api update ([f83c051](https://github.com/moderation-api/sdk-php/commit/f83c051deb17c543958f4790fbae5b4f4bce831d)) + ## 0.22.0 (2026-06-02) Full Changelog: [v0.21.0...v0.22.0](https://github.com/moderation-api/sdk-php/compare/v0.21.0...v0.22.0) diff --git a/README.md b/README.md index f22065f..cdafc11 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.22.0" +composer require "moderation-api/sdk-php 0.23.0" ``` diff --git a/src/Version.php b/src/Version.php index 72c3f7d..1c5031b 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace ModerationAPI; // x-release-please-start-version -const VERSION = '0.22.0'; +const VERSION = '0.23.0'; // x-release-please-end