diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0b5216f2..f7e3c743 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "7.19.1" + ".": "7.19.2" } diff --git a/.stats.yml b/.stats.yml index c6ea0b34..9e3b99b6 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 c22c76f4..96c5d95d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 7.19.2 (2026-07-10) + +Full Changelog: [v7.19.1...v7.19.2](https://github.com/trycourier/courier-node/compare/v7.19.1...v7.19.2) + +### Documentation + +* **openapi:** canonical type-id prefixes across all examples ([#162](https://github.com/trycourier/courier-node/issues/162)) ([8e493e2](https://github.com/trycourier/courier-node/commit/8e493e2b8dc6d2d0eeccc3ca658dd5503c0028e1)) +* **openapi:** use canonical type-id prefixes in id examples ([#160](https://github.com/trycourier/courier-node/issues/160)) ([5f3c839](https://github.com/trycourier/courier-node/commit/5f3c839c9aea887232c6ddc68db58654a01d7f1a)) + ## 7.19.1 (2026-07-09) Full Changelog: [v7.19.0...v7.19.1](https://github.com/trycourier/courier-node/compare/v7.19.0...v7.19.1) diff --git a/package.json b/package.json index eff922ad..8b7d5111 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@trycourier/courier", - "version": "7.19.1", + "version": "7.19.2", "description": "The official TypeScript library for the Courier API", "author": "Courier ", "types": "dist/index.d.ts", diff --git a/src/resources/notifications/notifications.ts b/src/resources/notifications/notifications.ts index 94c877d9..47f8b298 100644 --- a/src/resources/notifications/notifications.ts +++ b/src/resources/notifications/notifications.ts @@ -30,9 +30,13 @@ export class Notifications extends APIResource { * notification: { * name: 'Welcome Email', * tags: ['onboarding', 'welcome'], - * brand: { id: 'brand_abc' }, - * subscription: { topic_id: 'marketing' }, - * routing: { strategy_id: 'rs_123' }, + * brand: { id: 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag' }, + * subscription: { + * topic_id: 'pt_01kx4h2jdafq8bk9a26x0kvd1t', + * }, + * routing: { + * strategy_id: 'rs_01kx4h2jdafq8bk9amzvy6hbv0', + * }, * content: { * version: '2022-01-01', * elements: [{ type: 'channel' }], diff --git a/src/resources/users/preferences.ts b/src/resources/users/preferences.ts index 03129f90..decc3128 100644 --- a/src/resources/users/preferences.ts +++ b/src/resources/users/preferences.ts @@ -52,7 +52,7 @@ export class Preferences extends APIResource { * { * topics: [ * { - * topic_id: '74Q4QGFBEX481DP6JRPMV751H4XT', + * topic_id: 'pt_01kx4h2jdafq8bk996nn92357r', * status: 'OPTED_IN', * has_custom_routing: true, * custom_routing: ['inbox', 'email'], @@ -97,13 +97,13 @@ export class Preferences extends APIResource { * { * topics: [ * { - * topic_id: '74Q4QGFBEX481DP6JRPMV751H4XT', + * topic_id: 'pt_01kx4h2jdafq8bk996nn92357r', * status: 'OPTED_IN', * has_custom_routing: true, * custom_routing: ['inbox', 'email'], * }, * { - * topic_id: '5Q4QGFBEX481DP6JRPMV751H4YU', + * topic_id: 'pt_01kx4h2jdafq8bk99eyt3dx43x', * status: 'OPTED_OUT', * }, * ], diff --git a/src/version.ts b/src/version.ts index fd2eb290..fdaf49de 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '7.19.1'; // x-release-please-version +export const VERSION = '7.19.2'; // x-release-please-version diff --git a/tests/api-resources/notifications/notifications.test.ts b/tests/api-resources/notifications/notifications.test.ts index b5fcdfe3..3fcd4d6c 100644 --- a/tests/api-resources/notifications/notifications.test.ts +++ b/tests/api-resources/notifications/notifications.test.ts @@ -12,11 +12,11 @@ describe('resource notifications', () => { test.skip('create: only required params', async () => { const responsePromise = client.notifications.create({ notification: { - brand: { id: 'brand_abc' }, + brand: { id: 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag' }, content: { elements: [{}], version: '2022-01-01' }, name: 'Welcome Email', - routing: { strategy_id: 'rs_123' }, - subscription: { topic_id: 'marketing' }, + routing: { strategy_id: 'rs_01kx4h2jdafq8bk9amzvy6hbv0' }, + subscription: { topic_id: 'pt_01kx4h2jdafq8bk9a26x0kvd1t' }, tags: ['onboarding', 'welcome'], }, }); @@ -33,11 +33,11 @@ describe('resource notifications', () => { test.skip('create: required and optional params', async () => { const response = await client.notifications.create({ notification: { - brand: { id: 'brand_abc' }, + brand: { id: 'bnd_01kx4mrd0pfzw8wt7pn7p2fzag' }, content: { elements: [{ type: 'channel' }], version: '2022-01-01' }, name: 'Welcome Email', - routing: { strategy_id: 'rs_123' }, - subscription: { topic_id: 'marketing' }, + routing: { strategy_id: 'rs_01kx4h2jdafq8bk9amzvy6hbv0' }, + subscription: { topic_id: 'pt_01kx4h2jdafq8bk9a26x0kvd1t' }, tags: ['onboarding', 'welcome'], }, state: 'DRAFT', diff --git a/tests/api-resources/users/preferences.test.ts b/tests/api-resources/users/preferences.test.ts index e0c418b7..ac55d15c 100644 --- a/tests/api-resources/users/preferences.test.ts +++ b/tests/api-resources/users/preferences.test.ts @@ -35,7 +35,7 @@ describe('resource preferences', () => { // Mock server tests are disabled test.skip('bulkReplace: only required params', async () => { const responsePromise = client.users.preferences.bulkReplace('user_id', { - topics: [{ status: 'OPTED_IN', topic_id: '74Q4QGFBEX481DP6JRPMV751H4XT' }], + topics: [{ status: 'OPTED_IN', topic_id: 'pt_01kx4h2jdafq8bk996nn92357r' }], }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -52,7 +52,7 @@ describe('resource preferences', () => { topics: [ { status: 'OPTED_IN', - topic_id: '74Q4QGFBEX481DP6JRPMV751H4XT', + topic_id: 'pt_01kx4h2jdafq8bk996nn92357r', custom_routing: ['inbox', 'email'], has_custom_routing: true, }, @@ -65,8 +65,8 @@ describe('resource preferences', () => { test.skip('bulkUpdate: only required params', async () => { const responsePromise = client.users.preferences.bulkUpdate('user_id', { topics: [ - { status: 'OPTED_IN', topic_id: '74Q4QGFBEX481DP6JRPMV751H4XT' }, - { status: 'OPTED_OUT', topic_id: '5Q4QGFBEX481DP6JRPMV751H4YU' }, + { status: 'OPTED_IN', topic_id: 'pt_01kx4h2jdafq8bk996nn92357r' }, + { status: 'OPTED_OUT', topic_id: 'pt_01kx4h2jdafq8bk99eyt3dx43x' }, ], }); const rawResponse = await responsePromise.asResponse(); @@ -84,13 +84,13 @@ describe('resource preferences', () => { topics: [ { status: 'OPTED_IN', - topic_id: '74Q4QGFBEX481DP6JRPMV751H4XT', + topic_id: 'pt_01kx4h2jdafq8bk996nn92357r', custom_routing: ['inbox', 'email'], has_custom_routing: true, }, { status: 'OPTED_OUT', - topic_id: '5Q4QGFBEX481DP6JRPMV751H4YU', + topic_id: 'pt_01kx4h2jdafq8bk99eyt3dx43x', custom_routing: ['direct_message'], has_custom_routing: true, },