Skip to content

Commit 30ff0dd

Browse files
feat: Add timezone field to Delay schema
1 parent 2173b67 commit 30ff0dd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 77
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-59c9efb45644c91ba21c8efaa0af53637071483ed661d5f99f27a15996624ac2.yml
3-
openapi_spec_hash: 0e1d703ca5e68a4d1f1489c04eb43765
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/courier%2Fcourier-68406e37b98de23f283c70b872103c96dae291c2b7854e1409b70d538add3d13.yml
3+
openapi_spec_hash: f98322af1fde1cb6411220e08269a102
44
config_hash: 3ec521d062b05b81c22bc1a25bfe3d02

src/resources/send.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ export namespace SendMessageParams {
142142
*/
143143
duration?: number | null;
144144

145+
/**
146+
* IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). Used when
147+
* resolving opening hours expressions. Takes precedence over user profile timezone
148+
* settings.
149+
*/
150+
timezone?: string | null;
151+
145152
/**
146153
* ISO 8601 timestamp or opening_hours-like format.
147154
*/

tests/api-resources/send.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('resource send', () => {
4747
content: { body: 'body', title: 'title' },
4848
context: { tenant_id: 'tenant_id' },
4949
data: { foo: 'bar' },
50-
delay: { duration: 0, until: 'until' },
50+
delay: { duration: 0, timezone: 'timezone', until: 'until' },
5151
expiry: { expires_in: 'string', expires_at: 'expires_at' },
5252
metadata: {
5353
event: 'event',

0 commit comments

Comments
 (0)