diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b4e9013..6db19b9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.16.0" + ".": "0.17.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 5b8da89..7fc4abc 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-5d59d9b7fffd1ac6f329a62fdc42c97bfa7821168eeea0d686a2d48d90963c34.yml -openapi_spec_hash: 61cd471624938b233f02dc17416946f2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api/moderation-api-e864d762f50e49c0584bbf35eacc43cdb1397f805cca52cb8d4c07781739d0a3.yml +openapi_spec_hash: f511fefb34946e5878ac17f2b3056b1f config_hash: 9d144cc6c49d3fd53e5b4472c1e22165 diff --git a/CHANGELOG.md b/CHANGELOG.md index ddfe93c..5a37899 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.17.0 (2026-05-08) + +Full Changelog: [v0.16.0...v0.17.0](https://github.com/moderation-api/sdk-php/compare/v0.16.0...v0.17.0) + +### Features + +* **api:** api update ([2ec39e3](https://github.com/moderation-api/sdk-php/commit/2ec39e3646d12ba5c1ae2a4d396e15b624050873)) + ## 0.16.0 (2026-05-08) Full Changelog: [v0.15.0...v0.16.0](https://github.com/moderation-api/sdk-php/compare/v0.15.0...v0.16.0) diff --git a/README.md b/README.md index f21273e..2c89c4d 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.16.0" +composer require "moderation-api/sdk-php 0.17.0" ``` diff --git a/src/Queue/WebhookEvent.php b/src/Queue/WebhookEvent.php index d9043b0..8346395 100644 --- a/src/Queue/WebhookEvent.php +++ b/src/Queue/WebhookEvent.php @@ -56,7 +56,7 @@ public static function variants(): array 'author.updated' => AuthorUpdatedEvent::class, 'author.trust_level_changed' => AuthorTrustLevelChangedEvent::class, 'author.action' => AuthorActionEvent::class, - 'queue_item.completed' => QueueItemCompletedEvent::class, + 'queue_item.resolved' => QueueItemCompletedEvent::class, 'queue_item.action' => QueueItemActionEvent::class, 'queue_item.rejected' => QueueItemRejectedEvent::class, 'queue_item.allowed' => QueueItemAllowedEvent::class, diff --git a/src/Queue/WebhookEvent/QueueItemCompletedEvent.php b/src/Queue/WebhookEvent/QueueItemCompletedEvent.php index a095132..3e75238 100644 --- a/src/Queue/WebhookEvent/QueueItemCompletedEvent.php +++ b/src/Queue/WebhookEvent/QueueItemCompletedEvent.php @@ -17,7 +17,7 @@ * apiVersion: 'v2', * created: \DateTimeInterface, * data: Data|DataShape, - * type: 'queue_item.completed', + * type: 'queue_item.resolved', * } */ final class QueueItemCompletedEvent implements BaseModel @@ -32,10 +32,10 @@ final class QueueItemCompletedEvent implements BaseModel /** * The event type. * - * @var 'queue_item.completed' $type + * @var 'queue_item.resolved' $type */ #[Required] - public string $type = 'queue_item.completed'; + public string $type = 'queue_item.resolved'; /** * Stable event ID. Use this to dedupe retries. @@ -139,7 +139,7 @@ public function withData(Data|array $data): self /** * The event type. * - * @param 'queue_item.completed' $type + * @param 'queue_item.resolved' $type */ public function withType(string $type): self { diff --git a/src/Version.php b/src/Version.php index f0f98d7..02b267d 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace ModerationAPI; // x-release-please-start-version -const VERSION = '0.16.0'; +const VERSION = '0.17.0'; // x-release-please-end