From 60514e9abe364d42be80fed2cc06f3bb6ac64c78 Mon Sep 17 00:00:00 2001 From: courier-codegen Date: Sat, 29 Aug 2026 00:48:53 +0000 Subject: [PATCH] fix(api): text content is not required --- src/resources/shared.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/resources/shared.ts b/src/resources/shared.ts index c09358f..df39e2f 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -474,12 +474,6 @@ export interface ElementalQuoteNodeWithType extends ElementalQuoteNode { * Represents a body of text to be rendered inside of the notification. */ export interface ElementalTextNode extends ElementalBaseNode { - /** - * The text content displayed in the notification. Either this field must be - * specified, or the elements field - */ - content: string; - /** * Text alignment. */ @@ -495,6 +489,12 @@ export interface ElementalTextNode extends ElementalBaseNode { */ color?: string | null; + /** + * The text content displayed in the notification. Either this field must be + * specified, or the elements field + */ + content?: string; + /** * CSS px font size for this text block, e.g. `16px`. Overrides the size of the * `text_style` preset. Email only.