diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f5c6dea..1363fe0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.11.1" + ".": "5.11.2" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index c6ea0b3..9e3b99b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 138 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-e8d4bd51bf260b8a6cb9875718e36eab95d4e8d9490cd6c5c669eb69b82c2bf8.yml -openapi_spec_hash: bf321581a238ae891debcc5bb59dd501 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier/courier-11e1931d767cef402bbed5a965746d1933ae72db0f41881860593a0b1424fd80.yml +openapi_spec_hash: 9def941805f233f8761c4bdae88f6137 config_hash: 6c3a754258f0f77e9032a90a478ab76d diff --git a/CHANGELOG.md b/CHANGELOG.md index 549166f..c9bf108 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 5.11.2 (2026-07-10) + +Full Changelog: [v5.11.1...v5.11.2](https://github.com/trycourier/courier-php/compare/v5.11.1...v5.11.2) + +### Documentation + +* **openapi:** canonical type-id prefixes across all examples ([#162](https://github.com/trycourier/courier-php/issues/162)) ([1f883cb](https://github.com/trycourier/courier-php/commit/1f883cb20d6675abf337f0eb18b84d90472e5f4b)) +* **openapi:** use canonical type-id prefixes in id examples ([#160](https://github.com/trycourier/courier-php/issues/160)) ([e400881](https://github.com/trycourier/courier-php/commit/e4008818317bdee7b7c2f65b64d3f155bf3458a8)) + ## 5.11.1 (2026-07-09) Full Changelog: [v5.11.0...v5.11.1](https://github.com/trycourier/courier-php/compare/v5.11.0...v5.11.1) diff --git a/src/Version.php b/src/Version.php index 366453a..256e768 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Courier; // x-release-please-start-version -const VERSION = '5.11.1'; +const VERSION = '5.11.2'; // x-release-please-end diff --git a/tests/Services/NotificationsTest.php b/tests/Services/NotificationsTest.php index a6a0438..5e9ce3c 100644 --- a/tests/Services/NotificationsTest.php +++ b/tests/Services/NotificationsTest.php @@ -41,11 +41,11 @@ public function testCreate(): void $result = $this->client->notifications->create( notification: [ - 'brand' => ['id' => 'brand_abc'], + 'brand' => ['id' => 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag'], 'content' => ['elements' => [[]], 'version' => '2022-01-01'], 'name' => 'Welcome Email', - 'routing' => ['strategyID' => 'rs_123'], - 'subscription' => ['topicID' => 'marketing'], + 'routing' => ['strategyID' => 'rs_01kx4h2jdafq8bk9amzvy6hbv0'], + 'subscription' => ['topicID' => 'pt_01kx4h2jdafq8bk9a26x0kvd1t'], 'tags' => ['onboarding', 'welcome'], ], ); @@ -63,13 +63,13 @@ public function testCreateWithOptionalParams(): void $result = $this->client->notifications->create( notification: [ - 'brand' => ['id' => 'brand_abc'], + 'brand' => ['id' => 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag'], 'content' => [ 'elements' => [['type' => 'channel']], 'version' => '2022-01-01', ], 'name' => 'Welcome Email', - 'routing' => ['strategyID' => 'rs_123'], - 'subscription' => ['topicID' => 'marketing'], + 'routing' => ['strategyID' => 'rs_01kx4h2jdafq8bk9amzvy6hbv0'], + 'subscription' => ['topicID' => 'pt_01kx4h2jdafq8bk9a26x0kvd1t'], 'tags' => ['onboarding', 'welcome'], ], state: 'DRAFT', diff --git a/tests/Services/Users/PreferencesTest.php b/tests/Services/Users/PreferencesTest.php index a22c494..60cc9e1 100644 --- a/tests/Services/Users/PreferencesTest.php +++ b/tests/Services/Users/PreferencesTest.php @@ -57,7 +57,7 @@ public function testBulkReplace(): void $result = $this->client->users->preferences->bulkReplace( 'user_id', topics: [ - ['status' => 'OPTED_IN', 'topicID' => '74Q4QGFBEX481DP6JRPMV751H4XT'], + ['status' => 'OPTED_IN', 'topicID' => 'pt_01kx4h2jdafq8bk996nn92357r'], ], ); @@ -77,7 +77,7 @@ public function testBulkReplaceWithOptionalParams(): void topics: [ [ 'status' => 'OPTED_IN', - 'topicID' => '74Q4QGFBEX481DP6JRPMV751H4XT', + 'topicID' => 'pt_01kx4h2jdafq8bk996nn92357r', 'customRouting' => [ ChannelClassification::INBOX, ChannelClassification::EMAIL, ], @@ -101,8 +101,8 @@ public function testBulkUpdate(): void $result = $this->client->users->preferences->bulkUpdate( 'user_id', topics: [ - ['status' => 'OPTED_IN', 'topicID' => '74Q4QGFBEX481DP6JRPMV751H4XT'], - ['status' => 'OPTED_OUT', 'topicID' => '5Q4QGFBEX481DP6JRPMV751H4YU'], + ['status' => 'OPTED_IN', 'topicID' => 'pt_01kx4h2jdafq8bk996nn92357r'], + ['status' => 'OPTED_OUT', 'topicID' => 'pt_01kx4h2jdafq8bk99eyt3dx43x'], ], ); @@ -122,7 +122,7 @@ public function testBulkUpdateWithOptionalParams(): void topics: [ [ 'status' => 'OPTED_IN', - 'topicID' => '74Q4QGFBEX481DP6JRPMV751H4XT', + 'topicID' => 'pt_01kx4h2jdafq8bk996nn92357r', 'customRouting' => [ ChannelClassification::INBOX, ChannelClassification::EMAIL, ], @@ -130,7 +130,7 @@ public function testBulkUpdateWithOptionalParams(): void ], [ 'status' => 'OPTED_OUT', - 'topicID' => '5Q4QGFBEX481DP6JRPMV751H4YU', + 'topicID' => 'pt_01kx4h2jdafq8bk99eyt3dx43x', 'customRouting' => [ChannelClassification::DIRECT_MESSAGE], 'hasCustomRouting' => true, ],