diff --git a/src/courier/types/shared/elemental_text_node.py b/src/courier/types/shared/elemental_text_node.py index d96c7a7..01f1ecf 100644 --- a/src/courier/types/shared/elemental_text_node.py +++ b/src/courier/types/shared/elemental_text_node.py @@ -13,12 +13,6 @@ class ElementalTextNode(ElementalBaseNode): """Represents a body of text to be rendered inside of the notification.""" - content: str - """The text content displayed in the notification. - - Either this field must be specified, or the elements field - """ - align: Optional[Literal["left", "center", "right"]] = None """Text alignment.""" @@ -28,6 +22,12 @@ class ElementalTextNode(ElementalBaseNode): color: Optional[str] = None """Specifies the color of text. Can be any valid css color value""" + content: Optional[str] = None + """The text content displayed in the notification. + + Either this field must be specified, or the elements field + """ + font_size: Optional[str] = None """CSS px font size for this text block, e.g. diff --git a/src/courier/types/shared_params/elemental_text_node.py b/src/courier/types/shared_params/elemental_text_node.py index d13a765..b679fff 100644 --- a/src/courier/types/shared_params/elemental_text_node.py +++ b/src/courier/types/shared_params/elemental_text_node.py @@ -3,7 +3,7 @@ from __future__ import annotations from typing import Optional -from typing_extensions import Literal, Required +from typing_extensions import Literal from .locales import Locales from ..shared.text_style import TextStyle @@ -15,12 +15,6 @@ class ElementalTextNode(ElementalBaseNode, total=False): """Represents a body of text to be rendered inside of the notification.""" - content: Required[str] - """The text content displayed in the notification. - - Either this field must be specified, or the elements field - """ - align: Literal["left", "center", "right"] """Text alignment.""" @@ -30,6 +24,12 @@ class ElementalTextNode(ElementalBaseNode, total=False): color: Optional[str] """Specifies the color of text. Can be any valid css color value""" + content: str + """The text content displayed in the notification. + + Either this field must be specified, or the elements field + """ + font_size: Optional[str] """CSS px font size for this text block, e.g.