diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9800444..8316a6d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.28.0" + ".": "0.29.0" } diff --git a/.stats.yml b/.stats.yml index 8ada60b..a1ba749 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 12 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sequenzy/sequenzy-7f2b073ea4c3e3cb027f11f0393dee20aa914add0ce247f8163d44cbba203fab.yml -openapi_spec_hash: 2de87ace4f5f04f4caeb143a6b18a20f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sequenzy/sequenzy-aad1c205dfe6c471d019b2a6ab3f91ae0cff359acc8c5974f388bd8495d9356b.yml +openapi_spec_hash: b1d29ccb11e43bdf042f0b55db112fae config_hash: 51c1d1194ac58d8c8e3162839c8f84dd diff --git a/CHANGELOG.md b/CHANGELOG.md index 998b050..ce19342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.29.0 (2026-07-10) + +Full Changelog: [v0.28.0...v0.29.0](https://github.com/Sequenzy/sequenzy-typescript/compare/v0.28.0...v0.29.0) + +### Features + +* **api:** api update ([16e6ca6](https://github.com/Sequenzy/sequenzy-typescript/commit/16e6ca63d9a318fb6ece5d904461265d3eb77aba)) + ## 0.28.0 (2026-07-06) Full Changelog: [v0.27.0...v0.28.0](https://github.com/Sequenzy/sequenzy-typescript/compare/v0.27.0...v0.28.0) diff --git a/package.json b/package.json index 3015283..a0145c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sequenzy", - "version": "0.28.0", + "version": "0.29.0", "description": "The official TypeScript library for the Sequenzy API", "author": "Sequenzy ", "types": "dist/index.d.ts", diff --git a/src/resources/subscribers/subscribers.ts b/src/resources/subscribers/subscribers.ts index 8e7fb87..e4ebe63 100644 --- a/src/resources/subscribers/subscribers.ts +++ b/src/resources/subscribers/subscribers.ts @@ -131,6 +131,16 @@ export interface Subscriber { lastName?: string | null; + /** + * Phone number in E.164 format + */ + phone?: string | null; + + /** + * SMS marketing consent status, independent of the email status + */ + smsStatus?: 'not_subscribed' | 'pending' | 'subscribed' | 'unsubscribed'; + status?: 'active' | 'unsubscribed' | 'bounced'; tags?: Array; @@ -398,6 +408,19 @@ export interface SubscriberCreateParams { */ optInMode?: 'default' | 'confirmed' | 'double_opt_in'; + /** + * Phone number in E.164 format or US national format. Stored normalized to E.164. + * Invalid values fail with a 400 validation error. Does not affect SMS consent. + */ + phone?: string | null; + + /** + * SMS marketing consent. true sets smsStatus to subscribed with consent source + * api, false sets unsubscribed, omitted leaves SMS status unchanged. Never + * inferred from phone presence. + */ + smsConsent?: boolean; + /** * Initial subscriber status. */ @@ -442,6 +465,19 @@ export interface SubscriberUpdateParams { lastName?: string; + /** + * Phone number in E.164 format or US national format. Stored normalized to E.164. + * Invalid values fail with a 400 validation error. Does not affect SMS consent. + */ + phone?: string | null; + + /** + * SMS marketing consent. true sets smsStatus to subscribed with consent source + * api, false sets unsubscribed, omitted leaves SMS status unchanged. Never + * inferred from phone presence. + */ + smsConsent?: boolean; + /** * Setting `unsubscribed` performs a full global unsubscribe. */ diff --git a/src/version.ts b/src/version.ts index 3e76cc4..bef2b64 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.28.0'; // x-release-please-version +export const VERSION = '0.29.0'; // x-release-please-version