@@ -45,7 +45,7 @@ import {
45
45
/**
46
46
* Content of the message, can be an email block or a string
47
47
*/
48
- export type Content = EmailBlock | string ;
48
+ export type Content = Array < EmailBlock > | string ;
49
49
50
50
/**
51
51
* The payload that was used to send the notification trigger
@@ -117,7 +117,7 @@ export type MessageResponseDto = {
117
117
/**
118
118
* Content of the message, can be an email block or a string
119
119
*/
120
- content : EmailBlock | string ;
120
+ content : Array < EmailBlock > | string ;
121
121
/**
122
122
* Transaction ID associated with the message
123
123
*/
@@ -198,17 +198,17 @@ export type MessageResponseDto = {
198
198
199
199
/** @internal */
200
200
export const Content$inboundSchema : z . ZodType < Content , z . ZodTypeDef , unknown > =
201
- z . union ( [ EmailBlock$inboundSchema , z . string ( ) ] ) ;
201
+ z . union ( [ z . array ( EmailBlock$inboundSchema ) , z . string ( ) ] ) ;
202
202
203
203
/** @internal */
204
- export type Content$Outbound = EmailBlock$Outbound | string ;
204
+ export type Content$Outbound = Array < EmailBlock$Outbound > | string ;
205
205
206
206
/** @internal */
207
207
export const Content$outboundSchema : z . ZodType <
208
208
Content$Outbound ,
209
209
z . ZodTypeDef ,
210
210
Content
211
- > = z . union ( [ EmailBlock$outboundSchema , z . string ( ) ] ) ;
211
+ > = z . union ( [ z . array ( EmailBlock$outboundSchema ) , z . string ( ) ] ) ;
212
212
213
213
/**
214
214
* @internal
@@ -355,7 +355,7 @@ export const MessageResponseDto$inboundSchema: z.ZodType<
355
355
deliveredAt : z . array ( z . string ( ) ) . optional ( ) ,
356
356
lastSeenDate : z . string ( ) . optional ( ) ,
357
357
lastReadDate : z . string ( ) . optional ( ) ,
358
- content : z . union ( [ EmailBlock$inboundSchema , z . string ( ) ] ) ,
358
+ content : z . union ( [ z . array ( EmailBlock$inboundSchema ) , z . string ( ) ] ) ,
359
359
transactionId : z . string ( ) ,
360
360
subject : z . string ( ) . optional ( ) ,
361
361
channel : ChannelTypeEnum$inboundSchema ,
@@ -404,7 +404,7 @@ export type MessageResponseDto$Outbound = {
404
404
deliveredAt ?: Array < string > | undefined ;
405
405
lastSeenDate ?: string | undefined ;
406
406
lastReadDate ?: string | undefined ;
407
- content : EmailBlock$Outbound | string ;
407
+ content : Array < EmailBlock$Outbound > | string ;
408
408
transactionId : string ;
409
409
subject ?: string | undefined ;
410
410
channel : string ;
@@ -446,7 +446,7 @@ export const MessageResponseDto$outboundSchema: z.ZodType<
446
446
deliveredAt : z . array ( z . string ( ) ) . optional ( ) ,
447
447
lastSeenDate : z . string ( ) . optional ( ) ,
448
448
lastReadDate : z . string ( ) . optional ( ) ,
449
- content : z . union ( [ EmailBlock$outboundSchema , z . string ( ) ] ) ,
449
+ content : z . union ( [ z . array ( EmailBlock$outboundSchema ) , z . string ( ) ] ) ,
450
450
transactionId : z . string ( ) ,
451
451
subject : z . string ( ) . optional ( ) ,
452
452
channel : ChannelTypeEnum$outboundSchema ,
0 commit comments